]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
06ae3721b021c5bd390f1b70d117421425f43cac
[mirror_spl-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 CONFIG_KERNEL_FALSE
747 CONFIG_KERNEL_TRUE
748 CONFIG_USER_FALSE
749 CONFIG_USER_TRUE
750 DEBUG_KMEM_TRACKING
751 DEBUG_KMEM
752 DEBUG_LOG
753 DEBUG_SPL
754 DEBUG_CFLAGS
755 KERNELCPPFLAGS
756 KERNELMAKE_PARAMS
757 LINUX_SYMBOLS
758 LINUX_VERSION
759 LINUX_OBJ
760 LINUX
761 SPL_CONFIG
762 ALIEN_VERSION
763 ALIEN
764 HAVE_ALIEN
765 DPKGBUILD_VERSION
766 DPKGBUILD
767 HAVE_DPKGBUILD
768 DPKG_VERSION
769 DPKG
770 HAVE_DPKG
771 SRPM_DEFINE_COMMON
772 SRPM_DEFINE_DKMS
773 SRPM_DEFINE_KMOD
774 SRPM_DEFINE_UTIL
775 RPM_DEFINE_COMMON
776 RPM_DEFINE_DKMS
777 RPM_DEFINE_KMOD
778 RPM_DEFINE_UTIL
779 RPM_SPEC_DIR
780 RPMBUILD_VERSION
781 RPMBUILD
782 HAVE_RPMBUILD
783 RPM_VERSION
784 RPM
785 HAVE_RPM
786 DEFAULT_PACKAGE
787 VENDOR
788 LICENSE
789 CPP
790 OTOOL64
791 OTOOL
792 LIPO
793 NMEDIT
794 DSYMUTIL
795 lt_ECHO
796 RANLIB
797 AR
798 OBJDUMP
799 LN_S
800 NM
801 ac_ct_DUMPBIN
802 DUMPBIN
803 LD
804 FGREP
805 EGREP
806 GREP
807 SED
808 LIBTOOL
809 am__fastdepCC_FALSE
810 am__fastdepCC_TRUE
811 CCDEPMODE
812 AMDEPBACKSLASH
813 AMDEP_FALSE
814 AMDEP_TRUE
815 am__quote
816 am__include
817 DEPDIR
818 OBJEXT
819 EXEEXT
820 ac_ct_CC
821 CPPFLAGS
822 LDFLAGS
823 CFLAGS
824 CC
825 am__untar
826 am__tar
827 AMTAR
828 am__leading_dot
829 SET_MAKE
830 mkdir_p
831 MKDIR_P
832 INSTALL_STRIP_PROGRAM
833 STRIP
834 install_sh
835 MAKEINFO
836 AUTOHEADER
837 AUTOMAKE
838 AUTOCONF
839 ACLOCAL
840 VERSION
841 PACKAGE
842 CYGPATH_W
843 am__isrc
844 INSTALL_DATA
845 INSTALL_SCRIPT
846 INSTALL_PROGRAM
847 AM_BACKSLASH
848 AM_DEFAULT_VERBOSITY
849 MAINT
850 MAINTAINER_MODE_FALSE
851 MAINTAINER_MODE_TRUE
852 target_os
853 target_vendor
854 target_cpu
855 target
856 host_os
857 host_vendor
858 host_cpu
859 host
860 build_os
861 build_vendor
862 build_cpu
863 build
864 SPL_META_LT_AGE
865 SPL_META_LT_REVISION
866 SPL_META_LT_CURRENT
867 SPL_META_AUTHOR
868 SPL_META_DATA
869 SPL_META_ALIAS
870 RELEASE
871 SPL_META_RELEASE
872 SPL_META_VERSION
873 SPL_META_NAME
874 AWK
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 enable_maintainer_mode
917 enable_silent_rules
918 enable_dependency_tracking
919 enable_shared
920 enable_static
921 with_pic
922 enable_fast_install
923 with_gnu_ld
924 enable_libtool_lock
925 with_spec
926 with_config
927 enable_linux_builtin
928 with_linux
929 with_linux_obj
930 enable_debug
931 enable_debug_log
932 enable_debug_kmem
933 enable_debug_kmem_tracking
934 enable_atomic_spinlocks
935 '
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 CPP'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1065
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1070
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1075
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1240
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1251
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1256
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1261
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1268
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1273
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1276
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1279
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1295
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1311
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1315
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1322
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1329
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1343
1344 *)
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 ;;
1351
1352 esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1358 fi
1359
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1373 do
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1401 If a cross compiler is detected then cross compile mode will be used" >&2
1402 elif test "x$build_alias" != "x$host_alias"; then
1403 cross_compiling=yes
1404 fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1419
1420
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)[^/].*/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\/\)$/{
1440 s//\1/
1441 q
1442 }
1443 /^X\(\/\).*/{
1444 s//\1/
1445 q
1446 }
1447 s/.*/./; q'`
1448 srcdir=$ac_confdir
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1450 srcdir=..
1451 fi
1452 else
1453 ac_srcdir_defaulted=no
1454 fi
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1458 fi
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1460 ac_abs_confdir=`(
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1466 fi
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1479
1480 #
1481 # Report the --help message.
1482 #
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures this package to adapt to many kinds of systems.
1488
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1490
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1493
1494 Defaults for the options are specified in brackets.
1495
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1506
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1512
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1517
1518 For better control, use the options below.
1519
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1541
1542 cat <<\_ACEOF
1543
1544 Program names:
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1548
1549 System types:
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1552 --target=TARGET configure for building compilers for TARGET [HOST]
1553 _ACEOF
1554 fi
1555
1556 if test -n "$ac_init_help"; then
1557
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-maintainer-mode enable make rules and dependencies not useful
1565 (and sometimes confusing) to the casual installer
1566 --enable-silent-rules less verbose build output (undo: `make V=1')
1567 --disable-silent-rules verbose build output (undo: `make V=0')
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
1570 --enable-shared[=PKGS] build shared libraries [default=yes]
1571 --enable-static[=PKGS] build static libraries [default=yes]
1572 --enable-fast-install[=PKGS]
1573 optimize for fast installation [default=yes]
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1575 --enable-linux-builtin Configure for builtin in-tree kernel modules
1576 [default=no]
1577 --enable-debug Enable generic debug support [default=no]
1578 --enable-debug-log Enable basic debug logging [default=yes]
1579 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1580 --enable-debug-kmem-tracking
1581 Enable detailed kmem tracking [default=no]
1582 --enable-atomic-spinlocks
1583 Atomic types use spinlocks [default=check]
1584
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1591 --with-spec=SPEC Spec files 'generic|fedora'
1592 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1593 --with-linux=PATH Path to kernel source
1594 --with-linux-obj=PATH Path to kernel build objects
1595
1596 Some influential environment variables:
1597 CC C compiler command
1598 CFLAGS C compiler flags
1599 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1600 nonstandard directory <lib dir>
1601 LIBS libraries to pass to the linker, e.g. -l<library>
1602 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1603 you have headers in a nonstandard directory <include dir>
1604 CPP C preprocessor
1605
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1608
1609 Report bugs to the package provider.
1610 _ACEOF
1611 ac_status=$?
1612 fi
1613
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
1620 ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639 .) # We are building in place.
1640 ac_srcdir=.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1662 else
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1666 done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671 cat <<\_ACEOF
1672 configure
1673 generated by GNU Autoconf 2.67
1674
1675 Copyright (C) 2010 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1678 _ACEOF
1679 exit
1680 fi
1681
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1685
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718 fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1775 {
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval "test \"\${$3+set}\"" = set; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 $4
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799 } # ac_fn_c_check_header_compile
1800
1801 # ac_fn_c_try_cpp LINENO
1802 # ----------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_cpp ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } > conftest.i && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_cpp
1837
1838 # ac_fn_c_try_run LINENO
1839 # ----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1841 # that executables *can* be run.
1842 ac_fn_c_try_run ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>&5
1853 ac_status=$?
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1856 { { case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_try") 2>&5
1863 ac_status=$?
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; }; }; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: program exited with status $ac_status" >&5
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=$ac_status
1873 fi
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_run
1879
1880 # ac_fn_c_check_func LINENO FUNC VAR
1881 # ----------------------------------
1882 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1883 ac_fn_c_check_func ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval "test \"\${$3+set}\"" = set; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895 #define $2 innocuous_$2
1896
1897 /* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1901
1902 #ifdef __STDC__
1903 # include <limits.h>
1904 #else
1905 # include <assert.h>
1906 #endif
1907
1908 #undef $2
1909
1910 /* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1913 #ifdef __cplusplus
1914 extern "C"
1915 #endif
1916 char $2 ();
1917 /* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920 #if defined __stub_$2 || defined __stub___$2
1921 choke me
1922 #endif
1923
1924 int
1925 main ()
1926 {
1927 return $2 ();
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_link "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_func
1946 cat >config.log <<_ACEOF
1947 This file contains any messages produced by compilers while
1948 running configure, to aid debugging if configure makes a mistake.
1949
1950 It was created by $as_me, which was
1951 generated by GNU Autoconf 2.67. Invocation command line was
1952
1953 $ $0 $@
1954
1955 _ACEOF
1956 exec 5>>config.log
1957 {
1958 cat <<_ASUNAME
1959 ## --------- ##
1960 ## Platform. ##
1961 ## --------- ##
1962
1963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1968
1969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1971
1972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1975 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1979
1980 _ASUNAME
1981
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 $as_echo "PATH: $as_dir"
1988 done
1989 IFS=$as_save_IFS
1990
1991 } >&5
1992
1993 cat >&5 <<_ACEOF
1994
1995
1996 ## ----------- ##
1997 ## Core tests. ##
1998 ## ----------- ##
1999
2000 _ACEOF
2001
2002
2003 # Keep a trace of the command line.
2004 # Strip out --no-create and --no-recursion so they do not pile up.
2005 # Strip out --silent because we don't want to record it for future runs.
2006 # Also quote any args containing shell meta-characters.
2007 # Make two passes to allow for proper duplicate-argument suppression.
2008 ac_configure_args=
2009 ac_configure_args0=
2010 ac_configure_args1=
2011 ac_must_keep_next=false
2012 for ac_pass in 1 2
2013 do
2014 for ac_arg
2015 do
2016 case $ac_arg in
2017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 continue ;;
2021 *\'*)
2022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 esac
2024 case $ac_pass in
2025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2026 2)
2027 as_fn_append ac_configure_args1 " '$ac_arg'"
2028 if test $ac_must_keep_next = true; then
2029 ac_must_keep_next=false # Got value, back to normal.
2030 else
2031 case $ac_arg in
2032 *=* | --config-cache | -C | -disable-* | --disable-* \
2033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2035 | -with-* | --with-* | -without-* | --without-* | --x)
2036 case "$ac_configure_args0 " in
2037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 esac
2039 ;;
2040 -* ) ac_must_keep_next=true ;;
2041 esac
2042 fi
2043 as_fn_append ac_configure_args " '$ac_arg'"
2044 ;;
2045 esac
2046 done
2047 done
2048 { ac_configure_args0=; unset ac_configure_args0;}
2049 { ac_configure_args1=; unset ac_configure_args1;}
2050
2051 # When interrupted or exit'd, cleanup temporary files, and complete
2052 # config.log. We remove comments because anyway the quotes in there
2053 # would cause problems or look ugly.
2054 # WARNING: Use '\'' to represent an apostrophe within the trap.
2055 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2056 trap 'exit_status=$?
2057 # Save into config.log some information that might help in debugging.
2058 {
2059 echo
2060
2061 $as_echo "## ---------------- ##
2062 ## Cache variables. ##
2063 ## ---------------- ##"
2064 echo
2065 # The following way of writing the cache mishandles newlines in values,
2066 (
2067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2068 eval ac_val=\$$ac_var
2069 case $ac_val in #(
2070 *${as_nl}*)
2071 case $ac_var in #(
2072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 esac
2075 case $ac_var in #(
2076 _ | IFS | as_nl) ;; #(
2077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2078 *) { eval $ac_var=; unset $ac_var;} ;;
2079 esac ;;
2080 esac
2081 done
2082 (set) 2>&1 |
2083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2084 *${as_nl}ac_space=\ *)
2085 sed -n \
2086 "s/'\''/'\''\\\\'\'''\''/g;
2087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 ;; #(
2089 *)
2090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2091 ;;
2092 esac |
2093 sort
2094 )
2095 echo
2096
2097 $as_echo "## ----------------- ##
2098 ## Output variables. ##
2099 ## ----------------- ##"
2100 echo
2101 for ac_var in $ac_subst_vars
2102 do
2103 eval ac_val=\$$ac_var
2104 case $ac_val in
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2106 esac
2107 $as_echo "$ac_var='\''$ac_val'\''"
2108 done | sort
2109 echo
2110
2111 if test -n "$ac_subst_files"; then
2112 $as_echo "## ------------------- ##
2113 ## File substitutions. ##
2114 ## ------------------- ##"
2115 echo
2116 for ac_var in $ac_subst_files
2117 do
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2125 fi
2126
2127 if test -s confdefs.h; then
2128 $as_echo "## ----------- ##
2129 ## confdefs.h. ##
2130 ## ----------- ##"
2131 echo
2132 cat confdefs.h
2133 echo
2134 fi
2135 test "$ac_signal" != 0 &&
2136 $as_echo "$as_me: caught signal $ac_signal"
2137 $as_echo "$as_me: exit $exit_status"
2138 } >&5
2139 rm -f core *.core core.conftest.* &&
2140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 exit $exit_status
2142 ' 0
2143 for ac_signal in 1 2 13 15; do
2144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2145 done
2146 ac_signal=0
2147
2148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2149 rm -f -r conftest* confdefs.h
2150
2151 $as_echo "/* confdefs.h */" > confdefs.h
2152
2153 # Predefined preprocessor variables.
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_URL "$PACKAGE_URL"
2177 _ACEOF
2178
2179
2180 # Let the site file select an alternate cache file if it wants to.
2181 # Prefer an explicitly selected file to automatically selected ones.
2182 ac_site_file1=NONE
2183 ac_site_file2=NONE
2184 if test -n "$CONFIG_SITE"; then
2185 # We do not want a PATH search for config.site.
2186 case $CONFIG_SITE in #((
2187 -*) ac_site_file1=./$CONFIG_SITE;;
2188 */*) ac_site_file1=$CONFIG_SITE;;
2189 *) ac_site_file1=./$CONFIG_SITE;;
2190 esac
2191 elif test "x$prefix" != xNONE; then
2192 ac_site_file1=$prefix/share/config.site
2193 ac_site_file2=$prefix/etc/config.site
2194 else
2195 ac_site_file1=$ac_default_prefix/share/config.site
2196 ac_site_file2=$ac_default_prefix/etc/config.site
2197 fi
2198 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2199 do
2200 test "x$ac_site_file" = xNONE && continue
2201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2203 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2204 sed 's/^/| /' "$ac_site_file" >&5
2205 . "$ac_site_file" \
2206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 as_fn_error $? "failed to load site script $ac_site_file
2209 See \`config.log' for more details" "$LINENO" 5 ; }
2210 fi
2211 done
2212
2213 if test -r "$cache_file"; then
2214 # Some versions of bash will fail to source /dev/null (special files
2215 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2219 case $cache_file in
2220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221 *) . "./$cache_file";;
2222 esac
2223 fi
2224 else
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227 >$cache_file
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235 eval ac_new_set=\$ac_env_${ac_var}_set
2236 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237 eval ac_new_val=\$ac_env_${ac_var}_value
2238 case $ac_old_set,$ac_new_set in
2239 set,)
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242 ac_cache_corrupted=: ;;
2243 ,set)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,);;
2248 *)
2249 if test "x$ac_old_val" != "x$ac_new_val"; then
2250 # differences in whitespace do not lead to failure.
2251 ac_old_val_w=`echo x $ac_old_val`
2252 ac_new_val_w=`echo x $ac_new_val`
2253 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256 ac_cache_corrupted=:
2257 else
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260 eval $ac_var=\$ac_old_val
2261 fi
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2263 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2266 fi;;
2267 esac
2268 # Pass precious variables to config.status.
2269 if test "$ac_new_set" = set; then
2270 case $ac_new_val in
2271 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 *) ac_arg=$ac_var=$ac_new_val ;;
2273 esac
2274 case " $ac_configure_args " in
2275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2276 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277 esac
2278 fi
2279 done
2280 if $ac_cache_corrupted; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305 for ac_prog in gawk mawk nawk awk
2306 do
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310 $as_echo_n "checking for $ac_word... " >&6; }
2311 if test "${ac_cv_prog_AWK+set}" = set; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 if test -n "$AWK"; then
2315 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_AWK="$ac_prog"
2325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2327 fi
2328 done
2329 done
2330 IFS=$as_save_IFS
2331
2332 fi
2333 fi
2334 AWK=$ac_cv_prog_AWK
2335 if test -n "$AWK"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2337 $as_echo "$AWK" >&6; }
2338 else
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340 $as_echo "no" >&6; }
2341 fi
2342
2343
2344 test -n "$AWK" && break
2345 done
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2348 $as_echo_n "checking metadata... " >&6; }
2349
2350 META="$srcdir/META"
2351 _spl_ac_meta_type="none"
2352 if test -f "$META"; then
2353 _spl_ac_meta_type="META file"
2354
2355 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2356 if test -n "$SPL_META_NAME"; then
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define SPL_META_NAME "$SPL_META_NAME"
2360 _ACEOF
2361
2362
2363 fi
2364
2365 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2366 if test -n "$SPL_META_VERSION"; then
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define SPL_META_VERSION "$SPL_META_VERSION"
2370 _ACEOF
2371
2372
2373 fi
2374
2375 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2376 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2377 _match="${SPL_META_NAME}-${SPL_META_VERSION}*"
2378 _alias=$(git describe --match=${_match} 2>/dev/null)
2379 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2380 if test -n "${_release}"; then
2381 SPL_META_RELEASE=${_release}
2382 _spl_ac_meta_type="git describe"
2383 fi
2384 fi
2385
2386 if test -n "$SPL_META_RELEASE"; then
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2390 _ACEOF
2391
2392
2393
2394 RELEASE="$SPL_META_RELEASE"
2395
2396 fi
2397
2398 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2399 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2400 test -n "$SPL_META_RELEASE" &&
2401 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2405 _ACEOF
2406
2407
2408 fi
2409
2410 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2411 if test -n "$SPL_META_DATA"; then
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define SPL_META_DATA "$SPL_META_DATA"
2415 _ACEOF
2416
2417
2418 fi
2419
2420 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2421 if test -n "$SPL_META_AUTHOR"; then
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2425 _ACEOF
2426
2427
2428 fi
2429
2430
2431 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2432 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2433 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2434 if test -n "$SPL_META_LT_CURRENT" \
2435 -o -n "$SPL_META_LT_REVISION" \
2436 -o -n "$SPL_META_LT_AGE"; then
2437 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2438 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2439 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2443 _ACEOF
2444
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2448 _ACEOF
2449
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2453 _ACEOF
2454
2455
2456
2457
2458 fi
2459 fi
2460
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2462 $as_echo "$_spl_ac_meta_type" >&6; }
2463
2464
2465 ac_aux_dir=
2466 for ac_dir in config "$srcdir"/config; do
2467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2479 fi
2480 done
2481 if test -z "$ac_aux_dir"; then
2482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2483 fi
2484
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492
2493
2494
2495 # Make sure we can run config.sub.
2496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2497 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2500 $as_echo_n "checking build system type... " >&6; }
2501 if test "${ac_cv_build+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 ac_build_alias=$build_alias
2505 test "x$ac_build_alias" = x &&
2506 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2507 test "x$ac_build_alias" = x &&
2508 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2510 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2511
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2514 $as_echo "$ac_cv_build" >&6; }
2515 case $ac_cv_build in
2516 *-*-*) ;;
2517 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2518 esac
2519 build=$ac_cv_build
2520 ac_save_IFS=$IFS; IFS='-'
2521 set x $ac_cv_build
2522 shift
2523 build_cpu=$1
2524 build_vendor=$2
2525 shift; shift
2526 # Remember, the first character of IFS is used to create $*,
2527 # except with old shells:
2528 build_os=$*
2529 IFS=$ac_save_IFS
2530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2531
2532
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2534 $as_echo_n "checking host system type... " >&6; }
2535 if test "${ac_cv_host+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
2537 else
2538 if test "x$host_alias" = x; then
2539 ac_cv_host=$ac_cv_build
2540 else
2541 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2542 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2543 fi
2544
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2547 $as_echo "$ac_cv_host" >&6; }
2548 case $ac_cv_host in
2549 *-*-*) ;;
2550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2551 esac
2552 host=$ac_cv_host
2553 ac_save_IFS=$IFS; IFS='-'
2554 set x $ac_cv_host
2555 shift
2556 host_cpu=$1
2557 host_vendor=$2
2558 shift; shift
2559 # Remember, the first character of IFS is used to create $*,
2560 # except with old shells:
2561 host_os=$*
2562 IFS=$ac_save_IFS
2563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2564
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2567 $as_echo_n "checking target system type... " >&6; }
2568 if test "${ac_cv_target+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 if test "x$target_alias" = x; then
2572 ac_cv_target=$ac_cv_host
2573 else
2574 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2576 fi
2577
2578 fi
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2580 $as_echo "$ac_cv_target" >&6; }
2581 case $ac_cv_target in
2582 *-*-*) ;;
2583 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2584 esac
2585 target=$ac_cv_target
2586 ac_save_IFS=$IFS; IFS='-'
2587 set x $ac_cv_target
2588 shift
2589 target_cpu=$1
2590 target_vendor=$2
2591 shift; shift
2592 # Remember, the first character of IFS is used to create $*,
2593 # except with old shells:
2594 target_os=$*
2595 IFS=$ac_save_IFS
2596 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2597
2598
2599 # The aliases save the names the user supplied, while $host etc.
2600 # will get canonicalized.
2601 test -n "$target_alias" &&
2602 test "$program_prefix$program_suffix$program_transform_name" = \
2603 NONENONEs,x,x, &&
2604 program_prefix=${target_alias}-
2605
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2608 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2609 # Check whether --enable-maintainer-mode was given.
2610 if test "${enable_maintainer_mode+set}" = set; then :
2611 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2612 else
2613 USE_MAINTAINER_MODE=no
2614 fi
2615
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2617 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2618 if test $USE_MAINTAINER_MODE = yes; then
2619 MAINTAINER_MODE_TRUE=
2620 MAINTAINER_MODE_FALSE='#'
2621 else
2622 MAINTAINER_MODE_TRUE='#'
2623 MAINTAINER_MODE_FALSE=
2624 fi
2625
2626 MAINT=$MAINTAINER_MODE_TRUE
2627
2628
2629 # Check whether --enable-silent-rules was given.
2630 if test "${enable_silent_rules+set}" = set; then :
2631 enableval=$enable_silent_rules;
2632 fi
2633
2634 case $enable_silent_rules in
2635 yes) AM_DEFAULT_VERBOSITY=0;;
2636 no) AM_DEFAULT_VERBOSITY=1;;
2637 *) AM_DEFAULT_VERBOSITY=0;;
2638 esac
2639 AM_BACKSLASH='\'
2640
2641 am__api_version='1.11'
2642
2643 # Find a good install program. We prefer a C program (faster),
2644 # so one script is as good as another. But avoid the broken or
2645 # incompatible versions:
2646 # SysV /etc/install, /usr/sbin/install
2647 # SunOS /usr/etc/install
2648 # IRIX /sbin/install
2649 # AIX /bin/install
2650 # AmigaOS /C/install, which installs bootblocks on floppy discs
2651 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2652 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2653 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2654 # OS/2's system install, which has a completely different semantic
2655 # ./install, which can be erroneously created by make from ./install.sh.
2656 # Reject install programs that cannot install multiple files.
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2658 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2659 if test -z "$INSTALL"; then
2660 if test "${ac_cv_path_install+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 # Account for people who put trailing slashes in PATH elements.
2669 case $as_dir/ in #((
2670 ./ | .// | /[cC]/* | \
2671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2672 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2673 /usr/ucb/* ) ;;
2674 *)
2675 # OSF1 and SCO ODT 3.0 have their own names for install.
2676 # Don't use installbsd from OSF since it installs stuff as root
2677 # by default.
2678 for ac_prog in ginstall scoinst install; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2681 if test $ac_prog = install &&
2682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2683 # AIX install. It has an incompatible calling convention.
2684 :
2685 elif test $ac_prog = install &&
2686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687 # program-specific install script used by HP pwplus--don't use.
2688 :
2689 else
2690 rm -rf conftest.one conftest.two conftest.dir
2691 echo one > conftest.one
2692 echo two > conftest.two
2693 mkdir conftest.dir
2694 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2695 test -s conftest.one && test -s conftest.two &&
2696 test -s conftest.dir/conftest.one &&
2697 test -s conftest.dir/conftest.two
2698 then
2699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2700 break 3
2701 fi
2702 fi
2703 fi
2704 done
2705 done
2706 ;;
2707 esac
2708
2709 done
2710 IFS=$as_save_IFS
2711
2712 rm -rf conftest.one conftest.two conftest.dir
2713
2714 fi
2715 if test "${ac_cv_path_install+set}" = set; then
2716 INSTALL=$ac_cv_path_install
2717 else
2718 # As a last resort, use the slow shell script. Don't cache a
2719 # value for INSTALL within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the value is a relative name.
2722 INSTALL=$ac_install_sh
2723 fi
2724 fi
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2726 $as_echo "$INSTALL" >&6; }
2727
2728 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2729 # It thinks the first close brace ends the variable substitution.
2730 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731
2732 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2733
2734 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2737 $as_echo_n "checking whether build environment is sane... " >&6; }
2738 # Just in case
2739 sleep 1
2740 echo timestamp > conftest.file
2741 # Reject unsafe characters in $srcdir or the absolute working directory
2742 # name. Accept space and tab only in the latter.
2743 am_lf='
2744 '
2745 case `pwd` in
2746 *[\\\"\#\$\&\'\`$am_lf]*)
2747 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2748 esac
2749 case $srcdir in
2750 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2751 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2752 esac
2753
2754 # Do `set' in a subshell so we don't clobber the current shell's
2755 # arguments. Must try -L first in case configure is actually a
2756 # symlink; some systems play weird games with the mod time of symlinks
2757 # (eg FreeBSD returns the mod time of the symlink's containing
2758 # directory).
2759 if (
2760 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2761 if test "$*" = "X"; then
2762 # -L didn't work.
2763 set X `ls -t "$srcdir/configure" conftest.file`
2764 fi
2765 rm -f conftest.file
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2768
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2775 fi
2776
2777 test "$2" = conftest.file
2778 )
2779 then
2780 # Ok.
2781 :
2782 else
2783 as_fn_error $? "newly created file is older than distributed files!
2784 Check your system clock" "$LINENO" 5
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 $as_echo "yes" >&6; }
2788 test "$program_prefix" != NONE &&
2789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2790 # Use a double $ so make ignores it.
2791 test "$program_suffix" != NONE &&
2792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2793 # Double any \ or $.
2794 # By default was `s,x,x', remove it if useless.
2795 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2796 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2797
2798 # expand $ac_aux_dir to an absolute path
2799 am_aux_dir=`cd $ac_aux_dir && pwd`
2800
2801 if test x"${MISSING+set}" != xset; then
2802 case $am_aux_dir in
2803 *\ * | *\ *)
2804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2805 *)
2806 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2807 esac
2808 fi
2809 # Use eval to expand $SHELL
2810 if eval "$MISSING --run true"; then
2811 am_missing_run="$MISSING --run "
2812 else
2813 am_missing_run=
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2815 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2816 fi
2817
2818 if test x"${install_sh}" != xset; then
2819 case $am_aux_dir in
2820 *\ * | *\ *)
2821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2822 *)
2823 install_sh="\${SHELL} $am_aux_dir/install-sh"
2824 esac
2825 fi
2826
2827 # Installed binaries are usually stripped using `strip' when the user
2828 # run `make install-strip'. However `strip' might not be the right
2829 # tool to use in cross-compilation environments, therefore Automake
2830 # will honor the `STRIP' environment variable to overrule this program.
2831 if test "$cross_compiling" != no; then
2832 if test -n "$ac_tool_prefix"; then
2833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2834 set dummy ${ac_tool_prefix}strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if test "${ac_cv_prog_STRIP+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 if test -n "$STRIP"; then
2841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 break 2
2853 fi
2854 done
2855 done
2856 IFS=$as_save_IFS
2857
2858 fi
2859 fi
2860 STRIP=$ac_cv_prog_STRIP
2861 if test -n "$STRIP"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2863 $as_echo "$STRIP" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$ac_cv_prog_STRIP"; then
2872 ac_ct_STRIP=$STRIP
2873 # Extract the first word of "strip", so it can be a program name with args.
2874 set dummy strip; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$ac_ct_STRIP"; then
2881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 ac_cv_prog_ac_ct_STRIP="strip"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2901 if test -n "$ac_ct_STRIP"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2903 $as_echo "$ac_ct_STRIP" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909 if test "x$ac_ct_STRIP" = x; then
2910 STRIP=":"
2911 else
2912 case $cross_compiling:$ac_tool_warned in
2913 yes:)
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 STRIP=$ac_ct_STRIP
2919 fi
2920 else
2921 STRIP="$ac_cv_prog_STRIP"
2922 fi
2923
2924 fi
2925 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2926
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2928 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2929 if test -z "$MKDIR_P"; then
2930 if test "${ac_cv_path_mkdir+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_prog in mkdir gmkdir; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2942 'mkdir (GNU coreutils) '* | \
2943 'mkdir (coreutils) '* | \
2944 'mkdir (fileutils) '4.1*)
2945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2946 break 3;;
2947 esac
2948 done
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954
2955 test -d ./--version && rmdir ./--version
2956 if test "${ac_cv_path_mkdir+set}" = set; then
2957 MKDIR_P="$ac_cv_path_mkdir -p"
2958 else
2959 # As a last resort, use the slow shell script. Don't cache a
2960 # value for MKDIR_P within a source directory, because that will
2961 # break other packages using the cache if that directory is
2962 # removed, or if the value is a relative name.
2963 MKDIR_P="$ac_install_sh -d"
2964 fi
2965 fi
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2967 $as_echo "$MKDIR_P" >&6; }
2968
2969 mkdir_p="$MKDIR_P"
2970 case $mkdir_p in
2971 [\\/$]* | ?:[\\/]*) ;;
2972 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2973 esac
2974
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977 set x ${MAKE-make}
2978 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 cat >conftest.make <<\_ACEOF
2983 SHELL = /bin/sh
2984 all:
2985 @echo '@@@%%%=$(MAKE)=@@@%%%'
2986 _ACEOF
2987 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989 *@@@%%%=?*=@@@%%%*)
2990 eval ac_cv_prog_make_${ac_make}_set=yes;;
2991 *)
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2993 esac
2994 rm -f conftest.make
2995 fi
2996 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
2999 SET_MAKE=
3000 else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002 $as_echo "no" >&6; }
3003 SET_MAKE="MAKE=${MAKE-make}"
3004 fi
3005
3006 rm -rf .tst 2>/dev/null
3007 mkdir .tst 2>/dev/null
3008 if test -d .tst; then
3009 am__leading_dot=.
3010 else
3011 am__leading_dot=_
3012 fi
3013 rmdir .tst 2>/dev/null
3014
3015 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3016 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3017 # is not polluted with repeated "-I."
3018 am__isrc=' -I$(srcdir)'
3019 # test to see if srcdir already configured
3020 if test -f $srcdir/config.status; then
3021 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3022 fi
3023 fi
3024
3025 # test whether we have cygpath
3026 if test -z "$CYGPATH_W"; then
3027 if (cygpath --version) >/dev/null 2>/dev/null; then
3028 CYGPATH_W='cygpath -w'
3029 else
3030 CYGPATH_W=echo
3031 fi
3032 fi
3033
3034
3035 # Define the identity of the package.
3036 PACKAGE=$SPL_META_NAME
3037 VERSION=$SPL_META_VERSION
3038
3039
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE "$PACKAGE"
3042 _ACEOF
3043
3044
3045 cat >>confdefs.h <<_ACEOF
3046 #define VERSION "$VERSION"
3047 _ACEOF
3048
3049 # Some tools Automake needs.
3050
3051 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052
3053
3054 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055
3056
3057 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058
3059
3060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061
3062
3063 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3064
3065 # We need awk for the "check" target. The system "awk" is bad on
3066 # some platforms.
3067 # Always define AMTAR for backward compatibility.
3068
3069 AMTAR=${AMTAR-"${am_missing_run}tar"}
3070
3071 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3072
3073
3074
3075
3076
3077 ac_config_headers="$ac_config_headers spl_config.h"
3078
3079
3080
3081 ac_ext=c
3082 ac_cpp='$CPP $CPPFLAGS'
3083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086 if test -n "$ac_tool_prefix"; then
3087 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124 fi
3125 if test -z "$ac_cv_prog_CC"; then
3126 ac_ct_CC=$CC
3127 # Extract the first word of "gcc", so it can be a program name with args.
3128 set dummy gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3144 ac_cv_prog_ac_ct_CC="gcc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167 yes:)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170 ac_tool_warned=yes ;;
3171 esac
3172 CC=$ac_ct_CC
3173 fi
3174 else
3175 CC="$ac_cv_prog_CC"
3176 fi
3177
3178 if test -z "$CC"; then
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}cc; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="${ac_tool_prefix}cc"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 fi
3218 fi
3219 if test -z "$CC"; then
3220 # Extract the first word of "cc", so it can be a program name with args.
3221 set dummy cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 ac_prog_rejected=no
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3239 ac_prog_rejected=yes
3240 continue
3241 fi
3242 ac_cv_prog_CC="cc"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 if test $ac_prog_rejected = yes; then
3251 # We found a bogon in the path, so make sure we never use it.
3252 set dummy $ac_cv_prog_CC
3253 shift
3254 if test $# != 0; then
3255 # We chose a different compiler from the bogus one.
3256 # However, it has the same basename, so the bogon will be chosen
3257 # first if we set CC to just the basename; use the full file name.
3258 shift
3259 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260 fi
3261 fi
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 fi
3275 if test -z "$CC"; then
3276 if test -n "$ac_tool_prefix"; then
3277 for ac_prog in cl.exe
3278 do
3279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309 $as_echo "$CC" >&6; }
3310 else
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 fi
3314
3315
3316 test -n "$CC" && break
3317 done
3318 fi
3319 if test -z "$CC"; then
3320 ac_ct_CC=$CC
3321 for ac_prog in cl.exe
3322 do
3323 # Extract the first word of "$ac_prog", so it can be a program name with args.
3324 set dummy $ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_ac_ct_CC="$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 $as_echo "$ac_ct_CC" >&6; }
3354 else
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 test -n "$ac_ct_CC" && break
3361 done
3362
3363 if test "x$ac_ct_CC" = x; then
3364 CC=""
3365 else
3366 case $cross_compiling:$ac_tool_warned in
3367 yes:)
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370 ac_tool_warned=yes ;;
3371 esac
3372 CC=$ac_ct_CC
3373 fi
3374 fi
3375
3376 fi
3377
3378
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5 ; }
3383
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3386 set X $ac_compile
3387 ac_compiler=$2
3388 for ac_option in --version -v -V -qversion; do
3389 { { ac_try="$ac_compiler $ac_option >&5"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3397 ac_status=$?
3398 if test -s conftest.err; then
3399 sed '10a\
3400 ... rest of stderr output deleted ...
3401 10q' conftest.err >conftest.er1
3402 cat conftest.er1 >&5
3403 fi
3404 rm -f conftest.er1 conftest.err
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 done
3408
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main ()
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3424 # of exeext.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3428
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3431
3432 ac_rmfiles=
3433 for ac_file in $ac_files
3434 do
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3438 esac
3439 done
3440 rm -f $ac_rmfiles
3441
3442 if { { ac_try="$ac_link_default"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link_default") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3457 # Autoconf.
3458 for ac_file in $ac_files ''
3459 do
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3463 ;;
3464 [ab].out )
3465 # We found the default executable, but exeext='' is most
3466 # certainly right.
3467 break;;
3468 *.* )
3469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3470 then :; else
3471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472 fi
3473 # We set ac_cv_exeext here because the later test for it is not
3474 # safe: cross compilers may not add the suffix if given an `-o'
3475 # argument, so we may need to know it at that point already.
3476 # Even if this section looks crufty: it has the advantage of
3477 # actually working.
3478 break;;
3479 * )
3480 break;;
3481 esac
3482 done
3483 test "$ac_cv_exeext" = no && ac_cv_exeext=
3484
3485 else
3486 ac_file=''
3487 fi
3488 if test -z "$ac_file"; then :
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error 77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5 ; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501 fi
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext=$ac_cv_exeext
3507
3508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509 ac_clean_files=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try="$ac_link"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3520 ac_status=$?
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3526 # `rm'.
3527 for ac_file in conftest.exe conftest conftest.*; do
3528 test -f "$ac_file" || continue
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 break;;
3533 * ) break;;
3534 esac
3535 done
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5 ; }
3541 fi
3542 rm -f conftest conftest$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3545
3546 rm -f conftest.$ac_ext
3547 EXEEXT=$ac_cv_exeext
3548 ac_exeext=$EXEEXT
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdio.h>
3552 int
3553 main ()
3554 {
3555 FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 ac_clean_files="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568 { { ac_try="$ac_link"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 if { ac_try='./conftest$ac_cv_exeext'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3590 cross_compiling=no
3591 else
3592 if test "$cross_compiling" = maybe; then
3593 cross_compiling=yes
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3600 fi
3601 fi
3602 fi
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3605
3606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if test "${ac_cv_objext+set}" = set; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_compile") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 for ac_file in conftest.o conftest.obj conftest.*; do
3637 test -f "$ac_file" || continue;
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3641 break;;
3642 esac
3643 done
3644 else
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files: cannot compile
3651 See \`config.log' for more details" "$LINENO" 5 ; }
3652 fi
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3654 fi
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3658 ac_objext=$OBJEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670 #ifndef __GNUC__
3671 choke me
3672 #endif
3673
3674 ;
3675 return 0;
3676 }
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_compiler_gnu=yes
3680 else
3681 ac_compiler_gnu=no
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3685
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3690 GCC=yes
3691 else
3692 GCC=
3693 fi
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if test "${ac_cv_prog_cc_g+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 ac_save_c_werror_flag=$ac_c_werror_flag
3702 ac_c_werror_flag=yes
3703 ac_cv_prog_cc_g=no
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main ()
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3718 else
3719 CFLAGS=""
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732
3733 else
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742
3743 ;
3744 return 0;
3745 }
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760 CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762 if test "$GCC" = yes; then
3763 CFLAGS="-g -O2"
3764 else
3765 CFLAGS="-g"
3766 fi
3767 else
3768 if test "$GCC" = yes; then
3769 CFLAGS="-O2"
3770 else
3771 CFLAGS=
3772 fi
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 ac_cv_prog_cc_c89=no
3780 ac_save_CC=$CC
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <stdarg.h>
3784 #include <stdio.h>
3785 #include <sys/types.h>
3786 #include <sys/stat.h>
3787 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3788 struct buf { int x; };
3789 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3790 static char *e (p, i)
3791 char **p;
3792 int i;
3793 {
3794 return p[i];
3795 }
3796 static char *f (char * (*g) (char **, int), char **p, ...)
3797 {
3798 char *s;
3799 va_list v;
3800 va_start (v,p);
3801 s = g (p, va_arg (v,int));
3802 va_end (v);
3803 return s;
3804 }
3805
3806 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3807 function prototypes and stuff, but not '\xHH' hex character constants.
3808 These don't provoke an error unfortunately, instead are silently treated
3809 as 'x'. The following induces an error, until -std is added to get
3810 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3811 array size at least. It's necessary to write '\x00'==0 to get something
3812 that's true only with -std. */
3813 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814
3815 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3816 inside strings and character constants. */
3817 #define FOO(x) 'x'
3818 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819
3820 int test (int i, double x);
3821 struct s1 {int (*f) (int a);};
3822 struct s2 {int (*f) (double a);};
3823 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3824 int argc;
3825 char **argv;
3826 int
3827 main ()
3828 {
3829 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 ;
3831 return 0;
3832 }
3833 _ACEOF
3834 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 do
3837 CC="$ac_save_CC $ac_arg"
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_prog_cc_c89=$ac_arg
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext
3842 test "x$ac_cv_prog_cc_c89" != "xno" && break
3843 done
3844 rm -f conftest.$ac_ext
3845 CC=$ac_save_CC
3846
3847 fi
3848 # AC_CACHE_VAL
3849 case "x$ac_cv_prog_cc_c89" in
3850 x)
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3852 $as_echo "none needed" >&6; } ;;
3853 xno)
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3855 $as_echo "unsupported" >&6; } ;;
3856 *)
3857 CC="$CC $ac_cv_prog_cc_c89"
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3859 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 esac
3861 if test "x$ac_cv_prog_cc_c89" != xno; then :
3862
3863 fi
3864
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 DEPDIR="${am__leading_dot}deps"
3871
3872 ac_config_commands="$ac_config_commands depfiles"
3873
3874
3875 am_make=${MAKE-make}
3876 cat > confinc << 'END'
3877 am__doit:
3878 @echo this is the am__doit target
3879 .PHONY: am__doit
3880 END
3881 # If we don't find an include directive, just comment out the code.
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3883 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3884 am__include="#"
3885 am__quote=
3886 _am_result=none
3887 # First try GNU make style include.
3888 echo "include confinc" > confmf
3889 # Ignore all kinds of additional output from `make'.
3890 case `$am_make -s -f confmf 2> /dev/null` in #(
3891 *the\ am__doit\ target*)
3892 am__include=include
3893 am__quote=
3894 _am_result=GNU
3895 ;;
3896 esac
3897 # Now try BSD make style include.
3898 if test "$am__include" = "#"; then
3899 echo '.include "confinc"' > confmf
3900 case `$am_make -s -f confmf 2> /dev/null` in #(
3901 *the\ am__doit\ target*)
3902 am__include=.include
3903 am__quote="\""
3904 _am_result=BSD
3905 ;;
3906 esac
3907 fi
3908
3909
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3911 $as_echo "$_am_result" >&6; }
3912 rm -f confinc confmf
3913
3914 # Check whether --enable-dependency-tracking was given.
3915 if test "${enable_dependency_tracking+set}" = set; then :
3916 enableval=$enable_dependency_tracking;
3917 fi
3918
3919 if test "x$enable_dependency_tracking" != xno; then
3920 am_depcomp="$ac_aux_dir/depcomp"
3921 AMDEPBACKSLASH='\'
3922 fi
3923 if test "x$enable_dependency_tracking" != xno; then
3924 AMDEP_TRUE=
3925 AMDEP_FALSE='#'
3926 else
3927 AMDEP_TRUE='#'
3928 AMDEP_FALSE=
3929 fi
3930
3931
3932
3933 depcc="$CC" am_compiler_list=
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3936 $as_echo_n "checking dependency style of $depcc... " >&6; }
3937 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941 # We make a subdir and do the tests there. Otherwise we can end up
3942 # making bogus files that we don't know about and never remove. For
3943 # instance it was reported that on HP-UX the gcc test will end up
3944 # making a dummy file named `D' -- because `-MD' means `put the output
3945 # in D'.
3946 mkdir conftest.dir
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3950 cd conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3956 # directory.
3957 mkdir sub
3958
3959 am_cv_CC_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3962 fi
3963 am__universal=false
3964 case " $depcc " in #(
3965 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3966 esac
3967
3968 for depmode in $am_compiler_list; do
3969 # Setup a source with many dependencies, because some compilers
3970 # like to wrap large dependency lists on column 80 (with \), and
3971 # we should not choose a depcomp mode which is confused by this.
3972 #
3973 # We need to recreate these files for each test, as the compiler may
3974 # overwrite some of them when testing with obscure command lines.
3975 # This happens at least with the AIX C compiler.
3976 : > sub/conftest.c
3977 for i in 1 2 3 4 5 6; do
3978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3980 # Solaris 8's {/usr,}/bin/sh.
3981 touch sub/conftst$i.h
3982 done
3983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3984
3985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3986 # mode. It turns out that the SunPro C++ compiler does not properly
3987 # handle `-M -o', and we need to detect this. Also, some Intel
3988 # versions had trouble with output in subdirs
3989 am__obj=sub/conftest.${OBJEXT-o}
3990 am__minus_obj="-o $am__obj"
3991 case $depmode in
3992 gcc)
3993 # This depmode causes a compiler race in universal mode.
3994 test "$am__universal" = false || continue
3995 ;;
3996 nosideeffect)
3997 # after this tag, mechanisms are not by side-effect, so they'll
3998 # only be used when explicitly requested
3999 if test "x$enable_dependency_tracking" = xyes; then
4000 continue
4001 else
4002 break
4003 fi
4004 ;;
4005 msvisualcpp | msvcmsys)
4006 # This compiler won't grok `-c -o', but also, the minuso test has
4007 # not run yet. These depmodes are late enough in the game, and
4008 # so weak that their functioning should not be impacted.
4009 am__obj=conftest.${OBJEXT-o}
4010 am__minus_obj=
4011 ;;
4012 none) break ;;
4013 esac
4014 if depmode=$depmode \
4015 source=sub/conftest.c object=$am__obj \
4016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018 >/dev/null 2>conftest.err &&
4019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023 # icc doesn't choke on unknown options, it will just issue warnings
4024 # or remarks (even with -Werror). So we grep stderr for any message
4025 # that says an option was ignored or not supported.
4026 # When given -MP, icc 7.0 and 7.1 complain thusly:
4027 # icc: Command line warning: ignoring option '-M'; no argument required
4028 # The diagnosis changed in icc 8.0:
4029 # icc: Command line remark: option '-MP' not supported
4030 if (grep 'ignoring option' conftest.err ||
4031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032 am_cv_CC_dependencies_compiler_type=$depmode
4033 break
4034 fi
4035 fi
4036 done
4037
4038 cd ..
4039 rm -rf conftest.dir
4040 else
4041 am_cv_CC_dependencies_compiler_type=none
4042 fi
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4048
4049 if
4050 test "x$enable_dependency_tracking" != xno \
4051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4052 am__fastdepCC_TRUE=
4053 am__fastdepCC_FALSE='#'
4054 else
4055 am__fastdepCC_TRUE='#'
4056 am__fastdepCC_FALSE=
4057 fi
4058
4059
4060 case `pwd` in
4061 *\ * | *\ *)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4063 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4064 esac
4065
4066
4067
4068 macro_version='2.2.6b'
4069 macro_revision='1.3017'
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083 ltmain="$ac_aux_dir/ltmain.sh"
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4086 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4087 if test "${ac_cv_path_SED+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4091 for ac_i in 1 2 3 4 5 6 7; do
4092 ac_script="$ac_script$as_nl$ac_script"
4093 done
4094 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4095 { ac_script=; unset ac_script;}
4096 if test -z "$SED"; then
4097 ac_path_SED_found=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4101 do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_prog in sed gsed; do
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4108 # Check for GNU ac_path_SED and select it if it is found.
4109 # Check for GNU $ac_path_SED
4110 case `"$ac_path_SED" --version 2>&1` in
4111 *GNU*)
4112 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4113 *)
4114 ac_count=0
4115 $as_echo_n 0123456789 >"conftest.in"
4116 while :
4117 do
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo '' >> "conftest.nl"
4122 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4124 as_fn_arith $ac_count + 1 && ac_count=$as_val
4125 if test $ac_count -gt ${ac_path_SED_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_SED="$ac_path_SED"
4128 ac_path_SED_max=$ac_count
4129 fi
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4132 done
4133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4134 esac
4135
4136 $ac_path_SED_found && break 3
4137 done
4138 done
4139 done
4140 IFS=$as_save_IFS
4141 if test -z "$ac_cv_path_SED"; then
4142 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4143 fi
4144 else
4145 ac_cv_path_SED=$SED
4146 fi
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4150 $as_echo "$ac_cv_path_SED" >&6; }
4151 SED="$ac_cv_path_SED"
4152 rm -f conftest.sed
4153
4154 test -z "$SED" && SED=sed
4155 Xsed="$SED -e 1s/^X//"
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4168 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4169 if test "${ac_cv_path_GREP+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 if test -z "$GREP"; then
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and test for each of PROGNAME-LIST
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_prog in grep ggrep; do
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4187 *GNU*)
4188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4189 *)
4190 ac_count=0
4191 $as_echo_n 0123456789 >"conftest.in"
4192 while :
4193 do
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 $as_echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4200 as_fn_arith $ac_count + 1 && ac_count=$as_val
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP="$ac_path_GREP"
4204 ac_path_GREP_max=$ac_count
4205 fi
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4208 done
4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4210 esac
4211
4212 $ac_path_GREP_found && break 3
4213 done
4214 done
4215 done
4216 IFS=$as_save_IFS
4217 if test -z "$ac_cv_path_GREP"; then
4218 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4219 fi
4220 else
4221 ac_cv_path_GREP=$GREP
4222 fi
4223
4224 fi
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4226 $as_echo "$ac_cv_path_GREP" >&6; }
4227 GREP="$ac_cv_path_GREP"
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4231 $as_echo_n "checking for egrep... " >&6; }
4232 if test "${ac_cv_path_EGREP+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4236 then ac_cv_path_EGREP="$GREP -E"
4237 else
4238 if test -z "$EGREP"; then
4239 ac_path_EGREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in egrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4250 # Check for GNU ac_path_EGREP and select it if it is found.
4251 # Check for GNU $ac_path_EGREP
4252 case `"$ac_path_EGREP" --version 2>&1` in
4253 *GNU*)
4254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4255 *)
4256 ac_count=0
4257 $as_echo_n 0123456789 >"conftest.in"
4258 while :
4259 do
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'EGREP' >> "conftest.nl"
4264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_EGREP="$ac_path_EGREP"
4270 ac_path_EGREP_max=$ac_count
4271 fi
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4274 done
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278 $ac_path_EGREP_found && break 3
4279 done
4280 done
4281 done
4282 IFS=$as_save_IFS
4283 if test -z "$ac_cv_path_EGREP"; then
4284 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285 fi
4286 else
4287 ac_cv_path_EGREP=$EGREP
4288 fi
4289
4290 fi
4291 fi
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4293 $as_echo "$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4295
4296
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4298 $as_echo_n "checking for fgrep... " >&6; }
4299 if test "${ac_cv_path_FGREP+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4303 then ac_cv_path_FGREP="$GREP -F"
4304 else
4305 if test -z "$FGREP"; then
4306 ac_path_FGREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in fgrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4317 # Check for GNU ac_path_FGREP and select it if it is found.
4318 # Check for GNU $ac_path_FGREP
4319 case `"$ac_path_FGREP" --version 2>&1` in
4320 *GNU*)
4321 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4322 *)
4323 ac_count=0
4324 $as_echo_n 0123456789 >"conftest.in"
4325 while :
4326 do
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'FGREP' >> "conftest.nl"
4331 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 as_fn_arith $ac_count + 1 && ac_count=$as_val
4334 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_FGREP="$ac_path_FGREP"
4337 ac_path_FGREP_max=$ac_count
4338 fi
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4341 done
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 esac
4344
4345 $ac_path_FGREP_found && break 3
4346 done
4347 done
4348 done
4349 IFS=$as_save_IFS
4350 if test -z "$ac_cv_path_FGREP"; then
4351 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352 fi
4353 else
4354 ac_cv_path_FGREP=$FGREP
4355 fi
4356
4357 fi
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4360 $as_echo "$ac_cv_path_FGREP" >&6; }
4361 FGREP="$ac_cv_path_FGREP"
4362
4363
4364 test -z "$GREP" && GREP=grep
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384 # Check whether --with-gnu-ld was given.
4385 if test "${with_gnu_ld+set}" = set; then :
4386 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4387 else
4388 with_gnu_ld=no
4389 fi
4390
4391 ac_prog=ld
4392 if test "$GCC" = yes; then
4393 # Check if gcc -print-prog-name=ld gives a path.
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4395 $as_echo_n "checking for ld used by $CC... " >&6; }
4396 case $host in
4397 *-*-mingw*)
4398 # gcc leaves a trailing carriage return which upsets mingw
4399 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4400 *)
4401 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4402 esac
4403 case $ac_prog in
4404 # Accept absolute paths.
4405 [\\/]* | ?:[\\/]*)
4406 re_direlt='/[^/][^/]*/\.\./'
4407 # Canonicalize the pathname of ld
4408 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4409 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4410 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4411 done
4412 test -z "$LD" && LD="$ac_prog"
4413 ;;
4414 "")
4415 # If it fails, then pretend we aren't using GCC.
4416 ac_prog=ld
4417 ;;
4418 *)
4419 # If it is relative, then search for the first ld in PATH.
4420 with_gnu_ld=unknown
4421 ;;
4422 esac
4423 elif test "$with_gnu_ld" = yes; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4425 $as_echo_n "checking for GNU ld... " >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4428 $as_echo_n "checking for non-GNU ld... " >&6; }
4429 fi
4430 if test "${lt_cv_path_LD+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -z "$LD"; then
4434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4435 for ac_dir in $PATH; do
4436 IFS="$lt_save_ifs"
4437 test -z "$ac_dir" && ac_dir=.
4438 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4439 lt_cv_path_LD="$ac_dir/$ac_prog"
4440 # Check to see if the program is GNU ld. I'd rather use --version,
4441 # but apparently some variants of GNU ld only accept -v.
4442 # Break only if it was the GNU/non-GNU ld that we prefer.
4443 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4444 *GNU* | *'with BFD'*)
4445 test "$with_gnu_ld" != no && break
4446 ;;
4447 *)
4448 test "$with_gnu_ld" != yes && break
4449 ;;
4450 esac
4451 fi
4452 done
4453 IFS="$lt_save_ifs"
4454 else
4455 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4456 fi
4457 fi
4458
4459 LD="$lt_cv_path_LD"
4460 if test -n "$LD"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4462 $as_echo "$LD" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4466 fi
4467 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4469 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4470 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4474 case `$LD -v 2>&1 </dev/null` in
4475 *GNU* | *'with BFD'*)
4476 lt_cv_prog_gnu_ld=yes
4477 ;;
4478 *)
4479 lt_cv_prog_gnu_ld=no
4480 ;;
4481 esac
4482 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4484 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4485 with_gnu_ld=$lt_cv_prog_gnu_ld
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4496 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4497 if test "${lt_cv_path_NM+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 if test -n "$NM"; then
4501 # Let the user override the test.
4502 lt_cv_path_NM="$NM"
4503 else
4504 lt_nm_to_check="${ac_tool_prefix}nm"
4505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4506 lt_nm_to_check="$lt_nm_to_check nm"
4507 fi
4508 for lt_tmp_nm in $lt_nm_to_check; do
4509 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4511 IFS="$lt_save_ifs"
4512 test -z "$ac_dir" && ac_dir=.
4513 tmp_nm="$ac_dir/$lt_tmp_nm"
4514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4515 # Check to see if the nm accepts a BSD-compat flag.
4516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4517 # nm: unknown option "B" ignored
4518 # Tru64's nm complains that /dev/null is an invalid object file
4519 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4520 */dev/null* | *'Invalid file or object type'*)
4521 lt_cv_path_NM="$tmp_nm -B"
4522 break
4523 ;;
4524 *)
4525 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4526 */dev/null*)
4527 lt_cv_path_NM="$tmp_nm -p"
4528 break
4529 ;;
4530 *)
4531 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4532 continue # so that we can try to find one that supports BSD flags
4533 ;;
4534 esac
4535 ;;
4536 esac
4537 fi
4538 done
4539 IFS="$lt_save_ifs"
4540 done
4541 : ${lt_cv_path_NM=no}
4542 fi
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4545 $as_echo "$lt_cv_path_NM" >&6; }
4546 if test "$lt_cv_path_NM" != "no"; then
4547 NM="$lt_cv_path_NM"
4548 else
4549 # Didn't find any BSD compatible name lister, look for dumpbin.
4550 if test -n "$ac_tool_prefix"; then
4551 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4552 do
4553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$DUMPBIN"; then
4561 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 DUMPBIN=$ac_cv_prog_DUMPBIN
4581 if test -n "$DUMPBIN"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4583 $as_echo "$DUMPBIN" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 test -n "$DUMPBIN" && break
4591 done
4592 fi
4593 if test -z "$DUMPBIN"; then
4594 ac_ct_DUMPBIN=$DUMPBIN
4595 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4596 do
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$ac_ct_DUMPBIN"; then
4605 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi
4623 fi
4624 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4625 if test -n "$ac_ct_DUMPBIN"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4627 $as_echo "$ac_ct_DUMPBIN" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4631 fi
4632
4633
4634 test -n "$ac_ct_DUMPBIN" && break
4635 done
4636
4637 if test "x$ac_ct_DUMPBIN" = x; then
4638 DUMPBIN=":"
4639 else
4640 case $cross_compiling:$ac_tool_warned in
4641 yes:)
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4644 ac_tool_warned=yes ;;
4645 esac
4646 DUMPBIN=$ac_ct_DUMPBIN
4647 fi
4648 fi
4649
4650
4651 if test "$DUMPBIN" != ":"; then
4652 NM="$DUMPBIN"
4653 fi
4654 fi
4655 test -z "$NM" && NM=nm
4656
4657
4658
4659
4660
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4663 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4664 if test "${lt_cv_nm_interface+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 lt_cv_nm_interface="BSD nm"
4668 echo "int some_variable = 0;" > conftest.$ac_ext
4669 (eval echo "\"\$as_me:4669: $ac_compile\"" >&5)
4670 (eval "$ac_compile" 2>conftest.err)
4671 cat conftest.err >&5
4672 (eval echo "\"\$as_me:4672: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4674 cat conftest.err >&5
4675 (eval echo "\"\$as_me:4675: output\"" >&5)
4676 cat conftest.out >&5
4677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4678 lt_cv_nm_interface="MS dumpbin"
4679 fi
4680 rm -f conftest*
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4683 $as_echo "$lt_cv_nm_interface" >&6; }
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4686 $as_echo_n "checking whether ln -s works... " >&6; }
4687 LN_S=$as_ln_s
4688 if test "$LN_S" = "ln -s"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4690 $as_echo "yes" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4693 $as_echo "no, using $LN_S" >&6; }
4694 fi
4695
4696 # find the maximum length of command line arguments
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4698 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4699 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 i=0
4703 teststring="ABCD"
4704
4705 case $build_os in
4706 msdosdjgpp*)
4707 # On DJGPP, this test can blow up pretty badly due to problems in libc
4708 # (any single argument exceeding 2000 bytes causes a buffer overrun
4709 # during glob expansion). Even if it were fixed, the result of this
4710 # check would be larger than it should be.
4711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4712 ;;
4713
4714 gnu*)
4715 # Under GNU Hurd, this test is not required because there is
4716 # no limit to the length of command line arguments.
4717 # Libtool will interpret -1 as no limit whatsoever
4718 lt_cv_sys_max_cmd_len=-1;
4719 ;;
4720
4721 cygwin* | mingw* | cegcc*)
4722 # On Win9x/ME, this test blows up -- it succeeds, but takes
4723 # about 5 minutes as the teststring grows exponentially.
4724 # Worse, since 9x/ME are not pre-emptively multitasking,
4725 # you end up with a "frozen" computer, even though with patience
4726 # the test eventually succeeds (with a max line length of 256k).
4727 # Instead, let's just punt: use the minimum linelength reported by
4728 # all of the supported platforms: 8192 (on NT/2K/XP).
4729 lt_cv_sys_max_cmd_len=8192;
4730 ;;
4731
4732 amigaos*)
4733 # On AmigaOS with pdksh, this test takes hours, literally.
4734 # So we just punt and use a minimum line length of 8192.
4735 lt_cv_sys_max_cmd_len=8192;
4736 ;;
4737
4738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4739 # This has been around since 386BSD, at least. Likely further.
4740 if test -x /sbin/sysctl; then
4741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4742 elif test -x /usr/sbin/sysctl; then
4743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4744 else
4745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4746 fi
4747 # And add a safety zone
4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4750 ;;
4751
4752 interix*)
4753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4754 lt_cv_sys_max_cmd_len=196608
4755 ;;
4756
4757 osf*)
4758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4760 # nice to cause kernel panics so lets avoid the loop below.
4761 # First set a reasonable default.
4762 lt_cv_sys_max_cmd_len=16384
4763 #
4764 if test -x /sbin/sysconfig; then
4765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4767 esac
4768 fi
4769 ;;
4770 sco3.2v5*)
4771 lt_cv_sys_max_cmd_len=102400
4772 ;;
4773 sysv5* | sco5v6* | sysv4.2uw2*)
4774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4775 if test -n "$kargmax"; then
4776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4777 else
4778 lt_cv_sys_max_cmd_len=32768
4779 fi
4780 ;;
4781 *)
4782 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4783 if test -n "$lt_cv_sys_max_cmd_len"; then
4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4786 else
4787 # Make teststring a little bigger before we do anything with it.
4788 # a 1K string should be a reasonable start.
4789 for i in 1 2 3 4 5 6 7 8 ; do
4790 teststring=$teststring$teststring
4791 done
4792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4793 # If test is not a shell built-in, we'll probably end up computing a
4794 # maximum length that is only half of the actual maximum length, but
4795 # we can't tell.
4796 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4797 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4798 test $i != 17 # 1/2 MB should be enough
4799 do
4800 i=`expr $i + 1`
4801 teststring=$teststring$teststring
4802 done
4803 # Only check the string length outside the loop.
4804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4805 teststring=
4806 # Add a significant safety factor because C++ compilers can tack on
4807 # massive amounts of additional arguments before passing them to the
4808 # linker. It appears as though 1/2 is a usable value.
4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4810 fi
4811 ;;
4812 esac
4813
4814 fi
4815
4816 if test -n $lt_cv_sys_max_cmd_len ; then
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4818 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4819 else
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4821 $as_echo "none" >&6; }
4822 fi
4823 max_cmd_len=$lt_cv_sys_max_cmd_len
4824
4825
4826
4827
4828
4829
4830 : ${CP="cp -f"}
4831 : ${MV="mv -f"}
4832 : ${RM="rm -f"}
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4835 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4836 # Try some XSI features
4837 xsi_shell=no
4838 ( _lt_dummy="a/b/c"
4839 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4840 = c,a/b,, \
4841 && eval 'test $(( 1 + 1 )) -eq 2 \
4842 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4843 && xsi_shell=yes
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4845 $as_echo "$xsi_shell" >&6; }
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4849 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4850 lt_shell_append=no
4851 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4852 >/dev/null 2>&1 \
4853 && lt_shell_append=yes
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4855 $as_echo "$lt_shell_append" >&6; }
4856
4857
4858 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4859 lt_unset=unset
4860 else
4861 lt_unset=false
4862 fi
4863
4864
4865
4866
4867
4868 # test EBCDIC or ASCII
4869 case `echo X|tr X '\101'` in
4870 A) # ASCII based system
4871 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4872 lt_SP2NL='tr \040 \012'
4873 lt_NL2SP='tr \015\012 \040\040'
4874 ;;
4875 *) # EBCDIC based system
4876 lt_SP2NL='tr \100 \n'
4877 lt_NL2SP='tr \r\n \100\100'
4878 ;;
4879 esac
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4891 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 lt_cv_ld_reload_flag='-r'
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4898 reload_flag=$lt_cv_ld_reload_flag
4899 case $reload_flag in
4900 "" | " "*) ;;
4901 *) reload_flag=" $reload_flag" ;;
4902 esac
4903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4904 case $host_os in
4905 darwin*)
4906 if test "$GCC" = yes; then
4907 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4908 else
4909 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4910 fi
4911 ;;
4912 esac
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 if test -n "$ac_tool_prefix"; then
4923 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4924 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926 $as_echo_n "checking for $ac_word... " >&6; }
4927 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 if test -n "$OBJDUMP"; then
4931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 fi
4949 fi
4950 OBJDUMP=$ac_cv_prog_OBJDUMP
4951 if test -n "$OBJDUMP"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4953 $as_echo "$OBJDUMP" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 $as_echo "no" >&6; }
4957 fi
4958
4959
4960 fi
4961 if test -z "$ac_cv_prog_OBJDUMP"; then
4962 ac_ct_OBJDUMP=$OBJDUMP
4963 # Extract the first word of "objdump", so it can be a program name with args.
4964 set dummy objdump; ac_word=$2
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966 $as_echo_n "checking for $ac_word... " >&6; }
4967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4968 $as_echo_n "(cached) " >&6
4969 else
4970 if test -n "$ac_ct_OBJDUMP"; then
4971 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4972 else
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988 fi
4989 fi
4990 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4991 if test -n "$ac_ct_OBJDUMP"; then
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4993 $as_echo "$ac_ct_OBJDUMP" >&6; }
4994 else
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996 $as_echo "no" >&6; }
4997 fi
4998
4999 if test "x$ac_ct_OBJDUMP" = x; then
5000 OBJDUMP="false"
5001 else
5002 case $cross_compiling:$ac_tool_warned in
5003 yes:)
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006 ac_tool_warned=yes ;;
5007 esac
5008 OBJDUMP=$ac_ct_OBJDUMP
5009 fi
5010 else
5011 OBJDUMP="$ac_cv_prog_OBJDUMP"
5012 fi
5013
5014 test -z "$OBJDUMP" && OBJDUMP=objdump
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5025 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5026 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 lt_cv_file_magic_cmd='$MAGIC_CMD'
5030 lt_cv_file_magic_test_file=
5031 lt_cv_deplibs_check_method='unknown'
5032 # Need to set the preceding variable on all platforms that support
5033 # interlibrary dependencies.
5034 # 'none' -- dependencies not supported.
5035 # `unknown' -- same as none, but documents that we really don't know.
5036 # 'pass_all' -- all dependencies passed with no checks.
5037 # 'test_compile' -- check by making test program.
5038 # 'file_magic [[regex]]' -- check by looking for files in library path
5039 # which responds to the $file_magic_cmd with a given extended regex.
5040 # If you have `file' or equivalent on your system and you're not sure
5041 # whether `pass_all' will *always* work, you probably want this one.
5042
5043 case $host_os in
5044 aix[4-9]*)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
5047
5048 beos*)
5049 lt_cv_deplibs_check_method=pass_all
5050 ;;
5051
5052 bsdi[45]*)
5053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5054 lt_cv_file_magic_cmd='/usr/bin/file -L'
5055 lt_cv_file_magic_test_file=/shlib/libc.so
5056 ;;
5057
5058 cygwin*)
5059 # func_win32_libid is a shell function defined in ltmain.sh
5060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5061 lt_cv_file_magic_cmd='func_win32_libid'
5062 ;;
5063
5064 mingw* | pw32*)
5065 # Base MSYS/MinGW do not provide the 'file' command needed by
5066 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5067 # unless we find 'file', for example because we are cross-compiling.
5068 if ( file / ) >/dev/null 2>&1; then
5069 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5070 lt_cv_file_magic_cmd='func_win32_libid'
5071 else
5072 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5073 lt_cv_file_magic_cmd='$OBJDUMP -f'
5074 fi
5075 ;;
5076
5077 cegcc)
5078 # use the weaker test based on 'objdump'. See mingw*.
5079 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5080 lt_cv_file_magic_cmd='$OBJDUMP -f'
5081 ;;
5082
5083 darwin* | rhapsody*)
5084 lt_cv_deplibs_check_method=pass_all
5085 ;;
5086
5087 freebsd* | dragonfly*)
5088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089 case $host_cpu in
5090 i*86 )
5091 # Not sure whether the presence of OpenBSD here was a mistake.
5092 # Let's accept both of them until this is cleared up.
5093 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5094 lt_cv_file_magic_cmd=/usr/bin/file
5095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5096 ;;
5097 esac
5098 else
5099 lt_cv_deplibs_check_method=pass_all
5100 fi
5101 ;;
5102
5103 gnu*)
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107 hpux10.20* | hpux11*)
5108 lt_cv_file_magic_cmd=/usr/bin/file
5109 case $host_cpu in
5110 ia64*)
5111 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5112 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5113 ;;
5114 hppa*64*)
5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5116 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5117 ;;
5118 *)
5119 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5120 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5121 ;;
5122 esac
5123 ;;
5124
5125 interix[3-9]*)
5126 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5128 ;;
5129
5130 irix5* | irix6* | nonstopux*)
5131 case $LD in
5132 *-32|*"-32 ") libmagic=32-bit;;
5133 *-n32|*"-n32 ") libmagic=N32;;
5134 *-64|*"-64 ") libmagic=64-bit;;
5135 *) libmagic=never-match;;
5136 esac
5137 lt_cv_deplibs_check_method=pass_all
5138 ;;
5139
5140 # This must be Linux ELF.
5141 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5142 lt_cv_deplibs_check_method=pass_all
5143 ;;
5144
5145 netbsd* | netbsdelf*-gnu)
5146 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5148 else
5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5150 fi
5151 ;;
5152
5153 newos6*)
5154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5155 lt_cv_file_magic_cmd=/usr/bin/file
5156 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5157 ;;
5158
5159 *nto* | *qnx*)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162
5163 openbsd*)
5164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5166 else
5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5168 fi
5169 ;;
5170
5171 osf3* | osf4* | osf5*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
5174
5175 rdos*)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178
5179 solaris*)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182
5183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5184 lt_cv_deplibs_check_method=pass_all
5185 ;;
5186
5187 sysv4 | sysv4.3*)
5188 case $host_vendor in
5189 motorola)
5190 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5191 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5192 ;;
5193 ncr)
5194 lt_cv_deplibs_check_method=pass_all
5195 ;;
5196 sequent)
5197 lt_cv_file_magic_cmd='/bin/file'
5198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5199 ;;
5200 sni)
5201 lt_cv_file_magic_cmd='/bin/file'
5202 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5203 lt_cv_file_magic_test_file=/lib/libc.so
5204 ;;
5205 siemens)
5206 lt_cv_deplibs_check_method=pass_all
5207 ;;
5208 pc)
5209 lt_cv_deplibs_check_method=pass_all
5210 ;;
5211 esac
5212 ;;
5213
5214 tpf*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217 esac
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5221 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5222 file_magic_cmd=$lt_cv_file_magic_cmd
5223 deplibs_check_method=$lt_cv_deplibs_check_method
5224 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 if test -n "$ac_tool_prefix"; then
5238 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5239 set dummy ${ac_tool_prefix}ar; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if test "${ac_cv_prog_AR+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$AR"; then
5246 ac_cv_prog_AR="$AR" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_AR="${ac_tool_prefix}ar"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 AR=$ac_cv_prog_AR
5266 if test -n "$AR"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5268 $as_echo "$AR" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 fi
5276 if test -z "$ac_cv_prog_AR"; then
5277 ac_ct_AR=$AR
5278 # Extract the first word of "ar", so it can be a program name with args.
5279 set dummy ar; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$ac_ct_AR"; then
5286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_ac_ct_AR="ar"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5298 fi
5299 done
5300 done
5301 IFS=$as_save_IFS
5302
5303 fi
5304 fi
5305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5306 if test -n "$ac_ct_AR"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5308 $as_echo "$ac_ct_AR" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314 if test "x$ac_ct_AR" = x; then
5315 AR="false"
5316 else
5317 case $cross_compiling:$ac_tool_warned in
5318 yes:)
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5321 ac_tool_warned=yes ;;
5322 esac
5323 AR=$ac_ct_AR
5324 fi
5325 else
5326 AR="$ac_cv_prog_AR"
5327 fi
5328
5329 test -z "$AR" && AR=ar
5330 test -z "$AR_FLAGS" && AR_FLAGS=cru
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}strip; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_prog_STRIP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$STRIP"; then
5351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 STRIP=$ac_cv_prog_STRIP
5371 if test -n "$STRIP"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5373 $as_echo "$STRIP" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378
5379
5380 fi
5381 if test -z "$ac_cv_prog_STRIP"; then
5382 ac_ct_STRIP=$STRIP
5383 # Extract the first word of "strip", so it can be a program name with args.
5384 set dummy strip; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$ac_ct_STRIP"; then
5391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_ac_ct_STRIP="strip"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5411 if test -n "$ac_ct_STRIP"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5413 $as_echo "$ac_ct_STRIP" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5417 fi
5418
5419 if test "x$ac_ct_STRIP" = x; then
5420 STRIP=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428 STRIP=$ac_ct_STRIP
5429 fi
5430 else
5431 STRIP="$ac_cv_prog_STRIP"
5432 fi
5433
5434 test -z "$STRIP" && STRIP=:
5435
5436
5437
5438
5439
5440
5441 if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5443 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5445 $as_echo_n "checking for $ac_word... " >&6; }
5446 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5447 $as_echo_n "(cached) " >&6
5448 else
5449 if test -n "$RANLIB"; then
5450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463 done
5464 done
5465 IFS=$as_save_IFS
5466
5467 fi
5468 fi
5469 RANLIB=$ac_cv_prog_RANLIB
5470 if test -n "$RANLIB"; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5472 $as_echo "$RANLIB" >&6; }
5473 else
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 fi
5480 if test -z "$ac_cv_prog_RANLIB"; then
5481 ac_ct_RANLIB=$RANLIB
5482 # Extract the first word of "ranlib", so it can be a program name with args.
5483 set dummy ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$ac_ct_RANLIB"; then
5490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_ac_ct_RANLIB="ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503 done
5504 done
5505 IFS=$as_save_IFS
5506
5507 fi
5508 fi
5509 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5510 if test -n "$ac_ct_RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5512 $as_echo "$ac_ct_RANLIB" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5516 fi
5517
5518 if test "x$ac_ct_RANLIB" = x; then
5519 RANLIB=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522 yes:)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525 ac_tool_warned=yes ;;
5526 esac
5527 RANLIB=$ac_ct_RANLIB
5528 fi
5529 else
5530 RANLIB="$ac_cv_prog_RANLIB"
5531 fi
5532
5533 test -z "$RANLIB" && RANLIB=:
5534
5535
5536
5537
5538
5539
5540 # Determine commands to create old-style static archives.
5541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5542 old_postinstall_cmds='chmod 644 $oldlib'
5543 old_postuninstall_cmds=
5544
5545 if test -n "$RANLIB"; then
5546 case $host_os in
5547 openbsd*)
5548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5549 ;;
5550 *)
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5552 ;;
5553 esac
5554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5555 fi
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 # If no C compiler was specified, use CC.
5591 LTCC=${LTCC-"$CC"}
5592
5593 # If no C compiler flags were specified, use CFLAGS.
5594 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5595
5596 # Allow CC to be a program name with arguments.
5597 compiler=$CC
5598
5599
5600 # Check for command to grab the raw symbol name followed by C symbol from nm.
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5602 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606
5607 # These are sane defaults that work on at least a few old systems.
5608 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5609
5610 # Character class describing NM global symbol codes.
5611 symcode='[BCDEGRST]'
5612
5613 # Regexp to match symbols that can be accessed directly from C.
5614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5615
5616 # Define system-specific variables.
5617 case $host_os in
5618 aix*)
5619 symcode='[BCDT]'
5620 ;;
5621 cygwin* | mingw* | pw32* | cegcc*)
5622 symcode='[ABCDGISTW]'
5623 ;;
5624 hpux*)
5625 if test "$host_cpu" = ia64; then
5626 symcode='[ABCDEGRST]'
5627 fi
5628 ;;
5629 irix* | nonstopux*)
5630 symcode='[BCDEGRST]'
5631 ;;
5632 osf*)
5633 symcode='[BCDEGQRST]'
5634 ;;
5635 solaris*)
5636 symcode='[BDRT]'
5637 ;;
5638 sco3.2v5*)
5639 symcode='[DT]'
5640 ;;
5641 sysv4.2uw2*)
5642 symcode='[DT]'
5643 ;;
5644 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5645 symcode='[ABDT]'
5646 ;;
5647 sysv4)
5648 symcode='[DFNSTU]'
5649 ;;
5650 esac
5651
5652 # If we're using GNU nm, then use its standard symbol codes.
5653 case `$NM -V 2>&1` in
5654 *GNU* | *'with BFD'*)
5655 symcode='[ABCDGIRSTW]' ;;
5656 esac
5657
5658 # Transform an extracted symbol line into a proper C declaration.
5659 # Some systems (esp. on ia64) link data and code symbols differently,
5660 # so use this general approach.
5661 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5662
5663 # Transform an extracted symbol line into symbol name and symbol address
5664 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5666
5667 # Handle CRLF in mingw tool chain
5668 opt_cr=
5669 case $build_os in
5670 mingw*)
5671 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5672 ;;
5673 esac
5674
5675 # Try without a prefix underscore, then with it.
5676 for ac_symprfx in "" "_"; do
5677
5678 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5679 symxfrm="\\1 $ac_symprfx\\2 \\2"
5680
5681 # Write the raw and C identifiers.
5682 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5683 # Fake it for dumpbin and say T for any non-static function
5684 # and D for any global variable.
5685 # Also find C++ and __fastcall symbols from MSVC++,
5686 # which start with @ or ?.
5687 lt_cv_sys_global_symbol_pipe="$AWK '"\
5688 " {last_section=section; section=\$ 3};"\
5689 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5690 " \$ 0!~/External *\|/{next};"\
5691 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5692 " {if(hide[section]) next};"\
5693 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5694 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5695 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5696 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5697 " ' prfx=^$ac_symprfx"
5698 else
5699 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5700 fi
5701
5702 # Check to see that the pipe works correctly.
5703 pipe_works=no
5704
5705 rm -f conftest*
5706 cat > conftest.$ac_ext <<_LT_EOF
5707 #ifdef __cplusplus
5708 extern "C" {
5709 #endif
5710 char nm_test_var;
5711 void nm_test_func(void);
5712 void nm_test_func(void){}
5713 #ifdef __cplusplus
5714 }
5715 #endif
5716 int main(){nm_test_var='a';nm_test_func();return(0);}
5717 _LT_EOF
5718
5719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5720 (eval $ac_compile) 2>&5
5721 ac_status=$?
5722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5723 test $ac_status = 0; }; then
5724 # Now try to grab the symbols.
5725 nlist=conftest.nm
5726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5727 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; } && test -s "$nlist"; then
5731 # Try sorting and uniquifying the output.
5732 if sort "$nlist" | uniq > "$nlist"T; then
5733 mv -f "$nlist"T "$nlist"
5734 else
5735 rm -f "$nlist"T
5736 fi
5737
5738 # Make sure that we snagged all the symbols we need.
5739 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5740 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5741 cat <<_LT_EOF > conftest.$ac_ext
5742 #ifdef __cplusplus
5743 extern "C" {
5744 #endif
5745
5746 _LT_EOF
5747 # Now generate the symbol file.
5748 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5749
5750 cat <<_LT_EOF >> conftest.$ac_ext
5751
5752 /* The mapping between symbol names and symbols. */
5753 const struct {
5754 const char *name;
5755 void *address;
5756 }
5757 lt__PROGRAM__LTX_preloaded_symbols[] =
5758 {
5759 { "@PROGRAM@", (void *) 0 },
5760 _LT_EOF
5761 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5762 cat <<\_LT_EOF >> conftest.$ac_ext
5763 {0, (void *) 0}
5764 };
5765
5766 /* This works around a problem in FreeBSD linker */
5767 #ifdef FREEBSD_WORKAROUND
5768 static const void *lt_preloaded_setup() {
5769 return lt__PROGRAM__LTX_preloaded_symbols;
5770 }
5771 #endif
5772
5773 #ifdef __cplusplus
5774 }
5775 #endif
5776 _LT_EOF
5777 # Now try linking the two files.
5778 mv conftest.$ac_objext conftstm.$ac_objext
5779 lt_save_LIBS="$LIBS"
5780 lt_save_CFLAGS="$CFLAGS"
5781 LIBS="conftstm.$ac_objext"
5782 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5784 (eval $ac_link) 2>&5
5785 ac_status=$?
5786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5787 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5788 pipe_works=yes
5789 fi
5790 LIBS="$lt_save_LIBS"
5791 CFLAGS="$lt_save_CFLAGS"
5792 else
5793 echo "cannot find nm_test_func in $nlist" >&5
5794 fi
5795 else
5796 echo "cannot find nm_test_var in $nlist" >&5
5797 fi
5798 else
5799 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5800 fi
5801 else
5802 echo "$progname: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 fi
5805 rm -rf conftest* conftst*
5806
5807 # Do not use the global_symbol_pipe unless it works.
5808 if test "$pipe_works" = yes; then
5809 break
5810 else
5811 lt_cv_sys_global_symbol_pipe=
5812 fi
5813 done
5814
5815 fi
5816
5817 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5818 lt_cv_sys_global_symbol_to_cdecl=
5819 fi
5820 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5822 $as_echo "failed" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5825 $as_echo "ok" >&6; }
5826 fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850 # Check whether --enable-libtool-lock was given.
5851 if test "${enable_libtool_lock+set}" = set; then :
5852 enableval=$enable_libtool_lock;
5853 fi
5854
5855 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5856
5857 # Some flags need to be propagated to the compiler or linker for good
5858 # libtool support.
5859 case $host in
5860 ia64-*-hpux*)
5861 # Find out which ABI we are using.
5862 echo 'int i;' > conftest.$ac_ext
5863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; then
5868 case `/usr/bin/file conftest.$ac_objext` in
5869 *ELF-32*)
5870 HPUX_IA64_MODE="32"
5871 ;;
5872 *ELF-64*)
5873 HPUX_IA64_MODE="64"
5874 ;;
5875 esac
5876 fi
5877 rm -rf conftest*
5878 ;;
5879 *-*-irix6*)
5880 # Find out which ABI we are using.
5881 echo '#line 5881 "configure"' > conftest.$ac_ext
5882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5886 test $ac_status = 0; }; then
5887 if test "$lt_cv_prog_gnu_ld" = yes; then
5888 case `/usr/bin/file conftest.$ac_objext` in
5889 *32-bit*)
5890 LD="${LD-ld} -melf32bsmip"
5891 ;;
5892 *N32*)
5893 LD="${LD-ld} -melf32bmipn32"
5894 ;;
5895 *64-bit*)
5896 LD="${LD-ld} -melf64bmip"
5897 ;;
5898 esac
5899 else
5900 case `/usr/bin/file conftest.$ac_objext` in
5901 *32-bit*)
5902 LD="${LD-ld} -32"
5903 ;;
5904 *N32*)
5905 LD="${LD-ld} -n32"
5906 ;;
5907 *64-bit*)
5908 LD="${LD-ld} -64"
5909 ;;
5910 esac
5911 fi
5912 fi
5913 rm -rf conftest*
5914 ;;
5915
5916 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5917 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5918 # Find out which ABI we are using.
5919 echo 'int i;' > conftest.$ac_ext
5920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5921 (eval $ac_compile) 2>&5
5922 ac_status=$?
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5924 test $ac_status = 0; }; then
5925 case `/usr/bin/file conftest.o` in
5926 *32-bit*)
5927 case $host in
5928 x86_64-*kfreebsd*-gnu)
5929 LD="${LD-ld} -m elf_i386_fbsd"
5930 ;;
5931 x86_64-*linux*)
5932 LD="${LD-ld} -m elf_i386"
5933 ;;
5934 ppc64-*linux*|powerpc64-*linux*)
5935 LD="${LD-ld} -m elf32ppclinux"
5936 ;;
5937 s390x-*linux*)
5938 LD="${LD-ld} -m elf_s390"
5939 ;;
5940 sparc64-*linux*)
5941 LD="${LD-ld} -m elf32_sparc"
5942 ;;
5943 esac
5944 ;;
5945 *64-bit*)
5946 case $host in
5947 x86_64-*kfreebsd*-gnu)
5948 LD="${LD-ld} -m elf_x86_64_fbsd"
5949 ;;
5950 x86_64-*linux*)
5951 LD="${LD-ld} -m elf_x86_64"
5952 ;;
5953 ppc*-*linux*|powerpc*-*linux*)
5954 LD="${LD-ld} -m elf64ppc"
5955 ;;
5956 s390*-*linux*|s390*-*tpf*)
5957 LD="${LD-ld} -m elf64_s390"
5958 ;;
5959 sparc*-*linux*)
5960 LD="${LD-ld} -m elf64_sparc"
5961 ;;
5962 esac
5963 ;;
5964 esac
5965 fi
5966 rm -rf conftest*
5967 ;;
5968
5969 *-*-sco3.2v5*)
5970 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5971 SAVE_CFLAGS="$CFLAGS"
5972 CFLAGS="$CFLAGS -belf"
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5974 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5975 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 ac_ext=c
5979 ac_cpp='$CPP $CPPFLAGS'
5980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985 /* end confdefs.h. */
5986
5987 int
5988 main ()
5989 {
5990
5991 ;
5992 return 0;
5993 }
5994 _ACEOF
5995 if ac_fn_c_try_link "$LINENO"; then :
5996 lt_cv_cc_needs_belf=yes
5997 else
5998 lt_cv_cc_needs_belf=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext \
6001 conftest$ac_exeext conftest.$ac_ext
6002 ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6010 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6011 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6012 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6013 CFLAGS="$SAVE_CFLAGS"
6014 fi
6015 ;;
6016 sparc*-*solaris*)
6017 # Find out which ABI we are using.
6018 echo 'int i;' > conftest.$ac_ext
6019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6020 (eval $ac_compile) 2>&5
6021 ac_status=$?
6022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023 test $ac_status = 0; }; then
6024 case `/usr/bin/file conftest.o` in
6025 *64-bit*)
6026 case $lt_cv_prog_gnu_ld in
6027 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6028 *)
6029 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6030 LD="${LD-ld} -64"
6031 fi
6032 ;;
6033 esac
6034 ;;
6035 esac
6036 fi
6037 rm -rf conftest*
6038 ;;
6039 esac
6040
6041 need_locks="$enable_libtool_lock"
6042
6043
6044 case $host_os in
6045 rhapsody* | darwin*)
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 if test -n "$DSYMUTIL"; then
6055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6056 else
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 for as_dir in $PATH
6059 do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068 done
6069 done
6070 IFS=$as_save_IFS
6071
6072 fi
6073 fi
6074 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6075 if test -n "$DSYMUTIL"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6077 $as_echo "$DSYMUTIL" >&6; }
6078 else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6081 fi
6082
6083
6084 fi
6085 if test -z "$ac_cv_prog_DSYMUTIL"; then
6086 ac_ct_DSYMUTIL=$DSYMUTIL
6087 # Extract the first word of "dsymutil", so it can be a program name with args.
6088 set dummy dsymutil; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 if test -n "$ac_ct_DSYMUTIL"; then
6095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108 done
6109 done
6110 IFS=$as_save_IFS
6111
6112 fi
6113 fi
6114 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6115 if test -n "$ac_ct_DSYMUTIL"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6117 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6118 else
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6121 fi
6122
6123 if test "x$ac_ct_DSYMUTIL" = x; then
6124 DSYMUTIL=":"
6125 else
6126 case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6130 ac_tool_warned=yes ;;
6131 esac
6132 DSYMUTIL=$ac_ct_DSYMUTIL
6133 fi
6134 else
6135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6136 fi
6137
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$NMEDIT"; then
6147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 NMEDIT=$ac_cv_prog_NMEDIT
6167 if test -n "$NMEDIT"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6169 $as_echo "$NMEDIT" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175
6176 fi
6177 if test -z "$ac_cv_prog_NMEDIT"; then
6178 ac_ct_NMEDIT=$NMEDIT
6179 # Extract the first word of "nmedit", so it can be a program name with args.
6180 set dummy nmedit; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$ac_ct_NMEDIT"; then
6187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6207 if test -n "$ac_ct_NMEDIT"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6209 $as_echo "$ac_ct_NMEDIT" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215 if test "x$ac_ct_NMEDIT" = x; then
6216 NMEDIT=":"
6217 else
6218 case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224 NMEDIT=$ac_ct_NMEDIT
6225 fi
6226 else
6227 NMEDIT="$ac_cv_prog_NMEDIT"
6228 fi
6229
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if test "${ac_cv_prog_LIPO+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$LIPO"; then
6239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 LIPO=$ac_cv_prog_LIPO
6259 if test -n "$LIPO"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6261 $as_echo "$LIPO" >&6; }
6262 else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_LIPO"; then
6270 ac_ct_LIPO=$LIPO
6271 # Extract the first word of "lipo", so it can be a program name with args.
6272 set dummy lipo; ac_word=$2
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$ac_ct_LIPO"; then
6279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_LIPO="lipo"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6299 if test -n "$ac_ct_LIPO"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6301 $as_echo "$ac_ct_LIPO" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307 if test "x$ac_ct_LIPO" = x; then
6308 LIPO=":"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 LIPO=$ac_ct_LIPO
6317 fi
6318 else
6319 LIPO="$ac_cv_prog_LIPO"
6320 fi
6321
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6324 set dummy ${ac_tool_prefix}otool; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$OTOOL"; then
6331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 OTOOL=$ac_cv_prog_OTOOL
6351 if test -n "$OTOOL"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6353 $as_echo "$OTOOL" >&6; }
6354 else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359
6360 fi
6361 if test -z "$ac_cv_prog_OTOOL"; then
6362 ac_ct_OTOOL=$OTOOL
6363 # Extract the first word of "otool", so it can be a program name with args.
6364 set dummy otool; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$ac_ct_OTOOL"; then
6371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_ac_ct_OTOOL="otool"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388 fi
6389 fi
6390 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6391 if test -n "$ac_ct_OTOOL"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6393 $as_echo "$ac_ct_OTOOL" >&6; }
6394 else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398
6399 if test "x$ac_ct_OTOOL" = x; then
6400 OTOOL=":"
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403 yes:)
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6407 esac
6408 OTOOL=$ac_ct_OTOOL
6409 fi
6410 else
6411 OTOOL="$ac_cv_prog_OTOOL"
6412 fi
6413
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$OTOOL64"; then
6423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 OTOOL64=$ac_cv_prog_OTOOL64
6443 if test -n "$OTOOL64"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6445 $as_echo "$OTOOL64" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_OTOOL64"; then
6454 ac_ct_OTOOL64=$OTOOL64
6455 # Extract the first word of "otool64", so it can be a program name with args.
6456 set dummy otool64; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_OTOOL64"; then
6463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_OTOOL64="otool64"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6483 if test -n "$ac_ct_OTOOL64"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6485 $as_echo "$ac_ct_OTOOL64" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491 if test "x$ac_ct_OTOOL64" = x; then
6492 OTOOL64=":"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 OTOOL64=$ac_ct_OTOOL64
6501 fi
6502 else
6503 OTOOL64="$ac_cv_prog_OTOOL64"
6504 fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6533 $as_echo_n "checking for -single_module linker flag... " >&6; }
6534 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 lt_cv_apple_cc_single_mod=no
6538 if test -z "${LT_MULTI_MODULE}"; then
6539 # By default we will add the -single_module flag. You can override
6540 # by either setting the environment variable LT_MULTI_MODULE
6541 # non-empty at configure time, or by adding -multi_module to the
6542 # link flags.
6543 rm -rf libconftest.dylib*
6544 echo "int foo(void){return 1;}" > conftest.c
6545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6546 -dynamiclib -Wl,-single_module conftest.c" >&5
6547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6549 _lt_result=$?
6550 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6551 lt_cv_apple_cc_single_mod=yes
6552 else
6553 cat conftest.err >&5
6554 fi
6555 rm -rf libconftest.dylib*
6556 rm -f conftest.*
6557 fi
6558 fi
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6560 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6562 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6563 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 lt_cv_ld_exported_symbols_list=no
6567 save_LDFLAGS=$LDFLAGS
6568 echo "_main" > conftest.sym
6569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572
6573 int
6574 main ()
6575 {
6576
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582 lt_cv_ld_exported_symbols_list=yes
6583 else
6584 lt_cv_ld_exported_symbols_list=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 LDFLAGS="$save_LDFLAGS"
6589
6590 fi
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6592 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6593 case $host_os in
6594 rhapsody* | darwin1.[012])
6595 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6596 darwin1.*)
6597 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6598 darwin*) # darwin 5.x on
6599 # if running on 10.5 or later, the deployment target defaults
6600 # to the OS version, if on x86, and 10.4, the deployment
6601 # target defaults to 10.4. Don't you love it?
6602 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6603 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6604 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6605 10.[012]*)
6606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6607 10.*)
6608 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6609 esac
6610 ;;
6611 esac
6612 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6613 _lt_dar_single_mod='$single_module'
6614 fi
6615 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6616 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6617 else
6618 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6619 fi
6620 if test "$DSYMUTIL" != ":"; then
6621 _lt_dsymutil='~$DSYMUTIL $lib || :'
6622 else
6623 _lt_dsymutil=
6624 fi
6625 ;;
6626 esac
6627
6628 ac_ext=c
6629 ac_cpp='$CPP $CPPFLAGS'
6630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6635 # On Suns, sometimes $CPP names a directory.
6636 if test -n "$CPP" && test -d "$CPP"; then
6637 CPP=
6638 fi
6639 if test -z "$CPP"; then
6640 if test "${ac_cv_prog_CPP+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 # Double quotes because CPP needs to be expanded
6644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6645 do
6646 ac_preproc_ok=false
6647 for ac_c_preproc_warn_flag in '' yes
6648 do
6649 # Use a header file that comes with gcc, so configuring glibc
6650 # with a fresh cross-compiler works.
6651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6652 # <limits.h> exists even on freestanding compilers.
6653 # On the NeXT, cc -E runs the code through the compiler's parser,
6654 # not just through cpp. "Syntax error" is here to catch this case.
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #ifdef __STDC__
6658 # include <limits.h>
6659 #else
6660 # include <assert.h>
6661 #endif
6662 Syntax error
6663 _ACEOF
6664 if ac_fn_c_try_cpp "$LINENO"; then :
6665
6666 else
6667 # Broken: fails on valid input.
6668 continue
6669 fi
6670 rm -f conftest.err conftest.i conftest.$ac_ext
6671
6672 # OK, works on sane cases. Now check whether nonexistent headers
6673 # can be detected and how.
6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675 /* end confdefs.h. */
6676 #include <ac_nonexistent.h>
6677 _ACEOF
6678 if ac_fn_c_try_cpp "$LINENO"; then :
6679 # Broken: success on invalid input.
6680 continue
6681 else
6682 # Passes both tests.
6683 ac_preproc_ok=:
6684 break
6685 fi
6686 rm -f conftest.err conftest.i conftest.$ac_ext
6687
6688 done
6689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6690 rm -f conftest.i conftest.err conftest.$ac_ext
6691 if $ac_preproc_ok; then :
6692 break
6693 fi
6694
6695 done
6696 ac_cv_prog_CPP=$CPP
6697
6698 fi
6699 CPP=$ac_cv_prog_CPP
6700 else
6701 ac_cv_prog_CPP=$CPP
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6704 $as_echo "$CPP" >&6; }
6705 ac_preproc_ok=false
6706 for ac_c_preproc_warn_flag in '' yes
6707 do
6708 # Use a header file that comes with gcc, so configuring glibc
6709 # with a fresh cross-compiler works.
6710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711 # <limits.h> exists even on freestanding compilers.
6712 # On the NeXT, cc -E runs the code through the compiler's parser,
6713 # not just through cpp. "Syntax error" is here to catch this case.
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716 #ifdef __STDC__
6717 # include <limits.h>
6718 #else
6719 # include <assert.h>
6720 #endif
6721 Syntax error
6722 _ACEOF
6723 if ac_fn_c_try_cpp "$LINENO"; then :
6724
6725 else
6726 # Broken: fails on valid input.
6727 continue
6728 fi
6729 rm -f conftest.err conftest.i conftest.$ac_ext
6730
6731 # OK, works on sane cases. Now check whether nonexistent headers
6732 # can be detected and how.
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <ac_nonexistent.h>
6736 _ACEOF
6737 if ac_fn_c_try_cpp "$LINENO"; then :
6738 # Broken: success on invalid input.
6739 continue
6740 else
6741 # Passes both tests.
6742 ac_preproc_ok=:
6743 break
6744 fi
6745 rm -f conftest.err conftest.i conftest.$ac_ext
6746
6747 done
6748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6749 rm -f conftest.i conftest.err conftest.$ac_ext
6750 if $ac_preproc_ok; then :
6751
6752 else
6753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6756 See \`config.log' for more details" "$LINENO" 5 ; }
6757 fi
6758
6759 ac_ext=c
6760 ac_cpp='$CPP $CPPFLAGS'
6761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6764
6765
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6767 $as_echo_n "checking for ANSI C header files... " >&6; }
6768 if test "${ac_cv_header_stdc+set}" = set; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773 #include <stdlib.h>
6774 #include <stdarg.h>
6775 #include <string.h>
6776 #include <float.h>
6777
6778 int
6779 main ()
6780 {
6781
6782 ;
6783 return 0;
6784 }
6785 _ACEOF
6786 if ac_fn_c_try_compile "$LINENO"; then :
6787 ac_cv_header_stdc=yes
6788 else
6789 ac_cv_header_stdc=no
6790 fi
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 if test $ac_cv_header_stdc = yes; then
6794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 #include <string.h>
6798
6799 _ACEOF
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801 $EGREP "memchr" >/dev/null 2>&1; then :
6802
6803 else
6804 ac_cv_header_stdc=no
6805 fi
6806 rm -f conftest*
6807
6808 fi
6809
6810 if test $ac_cv_header_stdc = yes; then
6811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814 #include <stdlib.h>
6815
6816 _ACEOF
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 $EGREP "free" >/dev/null 2>&1; then :
6819
6820 else
6821 ac_cv_header_stdc=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826
6827 if test $ac_cv_header_stdc = yes; then
6828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6829 if test "$cross_compiling" = yes; then :
6830 :
6831 else
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <ctype.h>
6835 #include <stdlib.h>
6836 #if ((' ' & 0x0FF) == 0x020)
6837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6839 #else
6840 # define ISLOWER(c) \
6841 (('a' <= (c) && (c) <= 'i') \
6842 || ('j' <= (c) && (c) <= 'r') \
6843 || ('s' <= (c) && (c) <= 'z'))
6844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6845 #endif
6846
6847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6848 int
6849 main ()
6850 {
6851 int i;
6852 for (i = 0; i < 256; i++)
6853 if (XOR (islower (i), ISLOWER (i))
6854 || toupper (i) != TOUPPER (i))
6855 return 2;
6856 return 0;
6857 }
6858 _ACEOF
6859 if ac_fn_c_try_run "$LINENO"; then :
6860
6861 else
6862 ac_cv_header_stdc=no
6863 fi
6864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6865 conftest.$ac_objext conftest.beam conftest.$ac_ext
6866 fi
6867
6868 fi
6869 fi
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6871 $as_echo "$ac_cv_header_stdc" >&6; }
6872 if test $ac_cv_header_stdc = yes; then
6873
6874 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6875
6876 fi
6877
6878 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6880 inttypes.h stdint.h unistd.h
6881 do :
6882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6883 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6884 "
6885 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6886 cat >>confdefs.h <<_ACEOF
6887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6888 _ACEOF
6889
6890 fi
6891
6892 done
6893
6894
6895 for ac_header in dlfcn.h
6896 do :
6897 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6898 "
6899 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DLFCN_H 1
6902 _ACEOF
6903
6904 fi
6905
6906 done
6907
6908
6909
6910 # Set options
6911
6912
6913
6914 enable_dlopen=no
6915
6916
6917 enable_win32_dll=no
6918
6919
6920 # Check whether --enable-shared was given.
6921 if test "${enable_shared+set}" = set; then :
6922 enableval=$enable_shared; p=${PACKAGE-default}
6923 case $enableval in
6924 yes) enable_shared=yes ;;
6925 no) enable_shared=no ;;
6926 *)
6927 enable_shared=no
6928 # Look at the argument we got. We use all the common list separators.
6929 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6930 for pkg in $enableval; do
6931 IFS="$lt_save_ifs"
6932 if test "X$pkg" = "X$p"; then
6933 enable_shared=yes
6934 fi
6935 done
6936 IFS="$lt_save_ifs"
6937 ;;
6938 esac
6939 else
6940 enable_shared=yes
6941 fi
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 # Check whether --enable-static was given.
6952 if test "${enable_static+set}" = set; then :
6953 enableval=$enable_static; p=${PACKAGE-default}
6954 case $enableval in
6955 yes) enable_static=yes ;;
6956 no) enable_static=no ;;
6957 *)
6958 enable_static=no
6959 # Look at the argument we got. We use all the common list separators.
6960 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6961 for pkg in $enableval; do
6962 IFS="$lt_save_ifs"
6963 if test "X$pkg" = "X$p"; then
6964 enable_static=yes
6965 fi
6966 done
6967 IFS="$lt_save_ifs"
6968 ;;
6969 esac
6970 else
6971 enable_static=yes
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 # Check whether --with-pic was given.
6984 if test "${with_pic+set}" = set; then :
6985 withval=$with_pic; pic_mode="$withval"
6986 else
6987 pic_mode=default
6988 fi
6989
6990
6991 test -z "$pic_mode" && pic_mode=default
6992
6993
6994
6995
6996
6997
6998
6999 # Check whether --enable-fast-install was given.
7000 if test "${enable_fast_install+set}" = set; then :
7001 enableval=$enable_fast_install; p=${PACKAGE-default}
7002 case $enableval in
7003 yes) enable_fast_install=yes ;;
7004 no) enable_fast_install=no ;;
7005 *)
7006 enable_fast_install=no
7007 # Look at the argument we got. We use all the common list separators.
7008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7009 for pkg in $enableval; do
7010 IFS="$lt_save_ifs"
7011 if test "X$pkg" = "X$p"; then
7012 enable_fast_install=yes
7013 fi
7014 done
7015 IFS="$lt_save_ifs"
7016 ;;
7017 esac
7018 else
7019 enable_fast_install=yes
7020 fi
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032 # This can be used to rebuild libtool when needed
7033 LIBTOOL_DEPS="$ltmain"
7034
7035 # Always use our own libtool.
7036 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 test -z "$LN_S" && LN_S="ln -s"
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 if test -n "${ZSH_VERSION+set}" ; then
7078 setopt NO_GLOB_SUBST
7079 fi
7080
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7082 $as_echo_n "checking for objdir... " >&6; }
7083 if test "${lt_cv_objdir+set}" = set; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 rm -f .libs 2>/dev/null
7087 mkdir .libs 2>/dev/null
7088 if test -d .libs; then
7089 lt_cv_objdir=.libs
7090 else
7091 # MS-DOS does not allow filenames that begin with a dot.
7092 lt_cv_objdir=_libs
7093 fi
7094 rmdir .libs 2>/dev/null
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7097 $as_echo "$lt_cv_objdir" >&6; }
7098 objdir=$lt_cv_objdir
7099
7100
7101
7102
7103
7104 cat >>confdefs.h <<_ACEOF
7105 #define LT_OBJDIR "$lt_cv_objdir/"
7106 _ACEOF
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 case $host_os in
7125 aix3*)
7126 # AIX sometimes has problems with the GCC collect2 program. For some
7127 # reason, if we set the COLLECT_NAMES environment variable, the problems
7128 # vanish in a puff of smoke.
7129 if test "X${COLLECT_NAMES+set}" != Xset; then
7130 COLLECT_NAMES=
7131 export COLLECT_NAMES
7132 fi
7133 ;;
7134 esac
7135
7136 # Sed substitution that helps us do robust quoting. It backslashifies
7137 # metacharacters that are still active within double-quoted strings.
7138 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7139
7140 # Same as above, but do not quote variable references.
7141 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7142
7143 # Sed substitution to delay expansion of an escaped shell variable in a
7144 # double_quote_subst'ed string.
7145 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7146
7147 # Sed substitution to delay expansion of an escaped single quote.
7148 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7149
7150 # Sed substitution to avoid accidental globbing in evaled expressions
7151 no_glob_subst='s/\*/\\\*/g'
7152
7153 # Global variables:
7154 ofile=libtool
7155 can_build_shared=yes
7156
7157 # All known linkers require a `.a' archive for static linking (except MSVC,
7158 # which needs '.lib').
7159 libext=a
7160
7161 with_gnu_ld="$lt_cv_prog_gnu_ld"
7162
7163 old_CC="$CC"
7164 old_CFLAGS="$CFLAGS"
7165
7166 # Set sane defaults for various variables
7167 test -z "$CC" && CC=cc
7168 test -z "$LTCC" && LTCC=$CC
7169 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7170 test -z "$LD" && LD=ld
7171 test -z "$ac_objext" && ac_objext=o
7172
7173 for cc_temp in $compiler""; do
7174 case $cc_temp in
7175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7177 \-*) ;;
7178 *) break;;
7179 esac
7180 done
7181 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7182
7183
7184 # Only perform the check for file, if the check method requires it
7185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7186 case $deplibs_check_method in
7187 file_magic*)
7188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7190 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 case $MAGIC_CMD in
7195 [\\/*] | ?:[\\/]*)
7196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7197 ;;
7198 *)
7199 lt_save_MAGIC_CMD="$MAGIC_CMD"
7200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7202 for ac_dir in $ac_dummy; do
7203 IFS="$lt_save_ifs"
7204 test -z "$ac_dir" && ac_dir=.
7205 if test -f $ac_dir/${ac_tool_prefix}file; then
7206 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7207 if test -n "$file_magic_test_file"; then
7208 case $deplibs_check_method in
7209 "file_magic "*)
7210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7213 $EGREP "$file_magic_regex" > /dev/null; then
7214 :
7215 else
7216 cat <<_LT_EOF 1>&2
7217
7218 *** Warning: the command libtool uses to detect shared libraries,
7219 *** $file_magic_cmd, produces output that libtool cannot recognize.
7220 *** The result is that libtool may fail to recognize shared libraries
7221 *** as such. This will affect the creation of libtool libraries that
7222 *** depend on shared libraries, but programs linked with such libtool
7223 *** libraries will work regardless of this problem. Nevertheless, you
7224 *** may want to report the problem to your system manager and/or to
7225 *** bug-libtool@gnu.org
7226
7227 _LT_EOF
7228 fi ;;
7229 esac
7230 fi
7231 break
7232 fi
7233 done
7234 IFS="$lt_save_ifs"
7235 MAGIC_CMD="$lt_save_MAGIC_CMD"
7236 ;;
7237 esac
7238 fi
7239
7240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7241 if test -n "$MAGIC_CMD"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7243 $as_echo "$MAGIC_CMD" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250
7251
7252
7253 if test -z "$lt_cv_path_MAGIC_CMD"; then
7254 if test -n "$ac_tool_prefix"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7256 $as_echo_n "checking for file... " >&6; }
7257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 case $MAGIC_CMD in
7261 [\\/*] | ?:[\\/]*)
7262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7263 ;;
7264 *)
7265 lt_save_MAGIC_CMD="$MAGIC_CMD"
7266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7268 for ac_dir in $ac_dummy; do
7269 IFS="$lt_save_ifs"
7270 test -z "$ac_dir" && ac_dir=.
7271 if test -f $ac_dir/file; then
7272 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7273 if test -n "$file_magic_test_file"; then
7274 case $deplibs_check_method in
7275 "file_magic "*)
7276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7279 $EGREP "$file_magic_regex" > /dev/null; then
7280 :
7281 else
7282 cat <<_LT_EOF 1>&2
7283
7284 *** Warning: the command libtool uses to detect shared libraries,
7285 *** $file_magic_cmd, produces output that libtool cannot recognize.
7286 *** The result is that libtool may fail to recognize shared libraries
7287 *** as such. This will affect the creation of libtool libraries that
7288 *** depend on shared libraries, but programs linked with such libtool
7289 *** libraries will work regardless of this problem. Nevertheless, you
7290 *** may want to report the problem to your system manager and/or to
7291 *** bug-libtool@gnu.org
7292
7293 _LT_EOF
7294 fi ;;
7295 esac
7296 fi
7297 break
7298 fi
7299 done
7300 IFS="$lt_save_ifs"
7301 MAGIC_CMD="$lt_save_MAGIC_CMD"
7302 ;;
7303 esac
7304 fi
7305
7306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7307 if test -n "$MAGIC_CMD"; then
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7309 $as_echo "$MAGIC_CMD" >&6; }
7310 else
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315
7316 else
7317 MAGIC_CMD=:
7318 fi
7319 fi
7320
7321 fi
7322 ;;
7323 esac
7324
7325 # Use C for the default configuration in the libtool script
7326
7327 lt_save_CC="$CC"
7328 ac_ext=c
7329 ac_cpp='$CPP $CPPFLAGS'
7330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7333
7334
7335 # Source file extension for C test sources.
7336 ac_ext=c
7337
7338 # Object file extension for compiled C test sources.
7339 objext=o
7340 objext=$objext
7341
7342 # Code to be used in simple compile tests
7343 lt_simple_compile_test_code="int some_variable = 0;"
7344
7345 # Code to be used in simple link tests
7346 lt_simple_link_test_code='int main(){return(0);}'
7347
7348
7349
7350
7351
7352
7353
7354 # If no C compiler was specified, use CC.
7355 LTCC=${LTCC-"$CC"}
7356
7357 # If no C compiler flags were specified, use CFLAGS.
7358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7359
7360 # Allow CC to be a program name with arguments.
7361 compiler=$CC
7362
7363 # Save the default compiler, since it gets overwritten when the other
7364 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7365 compiler_DEFAULT=$CC
7366
7367 # save warnings/boilerplate of simple test code
7368 ac_outfile=conftest.$ac_objext
7369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7371 _lt_compiler_boilerplate=`cat conftest.err`
7372 $RM conftest*
7373
7374 ac_outfile=conftest.$ac_objext
7375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7377 _lt_linker_boilerplate=`cat conftest.err`
7378 $RM -r conftest*
7379
7380
7381 ## CAVEAT EMPTOR:
7382 ## There is no encapsulation within the following macros, do not change
7383 ## the running order or otherwise move them around unless you know exactly
7384 ## what you are doing...
7385 if test -n "$compiler"; then
7386
7387 lt_prog_compiler_no_builtin_flag=
7388
7389 if test "$GCC" = yes; then
7390 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7393 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 lt_cv_prog_compiler_rtti_exceptions=no
7398 ac_outfile=conftest.$ac_objext
7399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7400 lt_compiler_flag="-fno-rtti -fno-exceptions"
7401 # Insert the option either (1) after the last *FLAGS variable, or
7402 # (2) before a word containing "conftest.", or (3) at the end.
7403 # Note that $ac_compile itself does not contain backslashes and begins
7404 # with a dollar sign (not a hyphen), so the echo should work correctly.
7405 # The option is referenced via a variable to avoid confusing sed.
7406 lt_compile=`echo "$ac_compile" | $SED \
7407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7409 -e 's:$: $lt_compiler_flag:'`
7410 (eval echo "\"\$as_me:7410: $lt_compile\"" >&5)
7411 (eval "$lt_compile" 2>conftest.err)
7412 ac_status=$?
7413 cat conftest.err >&5
7414 echo "$as_me:7414: \$? = $ac_status" >&5
7415 if (exit $ac_status) && test -s "$ac_outfile"; then
7416 # The compiler can only warn and ignore the option if not recognized
7417 # So say no if there are warnings other than the usual output.
7418 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7421 lt_cv_prog_compiler_rtti_exceptions=yes
7422 fi
7423 fi
7424 $RM conftest*
7425
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7428 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7429
7430 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7431 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7432 else
7433 :
7434 fi
7435
7436 fi
7437
7438
7439
7440
7441
7442
7443 lt_prog_compiler_wl=
7444 lt_prog_compiler_pic=
7445 lt_prog_compiler_static=
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7448 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7449
7450 if test "$GCC" = yes; then
7451 lt_prog_compiler_wl='-Wl,'
7452 lt_prog_compiler_static='-static'
7453
7454 case $host_os in
7455 aix*)
7456 # All AIX code is PIC.
7457 if test "$host_cpu" = ia64; then
7458 # AIX 5 now supports IA64 processor
7459 lt_prog_compiler_static='-Bstatic'
7460 fi
7461 ;;
7462
7463 amigaos*)
7464 case $host_cpu in
7465 powerpc)
7466 # see comment about AmigaOS4 .so support
7467 lt_prog_compiler_pic='-fPIC'
7468 ;;
7469 m68k)
7470 # FIXME: we need at least 68020 code to build shared libraries, but
7471 # adding the `-m68020' flag to GCC prevents building anything better,
7472 # like `-m68040'.
7473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7474 ;;
7475 esac
7476 ;;
7477
7478 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7479 # PIC is the default for these OSes.
7480 ;;
7481
7482 mingw* | cygwin* | pw32* | os2* | cegcc*)
7483 # This hack is so that the source file can tell whether it is being
7484 # built for inclusion in a dll (and should export symbols for example).
7485 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7486 # (--disable-auto-import) libraries
7487 lt_prog_compiler_pic='-DDLL_EXPORT'
7488 ;;
7489
7490 darwin* | rhapsody*)
7491 # PIC is the default on this platform
7492 # Common symbols not allowed in MH_DYLIB files
7493 lt_prog_compiler_pic='-fno-common'
7494 ;;
7495
7496 hpux*)
7497 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7498 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7499 # sets the default TLS model and affects inlining.
7500 case $host_cpu in
7501 hppa*64*)
7502 # +Z the default
7503 ;;
7504 *)
7505 lt_prog_compiler_pic='-fPIC'
7506 ;;
7507 esac
7508 ;;
7509
7510 interix[3-9]*)
7511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7512 # Instead, we relocate shared libraries at runtime.
7513 ;;
7514
7515 msdosdjgpp*)
7516 # Just because we use GCC doesn't mean we suddenly get shared libraries
7517 # on systems that don't support them.
7518 lt_prog_compiler_can_build_shared=no
7519 enable_shared=no
7520 ;;
7521
7522 *nto* | *qnx*)
7523 # QNX uses GNU C++, but need to define -shared option too, otherwise
7524 # it will coredump.
7525 lt_prog_compiler_pic='-fPIC -shared'
7526 ;;
7527
7528 sysv4*MP*)
7529 if test -d /usr/nec; then
7530 lt_prog_compiler_pic=-Kconform_pic
7531 fi
7532 ;;
7533
7534 *)
7535 lt_prog_compiler_pic='-fPIC'
7536 ;;
7537 esac
7538 else
7539 # PORTME Check for flag to pass linker flags through the system compiler.
7540 case $host_os in
7541 aix*)
7542 lt_prog_compiler_wl='-Wl,'
7543 if test "$host_cpu" = ia64; then
7544 # AIX 5 now supports IA64 processor
7545 lt_prog_compiler_static='-Bstatic'
7546 else
7547 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7548 fi
7549 ;;
7550
7551 mingw* | cygwin* | pw32* | os2* | cegcc*)
7552 # This hack is so that the source file can tell whether it is being
7553 # built for inclusion in a dll (and should export symbols for example).
7554 lt_prog_compiler_pic='-DDLL_EXPORT'
7555 ;;
7556
7557 hpux9* | hpux10* | hpux11*)
7558 lt_prog_compiler_wl='-Wl,'
7559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560 # not for PA HP-UX.
7561 case $host_cpu in
7562 hppa*64*|ia64*)
7563 # +Z the default
7564 ;;
7565 *)
7566 lt_prog_compiler_pic='+Z'
7567 ;;
7568 esac
7569 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7570 lt_prog_compiler_static='${wl}-a ${wl}archive'
7571 ;;
7572
7573 irix5* | irix6* | nonstopux*)
7574 lt_prog_compiler_wl='-Wl,'
7575 # PIC (with -KPIC) is the default.
7576 lt_prog_compiler_static='-non_shared'
7577 ;;
7578
7579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7580 case $cc_basename in
7581 # old Intel for x86_64 which still supported -KPIC.
7582 ecc*)
7583 lt_prog_compiler_wl='-Wl,'
7584 lt_prog_compiler_pic='-KPIC'
7585 lt_prog_compiler_static='-static'
7586 ;;
7587 # icc used to be incompatible with GCC.
7588 # ICC 10 doesn't accept -KPIC any more.
7589 icc* | ifort*)
7590 lt_prog_compiler_wl='-Wl,'
7591 lt_prog_compiler_pic='-fPIC'
7592 lt_prog_compiler_static='-static'
7593 ;;
7594 # Lahey Fortran 8.1.
7595 lf95*)
7596 lt_prog_compiler_wl='-Wl,'
7597 lt_prog_compiler_pic='--shared'
7598 lt_prog_compiler_static='--static'
7599 ;;
7600 pgcc* | pgf77* | pgf90* | pgf95*)
7601 # Portland Group compilers (*not* the Pentium gcc compiler,
7602 # which looks to be a dead project)
7603 lt_prog_compiler_wl='-Wl,'
7604 lt_prog_compiler_pic='-fpic'
7605 lt_prog_compiler_static='-Bstatic'
7606 ;;
7607 ccc*)
7608 lt_prog_compiler_wl='-Wl,'
7609 # All Alpha code is PIC.
7610 lt_prog_compiler_static='-non_shared'
7611 ;;
7612 xl*)
7613 # IBM XL C 8.0/Fortran 10.1 on PPC
7614 lt_prog_compiler_wl='-Wl,'
7615 lt_prog_compiler_pic='-qpic'
7616 lt_prog_compiler_static='-qstaticlink'
7617 ;;
7618 *)
7619 case `$CC -V 2>&1 | sed 5q` in
7620 *Sun\ C*)
7621 # Sun C 5.9
7622 lt_prog_compiler_pic='-KPIC'
7623 lt_prog_compiler_static='-Bstatic'
7624 lt_prog_compiler_wl='-Wl,'
7625 ;;
7626 *Sun\ F*)
7627 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7628 lt_prog_compiler_pic='-KPIC'
7629 lt_prog_compiler_static='-Bstatic'
7630 lt_prog_compiler_wl=''
7631 ;;
7632 esac
7633 ;;
7634 esac
7635 ;;
7636
7637 newsos6)
7638 lt_prog_compiler_pic='-KPIC'
7639 lt_prog_compiler_static='-Bstatic'
7640 ;;
7641
7642 *nto* | *qnx*)
7643 # QNX uses GNU C++, but need to define -shared option too, otherwise
7644 # it will coredump.
7645 lt_prog_compiler_pic='-fPIC -shared'
7646 ;;
7647
7648 osf3* | osf4* | osf5*)
7649 lt_prog_compiler_wl='-Wl,'
7650 # All OSF/1 code is PIC.
7651 lt_prog_compiler_static='-non_shared'
7652 ;;
7653
7654 rdos*)
7655 lt_prog_compiler_static='-non_shared'
7656 ;;
7657
7658 solaris*)
7659 lt_prog_compiler_pic='-KPIC'
7660 lt_prog_compiler_static='-Bstatic'
7661 case $cc_basename in
7662 f77* | f90* | f95*)
7663 lt_prog_compiler_wl='-Qoption ld ';;
7664 *)
7665 lt_prog_compiler_wl='-Wl,';;
7666 esac
7667 ;;
7668
7669 sunos4*)
7670 lt_prog_compiler_wl='-Qoption ld '
7671 lt_prog_compiler_pic='-PIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 ;;
7674
7675 sysv4 | sysv4.2uw2* | sysv4.3*)
7676 lt_prog_compiler_wl='-Wl,'
7677 lt_prog_compiler_pic='-KPIC'
7678 lt_prog_compiler_static='-Bstatic'
7679 ;;
7680
7681 sysv4*MP*)
7682 if test -d /usr/nec ;then
7683 lt_prog_compiler_pic='-Kconform_pic'
7684 lt_prog_compiler_static='-Bstatic'
7685 fi
7686 ;;
7687
7688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7689 lt_prog_compiler_wl='-Wl,'
7690 lt_prog_compiler_pic='-KPIC'
7691 lt_prog_compiler_static='-Bstatic'
7692 ;;
7693
7694 unicos*)
7695 lt_prog_compiler_wl='-Wl,'
7696 lt_prog_compiler_can_build_shared=no
7697 ;;
7698
7699 uts4*)
7700 lt_prog_compiler_pic='-pic'
7701 lt_prog_compiler_static='-Bstatic'
7702 ;;
7703
7704 *)
7705 lt_prog_compiler_can_build_shared=no
7706 ;;
7707 esac
7708 fi
7709
7710 case $host_os in
7711 # For platforms which do not support PIC, -DPIC is meaningless:
7712 *djgpp*)
7713 lt_prog_compiler_pic=
7714 ;;
7715 *)
7716 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7717 ;;
7718 esac
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7720 $as_echo "$lt_prog_compiler_pic" >&6; }
7721
7722
7723
7724
7725
7726
7727 #
7728 # Check to make sure the PIC flag actually works.
7729 #
7730 if test -n "$lt_prog_compiler_pic"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7732 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7733 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 lt_cv_prog_compiler_pic_works=no
7737 ac_outfile=conftest.$ac_objext
7738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7739 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7740 # Insert the option either (1) after the last *FLAGS variable, or
7741 # (2) before a word containing "conftest.", or (3) at the end.
7742 # Note that $ac_compile itself does not contain backslashes and begins
7743 # with a dollar sign (not a hyphen), so the echo should work correctly.
7744 # The option is referenced via a variable to avoid confusing sed.
7745 lt_compile=`echo "$ac_compile" | $SED \
7746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7748 -e 's:$: $lt_compiler_flag:'`
7749 (eval echo "\"\$as_me:7749: $lt_compile\"" >&5)
7750 (eval "$lt_compile" 2>conftest.err)
7751 ac_status=$?
7752 cat conftest.err >&5
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 if (exit $ac_status) && test -s "$ac_outfile"; then
7755 # The compiler can only warn and ignore the option if not recognized
7756 # So say no if there are warnings other than the usual output.
7757 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7759 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7760 lt_cv_prog_compiler_pic_works=yes
7761 fi
7762 fi
7763 $RM conftest*
7764
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7767 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7768
7769 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7770 case $lt_prog_compiler_pic in
7771 "" | " "*) ;;
7772 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7773 esac
7774 else
7775 lt_prog_compiler_pic=
7776 lt_prog_compiler_can_build_shared=no
7777 fi
7778
7779 fi
7780
7781
7782
7783
7784
7785
7786 #
7787 # Check to make sure the static flag actually works.
7788 #
7789 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7791 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7792 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 lt_cv_prog_compiler_static_works=no
7796 save_LDFLAGS="$LDFLAGS"
7797 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7798 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7799 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7800 # The linker can only warn and ignore the option if not recognized
7801 # So say no if there are warnings
7802 if test -s conftest.err; then
7803 # Append any errors to the config.log.
7804 cat conftest.err 1>&5
7805 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7807 if diff conftest.exp conftest.er2 >/dev/null; then
7808 lt_cv_prog_compiler_static_works=yes
7809 fi
7810 else
7811 lt_cv_prog_compiler_static_works=yes
7812 fi
7813 fi
7814 $RM -r conftest*
7815 LDFLAGS="$save_LDFLAGS"
7816
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7819 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7820
7821 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7822 :
7823 else
7824 lt_prog_compiler_static=
7825 fi
7826
7827
7828
7829
7830
7831
7832
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7834 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7835 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 lt_cv_prog_compiler_c_o=no
7839 $RM -r conftest 2>/dev/null
7840 mkdir conftest
7841 cd conftest
7842 mkdir out
7843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7844
7845 lt_compiler_flag="-o out/conftest2.$ac_objext"
7846 # Insert the option either (1) after the last *FLAGS variable, or
7847 # (2) before a word containing "conftest.", or (3) at the end.
7848 # Note that $ac_compile itself does not contain backslashes and begins
7849 # with a dollar sign (not a hyphen), so the echo should work correctly.
7850 lt_compile=`echo "$ac_compile" | $SED \
7851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7853 -e 's:$: $lt_compiler_flag:'`
7854 (eval echo "\"\$as_me:7854: $lt_compile\"" >&5)
7855 (eval "$lt_compile" 2>out/conftest.err)
7856 ac_status=$?
7857 cat out/conftest.err >&5
7858 echo "$as_me:7858: \$? = $ac_status" >&5
7859 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7860 then
7861 # The compiler can only warn and ignore the option if not recognized
7862 # So say no if there are warnings
7863 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7866 lt_cv_prog_compiler_c_o=yes
7867 fi
7868 fi
7869 chmod u+w . 2>&5
7870 $RM conftest*
7871 # SGI C++ compiler will create directory out/ii_files/ for
7872 # template instantiation
7873 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7874 $RM out/* && rmdir out
7875 cd ..
7876 $RM -r conftest
7877 $RM conftest*
7878
7879 fi
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7881 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7882
7883
7884
7885
7886
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7889 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7890 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 lt_cv_prog_compiler_c_o=no
7894 $RM -r conftest 2>/dev/null
7895 mkdir conftest
7896 cd conftest
7897 mkdir out
7898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7899
7900 lt_compiler_flag="-o out/conftest2.$ac_objext"
7901 # Insert the option either (1) after the last *FLAGS variable, or
7902 # (2) before a word containing "conftest.", or (3) at the end.
7903 # Note that $ac_compile itself does not contain backslashes and begins
7904 # with a dollar sign (not a hyphen), so the echo should work correctly.
7905 lt_compile=`echo "$ac_compile" | $SED \
7906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7908 -e 's:$: $lt_compiler_flag:'`
7909 (eval echo "\"\$as_me:7909: $lt_compile\"" >&5)
7910 (eval "$lt_compile" 2>out/conftest.err)
7911 ac_status=$?
7912 cat out/conftest.err >&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7915 then
7916 # The compiler can only warn and ignore the option if not recognized
7917 # So say no if there are warnings
7918 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7919 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7920 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7921 lt_cv_prog_compiler_c_o=yes
7922 fi
7923 fi
7924 chmod u+w . 2>&5
7925 $RM conftest*
7926 # SGI C++ compiler will create directory out/ii_files/ for
7927 # template instantiation
7928 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7929 $RM out/* && rmdir out
7930 cd ..
7931 $RM -r conftest
7932 $RM conftest*
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7936 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7937
7938
7939
7940
7941 hard_links="nottested"
7942 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7943 # do not overwrite the value of need_locks provided by the user
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7945 $as_echo_n "checking if we can lock with hard links... " >&6; }
7946 hard_links=yes
7947 $RM conftest*
7948 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7949 touch conftest.a
7950 ln conftest.a conftest.b 2>&5 || hard_links=no
7951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7953 $as_echo "$hard_links" >&6; }
7954 if test "$hard_links" = no; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7956 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7957 need_locks=warn
7958 fi
7959 else
7960 need_locks=no
7961 fi
7962
7963
7964
7965
7966
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7969 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7970
7971 runpath_var=
7972 allow_undefined_flag=
7973 always_export_symbols=no
7974 archive_cmds=
7975 archive_expsym_cmds=
7976 compiler_needs_object=no
7977 enable_shared_with_static_runtimes=no
7978 export_dynamic_flag_spec=
7979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7980 hardcode_automatic=no
7981 hardcode_direct=no
7982 hardcode_direct_absolute=no
7983 hardcode_libdir_flag_spec=
7984 hardcode_libdir_flag_spec_ld=
7985 hardcode_libdir_separator=
7986 hardcode_minus_L=no
7987 hardcode_shlibpath_var=unsupported
7988 inherit_rpath=no
7989 link_all_deplibs=unknown
7990 module_cmds=
7991 module_expsym_cmds=
7992 old_archive_from_new_cmds=
7993 old_archive_from_expsyms_cmds=
7994 thread_safe_flag_spec=
7995 whole_archive_flag_spec=
7996 # include_expsyms should be a list of space-separated symbols to be *always*
7997 # included in the symbol list
7998 include_expsyms=
7999 # exclude_expsyms can be an extended regexp of symbols to exclude
8000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8002 # as well as any symbol that contains `d'.
8003 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8005 # platforms (ab)use it in PIC code, but their linkers get confused if
8006 # the symbol is explicitly referenced. Since portable code cannot
8007 # rely on this symbol name, it's probably fine to never include it in
8008 # preloaded symbol tables.
8009 # Exclude shared library initialization/finalization symbols.
8010 extract_expsyms_cmds=
8011
8012 case $host_os in
8013 cygwin* | mingw* | pw32* | cegcc*)
8014 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8015 # When not using gcc, we currently assume that we are using
8016 # Microsoft Visual C++.
8017 if test "$GCC" != yes; then
8018 with_gnu_ld=no
8019 fi
8020 ;;
8021 interix*)
8022 # we just hope/assume this is gcc and not c89 (= MSVC++)
8023 with_gnu_ld=yes
8024 ;;
8025 openbsd*)
8026 with_gnu_ld=no
8027 ;;
8028 linux* | k*bsd*-gnu)
8029 link_all_deplibs=no
8030 ;;
8031 esac
8032
8033 ld_shlibs=yes
8034 if test "$with_gnu_ld" = yes; then
8035 # If archive_cmds runs LD, not CC, wlarc should be empty
8036 wlarc='${wl}'
8037
8038 # Set some defaults for GNU ld with shared library support. These
8039 # are reset later if shared libraries are not supported. Putting them
8040 # here allows them to be overridden if necessary.
8041 runpath_var=LD_RUN_PATH
8042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8043 export_dynamic_flag_spec='${wl}--export-dynamic'
8044 # ancient GNU ld didn't support --whole-archive et. al.
8045 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8046 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8047 else
8048 whole_archive_flag_spec=
8049 fi
8050 supports_anon_versioning=no
8051 case `$LD -v 2>&1` in
8052 *GNU\ gold*) supports_anon_versioning=yes ;;
8053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8056 *\ 2.11.*) ;; # other 2.11 versions
8057 *) supports_anon_versioning=yes ;;
8058 esac
8059
8060 # See if GNU ld supports shared libraries.
8061 case $host_os in
8062 aix[3-9]*)
8063 # On AIX/PPC, the GNU linker is very broken
8064 if test "$host_cpu" != ia64; then
8065 ld_shlibs=no
8066 cat <<_LT_EOF 1>&2
8067
8068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8069 *** to be unable to reliably create shared libraries on AIX.
8070 *** Therefore, libtool is disabling shared libraries support. If you
8071 *** really care for shared libraries, you may want to modify your PATH
8072 *** so that a non-GNU linker is found, and then restart.
8073
8074 _LT_EOF
8075 fi
8076 ;;
8077
8078 amigaos*)
8079 case $host_cpu in
8080 powerpc)
8081 # see comment about AmigaOS4 .so support
8082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8083 archive_expsym_cmds=''
8084 ;;
8085 m68k)
8086 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8087 hardcode_libdir_flag_spec='-L$libdir'
8088 hardcode_minus_L=yes
8089 ;;
8090 esac
8091 ;;
8092
8093 beos*)
8094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8095 allow_undefined_flag=unsupported
8096 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8097 # support --undefined. This deserves some investigation. FIXME
8098 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8099 else
8100 ld_shlibs=no
8101 fi
8102 ;;
8103
8104 cygwin* | mingw* | pw32* | cegcc*)
8105 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8106 # as there is no search path for DLLs.
8107 hardcode_libdir_flag_spec='-L$libdir'
8108 allow_undefined_flag=unsupported
8109 always_export_symbols=no
8110 enable_shared_with_static_runtimes=yes
8111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8112
8113 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8115 # If the export-symbols file already is a .def file (1st line
8116 # is EXPORTS), use it as is; otherwise, prepend...
8117 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8118 cp $export_symbols $output_objdir/$soname.def;
8119 else
8120 echo EXPORTS > $output_objdir/$soname.def;
8121 cat $export_symbols >> $output_objdir/$soname.def;
8122 fi~
8123 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8124 else
8125 ld_shlibs=no
8126 fi
8127 ;;
8128
8129 interix[3-9]*)
8130 hardcode_direct=no
8131 hardcode_shlibpath_var=no
8132 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8133 export_dynamic_flag_spec='${wl}-E'
8134 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8135 # Instead, shared libraries are loaded at an image base (0x10000000 by
8136 # default) and relocated if they conflict, which is a slow very memory
8137 # consuming and fragmenting process. To avoid this, we pick a random,
8138 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8139 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8141 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8142 ;;
8143
8144 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8145 tmp_diet=no
8146 if test "$host_os" = linux-dietlibc; then
8147 case $cc_basename in
8148 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8149 esac
8150 fi
8151 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8152 && test "$tmp_diet" = no
8153 then
8154 tmp_addflag=
8155 tmp_sharedflag='-shared'
8156 case $cc_basename,$host_cpu in
8157 pgcc*) # Portland Group C compiler
8158 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8159 tmp_addflag=' $pic_flag'
8160 ;;
8161 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8162 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8163 tmp_addflag=' $pic_flag -Mnomain' ;;
8164 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8165 tmp_addflag=' -i_dynamic' ;;
8166 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8167 tmp_addflag=' -i_dynamic -nofor_main' ;;
8168 ifc* | ifort*) # Intel Fortran compiler
8169 tmp_addflag=' -nofor_main' ;;
8170 lf95*) # Lahey Fortran 8.1
8171 whole_archive_flag_spec=
8172 tmp_sharedflag='--shared' ;;
8173 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8174 tmp_sharedflag='-qmkshrobj'
8175 tmp_addflag= ;;
8176 esac
8177 case `$CC -V 2>&1 | sed 5q` in
8178 *Sun\ C*) # Sun C 5.9
8179 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8180 compiler_needs_object=yes
8181 tmp_sharedflag='-G' ;;
8182 *Sun\ F*) # Sun Fortran 8.3
8183 tmp_sharedflag='-G' ;;
8184 esac
8185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186
8187 if test "x$supports_anon_versioning" = xyes; then
8188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8190 echo "local: *; };" >> $output_objdir/$libname.ver~
8191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8192 fi
8193
8194 case $cc_basename in
8195 xlf*)
8196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8198 hardcode_libdir_flag_spec=
8199 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8200 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8201 if test "x$supports_anon_versioning" = xyes; then
8202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8204 echo "local: *; };" >> $output_objdir/$libname.ver~
8205 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8206 fi
8207 ;;
8208 esac
8209 else
8210 ld_shlibs=no
8211 fi
8212 ;;
8213
8214 netbsd* | netbsdelf*-gnu)
8215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8217 wlarc=
8218 else
8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8221 fi
8222 ;;
8223
8224 solaris*)
8225 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8226 ld_shlibs=no
8227 cat <<_LT_EOF 1>&2
8228
8229 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8230 *** create shared libraries on Solaris systems. Therefore, libtool
8231 *** is disabling shared libraries support. We urge you to upgrade GNU
8232 *** binutils to release 2.9.1 or newer. Another option is to modify
8233 *** your PATH or compiler configuration so that the native linker is
8234 *** used, and then restart.
8235
8236 _LT_EOF
8237 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8240 else
8241 ld_shlibs=no
8242 fi
8243 ;;
8244
8245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8246 case `$LD -v 2>&1` in
8247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8248 ld_shlibs=no
8249 cat <<_LT_EOF 1>&2
8250
8251 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8252 *** reliably create shared libraries on SCO systems. Therefore, libtool
8253 *** is disabling shared libraries support. We urge you to upgrade GNU
8254 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8255 *** your PATH or compiler configuration so that the native linker is
8256 *** used, and then restart.
8257
8258 _LT_EOF
8259 ;;
8260 *)
8261 # For security reasons, it is highly recommended that you always
8262 # use absolute paths for naming shared libraries, and exclude the
8263 # DT_RUNPATH tag from executables and libraries. But doing so
8264 # requires that you compile everything twice, which is a pain.
8265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8269 else
8270 ld_shlibs=no
8271 fi
8272 ;;
8273 esac
8274 ;;
8275
8276 sunos4*)
8277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8278 wlarc=
8279 hardcode_direct=yes
8280 hardcode_shlibpath_var=no
8281 ;;
8282
8283 *)
8284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291 esac
8292
8293 if test "$ld_shlibs" = no; then
8294 runpath_var=
8295 hardcode_libdir_flag_spec=
8296 export_dynamic_flag_spec=
8297 whole_archive_flag_spec=
8298 fi
8299 else
8300 # PORTME fill in a description of your system's linker (not GNU ld)
8301 case $host_os in
8302 aix3*)
8303 allow_undefined_flag=unsupported
8304 always_export_symbols=yes
8305 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8306 # Note: this linker hardcodes the directories in LIBPATH if there
8307 # are no directories specified by -L.
8308 hardcode_minus_L=yes
8309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8310 # Neither direct hardcoding nor static linking is supported with a
8311 # broken collect2.
8312 hardcode_direct=unsupported
8313 fi
8314 ;;
8315
8316 aix[4-9]*)
8317 if test "$host_cpu" = ia64; then
8318 # On IA64, the linker does run time linking by default, so we don't
8319 # have to do anything special.
8320 aix_use_runtimelinking=no
8321 exp_sym_flag='-Bexport'
8322 no_entry_flag=""
8323 else
8324 # If we're using GNU nm, then we don't want the "-C" option.
8325 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8326 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8327 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8328 else
8329 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8330 fi
8331 aix_use_runtimelinking=no
8332
8333 # Test if we are trying to use run time linking or normal
8334 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8335 # need to do runtime linking.
8336 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8337 for ld_flag in $LDFLAGS; do
8338 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8339 aix_use_runtimelinking=yes
8340 break
8341 fi
8342 done
8343 ;;
8344 esac
8345
8346 exp_sym_flag='-bexport'
8347 no_entry_flag='-bnoentry'
8348 fi
8349
8350 # When large executables or shared objects are built, AIX ld can
8351 # have problems creating the table of contents. If linking a library
8352 # or program results in "error TOC overflow" add -mminimal-toc to
8353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8355
8356 archive_cmds=''
8357 hardcode_direct=yes
8358 hardcode_direct_absolute=yes
8359 hardcode_libdir_separator=':'
8360 link_all_deplibs=yes
8361 file_list_spec='${wl}-f,'
8362
8363 if test "$GCC" = yes; then
8364 case $host_os in aix4.[012]|aix4.[012].*)
8365 # We only want to do this on AIX 4.2 and lower, the check
8366 # below for broken collect2 doesn't work under 4.3+
8367 collect2name=`${CC} -print-prog-name=collect2`
8368 if test -f "$collect2name" &&
8369 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8370 then
8371 # We have reworked collect2
8372 :
8373 else
8374 # We have old collect2
8375 hardcode_direct=unsupported
8376 # It fails to find uninstalled libraries when the uninstalled
8377 # path is not listed in the libpath. Setting hardcode_minus_L
8378 # to unsupported forces relinking
8379 hardcode_minus_L=yes
8380 hardcode_libdir_flag_spec='-L$libdir'
8381 hardcode_libdir_separator=
8382 fi
8383 ;;
8384 esac
8385 shared_flag='-shared'
8386 if test "$aix_use_runtimelinking" = yes; then
8387 shared_flag="$shared_flag "'${wl}-G'
8388 fi
8389 link_all_deplibs=no
8390 else
8391 # not using gcc
8392 if test "$host_cpu" = ia64; then
8393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8394 # chokes on -Wl,-G. The following line is correct:
8395 shared_flag='-G'
8396 else
8397 if test "$aix_use_runtimelinking" = yes; then
8398 shared_flag='${wl}-G'
8399 else
8400 shared_flag='${wl}-bM:SRE'
8401 fi
8402 fi
8403 fi
8404
8405 export_dynamic_flag_spec='${wl}-bexpall'
8406 # It seems that -bexpall does not export symbols beginning with
8407 # underscore (_), so it is better to generate a list of symbols to export.
8408 always_export_symbols=yes
8409 if test "$aix_use_runtimelinking" = yes; then
8410 # Warning - without using the other runtime loading flags (-brtl),
8411 # -berok will link without error, but may produce a broken library.
8412 allow_undefined_flag='-berok'
8413 # Determine the default libpath from the value encoded in an
8414 # empty executable.
8415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417
8418 int
8419 main ()
8420 {
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"; then :
8427
8428 lt_aix_libpath_sed='
8429 /Import File Strings/,/^$/ {
8430 /^0/ {
8431 s/^0 *\(.*\)$/\1/
8432 p
8433 }
8434 }'
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8436 # Check for a 64-bit object if we didn't find anything.
8437 if test -z "$aix_libpath"; then
8438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8439 fi
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8444
8445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8446 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8447 else
8448 if test "$host_cpu" = ia64; then
8449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8450 allow_undefined_flag="-z nodefs"
8451 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8452 else
8453 # Determine the default libpath from the value encoded in an
8454 # empty executable.
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457
8458 int
8459 main ()
8460 {
8461
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 if ac_fn_c_try_link "$LINENO"; then :
8467
8468 lt_aix_libpath_sed='
8469 /Import File Strings/,/^$/ {
8470 /^0/ {
8471 s/^0 *\(.*\)$/\1/
8472 p
8473 }
8474 }'
8475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8476 # Check for a 64-bit object if we didn't find anything.
8477 if test -z "$aix_libpath"; then
8478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8479 fi
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8484
8485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8486 # Warning - without using the other run time loading flags,
8487 # -berok will link without error, but may produce a broken library.
8488 no_undefined_flag=' ${wl}-bernotok'
8489 allow_undefined_flag=' ${wl}-berok'
8490 # Exported symbols can be pulled into shared objects from archives
8491 whole_archive_flag_spec='$convenience'
8492 archive_cmds_need_lc=yes
8493 # This is similar to how AIX traditionally builds its shared libraries.
8494 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8495 fi
8496 fi
8497 ;;
8498
8499 amigaos*)
8500 case $host_cpu in
8501 powerpc)
8502 # see comment about AmigaOS4 .so support
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds=''
8505 ;;
8506 m68k)
8507 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_minus_L=yes
8510 ;;
8511 esac
8512 ;;
8513
8514 bsdi[45]*)
8515 export_dynamic_flag_spec=-rdynamic
8516 ;;
8517
8518 cygwin* | mingw* | pw32* | cegcc*)
8519 # When not using gcc, we currently assume that we are using
8520 # Microsoft Visual C++.
8521 # hardcode_libdir_flag_spec is actually meaningless, as there is
8522 # no search path for DLLs.
8523 hardcode_libdir_flag_spec=' '
8524 allow_undefined_flag=unsupported
8525 # Tell ltmain to make .lib files, not .a files.
8526 libext=lib
8527 # Tell ltmain to make .dll files, not .so files.
8528 shrext_cmds=".dll"
8529 # FIXME: Setting linknames here is a bad hack.
8530 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8531 # The linker will automatically build a .lib file if we build a DLL.
8532 old_archive_from_new_cmds='true'
8533 # FIXME: Should let the user specify the lib program.
8534 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8535 fix_srcfile_path='`cygpath -w "$srcfile"`'
8536 enable_shared_with_static_runtimes=yes
8537 ;;
8538
8539 darwin* | rhapsody*)
8540
8541
8542 archive_cmds_need_lc=no
8543 hardcode_direct=no
8544 hardcode_automatic=yes
8545 hardcode_shlibpath_var=unsupported
8546 whole_archive_flag_spec=''
8547 link_all_deplibs=yes
8548 allow_undefined_flag="$_lt_dar_allow_undefined"
8549 case $cc_basename in
8550 ifort*) _lt_dar_can_shared=yes ;;
8551 *) _lt_dar_can_shared=$GCC ;;
8552 esac
8553 if test "$_lt_dar_can_shared" = "yes"; then
8554 output_verbose_link_cmd=echo
8555 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8556 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8557 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8558 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8559
8560 else
8561 ld_shlibs=no
8562 fi
8563
8564 ;;
8565
8566 dgux*)
8567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8568 hardcode_libdir_flag_spec='-L$libdir'
8569 hardcode_shlibpath_var=no
8570 ;;
8571
8572 freebsd1*)
8573 ld_shlibs=no
8574 ;;
8575
8576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8577 # support. Future versions do this automatically, but an explicit c++rt0.o
8578 # does not break anything, and helps significantly (at the cost of a little
8579 # extra space).
8580 freebsd2.2*)
8581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8582 hardcode_libdir_flag_spec='-R$libdir'
8583 hardcode_direct=yes
8584 hardcode_shlibpath_var=no
8585 ;;
8586
8587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8588 freebsd2*)
8589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590 hardcode_direct=yes
8591 hardcode_minus_L=yes
8592 hardcode_shlibpath_var=no
8593 ;;
8594
8595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8596 freebsd* | dragonfly*)
8597 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8598 hardcode_libdir_flag_spec='-R$libdir'
8599 hardcode_direct=yes
8600 hardcode_shlibpath_var=no
8601 ;;
8602
8603 hpux9*)
8604 if test "$GCC" = yes; then
8605 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8606 else
8607 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8608 fi
8609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8610 hardcode_libdir_separator=:
8611 hardcode_direct=yes
8612
8613 # hardcode_minus_L: Not really in the search PATH,
8614 # but as the default location of the library.
8615 hardcode_minus_L=yes
8616 export_dynamic_flag_spec='${wl}-E'
8617 ;;
8618
8619 hpux10*)
8620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8621 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8622 else
8623 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8624 fi
8625 if test "$with_gnu_ld" = no; then
8626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8627 hardcode_libdir_flag_spec_ld='+b $libdir'
8628 hardcode_libdir_separator=:
8629 hardcode_direct=yes
8630 hardcode_direct_absolute=yes
8631 export_dynamic_flag_spec='${wl}-E'
8632 # hardcode_minus_L: Not really in the search PATH,
8633 # but as the default location of the library.
8634 hardcode_minus_L=yes
8635 fi
8636 ;;
8637
8638 hpux11*)
8639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8640 case $host_cpu in
8641 hppa*64*)
8642 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643 ;;
8644 ia64*)
8645 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8646 ;;
8647 *)
8648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8649 ;;
8650 esac
8651 else
8652 case $host_cpu in
8653 hppa*64*)
8654 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8655 ;;
8656 ia64*)
8657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8658 ;;
8659 *)
8660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8661 ;;
8662 esac
8663 fi
8664 if test "$with_gnu_ld" = no; then
8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8666 hardcode_libdir_separator=:
8667
8668 case $host_cpu in
8669 hppa*64*|ia64*)
8670 hardcode_direct=no
8671 hardcode_shlibpath_var=no
8672 ;;
8673 *)
8674 hardcode_direct=yes
8675 hardcode_direct_absolute=yes
8676 export_dynamic_flag_spec='${wl}-E'
8677
8678 # hardcode_minus_L: Not really in the search PATH,
8679 # but as the default location of the library.
8680 hardcode_minus_L=yes
8681 ;;
8682 esac
8683 fi
8684 ;;
8685
8686 irix5* | irix6* | nonstopux*)
8687 if test "$GCC" = yes; then
8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8689 # Try to use the -exported_symbol ld option, if it does not
8690 # work, assume that -exports_file does not work either and
8691 # implicitly export all symbols.
8692 save_LDFLAGS="$LDFLAGS"
8693 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 int foo(void) {}
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"; then :
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8700
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LDFLAGS="$save_LDFLAGS"
8705 else
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8708 fi
8709 archive_cmds_need_lc='no'
8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711 hardcode_libdir_separator=:
8712 inherit_rpath=yes
8713 link_all_deplibs=yes
8714 ;;
8715
8716 netbsd* | netbsdelf*-gnu)
8717 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8719 else
8720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8721 fi
8722 hardcode_libdir_flag_spec='-R$libdir'
8723 hardcode_direct=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 newsos6)
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_direct=yes
8730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731 hardcode_libdir_separator=:
8732 hardcode_shlibpath_var=no
8733 ;;
8734
8735 *nto* | *qnx*)
8736 ;;
8737
8738 openbsd*)
8739 if test -f /usr/libexec/ld.so; then
8740 hardcode_direct=yes
8741 hardcode_shlibpath_var=no
8742 hardcode_direct_absolute=yes
8743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8745 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8747 export_dynamic_flag_spec='${wl}-E'
8748 else
8749 case $host_os in
8750 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752 hardcode_libdir_flag_spec='-R$libdir'
8753 ;;
8754 *)
8755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8757 ;;
8758 esac
8759 fi
8760 else
8761 ld_shlibs=no
8762 fi
8763 ;;
8764
8765 os2*)
8766 hardcode_libdir_flag_spec='-L$libdir'
8767 hardcode_minus_L=yes
8768 allow_undefined_flag=unsupported
8769 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8770 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8771 ;;
8772
8773 osf3*)
8774 if test "$GCC" = yes; then
8775 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8776 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8777 else
8778 allow_undefined_flag=' -expect_unresolved \*'
8779 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8780 fi
8781 archive_cmds_need_lc='no'
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 hardcode_libdir_separator=:
8784 ;;
8785
8786 osf4* | osf5*) # as osf3* with the addition of -msym flag
8787 if test "$GCC" = yes; then
8788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8789 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791 else
8792 allow_undefined_flag=' -expect_unresolved \*'
8793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8794 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8795 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8796
8797 # Both c and cxx compiler support -rpath directly
8798 hardcode_libdir_flag_spec='-rpath $libdir'
8799 fi
8800 archive_cmds_need_lc='no'
8801 hardcode_libdir_separator=:
8802 ;;
8803
8804 solaris*)
8805 no_undefined_flag=' -z defs'
8806 if test "$GCC" = yes; then
8807 wlarc='${wl}'
8808 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8810 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8811 else
8812 case `$CC -V 2>&1` in
8813 *"Compilers 5.0"*)
8814 wlarc=''
8815 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8816 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8817 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8818 ;;
8819 *)
8820 wlarc='${wl}'
8821 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8823 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8824 ;;
8825 esac
8826 fi
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_shlibpath_var=no
8829 case $host_os in
8830 solaris2.[0-5] | solaris2.[0-5].*) ;;
8831 *)
8832 # The compiler driver will combine and reorder linker options,
8833 # but understands `-z linker_flag'. GCC discards it without `$wl',
8834 # but is careful enough not to reorder.
8835 # Supported since Solaris 2.6 (maybe 2.5.1?)
8836 if test "$GCC" = yes; then
8837 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8838 else
8839 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8840 fi
8841 ;;
8842 esac
8843 link_all_deplibs=yes
8844 ;;
8845
8846 sunos4*)
8847 if test "x$host_vendor" = xsequent; then
8848 # Use $CC to link under sequent, because it throws in some extra .o
8849 # files that make .init and .fini sections work.
8850 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 fi
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_direct=yes
8856 hardcode_minus_L=yes
8857 hardcode_shlibpath_var=no
8858 ;;
8859
8860 sysv4)
8861 case $host_vendor in
8862 sni)
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_direct=yes # is this really true???
8865 ;;
8866 siemens)
8867 ## LD is ld it makes a PLAMLIB
8868 ## CC just makes a GrossModule.
8869 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870 reload_cmds='$CC -r -o $output$reload_objs'
8871 hardcode_direct=no
8872 ;;
8873 motorola)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876 ;;
8877 esac
8878 runpath_var='LD_RUN_PATH'
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 sysv4.3*)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='-Bexport'
8886 ;;
8887
8888 sysv4*MP*)
8889 if test -d /usr/nec; then
8890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_shlibpath_var=no
8892 runpath_var=LD_RUN_PATH
8893 hardcode_runpath_var=yes
8894 ld_shlibs=yes
8895 fi
8896 ;;
8897
8898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8899 no_undefined_flag='${wl}-z,text'
8900 archive_cmds_need_lc=no
8901 hardcode_shlibpath_var=no
8902 runpath_var='LD_RUN_PATH'
8903
8904 if test "$GCC" = yes; then
8905 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 else
8908 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 fi
8911 ;;
8912
8913 sysv5* | sco3.2v5* | sco5v6*)
8914 # Note: We can NOT use -z defs as we might desire, because we do not
8915 # link with -lc, and that would cause any symbols used from libc to
8916 # always be unresolved, which means just about no library would
8917 # ever link correctly. If we're not using GNU ld we use -z text
8918 # though, which does catch some bad symbols but isn't as heavy-handed
8919 # as -z defs.
8920 no_undefined_flag='${wl}-z,text'
8921 allow_undefined_flag='${wl}-z,nodefs'
8922 archive_cmds_need_lc=no
8923 hardcode_shlibpath_var=no
8924 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8925 hardcode_libdir_separator=':'
8926 link_all_deplibs=yes
8927 export_dynamic_flag_spec='${wl}-Bexport'
8928 runpath_var='LD_RUN_PATH'
8929
8930 if test "$GCC" = yes; then
8931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 fi
8937 ;;
8938
8939 uts4*)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-L$libdir'
8942 hardcode_shlibpath_var=no
8943 ;;
8944
8945 *)
8946 ld_shlibs=no
8947 ;;
8948 esac
8949
8950 if test x$host_vendor = xsni; then
8951 case $host in
8952 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8953 export_dynamic_flag_spec='${wl}-Blargedynsym'
8954 ;;
8955 esac
8956 fi
8957 fi
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8960 $as_echo "$ld_shlibs" >&6; }
8961 test "$ld_shlibs" = no && can_build_shared=no
8962
8963 with_gnu_ld=$with_gnu_ld
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 #
8980 # Do we need to explicitly link libc?
8981 #
8982 case "x$archive_cmds_need_lc" in
8983 x|xyes)
8984 # Assume -lc should be added
8985 archive_cmds_need_lc=yes
8986
8987 if test "$enable_shared" = yes && test "$GCC" = yes; then
8988 case $archive_cmds in
8989 *'~'*)
8990 # FIXME: we may have to deal with multi-command sequences.
8991 ;;
8992 '$CC '*)
8993 # Test whether the compiler implicitly links with -lc since on some
8994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8995 # to ld, don't add -lc before -lgcc.
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8997 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8998 $RM conftest*
8999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9002 (eval $ac_compile) 2>&5
9003 ac_status=$?
9004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005 test $ac_status = 0; } 2>conftest.err; then
9006 soname=conftest
9007 lib=conftest
9008 libobjs=conftest.$ac_objext
9009 deplibs=
9010 wl=$lt_prog_compiler_wl
9011 pic_flag=$lt_prog_compiler_pic
9012 compiler_flags=-v
9013 linker_flags=-v
9014 verstring=
9015 output_objdir=.
9016 libname=conftest
9017 lt_save_allow_undefined_flag=$allow_undefined_flag
9018 allow_undefined_flag=
9019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9020 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9021 ac_status=$?
9022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023 test $ac_status = 0; }
9024 then
9025 archive_cmds_need_lc=no
9026 else
9027 archive_cmds_need_lc=yes
9028 fi
9029 allow_undefined_flag=$lt_save_allow_undefined_flag
9030 else
9031 cat conftest.err 1>&5
9032 fi
9033 $RM conftest*
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9035 $as_echo "$archive_cmds_need_lc" >&6; }
9036 ;;
9037 esac
9038 fi
9039 ;;
9040 esac
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9199 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9200
9201 if test "$GCC" = yes; then
9202 case $host_os in
9203 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9204 *) lt_awk_arg="/^libraries:/" ;;
9205 esac
9206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9207 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9208 # if the path contains ";" then we assume it to be the separator
9209 # otherwise default to the standard path separator (i.e. ":") - it is
9210 # assumed that no part of a normal pathname contains ";" but that should
9211 # okay in the real world where ";" in dirpaths is itself problematic.
9212 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9213 else
9214 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9215 fi
9216 # Ok, now we have the path, separated by spaces, we can step through it
9217 # and add multilib dir if necessary.
9218 lt_tmp_lt_search_path_spec=
9219 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9220 for lt_sys_path in $lt_search_path_spec; do
9221 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9223 else
9224 test -d "$lt_sys_path" && \
9225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9226 fi
9227 done
9228 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9229 BEGIN {RS=" "; FS="/|\n";} {
9230 lt_foo="";
9231 lt_count=0;
9232 for (lt_i = NF; lt_i > 0; lt_i--) {
9233 if ($lt_i != "" && $lt_i != ".") {
9234 if ($lt_i == "..") {
9235 lt_count++;
9236 } else {
9237 if (lt_count == 0) {
9238 lt_foo="/" $lt_i lt_foo;
9239 } else {
9240 lt_count--;
9241 }
9242 }
9243 }
9244 }
9245 if (lt_foo != "") { lt_freq[lt_foo]++; }
9246 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9247 }'`
9248 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9249 else
9250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9251 fi
9252 library_names_spec=
9253 libname_spec='lib$name'
9254 soname_spec=
9255 shrext_cmds=".so"
9256 postinstall_cmds=
9257 postuninstall_cmds=
9258 finish_cmds=
9259 finish_eval=
9260 shlibpath_var=
9261 shlibpath_overrides_runpath=unknown
9262 version_type=none
9263 dynamic_linker="$host_os ld.so"
9264 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9265 need_lib_prefix=unknown
9266 hardcode_into_libs=no
9267
9268 # when you set need_version to no, make sure it does not cause -set_version
9269 # flags to be left without arguments
9270 need_version=unknown
9271
9272 case $host_os in
9273 aix3*)
9274 version_type=linux
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9276 shlibpath_var=LIBPATH
9277
9278 # AIX 3 has no versioning support, so we append a major version to the name.
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 ;;
9281
9282 aix[4-9]*)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 hardcode_into_libs=yes
9287 if test "$host_cpu" = ia64; then
9288 # AIX 5 supports IA64
9289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 else
9292 # With GCC up to 2.95.x, collect2 would create an import file
9293 # for dependence libraries. The import file would start with
9294 # the line `#! .'. This would cause the generated library to
9295 # depend on `.', always an invalid library. This was fixed in
9296 # development snapshots of GCC prior to 3.0.
9297 case $host_os in
9298 aix4 | aix4.[01] | aix4.[01].*)
9299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9300 echo ' yes '
9301 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9302 :
9303 else
9304 can_build_shared=no
9305 fi
9306 ;;
9307 esac
9308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9309 # soname into executable. Probably we can add versioning support to
9310 # collect2, so additional links can be useful in future.
9311 if test "$aix_use_runtimelinking" = yes; then
9312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9313 # instead of lib<name>.a to let people know that these are not
9314 # typical AIX shared libraries.
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316 else
9317 # We preserve .a as extension for shared libraries through AIX4.2
9318 # and later when we are not doing run time linking.
9319 library_names_spec='${libname}${release}.a $libname.a'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 fi
9322 shlibpath_var=LIBPATH
9323 fi
9324 ;;
9325
9326 amigaos*)
9327 case $host_cpu in
9328 powerpc)
9329 # Since July 2007 AmigaOS4 officially supports .so libraries.
9330 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 ;;
9333 m68k)
9334 library_names_spec='$libname.ixlibrary $libname.a'
9335 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9336 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9337 ;;
9338 esac
9339 ;;
9340
9341 beos*)
9342 library_names_spec='${libname}${shared_ext}'
9343 dynamic_linker="$host_os ld.so"
9344 shlibpath_var=LIBRARY_PATH
9345 ;;
9346
9347 bsdi[45]*)
9348 version_type=linux
9349 need_version=no
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9356 # the default ld.so.conf also contains /usr/contrib/lib and
9357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9358 # libtool to hard-code these into programs
9359 ;;
9360
9361 cygwin* | mingw* | pw32* | cegcc*)
9362 version_type=windows
9363 shrext_cmds=".dll"
9364 need_version=no
9365 need_lib_prefix=no
9366
9367 case $GCC,$host_os in
9368 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9369 library_names_spec='$libname.dll.a'
9370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9371 postinstall_cmds='base_file=`basename \${file}`~
9372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9373 dldir=$destdir/`dirname \$dlpath`~
9374 test -d \$dldir || mkdir -p \$dldir~
9375 $install_prog $dir/$dlname \$dldir/$dlname~
9376 chmod a+x \$dldir/$dlname~
9377 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9378 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9379 fi'
9380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9381 dlpath=$dir/\$dldll~
9382 $RM \$dlpath'
9383 shlibpath_overrides_runpath=yes
9384
9385 case $host_os in
9386 cygwin*)
9387 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9388 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9389 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9390 ;;
9391 mingw* | cegcc*)
9392 # MinGW DLLs use traditional 'lib' prefix
9393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9394 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9396 # It is most probably a Windows format PATH printed by
9397 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9398 # path with ; separators, and with drive letters. We can handle the
9399 # drive letters (cygwin fileutils understands them), so leave them,
9400 # especially as we might pass files found there to a mingw objdump,
9401 # which wouldn't understand a cygwinified path. Ahh.
9402 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9403 else
9404 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9405 fi
9406 ;;
9407 pw32*)
9408 # pw32 DLLs use 'pw' prefix rather than 'lib'
9409 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9410 ;;
9411 esac
9412 ;;
9413
9414 *)
9415 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9416 ;;
9417 esac
9418 dynamic_linker='Win32 ld.exe'
9419 # FIXME: first we should search . and the directory the executable is in
9420 shlibpath_var=PATH
9421 ;;
9422
9423 darwin* | rhapsody*)
9424 dynamic_linker="$host_os dyld"
9425 version_type=darwin
9426 need_lib_prefix=no
9427 need_version=no
9428 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9429 soname_spec='${libname}${release}${major}$shared_ext'
9430 shlibpath_overrides_runpath=yes
9431 shlibpath_var=DYLD_LIBRARY_PATH
9432 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9433
9434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9436 ;;
9437
9438 dgux*)
9439 version_type=linux
9440 need_lib_prefix=no
9441 need_version=no
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 shlibpath_var=LD_LIBRARY_PATH
9445 ;;
9446
9447 freebsd1*)
9448 dynamic_linker=no
9449 ;;
9450
9451 freebsd* | dragonfly*)
9452 # DragonFly does not have aout. When/if they implement a new
9453 # versioning mechanism, adjust this.
9454 if test -x /usr/bin/objformat; then
9455 objformat=`/usr/bin/objformat`
9456 else
9457 case $host_os in
9458 freebsd[123]*) objformat=aout ;;
9459 *) objformat=elf ;;
9460 esac
9461 fi
9462 version_type=freebsd-$objformat
9463 case $version_type in
9464 freebsd-elf*)
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9466 need_version=no
9467 need_lib_prefix=no
9468 ;;
9469 freebsd-*)
9470 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9471 need_version=yes
9472 ;;
9473 esac
9474 shlibpath_var=LD_LIBRARY_PATH
9475 case $host_os in
9476 freebsd2*)
9477 shlibpath_overrides_runpath=yes
9478 ;;
9479 freebsd3.[01]* | freebsdelf3.[01]*)
9480 shlibpath_overrides_runpath=yes
9481 hardcode_into_libs=yes
9482 ;;
9483 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9484 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9485 shlibpath_overrides_runpath=no
9486 hardcode_into_libs=yes
9487 ;;
9488 *) # from 4.6 on, and DragonFly
9489 shlibpath_overrides_runpath=yes
9490 hardcode_into_libs=yes
9491 ;;
9492 esac
9493 ;;
9494
9495 gnu*)
9496 version_type=linux
9497 need_lib_prefix=no
9498 need_version=no
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9500 soname_spec='${libname}${release}${shared_ext}$major'
9501 shlibpath_var=LD_LIBRARY_PATH
9502 hardcode_into_libs=yes
9503 ;;
9504
9505 hpux9* | hpux10* | hpux11*)
9506 # Give a soname corresponding to the major version so that dld.sl refuses to
9507 # link against other versions.
9508 version_type=sunos
9509 need_lib_prefix=no
9510 need_version=no
9511 case $host_cpu in
9512 ia64*)
9513 shrext_cmds='.so'
9514 hardcode_into_libs=yes
9515 dynamic_linker="$host_os dld.so"
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 if test "X$HPUX_IA64_MODE" = X32; then
9521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9522 else
9523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9524 fi
9525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9526 ;;
9527 hppa*64*)
9528 shrext_cmds='.sl'
9529 hardcode_into_libs=yes
9530 dynamic_linker="$host_os dld.sl"
9531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534 soname_spec='${libname}${release}${shared_ext}$major'
9535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9537 ;;
9538 *)
9539 shrext_cmds='.sl'
9540 dynamic_linker="$host_os dld.sl"
9541 shlibpath_var=SHLIB_PATH
9542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9545 ;;
9546 esac
9547 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9548 postinstall_cmds='chmod 555 $lib'
9549 ;;
9550
9551 interix[3-9]*)
9552 version_type=linux
9553 need_lib_prefix=no
9554 need_version=no
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9556 soname_spec='${libname}${release}${shared_ext}$major'
9557 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9558 shlibpath_var=LD_LIBRARY_PATH
9559 shlibpath_overrides_runpath=no
9560 hardcode_into_libs=yes
9561 ;;
9562
9563 irix5* | irix6* | nonstopux*)
9564 case $host_os in
9565 nonstopux*) version_type=nonstopux ;;
9566 *)
9567 if test "$lt_cv_prog_gnu_ld" = yes; then
9568 version_type=linux
9569 else
9570 version_type=irix
9571 fi ;;
9572 esac
9573 need_lib_prefix=no
9574 need_version=no
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9577 case $host_os in
9578 irix5* | nonstopux*)
9579 libsuff= shlibsuff=
9580 ;;
9581 *)
9582 case $LD in # libtool.m4 will add one of these switches to LD
9583 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9584 libsuff= shlibsuff= libmagic=32-bit;;
9585 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9586 libsuff=32 shlibsuff=N32 libmagic=N32;;
9587 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9588 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9589 *) libsuff= shlibsuff= libmagic=never-match;;
9590 esac
9591 ;;
9592 esac
9593 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9594 shlibpath_overrides_runpath=no
9595 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9596 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9597 hardcode_into_libs=yes
9598 ;;
9599
9600 # No shared lib support for Linux oldld, aout, or coff.
9601 linux*oldld* | linux*aout* | linux*coff*)
9602 dynamic_linker=no
9603 ;;
9604
9605 # This must be Linux ELF.
9606 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9607 version_type=linux
9608 need_lib_prefix=no
9609 need_version=no
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611 soname_spec='${libname}${release}${shared_ext}$major'
9612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 shlibpath_overrides_runpath=no
9615 # Some binutils ld are patched to set DT_RUNPATH
9616 save_LDFLAGS=$LDFLAGS
9617 save_libdir=$libdir
9618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622
9623 int
9624 main ()
9625 {
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9633 shlibpath_overrides_runpath=yes
9634 fi
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LDFLAGS=$save_LDFLAGS
9639 libdir=$save_libdir
9640
9641 # This implies no fast_install, which is unacceptable.
9642 # Some rework will be needed to allow for fast_install
9643 # before this can be enabled.
9644 hardcode_into_libs=yes
9645
9646 # Append ld.so.conf contents to the search path
9647 if test -f /etc/ld.so.conf; then
9648 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9649 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9650 fi
9651
9652 # We used to test for /lib/ld.so.1 and disable shared libraries on
9653 # powerpc, because MkLinux only supported shared libraries with the
9654 # GNU dynamic linker. Since this was broken with cross compilers,
9655 # most powerpc-linux boxes support dynamic linking these days and
9656 # people can always --disable-shared, the test was removed, and we
9657 # assume the GNU/Linux dynamic linker is in use.
9658 dynamic_linker='GNU/Linux ld.so'
9659 ;;
9660
9661 netbsdelf*-gnu)
9662 version_type=linux
9663 need_lib_prefix=no
9664 need_version=no
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 shlibpath_overrides_runpath=no
9669 hardcode_into_libs=yes
9670 dynamic_linker='NetBSD ld.elf_so'
9671 ;;
9672
9673 netbsd*)
9674 version_type=sunos
9675 need_lib_prefix=no
9676 need_version=no
9677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9680 dynamic_linker='NetBSD (a.out) ld.so'
9681 else
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 dynamic_linker='NetBSD ld.elf_so'
9685 fi
9686 shlibpath_var=LD_LIBRARY_PATH
9687 shlibpath_overrides_runpath=yes
9688 hardcode_into_libs=yes
9689 ;;
9690
9691 newsos6)
9692 version_type=linux
9693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694 shlibpath_var=LD_LIBRARY_PATH
9695 shlibpath_overrides_runpath=yes
9696 ;;
9697
9698 *nto* | *qnx*)
9699 version_type=qnx
9700 need_lib_prefix=no
9701 need_version=no
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9707 dynamic_linker='ldqnx.so'
9708 ;;
9709
9710 openbsd*)
9711 version_type=sunos
9712 sys_lib_dlsearch_path_spec="/usr/lib"
9713 need_lib_prefix=no
9714 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9715 case $host_os in
9716 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9717 *) need_version=no ;;
9718 esac
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9723 case $host_os in
9724 openbsd2.[89] | openbsd2.[89].*)
9725 shlibpath_overrides_runpath=no
9726 ;;
9727 *)
9728 shlibpath_overrides_runpath=yes
9729 ;;
9730 esac
9731 else
9732 shlibpath_overrides_runpath=yes
9733 fi
9734 ;;
9735
9736 os2*)
9737 libname_spec='$name'
9738 shrext_cmds=".dll"
9739 need_lib_prefix=no
9740 library_names_spec='$libname${shared_ext} $libname.a'
9741 dynamic_linker='OS/2 ld.exe'
9742 shlibpath_var=LIBPATH
9743 ;;
9744
9745 osf3* | osf4* | osf5*)
9746 version_type=osf
9747 need_lib_prefix=no
9748 need_version=no
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751 shlibpath_var=LD_LIBRARY_PATH
9752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9754 ;;
9755
9756 rdos*)
9757 dynamic_linker=no
9758 ;;
9759
9760 solaris*)
9761 version_type=linux
9762 need_lib_prefix=no
9763 need_version=no
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath=yes
9768 hardcode_into_libs=yes
9769 # ldd complains unless libraries are executable
9770 postinstall_cmds='chmod +x $lib'
9771 ;;
9772
9773 sunos4*)
9774 version_type=sunos
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9776 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 shlibpath_overrides_runpath=yes
9779 if test "$with_gnu_ld" = yes; then
9780 need_lib_prefix=no
9781 fi
9782 need_version=yes
9783 ;;
9784
9785 sysv4 | sysv4.3*)
9786 version_type=linux
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 case $host_vendor in
9791 sni)
9792 shlibpath_overrides_runpath=no
9793 need_lib_prefix=no
9794 runpath_var=LD_RUN_PATH
9795 ;;
9796 siemens)
9797 need_lib_prefix=no
9798 ;;
9799 motorola)
9800 need_lib_prefix=no
9801 need_version=no
9802 shlibpath_overrides_runpath=no
9803 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9804 ;;
9805 esac
9806 ;;
9807
9808 sysv4*MP*)
9809 if test -d /usr/nec ;then
9810 version_type=linux
9811 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9812 soname_spec='$libname${shared_ext}.$major'
9813 shlibpath_var=LD_LIBRARY_PATH
9814 fi
9815 ;;
9816
9817 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9818 version_type=freebsd-elf
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 shlibpath_overrides_runpath=yes
9825 hardcode_into_libs=yes
9826 if test "$with_gnu_ld" = yes; then
9827 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9828 else
9829 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9830 case $host_os in
9831 sco3.2v5*)
9832 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9833 ;;
9834 esac
9835 fi
9836 sys_lib_dlsearch_path_spec='/usr/lib'
9837 ;;
9838
9839 tpf*)
9840 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9841 version_type=linux
9842 need_lib_prefix=no
9843 need_version=no
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845 shlibpath_var=LD_LIBRARY_PATH
9846 shlibpath_overrides_runpath=no
9847 hardcode_into_libs=yes
9848 ;;
9849
9850 uts4*)
9851 version_type=linux
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 ;;
9856
9857 *)
9858 dynamic_linker=no
9859 ;;
9860 esac
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9862 $as_echo "$dynamic_linker" >&6; }
9863 test "$dynamic_linker" = no && can_build_shared=no
9864
9865 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9866 if test "$GCC" = yes; then
9867 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9868 fi
9869
9870 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9871 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9872 fi
9873 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9874 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9875 fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9965 hardcode_action=
9966 if test -n "$hardcode_libdir_flag_spec" ||
9967 test -n "$runpath_var" ||
9968 test "X$hardcode_automatic" = "Xyes" ; then
9969
9970 # We can hardcode non-existent directories.
9971 if test "$hardcode_direct" != no &&
9972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9973 # have to relink, otherwise we might link with an installed library
9974 # when we should be linking with a yet-to-be-installed one
9975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9976 test "$hardcode_minus_L" != no; then
9977 # Linking always hardcodes the temporary library directory.
9978 hardcode_action=relink
9979 else
9980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9981 hardcode_action=immediate
9982 fi
9983 else
9984 # We cannot hardcode anything, or else we can only hardcode existing
9985 # directories.
9986 hardcode_action=unsupported
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9989 $as_echo "$hardcode_action" >&6; }
9990
9991 if test "$hardcode_action" = relink ||
9992 test "$inherit_rpath" = yes; then
9993 # Fast installation is not supported
9994 enable_fast_install=no
9995 elif test "$shlibpath_overrides_runpath" = yes ||
9996 test "$enable_shared" = no; then
9997 # Fast installation is not necessary
9998 enable_fast_install=needless
9999 fi
10000
10001
10002
10003
10004
10005
10006 if test "x$enable_dlopen" != xyes; then
10007 enable_dlopen=unknown
10008 enable_dlopen_self=unknown
10009 enable_dlopen_self_static=unknown
10010 else
10011 lt_cv_dlopen=no
10012 lt_cv_dlopen_libs=
10013
10014 case $host_os in
10015 beos*)
10016 lt_cv_dlopen="load_add_on"
10017 lt_cv_dlopen_libs=
10018 lt_cv_dlopen_self=yes
10019 ;;
10020
10021 mingw* | pw32* | cegcc*)
10022 lt_cv_dlopen="LoadLibrary"
10023 lt_cv_dlopen_libs=
10024 ;;
10025
10026 cygwin*)
10027 lt_cv_dlopen="dlopen"
10028 lt_cv_dlopen_libs=
10029 ;;
10030
10031 darwin*)
10032 # if libdl is installed we need to link against it
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-ldl $LIBS"
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 char dlopen ();
10050 int
10051 main ()
10052 {
10053 return dlopen ();
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_link "$LINENO"; then :
10059 ac_cv_lib_dl_dlopen=yes
10060 else
10061 ac_cv_lib_dl_dlopen=no
10062 fi
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10066 fi
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10069 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10071 else
10072
10073 lt_cv_dlopen="dyld"
10074 lt_cv_dlopen_libs=
10075 lt_cv_dlopen_self=yes
10076
10077 fi
10078
10079 ;;
10080
10081 *)
10082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10083 if test "x$ac_cv_func_shl_load" = x""yes; then :
10084 lt_cv_dlopen="shl_load"
10085 else
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10087 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10088 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10090 else
10091 ac_check_lib_save_LIBS=$LIBS
10092 LIBS="-ldld $LIBS"
10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10099 #ifdef __cplusplus
10100 extern "C"
10101 #endif
10102 char shl_load ();
10103 int
10104 main ()
10105 {
10106 return shl_load ();
10107 ;
10108 return 0;
10109 }
10110 _ACEOF
10111 if ac_fn_c_try_link "$LINENO"; then :
10112 ac_cv_lib_dld_shl_load=yes
10113 else
10114 ac_cv_lib_dld_shl_load=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118 LIBS=$ac_check_lib_save_LIBS
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10121 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10122 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10124 else
10125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10126 if test "x$ac_cv_func_dlopen" = x""yes; then :
10127 lt_cv_dlopen="dlopen"
10128 else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10131 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
10133 else
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-ldl $LIBS"
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char dlopen ();
10146 int
10147 main ()
10148 {
10149 return dlopen ();
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 if ac_fn_c_try_link "$LINENO"; then :
10155 ac_cv_lib_dl_dlopen=yes
10156 else
10157 ac_cv_lib_dl_dlopen=no
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext \
10160 conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10165 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10170 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
10172 else
10173 ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-lsvld $LIBS"
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10177
10178 /* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
10181 #ifdef __cplusplus
10182 extern "C"
10183 #endif
10184 char dlopen ();
10185 int
10186 main ()
10187 {
10188 return dlopen ();
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 ac_cv_lib_svld_dlopen=yes
10195 else
10196 ac_cv_lib_svld_dlopen=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10204 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10206 else
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10208 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10209 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-ldld $LIBS"
10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215 /* end confdefs.h. */
10216
10217 /* Override any GCC internal prototype to avoid an error.
10218 Use char because int might match the return type of a GCC
10219 builtin and then its argument prototype would still apply. */
10220 #ifdef __cplusplus
10221 extern "C"
10222 #endif
10223 char dld_link ();
10224 int
10225 main ()
10226 {
10227 return dld_link ();
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 ac_cv_lib_dld_dld_link=yes
10234 else
10235 ac_cv_lib_dld_dld_link=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_check_lib_save_LIBS
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10243 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245 fi
10246
10247
10248 fi
10249
10250
10251 fi
10252
10253
10254 fi
10255
10256
10257 fi
10258
10259
10260 fi
10261
10262 ;;
10263 esac
10264
10265 if test "x$lt_cv_dlopen" != xno; then
10266 enable_dlopen=yes
10267 else
10268 enable_dlopen=no
10269 fi
10270
10271 case $lt_cv_dlopen in
10272 dlopen)
10273 save_CPPFLAGS="$CPPFLAGS"
10274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275
10276 save_LDFLAGS="$LDFLAGS"
10277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10278
10279 save_LIBS="$LIBS"
10280 LIBS="$lt_cv_dlopen_libs $LIBS"
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10284 if test "${lt_cv_dlopen_self+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 if test "$cross_compiling" = yes; then :
10288 lt_cv_dlopen_self=cross
10289 else
10290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291 lt_status=$lt_dlunknown
10292 cat > conftest.$ac_ext <<_LT_EOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10295
10296 #if HAVE_DLFCN_H
10297 #include <dlfcn.h>
10298 #endif
10299
10300 #include <stdio.h>
10301
10302 #ifdef RTLD_GLOBAL
10303 # define LT_DLGLOBAL RTLD_GLOBAL
10304 #else
10305 # ifdef DL_GLOBAL
10306 # define LT_DLGLOBAL DL_GLOBAL
10307 # else
10308 # define LT_DLGLOBAL 0
10309 # endif
10310 #endif
10311
10312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313 find out it does not work in some platform. */
10314 #ifndef LT_DLLAZY_OR_NOW
10315 # ifdef RTLD_LAZY
10316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10317 # else
10318 # ifdef DL_LAZY
10319 # define LT_DLLAZY_OR_NOW DL_LAZY
10320 # else
10321 # ifdef RTLD_NOW
10322 # define LT_DLLAZY_OR_NOW RTLD_NOW
10323 # else
10324 # ifdef DL_NOW
10325 # define LT_DLLAZY_OR_NOW DL_NOW
10326 # else
10327 # define LT_DLLAZY_OR_NOW 0
10328 # endif
10329 # endif
10330 # endif
10331 # endif
10332 #endif
10333
10334 void fnord() { int i=42;}
10335 int main ()
10336 {
10337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338 int status = $lt_dlunknown;
10339
10340 if (self)
10341 {
10342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344 /* dlclose (self); */
10345 }
10346 else
10347 puts (dlerror ());
10348
10349 return status;
10350 }
10351 _LT_EOF
10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10353 (eval $ac_link) 2>&5
10354 ac_status=$?
10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10357 (./conftest; exit; ) >&5 2>/dev/null
10358 lt_status=$?
10359 case x$lt_status in
10360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10363 esac
10364 else :
10365 # compilation failed
10366 lt_cv_dlopen_self=no
10367 fi
10368 fi
10369 rm -fr conftest*
10370
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10374 $as_echo "$lt_cv_dlopen_self" >&6; }
10375
10376 if test "x$lt_cv_dlopen_self" = xyes; then
10377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10380 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 if test "$cross_compiling" = yes; then :
10384 lt_cv_dlopen_self_static=cross
10385 else
10386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10387 lt_status=$lt_dlunknown
10388 cat > conftest.$ac_ext <<_LT_EOF
10389 #line 10389 "configure"
10390 #include "confdefs.h"
10391
10392 #if HAVE_DLFCN_H
10393 #include <dlfcn.h>
10394 #endif
10395
10396 #include <stdio.h>
10397
10398 #ifdef RTLD_GLOBAL
10399 # define LT_DLGLOBAL RTLD_GLOBAL
10400 #else
10401 # ifdef DL_GLOBAL
10402 # define LT_DLGLOBAL DL_GLOBAL
10403 # else
10404 # define LT_DLGLOBAL 0
10405 # endif
10406 #endif
10407
10408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10409 find out it does not work in some platform. */
10410 #ifndef LT_DLLAZY_OR_NOW
10411 # ifdef RTLD_LAZY
10412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10413 # else
10414 # ifdef DL_LAZY
10415 # define LT_DLLAZY_OR_NOW DL_LAZY
10416 # else
10417 # ifdef RTLD_NOW
10418 # define LT_DLLAZY_OR_NOW RTLD_NOW
10419 # else
10420 # ifdef DL_NOW
10421 # define LT_DLLAZY_OR_NOW DL_NOW
10422 # else
10423 # define LT_DLLAZY_OR_NOW 0
10424 # endif
10425 # endif
10426 # endif
10427 # endif
10428 #endif
10429
10430 void fnord() { int i=42;}
10431 int main ()
10432 {
10433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10434 int status = $lt_dlunknown;
10435
10436 if (self)
10437 {
10438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10440 /* dlclose (self); */
10441 }
10442 else
10443 puts (dlerror ());
10444
10445 return status;
10446 }
10447 _LT_EOF
10448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10449 (eval $ac_link) 2>&5
10450 ac_status=$?
10451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10453 (./conftest; exit; ) >&5 2>/dev/null
10454 lt_status=$?
10455 case x$lt_status in
10456 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10457 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10458 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10459 esac
10460 else :
10461 # compilation failed
10462 lt_cv_dlopen_self_static=no
10463 fi
10464 fi
10465 rm -fr conftest*
10466
10467
10468 fi
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10470 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10471 fi
10472
10473 CPPFLAGS="$save_CPPFLAGS"
10474 LDFLAGS="$save_LDFLAGS"
10475 LIBS="$save_LIBS"
10476 ;;
10477 esac
10478
10479 case $lt_cv_dlopen_self in
10480 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10481 *) enable_dlopen_self=unknown ;;
10482 esac
10483
10484 case $lt_cv_dlopen_self_static in
10485 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10486 *) enable_dlopen_self_static=unknown ;;
10487 esac
10488 fi
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506 striplib=
10507 old_striplib=
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10509 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10510 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10511 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10512 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10514 $as_echo "yes" >&6; }
10515 else
10516 # FIXME - insert some real tests, host_os isn't really good enough
10517 case $host_os in
10518 darwin*)
10519 if test -n "$STRIP" ; then
10520 striplib="$STRIP -x"
10521 old_striplib="$STRIP -S"
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10523 $as_echo "yes" >&6; }
10524 else
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528 ;;
10529 *)
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10532 ;;
10533 esac
10534 fi
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 # Report which library types will actually be built
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10549 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10551 $as_echo "$can_build_shared" >&6; }
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10554 $as_echo_n "checking whether to build shared libraries... " >&6; }
10555 test "$can_build_shared" = "no" && enable_shared=no
10556
10557 # On AIX, shared libraries and static libraries use the same namespace, and
10558 # are all built from PIC.
10559 case $host_os in
10560 aix3*)
10561 test "$enable_shared" = yes && enable_static=no
10562 if test -n "$RANLIB"; then
10563 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10564 postinstall_cmds='$RANLIB $lib'
10565 fi
10566 ;;
10567
10568 aix[4-9]*)
10569 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10570 test "$enable_shared" = yes && enable_static=no
10571 fi
10572 ;;
10573 esac
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10575 $as_echo "$enable_shared" >&6; }
10576
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10578 $as_echo_n "checking whether to build static libraries... " >&6; }
10579 # Make sure either enable_shared or enable_static is yes.
10580 test "$enable_shared" = yes || enable_static=yes
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10582 $as_echo "$enable_static" >&6; }
10583
10584
10585
10586
10587 fi
10588 ac_ext=c
10589 ac_cpp='$CPP $CPPFLAGS'
10590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10593
10594 CC="$lt_save_CC"
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608 ac_config_commands="$ac_config_commands libtool"
10609
10610
10611
10612
10613 # Only expand once:
10614
10615
10616
10617
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
10619 $as_echo_n "checking spl license... " >&6; }
10620 LICENSE=GPL
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LICENSE" >&5
10622 $as_echo "$LICENSE" >&6; }
10623 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
10624
10625
10626
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10629 $as_echo_n "checking linux distribution... " >&6; }
10630 if test -f /etc/toss-release ; then
10631 VENDOR=toss ;
10632 elif test -f /etc/fedora-release ; then
10633 VENDOR=fedora ;
10634 elif test -f /etc/redhat-release ; then
10635 VENDOR=redhat ;
10636 elif test -f /etc/gentoo-release ; then
10637 VENDOR=gentoo ;
10638 elif test -f /etc/arch-release ; then
10639 VENDOR=arch ;
10640 elif test -f /etc/SuSE-release ; then
10641 VENDOR=sles ;
10642 elif test -f /etc/slackware-version ; then
10643 VENDOR=slackware ;
10644 elif test -f /etc/lunar.release ; then
10645 VENDOR=lunar ;
10646 elif test -f /etc/lsb-release ; then
10647 VENDOR=ubuntu ;
10648 elif test -f /etc/debian_version ; then
10649 VENDOR=debian ;
10650 else
10651 VENDOR= ;
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10654 $as_echo "$VENDOR" >&6; }
10655
10656
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
10658 $as_echo_n "checking default package type... " >&6; }
10659 case "$VENDOR" in
10660 toss) DEFAULT_PACKAGE=rpm ;;
10661 redhat) DEFAULT_PACKAGE=rpm ;;
10662 fedora) DEFAULT_PACKAGE=rpm ;;
10663 gentoo) DEFAULT_PACKAGE=tgz ;;
10664 arch) DEFAULT_PACKAGE=tgz ;;
10665 sles) DEFAULT_PACKAGE=rpm ;;
10666 slackware) DEFAULT_PACKAGE=tgz ;;
10667 lunar) DEFAULT_PACKAGE=tgz ;;
10668 ubuntu) DEFAULT_PACKAGE=deb ;;
10669 debian) DEFAULT_PACKAGE=deb ;;
10670 *) DEFAULT_PACKAGE=rpm ;;
10671 esac
10672
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
10674 $as_echo "$DEFAULT_PACKAGE" >&6; }
10675
10676
10677
10678 RPM=rpm
10679 RPMBUILD=rpmbuild
10680
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
10682 $as_echo_n "checking whether $RPM is available... " >&6; }
10683 if tmp=$($RPM --version 2>/dev/null); then :
10684
10685 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10686 HAVE_RPM=yes
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
10688 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
10689
10690 else
10691
10692 HAVE_RPM=no
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
10694 $as_echo "$HAVE_RPM" >&6; }
10695
10696 fi
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
10699 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
10700 if tmp=$($RPMBUILD --version 2>/dev/null); then :
10701
10702 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10703 HAVE_RPMBUILD=yes
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10705 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
10706
10707 else
10708
10709 HAVE_RPMBUILD=no
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
10711 $as_echo "$HAVE_RPMBUILD" >&6; }
10712
10713 fi
10714
10715 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_LOG) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
10716 RPM_DEFINE_UTIL=
10717 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
10718 RPM_DEFINE_DKMS=
10719
10720 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
10721 SRPM_DEFINE_UTIL=
10722 SRPM_DEFINE_KMOD=
10723 SRPM_DEFINE_DKMS=
10724
10725 RPM_SPEC_DIR="rpm/generic"
10726
10727 # Check whether --with-spec was given.
10728 if test "${with_spec+set}" = set; then :
10729 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
10730 fi
10731
10732
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
10734 $as_echo_n "checking whether spec files are available... " >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
10736 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757 DPKG=dpkg
10758 DPKGBUILD=dpkg-buildpackage
10759
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
10761 $as_echo_n "checking whether $DPKG is available... " >&6; }
10762 if tmp=$($DPKG --version 2>/dev/null); then :
10763
10764 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
10765 HAVE_DPKG=yes
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
10767 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
10768
10769 else
10770
10771 HAVE_DPKG=no
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
10773 $as_echo "$HAVE_DPKG" >&6; }
10774
10775 fi
10776
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
10778 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
10779 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
10780
10781 DPKGBUILD_VERSION=$(echo $tmp | \
10782 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
10783 HAVE_DPKGBUILD=yes
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
10785 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
10786
10787 else
10788
10789 HAVE_DPKGBUILD=no
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
10791 $as_echo "$HAVE_DPKGBUILD" >&6; }
10792
10793 fi
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804 ALIEN=alien
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
10807 $as_echo_n "checking whether $ALIEN is available... " >&6; }
10808 if tmp=$($ALIEN --version 2>/dev/null); then :
10809
10810 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
10811 HAVE_ALIEN=yes
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
10813 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
10814
10815 else
10816
10817 HAVE_ALIEN=no
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
10819 $as_echo "$HAVE_ALIEN" >&6; }
10820
10821 fi
10822
10823
10824
10825
10826
10827
10828
10829 SPL_CONFIG=all
10830
10831 # Check whether --with-config was given.
10832 if test "${with_config+set}" = set; then :
10833 withval=$with_config; SPL_CONFIG="$withval"
10834 fi
10835
10836 # Check whether --enable-linux-builtin was given.
10837 if test "${enable_linux_builtin+set}" = set; then :
10838 enableval=$enable_linux_builtin;
10839 else
10840 enable_linux_builtin=no
10841 fi
10842
10843
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
10845 $as_echo_n "checking spl config... " >&6; }
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
10847 $as_echo "$SPL_CONFIG" >&6; };
10848
10849
10850 case "$SPL_CONFIG" in
10851 kernel)
10852
10853
10854 # Check whether --with-linux was given.
10855 if test "${with_linux+set}" = set; then :
10856 withval=$with_linux; kernelsrc="$withval"
10857 fi
10858
10859
10860
10861 # Check whether --with-linux-obj was given.
10862 if test "${with_linux_obj+set}" = set; then :
10863 withval=$with_linux_obj; kernelbuild="$withval"
10864 fi
10865
10866
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
10868 $as_echo_n "checking kernel source directory... " >&6; }
10869 if test -z "$kernelsrc"; then
10870 if test -e "/lib/modules/$(uname -r)/source"; then
10871 headersdir="/lib/modules/$(uname -r)/source"
10872 sourcelink=$(readlink -f "$headersdir")
10873 elif test -e "/lib/modules/$(uname -r)/build"; then
10874 headersdir="/lib/modules/$(uname -r)/build"
10875 sourcelink=$(readlink -f "$headersdir")
10876 else
10877 sourcelink=$(ls -1d /usr/src/kernels/* \
10878 /usr/src/linux-* \
10879 2>/dev/null | grep -v obj | tail -1)
10880 fi
10881
10882 if test -n "$sourcelink" && test -e ${sourcelink}; then
10883 kernelsrc=`readlink -f ${sourcelink}`
10884 else
10885 kernelsrc="Not found"
10886 fi
10887 else
10888 if test "$kernelsrc" = "NONE"; then
10889 kernsrcver=NONE
10890 fi
10891 fi
10892
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
10894 $as_echo "$kernelsrc" >&6; }
10895 if test ! -d "$kernelsrc"; then
10896 as_fn_error $? "
10897 *** Please make sure the kernel devel package for your distribution
10898 *** is installed and then try again. If that fails, you can specify the
10899 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
10900 fi
10901
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
10903 $as_echo_n "checking kernel build directory... " >&6; }
10904 if test -z "$kernelbuild"; then
10905 if test -e "/lib/modules/$(uname -r)/build"; then
10906 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
10907 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
10908 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
10909 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
10910 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
10911 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
10912 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
10913 else
10914 kernelbuild=${kernelsrc}
10915 fi
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
10918 $as_echo "$kernelbuild" >&6; }
10919
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
10921 $as_echo_n "checking kernel source version... " >&6; }
10922 utsrelease1=$kernelbuild/include/linux/version.h
10923 utsrelease2=$kernelbuild/include/linux/utsrelease.h
10924 utsrelease3=$kernelbuild/include/generated/utsrelease.h
10925 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
10926 utsrelease=linux/version.h
10927 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
10928 utsrelease=linux/utsrelease.h
10929 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
10930 utsrelease=generated/utsrelease.h
10931 fi
10932
10933 if test "$utsrelease"; then
10934 kernsrcver=`(echo "#include <$utsrelease>";
10935 echo "kernsrcver=UTS_RELEASE") |
10936 cpp -I $kernelbuild/include |
10937 grep "^kernsrcver=" | cut -d \" -f 2`
10938
10939 if test -z "$kernsrcver"; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
10941 $as_echo "Not found" >&6; }
10942 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
10943 fi
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
10946 $as_echo "Not found" >&6; }
10947 if test "x$enable_linux_builtin" != xyes; then
10948 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
10949 else
10950 as_fn_error $? "
10951 *** Cannot find UTS_RELEASE definition.
10952 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
10953 fi
10954 fi
10955
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
10957 $as_echo "$kernsrcver" >&6; }
10958
10959 LINUX=${kernelsrc}
10960 LINUX_OBJ=${kernelbuild}
10961 LINUX_VERSION=${kernsrcver}
10962
10963
10964
10965
10966
10967
10968 modpost=$LINUX/scripts/Makefile.modpost
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
10970 $as_echo_n "checking kernel file name for module symbols... " >&6; }
10971 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
10972 if grep -q Modules.symvers $modpost; then
10973 LINUX_SYMBOLS=Modules.symvers
10974 else
10975 LINUX_SYMBOLS=Module.symvers
10976 fi
10977
10978 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
10979 as_fn_error $? "
10980 *** Please make sure the kernel devel package for your distribution
10981 *** is installed. If you are building with a custom kernel, make sure the
10982 *** kernel is configured, built, and the '--with-linux=PATH' configure
10983 *** option refers to the location of the kernel source." "$LINENO" 5
10984 fi
10985 else
10986 LINUX_SYMBOLS=NONE
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
10989 $as_echo "$LINUX_SYMBOLS" >&6; }
10990
10991
10992
10993
10994 if test "${LINUX_OBJ}" != "${LINUX}"; then
10995 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
10996 fi
10997
10998
10999 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11000
11001
11002
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
11004 $as_echo_n "checking whether debugging is enabled... " >&6; }
11005 # Check whether --enable-debug was given.
11006 if test "${enable_debug+set}" = set; then :
11007 enableval=$enable_debug;
11008 else
11009 enable_debug=no
11010 fi
11011
11012
11013 if test "x$enable_debug" = xyes; then :
11014
11015 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11016 DEBUG_CFLAGS="-DDEBUG -Werror"
11017 DEBUG_SPL="_with_debug"
11018
11019 else
11020
11021 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11022 DEBUG_CFLAGS="-DNDEBUG"
11023 DEBUG_SPL="_without_debug"
11024
11025 fi
11026
11027
11028
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
11030 $as_echo "$enable_debug" >&6; }
11031
11032
11033 # Check whether --enable-debug-log was given.
11034 if test "${enable_debug_log+set}" = set; then :
11035 enableval=$enable_debug_log;
11036 else
11037 enable_debug_log=yes
11038 fi
11039
11040
11041 if test "x$enable_debug_log" = xyes; then :
11042
11043 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
11044 DEBUG_LOG="_with_debug_log"
11045
11046 $as_echo "#define DEBUG_LOG 1" >>confdefs.h
11047
11048
11049 else
11050
11051 DEBUG_LOG="_without_debug_log"
11052
11053 fi
11054
11055
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic debug logging is enabled" >&5
11057 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_log" >&5
11059 $as_echo "$enable_debug_log" >&6; }
11060
11061
11062 # Check whether --enable-debug-kmem was given.
11063 if test "${enable_debug_kmem+set}" = set; then :
11064 enableval=$enable_debug_kmem;
11065 else
11066 enable_debug_kmem=yes
11067 fi
11068
11069
11070 if test "x$enable_debug_kmem" = xyes; then :
11071
11072 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11073 DEBUG_KMEM="_with_debug_kmem"
11074
11075 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
11076
11077
11078 else
11079
11080 DEBUG_KMEM="_without_debug_kmem"
11081
11082 fi
11083
11084
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
11086 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
11088 $as_echo "$enable_debug_kmem" >&6; }
11089
11090
11091 # Check whether --enable-debug-kmem-tracking was given.
11092 if test "${enable_debug_kmem_tracking+set}" = set; then :
11093 enableval=$enable_debug_kmem_tracking;
11094 else
11095 enable_debug_kmem_tracking=no
11096 fi
11097
11098
11099 if test "x$enable_debug_kmem_tracking" = xyes; then :
11100
11101 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11102 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11103
11104 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
11105
11106
11107 else
11108
11109 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11110
11111 fi
11112
11113
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
11115 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
11117 $as_echo "$enable_debug_kmem_tracking" >&6; }
11118
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11120 $as_echo_n "checking whether modules can be built... " >&6; }
11121
11122
11123 cat confdefs.h - <<_ACEOF >conftest.c
11124
11125
11126 int
11127 main (void)
11128 {
11129
11130 ;
11131 return 0;
11132 }
11133
11134 _ACEOF
11135
11136
11137 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11138 echo "obj-m := conftest.o" >build/Makefile
11139 modpost_flag=''
11140 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11141 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11146 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11148 (eval $ac_try) 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }; }; then :
11152
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154 $as_echo "yes" >&6; }
11155
11156 else
11157 $as_echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11162 if test "x$enable_linux_builtin" != xyes; then
11163 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
11164 else
11165 as_fn_error $? "
11166 *** Unable to build an empty module.
11167 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11168 fi
11169
11170
11171
11172 fi
11173 rm -Rf build
11174
11175
11176
11177
11178 # Check whether --enable-atomic-spinlocks was given.
11179 if test "${enable_atomic_spinlocks+set}" = set; then :
11180 enableval=$enable_atomic_spinlocks;
11181 else
11182 enable_atomic_spinlocks=check
11183 fi
11184
11185
11186
11187
11188 cat confdefs.h - <<_ACEOF >conftest.c
11189
11190
11191 #include <linux/fs.h>
11192
11193 int
11194 main (void)
11195 {
11196
11197 atomic64_t *ptr __attribute__ ((unused));
11198
11199 ;
11200 return 0;
11201 }
11202
11203 _ACEOF
11204
11205
11206 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11207 echo "obj-m := conftest.o" >build/Makefile
11208 modpost_flag=''
11209 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11210 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11217 (eval $ac_try) 2>&5
11218 ac_status=$?
11219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11220 test $ac_status = 0; }; }; then :
11221
11222 have_atomic64_t=yes
11223
11224 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
11225
11226
11227 else
11228 $as_echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 have_atomic64_t=no
11232
11233
11234
11235 fi
11236 rm -Rf build
11237
11238
11239
11240 if test "x$enable_atomic_spinlocks" = xcheck; then :
11241
11242 if test "x$have_atomic64_t" = xyes; then :
11243
11244 enable_atomic_spinlocks=no
11245
11246 else
11247
11248 enable_atomic_spinlocks=yes
11249
11250 fi
11251
11252 fi
11253
11254 if test "x$enable_atomic_spinlocks" = xyes; then :
11255
11256
11257 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
11258
11259
11260 else
11261
11262 if test "x$have_atomic64_t" = xno; then :
11263
11264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11266 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
11267 See \`config.log' for more details" "$LINENO" 5 ; }
11268
11269 fi
11270
11271 fi
11272
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
11274 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
11276 $as_echo "$enable_atomic_spinlocks" >&6; }
11277
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
11279 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
11281 $as_echo "$have_atomic64_t" >&6; }
11282
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_cmpxchg" >&5
11284 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11285
11286
11287 cat confdefs.h - <<_ACEOF >conftest.c
11288
11289
11290 #include <linux/fs.h>
11291
11292 int
11293 main (void)
11294 {
11295
11296 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11297
11298 ;
11299 return 0;
11300 }
11301
11302 _ACEOF
11303
11304
11305 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11306 echo "obj-m := conftest.o" >build/Makefile
11307 modpost_flag=''
11308 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11314 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11316 (eval $ac_try) 2>&5
11317 ac_status=$?
11318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11319 test $ac_status = 0; }; }; then :
11320
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11322 $as_echo "yes" >&6; }
11323
11324 $as_echo "#define HAVE_ATOMIC64_CMPXCHG 1" >>confdefs.h
11325
11326
11327 else
11328 $as_echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333
11334
11335
11336 fi
11337 rm -Rf build
11338
11339
11340
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_xchg" >&5
11342 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11343
11344
11345 cat confdefs.h - <<_ACEOF >conftest.c
11346
11347
11348 #include <linux/fs.h>
11349
11350 int
11351 main (void)
11352 {
11353
11354 atomic64_xchg((atomic64_t *)NULL, 0);
11355
11356 ;
11357 return 0;
11358 }
11359
11360 _ACEOF
11361
11362
11363 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11364 echo "obj-m := conftest.o" >build/Makefile
11365 modpost_flag=''
11366 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11369 (eval $ac_try) 2>&5
11370 ac_status=$?
11371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11372 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11377 test $ac_status = 0; }; }; then :
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381
11382 $as_echo "#define HAVE_ATOMIC64_XCHG 1" >>confdefs.h
11383
11384
11385 else
11386 $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11391
11392
11393
11394 fi
11395 rm -Rf build
11396
11397
11398
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines uintptr_t" >&5
11400 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11401
11402
11403 cat confdefs.h - <<_ACEOF >conftest.c
11404
11405
11406 #include <linux/types.h>
11407
11408 int
11409 main (void)
11410 {
11411
11412 uintptr_t *ptr __attribute__ ((unused));
11413
11414 ;
11415 return 0;
11416 }
11417
11418 _ACEOF
11419
11420
11421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11422 echo "obj-m := conftest.o" >build/Makefile
11423 modpost_flag=''
11424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11425 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11435 test $ac_status = 0; }; }; then :
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438 $as_echo "yes" >&6; }
11439
11440 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11441
11442
11443 else
11444 $as_echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448 $as_echo "no" >&6; }
11449
11450
11451
11452 fi
11453 rm -Rf build
11454
11455
11456
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether register_sysctl_table() wants 2 args" >&5
11458 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
11459
11460
11461 cat confdefs.h - <<_ACEOF >conftest.c
11462
11463
11464 #include <linux/sysctl.h>
11465
11466 int
11467 main (void)
11468 {
11469
11470 (void) register_sysctl_table(NULL, 0);
11471
11472 ;
11473 return 0;
11474 }
11475
11476 _ACEOF
11477
11478
11479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11480 echo "obj-m := conftest.o" >build/Makefile
11481 modpost_flag=''
11482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11483 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493 test $ac_status = 0; }; }; then :
11494
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11496 $as_echo "yes" >&6; }
11497
11498 $as_echo "#define HAVE_2ARGS_REGISTER_SYSCTL 1" >>confdefs.h
11499
11500
11501 else
11502 $as_echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11504
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11507
11508
11509
11510 fi
11511 rm -Rf build
11512
11513
11514
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_shrinker() available" >&5
11517 $as_echo_n "checking whether set_shrinker() available... " >&6; }
11518
11519
11520 cat confdefs.h - <<_ACEOF >conftest.c
11521
11522
11523 #include <linux/mm.h>
11524
11525 int
11526 main (void)
11527 {
11528
11529 return set_shrinker(DEFAULT_SEEKS, NULL);
11530
11531 ;
11532 return 0;
11533 }
11534
11535 _ACEOF
11536
11537
11538 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11539 echo "obj-m := conftest.o" >build/Makefile
11540 modpost_flag=''
11541 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11542 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11547 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; }; }; then :
11553
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11555 $as_echo "yes" >&6; }
11556
11557 $as_echo "#define HAVE_SET_SHRINKER 1" >>confdefs.h
11558
11559
11560 else
11561 $as_echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11566
11567
11568
11569 fi
11570 rm -Rf build
11571
11572
11573
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrinker callback wants 3 args" >&5
11575 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
11576 tmp_flags="$EXTRA_KCFLAGS"
11577 EXTRA_KCFLAGS="-Werror"
11578
11579
11580 cat confdefs.h - <<_ACEOF >conftest.c
11581
11582
11583 #include <linux/mm.h>
11584
11585 int shrinker_cb(struct shrinker *, int, unsigned int);
11586
11587 int
11588 main (void)
11589 {
11590
11591 struct shrinker cache_shrinker = {
11592 .shrink = shrinker_cb,
11593 .seeks = DEFAULT_SEEKS,
11594 };
11595 register_shrinker(&cache_shrinker);
11596
11597 ;
11598 return 0;
11599 }
11600
11601 _ACEOF
11602
11603
11604 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11605 echo "obj-m := conftest.o" >build/Makefile
11606 modpost_flag=''
11607 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11608 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11610 (eval $ac_try) 2>&5
11611 ac_status=$?
11612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11618 test $ac_status = 0; }; }; then :
11619
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11621 $as_echo "yes" >&6; }
11622
11623 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
11624
11625
11626 else
11627 $as_echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631 $as_echo "no" >&6; }
11632
11633
11634
11635 fi
11636 rm -Rf build
11637
11638
11639 EXTRA_KCFLAGS="$tmp_flags"
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct path used in struct nameidata" >&5
11642 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
11643
11644
11645 cat confdefs.h - <<_ACEOF >conftest.c
11646
11647
11648 #include <linux/namei.h>
11649
11650 int
11651 main (void)
11652 {
11653
11654 struct nameidata nd __attribute__ ((unused));
11655
11656 nd.path.mnt = NULL;
11657 nd.path.dentry = NULL;
11658
11659 ;
11660 return 0;
11661 }
11662
11663 _ACEOF
11664
11665
11666 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11667 echo "obj-m := conftest.o" >build/Makefile
11668 modpost_flag=''
11669 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11670 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11675 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680 test $ac_status = 0; }; }; then :
11681
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683 $as_echo "yes" >&6; }
11684
11685 $as_echo "#define HAVE_PATH_IN_NAMEIDATA 1" >>confdefs.h
11686
11687
11688 else
11689 $as_echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11694
11695
11696
11697 fi
11698 rm -Rf build
11699
11700
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether task_curr() is available" >&5
11703 $as_echo_n "checking whether task_curr() is available... " >&6; }
11704
11705
11706
11707 cat confdefs.h - <<_ACEOF >conftest.c
11708
11709
11710 #include <linux/sched.h>
11711
11712 int
11713 main (void)
11714 {
11715
11716 task_curr(NULL);
11717
11718 ;
11719 return 0;
11720 }
11721
11722 _ACEOF
11723
11724
11725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11726 echo "obj-m := conftest.o" >build/Makefile
11727 modpost_flag=''
11728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11729 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11739 test $ac_status = 0; }; }; then :
11740 rc=0
11741 else
11742 $as_echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744 rc=1
11745
11746
11747 fi
11748 rm -Rf build
11749
11750
11751 if test $rc -ne 0; then :
11752
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754 $as_echo "no" >&6; }
11755
11756 else
11757 if test "x$enable_linux_builtin" != xyes; then
11758
11759 grep -q -E '[[:space:]]task_curr[[:space:]]' \
11760 $LINUX_OBJ/Module*.symvers 2>/dev/null
11761 rc=$?
11762 if test $rc -ne 0; then
11763 export=0
11764 for file in kernel/sched.c; do
11765 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
11766 "$LINUX_OBJ/$file" 2>/dev/null
11767 rc=$?
11768 if test $rc -eq 0; then
11769 export=1
11770 break;
11771 fi
11772 done
11773 if test $export -eq 0; then :
11774 rc=1
11775 else :
11776 rc=0
11777 fi
11778 else :
11779 rc=0
11780 fi
11781
11782 fi
11783 if test $rc -ne 0; then :
11784
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787
11788 else :
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11791 $as_echo "yes" >&6; }
11792
11793 $as_echo "#define HAVE_TASK_CURR 1" >>confdefs.h
11794
11795
11796 fi
11797 fi
11798
11799
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unnumbered sysctl support exists" >&5
11801 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
11802
11803
11804 cat confdefs.h - <<_ACEOF >conftest.c
11805
11806
11807 #include <linux/sysctl.h>
11808
11809 int
11810 main (void)
11811 {
11812
11813 #ifndef CTL_UNNUMBERED
11814 #error CTL_UNNUMBERED undefined
11815 #endif
11816
11817 ;
11818 return 0;
11819 }
11820
11821 _ACEOF
11822
11823
11824 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11825 echo "obj-m := conftest.o" >build/Makefile
11826 modpost_flag=''
11827 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11828 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11833 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838 test $ac_status = 0; }; }; then :
11839
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841 $as_echo "yes" >&6; }
11842
11843 $as_echo "#define HAVE_CTL_UNNUMBERED 1" >>confdefs.h
11844
11845
11846 else
11847 $as_echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851 $as_echo "no" >&6; }
11852
11853
11854
11855 fi
11856 rm -Rf build
11857
11858
11859
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
11862 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
11863
11864
11865 cat confdefs.h - <<_ACEOF >conftest.c
11866
11867
11868 #include <linux/sysctl.h>
11869
11870 int
11871 main (void)
11872 {
11873
11874 struct ctl_table ctl __attribute__ ((unused));
11875 ctl.ctl_name = 0;
11876
11877 ;
11878 return 0;
11879 }
11880
11881 _ACEOF
11882
11883
11884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11885 echo "obj-m := conftest.o" >build/Makefile
11886 modpost_flag=''
11887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11888 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11898 test $ac_status = 0; }; }; then :
11899
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901 $as_echo "yes" >&6; }
11902
11903 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
11904
11905
11906 else
11907 $as_echo "$as_me: failed program was:" >&5
11908 sed 's/^/| /' conftest.$ac_ext >&5
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912
11913
11914
11915 fi
11916 rm -Rf build
11917
11918
11919
11920
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct vmalloc_info is declared" >&5
11922 $as_echo_n "checking whether struct vmalloc_info is declared... " >&6; }
11923
11924
11925 cat confdefs.h - <<_ACEOF >conftest.c
11926
11927
11928 #include <linux/vmalloc.h>
11929 struct vmalloc_info { void *a; };
11930
11931 int
11932 main (void)
11933 {
11934
11935 return 0;
11936
11937 ;
11938 return 0;
11939 }
11940
11941 _ACEOF
11942
11943
11944 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11945 echo "obj-m := conftest.o" >build/Makefile
11946 modpost_flag=''
11947 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11948 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; }; }; then :
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961 $as_echo "no" >&6; }
11962
11963 else
11964 $as_echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11969
11970 $as_echo "#define HAVE_VMALLOC_INFO 1" >>confdefs.h
11971
11972
11973
11974
11975 fi
11976 rm -Rf build
11977
11978
11979
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
11982 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
11983
11984
11985
11986 cat confdefs.h - <<_ACEOF >conftest.c
11987
11988
11989 #include <linux/proc_fs.h>
11990
11991 int
11992 main (void)
11993 {
11994
11995 PDE_DATA(NULL);
11996
11997 ;
11998 return 0;
11999 }
12000
12001 _ACEOF
12002
12003
12004 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12005 echo "obj-m := conftest.o" >build/Makefile
12006 modpost_flag=''
12007 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12008 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12018 test $ac_status = 0; }; }; then :
12019 rc=0
12020 else
12021 $as_echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12023 rc=1
12024
12025
12026 fi
12027 rm -Rf build
12028
12029
12030 if test $rc -ne 0; then :
12031
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034
12035 else
12036 if test "x$enable_linux_builtin" != xyes; then
12037
12038 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12039 $LINUX_OBJ/Module*.symvers 2>/dev/null
12040 rc=$?
12041 if test $rc -ne 0; then
12042 export=0
12043 for file in ; do
12044 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12045 "$LINUX_OBJ/$file" 2>/dev/null
12046 rc=$?
12047 if test $rc -eq 0; then
12048 export=1
12049 break;
12050 fi
12051 done
12052 if test $export -eq 0; then :
12053 rc=1
12054 else :
12055 rc=0
12056 fi
12057 else :
12058 rc=0
12059 fi
12060
12061 fi
12062 if test $rc -ne 0; then :
12063
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066
12067 else :
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071
12072 $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
12073
12074
12075 fi
12076 fi
12077
12078
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fls64() is available" >&5
12080 $as_echo_n "checking whether fls64() is available... " >&6; }
12081
12082
12083 cat confdefs.h - <<_ACEOF >conftest.c
12084
12085
12086 #include <linux/bitops.h>
12087
12088 int
12089 main (void)
12090 {
12091
12092 return fls64(0);
12093
12094 ;
12095 return 0;
12096 }
12097
12098 _ACEOF
12099
12100
12101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12102 echo "obj-m := conftest.o" >build/Makefile
12103 modpost_flag=''
12104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12105 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12110 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; }; }; then :
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118 $as_echo "yes" >&6; }
12119
12120 $as_echo "#define HAVE_FLS64 1" >>confdefs.h
12121
12122
12123 else
12124 $as_echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128 $as_echo "no" >&6; }
12129
12130
12131
12132 fi
12133 rm -Rf build
12134
12135
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() is available" >&5
12138 $as_echo_n "checking whether device_create() is available... " >&6; }
12139
12140 grep -q -E '[[:space:]]device_create[[:space:]]' \
12141 $LINUX_OBJ/Module*.symvers 2>/dev/null
12142 rc=$?
12143 if test $rc -ne 0; then
12144 export=0
12145 for file in drivers/base/core.c; do
12146 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12147 "$LINUX_OBJ/$file" 2>/dev/null
12148 rc=$?
12149 if test $rc -eq 0; then
12150 export=1
12151 break;
12152 fi
12153 done
12154 if test $export -eq 0; then :
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12158
12159 else :
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162 $as_echo "yes" >&6; }
12163
12164 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
12165
12166
12167 fi
12168 else :
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12171 $as_echo "yes" >&6; }
12172
12173 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
12174
12175
12176 fi
12177
12178
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() wants 5 args" >&5
12181 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12182 tmp_flags="$EXTRA_KCFLAGS"
12183 EXTRA_KCFLAGS="-Werror"
12184
12185
12186 cat confdefs.h - <<_ACEOF >conftest.c
12187
12188
12189 #include <linux/device.h>
12190
12191 int
12192 main (void)
12193 {
12194
12195 device_create(NULL, NULL, 0, NULL, "%d", 1);
12196
12197 ;
12198 return 0;
12199 }
12200
12201 _ACEOF
12202
12203
12204 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12205 echo "obj-m := conftest.o" >build/Makefile
12206 modpost_flag=''
12207 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12208 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12210 (eval $ac_try) 2>&5
12211 ac_status=$?
12212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12213 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12215 (eval $ac_try) 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; }; }; then :
12219
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12222
12223 $as_echo "#define HAVE_5ARGS_DEVICE_CREATE 1" >>confdefs.h
12224
12225
12226 else
12227 $as_echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12232
12233
12234
12235 fi
12236 rm -Rf build
12237
12238
12239 EXTRA_KCFLAGS="$tmp_flags"
12240
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether class_device_create() is available" >&5
12242 $as_echo_n "checking whether class_device_create() is available... " >&6; }
12243
12244
12245
12246 cat confdefs.h - <<_ACEOF >conftest.c
12247
12248
12249 #include <linux/device.h>
12250
12251 int
12252 main (void)
12253 {
12254
12255 class_device_create(NULL, NULL, 0, NULL, NULL);
12256
12257 ;
12258 return 0;
12259 }
12260
12261 _ACEOF
12262
12263
12264 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12265 echo "obj-m := conftest.o" >build/Makefile
12266 modpost_flag=''
12267 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12268 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12273 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12275 (eval $ac_try) 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }; }; then :
12279 rc=0
12280 else
12281 $as_echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283 rc=1
12284
12285
12286 fi
12287 rm -Rf build
12288
12289
12290 if test $rc -ne 0; then :
12291
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294
12295 else
12296 if test "x$enable_linux_builtin" != xyes; then
12297
12298 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12299 $LINUX_OBJ/Module*.symvers 2>/dev/null
12300 rc=$?
12301 if test $rc -ne 0; then
12302 export=0
12303 for file in drivers/base/class.c; do
12304 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12305 "$LINUX_OBJ/$file" 2>/dev/null
12306 rc=$?
12307 if test $rc -eq 0; then
12308 export=1
12309 break;
12310 fi
12311 done
12312 if test $export -eq 0; then :
12313 rc=1
12314 else :
12315 rc=0
12316 fi
12317 else :
12318 rc=0
12319 fi
12320
12321 fi
12322 if test $rc -ne 0; then :
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12326
12327 else :
12328
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12330 $as_echo "yes" >&6; }
12331
12332 $as_echo "#define HAVE_CLASS_DEVICE_CREATE 1" >>confdefs.h
12333
12334
12335 fi
12336 fi
12337
12338
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is available as export" >&5
12340 $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; }
12341
12342
12343
12344 cat confdefs.h - <<_ACEOF >conftest.c
12345
12346
12347 #include <linux/time.h>
12348
12349 int
12350 main (void)
12351 {
12352
12353 set_normalized_timespec(NULL, 0, 0);
12354
12355 ;
12356 return 0;
12357 }
12358
12359 _ACEOF
12360
12361
12362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12363 echo "obj-m := conftest.o" >build/Makefile
12364 modpost_flag=''
12365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12366 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12371 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376 test $ac_status = 0; }; }; then :
12377 rc=0
12378 else
12379 $as_echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381 rc=1
12382
12383
12384 fi
12385 rm -Rf build
12386
12387
12388 if test $rc -ne 0; then :
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12392
12393 else
12394 if test "x$enable_linux_builtin" != xyes; then
12395
12396 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12397 $LINUX_OBJ/Module*.symvers 2>/dev/null
12398 rc=$?
12399 if test $rc -ne 0; then
12400 export=0
12401 for file in kernel/time.c; do
12402 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12403 "$LINUX_OBJ/$file" 2>/dev/null
12404 rc=$?
12405 if test $rc -eq 0; then
12406 export=1
12407 break;
12408 fi
12409 done
12410 if test $export -eq 0; then :
12411 rc=1
12412 else :
12413 rc=0
12414 fi
12415 else :
12416 rc=0
12417 fi
12418
12419 fi
12420 if test $rc -ne 0; then :
12421
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12424
12425 else :
12426
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 $as_echo "yes" >&6; }
12429
12430 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1" >>confdefs.h
12431
12432
12433 fi
12434 fi
12435
12436
12437
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is an inline" >&5
12439 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12440
12441
12442 cat confdefs.h - <<_ACEOF >conftest.c
12443
12444
12445 #include <linux/time.h>
12446 void set_normalized_timespec(struct timespec *ts,
12447 time_t sec, long nsec) { }
12448
12449 int
12450 main (void)
12451 {
12452
12453 ;
12454 return 0;
12455 }
12456
12457 _ACEOF
12458
12459
12460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12461 echo "obj-m := conftest.o" >build/Makefile
12462 modpost_flag=''
12463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
12468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; }; }; then :
12475
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12477 $as_echo "no" >&6; }
12478
12479 else
12480 $as_echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; }
12485
12486 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1" >>confdefs.h
12487
12488
12489
12490
12491 fi
12492 rm -Rf build
12493
12494
12495
12496
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timespec_sub() is available" >&5
12498 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12499
12500
12501 cat confdefs.h - <<_ACEOF >conftest.c
12502
12503
12504 #include <linux/time.h>
12505
12506 int
12507 main (void)
12508 {
12509
12510 struct timespec a = { 0 };
12511 struct timespec b = { 0 };
12512 struct timespec c __attribute__ ((unused));
12513 c = timespec_sub(a, b);
12514
12515 ;
12516 return 0;
12517 }
12518
12519 _ACEOF
12520
12521
12522 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12523 echo "obj-m := conftest.o" >build/Makefile
12524 modpost_flag=''
12525 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12526 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12536 test $ac_status = 0; }; }; then :
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540
12541 $as_echo "#define HAVE_TIMESPEC_SUB 1" >>confdefs.h
12542
12543
12544 else
12545 $as_echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12547
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550
12551
12552
12553 fi
12554 rm -Rf build
12555
12556
12557
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_utsname() is available" >&5
12560 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12561
12562
12563 cat confdefs.h - <<_ACEOF >conftest.c
12564
12565
12566 #include <linux/utsname.h>
12567
12568 int
12569 main (void)
12570 {
12571
12572 struct new_utsname *a __attribute__ ((unused));
12573 a = init_utsname();
12574
12575 ;
12576 return 0;
12577 }
12578
12579 _ACEOF
12580
12581
12582 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12583 echo "obj-m := conftest.o" >build/Makefile
12584 modpost_flag=''
12585 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12586 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12588 (eval $ac_try) 2>&5
12589 ac_status=$?
12590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12591 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12596 test $ac_status = 0; }; }; then :
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12599 $as_echo "yes" >&6; }
12600
12601 $as_echo "#define HAVE_INIT_UTSNAME 1" >>confdefs.h
12602
12603
12604 else
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610
12611
12612
12613 fi
12614 rm -Rf build
12615
12616
12617
12618
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/uaccess.h exists" >&5
12620 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
12621
12622
12623 cat confdefs.h - <<_ACEOF >conftest.c
12624
12625
12626 #include <linux/uaccess.h>
12627
12628 int
12629 main (void)
12630 {
12631
12632 return 0;
12633
12634 ;
12635 return 0;
12636 }
12637
12638 _ACEOF
12639
12640
12641 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12642 echo "obj-m := conftest.o" >build/Makefile
12643 modpost_flag=''
12644 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12645 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12647 (eval $ac_try) 2>&5
12648 ac_status=$?
12649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12650 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; }; then :
12656
12657
12658 $as_echo "#define HAVE_UACCESS_HEADER 1" >>confdefs.h
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12661 $as_echo "yes" >&6; }
12662
12663
12664 else
12665 $as_echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670
12671
12672
12673
12674 fi
12675 rm -Rf build
12676
12677
12678
12679
12680
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmalloc_node() is available" >&5
12682 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
12683
12684
12685 cat confdefs.h - <<_ACEOF >conftest.c
12686
12687
12688 #include <linux/slab.h>
12689
12690 int
12691 main (void)
12692 {
12693
12694 void *a __attribute__ ((unused));
12695 a = kmalloc_node(1, GFP_KERNEL, 0);
12696
12697 ;
12698 return 0;
12699 }
12700
12701 _ACEOF
12702
12703
12704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12705 echo "obj-m := conftest.o" >build/Makefile
12706 modpost_flag=''
12707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12708 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718 test $ac_status = 0; }; }; then :
12719
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12721 $as_echo "yes" >&6; }
12722
12723 $as_echo "#define HAVE_KMALLOC_NODE 1" >>confdefs.h
12724
12725
12726 else
12727 $as_echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731 $as_echo "no" >&6; }
12732
12733
12734
12735 fi
12736 rm -Rf build
12737
12738
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether monotonic_clock() is available" >&5
12741 $as_echo_n "checking whether monotonic_clock() is available... " >&6; }
12742
12743
12744
12745 cat confdefs.h - <<_ACEOF >conftest.c
12746
12747
12748 #include <linux/timex.h>
12749
12750 int
12751 main (void)
12752 {
12753
12754 monotonic_clock();
12755
12756 ;
12757 return 0;
12758 }
12759
12760 _ACEOF
12761
12762
12763 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12764 echo "obj-m := conftest.o" >build/Makefile
12765 modpost_flag=''
12766 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12767 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777 test $ac_status = 0; }; }; then :
12778 rc=0
12779 else
12780 $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782 rc=1
12783
12784
12785 fi
12786 rm -Rf build
12787
12788
12789 if test $rc -ne 0; then :
12790
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793
12794 else
12795 if test "x$enable_linux_builtin" != xyes; then
12796
12797 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
12798 $LINUX_OBJ/Module*.symvers 2>/dev/null
12799 rc=$?
12800 if test $rc -ne 0; then
12801 export=0
12802 for file in ; do
12803 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
12804 "$LINUX_OBJ/$file" 2>/dev/null
12805 rc=$?
12806 if test $rc -eq 0; then
12807 export=1
12808 break;
12809 fi
12810 done
12811 if test $export -eq 0; then :
12812 rc=1
12813 else :
12814 rc=0
12815 fi
12816 else :
12817 rc=0
12818 fi
12819
12820 fi
12821 if test $rc -ne 0; then :
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12825
12826 else :
12827
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12829 $as_echo "yes" >&6; }
12830
12831 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
12832
12833
12834 fi
12835 fi
12836
12837
12838
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct inode has i_mutex" >&5
12840 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
12841
12842
12843 cat confdefs.h - <<_ACEOF >conftest.c
12844
12845
12846 #include <linux/fs.h>
12847 #include <linux/mutex.h>
12848
12849 int
12850 main (void)
12851 {
12852
12853 struct inode i;
12854 mutex_init(&i.i_mutex);
12855
12856 ;
12857 return 0;
12858 }
12859
12860 _ACEOF
12861
12862
12863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12864 echo "obj-m := conftest.o" >build/Makefile
12865 modpost_flag=''
12866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12874 (eval $ac_try) 2>&5
12875 ac_status=$?
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; }; then :
12878
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12881
12882 $as_echo "#define HAVE_INODE_I_MUTEX 1" >>confdefs.h
12883
12884
12885 else
12886 $as_echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12888
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891
12892
12893
12894 fi
12895 rm -Rf build
12896
12897
12898
12899
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex has owner" >&5
12901 $as_echo_n "checking whether struct mutex has owner... " >&6; }
12902
12903
12904 cat confdefs.h - <<_ACEOF >conftest.c
12905
12906
12907 #include <linux/mutex.h>
12908
12909 int
12910 main (void)
12911 {
12912
12913 struct mutex mtx __attribute__ ((unused));
12914 mtx.owner = NULL;
12915
12916 ;
12917 return 0;
12918 }
12919
12920 _ACEOF
12921
12922
12923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12924 echo "obj-m := conftest.o" >build/Makefile
12925 modpost_flag=''
12926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937 test $ac_status = 0; }; }; then :
12938
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940 $as_echo "yes" >&6; }
12941
12942 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
12943
12944
12945 else
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12951
12952
12953
12954 fi
12955 rm -Rf build
12956
12957
12958
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex owner is a task_struct" >&5
12961 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
12962 tmp_flags="$EXTRA_KCFLAGS"
12963 EXTRA_KCFLAGS="-Werror"
12964
12965
12966 cat confdefs.h - <<_ACEOF >conftest.c
12967
12968
12969 #include <linux/mutex.h>
12970 #include <linux/sched.h>
12971
12972 int
12973 main (void)
12974 {
12975
12976 struct mutex mtx __attribute__ ((unused));
12977 mtx.owner = current;
12978
12979 ;
12980 return 0;
12981 }
12982
12983 _ACEOF
12984
12985
12986 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12987 echo "obj-m := conftest.o" >build/Makefile
12988 modpost_flag=''
12989 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12990 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12992 (eval $ac_try) 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000 test $ac_status = 0; }; }; then :
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004
13005 $as_echo "#define HAVE_MUTEX_OWNER_TASK_STRUCT 1" >>confdefs.h
13006
13007
13008 else
13009 $as_echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013 $as_echo "no" >&6; }
13014
13015
13016
13017 fi
13018 rm -Rf build
13019
13020
13021 EXTRA_KCFLAGS="$tmp_flags"
13022
13023
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock_nested() is available" >&5
13025 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13026
13027
13028 cat confdefs.h - <<_ACEOF >conftest.c
13029
13030
13031 #include <linux/mutex.h>
13032
13033 int
13034 main (void)
13035 {
13036
13037 struct mutex mutex;
13038 mutex_init(&mutex);
13039 mutex_lock_nested(&mutex, 0);
13040
13041 ;
13042 return 0;
13043 }
13044
13045 _ACEOF
13046
13047
13048 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13049 echo "obj-m := conftest.o" >build/Makefile
13050 modpost_flag=''
13051 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13052 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }; }; then :
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13065 $as_echo "yes" >&6; }
13066
13067 $as_echo "#define HAVE_MUTEX_LOCK_NESTED 1" >>confdefs.h
13068
13069
13070 else
13071 $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13076
13077
13078
13079 fi
13080 rm -Rf build
13081
13082
13083
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether on_each_cpu() wants 3 args" >&5
13086 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13087
13088
13089 cat confdefs.h - <<_ACEOF >conftest.c
13090
13091
13092 #include <linux/interrupt.h>
13093 #include <linux/smp.h>
13094
13095 void on_each_cpu_func(void *data) { return; }
13096
13097 int
13098 main (void)
13099 {
13100
13101 on_each_cpu(on_each_cpu_func, NULL, 0);
13102
13103 ;
13104 return 0;
13105 }
13106
13107 _ACEOF
13108
13109
13110 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13111 echo "obj-m := conftest.o" >build/Makefile
13112 modpost_flag=''
13113 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13114 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13116 (eval $ac_try) 2>&5
13117 ac_status=$?
13118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13119 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; }; then :
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127 $as_echo "yes" >&6; }
13128
13129 $as_echo "#define HAVE_3ARGS_ON_EACH_CPU 1" >>confdefs.h
13130
13131
13132 else
13133 $as_echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137 $as_echo "no" >&6; }
13138
13139
13140
13141 fi
13142 rm -Rf build
13143
13144
13145
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kallsyms_lookup_name() is available" >&5
13147 $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; }
13148
13149
13150
13151 cat confdefs.h - <<_ACEOF >conftest.c
13152
13153
13154 #include <linux/kallsyms.h>
13155
13156 int
13157 main (void)
13158 {
13159
13160 kallsyms_lookup_name(NULL);
13161
13162 ;
13163 return 0;
13164 }
13165
13166 _ACEOF
13167
13168
13169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13170 echo "obj-m := conftest.o" >build/Makefile
13171 modpost_flag=''
13172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13173 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }; }; then :
13184 rc=0
13185 else
13186 $as_echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188 rc=1
13189
13190
13191 fi
13192 rm -Rf build
13193
13194
13195 if test $rc -ne 0; then :
13196
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198 $as_echo "no" >&6; }
13199
13200 else
13201 if test "x$enable_linux_builtin" != xyes; then
13202
13203 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13204 $LINUX_OBJ/Module*.symvers 2>/dev/null
13205 rc=$?
13206 if test $rc -ne 0; then
13207 export=0
13208 for file in ; do
13209 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13210 "$LINUX_OBJ/$file" 2>/dev/null
13211 rc=$?
13212 if test $rc -eq 0; then
13213 export=1
13214 break;
13215 fi
13216 done
13217 if test $export -eq 0; then :
13218 rc=1
13219 else :
13220 rc=0
13221 fi
13222 else :
13223 rc=0
13224 fi
13225
13226 fi
13227 if test $rc -ne 0; then :
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13230 $as_echo "no" >&6; }
13231
13232 else :
13233
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13235 $as_echo "yes" >&6; }
13236
13237 $as_echo "#define HAVE_KALLSYMS_LOOKUP_NAME 1" >>confdefs.h
13238
13239
13240 fi
13241 fi
13242
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_vmalloc_info() is available" >&5
13245 $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; }
13246
13247 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13248 $LINUX_OBJ/Module*.symvers 2>/dev/null
13249 rc=$?
13250 if test $rc -ne 0; then
13251 export=0
13252 for file in ; do
13253 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13254 "$LINUX_OBJ/$file" 2>/dev/null
13255 rc=$?
13256 if test $rc -eq 0; then
13257 export=1
13258 break;
13259 fi
13260 done
13261 if test $export -eq 0; then :
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265
13266 else :
13267
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13269 $as_echo "yes" >&6; }
13270
13271 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
13272
13273
13274 fi
13275 else :
13276
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13278 $as_echo "yes" >&6; }
13279
13280 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
13281
13282
13283 fi
13284
13285
13286
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol *_pgdat exist" >&5
13288 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13289 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13290 rc=$?
13291 if test $rc -eq 0; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13293 $as_echo "yes" >&6; }
13294
13295 $as_echo "#define HAVE_PGDAT_HELPERS 1" >>confdefs.h
13296
13297 else
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether first_online_pgdat() is available" >&5
13303 $as_echo_n "checking whether first_online_pgdat() is available... " >&6; }
13304
13305
13306
13307 cat confdefs.h - <<_ACEOF >conftest.c
13308
13309
13310 #include <linux/mmzone.h>
13311
13312 int
13313 main (void)
13314 {
13315
13316 first_online_pgdat();
13317
13318 ;
13319 return 0;
13320 }
13321
13322 _ACEOF
13323
13324
13325 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13326 echo "obj-m := conftest.o" >build/Makefile
13327 modpost_flag=''
13328 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13329 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13339 test $ac_status = 0; }; }; then :
13340 rc=0
13341 else
13342 $as_echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344 rc=1
13345
13346
13347 fi
13348 rm -Rf build
13349
13350
13351 if test $rc -ne 0; then :
13352
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354 $as_echo "no" >&6; }
13355
13356 else
13357 if test "x$enable_linux_builtin" != xyes; then
13358
13359 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13360 $LINUX_OBJ/Module*.symvers 2>/dev/null
13361 rc=$?
13362 if test $rc -ne 0; then
13363 export=0
13364 for file in ; do
13365 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13366 "$LINUX_OBJ/$file" 2>/dev/null
13367 rc=$?
13368 if test $rc -eq 0; then
13369 export=1
13370 break;
13371 fi
13372 done
13373 if test $export -eq 0; then :
13374 rc=1
13375 else :
13376 rc=0
13377 fi
13378 else :
13379 rc=0
13380 fi
13381
13382 fi
13383 if test $rc -ne 0; then :
13384
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386 $as_echo "no" >&6; }
13387
13388 else :
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13391 $as_echo "yes" >&6; }
13392
13393 $as_echo "#define HAVE_FIRST_ONLINE_PGDAT 1" >>confdefs.h
13394
13395
13396 fi
13397 fi
13398
13399
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_online_pgdat() is available" >&5
13401 $as_echo_n "checking whether next_online_pgdat() is available... " >&6; }
13402
13403
13404
13405 cat confdefs.h - <<_ACEOF >conftest.c
13406
13407
13408 #include <linux/mmzone.h>
13409
13410 int
13411 main (void)
13412 {
13413
13414 next_online_pgdat(NULL);
13415
13416 ;
13417 return 0;
13418 }
13419
13420 _ACEOF
13421
13422
13423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13424 echo "obj-m := conftest.o" >build/Makefile
13425 modpost_flag=''
13426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13427 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437 test $ac_status = 0; }; }; then :
13438 rc=0
13439 else
13440 $as_echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442 rc=1
13443
13444
13445 fi
13446 rm -Rf build
13447
13448
13449 if test $rc -ne 0; then :
13450
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13452 $as_echo "no" >&6; }
13453
13454 else
13455 if test "x$enable_linux_builtin" != xyes; then
13456
13457 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13458 $LINUX_OBJ/Module*.symvers 2>/dev/null
13459 rc=$?
13460 if test $rc -ne 0; then
13461 export=0
13462 for file in ; do
13463 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13464 "$LINUX_OBJ/$file" 2>/dev/null
13465 rc=$?
13466 if test $rc -eq 0; then
13467 export=1
13468 break;
13469 fi
13470 done
13471 if test $export -eq 0; then :
13472 rc=1
13473 else :
13474 rc=0
13475 fi
13476 else :
13477 rc=0
13478 fi
13479
13480 fi
13481 if test $rc -ne 0; then :
13482
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13484 $as_echo "no" >&6; }
13485
13486 else :
13487
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13489 $as_echo "yes" >&6; }
13490
13491 $as_echo "#define HAVE_NEXT_ONLINE_PGDAT 1" >>confdefs.h
13492
13493
13494 fi
13495 fi
13496
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_zone() is available" >&5
13499 $as_echo_n "checking whether next_zone() is available... " >&6; }
13500
13501
13502
13503 cat confdefs.h - <<_ACEOF >conftest.c
13504
13505
13506 #include <linux/mmzone.h>
13507
13508 int
13509 main (void)
13510 {
13511
13512 next_zone(NULL);
13513
13514 ;
13515 return 0;
13516 }
13517
13518 _ACEOF
13519
13520
13521 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13522 echo "obj-m := conftest.o" >build/Makefile
13523 modpost_flag=''
13524 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13525 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13530 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13532 (eval $ac_try) 2>&5
13533 ac_status=$?
13534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; }; }; then :
13536 rc=0
13537 else
13538 $as_echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540 rc=1
13541
13542
13543 fi
13544 rm -Rf build
13545
13546
13547 if test $rc -ne 0; then :
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550 $as_echo "no" >&6; }
13551
13552 else
13553 if test "x$enable_linux_builtin" != xyes; then
13554
13555 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13556 $LINUX_OBJ/Module*.symvers 2>/dev/null
13557 rc=$?
13558 if test $rc -ne 0; then
13559 export=0
13560 for file in ; do
13561 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13562 "$LINUX_OBJ/$file" 2>/dev/null
13563 rc=$?
13564 if test $rc -eq 0; then
13565 export=1
13566 break;
13567 fi
13568 done
13569 if test $export -eq 0; then :
13570 rc=1
13571 else :
13572 rc=0
13573 fi
13574 else :
13575 rc=0
13576 fi
13577
13578 fi
13579 if test $rc -ne 0; then :
13580
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582 $as_echo "no" >&6; }
13583
13584 else :
13585
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13587 $as_echo "yes" >&6; }
13588
13589 $as_echo "#define HAVE_NEXT_ZONE 1" >>confdefs.h
13590
13591
13592 fi
13593 fi
13594
13595
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgdat_list is available" >&5
13597 $as_echo_n "checking whether pgdat_list is available... " >&6; }
13598
13599
13600
13601 cat confdefs.h - <<_ACEOF >conftest.c
13602
13603
13604 #include <linux/topology.h>
13605 pg_data_t *tmp = pgdat_list;
13606
13607 int
13608 main (void)
13609 {
13610
13611 ;
13612 return 0;
13613 }
13614
13615 _ACEOF
13616
13617
13618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13619 echo "obj-m := conftest.o" >build/Makefile
13620 modpost_flag=''
13621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13622 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13624 (eval $ac_try) 2>&5
13625 ac_status=$?
13626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13629 (eval $ac_try) 2>&5
13630 ac_status=$?
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13632 test $ac_status = 0; }; }; then :
13633 rc=0
13634 else
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637 rc=1
13638
13639
13640 fi
13641 rm -Rf build
13642
13643
13644 if test $rc -ne 0; then :
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13648
13649 else
13650 if test "x$enable_linux_builtin" != xyes; then
13651
13652 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13653 $LINUX_OBJ/Module*.symvers 2>/dev/null
13654 rc=$?
13655 if test $rc -ne 0; then
13656 export=0
13657 for file in ; do
13658 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13659 "$LINUX_OBJ/$file" 2>/dev/null
13660 rc=$?
13661 if test $rc -eq 0; then
13662 export=1
13663 break;
13664 fi
13665 done
13666 if test $export -eq 0; then :
13667 rc=1
13668 else :
13669 rc=0
13670 fi
13671 else :
13672 rc=0
13673 fi
13674
13675 fi
13676 if test $rc -ne 0; then :
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13679 $as_echo "no" >&6; }
13680
13681 else :
13682
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13684 $as_echo "yes" >&6; }
13685
13686 $as_echo "#define HAVE_PGDAT_LIST 1" >>confdefs.h
13687
13688
13689 fi
13690 fi
13691
13692
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether global_page_state() is available" >&5
13695 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13696
13697
13698 cat confdefs.h - <<_ACEOF >conftest.c
13699
13700
13701 #include <linux/mm.h>
13702
13703 int
13704 main (void)
13705 {
13706
13707 unsigned long state __attribute__ ((unused));
13708 state = global_page_state(0);
13709
13710 ;
13711 return 0;
13712 }
13713
13714 _ACEOF
13715
13716
13717 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13718 echo "obj-m := conftest.o" >build/Makefile
13719 modpost_flag=''
13720 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13721 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13731 test $ac_status = 0; }; }; then :
13732
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13734 $as_echo "yes" >&6; }
13735
13736 $as_echo "#define HAVE_GLOBAL_PAGE_STATE 1" >>confdefs.h
13737
13738
13739 else
13740 $as_echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744 $as_echo "no" >&6; }
13745
13746
13747
13748 fi
13749 rm -Rf build
13750
13751
13752
13753
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_FREE_PAGES is available" >&5
13755 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13756
13757
13758 cat confdefs.h - <<_ACEOF >conftest.c
13759
13760
13761 #include <linux/mm.h>
13762
13763 int
13764 main (void)
13765 {
13766
13767 enum zone_stat_item zsi __attribute__ ((unused));
13768 zsi = NR_FREE_PAGES;
13769
13770 ;
13771 return 0;
13772 }
13773
13774 _ACEOF
13775
13776
13777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13778 echo "obj-m := conftest.o" >build/Makefile
13779 modpost_flag=''
13780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13786 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13791 test $ac_status = 0; }; }; then :
13792
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13794 $as_echo "yes" >&6; }
13795
13796 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1" >>confdefs.h
13797
13798
13799 else
13800 $as_echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13804 $as_echo "no" >&6; }
13805
13806
13807
13808 fi
13809 rm -Rf build
13810
13811
13812
13813
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE is available" >&5
13815 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13816
13817
13818 cat confdefs.h - <<_ACEOF >conftest.c
13819
13820
13821 #include <linux/mm.h>
13822
13823 int
13824 main (void)
13825 {
13826
13827 enum zone_stat_item zsi __attribute__ ((unused));
13828 zsi = NR_INACTIVE;
13829
13830 ;
13831 return 0;
13832 }
13833
13834 _ACEOF
13835
13836
13837 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13838 echo "obj-m := conftest.o" >build/Makefile
13839 modpost_flag=''
13840 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13841 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13851 test $ac_status = 0; }; }; then :
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13854 $as_echo "yes" >&6; }
13855
13856 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1" >>confdefs.h
13857
13858
13859 else
13860 $as_echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864 $as_echo "no" >&6; }
13865
13866
13867
13868 fi
13869 rm -Rf build
13870
13871
13872
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_ANON is available" >&5
13874 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
13875
13876
13877 cat confdefs.h - <<_ACEOF >conftest.c
13878
13879
13880 #include <linux/mm.h>
13881
13882 int
13883 main (void)
13884 {
13885
13886 enum zone_stat_item zsi __attribute__ ((unused));
13887 zsi = NR_INACTIVE_ANON;
13888
13889 ;
13890 return 0;
13891 }
13892
13893 _ACEOF
13894
13895
13896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13897 echo "obj-m := conftest.o" >build/Makefile
13898 modpost_flag=''
13899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13900 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13910 test $ac_status = 0; }; }; then :
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914
13915 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1" >>confdefs.h
13916
13917
13918 else
13919 $as_echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923 $as_echo "no" >&6; }
13924
13925
13926
13927 fi
13928 rm -Rf build
13929
13930
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_FILE is available" >&5
13933 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
13934
13935
13936 cat confdefs.h - <<_ACEOF >conftest.c
13937
13938
13939 #include <linux/mm.h>
13940
13941 int
13942 main (void)
13943 {
13944
13945 enum zone_stat_item zsi __attribute__ ((unused));
13946 zsi = NR_INACTIVE_FILE;
13947
13948 ;
13949 return 0;
13950 }
13951
13952 _ACEOF
13953
13954
13955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13956 echo "obj-m := conftest.o" >build/Makefile
13957 modpost_flag=''
13958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13959 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13969 test $ac_status = 0; }; }; then :
13970
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13972 $as_echo "yes" >&6; }
13973
13974 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1" >>confdefs.h
13975
13976
13977 else
13978 $as_echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13983
13984
13985
13986 fi
13987 rm -Rf build
13988
13989
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE is available" >&5
13993 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
13994
13995
13996 cat confdefs.h - <<_ACEOF >conftest.c
13997
13998
13999 #include <linux/mm.h>
14000
14001 int
14002 main (void)
14003 {
14004
14005 enum zone_stat_item zsi __attribute__ ((unused));
14006 zsi = NR_ACTIVE;
14007
14008 ;
14009 return 0;
14010 }
14011
14012 _ACEOF
14013
14014
14015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14016 echo "obj-m := conftest.o" >build/Makefile
14017 modpost_flag=''
14018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14021 (eval $ac_try) 2>&5
14022 ac_status=$?
14023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; }; then :
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14032 $as_echo "yes" >&6; }
14033
14034 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1" >>confdefs.h
14035
14036
14037 else
14038 $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14043
14044
14045
14046 fi
14047 rm -Rf build
14048
14049
14050
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_ANON is available" >&5
14052 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14053
14054
14055 cat confdefs.h - <<_ACEOF >conftest.c
14056
14057
14058 #include <linux/mm.h>
14059
14060 int
14061 main (void)
14062 {
14063
14064 enum zone_stat_item zsi __attribute__ ((unused));
14065 zsi = NR_ACTIVE_ANON;
14066
14067 ;
14068 return 0;
14069 }
14070
14071 _ACEOF
14072
14073
14074 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14075 echo "obj-m := conftest.o" >build/Makefile
14076 modpost_flag=''
14077 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14078 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14080 (eval $ac_try) 2>&5
14081 ac_status=$?
14082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14083 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088 test $ac_status = 0; }; }; then :
14089
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14091 $as_echo "yes" >&6; }
14092
14093 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1" >>confdefs.h
14094
14095
14096 else
14097 $as_echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102
14103
14104
14105 fi
14106 rm -Rf build
14107
14108
14109
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_FILE is available" >&5
14111 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14112
14113
14114 cat confdefs.h - <<_ACEOF >conftest.c
14115
14116
14117 #include <linux/mm.h>
14118
14119 int
14120 main (void)
14121 {
14122
14123 enum zone_stat_item zsi __attribute__ ((unused));
14124 zsi = NR_ACTIVE_FILE;
14125
14126 ;
14127 return 0;
14128 }
14129
14130 _ACEOF
14131
14132
14133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14134 echo "obj-m := conftest.o" >build/Makefile
14135 modpost_flag=''
14136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14142 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147 test $ac_status = 0; }; }; then :
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150 $as_echo "yes" >&6; }
14151
14152 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1" >>confdefs.h
14153
14154
14155 else
14156 $as_echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14161
14162
14163
14164 fi
14165 rm -Rf build
14166
14167
14168
14169
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol get_zone_counts is needed" >&5
14171 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14172
14173
14174 cat confdefs.h - <<_ACEOF >conftest.c
14175
14176
14177
14178 int
14179 main (void)
14180 {
14181
14182 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14183 #error "global_page_state needs NR_FREE_PAGES"
14184 #endif
14185
14186 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14187 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14188 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14189 #error "global_page_state needs NR_ACTIVE*"
14190 #endif
14191
14192 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14193 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14194 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14195 #error "global_page_state needs NR_INACTIVE*"
14196 #endif
14197
14198 ;
14199 return 0;
14200 }
14201
14202 _ACEOF
14203
14204
14205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14206 echo "obj-m := conftest.o" >build/Makefile
14207 modpost_flag=''
14208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14214 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14216 (eval $ac_try) 2>&5
14217 ac_status=$?
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14219 test $ac_status = 0; }; }; then :
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223
14224 else
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14227
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14229 $as_echo "yes" >&6; }
14230
14231 $as_echo "#define NEED_GET_ZONE_COUNTS 1" >>confdefs.h
14232
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_zone_counts() is available" >&5
14235 $as_echo_n "checking whether get_zone_counts() is available... " >&6; }
14236
14237
14238
14239 cat confdefs.h - <<_ACEOF >conftest.c
14240
14241
14242 #include <linux/mmzone.h>
14243
14244 int
14245 main (void)
14246 {
14247
14248 get_zone_counts(NULL, NULL, NULL);
14249
14250 ;
14251 return 0;
14252 }
14253
14254 _ACEOF
14255
14256
14257 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14258 echo "obj-m := conftest.o" >build/Makefile
14259 modpost_flag=''
14260 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14261 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14263 (eval $ac_try) 2>&5
14264 ac_status=$?
14265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14266 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14271 test $ac_status = 0; }; }; then :
14272 rc=0
14273 else
14274 $as_echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276 rc=1
14277
14278
14279 fi
14280 rm -Rf build
14281
14282
14283 if test $rc -ne 0; then :
14284
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286 $as_echo "no" >&6; }
14287
14288 else
14289 if test "x$enable_linux_builtin" != xyes; then
14290
14291 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14292 $LINUX_OBJ/Module*.symvers 2>/dev/null
14293 rc=$?
14294 if test $rc -ne 0; then
14295 export=0
14296 for file in ; do
14297 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14298 "$LINUX_OBJ/$file" 2>/dev/null
14299 rc=$?
14300 if test $rc -eq 0; then
14301 export=1
14302 break;
14303 fi
14304 done
14305 if test $export -eq 0; then :
14306 rc=1
14307 else :
14308 rc=0
14309 fi
14310 else :
14311 rc=0
14312 fi
14313
14314 fi
14315 if test $rc -ne 0; then :
14316
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 $as_echo "no" >&6; }
14319
14320 else :
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14323 $as_echo "yes" >&6; }
14324
14325 $as_echo "#define HAVE_GET_ZONE_COUNTS 1" >>confdefs.h
14326
14327
14328 fi
14329 fi
14330
14331
14332
14333
14334 fi
14335 rm -Rf build
14336
14337
14338
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user_path_dir() is available" >&5
14340 $as_echo_n "checking whether user_path_dir() is available... " >&6; }
14341
14342
14343
14344 cat confdefs.h - <<_ACEOF >conftest.c
14345
14346
14347 #include <linux/fcntl.h>
14348 #include <linux/namei.h>
14349
14350 int
14351 main (void)
14352 {
14353
14354 user_path_dir(NULL, NULL);
14355
14356 ;
14357 return 0;
14358 }
14359
14360 _ACEOF
14361
14362
14363 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14364 echo "obj-m := conftest.o" >build/Makefile
14365 modpost_flag=''
14366 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14372 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; }; then :
14378 rc=0
14379 else
14380 $as_echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382 rc=1
14383
14384
14385 fi
14386 rm -Rf build
14387
14388
14389 if test $rc -ne 0; then :
14390
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393
14394 else
14395 if test "x$enable_linux_builtin" != xyes; then
14396
14397 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14398 $LINUX_OBJ/Module*.symvers 2>/dev/null
14399 rc=$?
14400 if test $rc -ne 0; then
14401 export=0
14402 for file in ; do
14403 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14404 "$LINUX_OBJ/$file" 2>/dev/null
14405 rc=$?
14406 if test $rc -eq 0; then
14407 export=1
14408 break;
14409 fi
14410 done
14411 if test $export -eq 0; then :
14412 rc=1
14413 else :
14414 rc=0
14415 fi
14416 else :
14417 rc=0
14418 fi
14419
14420 fi
14421 if test $rc -ne 0; then :
14422
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425
14426 else :
14427
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14429 $as_echo "yes" >&6; }
14430
14431 $as_echo "#define HAVE_USER_PATH_DIR 1" >>confdefs.h
14432
14433
14434 fi
14435 fi
14436
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() is available" >&5
14439 $as_echo_n "checking whether set_fs_pwd() is available... " >&6; }
14440
14441
14442
14443 cat confdefs.h - <<_ACEOF >conftest.c
14444
14445
14446 #include <linux/spinlock.h>
14447 #include <linux/fs_struct.h>
14448
14449 int
14450 main (void)
14451 {
14452
14453 (void) set_fs_pwd;
14454
14455 ;
14456 return 0;
14457 }
14458
14459 _ACEOF
14460
14461
14462 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14463 echo "obj-m := conftest.o" >build/Makefile
14464 modpost_flag=''
14465 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14466 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14471 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
14475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14476 test $ac_status = 0; }; }; then :
14477 rc=0
14478 else
14479 $as_echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481 rc=1
14482
14483
14484 fi
14485 rm -Rf build
14486
14487
14488 if test $rc -ne 0; then :
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14491 $as_echo "no" >&6; }
14492
14493 else
14494 if test "x$enable_linux_builtin" != xyes; then
14495
14496 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14497 $LINUX_OBJ/Module*.symvers 2>/dev/null
14498 rc=$?
14499 if test $rc -ne 0; then
14500 export=0
14501 for file in ; do
14502 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14503 "$LINUX_OBJ/$file" 2>/dev/null
14504 rc=$?
14505 if test $rc -eq 0; then
14506 export=1
14507 break;
14508 fi
14509 done
14510 if test $export -eq 0; then :
14511 rc=1
14512 else :
14513 rc=0
14514 fi
14515 else :
14516 rc=0
14517 fi
14518
14519 fi
14520 if test $rc -ne 0; then :
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523 $as_echo "no" >&6; }
14524
14525 else :
14526
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14529
14530 $as_echo "#define HAVE_SET_FS_PWD 1" >>confdefs.h
14531
14532
14533 fi
14534 fi
14535
14536
14537 tmp_flags="$EXTRA_KCFLAGS"
14538 EXTRA_KCFLAGS="-Werror"
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
14540 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
14541
14542
14543 cat confdefs.h - <<_ACEOF >conftest.c
14544
14545
14546 #include <linux/spinlock.h>
14547 #include <linux/fs_struct.h>
14548 #include <linux/path.h>
14549 void (*const set_fs_pwd_func)
14550 (struct fs_struct *, const struct path *)
14551 = set_fs_pwd;
14552
14553 int
14554 main (void)
14555 {
14556
14557 return 0;
14558
14559 ;
14560 return 0;
14561 }
14562
14563 _ACEOF
14564
14565
14566 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14567 echo "obj-m := conftest.o" >build/Makefile
14568 modpost_flag=''
14569 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14570 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14572 (eval $ac_try) 2>&5
14573 ac_status=$?
14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14580 test $ac_status = 0; }; }; then :
14581
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14583 $as_echo "yes" >&6; }
14584
14585 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
14586
14587
14588 else
14589 $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592
14593
14594 cat confdefs.h - <<_ACEOF >conftest.c
14595
14596
14597 #include <linux/spinlock.h>
14598 #include <linux/fs_struct.h>
14599 #include <linux/path.h>
14600 void (*const set_fs_pwd_func)
14601 (struct fs_struct *, struct path *)
14602 = set_fs_pwd;
14603
14604 int
14605 main (void)
14606 {
14607
14608 return 0;
14609
14610 ;
14611 return 0;
14612 }
14613
14614 _ACEOF
14615
14616
14617 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14618 echo "obj-m := conftest.o" >build/Makefile
14619 modpost_flag=''
14620 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14621 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14626 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14628 (eval $ac_try) 2>&5
14629 ac_status=$?
14630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14631 test $ac_status = 0; }; }; then :
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14635
14636 else
14637 $as_echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 as_fn_error $? "unknown" "$LINENO" 5
14641
14642
14643
14644 fi
14645 rm -Rf build
14646
14647
14648
14649
14650
14651 fi
14652 rm -Rf build
14653
14654
14655 EXTRA_KCFLAGS="$tmp_flags"
14656
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
14658 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14659
14660
14661 cat confdefs.h - <<_ACEOF >conftest.c
14662
14663
14664 #include <linux/fs.h>
14665
14666 int
14667 main (void)
14668 {
14669
14670 vfs_unlink(NULL, NULL);
14671
14672 ;
14673 return 0;
14674 }
14675
14676 _ACEOF
14677
14678
14679 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14680 echo "obj-m := conftest.o" >build/Makefile
14681 modpost_flag=''
14682 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14683 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14693 test $ac_status = 0; }; }; then :
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14696 $as_echo "yes" >&6; }
14697
14698 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
14699
14700
14701 else
14702 $as_echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14706 $as_echo "no" >&6; }
14707
14708
14709
14710 fi
14711 rm -Rf build
14712
14713
14714
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
14716 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14717
14718
14719 cat confdefs.h - <<_ACEOF >conftest.c
14720
14721
14722 #include <linux/fs.h>
14723
14724 int
14725 main (void)
14726 {
14727
14728 vfs_rename(NULL, NULL, NULL, NULL);
14729
14730 ;
14731 return 0;
14732 }
14733
14734 _ACEOF
14735
14736
14737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14738 echo "obj-m := conftest.o" >build/Makefile
14739 modpost_flag=''
14740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14743 (eval $ac_try) 2>&5
14744 ac_status=$?
14745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 test $ac_status = 0; }; }; then :
14752
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14755
14756 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
14757
14758
14759 else
14760 $as_echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14765
14766
14767
14768 fi
14769 rm -Rf build
14770
14771
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() is available" >&5
14774 $as_echo_n "checking whether vfs_fsync() is available... " >&6; }
14775
14776
14777
14778 cat confdefs.h - <<_ACEOF >conftest.c
14779
14780
14781 #include <linux/fs.h>
14782
14783 int
14784 main (void)
14785 {
14786
14787 (void) vfs_fsync;
14788
14789 ;
14790 return 0;
14791 }
14792
14793 _ACEOF
14794
14795
14796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14797 echo "obj-m := conftest.o" >build/Makefile
14798 modpost_flag=''
14799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14800 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14807 (eval $ac_try) 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; }; }; then :
14811 rc=0
14812 else
14813 $as_echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815 rc=1
14816
14817
14818 fi
14819 rm -Rf build
14820
14821
14822 if test $rc -ne 0; then :
14823
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14826
14827 else
14828 if test "x$enable_linux_builtin" != xyes; then
14829
14830 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
14831 $LINUX_OBJ/Module*.symvers 2>/dev/null
14832 rc=$?
14833 if test $rc -ne 0; then
14834 export=0
14835 for file in fs/sync.c; do
14836 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
14837 "$LINUX_OBJ/$file" 2>/dev/null
14838 rc=$?
14839 if test $rc -eq 0; then
14840 export=1
14841 break;
14842 fi
14843 done
14844 if test $export -eq 0; then :
14845 rc=1
14846 else :
14847 rc=0
14848 fi
14849 else :
14850 rc=0
14851 fi
14852
14853 fi
14854 if test $rc -ne 0; then :
14855
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14858
14859 else :
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14862 $as_echo "yes" >&6; }
14863
14864 $as_echo "#define HAVE_VFS_FSYNC 1" >>confdefs.h
14865
14866
14867 fi
14868 fi
14869
14870
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
14873 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
14874
14875
14876 cat confdefs.h - <<_ACEOF >conftest.c
14877
14878
14879 #include <linux/fs.h>
14880
14881 int
14882 main (void)
14883 {
14884
14885 vfs_fsync(NULL, 0);
14886
14887 ;
14888 return 0;
14889 }
14890
14891 _ACEOF
14892
14893
14894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14895 echo "obj-m := conftest.o" >build/Makefile
14896 modpost_flag=''
14897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14898 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14900 (eval $ac_try) 2>&5
14901 ac_status=$?
14902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14908 test $ac_status = 0; }; }; then :
14909
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14911 $as_echo "yes" >&6; }
14912
14913 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
14914
14915
14916 else
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14921 $as_echo "no" >&6; }
14922
14923
14924
14925 fi
14926 rm -Rf build
14927
14928
14929
14930
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
14932 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
14933
14934
14935 cat confdefs.h - <<_ACEOF >conftest.c
14936
14937
14938 #include <linux/fs.h>
14939
14940 int
14941 main (void)
14942 {
14943
14944 struct inode_operations ops;
14945 ops.truncate_range = NULL;
14946
14947 ;
14948 return 0;
14949 }
14950
14951 _ACEOF
14952
14953
14954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14955 echo "obj-m := conftest.o" >build/Makefile
14956 modpost_flag=''
14957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14958 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14960 (eval $ac_try) 2>&5
14961 ac_status=$?
14962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14968 test $ac_status = 0; }; }; then :
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14971 $as_echo "yes" >&6; }
14972
14973 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
14974
14975
14976 else
14977 $as_echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981 $as_echo "no" >&6; }
14982
14983
14984
14985 fi
14986 rm -Rf build
14987
14988
14989
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
14992 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
14993 tmp_flags="$EXTRA_KCFLAGS"
14994 EXTRA_KCFLAGS="-Werror"
14995
14996
14997 cat confdefs.h - <<_ACEOF >conftest.c
14998
14999
15000 #include <linux/sched.h>
15001 #include <linux/fs_struct.h>
15002
15003 int
15004 main (void)
15005 {
15006
15007 struct fs_struct fs;
15008 spin_lock_init(&fs.lock);
15009
15010 ;
15011 return 0;
15012 }
15013
15014 _ACEOF
15015
15016
15017 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15018 echo "obj-m := conftest.o" >build/Makefile
15019 modpost_flag=''
15020 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15021 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15026 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031 test $ac_status = 0; }; }; then :
15032
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15034 $as_echo "yes" >&6; }
15035
15036 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
15037
15038
15039 else
15040 $as_echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15044 $as_echo "no" >&6; }
15045
15046
15047
15048 fi
15049 rm -Rf build
15050
15051
15052 EXTRA_KCFLAGS="$tmp_flags"
15053
15054
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct cred exists" >&5
15056 $as_echo_n "checking whether struct cred exists... " >&6; }
15057
15058
15059 cat confdefs.h - <<_ACEOF >conftest.c
15060
15061
15062 #include <linux/cred.h>
15063
15064 int
15065 main (void)
15066 {
15067
15068 struct cred *cr __attribute__ ((unused));
15069 cr = NULL;
15070
15071 ;
15072 return 0;
15073 }
15074
15075 _ACEOF
15076
15077
15078 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15079 echo "obj-m := conftest.o" >build/Makefile
15080 modpost_flag=''
15081 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15082 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15092 test $ac_status = 0; }; }; then :
15093
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15095 $as_echo "yes" >&6; }
15096
15097 $as_echo "#define HAVE_CRED_STRUCT 1" >>confdefs.h
15098
15099
15100 else
15101 $as_echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 $as_echo "no" >&6; }
15106
15107
15108
15109 fi
15110 rm -Rf build
15111
15112
15113
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
15116 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
15117
15118
15119 cat confdefs.h - <<_ACEOF >conftest.c
15120
15121
15122 #include <linux/uidgid.h>
15123
15124 int
15125 main (void)
15126 {
15127
15128 kuid_t userid = KUIDT_INIT(0);
15129 kgid_t groupid = KGIDT_INIT(0);
15130
15131 ;
15132 return 0;
15133 }
15134
15135 _ACEOF
15136
15137
15138 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15139 echo "obj-m := conftest.o" >build/Makefile
15140 modpost_flag=''
15141 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15142 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15147 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15149 (eval $ac_try) 2>&5
15150 ac_status=$?
15151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15152 test $ac_status = 0; }; }; then :
15153
15154
15155
15156 cat confdefs.h - <<_ACEOF >conftest.c
15157
15158
15159 #include <linux/uidgid.h>
15160
15161 int
15162 main (void)
15163 {
15164
15165 kuid_t userid = 0;
15166 kgid_t groupid = 0;
15167
15168 ;
15169 return 0;
15170 }
15171
15172 _ACEOF
15173
15174
15175 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15176 echo "obj-m := conftest.o" >build/Makefile
15177 modpost_flag=''
15178 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15181 (eval $ac_try) 2>&5
15182 ac_status=$?
15183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15184 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; }; }; then :
15190
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
15192 $as_echo "yes; optional" >&6; }
15193
15194 else
15195 $as_echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
15199 $as_echo "yes; mandatory" >&6; }
15200
15201 $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
15202
15203
15204
15205
15206 fi
15207 rm -Rf build
15208
15209
15210
15211 else
15212 $as_echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 $as_echo "no" >&6; }
15217
15218
15219
15220 fi
15221 rm -Rf build
15222
15223
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether groups_search() is available" >&5
15226 $as_echo_n "checking whether groups_search() is available... " >&6; }
15227
15228
15229
15230 cat confdefs.h - <<_ACEOF >conftest.c
15231
15232
15233 #include <linux/cred.h>
15234 #ifdef HAVE_KUIDGID_T
15235 #include <linux/uidgid.h>
15236 #endif
15237
15238 int
15239 main (void)
15240 {
15241
15242 #ifdef HAVE_KUIDGID_T
15243 groups_search(NULL, KGIDT_INIT(0));
15244 #else
15245 groups_search(NULL, 0);
15246 #endif
15247
15248 ;
15249 return 0;
15250 }
15251
15252 _ACEOF
15253
15254
15255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15256 echo "obj-m := conftest.o" >build/Makefile
15257 modpost_flag=''
15258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15259 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15261 (eval $ac_try) 2>&5
15262 ac_status=$?
15263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15269 test $ac_status = 0; }; }; then :
15270 rc=0
15271 else
15272 $as_echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274 rc=1
15275
15276
15277 fi
15278 rm -Rf build
15279
15280
15281 if test $rc -ne 0; then :
15282
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284 $as_echo "no" >&6; }
15285
15286 else
15287 if test "x$enable_linux_builtin" != xyes; then
15288
15289 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15290 $LINUX_OBJ/Module*.symvers 2>/dev/null
15291 rc=$?
15292 if test $rc -ne 0; then
15293 export=0
15294 for file in ; do
15295 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15296 "$LINUX_OBJ/$file" 2>/dev/null
15297 rc=$?
15298 if test $rc -eq 0; then
15299 export=1
15300 break;
15301 fi
15302 done
15303 if test $export -eq 0; then :
15304 rc=1
15305 else :
15306 rc=0
15307 fi
15308 else :
15309 rc=0
15310 fi
15311
15312 fi
15313 if test $rc -ne 0; then :
15314
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15317
15318 else :
15319
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15321 $as_echo "yes" >&6; }
15322
15323 $as_echo "#define HAVE_GROUPS_SEARCH 1" >>confdefs.h
15324
15325
15326 fi
15327 fi
15328
15329
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
15331 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
15332
15333
15334
15335 cat confdefs.h - <<_ACEOF >conftest.c
15336
15337
15338 #include <linux/sched.h>
15339
15340 int
15341 main (void)
15342 {
15343
15344 __put_task_struct(NULL);
15345
15346 ;
15347 return 0;
15348 }
15349
15350 _ACEOF
15351
15352
15353 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15354 echo "obj-m := conftest.o" >build/Makefile
15355 modpost_flag=''
15356 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15357 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
15361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15362 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15367 test $ac_status = 0; }; }; then :
15368 rc=0
15369 else
15370 $as_echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372 rc=1
15373
15374
15375 fi
15376 rm -Rf build
15377
15378
15379 if test $rc -ne 0; then :
15380
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382 $as_echo "no" >&6; }
15383
15384 else
15385 if test "x$enable_linux_builtin" != xyes; then
15386
15387 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15388 $LINUX_OBJ/Module*.symvers 2>/dev/null
15389 rc=$?
15390 if test $rc -ne 0; then
15391 export=0
15392 for file in ; do
15393 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15394 "$LINUX_OBJ/$file" 2>/dev/null
15395 rc=$?
15396 if test $rc -eq 0; then
15397 export=1
15398 break;
15399 fi
15400 done
15401 if test $export -eq 0; then :
15402 rc=1
15403 else :
15404 rc=0
15405 fi
15406 else :
15407 rc=0
15408 fi
15409
15410 fi
15411 if test $rc -ne 0; then :
15412
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15414 $as_echo "no" >&6; }
15415
15416 else :
15417
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15419 $as_echo "yes" >&6; }
15420
15421 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
15422
15423
15424 fi
15425 fi
15426
15427
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether proc_handler() wants 5 args" >&5
15430 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15431
15432
15433 cat confdefs.h - <<_ACEOF >conftest.c
15434
15435
15436 #include <linux/sysctl.h>
15437
15438 int
15439 main (void)
15440 {
15441
15442 proc_dostring(NULL, 0, NULL, NULL, NULL);
15443
15444 ;
15445 return 0;
15446 }
15447
15448 _ACEOF
15449
15450
15451 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15452 echo "obj-m := conftest.o" >build/Makefile
15453 modpost_flag=''
15454 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15457 (eval $ac_try) 2>&5
15458 ac_status=$?
15459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15460 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; }; }; then :
15466
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468 $as_echo "yes" >&6; }
15469
15470 $as_echo "#define HAVE_5ARGS_PROC_HANDLER 1" >>confdefs.h
15471
15472
15473 else
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478 $as_echo "no" >&6; }
15479
15480
15481
15482 fi
15483 rm -Rf build
15484
15485
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kvasprintf() is available" >&5
15488 $as_echo_n "checking whether kvasprintf() is available... " >&6; }
15489
15490
15491
15492 cat confdefs.h - <<_ACEOF >conftest.c
15493
15494
15495 #include <linux/kernel.h>
15496
15497 int
15498 main (void)
15499 {
15500
15501 kvasprintf(0, NULL, *((va_list*)NULL));
15502
15503 ;
15504 return 0;
15505 }
15506
15507 _ACEOF
15508
15509
15510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15511 echo "obj-m := conftest.o" >build/Makefile
15512 modpost_flag=''
15513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15521 (eval $ac_try) 2>&5
15522 ac_status=$?
15523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15524 test $ac_status = 0; }; }; then :
15525 rc=0
15526 else
15527 $as_echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529 rc=1
15530
15531
15532 fi
15533 rm -Rf build
15534
15535
15536 if test $rc -ne 0; then :
15537
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539 $as_echo "no" >&6; }
15540
15541 else
15542 if test "x$enable_linux_builtin" != xyes; then
15543
15544 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15545 $LINUX_OBJ/Module*.symvers 2>/dev/null
15546 rc=$?
15547 if test $rc -ne 0; then
15548 export=0
15549 for file in ; do
15550 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15551 "$LINUX_OBJ/$file" 2>/dev/null
15552 rc=$?
15553 if test $rc -eq 0; then
15554 export=1
15555 break;
15556 fi
15557 done
15558 if test $export -eq 0; then :
15559 rc=1
15560 else :
15561 rc=0
15562 fi
15563 else :
15564 rc=0
15565 fi
15566
15567 fi
15568 if test $rc -ne 0; then :
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571 $as_echo "no" >&6; }
15572
15573 else :
15574
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15577
15578 $as_echo "#define HAVE_KVASPRINTF 1" >>confdefs.h
15579
15580
15581 fi
15582 fi
15583
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5
15586 $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; }
15587
15588
15589
15590 cat confdefs.h - <<_ACEOF >conftest.c
15591
15592
15593 #include <linux/rwsem.h>
15594 int rwsem_is_locked(struct rw_semaphore *sem) { return 0; }
15595
15596 int
15597 main (void)
15598 {
15599
15600 ;
15601 return 0;
15602 }
15603
15604 _ACEOF
15605
15606
15607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15608 echo "obj-m := conftest.o" >build/Makefile
15609 modpost_flag=''
15610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15611 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15621 test $ac_status = 0; }; }; then :
15622 rc=0
15623 else
15624 $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626 rc=1
15627
15628
15629 fi
15630 rm -Rf build
15631
15632
15633 if test $rc -ne 0; then :
15634
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636 $as_echo "no" >&6; }
15637
15638 else
15639 if test "x$enable_linux_builtin" != xyes; then
15640
15641 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15642 $LINUX_OBJ/Module*.symvers 2>/dev/null
15643 rc=$?
15644 if test $rc -ne 0; then
15645 export=0
15646 for file in lib/rwsem-spinlock.c; do
15647 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15648 "$LINUX_OBJ/$file" 2>/dev/null
15649 rc=$?
15650 if test $rc -eq 0; then
15651 export=1
15652 break;
15653 fi
15654 done
15655 if test $export -eq 0; then :
15656 rc=1
15657 else :
15658 rc=0
15659 fi
15660 else :
15661 rc=0
15662 fi
15663
15664 fi
15665 if test $rc -ne 0; then :
15666
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669
15670 else :
15671
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15673 $as_echo "yes" >&6; }
15674
15675 $as_echo "#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1" >>confdefs.h
15676
15677
15678 fi
15679 fi
15680
15681
15682
15683
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15685 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15686
15687
15688 cat confdefs.h - <<_ACEOF >conftest.c
15689
15690
15691 #include <linux/fs.h>
15692
15693 int
15694 main (void)
15695 {
15696
15697 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15698 struct file_operations fops __attribute__ ((unused)) = {
15699 .fallocate = fallocate,
15700 };
15701
15702 ;
15703 return 0;
15704 }
15705
15706 _ACEOF
15707
15708
15709 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15710 echo "obj-m := conftest.o" >build/Makefile
15711 modpost_flag=''
15712 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15713 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15715 (eval $ac_try) 2>&5
15716 ac_status=$?
15717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15723 test $ac_status = 0; }; }; then :
15724
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15726 $as_echo "yes" >&6; }
15727
15728 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15729
15730
15731 else
15732 $as_echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15737
15738
15739
15740 fi
15741 rm -Rf build
15742
15743
15744
15745
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15747 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15748
15749
15750 cat confdefs.h - <<_ACEOF >conftest.c
15751
15752
15753 #include <linux/fs.h>
15754
15755 int
15756 main (void)
15757 {
15758
15759 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15760 struct inode_operations fops __attribute__ ((unused)) = {
15761 .fallocate = fallocate,
15762 };
15763
15764 ;
15765 return 0;
15766 }
15767
15768 _ACEOF
15769
15770
15771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15772 echo "obj-m := conftest.o" >build/Makefile
15773 modpost_flag=''
15774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15775 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785 test $ac_status = 0; }; }; then :
15786
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15788 $as_echo "yes" >&6; }
15789
15790 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15791
15792
15793 else
15794 $as_echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15798 $as_echo "no" >&6; }
15799
15800
15801
15802 fi
15803 rm -Rf build
15804
15805
15806
15807
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15809 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15810
15811
15812 cat confdefs.h - <<_ACEOF >conftest.c
15813
15814
15815 #include <linux/fs.h>
15816
15817 int
15818 main (void)
15819 {
15820
15821 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15822 struct file_operations_no_const fops __attribute__ ((unused)) = {
15823 .fallocate = fallocate,
15824 };
15825
15826 ;
15827 return 0;
15828 }
15829
15830 _ACEOF
15831
15832
15833 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15834 echo "obj-m := conftest.o" >build/Makefile
15835 modpost_flag=''
15836 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15837 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15842 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15847 test $ac_status = 0; }; }; then :
15848
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15850 $as_echo "yes" >&6; }
15851
15852 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15853
15854
15855 else
15856 $as_echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15861
15862
15863
15864 fi
15865 rm -Rf build
15866
15867
15868
15869
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_dcache_memory() is available" >&5
15871 $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; }
15872
15873
15874
15875 cat confdefs.h - <<_ACEOF >conftest.c
15876
15877
15878 #include <linux/dcache.h>
15879
15880 int
15881 main (void)
15882 {
15883
15884 shrink_dcache_memory(0, 0);
15885
15886 ;
15887 return 0;
15888 }
15889
15890 _ACEOF
15891
15892
15893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15894 echo "obj-m := conftest.o" >build/Makefile
15895 modpost_flag=''
15896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15897 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 test $ac_status = 0; }; }; then :
15908 rc=0
15909 else
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912 rc=1
15913
15914
15915 fi
15916 rm -Rf build
15917
15918
15919 if test $rc -ne 0; then :
15920
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15923
15924 else
15925 if test "x$enable_linux_builtin" != xyes; then
15926
15927 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15928 $LINUX_OBJ/Module*.symvers 2>/dev/null
15929 rc=$?
15930 if test $rc -ne 0; then
15931 export=0
15932 for file in fs/dcache.c; do
15933 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15934 "$LINUX_OBJ/$file" 2>/dev/null
15935 rc=$?
15936 if test $rc -eq 0; then
15937 export=1
15938 break;
15939 fi
15940 done
15941 if test $export -eq 0; then :
15942 rc=1
15943 else :
15944 rc=0
15945 fi
15946 else :
15947 rc=0
15948 fi
15949
15950 fi
15951 if test $rc -ne 0; then :
15952
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15955
15956 else :
15957
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15960
15961 $as_echo "#define HAVE_SHRINK_DCACHE_MEMORY 1" >>confdefs.h
15962
15963
15964 fi
15965 fi
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_icache_memory() is available" >&5
15969 $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; }
15970
15971
15972
15973 cat confdefs.h - <<_ACEOF >conftest.c
15974
15975
15976 #include <linux/dcache.h>
15977
15978 int
15979 main (void)
15980 {
15981
15982 shrink_icache_memory(0, 0);
15983
15984 ;
15985 return 0;
15986 }
15987
15988 _ACEOF
15989
15990
15991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15992 echo "obj-m := conftest.o" >build/Makefile
15993 modpost_flag=''
15994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15995 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; }; }; then :
16006 rc=0
16007 else
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.$ac_ext >&5
16010 rc=1
16011
16012
16013 fi
16014 rm -Rf build
16015
16016
16017 if test $rc -ne 0; then :
16018
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16021
16022 else
16023 if test "x$enable_linux_builtin" != xyes; then
16024
16025 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
16026 $LINUX_OBJ/Module*.symvers 2>/dev/null
16027 rc=$?
16028 if test $rc -ne 0; then
16029 export=0
16030 for file in fs/inode.c; do
16031 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
16032 "$LINUX_OBJ/$file" 2>/dev/null
16033 rc=$?
16034 if test $rc -eq 0; then
16035 export=1
16036 break;
16037 fi
16038 done
16039 if test $export -eq 0; then :
16040 rc=1
16041 else :
16042 rc=0
16043 fi
16044 else :
16045 rc=0
16046 fi
16047
16048 fi
16049 if test $rc -ne 0; then :
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16053
16054 else :
16055
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16057 $as_echo "yes" >&6; }
16058
16059 $as_echo "#define HAVE_SHRINK_ICACHE_MEMORY 1" >>confdefs.h
16060
16061
16062 fi
16063 fi
16064
16065
16066
16067
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_parent exists in header" >&5
16069 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
16070 header=0
16071 for file in include/linux/namei.h; do
16072 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
16073 rc=$?
16074 if test $rc -eq 0; then
16075 header=1
16076 break;
16077 fi
16078 done
16079 if test $header -eq 0; then
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16081 $as_echo "no" >&6; }
16082
16083 else
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16085 $as_echo "yes" >&6; }
16086
16087 $as_echo "#define HAVE_KERN_PATH_PARENT_HEADER 1" >>confdefs.h
16088
16089 fi
16090
16091
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kern_path_parent() is available" >&5
16093 $as_echo_n "checking whether kern_path_parent() is available... " >&6; }
16094
16095
16096
16097 cat confdefs.h - <<_ACEOF >conftest.c
16098
16099
16100 #include <linux/namei.h>
16101
16102 int
16103 main (void)
16104 {
16105
16106 kern_path_parent(NULL, NULL);
16107
16108 ;
16109 return 0;
16110 }
16111
16112 _ACEOF
16113
16114
16115 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16116 echo "obj-m := conftest.o" >build/Makefile
16117 modpost_flag=''
16118 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16119 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16121 (eval $ac_try) 2>&5
16122 ac_status=$?
16123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16124 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16129 test $ac_status = 0; }; }; then :
16130 rc=0
16131 else
16132 $as_echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134 rc=1
16135
16136
16137 fi
16138 rm -Rf build
16139
16140
16141 if test $rc -ne 0; then :
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16145
16146 else
16147 if test "x$enable_linux_builtin" != xyes; then
16148
16149 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
16150 $LINUX_OBJ/Module*.symvers 2>/dev/null
16151 rc=$?
16152 if test $rc -ne 0; then
16153 export=0
16154 for file in fs/namei.c; do
16155 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
16156 "$LINUX_OBJ/$file" 2>/dev/null
16157 rc=$?
16158 if test $rc -eq 0; then
16159 export=1
16160 break;
16161 fi
16162 done
16163 if test $export -eq 0; then :
16164 rc=1
16165 else :
16166 rc=0
16167 fi
16168 else :
16169 rc=0
16170 fi
16171
16172 fi
16173 if test $rc -ne 0; then :
16174
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176 $as_echo "no" >&6; }
16177
16178 else :
16179
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16181 $as_echo "yes" >&6; }
16182
16183 $as_echo "#define HAVE_KERN_PATH_PARENT_SYMBOL 1" >>confdefs.h
16184
16185
16186 fi
16187 fi
16188
16189
16190
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_locked exists in header" >&5
16193 $as_echo_n "checking whether symbol kern_path_locked exists in header... " >&6; }
16194 header=0
16195 for file in include/linux/namei.h; do
16196 grep -q "struct dentry \*kern_path_locked(const char \*, struct path \*)" "$LINUX/$file" 2>/dev/null
16197 rc=$?
16198 if test $rc -eq 0; then
16199 header=1
16200 break;
16201 fi
16202 done
16203 if test $header -eq 0; then
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16205 $as_echo "no" >&6; }
16206
16207 else
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16209 $as_echo "yes" >&6; }
16210
16211 $as_echo "#define HAVE_KERN_PATH_LOCKED 1" >>confdefs.h
16212
16213 fi
16214
16215
16216
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_KALLSYMS is defined" >&5
16218 $as_echo_n "checking whether CONFIG_KALLSYMS is defined... " >&6; }
16219
16220
16221 cat confdefs.h - <<_ACEOF >conftest.c
16222
16223
16224 #if !defined(CONFIG_KALLSYMS)
16225 #error CONFIG_KALLSYMS not defined
16226 #endif
16227
16228 int
16229 main (void)
16230 {
16231
16232 ;
16233 return 0;
16234 }
16235
16236 _ACEOF
16237
16238
16239 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16240 echo "obj-m := conftest.o" >build/Makefile
16241 modpost_flag=''
16242 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16243 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16248 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16253 test $ac_status = 0; }; }; then :
16254
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16256 $as_echo "yes" >&6; }
16257
16258 else
16259 $as_echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16264 as_fn_error $? "
16265 *** This kernel does not include the required kallsyms support.
16266 *** Rebuild the kernel with CONFIG_KALLSYMS=y set." "$LINENO" 5
16267
16268
16269
16270 fi
16271 rm -Rf build
16272
16273
16274
16275
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
16277 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
16278
16279
16280 cat confdefs.h - <<_ACEOF >conftest.c
16281
16282
16283 #if !defined(CONFIG_ZLIB_INFLATE) && \
16284 !defined(CONFIG_ZLIB_INFLATE_MODULE)
16285 #error CONFIG_ZLIB_INFLATE not defined
16286 #endif
16287
16288 int
16289 main (void)
16290 {
16291
16292 ;
16293 return 0;
16294 }
16295
16296 _ACEOF
16297
16298
16299 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16300 echo "obj-m := conftest.o" >build/Makefile
16301 modpost_flag=''
16302 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16303 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16305 (eval $ac_try) 2>&5
16306 ac_status=$?
16307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16308 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16313 test $ac_status = 0; }; }; then :
16314
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16316 $as_echo "yes" >&6; }
16317
16318 else
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323 $as_echo "no" >&6; }
16324 as_fn_error $? "
16325 *** This kernel does not include the required zlib inflate support.
16326 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
16327
16328
16329
16330 fi
16331 rm -Rf build
16332
16333
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
16337 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
16338
16339
16340 cat confdefs.h - <<_ACEOF >conftest.c
16341
16342
16343 #if !defined(CONFIG_ZLIB_DEFLATE) && \
16344 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
16345 #error CONFIG_ZLIB_DEFLATE not defined
16346 #endif
16347
16348 int
16349 main (void)
16350 {
16351
16352 ;
16353 return 0;
16354 }
16355
16356 _ACEOF
16357
16358
16359 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16360 echo "obj-m := conftest.o" >build/Makefile
16361 modpost_flag=''
16362 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16363 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16368 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16373 test $ac_status = 0; }; }; then :
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16376 $as_echo "yes" >&6; }
16377
16378 else
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 $as_echo "no" >&6; }
16384 as_fn_error $? "
16385 *** This kernel does not include the required zlib deflate support.
16386 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
16387
16388
16389
16390 fi
16391 rm -Rf build
16392
16393
16394
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
16396 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
16397
16398
16399 cat confdefs.h - <<_ACEOF >conftest.c
16400
16401
16402 #include <linux/zlib.h>
16403
16404 int
16405 main (void)
16406 {
16407
16408 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
16409
16410 ;
16411 return 0;
16412 }
16413
16414 _ACEOF
16415
16416
16417 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16418 echo "obj-m := conftest.o" >build/Makefile
16419 modpost_flag=''
16420 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16421 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16426 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16431 test $ac_status = 0; }; }; then :
16432
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16434 $as_echo "yes" >&6; }
16435
16436 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
16437
16438
16439 else
16440 $as_echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444 $as_echo "no" >&6; }
16445
16446
16447
16448 fi
16449 rm -Rf build
16450
16451
16452
16453
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
16455 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
16456
16457
16458 cat confdefs.h - <<_ACEOF >conftest.c
16459
16460
16461 #include <linux/mm.h>
16462
16463 int
16464 main (void)
16465 {
16466
16467 struct shrink_control sc __attribute__ ((unused));
16468
16469 sc.nr_to_scan = 0;
16470 sc.gfp_mask = GFP_KERNEL;
16471
16472 ;
16473 return 0;
16474 }
16475
16476 _ACEOF
16477
16478
16479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16480 echo "obj-m := conftest.o" >build/Makefile
16481 modpost_flag=''
16482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16483 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16485 (eval $ac_try) 2>&5
16486 ac_status=$?
16487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16490 (eval $ac_try) 2>&5
16491 ac_status=$?
16492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16493 test $ac_status = 0; }; }; then :
16494
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16496 $as_echo "yes" >&6; }
16497
16498 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
16499
16500
16501 else
16502 $as_echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16506 $as_echo "no" >&6; }
16507
16508
16509
16510 fi
16511 rm -Rf build
16512
16513
16514
16515
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
16517 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16518 tmp_flags="$EXTRA_KCFLAGS"
16519 EXTRA_KCFLAGS="-Werror"
16520
16521
16522 cat confdefs.h - <<_ACEOF >conftest.c
16523
16524
16525 #include <linux/rwsem.h>
16526
16527 int
16528 main (void)
16529 {
16530
16531 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16532 raw_spinlock_t dummy_lock __attribute__ ((unused));
16533 dummy_semaphore.wait_lock = dummy_lock;
16534
16535 ;
16536 return 0;
16537 }
16538
16539 _ACEOF
16540
16541
16542 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16543 echo "obj-m := conftest.o" >build/Makefile
16544 modpost_flag=''
16545 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16546 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556 test $ac_status = 0; }; }; then :
16557
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559 $as_echo "yes" >&6; }
16560
16561 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
16562
16563
16564 else
16565 $as_echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16567
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569 $as_echo "no" >&6; }
16570
16571
16572
16573 fi
16574 rm -Rf build
16575
16576
16577 EXTRA_KCFLAGS="$tmp_flags"
16578
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
16580 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
16581
16582
16583 cat confdefs.h - <<_ACEOF >conftest.c
16584
16585
16586 #include <linux/sched.h>
16587 #include <linux/sched/rt.h>
16588
16589 int
16590 main (void)
16591 {
16592
16593 return 0;
16594
16595 ;
16596 return 0;
16597 }
16598
16599 _ACEOF
16600
16601
16602 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16603 echo "obj-m := conftest.o" >build/Makefile
16604 modpost_flag=''
16605 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16606 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16611 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16613 (eval $ac_try) 2>&5
16614 ac_status=$?
16615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16616 test $ac_status = 0; }; }; then :
16617
16618
16619 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16622 $as_echo "yes" >&6; }
16623
16624 else
16625 $as_echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.$ac_ext >&5
16627
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629 $as_echo "no" >&6; }
16630
16631
16632
16633 fi
16634 rm -Rf build
16635
16636
16637
16638
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
16640 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
16641
16642
16643 cat confdefs.h - <<_ACEOF >conftest.c
16644
16645
16646 #include <linux/fs.h>
16647
16648 int
16649 main (void)
16650 {
16651
16652 vfs_getattr((struct path *) NULL,
16653 (struct kstat *)NULL);
16654
16655 ;
16656 return 0;
16657 }
16658
16659 _ACEOF
16660
16661
16662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16663 echo "obj-m := conftest.o" >build/Makefile
16664 modpost_flag=''
16665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16666 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16671 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16676 test $ac_status = 0; }; }; then :
16677
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
16679 $as_echo "2 args" >&6; }
16680
16681 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
16682
16683
16684 else
16685 $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688
16689
16690 cat confdefs.h - <<_ACEOF >conftest.c
16691
16692
16693 #include <linux/fs.h>
16694
16695 int
16696 main (void)
16697 {
16698
16699 vfs_getattr((struct vfsmount *)NULL,
16700 (struct dentry *)NULL,
16701 (struct kstat *)NULL);
16702
16703 ;
16704 return 0;
16705 }
16706
16707 _ACEOF
16708
16709
16710 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16711 echo "obj-m := conftest.o" >build/Makefile
16712 modpost_flag=''
16713 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16714 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16721 (eval $ac_try) 2>&5
16722 ac_status=$?
16723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; }; }; then :
16725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
16727 $as_echo "3 args" >&6; }
16728
16729 else
16730 $as_echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 as_fn_error $? "unknown" "$LINENO" 5
16734
16735
16736
16737 fi
16738 rm -Rf build
16739
16740
16741
16742
16743
16744 fi
16745 rm -Rf build
16746
16747
16748
16749 ;;
16750 user) ;;
16751 all)
16752
16753
16754 # Check whether --with-linux was given.
16755 if test "${with_linux+set}" = set; then :
16756 withval=$with_linux; kernelsrc="$withval"
16757 fi
16758
16759
16760
16761 # Check whether --with-linux-obj was given.
16762 if test "${with_linux_obj+set}" = set; then :
16763 withval=$with_linux_obj; kernelbuild="$withval"
16764 fi
16765
16766
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
16768 $as_echo_n "checking kernel source directory... " >&6; }
16769 if test -z "$kernelsrc"; then
16770 if test -e "/lib/modules/$(uname -r)/source"; then
16771 headersdir="/lib/modules/$(uname -r)/source"
16772 sourcelink=$(readlink -f "$headersdir")
16773 elif test -e "/lib/modules/$(uname -r)/build"; then
16774 headersdir="/lib/modules/$(uname -r)/build"
16775 sourcelink=$(readlink -f "$headersdir")
16776 else
16777 sourcelink=$(ls -1d /usr/src/kernels/* \
16778 /usr/src/linux-* \
16779 2>/dev/null | grep -v obj | tail -1)
16780 fi
16781
16782 if test -n "$sourcelink" && test -e ${sourcelink}; then
16783 kernelsrc=`readlink -f ${sourcelink}`
16784 else
16785 kernelsrc="Not found"
16786 fi
16787 else
16788 if test "$kernelsrc" = "NONE"; then
16789 kernsrcver=NONE
16790 fi
16791 fi
16792
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
16794 $as_echo "$kernelsrc" >&6; }
16795 if test ! -d "$kernelsrc"; then
16796 as_fn_error $? "
16797 *** Please make sure the kernel devel package for your distribution
16798 *** is installed and then try again. If that fails, you can specify the
16799 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
16800 fi
16801
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
16803 $as_echo_n "checking kernel build directory... " >&6; }
16804 if test -z "$kernelbuild"; then
16805 if test -e "/lib/modules/$(uname -r)/build"; then
16806 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16807 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16808 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16809 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16810 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16811 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16812 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16813 else
16814 kernelbuild=${kernelsrc}
16815 fi
16816 fi
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
16818 $as_echo "$kernelbuild" >&6; }
16819
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
16821 $as_echo_n "checking kernel source version... " >&6; }
16822 utsrelease1=$kernelbuild/include/linux/version.h
16823 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16824 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16825 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16826 utsrelease=linux/version.h
16827 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16828 utsrelease=linux/utsrelease.h
16829 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16830 utsrelease=generated/utsrelease.h
16831 fi
16832
16833 if test "$utsrelease"; then
16834 kernsrcver=`(echo "#include <$utsrelease>";
16835 echo "kernsrcver=UTS_RELEASE") |
16836 cpp -I $kernelbuild/include |
16837 grep "^kernsrcver=" | cut -d \" -f 2`
16838
16839 if test -z "$kernsrcver"; then
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16841 $as_echo "Not found" >&6; }
16842 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
16843 fi
16844 else
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16846 $as_echo "Not found" >&6; }
16847 if test "x$enable_linux_builtin" != xyes; then
16848 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
16849 else
16850 as_fn_error $? "
16851 *** Cannot find UTS_RELEASE definition.
16852 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
16853 fi
16854 fi
16855
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
16857 $as_echo "$kernsrcver" >&6; }
16858
16859 LINUX=${kernelsrc}
16860 LINUX_OBJ=${kernelbuild}
16861 LINUX_VERSION=${kernsrcver}
16862
16863
16864
16865
16866
16867
16868 modpost=$LINUX/scripts/Makefile.modpost
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
16870 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16871 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
16872 if grep -q Modules.symvers $modpost; then
16873 LINUX_SYMBOLS=Modules.symvers
16874 else
16875 LINUX_SYMBOLS=Module.symvers
16876 fi
16877
16878 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16879 as_fn_error $? "
16880 *** Please make sure the kernel devel package for your distribution
16881 *** is installed. If you are building with a custom kernel, make sure the
16882 *** kernel is configured, built, and the '--with-linux=PATH' configure
16883 *** option refers to the location of the kernel source." "$LINENO" 5
16884 fi
16885 else
16886 LINUX_SYMBOLS=NONE
16887 fi
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
16889 $as_echo "$LINUX_SYMBOLS" >&6; }
16890
16891
16892
16893
16894 if test "${LINUX_OBJ}" != "${LINUX}"; then
16895 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16896 fi
16897
16898
16899 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16900
16901
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
16904 $as_echo_n "checking whether debugging is enabled... " >&6; }
16905 # Check whether --enable-debug was given.
16906 if test "${enable_debug+set}" = set; then :
16907 enableval=$enable_debug;
16908 else
16909 enable_debug=no
16910 fi
16911
16912
16913 if test "x$enable_debug" = xyes; then :
16914
16915 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16916 DEBUG_CFLAGS="-DDEBUG -Werror"
16917 DEBUG_SPL="_with_debug"
16918
16919 else
16920
16921 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16922 DEBUG_CFLAGS="-DNDEBUG"
16923 DEBUG_SPL="_without_debug"
16924
16925 fi
16926
16927
16928
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16930 $as_echo "$enable_debug" >&6; }
16931
16932
16933 # Check whether --enable-debug-log was given.
16934 if test "${enable_debug_log+set}" = set; then :
16935 enableval=$enable_debug_log;
16936 else
16937 enable_debug_log=yes
16938 fi
16939
16940
16941 if test "x$enable_debug_log" = xyes; then :
16942
16943 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16944 DEBUG_LOG="_with_debug_log"
16945
16946 $as_echo "#define DEBUG_LOG 1" >>confdefs.h
16947
16948
16949 else
16950
16951 DEBUG_LOG="_without_debug_log"
16952
16953 fi
16954
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic debug logging is enabled" >&5
16957 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_log" >&5
16959 $as_echo "$enable_debug_log" >&6; }
16960
16961
16962 # Check whether --enable-debug-kmem was given.
16963 if test "${enable_debug_kmem+set}" = set; then :
16964 enableval=$enable_debug_kmem;
16965 else
16966 enable_debug_kmem=yes
16967 fi
16968
16969
16970 if test "x$enable_debug_kmem" = xyes; then :
16971
16972 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16973 DEBUG_KMEM="_with_debug_kmem"
16974
16975 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
16976
16977
16978 else
16979
16980 DEBUG_KMEM="_without_debug_kmem"
16981
16982 fi
16983
16984
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
16986 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
16988 $as_echo "$enable_debug_kmem" >&6; }
16989
16990
16991 # Check whether --enable-debug-kmem-tracking was given.
16992 if test "${enable_debug_kmem_tracking+set}" = set; then :
16993 enableval=$enable_debug_kmem_tracking;
16994 else
16995 enable_debug_kmem_tracking=no
16996 fi
16997
16998
16999 if test "x$enable_debug_kmem_tracking" = xyes; then :
17000
17001 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
17002 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
17003
17004 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
17005
17006
17007 else
17008
17009 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
17010
17011 fi
17012
17013
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
17015 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
17017 $as_echo "$enable_debug_kmem_tracking" >&6; }
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
17020 $as_echo_n "checking whether modules can be built... " >&6; }
17021
17022
17023 cat confdefs.h - <<_ACEOF >conftest.c
17024
17025
17026 int
17027 main (void)
17028 {
17029
17030 ;
17031 return 0;
17032 }
17033
17034 _ACEOF
17035
17036
17037 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17038 echo "obj-m := conftest.o" >build/Makefile
17039 modpost_flag=''
17040 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17041 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17046 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
17050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17051 test $ac_status = 0; }; }; then :
17052
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 $as_echo "yes" >&6; }
17055
17056 else
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17062 if test "x$enable_linux_builtin" != xyes; then
17063 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
17064 else
17065 as_fn_error $? "
17066 *** Unable to build an empty module.
17067 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
17068 fi
17069
17070
17071
17072 fi
17073 rm -Rf build
17074
17075
17076
17077
17078 # Check whether --enable-atomic-spinlocks was given.
17079 if test "${enable_atomic_spinlocks+set}" = set; then :
17080 enableval=$enable_atomic_spinlocks;
17081 else
17082 enable_atomic_spinlocks=check
17083 fi
17084
17085
17086
17087
17088 cat confdefs.h - <<_ACEOF >conftest.c
17089
17090
17091 #include <linux/fs.h>
17092
17093 int
17094 main (void)
17095 {
17096
17097 atomic64_t *ptr __attribute__ ((unused));
17098
17099 ;
17100 return 0;
17101 }
17102
17103 _ACEOF
17104
17105
17106 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17107 echo "obj-m := conftest.o" >build/Makefile
17108 modpost_flag=''
17109 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17110 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17120 test $ac_status = 0; }; }; then :
17121
17122 have_atomic64_t=yes
17123
17124 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
17125
17126
17127 else
17128 $as_echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 have_atomic64_t=no
17132
17133
17134
17135 fi
17136 rm -Rf build
17137
17138
17139
17140 if test "x$enable_atomic_spinlocks" = xcheck; then :
17141
17142 if test "x$have_atomic64_t" = xyes; then :
17143
17144 enable_atomic_spinlocks=no
17145
17146 else
17147
17148 enable_atomic_spinlocks=yes
17149
17150 fi
17151
17152 fi
17153
17154 if test "x$enable_atomic_spinlocks" = xyes; then :
17155
17156
17157 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
17158
17159
17160 else
17161
17162 if test "x$have_atomic64_t" = xno; then :
17163
17164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17166 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
17167 See \`config.log' for more details" "$LINENO" 5 ; }
17168
17169 fi
17170
17171 fi
17172
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
17174 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
17176 $as_echo "$enable_atomic_spinlocks" >&6; }
17177
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
17179 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
17181 $as_echo "$have_atomic64_t" >&6; }
17182
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_cmpxchg" >&5
17184 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
17185
17186
17187 cat confdefs.h - <<_ACEOF >conftest.c
17188
17189
17190 #include <linux/fs.h>
17191
17192 int
17193 main (void)
17194 {
17195
17196 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
17197
17198 ;
17199 return 0;
17200 }
17201
17202 _ACEOF
17203
17204
17205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17206 echo "obj-m := conftest.o" >build/Makefile
17207 modpost_flag=''
17208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17214 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17216 (eval $ac_try) 2>&5
17217 ac_status=$?
17218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17219 test $ac_status = 0; }; }; then :
17220
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17222 $as_echo "yes" >&6; }
17223
17224 $as_echo "#define HAVE_ATOMIC64_CMPXCHG 1" >>confdefs.h
17225
17226
17227 else
17228 $as_echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232 $as_echo "no" >&6; }
17233
17234
17235
17236 fi
17237 rm -Rf build
17238
17239
17240
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_xchg" >&5
17242 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
17243
17244
17245 cat confdefs.h - <<_ACEOF >conftest.c
17246
17247
17248 #include <linux/fs.h>
17249
17250 int
17251 main (void)
17252 {
17253
17254 atomic64_xchg((atomic64_t *)NULL, 0);
17255
17256 ;
17257 return 0;
17258 }
17259
17260 _ACEOF
17261
17262
17263 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17264 echo "obj-m := conftest.o" >build/Makefile
17265 modpost_flag=''
17266 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17267 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17269 (eval $ac_try) 2>&5
17270 ac_status=$?
17271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17272 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17274 (eval $ac_try) 2>&5
17275 ac_status=$?
17276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17277 test $ac_status = 0; }; }; then :
17278
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17280 $as_echo "yes" >&6; }
17281
17282 $as_echo "#define HAVE_ATOMIC64_XCHG 1" >>confdefs.h
17283
17284
17285 else
17286 $as_echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17290 $as_echo "no" >&6; }
17291
17292
17293
17294 fi
17295 rm -Rf build
17296
17297
17298
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines uintptr_t" >&5
17300 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
17301
17302
17303 cat confdefs.h - <<_ACEOF >conftest.c
17304
17305
17306 #include <linux/types.h>
17307
17308 int
17309 main (void)
17310 {
17311
17312 uintptr_t *ptr __attribute__ ((unused));
17313
17314 ;
17315 return 0;
17316 }
17317
17318 _ACEOF
17319
17320
17321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17322 echo "obj-m := conftest.o" >build/Makefile
17323 modpost_flag=''
17324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17325 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17327 (eval $ac_try) 2>&5
17328 ac_status=$?
17329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17330 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17335 test $ac_status = 0; }; }; then :
17336
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17338 $as_echo "yes" >&6; }
17339
17340 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17341
17342
17343 else
17344 $as_echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17348 $as_echo "no" >&6; }
17349
17350
17351
17352 fi
17353 rm -Rf build
17354
17355
17356
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether register_sysctl_table() wants 2 args" >&5
17358 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
17359
17360
17361 cat confdefs.h - <<_ACEOF >conftest.c
17362
17363
17364 #include <linux/sysctl.h>
17365
17366 int
17367 main (void)
17368 {
17369
17370 (void) register_sysctl_table(NULL, 0);
17371
17372 ;
17373 return 0;
17374 }
17375
17376 _ACEOF
17377
17378
17379 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17380 echo "obj-m := conftest.o" >build/Makefile
17381 modpost_flag=''
17382 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17383 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17388 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17390 (eval $ac_try) 2>&5
17391 ac_status=$?
17392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; }; }; then :
17394
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17396 $as_echo "yes" >&6; }
17397
17398 $as_echo "#define HAVE_2ARGS_REGISTER_SYSCTL 1" >>confdefs.h
17399
17400
17401 else
17402 $as_echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17407
17408
17409
17410 fi
17411 rm -Rf build
17412
17413
17414
17415
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_shrinker() available" >&5
17417 $as_echo_n "checking whether set_shrinker() available... " >&6; }
17418
17419
17420 cat confdefs.h - <<_ACEOF >conftest.c
17421
17422
17423 #include <linux/mm.h>
17424
17425 int
17426 main (void)
17427 {
17428
17429 return set_shrinker(DEFAULT_SEEKS, NULL);
17430
17431 ;
17432 return 0;
17433 }
17434
17435 _ACEOF
17436
17437
17438 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17439 echo "obj-m := conftest.o" >build/Makefile
17440 modpost_flag=''
17441 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17442 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17447 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
17451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17452 test $ac_status = 0; }; }; then :
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17455 $as_echo "yes" >&6; }
17456
17457 $as_echo "#define HAVE_SET_SHRINKER 1" >>confdefs.h
17458
17459
17460 else
17461 $as_echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17465 $as_echo "no" >&6; }
17466
17467
17468
17469 fi
17470 rm -Rf build
17471
17472
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrinker callback wants 3 args" >&5
17475 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
17476 tmp_flags="$EXTRA_KCFLAGS"
17477 EXTRA_KCFLAGS="-Werror"
17478
17479
17480 cat confdefs.h - <<_ACEOF >conftest.c
17481
17482
17483 #include <linux/mm.h>
17484
17485 int shrinker_cb(struct shrinker *, int, unsigned int);
17486
17487 int
17488 main (void)
17489 {
17490
17491 struct shrinker cache_shrinker = {
17492 .shrink = shrinker_cb,
17493 .seeks = DEFAULT_SEEKS,
17494 };
17495 register_shrinker(&cache_shrinker);
17496
17497 ;
17498 return 0;
17499 }
17500
17501 _ACEOF
17502
17503
17504 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17505 echo "obj-m := conftest.o" >build/Makefile
17506 modpost_flag=''
17507 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17508 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17513 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17518 test $ac_status = 0; }; }; then :
17519
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17521 $as_echo "yes" >&6; }
17522
17523 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
17524
17525
17526 else
17527 $as_echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 $as_echo "no" >&6; }
17532
17533
17534
17535 fi
17536 rm -Rf build
17537
17538
17539 EXTRA_KCFLAGS="$tmp_flags"
17540
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct path used in struct nameidata" >&5
17542 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
17543
17544
17545 cat confdefs.h - <<_ACEOF >conftest.c
17546
17547
17548 #include <linux/namei.h>
17549
17550 int
17551 main (void)
17552 {
17553
17554 struct nameidata nd __attribute__ ((unused));
17555
17556 nd.path.mnt = NULL;
17557 nd.path.dentry = NULL;
17558
17559 ;
17560 return 0;
17561 }
17562
17563 _ACEOF
17564
17565
17566 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17567 echo "obj-m := conftest.o" >build/Makefile
17568 modpost_flag=''
17569 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17570 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17575 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17580 test $ac_status = 0; }; }; then :
17581
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17583 $as_echo "yes" >&6; }
17584
17585 $as_echo "#define HAVE_PATH_IN_NAMEIDATA 1" >>confdefs.h
17586
17587
17588 else
17589 $as_echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17593 $as_echo "no" >&6; }
17594
17595
17596
17597 fi
17598 rm -Rf build
17599
17600
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether task_curr() is available" >&5
17603 $as_echo_n "checking whether task_curr() is available... " >&6; }
17604
17605
17606
17607 cat confdefs.h - <<_ACEOF >conftest.c
17608
17609
17610 #include <linux/sched.h>
17611
17612 int
17613 main (void)
17614 {
17615
17616 task_curr(NULL);
17617
17618 ;
17619 return 0;
17620 }
17621
17622 _ACEOF
17623
17624
17625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17626 echo "obj-m := conftest.o" >build/Makefile
17627 modpost_flag=''
17628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17629 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
17633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17639 test $ac_status = 0; }; }; then :
17640 rc=0
17641 else
17642 $as_echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644 rc=1
17645
17646
17647 fi
17648 rm -Rf build
17649
17650
17651 if test $rc -ne 0; then :
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17655
17656 else
17657 if test "x$enable_linux_builtin" != xyes; then
17658
17659 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17660 $LINUX_OBJ/Module*.symvers 2>/dev/null
17661 rc=$?
17662 if test $rc -ne 0; then
17663 export=0
17664 for file in kernel/sched.c; do
17665 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17666 "$LINUX_OBJ/$file" 2>/dev/null
17667 rc=$?
17668 if test $rc -eq 0; then
17669 export=1
17670 break;
17671 fi
17672 done
17673 if test $export -eq 0; then :
17674 rc=1
17675 else :
17676 rc=0
17677 fi
17678 else :
17679 rc=0
17680 fi
17681
17682 fi
17683 if test $rc -ne 0; then :
17684
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17686 $as_echo "no" >&6; }
17687
17688 else :
17689
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691 $as_echo "yes" >&6; }
17692
17693 $as_echo "#define HAVE_TASK_CURR 1" >>confdefs.h
17694
17695
17696 fi
17697 fi
17698
17699
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unnumbered sysctl support exists" >&5
17701 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17702
17703
17704 cat confdefs.h - <<_ACEOF >conftest.c
17705
17706
17707 #include <linux/sysctl.h>
17708
17709 int
17710 main (void)
17711 {
17712
17713 #ifndef CTL_UNNUMBERED
17714 #error CTL_UNNUMBERED undefined
17715 #endif
17716
17717 ;
17718 return 0;
17719 }
17720
17721 _ACEOF
17722
17723
17724 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17725 echo "obj-m := conftest.o" >build/Makefile
17726 modpost_flag=''
17727 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17728 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17733 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738 test $ac_status = 0; }; }; then :
17739
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17741 $as_echo "yes" >&6; }
17742
17743 $as_echo "#define HAVE_CTL_UNNUMBERED 1" >>confdefs.h
17744
17745
17746 else
17747 $as_echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17749
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17752
17753
17754
17755 fi
17756 rm -Rf build
17757
17758
17759
17760
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
17762 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17763
17764
17765 cat confdefs.h - <<_ACEOF >conftest.c
17766
17767
17768 #include <linux/sysctl.h>
17769
17770 int
17771 main (void)
17772 {
17773
17774 struct ctl_table ctl __attribute__ ((unused));
17775 ctl.ctl_name = 0;
17776
17777 ;
17778 return 0;
17779 }
17780
17781 _ACEOF
17782
17783
17784 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17785 echo "obj-m := conftest.o" >build/Makefile
17786 modpost_flag=''
17787 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17788 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17793 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17798 test $ac_status = 0; }; }; then :
17799
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17801 $as_echo "yes" >&6; }
17802
17803 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
17804
17805
17806 else
17807 $as_echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17811 $as_echo "no" >&6; }
17812
17813
17814
17815 fi
17816 rm -Rf build
17817
17818
17819
17820
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct vmalloc_info is declared" >&5
17822 $as_echo_n "checking whether struct vmalloc_info is declared... " >&6; }
17823
17824
17825 cat confdefs.h - <<_ACEOF >conftest.c
17826
17827
17828 #include <linux/vmalloc.h>
17829 struct vmalloc_info { void *a; };
17830
17831 int
17832 main (void)
17833 {
17834
17835 return 0;
17836
17837 ;
17838 return 0;
17839 }
17840
17841 _ACEOF
17842
17843
17844 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17845 echo "obj-m := conftest.o" >build/Makefile
17846 modpost_flag=''
17847 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17853 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17858 test $ac_status = 0; }; }; then :
17859
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17861 $as_echo "no" >&6; }
17862
17863 else
17864 $as_echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17868 $as_echo "yes" >&6; }
17869
17870 $as_echo "#define HAVE_VMALLOC_INFO 1" >>confdefs.h
17871
17872
17873
17874
17875 fi
17876 rm -Rf build
17877
17878
17879
17880
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
17882 $as_echo_n "checking whether PDE_DATA() is available... " >&6; }
17883
17884
17885
17886 cat confdefs.h - <<_ACEOF >conftest.c
17887
17888
17889 #include <linux/proc_fs.h>
17890
17891 int
17892 main (void)
17893 {
17894
17895 PDE_DATA(NULL);
17896
17897 ;
17898 return 0;
17899 }
17900
17901 _ACEOF
17902
17903
17904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17905 echo "obj-m := conftest.o" >build/Makefile
17906 modpost_flag=''
17907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17915 (eval $ac_try) 2>&5
17916 ac_status=$?
17917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17918 test $ac_status = 0; }; }; then :
17919 rc=0
17920 else
17921 $as_echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923 rc=1
17924
17925
17926 fi
17927 rm -Rf build
17928
17929
17930 if test $rc -ne 0; then :
17931
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17933 $as_echo "no" >&6; }
17934
17935 else
17936 if test "x$enable_linux_builtin" != xyes; then
17937
17938 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
17939 $LINUX_OBJ/Module*.symvers 2>/dev/null
17940 rc=$?
17941 if test $rc -ne 0; then
17942 export=0
17943 for file in ; do
17944 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
17945 "$LINUX_OBJ/$file" 2>/dev/null
17946 rc=$?
17947 if test $rc -eq 0; then
17948 export=1
17949 break;
17950 fi
17951 done
17952 if test $export -eq 0; then :
17953 rc=1
17954 else :
17955 rc=0
17956 fi
17957 else :
17958 rc=0
17959 fi
17960
17961 fi
17962 if test $rc -ne 0; then :
17963
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17965 $as_echo "no" >&6; }
17966
17967 else :
17968
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17970 $as_echo "yes" >&6; }
17971
17972 $as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
17973
17974
17975 fi
17976 fi
17977
17978
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fls64() is available" >&5
17980 $as_echo_n "checking whether fls64() is available... " >&6; }
17981
17982
17983 cat confdefs.h - <<_ACEOF >conftest.c
17984
17985
17986 #include <linux/bitops.h>
17987
17988 int
17989 main (void)
17990 {
17991
17992 return fls64(0);
17993
17994 ;
17995 return 0;
17996 }
17997
17998 _ACEOF
17999
18000
18001 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18002 echo "obj-m := conftest.o" >build/Makefile
18003 modpost_flag=''
18004 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18010 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18015 test $ac_status = 0; }; }; then :
18016
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18018 $as_echo "yes" >&6; }
18019
18020 $as_echo "#define HAVE_FLS64 1" >>confdefs.h
18021
18022
18023 else
18024 $as_echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18028 $as_echo "no" >&6; }
18029
18030
18031
18032 fi
18033 rm -Rf build
18034
18035
18036
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() is available" >&5
18038 $as_echo_n "checking whether device_create() is available... " >&6; }
18039
18040 grep -q -E '[[:space:]]device_create[[:space:]]' \
18041 $LINUX_OBJ/Module*.symvers 2>/dev/null
18042 rc=$?
18043 if test $rc -ne 0; then
18044 export=0
18045 for file in drivers/base/core.c; do
18046 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
18047 "$LINUX_OBJ/$file" 2>/dev/null
18048 rc=$?
18049 if test $rc -eq 0; then
18050 export=1
18051 break;
18052 fi
18053 done
18054 if test $export -eq 0; then :
18055
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18057 $as_echo "no" >&6; }
18058
18059 else :
18060
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18063
18064 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
18065
18066
18067 fi
18068 else :
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071 $as_echo "yes" >&6; }
18072
18073 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
18074
18075
18076 fi
18077
18078
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() wants 5 args" >&5
18081 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
18082 tmp_flags="$EXTRA_KCFLAGS"
18083 EXTRA_KCFLAGS="-Werror"
18084
18085
18086 cat confdefs.h - <<_ACEOF >conftest.c
18087
18088
18089 #include <linux/device.h>
18090
18091 int
18092 main (void)
18093 {
18094
18095 device_create(NULL, NULL, 0, NULL, "%d", 1);
18096
18097 ;
18098 return 0;
18099 }
18100
18101 _ACEOF
18102
18103
18104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18105 echo "obj-m := conftest.o" >build/Makefile
18106 modpost_flag=''
18107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18108 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18113 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18118 test $ac_status = 0; }; }; then :
18119
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18121 $as_echo "yes" >&6; }
18122
18123 $as_echo "#define HAVE_5ARGS_DEVICE_CREATE 1" >>confdefs.h
18124
18125
18126 else
18127 $as_echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18129
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18131 $as_echo "no" >&6; }
18132
18133
18134
18135 fi
18136 rm -Rf build
18137
18138
18139 EXTRA_KCFLAGS="$tmp_flags"
18140
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether class_device_create() is available" >&5
18142 $as_echo_n "checking whether class_device_create() is available... " >&6; }
18143
18144
18145
18146 cat confdefs.h - <<_ACEOF >conftest.c
18147
18148
18149 #include <linux/device.h>
18150
18151 int
18152 main (void)
18153 {
18154
18155 class_device_create(NULL, NULL, 0, NULL, NULL);
18156
18157 ;
18158 return 0;
18159 }
18160
18161 _ACEOF
18162
18163
18164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18165 echo "obj-m := conftest.o" >build/Makefile
18166 modpost_flag=''
18167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18168 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18173 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18175 (eval $ac_try) 2>&5
18176 ac_status=$?
18177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18178 test $ac_status = 0; }; }; then :
18179 rc=0
18180 else
18181 $as_echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183 rc=1
18184
18185
18186 fi
18187 rm -Rf build
18188
18189
18190 if test $rc -ne 0; then :
18191
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194
18195 else
18196 if test "x$enable_linux_builtin" != xyes; then
18197
18198 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
18199 $LINUX_OBJ/Module*.symvers 2>/dev/null
18200 rc=$?
18201 if test $rc -ne 0; then
18202 export=0
18203 for file in drivers/base/class.c; do
18204 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
18205 "$LINUX_OBJ/$file" 2>/dev/null
18206 rc=$?
18207 if test $rc -eq 0; then
18208 export=1
18209 break;
18210 fi
18211 done
18212 if test $export -eq 0; then :
18213 rc=1
18214 else :
18215 rc=0
18216 fi
18217 else :
18218 rc=0
18219 fi
18220
18221 fi
18222 if test $rc -ne 0; then :
18223
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18226
18227 else :
18228
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18231
18232 $as_echo "#define HAVE_CLASS_DEVICE_CREATE 1" >>confdefs.h
18233
18234
18235 fi
18236 fi
18237
18238
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is available as export" >&5
18240 $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; }
18241
18242
18243
18244 cat confdefs.h - <<_ACEOF >conftest.c
18245
18246
18247 #include <linux/time.h>
18248
18249 int
18250 main (void)
18251 {
18252
18253 set_normalized_timespec(NULL, 0, 0);
18254
18255 ;
18256 return 0;
18257 }
18258
18259 _ACEOF
18260
18261
18262 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18263 echo "obj-m := conftest.o" >build/Makefile
18264 modpost_flag=''
18265 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18266 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18271 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18273 (eval $ac_try) 2>&5
18274 ac_status=$?
18275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18276 test $ac_status = 0; }; }; then :
18277 rc=0
18278 else
18279 $as_echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18281 rc=1
18282
18283
18284 fi
18285 rm -Rf build
18286
18287
18288 if test $rc -ne 0; then :
18289
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 $as_echo "no" >&6; }
18292
18293 else
18294 if test "x$enable_linux_builtin" != xyes; then
18295
18296 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
18297 $LINUX_OBJ/Module*.symvers 2>/dev/null
18298 rc=$?
18299 if test $rc -ne 0; then
18300 export=0
18301 for file in kernel/time.c; do
18302 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
18303 "$LINUX_OBJ/$file" 2>/dev/null
18304 rc=$?
18305 if test $rc -eq 0; then
18306 export=1
18307 break;
18308 fi
18309 done
18310 if test $export -eq 0; then :
18311 rc=1
18312 else :
18313 rc=0
18314 fi
18315 else :
18316 rc=0
18317 fi
18318
18319 fi
18320 if test $rc -ne 0; then :
18321
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18324
18325 else :
18326
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18328 $as_echo "yes" >&6; }
18329
18330 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1" >>confdefs.h
18331
18332
18333 fi
18334 fi
18335
18336
18337
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is an inline" >&5
18339 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
18340
18341
18342 cat confdefs.h - <<_ACEOF >conftest.c
18343
18344
18345 #include <linux/time.h>
18346 void set_normalized_timespec(struct timespec *ts,
18347 time_t sec, long nsec) { }
18348
18349 int
18350 main (void)
18351 {
18352
18353 ;
18354 return 0;
18355 }
18356
18357 _ACEOF
18358
18359
18360 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18361 echo "obj-m := conftest.o" >build/Makefile
18362 modpost_flag=''
18363 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18364 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18366 (eval $ac_try) 2>&5
18367 ac_status=$?
18368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18369 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18374 test $ac_status = 0; }; }; then :
18375
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18377 $as_echo "no" >&6; }
18378
18379 else
18380 $as_echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18384 $as_echo "yes" >&6; }
18385
18386 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1" >>confdefs.h
18387
18388
18389
18390
18391 fi
18392 rm -Rf build
18393
18394
18395
18396
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timespec_sub() is available" >&5
18398 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
18399
18400
18401 cat confdefs.h - <<_ACEOF >conftest.c
18402
18403
18404 #include <linux/time.h>
18405
18406 int
18407 main (void)
18408 {
18409
18410 struct timespec a = { 0 };
18411 struct timespec b = { 0 };
18412 struct timespec c __attribute__ ((unused));
18413 c = timespec_sub(a, b);
18414
18415 ;
18416 return 0;
18417 }
18418
18419 _ACEOF
18420
18421
18422 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18423 echo "obj-m := conftest.o" >build/Makefile
18424 modpost_flag=''
18425 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18426 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18431 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18436 test $ac_status = 0; }; }; then :
18437
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18439 $as_echo "yes" >&6; }
18440
18441 $as_echo "#define HAVE_TIMESPEC_SUB 1" >>confdefs.h
18442
18443
18444 else
18445 $as_echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18450
18451
18452
18453 fi
18454 rm -Rf build
18455
18456
18457
18458
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_utsname() is available" >&5
18460 $as_echo_n "checking whether init_utsname() is available... " >&6; }
18461
18462
18463 cat confdefs.h - <<_ACEOF >conftest.c
18464
18465
18466 #include <linux/utsname.h>
18467
18468 int
18469 main (void)
18470 {
18471
18472 struct new_utsname *a __attribute__ ((unused));
18473 a = init_utsname();
18474
18475 ;
18476 return 0;
18477 }
18478
18479 _ACEOF
18480
18481
18482 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18483 echo "obj-m := conftest.o" >build/Makefile
18484 modpost_flag=''
18485 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18486 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18491 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18496 test $ac_status = 0; }; }; then :
18497
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18499 $as_echo "yes" >&6; }
18500
18501 $as_echo "#define HAVE_INIT_UTSNAME 1" >>confdefs.h
18502
18503
18504 else
18505 $as_echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18509 $as_echo "no" >&6; }
18510
18511
18512
18513 fi
18514 rm -Rf build
18515
18516
18517
18518
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/uaccess.h exists" >&5
18520 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
18521
18522
18523 cat confdefs.h - <<_ACEOF >conftest.c
18524
18525
18526 #include <linux/uaccess.h>
18527
18528 int
18529 main (void)
18530 {
18531
18532 return 0;
18533
18534 ;
18535 return 0;
18536 }
18537
18538 _ACEOF
18539
18540
18541 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18542 echo "obj-m := conftest.o" >build/Makefile
18543 modpost_flag=''
18544 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18545 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18550 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18552 (eval $ac_try) 2>&5
18553 ac_status=$?
18554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18555 test $ac_status = 0; }; }; then :
18556
18557
18558 $as_echo "#define HAVE_UACCESS_HEADER 1" >>confdefs.h
18559
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18561 $as_echo "yes" >&6; }
18562
18563
18564 else
18565 $as_echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 $as_echo "no" >&6; }
18570
18571
18572
18573
18574 fi
18575 rm -Rf build
18576
18577
18578
18579
18580
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmalloc_node() is available" >&5
18582 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
18583
18584
18585 cat confdefs.h - <<_ACEOF >conftest.c
18586
18587
18588 #include <linux/slab.h>
18589
18590 int
18591 main (void)
18592 {
18593
18594 void *a __attribute__ ((unused));
18595 a = kmalloc_node(1, GFP_KERNEL, 0);
18596
18597 ;
18598 return 0;
18599 }
18600
18601 _ACEOF
18602
18603
18604 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18605 echo "obj-m := conftest.o" >build/Makefile
18606 modpost_flag=''
18607 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18608 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18613 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18618 test $ac_status = 0; }; }; then :
18619
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18621 $as_echo "yes" >&6; }
18622
18623 $as_echo "#define HAVE_KMALLOC_NODE 1" >>confdefs.h
18624
18625
18626 else
18627 $as_echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18629
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632
18633
18634
18635 fi
18636 rm -Rf build
18637
18638
18639
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether monotonic_clock() is available" >&5
18641 $as_echo_n "checking whether monotonic_clock() is available... " >&6; }
18642
18643
18644
18645 cat confdefs.h - <<_ACEOF >conftest.c
18646
18647
18648 #include <linux/timex.h>
18649
18650 int
18651 main (void)
18652 {
18653
18654 monotonic_clock();
18655
18656 ;
18657 return 0;
18658 }
18659
18660 _ACEOF
18661
18662
18663 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18664 echo "obj-m := conftest.o" >build/Makefile
18665 modpost_flag=''
18666 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18677 test $ac_status = 0; }; }; then :
18678 rc=0
18679 else
18680 $as_echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18682 rc=1
18683
18684
18685 fi
18686 rm -Rf build
18687
18688
18689 if test $rc -ne 0; then :
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18692 $as_echo "no" >&6; }
18693
18694 else
18695 if test "x$enable_linux_builtin" != xyes; then
18696
18697 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18698 $LINUX_OBJ/Module*.symvers 2>/dev/null
18699 rc=$?
18700 if test $rc -ne 0; then
18701 export=0
18702 for file in ; do
18703 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18704 "$LINUX_OBJ/$file" 2>/dev/null
18705 rc=$?
18706 if test $rc -eq 0; then
18707 export=1
18708 break;
18709 fi
18710 done
18711 if test $export -eq 0; then :
18712 rc=1
18713 else :
18714 rc=0
18715 fi
18716 else :
18717 rc=0
18718 fi
18719
18720 fi
18721 if test $rc -ne 0; then :
18722
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18724 $as_echo "no" >&6; }
18725
18726 else :
18727
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18730
18731 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
18732
18733
18734 fi
18735 fi
18736
18737
18738
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct inode has i_mutex" >&5
18740 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18741
18742
18743 cat confdefs.h - <<_ACEOF >conftest.c
18744
18745
18746 #include <linux/fs.h>
18747 #include <linux/mutex.h>
18748
18749 int
18750 main (void)
18751 {
18752
18753 struct inode i;
18754 mutex_init(&i.i_mutex);
18755
18756 ;
18757 return 0;
18758 }
18759
18760 _ACEOF
18761
18762
18763 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18764 echo "obj-m := conftest.o" >build/Makefile
18765 modpost_flag=''
18766 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18767 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18772 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18774 (eval $ac_try) 2>&5
18775 ac_status=$?
18776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18777 test $ac_status = 0; }; }; then :
18778
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18780 $as_echo "yes" >&6; }
18781
18782 $as_echo "#define HAVE_INODE_I_MUTEX 1" >>confdefs.h
18783
18784
18785 else
18786 $as_echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790 $as_echo "no" >&6; }
18791
18792
18793
18794 fi
18795 rm -Rf build
18796
18797
18798
18799
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex has owner" >&5
18801 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18802
18803
18804 cat confdefs.h - <<_ACEOF >conftest.c
18805
18806
18807 #include <linux/mutex.h>
18808
18809 int
18810 main (void)
18811 {
18812
18813 struct mutex mtx __attribute__ ((unused));
18814 mtx.owner = NULL;
18815
18816 ;
18817 return 0;
18818 }
18819
18820 _ACEOF
18821
18822
18823 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18824 echo "obj-m := conftest.o" >build/Makefile
18825 modpost_flag=''
18826 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18827 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18832 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18834 (eval $ac_try) 2>&5
18835 ac_status=$?
18836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18837 test $ac_status = 0; }; }; then :
18838
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18840 $as_echo "yes" >&6; }
18841
18842 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
18843
18844
18845 else
18846 $as_echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850 $as_echo "no" >&6; }
18851
18852
18853
18854 fi
18855 rm -Rf build
18856
18857
18858
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex owner is a task_struct" >&5
18861 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18862 tmp_flags="$EXTRA_KCFLAGS"
18863 EXTRA_KCFLAGS="-Werror"
18864
18865
18866 cat confdefs.h - <<_ACEOF >conftest.c
18867
18868
18869 #include <linux/mutex.h>
18870 #include <linux/sched.h>
18871
18872 int
18873 main (void)
18874 {
18875
18876 struct mutex mtx __attribute__ ((unused));
18877 mtx.owner = current;
18878
18879 ;
18880 return 0;
18881 }
18882
18883 _ACEOF
18884
18885
18886 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18887 echo "obj-m := conftest.o" >build/Makefile
18888 modpost_flag=''
18889 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18890 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18895 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18897 (eval $ac_try) 2>&5
18898 ac_status=$?
18899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18900 test $ac_status = 0; }; }; then :
18901
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18903 $as_echo "yes" >&6; }
18904
18905 $as_echo "#define HAVE_MUTEX_OWNER_TASK_STRUCT 1" >>confdefs.h
18906
18907
18908 else
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18914
18915
18916
18917 fi
18918 rm -Rf build
18919
18920
18921 EXTRA_KCFLAGS="$tmp_flags"
18922
18923
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock_nested() is available" >&5
18925 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18926
18927
18928 cat confdefs.h - <<_ACEOF >conftest.c
18929
18930
18931 #include <linux/mutex.h>
18932
18933 int
18934 main (void)
18935 {
18936
18937 struct mutex mutex;
18938 mutex_init(&mutex);
18939 mutex_lock_nested(&mutex, 0);
18940
18941 ;
18942 return 0;
18943 }
18944
18945 _ACEOF
18946
18947
18948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18949 echo "obj-m := conftest.o" >build/Makefile
18950 modpost_flag=''
18951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18952 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18962 test $ac_status = 0; }; }; then :
18963
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965 $as_echo "yes" >&6; }
18966
18967 $as_echo "#define HAVE_MUTEX_LOCK_NESTED 1" >>confdefs.h
18968
18969
18970 else
18971 $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18975 $as_echo "no" >&6; }
18976
18977
18978
18979 fi
18980 rm -Rf build
18981
18982
18983
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether on_each_cpu() wants 3 args" >&5
18986 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18987
18988
18989 cat confdefs.h - <<_ACEOF >conftest.c
18990
18991
18992 #include <linux/interrupt.h>
18993 #include <linux/smp.h>
18994
18995 void on_each_cpu_func(void *data) { return; }
18996
18997 int
18998 main (void)
18999 {
19000
19001 on_each_cpu(on_each_cpu_func, NULL, 0);
19002
19003 ;
19004 return 0;
19005 }
19006
19007 _ACEOF
19008
19009
19010 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19011 echo "obj-m := conftest.o" >build/Makefile
19012 modpost_flag=''
19013 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19014 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19016 (eval $ac_try) 2>&5
19017 ac_status=$?
19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19019 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19021 (eval $ac_try) 2>&5
19022 ac_status=$?
19023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19024 test $ac_status = 0; }; }; then :
19025
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027 $as_echo "yes" >&6; }
19028
19029 $as_echo "#define HAVE_3ARGS_ON_EACH_CPU 1" >>confdefs.h
19030
19031
19032 else
19033 $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037 $as_echo "no" >&6; }
19038
19039
19040
19041 fi
19042 rm -Rf build
19043
19044
19045
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kallsyms_lookup_name() is available" >&5
19047 $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; }
19048
19049
19050
19051 cat confdefs.h - <<_ACEOF >conftest.c
19052
19053
19054 #include <linux/kallsyms.h>
19055
19056 int
19057 main (void)
19058 {
19059
19060 kallsyms_lookup_name(NULL);
19061
19062 ;
19063 return 0;
19064 }
19065
19066 _ACEOF
19067
19068
19069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19070 echo "obj-m := conftest.o" >build/Makefile
19071 modpost_flag=''
19072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19073 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19078 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19083 test $ac_status = 0; }; }; then :
19084 rc=0
19085 else
19086 $as_echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088 rc=1
19089
19090
19091 fi
19092 rm -Rf build
19093
19094
19095 if test $rc -ne 0; then :
19096
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19099
19100 else
19101 if test "x$enable_linux_builtin" != xyes; then
19102
19103 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
19104 $LINUX_OBJ/Module*.symvers 2>/dev/null
19105 rc=$?
19106 if test $rc -ne 0; then
19107 export=0
19108 for file in ; do
19109 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
19110 "$LINUX_OBJ/$file" 2>/dev/null
19111 rc=$?
19112 if test $rc -eq 0; then
19113 export=1
19114 break;
19115 fi
19116 done
19117 if test $export -eq 0; then :
19118 rc=1
19119 else :
19120 rc=0
19121 fi
19122 else :
19123 rc=0
19124 fi
19125
19126 fi
19127 if test $rc -ne 0; then :
19128
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19130 $as_echo "no" >&6; }
19131
19132 else :
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19135 $as_echo "yes" >&6; }
19136
19137 $as_echo "#define HAVE_KALLSYMS_LOOKUP_NAME 1" >>confdefs.h
19138
19139
19140 fi
19141 fi
19142
19143
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_vmalloc_info() is available" >&5
19145 $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; }
19146
19147 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
19148 $LINUX_OBJ/Module*.symvers 2>/dev/null
19149 rc=$?
19150 if test $rc -ne 0; then
19151 export=0
19152 for file in ; do
19153 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
19154 "$LINUX_OBJ/$file" 2>/dev/null
19155 rc=$?
19156 if test $rc -eq 0; then
19157 export=1
19158 break;
19159 fi
19160 done
19161 if test $export -eq 0; then :
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164 $as_echo "no" >&6; }
19165
19166 else :
19167
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19169 $as_echo "yes" >&6; }
19170
19171 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
19172
19173
19174 fi
19175 else :
19176
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19178 $as_echo "yes" >&6; }
19179
19180 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
19181
19182
19183 fi
19184
19185
19186
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol *_pgdat exist" >&5
19188 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
19189 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
19190 rc=$?
19191 if test $rc -eq 0; then
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193 $as_echo "yes" >&6; }
19194
19195 $as_echo "#define HAVE_PGDAT_HELPERS 1" >>confdefs.h
19196
19197 else
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19200 fi
19201
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether first_online_pgdat() is available" >&5
19203 $as_echo_n "checking whether first_online_pgdat() is available... " >&6; }
19204
19205
19206
19207 cat confdefs.h - <<_ACEOF >conftest.c
19208
19209
19210 #include <linux/mmzone.h>
19211
19212 int
19213 main (void)
19214 {
19215
19216 first_online_pgdat();
19217
19218 ;
19219 return 0;
19220 }
19221
19222 _ACEOF
19223
19224
19225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19226 echo "obj-m := conftest.o" >build/Makefile
19227 modpost_flag=''
19228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19234 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19239 test $ac_status = 0; }; }; then :
19240 rc=0
19241 else
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244 rc=1
19245
19246
19247 fi
19248 rm -Rf build
19249
19250
19251 if test $rc -ne 0; then :
19252
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19254 $as_echo "no" >&6; }
19255
19256 else
19257 if test "x$enable_linux_builtin" != xyes; then
19258
19259 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
19260 $LINUX_OBJ/Module*.symvers 2>/dev/null
19261 rc=$?
19262 if test $rc -ne 0; then
19263 export=0
19264 for file in ; do
19265 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
19266 "$LINUX_OBJ/$file" 2>/dev/null
19267 rc=$?
19268 if test $rc -eq 0; then
19269 export=1
19270 break;
19271 fi
19272 done
19273 if test $export -eq 0; then :
19274 rc=1
19275 else :
19276 rc=0
19277 fi
19278 else :
19279 rc=0
19280 fi
19281
19282 fi
19283 if test $rc -ne 0; then :
19284
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19287
19288 else :
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19291 $as_echo "yes" >&6; }
19292
19293 $as_echo "#define HAVE_FIRST_ONLINE_PGDAT 1" >>confdefs.h
19294
19295
19296 fi
19297 fi
19298
19299
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_online_pgdat() is available" >&5
19301 $as_echo_n "checking whether next_online_pgdat() is available... " >&6; }
19302
19303
19304
19305 cat confdefs.h - <<_ACEOF >conftest.c
19306
19307
19308 #include <linux/mmzone.h>
19309
19310 int
19311 main (void)
19312 {
19313
19314 next_online_pgdat(NULL);
19315
19316 ;
19317 return 0;
19318 }
19319
19320 _ACEOF
19321
19322
19323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19324 echo "obj-m := conftest.o" >build/Makefile
19325 modpost_flag=''
19326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19327 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19332 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19337 test $ac_status = 0; }; }; then :
19338 rc=0
19339 else
19340 $as_echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19342 rc=1
19343
19344
19345 fi
19346 rm -Rf build
19347
19348
19349 if test $rc -ne 0; then :
19350
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352 $as_echo "no" >&6; }
19353
19354 else
19355 if test "x$enable_linux_builtin" != xyes; then
19356
19357 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
19358 $LINUX_OBJ/Module*.symvers 2>/dev/null
19359 rc=$?
19360 if test $rc -ne 0; then
19361 export=0
19362 for file in ; do
19363 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
19364 "$LINUX_OBJ/$file" 2>/dev/null
19365 rc=$?
19366 if test $rc -eq 0; then
19367 export=1
19368 break;
19369 fi
19370 done
19371 if test $export -eq 0; then :
19372 rc=1
19373 else :
19374 rc=0
19375 fi
19376 else :
19377 rc=0
19378 fi
19379
19380 fi
19381 if test $rc -ne 0; then :
19382
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19384 $as_echo "no" >&6; }
19385
19386 else :
19387
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19389 $as_echo "yes" >&6; }
19390
19391 $as_echo "#define HAVE_NEXT_ONLINE_PGDAT 1" >>confdefs.h
19392
19393
19394 fi
19395 fi
19396
19397
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_zone() is available" >&5
19399 $as_echo_n "checking whether next_zone() is available... " >&6; }
19400
19401
19402
19403 cat confdefs.h - <<_ACEOF >conftest.c
19404
19405
19406 #include <linux/mmzone.h>
19407
19408 int
19409 main (void)
19410 {
19411
19412 next_zone(NULL);
19413
19414 ;
19415 return 0;
19416 }
19417
19418 _ACEOF
19419
19420
19421 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19422 echo "obj-m := conftest.o" >build/Makefile
19423 modpost_flag=''
19424 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19425 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19430 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19435 test $ac_status = 0; }; }; then :
19436 rc=0
19437 else
19438 $as_echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440 rc=1
19441
19442
19443 fi
19444 rm -Rf build
19445
19446
19447 if test $rc -ne 0; then :
19448
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450 $as_echo "no" >&6; }
19451
19452 else
19453 if test "x$enable_linux_builtin" != xyes; then
19454
19455 grep -q -E '[[:space:]]next_zone[[:space:]]' \
19456 $LINUX_OBJ/Module*.symvers 2>/dev/null
19457 rc=$?
19458 if test $rc -ne 0; then
19459 export=0
19460 for file in ; do
19461 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
19462 "$LINUX_OBJ/$file" 2>/dev/null
19463 rc=$?
19464 if test $rc -eq 0; then
19465 export=1
19466 break;
19467 fi
19468 done
19469 if test $export -eq 0; then :
19470 rc=1
19471 else :
19472 rc=0
19473 fi
19474 else :
19475 rc=0
19476 fi
19477
19478 fi
19479 if test $rc -ne 0; then :
19480
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19482 $as_echo "no" >&6; }
19483
19484 else :
19485
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19487 $as_echo "yes" >&6; }
19488
19489 $as_echo "#define HAVE_NEXT_ZONE 1" >>confdefs.h
19490
19491
19492 fi
19493 fi
19494
19495
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgdat_list is available" >&5
19497 $as_echo_n "checking whether pgdat_list is available... " >&6; }
19498
19499
19500
19501 cat confdefs.h - <<_ACEOF >conftest.c
19502
19503
19504 #include <linux/topology.h>
19505 pg_data_t *tmp = pgdat_list;
19506
19507 int
19508 main (void)
19509 {
19510
19511 ;
19512 return 0;
19513 }
19514
19515 _ACEOF
19516
19517
19518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19519 echo "obj-m := conftest.o" >build/Makefile
19520 modpost_flag=''
19521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19522 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19524 (eval $ac_try) 2>&5
19525 ac_status=$?
19526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19527 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19529 (eval $ac_try) 2>&5
19530 ac_status=$?
19531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19532 test $ac_status = 0; }; }; then :
19533 rc=0
19534 else
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537 rc=1
19538
19539
19540 fi
19541 rm -Rf build
19542
19543
19544 if test $rc -ne 0; then :
19545
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19547 $as_echo "no" >&6; }
19548
19549 else
19550 if test "x$enable_linux_builtin" != xyes; then
19551
19552 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
19553 $LINUX_OBJ/Module*.symvers 2>/dev/null
19554 rc=$?
19555 if test $rc -ne 0; then
19556 export=0
19557 for file in ; do
19558 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
19559 "$LINUX_OBJ/$file" 2>/dev/null
19560 rc=$?
19561 if test $rc -eq 0; then
19562 export=1
19563 break;
19564 fi
19565 done
19566 if test $export -eq 0; then :
19567 rc=1
19568 else :
19569 rc=0
19570 fi
19571 else :
19572 rc=0
19573 fi
19574
19575 fi
19576 if test $rc -ne 0; then :
19577
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19579 $as_echo "no" >&6; }
19580
19581 else :
19582
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19584 $as_echo "yes" >&6; }
19585
19586 $as_echo "#define HAVE_PGDAT_LIST 1" >>confdefs.h
19587
19588
19589 fi
19590 fi
19591
19592
19593
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether global_page_state() is available" >&5
19595 $as_echo_n "checking whether global_page_state() is available... " >&6; }
19596
19597
19598 cat confdefs.h - <<_ACEOF >conftest.c
19599
19600
19601 #include <linux/mm.h>
19602
19603 int
19604 main (void)
19605 {
19606
19607 unsigned long state __attribute__ ((unused));
19608 state = global_page_state(0);
19609
19610 ;
19611 return 0;
19612 }
19613
19614 _ACEOF
19615
19616
19617 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19618 echo "obj-m := conftest.o" >build/Makefile
19619 modpost_flag=''
19620 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19621 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19626 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19631 test $ac_status = 0; }; }; then :
19632
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19634 $as_echo "yes" >&6; }
19635
19636 $as_echo "#define HAVE_GLOBAL_PAGE_STATE 1" >>confdefs.h
19637
19638
19639 else
19640 $as_echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19644 $as_echo "no" >&6; }
19645
19646
19647
19648 fi
19649 rm -Rf build
19650
19651
19652
19653
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_FREE_PAGES is available" >&5
19655 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
19656
19657
19658 cat confdefs.h - <<_ACEOF >conftest.c
19659
19660
19661 #include <linux/mm.h>
19662
19663 int
19664 main (void)
19665 {
19666
19667 enum zone_stat_item zsi __attribute__ ((unused));
19668 zsi = NR_FREE_PAGES;
19669
19670 ;
19671 return 0;
19672 }
19673
19674 _ACEOF
19675
19676
19677 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19678 echo "obj-m := conftest.o" >build/Makefile
19679 modpost_flag=''
19680 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19681 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19686 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19691 test $ac_status = 0; }; }; then :
19692
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19694 $as_echo "yes" >&6; }
19695
19696 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1" >>confdefs.h
19697
19698
19699 else
19700 $as_echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19704 $as_echo "no" >&6; }
19705
19706
19707
19708 fi
19709 rm -Rf build
19710
19711
19712
19713
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE is available" >&5
19715 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
19716
19717
19718 cat confdefs.h - <<_ACEOF >conftest.c
19719
19720
19721 #include <linux/mm.h>
19722
19723 int
19724 main (void)
19725 {
19726
19727 enum zone_stat_item zsi __attribute__ ((unused));
19728 zsi = NR_INACTIVE;
19729
19730 ;
19731 return 0;
19732 }
19733
19734 _ACEOF
19735
19736
19737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19738 echo "obj-m := conftest.o" >build/Makefile
19739 modpost_flag=''
19740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19751 test $ac_status = 0; }; }; then :
19752
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19754 $as_echo "yes" >&6; }
19755
19756 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1" >>confdefs.h
19757
19758
19759 else
19760 $as_echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19764 $as_echo "no" >&6; }
19765
19766
19767
19768 fi
19769 rm -Rf build
19770
19771
19772
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_ANON is available" >&5
19774 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
19775
19776
19777 cat confdefs.h - <<_ACEOF >conftest.c
19778
19779
19780 #include <linux/mm.h>
19781
19782 int
19783 main (void)
19784 {
19785
19786 enum zone_stat_item zsi __attribute__ ((unused));
19787 zsi = NR_INACTIVE_ANON;
19788
19789 ;
19790 return 0;
19791 }
19792
19793 _ACEOF
19794
19795
19796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19797 echo "obj-m := conftest.o" >build/Makefile
19798 modpost_flag=''
19799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19800 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19805 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19810 test $ac_status = 0; }; }; then :
19811
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19813 $as_echo "yes" >&6; }
19814
19815 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1" >>confdefs.h
19816
19817
19818 else
19819 $as_echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19823 $as_echo "no" >&6; }
19824
19825
19826
19827 fi
19828 rm -Rf build
19829
19830
19831
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_FILE is available" >&5
19833 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
19834
19835
19836 cat confdefs.h - <<_ACEOF >conftest.c
19837
19838
19839 #include <linux/mm.h>
19840
19841 int
19842 main (void)
19843 {
19844
19845 enum zone_stat_item zsi __attribute__ ((unused));
19846 zsi = NR_INACTIVE_FILE;
19847
19848 ;
19849 return 0;
19850 }
19851
19852 _ACEOF
19853
19854
19855 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19856 echo "obj-m := conftest.o" >build/Makefile
19857 modpost_flag=''
19858 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19859 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19869 test $ac_status = 0; }; }; then :
19870
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19872 $as_echo "yes" >&6; }
19873
19874 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1" >>confdefs.h
19875
19876
19877 else
19878 $as_echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19882 $as_echo "no" >&6; }
19883
19884
19885
19886 fi
19887 rm -Rf build
19888
19889
19890
19891
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE is available" >&5
19893 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
19894
19895
19896 cat confdefs.h - <<_ACEOF >conftest.c
19897
19898
19899 #include <linux/mm.h>
19900
19901 int
19902 main (void)
19903 {
19904
19905 enum zone_stat_item zsi __attribute__ ((unused));
19906 zsi = NR_ACTIVE;
19907
19908 ;
19909 return 0;
19910 }
19911
19912 _ACEOF
19913
19914
19915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19916 echo "obj-m := conftest.o" >build/Makefile
19917 modpost_flag=''
19918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19919 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19921 (eval $ac_try) 2>&5
19922 ac_status=$?
19923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19924 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19929 test $ac_status = 0; }; }; then :
19930
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19932 $as_echo "yes" >&6; }
19933
19934 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1" >>confdefs.h
19935
19936
19937 else
19938 $as_echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942 $as_echo "no" >&6; }
19943
19944
19945
19946 fi
19947 rm -Rf build
19948
19949
19950
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_ANON is available" >&5
19952 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
19953
19954
19955 cat confdefs.h - <<_ACEOF >conftest.c
19956
19957
19958 #include <linux/mm.h>
19959
19960 int
19961 main (void)
19962 {
19963
19964 enum zone_stat_item zsi __attribute__ ((unused));
19965 zsi = NR_ACTIVE_ANON;
19966
19967 ;
19968 return 0;
19969 }
19970
19971 _ACEOF
19972
19973
19974 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19975 echo "obj-m := conftest.o" >build/Makefile
19976 modpost_flag=''
19977 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19978 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19983 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19988 test $ac_status = 0; }; }; then :
19989
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19991 $as_echo "yes" >&6; }
19992
19993 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1" >>confdefs.h
19994
19995
19996 else
19997 $as_echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20001 $as_echo "no" >&6; }
20002
20003
20004
20005 fi
20006 rm -Rf build
20007
20008
20009
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_FILE is available" >&5
20011 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
20012
20013
20014 cat confdefs.h - <<_ACEOF >conftest.c
20015
20016
20017 #include <linux/mm.h>
20018
20019 int
20020 main (void)
20021 {
20022
20023 enum zone_stat_item zsi __attribute__ ((unused));
20024 zsi = NR_ACTIVE_FILE;
20025
20026 ;
20027 return 0;
20028 }
20029
20030 _ACEOF
20031
20032
20033 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20034 echo "obj-m := conftest.o" >build/Makefile
20035 modpost_flag=''
20036 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20037 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20042 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20047 test $ac_status = 0; }; }; then :
20048
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20050 $as_echo "yes" >&6; }
20051
20052 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1" >>confdefs.h
20053
20054
20055 else
20056 $as_echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20060 $as_echo "no" >&6; }
20061
20062
20063
20064 fi
20065 rm -Rf build
20066
20067
20068
20069
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol get_zone_counts is needed" >&5
20071 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
20072
20073
20074 cat confdefs.h - <<_ACEOF >conftest.c
20075
20076
20077
20078 int
20079 main (void)
20080 {
20081
20082 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
20083 #error "global_page_state needs NR_FREE_PAGES"
20084 #endif
20085
20086 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
20087 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
20088 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
20089 #error "global_page_state needs NR_ACTIVE*"
20090 #endif
20091
20092 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
20093 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
20094 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
20095 #error "global_page_state needs NR_INACTIVE*"
20096 #endif
20097
20098 ;
20099 return 0;
20100 }
20101
20102 _ACEOF
20103
20104
20105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20106 echo "obj-m := conftest.o" >build/Makefile
20107 modpost_flag=''
20108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20109 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20114 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20116 (eval $ac_try) 2>&5
20117 ac_status=$?
20118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20119 test $ac_status = 0; }; }; then :
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20122 $as_echo "no" >&6; }
20123
20124 else
20125 $as_echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20129 $as_echo "yes" >&6; }
20130
20131 $as_echo "#define NEED_GET_ZONE_COUNTS 1" >>confdefs.h
20132
20133
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_zone_counts() is available" >&5
20135 $as_echo_n "checking whether get_zone_counts() is available... " >&6; }
20136
20137
20138
20139 cat confdefs.h - <<_ACEOF >conftest.c
20140
20141
20142 #include <linux/mmzone.h>
20143
20144 int
20145 main (void)
20146 {
20147
20148 get_zone_counts(NULL, NULL, NULL);
20149
20150 ;
20151 return 0;
20152 }
20153
20154 _ACEOF
20155
20156
20157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20158 echo "obj-m := conftest.o" >build/Makefile
20159 modpost_flag=''
20160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20161 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20166 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20171 test $ac_status = 0; }; }; then :
20172 rc=0
20173 else
20174 $as_echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176 rc=1
20177
20178
20179 fi
20180 rm -Rf build
20181
20182
20183 if test $rc -ne 0; then :
20184
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20186 $as_echo "no" >&6; }
20187
20188 else
20189 if test "x$enable_linux_builtin" != xyes; then
20190
20191 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
20192 $LINUX_OBJ/Module*.symvers 2>/dev/null
20193 rc=$?
20194 if test $rc -ne 0; then
20195 export=0
20196 for file in ; do
20197 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
20198 "$LINUX_OBJ/$file" 2>/dev/null
20199 rc=$?
20200 if test $rc -eq 0; then
20201 export=1
20202 break;
20203 fi
20204 done
20205 if test $export -eq 0; then :
20206 rc=1
20207 else :
20208 rc=0
20209 fi
20210 else :
20211 rc=0
20212 fi
20213
20214 fi
20215 if test $rc -ne 0; then :
20216
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20218 $as_echo "no" >&6; }
20219
20220 else :
20221
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20223 $as_echo "yes" >&6; }
20224
20225 $as_echo "#define HAVE_GET_ZONE_COUNTS 1" >>confdefs.h
20226
20227
20228 fi
20229 fi
20230
20231
20232
20233
20234 fi
20235 rm -Rf build
20236
20237
20238
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user_path_dir() is available" >&5
20240 $as_echo_n "checking whether user_path_dir() is available... " >&6; }
20241
20242
20243
20244 cat confdefs.h - <<_ACEOF >conftest.c
20245
20246
20247 #include <linux/fcntl.h>
20248 #include <linux/namei.h>
20249
20250 int
20251 main (void)
20252 {
20253
20254 user_path_dir(NULL, NULL);
20255
20256 ;
20257 return 0;
20258 }
20259
20260 _ACEOF
20261
20262
20263 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20264 echo "obj-m := conftest.o" >build/Makefile
20265 modpost_flag=''
20266 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20267 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20269 (eval $ac_try) 2>&5
20270 ac_status=$?
20271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20272 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20274 (eval $ac_try) 2>&5
20275 ac_status=$?
20276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20277 test $ac_status = 0; }; }; then :
20278 rc=0
20279 else
20280 $as_echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282 rc=1
20283
20284
20285 fi
20286 rm -Rf build
20287
20288
20289 if test $rc -ne 0; then :
20290
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20292 $as_echo "no" >&6; }
20293
20294 else
20295 if test "x$enable_linux_builtin" != xyes; then
20296
20297 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
20298 $LINUX_OBJ/Module*.symvers 2>/dev/null
20299 rc=$?
20300 if test $rc -ne 0; then
20301 export=0
20302 for file in ; do
20303 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
20304 "$LINUX_OBJ/$file" 2>/dev/null
20305 rc=$?
20306 if test $rc -eq 0; then
20307 export=1
20308 break;
20309 fi
20310 done
20311 if test $export -eq 0; then :
20312 rc=1
20313 else :
20314 rc=0
20315 fi
20316 else :
20317 rc=0
20318 fi
20319
20320 fi
20321 if test $rc -ne 0; then :
20322
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20324 $as_echo "no" >&6; }
20325
20326 else :
20327
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20329 $as_echo "yes" >&6; }
20330
20331 $as_echo "#define HAVE_USER_PATH_DIR 1" >>confdefs.h
20332
20333
20334 fi
20335 fi
20336
20337
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() is available" >&5
20339 $as_echo_n "checking whether set_fs_pwd() is available... " >&6; }
20340
20341
20342
20343 cat confdefs.h - <<_ACEOF >conftest.c
20344
20345
20346 #include <linux/spinlock.h>
20347 #include <linux/fs_struct.h>
20348
20349 int
20350 main (void)
20351 {
20352
20353 (void) set_fs_pwd;
20354
20355 ;
20356 return 0;
20357 }
20358
20359 _ACEOF
20360
20361
20362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20363 echo "obj-m := conftest.o" >build/Makefile
20364 modpost_flag=''
20365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20366 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20368 (eval $ac_try) 2>&5
20369 ac_status=$?
20370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20371 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20373 (eval $ac_try) 2>&5
20374 ac_status=$?
20375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20376 test $ac_status = 0; }; }; then :
20377 rc=0
20378 else
20379 $as_echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20381 rc=1
20382
20383
20384 fi
20385 rm -Rf build
20386
20387
20388 if test $rc -ne 0; then :
20389
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20391 $as_echo "no" >&6; }
20392
20393 else
20394 if test "x$enable_linux_builtin" != xyes; then
20395
20396 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
20397 $LINUX_OBJ/Module*.symvers 2>/dev/null
20398 rc=$?
20399 if test $rc -ne 0; then
20400 export=0
20401 for file in ; do
20402 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
20403 "$LINUX_OBJ/$file" 2>/dev/null
20404 rc=$?
20405 if test $rc -eq 0; then
20406 export=1
20407 break;
20408 fi
20409 done
20410 if test $export -eq 0; then :
20411 rc=1
20412 else :
20413 rc=0
20414 fi
20415 else :
20416 rc=0
20417 fi
20418
20419 fi
20420 if test $rc -ne 0; then :
20421
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20423 $as_echo "no" >&6; }
20424
20425 else :
20426
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20428 $as_echo "yes" >&6; }
20429
20430 $as_echo "#define HAVE_SET_FS_PWD 1" >>confdefs.h
20431
20432
20433 fi
20434 fi
20435
20436
20437 tmp_flags="$EXTRA_KCFLAGS"
20438 EXTRA_KCFLAGS="-Werror"
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
20440 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
20441
20442
20443 cat confdefs.h - <<_ACEOF >conftest.c
20444
20445
20446 #include <linux/spinlock.h>
20447 #include <linux/fs_struct.h>
20448 #include <linux/path.h>
20449 void (*const set_fs_pwd_func)
20450 (struct fs_struct *, const struct path *)
20451 = set_fs_pwd;
20452
20453 int
20454 main (void)
20455 {
20456
20457 return 0;
20458
20459 ;
20460 return 0;
20461 }
20462
20463 _ACEOF
20464
20465
20466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20467 echo "obj-m := conftest.o" >build/Makefile
20468 modpost_flag=''
20469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20470 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20475 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20480 test $ac_status = 0; }; }; then :
20481
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20483 $as_echo "yes" >&6; }
20484
20485 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
20486
20487
20488 else
20489 $as_echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20491
20492
20493
20494 cat confdefs.h - <<_ACEOF >conftest.c
20495
20496
20497 #include <linux/spinlock.h>
20498 #include <linux/fs_struct.h>
20499 #include <linux/path.h>
20500 void (*const set_fs_pwd_func)
20501 (struct fs_struct *, struct path *)
20502 = set_fs_pwd;
20503
20504 int
20505 main (void)
20506 {
20507
20508 return 0;
20509
20510 ;
20511 return 0;
20512 }
20513
20514 _ACEOF
20515
20516
20517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20518 echo "obj-m := conftest.o" >build/Makefile
20519 modpost_flag=''
20520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20521 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20526 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20528 (eval $ac_try) 2>&5
20529 ac_status=$?
20530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20531 test $ac_status = 0; }; }; then :
20532
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535
20536 else
20537 $as_echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20539
20540 as_fn_error $? "unknown" "$LINENO" 5
20541
20542
20543
20544 fi
20545 rm -Rf build
20546
20547
20548
20549
20550
20551 fi
20552 rm -Rf build
20553
20554
20555 EXTRA_KCFLAGS="$tmp_flags"
20556
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
20558 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
20559
20560
20561 cat confdefs.h - <<_ACEOF >conftest.c
20562
20563
20564 #include <linux/fs.h>
20565
20566 int
20567 main (void)
20568 {
20569
20570 vfs_unlink(NULL, NULL);
20571
20572 ;
20573 return 0;
20574 }
20575
20576 _ACEOF
20577
20578
20579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20580 echo "obj-m := conftest.o" >build/Makefile
20581 modpost_flag=''
20582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20583 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20585 (eval $ac_try) 2>&5
20586 ac_status=$?
20587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20588 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20593 test $ac_status = 0; }; }; then :
20594
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20596 $as_echo "yes" >&6; }
20597
20598 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
20599
20600
20601 else
20602 $as_echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20604
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20606 $as_echo "no" >&6; }
20607
20608
20609
20610 fi
20611 rm -Rf build
20612
20613
20614
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
20616 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
20617
20618
20619 cat confdefs.h - <<_ACEOF >conftest.c
20620
20621
20622 #include <linux/fs.h>
20623
20624 int
20625 main (void)
20626 {
20627
20628 vfs_rename(NULL, NULL, NULL, NULL);
20629
20630 ;
20631 return 0;
20632 }
20633
20634 _ACEOF
20635
20636
20637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20638 echo "obj-m := conftest.o" >build/Makefile
20639 modpost_flag=''
20640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20641 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20643 (eval $ac_try) 2>&5
20644 ac_status=$?
20645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20646 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20651 test $ac_status = 0; }; }; then :
20652
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20654 $as_echo "yes" >&6; }
20655
20656 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
20657
20658
20659 else
20660 $as_echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20664 $as_echo "no" >&6; }
20665
20666
20667
20668 fi
20669 rm -Rf build
20670
20671
20672
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() is available" >&5
20674 $as_echo_n "checking whether vfs_fsync() is available... " >&6; }
20675
20676
20677
20678 cat confdefs.h - <<_ACEOF >conftest.c
20679
20680
20681 #include <linux/fs.h>
20682
20683 int
20684 main (void)
20685 {
20686
20687 (void) vfs_fsync;
20688
20689 ;
20690 return 0;
20691 }
20692
20693 _ACEOF
20694
20695
20696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20697 echo "obj-m := conftest.o" >build/Makefile
20698 modpost_flag=''
20699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20700 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20702 (eval $ac_try) 2>&5
20703 ac_status=$?
20704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20705 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; }; then :
20711 rc=0
20712 else
20713 $as_echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715 rc=1
20716
20717
20718 fi
20719 rm -Rf build
20720
20721
20722 if test $rc -ne 0; then :
20723
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20726
20727 else
20728 if test "x$enable_linux_builtin" != xyes; then
20729
20730 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
20731 $LINUX_OBJ/Module*.symvers 2>/dev/null
20732 rc=$?
20733 if test $rc -ne 0; then
20734 export=0
20735 for file in fs/sync.c; do
20736 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
20737 "$LINUX_OBJ/$file" 2>/dev/null
20738 rc=$?
20739 if test $rc -eq 0; then
20740 export=1
20741 break;
20742 fi
20743 done
20744 if test $export -eq 0; then :
20745 rc=1
20746 else :
20747 rc=0
20748 fi
20749 else :
20750 rc=0
20751 fi
20752
20753 fi
20754 if test $rc -ne 0; then :
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20757 $as_echo "no" >&6; }
20758
20759 else :
20760
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20762 $as_echo "yes" >&6; }
20763
20764 $as_echo "#define HAVE_VFS_FSYNC 1" >>confdefs.h
20765
20766
20767 fi
20768 fi
20769
20770
20771
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
20773 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
20774
20775
20776 cat confdefs.h - <<_ACEOF >conftest.c
20777
20778
20779 #include <linux/fs.h>
20780
20781 int
20782 main (void)
20783 {
20784
20785 vfs_fsync(NULL, 0);
20786
20787 ;
20788 return 0;
20789 }
20790
20791 _ACEOF
20792
20793
20794 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20795 echo "obj-m := conftest.o" >build/Makefile
20796 modpost_flag=''
20797 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20798 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20803 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20808 test $ac_status = 0; }; }; then :
20809
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20811 $as_echo "yes" >&6; }
20812
20813 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
20814
20815
20816 else
20817 $as_echo "$as_me: failed program was:" >&5
20818 sed 's/^/| /' conftest.$ac_ext >&5
20819
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20821 $as_echo "no" >&6; }
20822
20823
20824
20825 fi
20826 rm -Rf build
20827
20828
20829
20830
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
20832 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
20833
20834
20835 cat confdefs.h - <<_ACEOF >conftest.c
20836
20837
20838 #include <linux/fs.h>
20839
20840 int
20841 main (void)
20842 {
20843
20844 struct inode_operations ops;
20845 ops.truncate_range = NULL;
20846
20847 ;
20848 return 0;
20849 }
20850
20851 _ACEOF
20852
20853
20854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20855 echo "obj-m := conftest.o" >build/Makefile
20856 modpost_flag=''
20857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20868 test $ac_status = 0; }; }; then :
20869
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20871 $as_echo "yes" >&6; }
20872
20873 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
20874
20875
20876 else
20877 $as_echo "$as_me: failed program was:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20881 $as_echo "no" >&6; }
20882
20883
20884
20885 fi
20886 rm -Rf build
20887
20888
20889
20890
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
20892 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
20893 tmp_flags="$EXTRA_KCFLAGS"
20894 EXTRA_KCFLAGS="-Werror"
20895
20896
20897 cat confdefs.h - <<_ACEOF >conftest.c
20898
20899
20900 #include <linux/sched.h>
20901 #include <linux/fs_struct.h>
20902
20903 int
20904 main (void)
20905 {
20906
20907 struct fs_struct fs;
20908 spin_lock_init(&fs.lock);
20909
20910 ;
20911 return 0;
20912 }
20913
20914 _ACEOF
20915
20916
20917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20918 echo "obj-m := conftest.o" >build/Makefile
20919 modpost_flag=''
20920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20921 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20923 (eval $ac_try) 2>&5
20924 ac_status=$?
20925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20926 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20928 (eval $ac_try) 2>&5
20929 ac_status=$?
20930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20931 test $ac_status = 0; }; }; then :
20932
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20934 $as_echo "yes" >&6; }
20935
20936 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
20937
20938
20939 else
20940 $as_echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20944 $as_echo "no" >&6; }
20945
20946
20947
20948 fi
20949 rm -Rf build
20950
20951
20952 EXTRA_KCFLAGS="$tmp_flags"
20953
20954
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct cred exists" >&5
20956 $as_echo_n "checking whether struct cred exists... " >&6; }
20957
20958
20959 cat confdefs.h - <<_ACEOF >conftest.c
20960
20961
20962 #include <linux/cred.h>
20963
20964 int
20965 main (void)
20966 {
20967
20968 struct cred *cr __attribute__ ((unused));
20969 cr = NULL;
20970
20971 ;
20972 return 0;
20973 }
20974
20975 _ACEOF
20976
20977
20978 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20979 echo "obj-m := conftest.o" >build/Makefile
20980 modpost_flag=''
20981 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20982 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20987 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992 test $ac_status = 0; }; }; then :
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995 $as_echo "yes" >&6; }
20996
20997 $as_echo "#define HAVE_CRED_STRUCT 1" >>confdefs.h
20998
20999
21000 else
21001 $as_echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21005 $as_echo "no" >&6; }
21006
21007
21008
21009 fi
21010 rm -Rf build
21011
21012
21013
21014
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
21016 $as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
21017
21018
21019 cat confdefs.h - <<_ACEOF >conftest.c
21020
21021
21022 #include <linux/uidgid.h>
21023
21024 int
21025 main (void)
21026 {
21027
21028 kuid_t userid = KUIDT_INIT(0);
21029 kgid_t groupid = KGIDT_INIT(0);
21030
21031 ;
21032 return 0;
21033 }
21034
21035 _ACEOF
21036
21037
21038 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21039 echo "obj-m := conftest.o" >build/Makefile
21040 modpost_flag=''
21041 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21042 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21044 (eval $ac_try) 2>&5
21045 ac_status=$?
21046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21047 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21049 (eval $ac_try) 2>&5
21050 ac_status=$?
21051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21052 test $ac_status = 0; }; }; then :
21053
21054
21055
21056 cat confdefs.h - <<_ACEOF >conftest.c
21057
21058
21059 #include <linux/uidgid.h>
21060
21061 int
21062 main (void)
21063 {
21064
21065 kuid_t userid = 0;
21066 kgid_t groupid = 0;
21067
21068 ;
21069 return 0;
21070 }
21071
21072 _ACEOF
21073
21074
21075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21076 echo "obj-m := conftest.o" >build/Makefile
21077 modpost_flag=''
21078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21079 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21089 test $ac_status = 0; }; }; then :
21090
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
21092 $as_echo "yes; optional" >&6; }
21093
21094 else
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
21099 $as_echo "yes; mandatory" >&6; }
21100
21101 $as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
21102
21103
21104
21105
21106 fi
21107 rm -Rf build
21108
21109
21110
21111 else
21112 $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21116 $as_echo "no" >&6; }
21117
21118
21119
21120 fi
21121 rm -Rf build
21122
21123
21124
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether groups_search() is available" >&5
21126 $as_echo_n "checking whether groups_search() is available... " >&6; }
21127
21128
21129
21130 cat confdefs.h - <<_ACEOF >conftest.c
21131
21132
21133 #include <linux/cred.h>
21134 #ifdef HAVE_KUIDGID_T
21135 #include <linux/uidgid.h>
21136 #endif
21137
21138 int
21139 main (void)
21140 {
21141
21142 #ifdef HAVE_KUIDGID_T
21143 groups_search(NULL, KGIDT_INIT(0));
21144 #else
21145 groups_search(NULL, 0);
21146 #endif
21147
21148 ;
21149 return 0;
21150 }
21151
21152 _ACEOF
21153
21154
21155 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21156 echo "obj-m := conftest.o" >build/Makefile
21157 modpost_flag=''
21158 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21164 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21169 test $ac_status = 0; }; }; then :
21170 rc=0
21171 else
21172 $as_echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174 rc=1
21175
21176
21177 fi
21178 rm -Rf build
21179
21180
21181 if test $rc -ne 0; then :
21182
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21184 $as_echo "no" >&6; }
21185
21186 else
21187 if test "x$enable_linux_builtin" != xyes; then
21188
21189 grep -q -E '[[:space:]]groups_search[[:space:]]' \
21190 $LINUX_OBJ/Module*.symvers 2>/dev/null
21191 rc=$?
21192 if test $rc -ne 0; then
21193 export=0
21194 for file in ; do
21195 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
21196 "$LINUX_OBJ/$file" 2>/dev/null
21197 rc=$?
21198 if test $rc -eq 0; then
21199 export=1
21200 break;
21201 fi
21202 done
21203 if test $export -eq 0; then :
21204 rc=1
21205 else :
21206 rc=0
21207 fi
21208 else :
21209 rc=0
21210 fi
21211
21212 fi
21213 if test $rc -ne 0; then :
21214
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21216 $as_echo "no" >&6; }
21217
21218 else :
21219
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21221 $as_echo "yes" >&6; }
21222
21223 $as_echo "#define HAVE_GROUPS_SEARCH 1" >>confdefs.h
21224
21225
21226 fi
21227 fi
21228
21229
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
21231 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
21232
21233
21234
21235 cat confdefs.h - <<_ACEOF >conftest.c
21236
21237
21238 #include <linux/sched.h>
21239
21240 int
21241 main (void)
21242 {
21243
21244 __put_task_struct(NULL);
21245
21246 ;
21247 return 0;
21248 }
21249
21250 _ACEOF
21251
21252
21253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21254 echo "obj-m := conftest.o" >build/Makefile
21255 modpost_flag=''
21256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21257 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21262 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21264 (eval $ac_try) 2>&5
21265 ac_status=$?
21266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21267 test $ac_status = 0; }; }; then :
21268 rc=0
21269 else
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272 rc=1
21273
21274
21275 fi
21276 rm -Rf build
21277
21278
21279 if test $rc -ne 0; then :
21280
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282 $as_echo "no" >&6; }
21283
21284 else
21285 if test "x$enable_linux_builtin" != xyes; then
21286
21287 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
21288 $LINUX_OBJ/Module*.symvers 2>/dev/null
21289 rc=$?
21290 if test $rc -ne 0; then
21291 export=0
21292 for file in ; do
21293 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
21294 "$LINUX_OBJ/$file" 2>/dev/null
21295 rc=$?
21296 if test $rc -eq 0; then
21297 export=1
21298 break;
21299 fi
21300 done
21301 if test $export -eq 0; then :
21302 rc=1
21303 else :
21304 rc=0
21305 fi
21306 else :
21307 rc=0
21308 fi
21309
21310 fi
21311 if test $rc -ne 0; then :
21312
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21314 $as_echo "no" >&6; }
21315
21316 else :
21317
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21319 $as_echo "yes" >&6; }
21320
21321 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
21322
21323
21324 fi
21325 fi
21326
21327
21328
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether proc_handler() wants 5 args" >&5
21330 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
21331
21332
21333 cat confdefs.h - <<_ACEOF >conftest.c
21334
21335
21336 #include <linux/sysctl.h>
21337
21338 int
21339 main (void)
21340 {
21341
21342 proc_dostring(NULL, 0, NULL, NULL, NULL);
21343
21344 ;
21345 return 0;
21346 }
21347
21348 _ACEOF
21349
21350
21351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21352 echo "obj-m := conftest.o" >build/Makefile
21353 modpost_flag=''
21354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21355 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21360 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21365 test $ac_status = 0; }; }; then :
21366
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21368 $as_echo "yes" >&6; }
21369
21370 $as_echo "#define HAVE_5ARGS_PROC_HANDLER 1" >>confdefs.h
21371
21372
21373 else
21374 $as_echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378 $as_echo "no" >&6; }
21379
21380
21381
21382 fi
21383 rm -Rf build
21384
21385
21386
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kvasprintf() is available" >&5
21388 $as_echo_n "checking whether kvasprintf() is available... " >&6; }
21389
21390
21391
21392 cat confdefs.h - <<_ACEOF >conftest.c
21393
21394
21395 #include <linux/kernel.h>
21396
21397 int
21398 main (void)
21399 {
21400
21401 kvasprintf(0, NULL, *((va_list*)NULL));
21402
21403 ;
21404 return 0;
21405 }
21406
21407 _ACEOF
21408
21409
21410 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21411 echo "obj-m := conftest.o" >build/Makefile
21412 modpost_flag=''
21413 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21414 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21419 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21421 (eval $ac_try) 2>&5
21422 ac_status=$?
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; }; then :
21425 rc=0
21426 else
21427 $as_echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429 rc=1
21430
21431
21432 fi
21433 rm -Rf build
21434
21435
21436 if test $rc -ne 0; then :
21437
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21439 $as_echo "no" >&6; }
21440
21441 else
21442 if test "x$enable_linux_builtin" != xyes; then
21443
21444 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
21445 $LINUX_OBJ/Module*.symvers 2>/dev/null
21446 rc=$?
21447 if test $rc -ne 0; then
21448 export=0
21449 for file in ; do
21450 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
21451 "$LINUX_OBJ/$file" 2>/dev/null
21452 rc=$?
21453 if test $rc -eq 0; then
21454 export=1
21455 break;
21456 fi
21457 done
21458 if test $export -eq 0; then :
21459 rc=1
21460 else :
21461 rc=0
21462 fi
21463 else :
21464 rc=0
21465 fi
21466
21467 fi
21468 if test $rc -ne 0; then :
21469
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21471 $as_echo "no" >&6; }
21472
21473 else :
21474
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21476 $as_echo "yes" >&6; }
21477
21478 $as_echo "#define HAVE_KVASPRINTF 1" >>confdefs.h
21479
21480
21481 fi
21482 fi
21483
21484
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5
21486 $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; }
21487
21488
21489
21490 cat confdefs.h - <<_ACEOF >conftest.c
21491
21492
21493 #include <linux/rwsem.h>
21494 int rwsem_is_locked(struct rw_semaphore *sem) { return 0; }
21495
21496 int
21497 main (void)
21498 {
21499
21500 ;
21501 return 0;
21502 }
21503
21504 _ACEOF
21505
21506
21507 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21508 echo "obj-m := conftest.o" >build/Makefile
21509 modpost_flag=''
21510 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21511 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21516 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21521 test $ac_status = 0; }; }; then :
21522 rc=0
21523 else
21524 $as_echo "$as_me: failed program was:" >&5
21525 sed 's/^/| /' conftest.$ac_ext >&5
21526 rc=1
21527
21528
21529 fi
21530 rm -Rf build
21531
21532
21533 if test $rc -ne 0; then :
21534
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536 $as_echo "no" >&6; }
21537
21538 else
21539 if test "x$enable_linux_builtin" != xyes; then
21540
21541 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
21542 $LINUX_OBJ/Module*.symvers 2>/dev/null
21543 rc=$?
21544 if test $rc -ne 0; then
21545 export=0
21546 for file in lib/rwsem-spinlock.c; do
21547 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
21548 "$LINUX_OBJ/$file" 2>/dev/null
21549 rc=$?
21550 if test $rc -eq 0; then
21551 export=1
21552 break;
21553 fi
21554 done
21555 if test $export -eq 0; then :
21556 rc=1
21557 else :
21558 rc=0
21559 fi
21560 else :
21561 rc=0
21562 fi
21563
21564 fi
21565 if test $rc -ne 0; then :
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 $as_echo "no" >&6; }
21569
21570 else :
21571
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21573 $as_echo "yes" >&6; }
21574
21575 $as_echo "#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1" >>confdefs.h
21576
21577
21578 fi
21579 fi
21580
21581
21582
21583
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21585 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21586
21587
21588 cat confdefs.h - <<_ACEOF >conftest.c
21589
21590
21591 #include <linux/fs.h>
21592
21593 int
21594 main (void)
21595 {
21596
21597 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21598 struct file_operations fops __attribute__ ((unused)) = {
21599 .fallocate = fallocate,
21600 };
21601
21602 ;
21603 return 0;
21604 }
21605
21606 _ACEOF
21607
21608
21609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21610 echo "obj-m := conftest.o" >build/Makefile
21611 modpost_flag=''
21612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21613 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21615 (eval $ac_try) 2>&5
21616 ac_status=$?
21617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 test $ac_status = 0; }; }; then :
21624
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21626 $as_echo "yes" >&6; }
21627
21628 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21629
21630
21631 else
21632 $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21636 $as_echo "no" >&6; }
21637
21638
21639
21640 fi
21641 rm -Rf build
21642
21643
21644
21645
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
21647 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21648
21649
21650 cat confdefs.h - <<_ACEOF >conftest.c
21651
21652
21653 #include <linux/fs.h>
21654
21655 int
21656 main (void)
21657 {
21658
21659 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21660 struct inode_operations fops __attribute__ ((unused)) = {
21661 .fallocate = fallocate,
21662 };
21663
21664 ;
21665 return 0;
21666 }
21667
21668 _ACEOF
21669
21670
21671 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21672 echo "obj-m := conftest.o" >build/Makefile
21673 modpost_flag=''
21674 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21675 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21677 (eval $ac_try) 2>&5
21678 ac_status=$?
21679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21680 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21682 (eval $ac_try) 2>&5
21683 ac_status=$?
21684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21685 test $ac_status = 0; }; }; then :
21686
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688 $as_echo "yes" >&6; }
21689
21690 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
21691
21692
21693 else
21694 $as_echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21698 $as_echo "no" >&6; }
21699
21700
21701
21702 fi
21703 rm -Rf build
21704
21705
21706
21707
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21709 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21710
21711
21712 cat confdefs.h - <<_ACEOF >conftest.c
21713
21714
21715 #include <linux/fs.h>
21716
21717 int
21718 main (void)
21719 {
21720
21721 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21722 struct file_operations_no_const fops __attribute__ ((unused)) = {
21723 .fallocate = fallocate,
21724 };
21725
21726 ;
21727 return 0;
21728 }
21729
21730 _ACEOF
21731
21732
21733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21734 echo "obj-m := conftest.o" >build/Makefile
21735 modpost_flag=''
21736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21737 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21744 (eval $ac_try) 2>&5
21745 ac_status=$?
21746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21747 test $ac_status = 0; }; }; then :
21748
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21750 $as_echo "yes" >&6; }
21751
21752 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21753
21754
21755 else
21756 $as_echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21760 $as_echo "no" >&6; }
21761
21762
21763
21764 fi
21765 rm -Rf build
21766
21767
21768
21769
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_dcache_memory() is available" >&5
21771 $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; }
21772
21773
21774
21775 cat confdefs.h - <<_ACEOF >conftest.c
21776
21777
21778 #include <linux/dcache.h>
21779
21780 int
21781 main (void)
21782 {
21783
21784 shrink_dcache_memory(0, 0);
21785
21786 ;
21787 return 0;
21788 }
21789
21790 _ACEOF
21791
21792
21793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21794 echo "obj-m := conftest.o" >build/Makefile
21795 modpost_flag=''
21796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21797 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21802 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21804 (eval $ac_try) 2>&5
21805 ac_status=$?
21806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21807 test $ac_status = 0; }; }; then :
21808 rc=0
21809 else
21810 $as_echo "$as_me: failed program was:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21812 rc=1
21813
21814
21815 fi
21816 rm -Rf build
21817
21818
21819 if test $rc -ne 0; then :
21820
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 $as_echo "no" >&6; }
21823
21824 else
21825 if test "x$enable_linux_builtin" != xyes; then
21826
21827 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
21828 $LINUX_OBJ/Module*.symvers 2>/dev/null
21829 rc=$?
21830 if test $rc -ne 0; then
21831 export=0
21832 for file in fs/dcache.c; do
21833 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
21834 "$LINUX_OBJ/$file" 2>/dev/null
21835 rc=$?
21836 if test $rc -eq 0; then
21837 export=1
21838 break;
21839 fi
21840 done
21841 if test $export -eq 0; then :
21842 rc=1
21843 else :
21844 rc=0
21845 fi
21846 else :
21847 rc=0
21848 fi
21849
21850 fi
21851 if test $rc -ne 0; then :
21852
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21854 $as_echo "no" >&6; }
21855
21856 else :
21857
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21859 $as_echo "yes" >&6; }
21860
21861 $as_echo "#define HAVE_SHRINK_DCACHE_MEMORY 1" >>confdefs.h
21862
21863
21864 fi
21865 fi
21866
21867
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_icache_memory() is available" >&5
21869 $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; }
21870
21871
21872
21873 cat confdefs.h - <<_ACEOF >conftest.c
21874
21875
21876 #include <linux/dcache.h>
21877
21878 int
21879 main (void)
21880 {
21881
21882 shrink_icache_memory(0, 0);
21883
21884 ;
21885 return 0;
21886 }
21887
21888 _ACEOF
21889
21890
21891 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21892 echo "obj-m := conftest.o" >build/Makefile
21893 modpost_flag=''
21894 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21895 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21902 (eval $ac_try) 2>&5
21903 ac_status=$?
21904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21905 test $ac_status = 0; }; }; then :
21906 rc=0
21907 else
21908 $as_echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910 rc=1
21911
21912
21913 fi
21914 rm -Rf build
21915
21916
21917 if test $rc -ne 0; then :
21918
21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21920 $as_echo "no" >&6; }
21921
21922 else
21923 if test "x$enable_linux_builtin" != xyes; then
21924
21925 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
21926 $LINUX_OBJ/Module*.symvers 2>/dev/null
21927 rc=$?
21928 if test $rc -ne 0; then
21929 export=0
21930 for file in fs/inode.c; do
21931 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
21932 "$LINUX_OBJ/$file" 2>/dev/null
21933 rc=$?
21934 if test $rc -eq 0; then
21935 export=1
21936 break;
21937 fi
21938 done
21939 if test $export -eq 0; then :
21940 rc=1
21941 else :
21942 rc=0
21943 fi
21944 else :
21945 rc=0
21946 fi
21947
21948 fi
21949 if test $rc -ne 0; then :
21950
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21952 $as_echo "no" >&6; }
21953
21954 else :
21955
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21957 $as_echo "yes" >&6; }
21958
21959 $as_echo "#define HAVE_SHRINK_ICACHE_MEMORY 1" >>confdefs.h
21960
21961
21962 fi
21963 fi
21964
21965
21966
21967
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_parent exists in header" >&5
21969 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
21970 header=0
21971 for file in include/linux/namei.h; do
21972 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
21973 rc=$?
21974 if test $rc -eq 0; then
21975 header=1
21976 break;
21977 fi
21978 done
21979 if test $header -eq 0; then
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21981 $as_echo "no" >&6; }
21982
21983 else
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21985 $as_echo "yes" >&6; }
21986
21987 $as_echo "#define HAVE_KERN_PATH_PARENT_HEADER 1" >>confdefs.h
21988
21989 fi
21990
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kern_path_parent() is available" >&5
21993 $as_echo_n "checking whether kern_path_parent() is available... " >&6; }
21994
21995
21996
21997 cat confdefs.h - <<_ACEOF >conftest.c
21998
21999
22000 #include <linux/namei.h>
22001
22002 int
22003 main (void)
22004 {
22005
22006 kern_path_parent(NULL, NULL);
22007
22008 ;
22009 return 0;
22010 }
22011
22012 _ACEOF
22013
22014
22015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22016 echo "obj-m := conftest.o" >build/Makefile
22017 modpost_flag=''
22018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22021 (eval $ac_try) 2>&5
22022 ac_status=$?
22023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22029 test $ac_status = 0; }; }; then :
22030 rc=0
22031 else
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034 rc=1
22035
22036
22037 fi
22038 rm -Rf build
22039
22040
22041 if test $rc -ne 0; then :
22042
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22044 $as_echo "no" >&6; }
22045
22046 else
22047 if test "x$enable_linux_builtin" != xyes; then
22048
22049 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
22050 $LINUX_OBJ/Module*.symvers 2>/dev/null
22051 rc=$?
22052 if test $rc -ne 0; then
22053 export=0
22054 for file in fs/namei.c; do
22055 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
22056 "$LINUX_OBJ/$file" 2>/dev/null
22057 rc=$?
22058 if test $rc -eq 0; then
22059 export=1
22060 break;
22061 fi
22062 done
22063 if test $export -eq 0; then :
22064 rc=1
22065 else :
22066 rc=0
22067 fi
22068 else :
22069 rc=0
22070 fi
22071
22072 fi
22073 if test $rc -ne 0; then :
22074
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22076 $as_echo "no" >&6; }
22077
22078 else :
22079
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22081 $as_echo "yes" >&6; }
22082
22083 $as_echo "#define HAVE_KERN_PATH_PARENT_SYMBOL 1" >>confdefs.h
22084
22085
22086 fi
22087 fi
22088
22089
22090
22091
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_locked exists in header" >&5
22093 $as_echo_n "checking whether symbol kern_path_locked exists in header... " >&6; }
22094 header=0
22095 for file in include/linux/namei.h; do
22096 grep -q "struct dentry \*kern_path_locked(const char \*, struct path \*)" "$LINUX/$file" 2>/dev/null
22097 rc=$?
22098 if test $rc -eq 0; then
22099 header=1
22100 break;
22101 fi
22102 done
22103 if test $header -eq 0; then
22104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22105 $as_echo "no" >&6; }
22106
22107 else
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22109 $as_echo "yes" >&6; }
22110
22111 $as_echo "#define HAVE_KERN_PATH_LOCKED 1" >>confdefs.h
22112
22113 fi
22114
22115
22116
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_KALLSYMS is defined" >&5
22118 $as_echo_n "checking whether CONFIG_KALLSYMS is defined... " >&6; }
22119
22120
22121 cat confdefs.h - <<_ACEOF >conftest.c
22122
22123
22124 #if !defined(CONFIG_KALLSYMS)
22125 #error CONFIG_KALLSYMS not defined
22126 #endif
22127
22128 int
22129 main (void)
22130 {
22131
22132 ;
22133 return 0;
22134 }
22135
22136 _ACEOF
22137
22138
22139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22140 echo "obj-m := conftest.o" >build/Makefile
22141 modpost_flag=''
22142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22148 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22150 (eval $ac_try) 2>&5
22151 ac_status=$?
22152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22153 test $ac_status = 0; }; }; then :
22154
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 $as_echo "yes" >&6; }
22157
22158 else
22159 $as_echo "$as_me: failed program was:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22161
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22163 $as_echo "no" >&6; }
22164 as_fn_error $? "
22165 *** This kernel does not include the required kallsyms support.
22166 *** Rebuild the kernel with CONFIG_KALLSYMS=y set." "$LINENO" 5
22167
22168
22169
22170 fi
22171 rm -Rf build
22172
22173
22174
22175
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
22177 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
22178
22179
22180 cat confdefs.h - <<_ACEOF >conftest.c
22181
22182
22183 #if !defined(CONFIG_ZLIB_INFLATE) && \
22184 !defined(CONFIG_ZLIB_INFLATE_MODULE)
22185 #error CONFIG_ZLIB_INFLATE not defined
22186 #endif
22187
22188 int
22189 main (void)
22190 {
22191
22192 ;
22193 return 0;
22194 }
22195
22196 _ACEOF
22197
22198
22199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22200 echo "obj-m := conftest.o" >build/Makefile
22201 modpost_flag=''
22202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22203 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22208 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22213 test $ac_status = 0; }; }; then :
22214
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22216 $as_echo "yes" >&6; }
22217
22218 else
22219 $as_echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22221
22222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22223 $as_echo "no" >&6; }
22224 as_fn_error $? "
22225 *** This kernel does not include the required zlib inflate support.
22226 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
22227
22228
22229
22230 fi
22231 rm -Rf build
22232
22233
22234
22235
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
22237 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
22238
22239
22240 cat confdefs.h - <<_ACEOF >conftest.c
22241
22242
22243 #if !defined(CONFIG_ZLIB_DEFLATE) && \
22244 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
22245 #error CONFIG_ZLIB_DEFLATE not defined
22246 #endif
22247
22248 int
22249 main (void)
22250 {
22251
22252 ;
22253 return 0;
22254 }
22255
22256 _ACEOF
22257
22258
22259 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22260 echo "obj-m := conftest.o" >build/Makefile
22261 modpost_flag=''
22262 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22263 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22265 (eval $ac_try) 2>&5
22266 ac_status=$?
22267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22268 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22270 (eval $ac_try) 2>&5
22271 ac_status=$?
22272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22273 test $ac_status = 0; }; }; then :
22274
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22276 $as_echo "yes" >&6; }
22277
22278 else
22279 $as_echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22283 $as_echo "no" >&6; }
22284 as_fn_error $? "
22285 *** This kernel does not include the required zlib deflate support.
22286 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
22287
22288
22289
22290 fi
22291 rm -Rf build
22292
22293
22294
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
22296 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
22297
22298
22299 cat confdefs.h - <<_ACEOF >conftest.c
22300
22301
22302 #include <linux/zlib.h>
22303
22304 int
22305 main (void)
22306 {
22307
22308 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
22309
22310 ;
22311 return 0;
22312 }
22313
22314 _ACEOF
22315
22316
22317 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22318 echo "obj-m := conftest.o" >build/Makefile
22319 modpost_flag=''
22320 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22321 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22326 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22328 (eval $ac_try) 2>&5
22329 ac_status=$?
22330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22331 test $ac_status = 0; }; }; then :
22332
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22334 $as_echo "yes" >&6; }
22335
22336 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
22337
22338
22339 else
22340 $as_echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22344 $as_echo "no" >&6; }
22345
22346
22347
22348 fi
22349 rm -Rf build
22350
22351
22352
22353
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
22355 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
22356
22357
22358 cat confdefs.h - <<_ACEOF >conftest.c
22359
22360
22361 #include <linux/mm.h>
22362
22363 int
22364 main (void)
22365 {
22366
22367 struct shrink_control sc __attribute__ ((unused));
22368
22369 sc.nr_to_scan = 0;
22370 sc.gfp_mask = GFP_KERNEL;
22371
22372 ;
22373 return 0;
22374 }
22375
22376 _ACEOF
22377
22378
22379 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22380 echo "obj-m := conftest.o" >build/Makefile
22381 modpost_flag=''
22382 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22383 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22385 (eval $ac_try) 2>&5
22386 ac_status=$?
22387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22388 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; }; then :
22394
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22396 $as_echo "yes" >&6; }
22397
22398 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
22399
22400
22401 else
22402 $as_echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22406 $as_echo "no" >&6; }
22407
22408
22409
22410 fi
22411 rm -Rf build
22412
22413
22414
22415
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
22417 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
22418 tmp_flags="$EXTRA_KCFLAGS"
22419 EXTRA_KCFLAGS="-Werror"
22420
22421
22422 cat confdefs.h - <<_ACEOF >conftest.c
22423
22424
22425 #include <linux/rwsem.h>
22426
22427 int
22428 main (void)
22429 {
22430
22431 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
22432 raw_spinlock_t dummy_lock __attribute__ ((unused));
22433 dummy_semaphore.wait_lock = dummy_lock;
22434
22435 ;
22436 return 0;
22437 }
22438
22439 _ACEOF
22440
22441
22442 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22443 echo "obj-m := conftest.o" >build/Makefile
22444 modpost_flag=''
22445 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22446 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22453 (eval $ac_try) 2>&5
22454 ac_status=$?
22455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22456 test $ac_status = 0; }; }; then :
22457
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22459 $as_echo "yes" >&6; }
22460
22461 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
22462
22463
22464 else
22465 $as_echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22469 $as_echo "no" >&6; }
22470
22471
22472
22473 fi
22474 rm -Rf build
22475
22476
22477 EXTRA_KCFLAGS="$tmp_flags"
22478
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
22480 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
22481
22482
22483 cat confdefs.h - <<_ACEOF >conftest.c
22484
22485
22486 #include <linux/sched.h>
22487 #include <linux/sched/rt.h>
22488
22489 int
22490 main (void)
22491 {
22492
22493 return 0;
22494
22495 ;
22496 return 0;
22497 }
22498
22499 _ACEOF
22500
22501
22502 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22503 echo "obj-m := conftest.o" >build/Makefile
22504 modpost_flag=''
22505 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22506 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22508 (eval $ac_try) 2>&5
22509 ac_status=$?
22510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22511 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22513 (eval $ac_try) 2>&5
22514 ac_status=$?
22515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22516 test $ac_status = 0; }; }; then :
22517
22518
22519 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
22520
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22522 $as_echo "yes" >&6; }
22523
22524 else
22525 $as_echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22529 $as_echo "no" >&6; }
22530
22531
22532
22533 fi
22534 rm -Rf build
22535
22536
22537
22538
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
22540 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
22541
22542
22543 cat confdefs.h - <<_ACEOF >conftest.c
22544
22545
22546 #include <linux/fs.h>
22547
22548 int
22549 main (void)
22550 {
22551
22552 vfs_getattr((struct path *) NULL,
22553 (struct kstat *)NULL);
22554
22555 ;
22556 return 0;
22557 }
22558
22559 _ACEOF
22560
22561
22562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22563 echo "obj-m := conftest.o" >build/Makefile
22564 modpost_flag=''
22565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22566 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22576 test $ac_status = 0; }; }; then :
22577
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
22579 $as_echo "2 args" >&6; }
22580
22581 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
22582
22583
22584 else
22585 $as_echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588
22589
22590 cat confdefs.h - <<_ACEOF >conftest.c
22591
22592
22593 #include <linux/fs.h>
22594
22595 int
22596 main (void)
22597 {
22598
22599 vfs_getattr((struct vfsmount *)NULL,
22600 (struct dentry *)NULL,
22601 (struct kstat *)NULL);
22602
22603 ;
22604 return 0;
22605 }
22606
22607 _ACEOF
22608
22609
22610 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22611 echo "obj-m := conftest.o" >build/Makefile
22612 modpost_flag=''
22613 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22614 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22616 (eval $ac_try) 2>&5
22617 ac_status=$?
22618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22619 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22624 test $ac_status = 0; }; }; then :
22625
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
22627 $as_echo "3 args" >&6; }
22628
22629 else
22630 $as_echo "$as_me: failed program was:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 as_fn_error $? "unknown" "$LINENO" 5
22634
22635
22636
22637 fi
22638 rm -Rf build
22639
22640
22641
22642
22643
22644 fi
22645 rm -Rf build
22646
22647
22648
22649
22650 ;;
22651 srpm) ;;
22652 *)
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
22654 $as_echo "Error!" >&6; }
22655 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
22656 user kernel|user|all|srpm" "$LINENO" 5 ;;
22657 esac
22658
22659 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
22660 CONFIG_USER_TRUE=
22661 CONFIG_USER_FALSE='#'
22662 else
22663 CONFIG_USER_TRUE='#'
22664 CONFIG_USER_FALSE=
22665 fi
22666
22667 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
22668 test "x$enable_linux_builtin" != xyes ; then
22669 CONFIG_KERNEL_TRUE=
22670 CONFIG_KERNEL_FALSE='#'
22671 else
22672 CONFIG_KERNEL_TRUE='#'
22673 CONFIG_KERNEL_FALSE=
22674 fi
22675
22676
22677
22678 ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/fedora/Makefile rpm/fedora/spl.spec rpm/fedora/spl-kmod.spec rpm/fedora/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
22679
22680
22681 cat >confcache <<\_ACEOF
22682 # This file is a shell script that caches the results of configure
22683 # tests run on this system so they can be shared between configure
22684 # scripts and configure runs, see configure's option --config-cache.
22685 # It is not useful on other systems. If it contains results you don't
22686 # want to keep, you may remove or edit it.
22687 #
22688 # config.status only pays attention to the cache file if you give it
22689 # the --recheck option to rerun configure.
22690 #
22691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22693 # following values.
22694
22695 _ACEOF
22696
22697 # The following way of writing the cache mishandles newlines in values,
22698 # but we know of no workaround that is simple, portable, and efficient.
22699 # So, we kill variables containing newlines.
22700 # Ultrix sh set writes to stderr and can't be redirected directly,
22701 # and sets the high bit in the cache file unless we assign to the vars.
22702 (
22703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22704 eval ac_val=\$$ac_var
22705 case $ac_val in #(
22706 *${as_nl}*)
22707 case $ac_var in #(
22708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22710 esac
22711 case $ac_var in #(
22712 _ | IFS | as_nl) ;; #(
22713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22714 *) { eval $ac_var=; unset $ac_var;} ;;
22715 esac ;;
22716 esac
22717 done
22718
22719 (set) 2>&1 |
22720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22721 *${as_nl}ac_space=\ *)
22722 # `set' does not quote correctly, so add quotes: double-quote
22723 # substitution turns \\\\ into \\, and sed turns \\ into \.
22724 sed -n \
22725 "s/'/'\\\\''/g;
22726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22727 ;; #(
22728 *)
22729 # `set' quotes correctly as required by POSIX, so do not add quotes.
22730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22731 ;;
22732 esac |
22733 sort
22734 ) |
22735 sed '
22736 /^ac_cv_env_/b end
22737 t clear
22738 :clear
22739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22740 t end
22741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22742 :end' >>confcache
22743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22744 if test -w "$cache_file"; then
22745 test "x$cache_file" != "x/dev/null" &&
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22747 $as_echo "$as_me: updating cache $cache_file" >&6;}
22748 cat confcache >$cache_file
22749 else
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22751 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22752 fi
22753 fi
22754 rm -f confcache
22755
22756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22757 # Let make expand exec_prefix.
22758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22759
22760 DEFS=-DHAVE_CONFIG_H
22761
22762 ac_libobjs=
22763 ac_ltlibobjs=
22764 U=
22765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22766 # 1. Remove the extension, and $U if already installed.
22767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22768 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22770 # will be set to the directory where LIBOBJS objects are built.
22771 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22772 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22773 done
22774 LIBOBJS=$ac_libobjs
22775
22776 LTLIBOBJS=$ac_ltlibobjs
22777
22778
22779 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22780 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22782 fi
22783 if test -n "$EXEEXT"; then
22784 am__EXEEXT_TRUE=
22785 am__EXEEXT_FALSE='#'
22786 else
22787 am__EXEEXT_TRUE='#'
22788 am__EXEEXT_FALSE=
22789 fi
22790
22791 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22792 as_fn_error $? "conditional \"AMDEP\" was never defined.
22793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22794 fi
22795 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22796 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22798 fi
22799 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
22800 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
22801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22802 fi
22803 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
22804 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
22805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22806 fi
22807
22808 : ${CONFIG_STATUS=./config.status}
22809 ac_write_fail=0
22810 ac_clean_files_save=$ac_clean_files
22811 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22813 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22814 as_write_fail=0
22815 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22816 #! $SHELL
22817 # Generated by $as_me.
22818 # Run this file to recreate the current configuration.
22819 # Compiler output produced by configure, useful for debugging
22820 # configure, is in config.log if it exists.
22821
22822 debug=false
22823 ac_cs_recheck=false
22824 ac_cs_silent=false
22825
22826 SHELL=\${CONFIG_SHELL-$SHELL}
22827 export SHELL
22828 _ASEOF
22829 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22830 ## -------------------- ##
22831 ## M4sh Initialization. ##
22832 ## -------------------- ##
22833
22834 # Be more Bourne compatible
22835 DUALCASE=1; export DUALCASE # for MKS sh
22836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22837 emulate sh
22838 NULLCMD=:
22839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22840 # is contrary to our usage. Disable this feature.
22841 alias -g '${1+"$@"}'='"$@"'
22842 setopt NO_GLOB_SUBST
22843 else
22844 case `(set -o) 2>/dev/null` in #(
22845 *posix*) :
22846 set -o posix ;; #(
22847 *) :
22848 ;;
22849 esac
22850 fi
22851
22852
22853 as_nl='
22854 '
22855 export as_nl
22856 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22857 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22858 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22860 # Prefer a ksh shell builtin over an external printf program on Solaris,
22861 # but without wasting forks for bash or zsh.
22862 if test -z "$BASH_VERSION$ZSH_VERSION" \
22863 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22864 as_echo='print -r --'
22865 as_echo_n='print -rn --'
22866 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22867 as_echo='printf %s\n'
22868 as_echo_n='printf %s'
22869 else
22870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22872 as_echo_n='/usr/ucb/echo -n'
22873 else
22874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22875 as_echo_n_body='eval
22876 arg=$1;
22877 case $arg in #(
22878 *"$as_nl"*)
22879 expr "X$arg" : "X\\(.*\\)$as_nl";
22880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22881 esac;
22882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22883 '
22884 export as_echo_n_body
22885 as_echo_n='sh -c $as_echo_n_body as_echo'
22886 fi
22887 export as_echo_body
22888 as_echo='sh -c $as_echo_body as_echo'
22889 fi
22890
22891 # The user is always right.
22892 if test "${PATH_SEPARATOR+set}" != set; then
22893 PATH_SEPARATOR=:
22894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22896 PATH_SEPARATOR=';'
22897 }
22898 fi
22899
22900
22901 # IFS
22902 # We need space, tab and new line, in precisely that order. Quoting is
22903 # there to prevent editors from complaining about space-tab.
22904 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22905 # splitting by setting IFS to empty value.)
22906 IFS=" "" $as_nl"
22907
22908 # Find who we are. Look in the path if we contain no directory separator.
22909 case $0 in #((
22910 *[\\/]* ) as_myself=$0 ;;
22911 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22912 for as_dir in $PATH
22913 do
22914 IFS=$as_save_IFS
22915 test -z "$as_dir" && as_dir=.
22916 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22917 done
22918 IFS=$as_save_IFS
22919
22920 ;;
22921 esac
22922 # We did not find ourselves, most probably we were run as `sh COMMAND'
22923 # in which case we are not to be found in the path.
22924 if test "x$as_myself" = x; then
22925 as_myself=$0
22926 fi
22927 if test ! -f "$as_myself"; then
22928 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22929 exit 1
22930 fi
22931
22932 # Unset variables that we do not need and which cause bugs (e.g. in
22933 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22934 # suppresses any "Segmentation fault" message there. '((' could
22935 # trigger a bug in pdksh 5.2.14.
22936 for as_var in BASH_ENV ENV MAIL MAILPATH
22937 do eval test x\${$as_var+set} = xset \
22938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22939 done
22940 PS1='$ '
22941 PS2='> '
22942 PS4='+ '
22943
22944 # NLS nuisances.
22945 LC_ALL=C
22946 export LC_ALL
22947 LANGUAGE=C
22948 export LANGUAGE
22949
22950 # CDPATH.
22951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22952
22953
22954 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22955 # ----------------------------------------
22956 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22957 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22958 # script with STATUS, using 1 if that was 0.
22959 as_fn_error ()
22960 {
22961 as_status=$1; test $as_status -eq 0 && as_status=1
22962 if test "$4"; then
22963 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22964 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22965 fi
22966 $as_echo "$as_me: error: $2" >&2
22967 as_fn_exit $as_status
22968 } # as_fn_error
22969
22970
22971 # as_fn_set_status STATUS
22972 # -----------------------
22973 # Set $? to STATUS, without forking.
22974 as_fn_set_status ()
22975 {
22976 return $1
22977 } # as_fn_set_status
22978
22979 # as_fn_exit STATUS
22980 # -----------------
22981 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22982 as_fn_exit ()
22983 {
22984 set +e
22985 as_fn_set_status $1
22986 exit $1
22987 } # as_fn_exit
22988
22989 # as_fn_unset VAR
22990 # ---------------
22991 # Portably unset VAR.
22992 as_fn_unset ()
22993 {
22994 { eval $1=; unset $1;}
22995 }
22996 as_unset=as_fn_unset
22997 # as_fn_append VAR VALUE
22998 # ----------------------
22999 # Append the text in VALUE to the end of the definition contained in VAR. Take
23000 # advantage of any shell optimizations that allow amortized linear growth over
23001 # repeated appends, instead of the typical quadratic growth present in naive
23002 # implementations.
23003 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23004 eval 'as_fn_append ()
23005 {
23006 eval $1+=\$2
23007 }'
23008 else
23009 as_fn_append ()
23010 {
23011 eval $1=\$$1\$2
23012 }
23013 fi # as_fn_append
23014
23015 # as_fn_arith ARG...
23016 # ------------------
23017 # Perform arithmetic evaluation on the ARGs, and store the result in the
23018 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23019 # must be portable across $(()) and expr.
23020 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23021 eval 'as_fn_arith ()
23022 {
23023 as_val=$(( $* ))
23024 }'
23025 else
23026 as_fn_arith ()
23027 {
23028 as_val=`expr "$@" || test $? -eq 1`
23029 }
23030 fi # as_fn_arith
23031
23032
23033 if expr a : '\(a\)' >/dev/null 2>&1 &&
23034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23035 as_expr=expr
23036 else
23037 as_expr=false
23038 fi
23039
23040 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23041 as_basename=basename
23042 else
23043 as_basename=false
23044 fi
23045
23046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23047 as_dirname=dirname
23048 else
23049 as_dirname=false
23050 fi
23051
23052 as_me=`$as_basename -- "$0" ||
23053 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23054 X"$0" : 'X\(//\)$' \| \
23055 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23056 $as_echo X/"$0" |
23057 sed '/^.*\/\([^/][^/]*\)\/*$/{
23058 s//\1/
23059 q
23060 }
23061 /^X\/\(\/\/\)$/{
23062 s//\1/
23063 q
23064 }
23065 /^X\/\(\/\).*/{
23066 s//\1/
23067 q
23068 }
23069 s/.*/./; q'`
23070
23071 # Avoid depending upon Character Ranges.
23072 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23073 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23074 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23075 as_cr_digits='0123456789'
23076 as_cr_alnum=$as_cr_Letters$as_cr_digits
23077
23078 ECHO_C= ECHO_N= ECHO_T=
23079 case `echo -n x` in #(((((
23080 -n*)
23081 case `echo 'xy\c'` in
23082 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23083 xy) ECHO_C='\c';;
23084 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23085 ECHO_T=' ';;
23086 esac;;
23087 *)
23088 ECHO_N='-n';;
23089 esac
23090
23091 rm -f conf$$ conf$$.exe conf$$.file
23092 if test -d conf$$.dir; then
23093 rm -f conf$$.dir/conf$$.file
23094 else
23095 rm -f conf$$.dir
23096 mkdir conf$$.dir 2>/dev/null
23097 fi
23098 if (echo >conf$$.file) 2>/dev/null; then
23099 if ln -s conf$$.file conf$$ 2>/dev/null; then
23100 as_ln_s='ln -s'
23101 # ... but there are two gotchas:
23102 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23103 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23104 # In both cases, we have to default to `cp -p'.
23105 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23106 as_ln_s='cp -p'
23107 elif ln conf$$.file conf$$ 2>/dev/null; then
23108 as_ln_s=ln
23109 else
23110 as_ln_s='cp -p'
23111 fi
23112 else
23113 as_ln_s='cp -p'
23114 fi
23115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23116 rmdir conf$$.dir 2>/dev/null
23117
23118
23119 # as_fn_mkdir_p
23120 # -------------
23121 # Create "$as_dir" as a directory, including parents if necessary.
23122 as_fn_mkdir_p ()
23123 {
23124
23125 case $as_dir in #(
23126 -*) as_dir=./$as_dir;;
23127 esac
23128 test -d "$as_dir" || eval $as_mkdir_p || {
23129 as_dirs=
23130 while :; do
23131 case $as_dir in #(
23132 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23133 *) as_qdir=$as_dir;;
23134 esac
23135 as_dirs="'$as_qdir' $as_dirs"
23136 as_dir=`$as_dirname -- "$as_dir" ||
23137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23138 X"$as_dir" : 'X\(//\)[^/]' \| \
23139 X"$as_dir" : 'X\(//\)$' \| \
23140 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23141 $as_echo X"$as_dir" |
23142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23143 s//\1/
23144 q
23145 }
23146 /^X\(\/\/\)[^/].*/{
23147 s//\1/
23148 q
23149 }
23150 /^X\(\/\/\)$/{
23151 s//\1/
23152 q
23153 }
23154 /^X\(\/\).*/{
23155 s//\1/
23156 q
23157 }
23158 s/.*/./; q'`
23159 test -d "$as_dir" && break
23160 done
23161 test -z "$as_dirs" || eval "mkdir $as_dirs"
23162 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23163
23164
23165 } # as_fn_mkdir_p
23166 if mkdir -p . 2>/dev/null; then
23167 as_mkdir_p='mkdir -p "$as_dir"'
23168 else
23169 test -d ./-p && rmdir ./-p
23170 as_mkdir_p=false
23171 fi
23172
23173 if test -x / >/dev/null 2>&1; then
23174 as_test_x='test -x'
23175 else
23176 if ls -dL / >/dev/null 2>&1; then
23177 as_ls_L_option=L
23178 else
23179 as_ls_L_option=
23180 fi
23181 as_test_x='
23182 eval sh -c '\''
23183 if test -d "$1"; then
23184 test -d "$1/.";
23185 else
23186 case $1 in #(
23187 -*)set "./$1";;
23188 esac;
23189 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23190 ???[sx]*):;;*)false;;esac;fi
23191 '\'' sh
23192 '
23193 fi
23194 as_executable_p=$as_test_x
23195
23196 # Sed expression to map a string onto a valid CPP name.
23197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23198
23199 # Sed expression to map a string onto a valid variable name.
23200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23201
23202
23203 exec 6>&1
23204 ## ----------------------------------- ##
23205 ## Main body of $CONFIG_STATUS script. ##
23206 ## ----------------------------------- ##
23207 _ASEOF
23208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23209
23210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23211 # Save the log message, to keep $0 and so on meaningful, and to
23212 # report actual input values of CONFIG_FILES etc. instead of their
23213 # values after options handling.
23214 ac_log="
23215 This file was extended by $as_me, which was
23216 generated by GNU Autoconf 2.67. Invocation command line was
23217
23218 CONFIG_FILES = $CONFIG_FILES
23219 CONFIG_HEADERS = $CONFIG_HEADERS
23220 CONFIG_LINKS = $CONFIG_LINKS
23221 CONFIG_COMMANDS = $CONFIG_COMMANDS
23222 $ $0 $@
23223
23224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23225 "
23226
23227 _ACEOF
23228
23229 case $ac_config_files in *"
23230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23231 esac
23232
23233 case $ac_config_headers in *"
23234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23235 esac
23236
23237
23238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23239 # Files that config.status was made for.
23240 config_files="$ac_config_files"
23241 config_headers="$ac_config_headers"
23242 config_commands="$ac_config_commands"
23243
23244 _ACEOF
23245
23246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23247 ac_cs_usage="\
23248 \`$as_me' instantiates files and other configuration actions
23249 from templates according to the current configuration. Unless the files
23250 and actions are specified as TAGs, all are instantiated by default.
23251
23252 Usage: $0 [OPTION]... [TAG]...
23253
23254 -h, --help print this help, then exit
23255 -V, --version print version number and configuration settings, then exit
23256 --config print configuration, then exit
23257 -q, --quiet, --silent
23258 do not print progress messages
23259 -d, --debug don't remove temporary files
23260 --recheck update $as_me by reconfiguring in the same conditions
23261 --file=FILE[:TEMPLATE]
23262 instantiate the configuration file FILE
23263 --header=FILE[:TEMPLATE]
23264 instantiate the configuration header FILE
23265
23266 Configuration files:
23267 $config_files
23268
23269 Configuration headers:
23270 $config_headers
23271
23272 Configuration commands:
23273 $config_commands
23274
23275 Report bugs to the package provider."
23276
23277 _ACEOF
23278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23279 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23280 ac_cs_version="\\
23281 config.status
23282 configured by $0, generated by GNU Autoconf 2.67,
23283 with options \\"\$ac_cs_config\\"
23284
23285 Copyright (C) 2010 Free Software Foundation, Inc.
23286 This config.status script is free software; the Free Software Foundation
23287 gives unlimited permission to copy, distribute and modify it."
23288
23289 ac_pwd='$ac_pwd'
23290 srcdir='$srcdir'
23291 INSTALL='$INSTALL'
23292 MKDIR_P='$MKDIR_P'
23293 AWK='$AWK'
23294 test -n "\$AWK" || AWK=awk
23295 _ACEOF
23296
23297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23298 # The default lists apply if the user does not specify any file.
23299 ac_need_defaults=:
23300 while test $# != 0
23301 do
23302 case $1 in
23303 --*=?*)
23304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23306 ac_shift=:
23307 ;;
23308 --*=)
23309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23310 ac_optarg=
23311 ac_shift=:
23312 ;;
23313 *)
23314 ac_option=$1
23315 ac_optarg=$2
23316 ac_shift=shift
23317 ;;
23318 esac
23319
23320 case $ac_option in
23321 # Handling of the options.
23322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23323 ac_cs_recheck=: ;;
23324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23325 $as_echo "$ac_cs_version"; exit ;;
23326 --config | --confi | --conf | --con | --co | --c )
23327 $as_echo "$ac_cs_config"; exit ;;
23328 --debug | --debu | --deb | --de | --d | -d )
23329 debug=: ;;
23330 --file | --fil | --fi | --f )
23331 $ac_shift
23332 case $ac_optarg in
23333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23334 '') as_fn_error $? "missing file argument" ;;
23335 esac
23336 as_fn_append CONFIG_FILES " '$ac_optarg'"
23337 ac_need_defaults=false;;
23338 --header | --heade | --head | --hea )
23339 $ac_shift
23340 case $ac_optarg in
23341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23342 esac
23343 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23344 ac_need_defaults=false;;
23345 --he | --h)
23346 # Conflict between --help and --header
23347 as_fn_error $? "ambiguous option: \`$1'
23348 Try \`$0 --help' for more information.";;
23349 --help | --hel | -h )
23350 $as_echo "$ac_cs_usage"; exit ;;
23351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23353 ac_cs_silent=: ;;
23354
23355 # This is an error.
23356 -*) as_fn_error $? "unrecognized option: \`$1'
23357 Try \`$0 --help' for more information." ;;
23358
23359 *) as_fn_append ac_config_targets " $1"
23360 ac_need_defaults=false ;;
23361
23362 esac
23363 shift
23364 done
23365
23366 ac_configure_extra_args=
23367
23368 if $ac_cs_silent; then
23369 exec 6>/dev/null
23370 ac_configure_extra_args="$ac_configure_extra_args --silent"
23371 fi
23372
23373 _ACEOF
23374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23375 if \$ac_cs_recheck; then
23376 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23377 shift
23378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23379 CONFIG_SHELL='$SHELL'
23380 export CONFIG_SHELL
23381 exec "\$@"
23382 fi
23383
23384 _ACEOF
23385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23386 exec 5>>config.log
23387 {
23388 echo
23389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23390 ## Running $as_me. ##
23391 _ASBOX
23392 $as_echo "$ac_log"
23393 } >&5
23394
23395 _ACEOF
23396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23397 #
23398 # INIT-COMMANDS
23399 #
23400 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23401
23402
23403 # The HP-UX ksh and POSIX shell print the target directory to stdout
23404 # if CDPATH is set.
23405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23406
23407 sed_quote_subst='$sed_quote_subst'
23408 double_quote_subst='$double_quote_subst'
23409 delay_variable_subst='$delay_variable_subst'
23410 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23411 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23412 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23413 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23414 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23415 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23416 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23417 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23418 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23419 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23420 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23421 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23422 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23423 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23424 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23425 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23426 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23427 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23428 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23429 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23430 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23431 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23432 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23433 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23434 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23435 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23436 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23437 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23438 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23439 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23440 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23441 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23442 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23443 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23444 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23445 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23446 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23447 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23448 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23449 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23450 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23451 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23452 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23453 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23454 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23456 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23457 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23458 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23459 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23460 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23461 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23462 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23463 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23464 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23465 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23466 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23467 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23468 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23469 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23470 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23471 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23472 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23473 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23474 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23475 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23476 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23477 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23478 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23479 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23480 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23481 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23482 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23483 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23484 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23485 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23486 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23487 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23488 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23489 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23490 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23491 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23492 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23493 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23494 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23495 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23496 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23497 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23498 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23499 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23500 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23501 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23502 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23503 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23504 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23505 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23506 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23507 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23508 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23509 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23510 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23511 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23512 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23513 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23514 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23515 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23516 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23517 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23518 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23519 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23520 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23521 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23522 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23523 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23524 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23525 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23526 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23527 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23528
23529 LTCC='$LTCC'
23530 LTCFLAGS='$LTCFLAGS'
23531 compiler='$compiler_DEFAULT'
23532
23533 # Quote evaled strings.
23534 for var in SED \
23535 GREP \
23536 EGREP \
23537 FGREP \
23538 LD \
23539 NM \
23540 LN_S \
23541 lt_SP2NL \
23542 lt_NL2SP \
23543 reload_flag \
23544 OBJDUMP \
23545 deplibs_check_method \
23546 file_magic_cmd \
23547 AR \
23548 AR_FLAGS \
23549 STRIP \
23550 RANLIB \
23551 CC \
23552 CFLAGS \
23553 compiler \
23554 lt_cv_sys_global_symbol_pipe \
23555 lt_cv_sys_global_symbol_to_cdecl \
23556 lt_cv_sys_global_symbol_to_c_name_address \
23557 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23558 SHELL \
23559 ECHO \
23560 lt_prog_compiler_no_builtin_flag \
23561 lt_prog_compiler_wl \
23562 lt_prog_compiler_pic \
23563 lt_prog_compiler_static \
23564 lt_cv_prog_compiler_c_o \
23565 need_locks \
23566 DSYMUTIL \
23567 NMEDIT \
23568 LIPO \
23569 OTOOL \
23570 OTOOL64 \
23571 shrext_cmds \
23572 export_dynamic_flag_spec \
23573 whole_archive_flag_spec \
23574 compiler_needs_object \
23575 with_gnu_ld \
23576 allow_undefined_flag \
23577 no_undefined_flag \
23578 hardcode_libdir_flag_spec \
23579 hardcode_libdir_flag_spec_ld \
23580 hardcode_libdir_separator \
23581 fix_srcfile_path \
23582 exclude_expsyms \
23583 include_expsyms \
23584 file_list_spec \
23585 variables_saved_for_relink \
23586 libname_spec \
23587 library_names_spec \
23588 soname_spec \
23589 finish_eval \
23590 old_striplib \
23591 striplib; do
23592 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23593 *[\\\\\\\`\\"\\\$]*)
23594 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23595 ;;
23596 *)
23597 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23598 ;;
23599 esac
23600 done
23601
23602 # Double-quote double-evaled strings.
23603 for var in reload_cmds \
23604 old_postinstall_cmds \
23605 old_postuninstall_cmds \
23606 old_archive_cmds \
23607 extract_expsyms_cmds \
23608 old_archive_from_new_cmds \
23609 old_archive_from_expsyms_cmds \
23610 archive_cmds \
23611 archive_expsym_cmds \
23612 module_cmds \
23613 module_expsym_cmds \
23614 export_symbols_cmds \
23615 prelink_cmds \
23616 postinstall_cmds \
23617 postuninstall_cmds \
23618 finish_cmds \
23619 sys_lib_search_path_spec \
23620 sys_lib_dlsearch_path_spec; do
23621 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23622 *[\\\\\\\`\\"\\\$]*)
23623 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23624 ;;
23625 *)
23626 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23627 ;;
23628 esac
23629 done
23630
23631 # Fix-up fallback echo if it was mangled by the above quoting rules.
23632 case \$lt_ECHO in
23633 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23634 ;;
23635 esac
23636
23637 ac_aux_dir='$ac_aux_dir'
23638 xsi_shell='$xsi_shell'
23639 lt_shell_append='$lt_shell_append'
23640
23641 # See if we are running on zsh, and set the options which allow our
23642 # commands through without removal of \ escapes INIT.
23643 if test -n "\${ZSH_VERSION+set}" ; then
23644 setopt NO_GLOB_SUBST
23645 fi
23646
23647
23648 PACKAGE='$PACKAGE'
23649 VERSION='$VERSION'
23650 TIMESTAMP='$TIMESTAMP'
23651 RM='$RM'
23652 ofile='$ofile'
23653
23654
23655
23656
23657 _ACEOF
23658
23659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23660
23661 # Handling of arguments.
23662 for ac_config_target in $ac_config_targets
23663 do
23664 case $ac_config_target in
23665 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
23666 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23667 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23669 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23670 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
23671 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23672 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
23673 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
23674 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
23675 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
23676 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23677 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
23678 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
23679 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
23680 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
23681 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
23682 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
23683 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
23684 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
23685 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
23686 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
23687 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23688 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
23689 "rpm/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/fedora/Makefile" ;;
23690 "rpm/fedora/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl.spec" ;;
23691 "rpm/fedora/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl-kmod.spec" ;;
23692 "rpm/fedora/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl-dkms.spec" ;;
23693 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
23694 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
23695 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
23696 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
23697 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
23698
23699 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23700 esac
23701 done
23702
23703
23704 # If the user did not use the arguments to specify the items to instantiate,
23705 # then the envvar interface is used. Set only those that are not.
23706 # We use the long form for the default assignment because of an extremely
23707 # bizarre bug on SunOS 4.1.3.
23708 if $ac_need_defaults; then
23709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23712 fi
23713
23714 # Have a temporary directory for convenience. Make it in the build tree
23715 # simply because there is no reason against having it here, and in addition,
23716 # creating and moving files from /tmp can sometimes cause problems.
23717 # Hook for its removal unless debugging.
23718 # Note that there is a small window in which the directory will not be cleaned:
23719 # after its creation but before its name has been assigned to `$tmp'.
23720 $debug ||
23721 {
23722 tmp=
23723 trap 'exit_status=$?
23724 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23725 ' 0
23726 trap 'as_fn_exit 1' 1 2 13 15
23727 }
23728 # Create a (secure) tmp directory for tmp files.
23729
23730 {
23731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23732 test -n "$tmp" && test -d "$tmp"
23733 } ||
23734 {
23735 tmp=./conf$$-$RANDOM
23736 (umask 077 && mkdir "$tmp")
23737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23738
23739 # Set up the scripts for CONFIG_FILES section.
23740 # No need to generate them if there are no CONFIG_FILES.
23741 # This happens for instance with `./config.status config.h'.
23742 if test -n "$CONFIG_FILES"; then
23743
23744
23745 ac_cr=`echo X | tr X '\015'`
23746 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23747 # But we know of no other shell where ac_cr would be empty at this
23748 # point, so we can use a bashism as a fallback.
23749 if test "x$ac_cr" = x; then
23750 eval ac_cr=\$\'\\r\'
23751 fi
23752 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23754 ac_cs_awk_cr='\\r'
23755 else
23756 ac_cs_awk_cr=$ac_cr
23757 fi
23758
23759 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23760 _ACEOF
23761
23762
23763 {
23764 echo "cat >conf$$subs.awk <<_ACEOF" &&
23765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23766 echo "_ACEOF"
23767 } >conf$$subs.sh ||
23768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23770 ac_delim='%!_!# '
23771 for ac_last_try in false false false false false :; do
23772 . ./conf$$subs.sh ||
23773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23774
23775 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23776 if test $ac_delim_n = $ac_delim_num; then
23777 break
23778 elif $ac_last_try; then
23779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23780 else
23781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23782 fi
23783 done
23784 rm -f conf$$subs.sh
23785
23786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23787 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23788 _ACEOF
23789 sed -n '
23790 h
23791 s/^/S["/; s/!.*/"]=/
23792 p
23793 g
23794 s/^[^!]*!//
23795 :repl
23796 t repl
23797 s/'"$ac_delim"'$//
23798 t delim
23799 :nl
23800 h
23801 s/\(.\{148\}\)..*/\1/
23802 t more1
23803 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23804 p
23805 n
23806 b repl
23807 :more1
23808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23809 p
23810 g
23811 s/.\{148\}//
23812 t nl
23813 :delim
23814 h
23815 s/\(.\{148\}\)..*/\1/
23816 t more2
23817 s/["\\]/\\&/g; s/^/"/; s/$/"/
23818 p
23819 b
23820 :more2
23821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23822 p
23823 g
23824 s/.\{148\}//
23825 t delim
23826 ' <conf$$subs.awk | sed '
23827 /^[^""]/{
23828 N
23829 s/\n//
23830 }
23831 ' >>$CONFIG_STATUS || ac_write_fail=1
23832 rm -f conf$$subs.awk
23833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23834 _ACAWK
23835 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23836 for (key in S) S_is_set[key] = 1
23837 FS = "\a"
23838
23839 }
23840 {
23841 line = $ 0
23842 nfields = split(line, field, "@")
23843 substed = 0
23844 len = length(field[1])
23845 for (i = 2; i < nfields; i++) {
23846 key = field[i]
23847 keylen = length(key)
23848 if (S_is_set[key]) {
23849 value = S[key]
23850 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23851 len += length(value) + length(field[++i])
23852 substed = 1
23853 } else
23854 len += 1 + keylen
23855 }
23856
23857 print line
23858 }
23859
23860 _ACAWK
23861 _ACEOF
23862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23863 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23864 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23865 else
23866 cat
23867 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23868 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23869 _ACEOF
23870
23871 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23872 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23873 # trailing colons and then remove the whole line if VPATH becomes empty
23874 # (actually we leave an empty line to preserve line numbers).
23875 if test "x$srcdir" = x.; then
23876 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23877 h
23878 s///
23879 s/^/:/
23880 s/[ ]*$/:/
23881 s/:\$(srcdir):/:/g
23882 s/:\${srcdir}:/:/g
23883 s/:@srcdir@:/:/g
23884 s/^:*//
23885 s/:*$//
23886 x
23887 s/\(=[ ]*\).*/\1/
23888 G
23889 s/\n//
23890 s/^[^=]*=[ ]*$//
23891 }'
23892 fi
23893
23894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23895 fi # test -n "$CONFIG_FILES"
23896
23897 # Set up the scripts for CONFIG_HEADERS section.
23898 # No need to generate them if there are no CONFIG_HEADERS.
23899 # This happens for instance with `./config.status Makefile'.
23900 if test -n "$CONFIG_HEADERS"; then
23901 cat >"$tmp/defines.awk" <<\_ACAWK ||
23902 BEGIN {
23903 _ACEOF
23904
23905 # Transform confdefs.h into an awk script `defines.awk', embedded as
23906 # here-document in config.status, that substitutes the proper values into
23907 # config.h.in to produce config.h.
23908
23909 # Create a delimiter string that does not exist in confdefs.h, to ease
23910 # handling of long lines.
23911 ac_delim='%!_!# '
23912 for ac_last_try in false false :; do
23913 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23914 if test -z "$ac_t"; then
23915 break
23916 elif $ac_last_try; then
23917 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23918 else
23919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23920 fi
23921 done
23922
23923 # For the awk script, D is an array of macro values keyed by name,
23924 # likewise P contains macro parameters if any. Preserve backslash
23925 # newline sequences.
23926
23927 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23928 sed -n '
23929 s/.\{148\}/&'"$ac_delim"'/g
23930 t rset
23931 :rset
23932 s/^[ ]*#[ ]*define[ ][ ]*/ /
23933 t def
23934 d
23935 :def
23936 s/\\$//
23937 t bsnl
23938 s/["\\]/\\&/g
23939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23940 D["\1"]=" \3"/p
23941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23942 d
23943 :bsnl
23944 s/["\\]/\\&/g
23945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23946 D["\1"]=" \3\\\\\\n"\\/p
23947 t cont
23948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23949 t cont
23950 d
23951 :cont
23952 n
23953 s/.\{148\}/&'"$ac_delim"'/g
23954 t clear
23955 :clear
23956 s/\\$//
23957 t bsnlc
23958 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23959 d
23960 :bsnlc
23961 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23962 b cont
23963 ' <confdefs.h | sed '
23964 s/'"$ac_delim"'/"\\\
23965 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23966
23967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23968 for (key in D) D_is_set[key] = 1
23969 FS = "\a"
23970 }
23971 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23972 line = \$ 0
23973 split(line, arg, " ")
23974 if (arg[1] == "#") {
23975 defundef = arg[2]
23976 mac1 = arg[3]
23977 } else {
23978 defundef = substr(arg[1], 2)
23979 mac1 = arg[2]
23980 }
23981 split(mac1, mac2, "(") #)
23982 macro = mac2[1]
23983 prefix = substr(line, 1, index(line, defundef) - 1)
23984 if (D_is_set[macro]) {
23985 # Preserve the white space surrounding the "#".
23986 print prefix "define", macro P[macro] D[macro]
23987 next
23988 } else {
23989 # Replace #undef with comments. This is necessary, for example,
23990 # in the case of _POSIX_SOURCE, which is predefined and required
23991 # on some systems where configure will not decide to define it.
23992 if (defundef == "undef") {
23993 print "/*", prefix defundef, macro, "*/"
23994 next
23995 }
23996 }
23997 }
23998 { print }
23999 _ACAWK
24000 _ACEOF
24001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24002 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24003 fi # test -n "$CONFIG_HEADERS"
24004
24005
24006 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24007 shift
24008 for ac_tag
24009 do
24010 case $ac_tag in
24011 :[FHLC]) ac_mode=$ac_tag; continue;;
24012 esac
24013 case $ac_mode$ac_tag in
24014 :[FHL]*:*);;
24015 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
24016 :[FH]-) ac_tag=-:-;;
24017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24018 esac
24019 ac_save_IFS=$IFS
24020 IFS=:
24021 set x $ac_tag
24022 IFS=$ac_save_IFS
24023 shift
24024 ac_file=$1
24025 shift
24026
24027 case $ac_mode in
24028 :L) ac_source=$1;;
24029 :[FH])
24030 ac_file_inputs=
24031 for ac_f
24032 do
24033 case $ac_f in
24034 -) ac_f="$tmp/stdin";;
24035 *) # Look for the file first in the build tree, then in the source tree
24036 # (if the path is not absolute). The absolute path cannot be DOS-style,
24037 # because $ac_f cannot contain `:'.
24038 test -f "$ac_f" ||
24039 case $ac_f in
24040 [\\/$]*) false;;
24041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24042 esac ||
24043 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
24044 esac
24045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24046 as_fn_append ac_file_inputs " '$ac_f'"
24047 done
24048
24049 # Let's still pretend it is `configure' which instantiates (i.e., don't
24050 # use $as_me), people would be surprised to read:
24051 # /* config.h. Generated by config.status. */
24052 configure_input='Generated from '`
24053 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24054 `' by configure.'
24055 if test x"$ac_file" != x-; then
24056 configure_input="$ac_file. $configure_input"
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24058 $as_echo "$as_me: creating $ac_file" >&6;}
24059 fi
24060 # Neutralize special characters interpreted by sed in replacement strings.
24061 case $configure_input in #(
24062 *\&* | *\|* | *\\* )
24063 ac_sed_conf_input=`$as_echo "$configure_input" |
24064 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24065 *) ac_sed_conf_input=$configure_input;;
24066 esac
24067
24068 case $ac_tag in
24069 *:-:* | *:-) cat >"$tmp/stdin" \
24070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24071 esac
24072 ;;
24073 esac
24074
24075 ac_dir=`$as_dirname -- "$ac_file" ||
24076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24077 X"$ac_file" : 'X\(//\)[^/]' \| \
24078 X"$ac_file" : 'X\(//\)$' \| \
24079 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24080 $as_echo X"$ac_file" |
24081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24082 s//\1/
24083 q
24084 }
24085 /^X\(\/\/\)[^/].*/{
24086 s//\1/
24087 q
24088 }
24089 /^X\(\/\/\)$/{
24090 s//\1/
24091 q
24092 }
24093 /^X\(\/\).*/{
24094 s//\1/
24095 q
24096 }
24097 s/.*/./; q'`
24098 as_dir="$ac_dir"; as_fn_mkdir_p
24099 ac_builddir=.
24100
24101 case "$ac_dir" in
24102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24103 *)
24104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24105 # A ".." for each directory in $ac_dir_suffix.
24106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24107 case $ac_top_builddir_sub in
24108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24110 esac ;;
24111 esac
24112 ac_abs_top_builddir=$ac_pwd
24113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24114 # for backward compatibility:
24115 ac_top_builddir=$ac_top_build_prefix
24116
24117 case $srcdir in
24118 .) # We are building in place.
24119 ac_srcdir=.
24120 ac_top_srcdir=$ac_top_builddir_sub
24121 ac_abs_top_srcdir=$ac_pwd ;;
24122 [\\/]* | ?:[\\/]* ) # Absolute name.
24123 ac_srcdir=$srcdir$ac_dir_suffix;
24124 ac_top_srcdir=$srcdir
24125 ac_abs_top_srcdir=$srcdir ;;
24126 *) # Relative name.
24127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24128 ac_top_srcdir=$ac_top_build_prefix$srcdir
24129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24130 esac
24131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24132
24133
24134 case $ac_mode in
24135 :F)
24136 #
24137 # CONFIG_FILE
24138 #
24139
24140 case $INSTALL in
24141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24143 esac
24144 ac_MKDIR_P=$MKDIR_P
24145 case $MKDIR_P in
24146 [\\/$]* | ?:[\\/]* ) ;;
24147 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24148 esac
24149 _ACEOF
24150
24151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24152 # If the template does not know about datarootdir, expand it.
24153 # FIXME: This hack should be removed a few years after 2.60.
24154 ac_datarootdir_hack=; ac_datarootdir_seen=
24155 ac_sed_dataroot='
24156 /datarootdir/ {
24157 p
24158 q
24159 }
24160 /@datadir@/p
24161 /@docdir@/p
24162 /@infodir@/p
24163 /@localedir@/p
24164 /@mandir@/p'
24165 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24166 *datarootdir*) ac_datarootdir_seen=yes;;
24167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24169 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24170 _ACEOF
24171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24172 ac_datarootdir_hack='
24173 s&@datadir@&$datadir&g
24174 s&@docdir@&$docdir&g
24175 s&@infodir@&$infodir&g
24176 s&@localedir@&$localedir&g
24177 s&@mandir@&$mandir&g
24178 s&\\\${datarootdir}&$datarootdir&g' ;;
24179 esac
24180 _ACEOF
24181
24182 # Neutralize VPATH when `$srcdir' = `.'.
24183 # Shell code in configure.ac might set extrasub.
24184 # FIXME: do we really want to maintain this feature?
24185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24186 ac_sed_extra="$ac_vpsub
24187 $extrasub
24188 _ACEOF
24189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24190 :t
24191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24192 s|@configure_input@|$ac_sed_conf_input|;t t
24193 s&@top_builddir@&$ac_top_builddir_sub&;t t
24194 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24195 s&@srcdir@&$ac_srcdir&;t t
24196 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24197 s&@top_srcdir@&$ac_top_srcdir&;t t
24198 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24199 s&@builddir@&$ac_builddir&;t t
24200 s&@abs_builddir@&$ac_abs_builddir&;t t
24201 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24202 s&@INSTALL@&$ac_INSTALL&;t t
24203 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24204 $ac_datarootdir_hack
24205 "
24206 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24208
24209 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24210 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24211 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24213 which seems to be undefined. Please make sure it is defined" >&5
24214 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24215 which seems to be undefined. Please make sure it is defined" >&2;}
24216
24217 rm -f "$tmp/stdin"
24218 case $ac_file in
24219 -) cat "$tmp/out" && rm -f "$tmp/out";;
24220 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24221 esac \
24222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24223 ;;
24224 :H)
24225 #
24226 # CONFIG_HEADER
24227 #
24228 if test x"$ac_file" != x-; then
24229 {
24230 $as_echo "/* $configure_input */" \
24231 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24232 } >"$tmp/config.h" \
24233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24234 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24236 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24237 else
24238 rm -f "$ac_file"
24239 mv "$tmp/config.h" "$ac_file" \
24240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24241 fi
24242 else
24243 $as_echo "/* $configure_input */" \
24244 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24245 || as_fn_error $? "could not create -" "$LINENO" 5
24246 fi
24247 # Compute "$ac_file"'s index in $config_headers.
24248 _am_arg="$ac_file"
24249 _am_stamp_count=1
24250 for _am_header in $config_headers :; do
24251 case $_am_header in
24252 $_am_arg | $_am_arg:* )
24253 break ;;
24254 * )
24255 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24256 esac
24257 done
24258 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24259 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24260 X"$_am_arg" : 'X\(//\)[^/]' \| \
24261 X"$_am_arg" : 'X\(//\)$' \| \
24262 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24263 $as_echo X"$_am_arg" |
24264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24265 s//\1/
24266 q
24267 }
24268 /^X\(\/\/\)[^/].*/{
24269 s//\1/
24270 q
24271 }
24272 /^X\(\/\/\)$/{
24273 s//\1/
24274 q
24275 }
24276 /^X\(\/\).*/{
24277 s//\1/
24278 q
24279 }
24280 s/.*/./; q'`/stamp-h$_am_stamp_count
24281 ;;
24282
24283 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24284 $as_echo "$as_me: executing $ac_file commands" >&6;}
24285 ;;
24286 esac
24287
24288
24289 case $ac_file$ac_mode in
24290 "spl_config.h":H)
24291 (mv spl_config.h spl_config.h.tmp &&
24292 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
24293 rm spl_config.h.tmp) || exit 1 ;;
24294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24295 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24296 # are listed without --file. Let's play safe and only enable the eval
24297 # if we detect the quoting.
24298 case $CONFIG_FILES in
24299 *\'*) eval set x "$CONFIG_FILES" ;;
24300 *) set x $CONFIG_FILES ;;
24301 esac
24302 shift
24303 for mf
24304 do
24305 # Strip MF so we end up with the name of the file.
24306 mf=`echo "$mf" | sed -e 's/:.*$//'`
24307 # Check whether this is an Automake generated Makefile or not.
24308 # We used to match only the files named `Makefile.in', but
24309 # some people rename them; so instead we look at the file content.
24310 # Grep'ing the first line is not enough: some people post-process
24311 # each Makefile.in and add a new line on top of each file to say so.
24312 # Grep'ing the whole file is not good either: AIX grep has a line
24313 # limit of 2048, but all sed's we know have understand at least 4000.
24314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24315 dirpart=`$as_dirname -- "$mf" ||
24316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24317 X"$mf" : 'X\(//\)[^/]' \| \
24318 X"$mf" : 'X\(//\)$' \| \
24319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24320 $as_echo X"$mf" |
24321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24322 s//\1/
24323 q
24324 }
24325 /^X\(\/\/\)[^/].*/{
24326 s//\1/
24327 q
24328 }
24329 /^X\(\/\/\)$/{
24330 s//\1/
24331 q
24332 }
24333 /^X\(\/\).*/{
24334 s//\1/
24335 q
24336 }
24337 s/.*/./; q'`
24338 else
24339 continue
24340 fi
24341 # Extract the definition of DEPDIR, am__include, and am__quote
24342 # from the Makefile without running `make'.
24343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24344 test -z "$DEPDIR" && continue
24345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24346 test -z "am__include" && continue
24347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24348 # When using ansi2knr, U may be empty or an underscore; expand it
24349 U=`sed -n 's/^U = //p' < "$mf"`
24350 # Find all dependency output files, they are included files with
24351 # $(DEPDIR) in their names. We invoke sed twice because it is the
24352 # simplest approach to changing $(DEPDIR) to its actual value in the
24353 # expansion.
24354 for file in `sed -n "
24355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24357 # Make sure the directory exists.
24358 test -f "$dirpart/$file" && continue
24359 fdir=`$as_dirname -- "$file" ||
24360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24361 X"$file" : 'X\(//\)[^/]' \| \
24362 X"$file" : 'X\(//\)$' \| \
24363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24364 $as_echo X"$file" |
24365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24366 s//\1/
24367 q
24368 }
24369 /^X\(\/\/\)[^/].*/{
24370 s//\1/
24371 q
24372 }
24373 /^X\(\/\/\)$/{
24374 s//\1/
24375 q
24376 }
24377 /^X\(\/\).*/{
24378 s//\1/
24379 q
24380 }
24381 s/.*/./; q'`
24382 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24383 # echo "creating $dirpart/$file"
24384 echo '# dummy' > "$dirpart/$file"
24385 done
24386 done
24387 }
24388 ;;
24389 "libtool":C)
24390
24391 # See if we are running on zsh, and set the options which allow our
24392 # commands through without removal of \ escapes.
24393 if test -n "${ZSH_VERSION+set}" ; then
24394 setopt NO_GLOB_SUBST
24395 fi
24396
24397 cfgfile="${ofile}T"
24398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24399 $RM "$cfgfile"
24400
24401 cat <<_LT_EOF >> "$cfgfile"
24402 #! $SHELL
24403
24404 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24408 #
24409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24410 # 2006, 2007, 2008 Free Software Foundation, Inc.
24411 # Written by Gordon Matzigkeit, 1996
24412 #
24413 # This file is part of GNU Libtool.
24414 #
24415 # GNU Libtool is free software; you can redistribute it and/or
24416 # modify it under the terms of the GNU General Public License as
24417 # published by the Free Software Foundation; either version 2 of
24418 # the License, or (at your option) any later version.
24419 #
24420 # As a special exception to the GNU General Public License,
24421 # if you distribute this file as part of a program or library that
24422 # is built using GNU Libtool, you may include this file under the
24423 # same distribution terms that you use for the rest of that program.
24424 #
24425 # GNU Libtool is distributed in the hope that it will be useful,
24426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24428 # GNU General Public License for more details.
24429 #
24430 # You should have received a copy of the GNU General Public License
24431 # along with GNU Libtool; see the file COPYING. If not, a copy
24432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24433 # obtained by writing to the Free Software Foundation, Inc.,
24434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24435
24436
24437 # The names of the tagged configurations supported by this script.
24438 available_tags=""
24439
24440 # ### BEGIN LIBTOOL CONFIG
24441
24442 # Which release of libtool.m4 was used?
24443 macro_version=$macro_version
24444 macro_revision=$macro_revision
24445
24446 # Whether or not to build shared libraries.
24447 build_libtool_libs=$enable_shared
24448
24449 # Whether or not to build static libraries.
24450 build_old_libs=$enable_static
24451
24452 # What type of objects to build.
24453 pic_mode=$pic_mode
24454
24455 # Whether or not to optimize for fast installation.
24456 fast_install=$enable_fast_install
24457
24458 # The host system.
24459 host_alias=$host_alias
24460 host=$host
24461 host_os=$host_os
24462
24463 # The build system.
24464 build_alias=$build_alias
24465 build=$build
24466 build_os=$build_os
24467
24468 # A sed program that does not truncate output.
24469 SED=$lt_SED
24470
24471 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24472 Xsed="\$SED -e 1s/^X//"
24473
24474 # A grep program that handles long lines.
24475 GREP=$lt_GREP
24476
24477 # An ERE matcher.
24478 EGREP=$lt_EGREP
24479
24480 # A literal string matcher.
24481 FGREP=$lt_FGREP
24482
24483 # A BSD- or MS-compatible name lister.
24484 NM=$lt_NM
24485
24486 # Whether we need soft or hard links.
24487 LN_S=$lt_LN_S
24488
24489 # What is the maximum length of a command?
24490 max_cmd_len=$max_cmd_len
24491
24492 # Object file suffix (normally "o").
24493 objext=$ac_objext
24494
24495 # Executable file suffix (normally "").
24496 exeext=$exeext
24497
24498 # whether the shell understands "unset".
24499 lt_unset=$lt_unset
24500
24501 # turn spaces into newlines.
24502 SP2NL=$lt_lt_SP2NL
24503
24504 # turn newlines into spaces.
24505 NL2SP=$lt_lt_NL2SP
24506
24507 # How to create reloadable object files.
24508 reload_flag=$lt_reload_flag
24509 reload_cmds=$lt_reload_cmds
24510
24511 # An object symbol dumper.
24512 OBJDUMP=$lt_OBJDUMP
24513
24514 # Method to check whether dependent libraries are shared objects.
24515 deplibs_check_method=$lt_deplibs_check_method
24516
24517 # Command to use when deplibs_check_method == "file_magic".
24518 file_magic_cmd=$lt_file_magic_cmd
24519
24520 # The archiver.
24521 AR=$lt_AR
24522 AR_FLAGS=$lt_AR_FLAGS
24523
24524 # A symbol stripping program.
24525 STRIP=$lt_STRIP
24526
24527 # Commands used to install an old-style archive.
24528 RANLIB=$lt_RANLIB
24529 old_postinstall_cmds=$lt_old_postinstall_cmds
24530 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24531
24532 # A C compiler.
24533 LTCC=$lt_CC
24534
24535 # LTCC compiler flags.
24536 LTCFLAGS=$lt_CFLAGS
24537
24538 # Take the output of nm and produce a listing of raw symbols and C names.
24539 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24540
24541 # Transform the output of nm in a proper C declaration.
24542 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24543
24544 # Transform the output of nm in a C name address pair.
24545 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24546
24547 # Transform the output of nm in a C name address pair when lib prefix is needed.
24548 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24549
24550 # The name of the directory that contains temporary libtool files.
24551 objdir=$objdir
24552
24553 # Shell to use when invoking shell scripts.
24554 SHELL=$lt_SHELL
24555
24556 # An echo program that does not interpret backslashes.
24557 ECHO=$lt_ECHO
24558
24559 # Used to examine libraries when file_magic_cmd begins with "file".
24560 MAGIC_CMD=$MAGIC_CMD
24561
24562 # Must we lock files when doing compilation?
24563 need_locks=$lt_need_locks
24564
24565 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24566 DSYMUTIL=$lt_DSYMUTIL
24567
24568 # Tool to change global to local symbols on Mac OS X.
24569 NMEDIT=$lt_NMEDIT
24570
24571 # Tool to manipulate fat objects and archives on Mac OS X.
24572 LIPO=$lt_LIPO
24573
24574 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24575 OTOOL=$lt_OTOOL
24576
24577 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24578 OTOOL64=$lt_OTOOL64
24579
24580 # Old archive suffix (normally "a").
24581 libext=$libext
24582
24583 # Shared library suffix (normally ".so").
24584 shrext_cmds=$lt_shrext_cmds
24585
24586 # The commands to extract the exported symbol list from a shared archive.
24587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24588
24589 # Variables whose values should be saved in libtool wrapper scripts and
24590 # restored at link time.
24591 variables_saved_for_relink=$lt_variables_saved_for_relink
24592
24593 # Do we need the "lib" prefix for modules?
24594 need_lib_prefix=$need_lib_prefix
24595
24596 # Do we need a version for libraries?
24597 need_version=$need_version
24598
24599 # Library versioning type.
24600 version_type=$version_type
24601
24602 # Shared library runtime path variable.
24603 runpath_var=$runpath_var
24604
24605 # Shared library path variable.
24606 shlibpath_var=$shlibpath_var
24607
24608 # Is shlibpath searched before the hard-coded library search path?
24609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24610
24611 # Format of library name prefix.
24612 libname_spec=$lt_libname_spec
24613
24614 # List of archive names. First name is the real one, the rest are links.
24615 # The last name is the one that the linker finds with -lNAME
24616 library_names_spec=$lt_library_names_spec
24617
24618 # The coded name of the library, if different from the real name.
24619 soname_spec=$lt_soname_spec
24620
24621 # Command to use after installation of a shared archive.
24622 postinstall_cmds=$lt_postinstall_cmds
24623
24624 # Command to use after uninstallation of a shared archive.
24625 postuninstall_cmds=$lt_postuninstall_cmds
24626
24627 # Commands used to finish a libtool library installation in a directory.
24628 finish_cmds=$lt_finish_cmds
24629
24630 # As "finish_cmds", except a single script fragment to be evaled but
24631 # not shown.
24632 finish_eval=$lt_finish_eval
24633
24634 # Whether we should hardcode library paths into libraries.
24635 hardcode_into_libs=$hardcode_into_libs
24636
24637 # Compile-time system search path for libraries.
24638 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24639
24640 # Run-time system search path for libraries.
24641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24642
24643 # Whether dlopen is supported.
24644 dlopen_support=$enable_dlopen
24645
24646 # Whether dlopen of programs is supported.
24647 dlopen_self=$enable_dlopen_self
24648
24649 # Whether dlopen of statically linked programs is supported.
24650 dlopen_self_static=$enable_dlopen_self_static
24651
24652 # Commands to strip libraries.
24653 old_striplib=$lt_old_striplib
24654 striplib=$lt_striplib
24655
24656
24657 # The linker used to build libraries.
24658 LD=$lt_LD
24659
24660 # Commands used to build an old-style archive.
24661 old_archive_cmds=$lt_old_archive_cmds
24662
24663 # A language specific compiler.
24664 CC=$lt_compiler
24665
24666 # Is the compiler the GNU compiler?
24667 with_gcc=$GCC
24668
24669 # Compiler flag to turn off builtin functions.
24670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24671
24672 # How to pass a linker flag through the compiler.
24673 wl=$lt_lt_prog_compiler_wl
24674
24675 # Additional compiler flags for building library objects.
24676 pic_flag=$lt_lt_prog_compiler_pic
24677
24678 # Compiler flag to prevent dynamic linking.
24679 link_static_flag=$lt_lt_prog_compiler_static
24680
24681 # Does compiler simultaneously support -c and -o options?
24682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24683
24684 # Whether or not to add -lc for building shared libraries.
24685 build_libtool_need_lc=$archive_cmds_need_lc
24686
24687 # Whether or not to disallow shared libs when runtime libs are static.
24688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24689
24690 # Compiler flag to allow reflexive dlopens.
24691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24692
24693 # Compiler flag to generate shared objects directly from archives.
24694 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24695
24696 # Whether the compiler copes with passing no objects directly.
24697 compiler_needs_object=$lt_compiler_needs_object
24698
24699 # Create an old-style archive from a shared archive.
24700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24701
24702 # Create a temporary old-style archive to link instead of a shared archive.
24703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24704
24705 # Commands used to build a shared archive.
24706 archive_cmds=$lt_archive_cmds
24707 archive_expsym_cmds=$lt_archive_expsym_cmds
24708
24709 # Commands used to build a loadable module if different from building
24710 # a shared archive.
24711 module_cmds=$lt_module_cmds
24712 module_expsym_cmds=$lt_module_expsym_cmds
24713
24714 # Whether we are building with GNU ld or not.
24715 with_gnu_ld=$lt_with_gnu_ld
24716
24717 # Flag that allows shared libraries with undefined symbols to be built.
24718 allow_undefined_flag=$lt_allow_undefined_flag
24719
24720 # Flag that enforces no undefined symbols.
24721 no_undefined_flag=$lt_no_undefined_flag
24722
24723 # Flag to hardcode \$libdir into a binary during linking.
24724 # This must work even if \$libdir does not exist
24725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24726
24727 # If ld is used when linking, flag to hardcode \$libdir into a binary
24728 # during linking. This must work even if \$libdir does not exist.
24729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24730
24731 # Whether we need a single "-rpath" flag with a separated argument.
24732 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24733
24734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24735 # DIR into the resulting binary.
24736 hardcode_direct=$hardcode_direct
24737
24738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24739 # DIR into the resulting binary and the resulting library dependency is
24740 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24741 # library is relocated.
24742 hardcode_direct_absolute=$hardcode_direct_absolute
24743
24744 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24745 # into the resulting binary.
24746 hardcode_minus_L=$hardcode_minus_L
24747
24748 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24749 # into the resulting binary.
24750 hardcode_shlibpath_var=$hardcode_shlibpath_var
24751
24752 # Set to "yes" if building a shared library automatically hardcodes DIR
24753 # into the library and all subsequent libraries and executables linked
24754 # against it.
24755 hardcode_automatic=$hardcode_automatic
24756
24757 # Set to yes if linker adds runtime paths of dependent libraries
24758 # to runtime path list.
24759 inherit_rpath=$inherit_rpath
24760
24761 # Whether libtool must link a program against all its dependency libraries.
24762 link_all_deplibs=$link_all_deplibs
24763
24764 # Fix the shell variable \$srcfile for the compiler.
24765 fix_srcfile_path=$lt_fix_srcfile_path
24766
24767 # Set to "yes" if exported symbols are required.
24768 always_export_symbols=$always_export_symbols
24769
24770 # The commands to list exported symbols.
24771 export_symbols_cmds=$lt_export_symbols_cmds
24772
24773 # Symbols that should not be listed in the preloaded symbols.
24774 exclude_expsyms=$lt_exclude_expsyms
24775
24776 # Symbols that must always be exported.
24777 include_expsyms=$lt_include_expsyms
24778
24779 # Commands necessary for linking programs (against libraries) with templates.
24780 prelink_cmds=$lt_prelink_cmds
24781
24782 # Specify filename containing input files.
24783 file_list_spec=$lt_file_list_spec
24784
24785 # How to hardcode a shared library path into an executable.
24786 hardcode_action=$hardcode_action
24787
24788 # ### END LIBTOOL CONFIG
24789
24790 _LT_EOF
24791
24792 case $host_os in
24793 aix3*)
24794 cat <<\_LT_EOF >> "$cfgfile"
24795 # AIX sometimes has problems with the GCC collect2 program. For some
24796 # reason, if we set the COLLECT_NAMES environment variable, the problems
24797 # vanish in a puff of smoke.
24798 if test "X${COLLECT_NAMES+set}" != Xset; then
24799 COLLECT_NAMES=
24800 export COLLECT_NAMES
24801 fi
24802 _LT_EOF
24803 ;;
24804 esac
24805
24806
24807 ltmain="$ac_aux_dir/ltmain.sh"
24808
24809
24810 # We use sed instead of cat because bash on DJGPP gets confused if
24811 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24812 # text mode, it properly converts lines to CR/LF. This bash problem
24813 # is reportedly fixed, but why not run on old versions too?
24814 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24815 || (rm -f "$cfgfile"; exit 1)
24816
24817 case $xsi_shell in
24818 yes)
24819 cat << \_LT_EOF >> "$cfgfile"
24820
24821 # func_dirname file append nondir_replacement
24822 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24823 # otherwise set result to NONDIR_REPLACEMENT.
24824 func_dirname ()
24825 {
24826 case ${1} in
24827 */*) func_dirname_result="${1%/*}${2}" ;;
24828 * ) func_dirname_result="${3}" ;;
24829 esac
24830 }
24831
24832 # func_basename file
24833 func_basename ()
24834 {
24835 func_basename_result="${1##*/}"
24836 }
24837
24838 # func_dirname_and_basename file append nondir_replacement
24839 # perform func_basename and func_dirname in a single function
24840 # call:
24841 # dirname: Compute the dirname of FILE. If nonempty,
24842 # add APPEND to the result, otherwise set result
24843 # to NONDIR_REPLACEMENT.
24844 # value returned in "$func_dirname_result"
24845 # basename: Compute filename of FILE.
24846 # value retuned in "$func_basename_result"
24847 # Implementation must be kept synchronized with func_dirname
24848 # and func_basename. For efficiency, we do not delegate to
24849 # those functions but instead duplicate the functionality here.
24850 func_dirname_and_basename ()
24851 {
24852 case ${1} in
24853 */*) func_dirname_result="${1%/*}${2}" ;;
24854 * ) func_dirname_result="${3}" ;;
24855 esac
24856 func_basename_result="${1##*/}"
24857 }
24858
24859 # func_stripname prefix suffix name
24860 # strip PREFIX and SUFFIX off of NAME.
24861 # PREFIX and SUFFIX must not contain globbing or regex special
24862 # characters, hashes, percent signs, but SUFFIX may contain a leading
24863 # dot (in which case that matches only a dot).
24864 func_stripname ()
24865 {
24866 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24867 # positional parameters, so assign one to ordinary parameter first.
24868 func_stripname_result=${3}
24869 func_stripname_result=${func_stripname_result#"${1}"}
24870 func_stripname_result=${func_stripname_result%"${2}"}
24871 }
24872
24873 # func_opt_split
24874 func_opt_split ()
24875 {
24876 func_opt_split_opt=${1%%=*}
24877 func_opt_split_arg=${1#*=}
24878 }
24879
24880 # func_lo2o object
24881 func_lo2o ()
24882 {
24883 case ${1} in
24884 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24885 *) func_lo2o_result=${1} ;;
24886 esac
24887 }
24888
24889 # func_xform libobj-or-source
24890 func_xform ()
24891 {
24892 func_xform_result=${1%.*}.lo
24893 }
24894
24895 # func_arith arithmetic-term...
24896 func_arith ()
24897 {
24898 func_arith_result=$(( $* ))
24899 }
24900
24901 # func_len string
24902 # STRING may not start with a hyphen.
24903 func_len ()
24904 {
24905 func_len_result=${#1}
24906 }
24907
24908 _LT_EOF
24909 ;;
24910 *) # Bourne compatible functions.
24911 cat << \_LT_EOF >> "$cfgfile"
24912
24913 # func_dirname file append nondir_replacement
24914 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24915 # otherwise set result to NONDIR_REPLACEMENT.
24916 func_dirname ()
24917 {
24918 # Extract subdirectory from the argument.
24919 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24920 if test "X$func_dirname_result" = "X${1}"; then
24921 func_dirname_result="${3}"
24922 else
24923 func_dirname_result="$func_dirname_result${2}"
24924 fi
24925 }
24926
24927 # func_basename file
24928 func_basename ()
24929 {
24930 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24931 }
24932
24933
24934 # func_stripname prefix suffix name
24935 # strip PREFIX and SUFFIX off of NAME.
24936 # PREFIX and SUFFIX must not contain globbing or regex special
24937 # characters, hashes, percent signs, but SUFFIX may contain a leading
24938 # dot (in which case that matches only a dot).
24939 # func_strip_suffix prefix name
24940 func_stripname ()
24941 {
24942 case ${2} in
24943 .*) func_stripname_result=`$ECHO "X${3}" \
24944 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24945 *) func_stripname_result=`$ECHO "X${3}" \
24946 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24947 esac
24948 }
24949
24950 # sed scripts:
24951 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24952 my_sed_long_arg='1s/^-[^=]*=//'
24953
24954 # func_opt_split
24955 func_opt_split ()
24956 {
24957 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24958 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24959 }
24960
24961 # func_lo2o object
24962 func_lo2o ()
24963 {
24964 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24965 }
24966
24967 # func_xform libobj-or-source
24968 func_xform ()
24969 {
24970 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24971 }
24972
24973 # func_arith arithmetic-term...
24974 func_arith ()
24975 {
24976 func_arith_result=`expr "$@"`
24977 }
24978
24979 # func_len string
24980 # STRING may not start with a hyphen.
24981 func_len ()
24982 {
24983 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24984 }
24985
24986 _LT_EOF
24987 esac
24988
24989 case $lt_shell_append in
24990 yes)
24991 cat << \_LT_EOF >> "$cfgfile"
24992
24993 # func_append var value
24994 # Append VALUE to the end of shell variable VAR.
24995 func_append ()
24996 {
24997 eval "$1+=\$2"
24998 }
24999 _LT_EOF
25000 ;;
25001 *)
25002 cat << \_LT_EOF >> "$cfgfile"
25003
25004 # func_append var value
25005 # Append VALUE to the end of shell variable VAR.
25006 func_append ()
25007 {
25008 eval "$1=\$$1\$2"
25009 }
25010
25011 _LT_EOF
25012 ;;
25013 esac
25014
25015
25016 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25017 || (rm -f "$cfgfile"; exit 1)
25018
25019 mv -f "$cfgfile" "$ofile" ||
25020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25021 chmod +x "$ofile"
25022
25023 ;;
25024
25025 esac
25026 done # for ac_tag
25027
25028
25029 as_fn_exit 0
25030 _ACEOF
25031 ac_clean_files=$ac_clean_files_save
25032
25033 test $ac_write_fail = 0 ||
25034 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25035
25036
25037 # configure is writing to config.log, and then calls config.status.
25038 # config.status does its own redirection, appending to config.log.
25039 # Unfortunately, on DOS this fails, as config.log is still kept open
25040 # by configure, so config.status won't be able to write to it; its
25041 # output is simply discarded. So we exec the FD to /dev/null,
25042 # effectively closing config.log, so it can be properly (re)opened and
25043 # appended to by config.status. When coming back to configure, we
25044 # need to make the FD available again.
25045 if test "$no_create" != yes; then
25046 ac_cs_success=:
25047 ac_config_status_args=
25048 test "$silent" = yes &&
25049 ac_config_status_args="$ac_config_status_args --quiet"
25050 exec 5>/dev/null
25051 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25052 exec 5>>config.log
25053 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25054 # would make configure fail if this is the last instruction.
25055 $ac_cs_success || as_fn_exit 1
25056 fi
25057 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25059 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25060 fi
25061