]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Imported Upstream version 0.6.1
[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 AWK
831 mkdir_p
832 MKDIR_P
833 INSTALL_STRIP_PROGRAM
834 STRIP
835 install_sh
836 MAKEINFO
837 AUTOHEADER
838 AUTOMAKE
839 AUTOCONF
840 ACLOCAL
841 VERSION
842 PACKAGE
843 CYGPATH_W
844 am__isrc
845 INSTALL_DATA
846 INSTALL_SCRIPT
847 INSTALL_PROGRAM
848 AM_BACKSLASH
849 AM_DEFAULT_VERBOSITY
850 MAINT
851 MAINTAINER_MODE_FALSE
852 MAINTAINER_MODE_TRUE
853 target_os
854 target_vendor
855 target_cpu
856 target
857 host_os
858 host_vendor
859 host_cpu
860 host
861 build_os
862 build_vendor
863 build_cpu
864 build
865 SPL_META_LT_AGE
866 SPL_META_LT_REVISION
867 SPL_META_LT_CURRENT
868 SPL_META_AUTHOR
869 SPL_META_DATA
870 SPL_META_ALIAS
871 RELEASE
872 SPL_META_RELEASE
873 SPL_META_VERSION
874 SPL_META_NAME
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2306 $as_echo_n "checking metadata... " >&6; }
2307
2308 META="$srcdir/META"
2309 _spl_ac_meta_type="none"
2310 if test -f "$META"; then
2311 _spl_ac_meta_type="META file"
2312
2313 SPL_META_NAME=`perl -n\
2314 -e "BEGIN { \\$key=shift @ARGV; }"\
2315 -e "next unless s/^\s*\\$key[:=]//i;"\
2316 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2317 -e "s/^\s+//;"\
2318 -e "s/\s+$//;"\
2319 -e "s/^(['\"])(.*)\1/\\$2/;"\
2320 -e "\\$val=\\$_;"\
2321 -e "END { print \\$val if defined \\$val; }"\
2322 '(?:NAME|PROJECT|PACKAGE)' $META`;
2323 if test -n "$SPL_META_NAME"; then
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define SPL_META_NAME "$SPL_META_NAME"
2327 _ACEOF
2328
2329
2330 fi
2331
2332 SPL_META_VERSION=`perl -n\
2333 -e "BEGIN { \\$key=shift @ARGV; }"\
2334 -e "next unless s/^\s*\\$key[:=]//i;"\
2335 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2336 -e "s/^\s+//;"\
2337 -e "s/\s+$//;"\
2338 -e "s/^(['\"])(.*)\1/\\$2/;"\
2339 -e "\\$val=\\$_;"\
2340 -e "END { print \\$val if defined \\$val; }"\
2341 'VERSION' $META`;
2342 if test -n "$SPL_META_VERSION"; then
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define SPL_META_VERSION "$SPL_META_VERSION"
2346 _ACEOF
2347
2348
2349 fi
2350
2351 SPL_META_RELEASE=`perl -n\
2352 -e "BEGIN { \\$key=shift @ARGV; }"\
2353 -e "next unless s/^\s*\\$key[:=]//i;"\
2354 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2355 -e "s/^\s+//;"\
2356 -e "s/\s+$//;"\
2357 -e "s/^(['\"])(.*)\1/\\$2/;"\
2358 -e "\\$val=\\$_;"\
2359 -e "END { print \\$val if defined \\$val; }"\
2360 'RELEASE' $META`;
2361 if git rev-parse --git-dir > /dev/null 2>&1; then
2362 _match="${SPL_META_NAME}-${SPL_META_VERSION}*"
2363 _alias=$(git describe --match=${_match} 2>/dev/null)
2364 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2365 if test -n "${_release}"; then
2366 SPL_META_RELEASE=${_release}
2367 _spl_ac_meta_type="git describe"
2368 fi
2369 fi
2370
2371 if test -n "$SPL_META_RELEASE"; then
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2375 _ACEOF
2376
2377
2378
2379 RELEASE="$SPL_META_RELEASE"
2380
2381 fi
2382
2383 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2384 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2385 test -n "$SPL_META_RELEASE" &&
2386 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2390 _ACEOF
2391
2392
2393 fi
2394
2395 SPL_META_DATA=`perl -n\
2396 -e "BEGIN { \\$key=shift @ARGV; }"\
2397 -e "next unless s/^\s*\\$key[:=]//i;"\
2398 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2399 -e "s/^\s+//;"\
2400 -e "s/\s+$//;"\
2401 -e "s/^(['\"])(.*)\1/\\$2/;"\
2402 -e "\\$val=\\$_;"\
2403 -e "END { print \\$val if defined \\$val; }"\
2404 'DATE' $META`;
2405 if test -n "$SPL_META_DATA"; then
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define SPL_META_DATA "$SPL_META_DATA"
2409 _ACEOF
2410
2411
2412 fi
2413
2414 SPL_META_AUTHOR=`perl -n\
2415 -e "BEGIN { \\$key=shift @ARGV; }"\
2416 -e "next unless s/^\s*\\$key[:=]//i;"\
2417 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2418 -e "s/^\s+//;"\
2419 -e "s/\s+$//;"\
2420 -e "s/^(['\"])(.*)\1/\\$2/;"\
2421 -e "\\$val=\\$_;"\
2422 -e "END { print \\$val if defined \\$val; }"\
2423 'AUTHOR' $META`;
2424 if test -n "$SPL_META_AUTHOR"; then
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2428 _ACEOF
2429
2430
2431 fi
2432
2433
2434 SPL_META_LT_CURRENT=`perl -n\
2435 -e "BEGIN { \\$key=shift @ARGV; }"\
2436 -e "next unless s/^\s*\\$key[:=]//i;"\
2437 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2438 -e "s/^\s+//;"\
2439 -e "s/\s+$//;"\
2440 -e "s/^(['\"])(.*)\1/\\$2/;"\
2441 -e "\\$val=\\$_;"\
2442 -e "END { print \\$val if defined \\$val; }"\
2443 'LT_CURRENT' $META`;
2444 SPL_META_LT_REVISION=`perl -n\
2445 -e "BEGIN { \\$key=shift @ARGV; }"\
2446 -e "next unless s/^\s*\\$key[:=]//i;"\
2447 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2448 -e "s/^\s+//;"\
2449 -e "s/\s+$//;"\
2450 -e "s/^(['\"])(.*)\1/\\$2/;"\
2451 -e "\\$val=\\$_;"\
2452 -e "END { print \\$val if defined \\$val; }"\
2453 'LT_REVISION' $META`;
2454 SPL_META_LT_AGE=`perl -n\
2455 -e "BEGIN { \\$key=shift @ARGV; }"\
2456 -e "next unless s/^\s*\\$key[:=]//i;"\
2457 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2458 -e "s/^\s+//;"\
2459 -e "s/\s+$//;"\
2460 -e "s/^(['\"])(.*)\1/\\$2/;"\
2461 -e "\\$val=\\$_;"\
2462 -e "END { print \\$val if defined \\$val; }"\
2463 'LT_AGE' $META`;
2464 if test -n "$SPL_META_LT_CURRENT" \
2465 -o -n "$SPL_META_LT_REVISION" \
2466 -o -n "$SPL_META_LT_AGE"; then
2467 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2468 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2469 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2473 _ACEOF
2474
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2478 _ACEOF
2479
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2483 _ACEOF
2484
2485
2486
2487
2488 fi
2489 fi
2490
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2492 $as_echo "$_spl_ac_meta_type" >&6; }
2493
2494
2495 ac_aux_dir=
2496 for ac_dir in config "$srcdir"/config; do
2497 if test -f "$ac_dir/install-sh"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/install-sh -c"
2500 break
2501 elif test -f "$ac_dir/install.sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install.sh -c"
2504 break
2505 elif test -f "$ac_dir/shtool"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/shtool install -c"
2508 break
2509 fi
2510 done
2511 if test -z "$ac_aux_dir"; then
2512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2513 fi
2514
2515 # These three variables are undocumented and unsupported,
2516 # and are intended to be withdrawn in a future Autoconf release.
2517 # They can cause serious problems if a builder's source tree is in a directory
2518 # whose full name contains unusual characters.
2519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2522
2523
2524 # Make sure we can run config.sub.
2525 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2526 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2527
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2529 $as_echo_n "checking build system type... " >&6; }
2530 if test "${ac_cv_build+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 ac_build_alias=$build_alias
2534 test "x$ac_build_alias" = x &&
2535 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2536 test "x$ac_build_alias" = x &&
2537 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2538 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2543 $as_echo "$ac_cv_build" >&6; }
2544 case $ac_cv_build in
2545 *-*-*) ;;
2546 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2547 esac
2548 build=$ac_cv_build
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_build
2551 shift
2552 build_cpu=$1
2553 build_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 build_os=$*
2558 IFS=$ac_save_IFS
2559 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2563 $as_echo_n "checking host system type... " >&6; }
2564 if test "${ac_cv_host+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test "x$host_alias" = x; then
2568 ac_cv_host=$ac_cv_build
2569 else
2570 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572 fi
2573
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2576 $as_echo "$ac_cv_host" >&6; }
2577 case $ac_cv_host in
2578 *-*-*) ;;
2579 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2580 esac
2581 host=$ac_cv_host
2582 ac_save_IFS=$IFS; IFS='-'
2583 set x $ac_cv_host
2584 shift
2585 host_cpu=$1
2586 host_vendor=$2
2587 shift; shift
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2590 host_os=$*
2591 IFS=$ac_save_IFS
2592 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2596 $as_echo_n "checking target system type... " >&6; }
2597 if test "${ac_cv_target+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test "x$target_alias" = x; then
2601 ac_cv_target=$ac_cv_host
2602 else
2603 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2605 fi
2606
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2609 $as_echo "$ac_cv_target" >&6; }
2610 case $ac_cv_target in
2611 *-*-*) ;;
2612 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2613 esac
2614 target=$ac_cv_target
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_target
2617 shift
2618 target_cpu=$1
2619 target_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 target_os=$*
2624 IFS=$ac_save_IFS
2625 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2626
2627
2628 # The aliases save the names the user supplied, while $host etc.
2629 # will get canonicalized.
2630 test -n "$target_alias" &&
2631 test "$program_prefix$program_suffix$program_transform_name" = \
2632 NONENONEs,x,x, &&
2633 program_prefix=${target_alias}-
2634
2635
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2637 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2638 # Check whether --enable-maintainer-mode was given.
2639 if test "${enable_maintainer_mode+set}" = set; then :
2640 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2641 else
2642 USE_MAINTAINER_MODE=no
2643 fi
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2646 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2647 if test $USE_MAINTAINER_MODE = yes; then
2648 MAINTAINER_MODE_TRUE=
2649 MAINTAINER_MODE_FALSE='#'
2650 else
2651 MAINTAINER_MODE_TRUE='#'
2652 MAINTAINER_MODE_FALSE=
2653 fi
2654
2655 MAINT=$MAINTAINER_MODE_TRUE
2656
2657
2658 # Check whether --enable-silent-rules was given.
2659 if test "${enable_silent_rules+set}" = set; then :
2660 enableval=$enable_silent_rules;
2661 fi
2662
2663 case $enable_silent_rules in
2664 yes) AM_DEFAULT_VERBOSITY=0;;
2665 no) AM_DEFAULT_VERBOSITY=1;;
2666 *) AM_DEFAULT_VERBOSITY=1;;
2667 esac
2668 AM_BACKSLASH='\'
2669
2670 am__api_version='1.11'
2671
2672 # Find a good install program. We prefer a C program (faster),
2673 # so one script is as good as another. But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2687 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in #((
2699 ./ | .// | /[cC]/* | \
2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2702 /usr/ucb/* ) ;;
2703 *)
2704 # OSF1 and SCO ODT 3.0 have their own names for install.
2705 # Don't use installbsd from OSF since it installs stuff as root
2706 # by default.
2707 for ac_prog in ginstall scoinst install; do
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2710 if test $ac_prog = install &&
2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # AIX install. It has an incompatible calling convention.
2713 :
2714 elif test $ac_prog = install &&
2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716 # program-specific install script used by HP pwplus--don't use.
2717 :
2718 else
2719 rm -rf conftest.one conftest.two conftest.dir
2720 echo one > conftest.one
2721 echo two > conftest.two
2722 mkdir conftest.dir
2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724 test -s conftest.one && test -s conftest.two &&
2725 test -s conftest.dir/conftest.one &&
2726 test -s conftest.dir/conftest.two
2727 then
2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729 break 3
2730 fi
2731 fi
2732 fi
2733 done
2734 done
2735 ;;
2736 esac
2737
2738 done
2739 IFS=$as_save_IFS
2740
2741 rm -rf conftest.one conftest.two conftest.dir
2742
2743 fi
2744 if test "${ac_cv_path_install+set}" = set; then
2745 INSTALL=$ac_cv_path_install
2746 else
2747 # As a last resort, use the slow shell script. Don't cache a
2748 # value for INSTALL within a source directory, because that will
2749 # break other packages using the cache if that directory is
2750 # removed, or if the value is a relative name.
2751 INSTALL=$ac_install_sh
2752 fi
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 $as_echo "$INSTALL" >&6; }
2756
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 $as_echo_n "checking whether build environment is sane... " >&6; }
2767 # Just in case
2768 sleep 1
2769 echo timestamp > conftest.file
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2772 am_lf='
2773 '
2774 case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2777 esac
2778 case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2781 esac
2782
2783 # Do `set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790 if test "$*" = "X"; then
2791 # -L didn't work.
2792 set X `ls -t "$srcdir/configure" conftest.file`
2793 fi
2794 rm -f conftest.file
2795 if test "$*" != "X $srcdir/configure conftest.file" \
2796 && test "$*" != "X conftest.file $srcdir/configure"; then
2797
2798 # If neither matched, then we have a broken ls. This can happen
2799 # if, for instance, CONFIG_SHELL is bash and it inherits a
2800 # broken ls alias from the environment. This has actually
2801 # happened. Such a system could not be considered "sane".
2802 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2803 alias in your environment" "$LINENO" 5
2804 fi
2805
2806 test "$2" = conftest.file
2807 )
2808 then
2809 # Ok.
2810 :
2811 else
2812 as_fn_error $? "newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 test "$program_prefix" != NONE &&
2818 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830 if test x"${MISSING+set}" != xset; then
2831 case $am_aux_dir in
2832 *\ * | *\ *)
2833 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834 *)
2835 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836 esac
2837 fi
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840 am_missing_run="$MISSING --run "
2841 else
2842 am_missing_run=
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2845 fi
2846
2847 if test x"${install_sh}" != xset; then
2848 case $am_aux_dir in
2849 *\ * | *\ *)
2850 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851 *)
2852 install_sh="\${SHELL} $am_aux_dir/install-sh"
2853 esac
2854 fi
2855
2856 # Installed binaries are usually stripped using `strip' when the user
2857 # run `make install-strip'. However `strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the `STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861 if test -n "$ac_tool_prefix"; then
2862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$STRIP"; then
2870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_STRIP"; then
2901 ac_ct_STRIP=$STRIP
2902 # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$ac_ct_STRIP"; then
2910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_ac_ct_STRIP="strip"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938 if test "x$ac_ct_STRIP" = x; then
2939 STRIP=":"
2940 else
2941 case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947 STRIP=$ac_ct_STRIP
2948 fi
2949 else
2950 STRIP="$ac_cv_prog_STRIP"
2951 fi
2952
2953 fi
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959 if test "${ac_cv_path_mkdir+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_prog in mkdir gmkdir; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2970 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971 'mkdir (GNU coreutils) '* | \
2972 'mkdir (coreutils) '* | \
2973 'mkdir (fileutils) '4.1*)
2974 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975 break 3;;
2976 esac
2977 done
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983
2984 test -d ./--version && rmdir ./--version
2985 if test "${ac_cv_path_mkdir+set}" = set; then
2986 MKDIR_P="$ac_cv_path_mkdir -p"
2987 else
2988 # As a last resort, use the slow shell script. Don't cache a
2989 # value for MKDIR_P within a source directory, because that will
2990 # break other packages using the cache if that directory is
2991 # removed, or if the value is a relative name.
2992 MKDIR_P="$ac_install_sh -d"
2993 fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2997
2998 mkdir_p="$MKDIR_P"
2999 case $mkdir_p in
3000 [\\/$]* | ?:[\\/]*) ;;
3001 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3002 esac
3003
3004 for ac_prog in gawk mawk nawk awk
3005 do
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$AWK"; then
3014 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_AWK="$ac_prog"
3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 test -n "$AWK" && break
3044 done
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056 @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060 *@@@%%%=?*=@@@%%%*)
3061 eval ac_cv_prog_make_${ac_make}_set=yes;;
3062 *)
3063 eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3066 fi
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 SET_MAKE=
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 SET_MAKE="MAKE=${MAKE-make}"
3075 fi
3076
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080 am__leading_dot=.
3081 else
3082 am__leading_dot=_
3083 fi
3084 rmdir .tst 2>/dev/null
3085
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088 # is not polluted with repeated "-I."
3089 am__isrc=' -I$(srcdir)'
3090 # test to see if srcdir already configured
3091 if test -f $srcdir/config.status; then
3092 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3093 fi
3094 fi
3095
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098 if (cygpath --version) >/dev/null 2>/dev/null; then
3099 CYGPATH_W='cygpath -w'
3100 else
3101 CYGPATH_W=echo
3102 fi
3103 fi
3104
3105
3106 # Define the identity of the package.
3107 PACKAGE=$SPL_META_NAME
3108 VERSION=$SPL_META_VERSION
3109
3110
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE "$PACKAGE"
3113 _ACEOF
3114
3115
3116 cat >>confdefs.h <<_ACEOF
3117 #define VERSION "$VERSION"
3118 _ACEOF
3119
3120 # Some tools Automake needs.
3121
3122 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3123
3124
3125 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3126
3127
3128 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3129
3130
3131 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3132
3133
3134 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135
3136 # We need awk for the "check" target. The system "awk" is bad on
3137 # some platforms.
3138 # Always define AMTAR for backward compatibility.
3139
3140 AMTAR=${AMTAR-"${am_missing_run}tar"}
3141
3142 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3143
3144
3145
3146
3147
3148 ac_config_headers="$ac_config_headers spl_config.h"
3149
3150
3151
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157 if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$CC"; then
3166 ac_cv_prog_CC="$CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179 done
3180 done
3181 IFS=$as_save_IFS
3182
3183 fi
3184 fi
3185 CC=$ac_cv_prog_CC
3186 if test -n "$CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3188 $as_echo "$CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3192 fi
3193
3194
3195 fi
3196 if test -z "$ac_cv_prog_CC"; then
3197 ac_ct_CC=$CC
3198 # Extract the first word of "gcc", so it can be a program name with args.
3199 set dummy gcc; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_ac_ct_CC="gcc"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3218 fi
3219 done
3220 done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238 yes:)
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241 ac_tool_warned=yes ;;
3242 esac
3243 CC=$ac_ct_CC
3244 fi
3245 else
3246 CC="$ac_cv_prog_CC"
3247 fi
3248
3249 if test -z "$CC"; then
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}cc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_CC+set}" = set; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268 ac_cv_prog_CC="${ac_tool_prefix}cc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 fi
3289 fi
3290 if test -z "$CC"; then
3291 # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_prog_CC+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 ac_prog_rejected=no
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3310 ac_prog_rejected=yes
3311 continue
3312 fi
3313 ac_cv_prog_CC="cc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 if test $ac_prog_rejected = yes; then
3322 # We found a bogon in the path, so make sure we never use it.
3323 set dummy $ac_cv_prog_CC
3324 shift
3325 if test $# != 0; then
3326 # We chose a different compiler from the bogus one.
3327 # However, it has the same basename, so the bogon will be chosen
3328 # first if we set CC to just the basename; use the full file name.
3329 shift
3330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331 fi
3332 fi
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in cl.exe
3349 do
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 test -n "$CC" && break
3388 done
3389 fi
3390 if test -z "$CC"; then
3391 ac_ct_CC=$CC
3392 for ac_prog in cl.exe
3393 do
3394 # Extract the first word of "$ac_prog", so it can be a program name with args.
3395 set dummy $ac_prog; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$ac_ct_CC"; then
3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_ac_ct_CC="$ac_prog"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3422 if test -n "$ac_ct_CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3424 $as_echo "$ac_ct_CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431 test -n "$ac_ct_CC" && break
3432 done
3433
3434 if test "x$ac_ct_CC" = x; then
3435 CC=""
3436 else
3437 case $cross_compiling:$ac_tool_warned in
3438 yes:)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3441 ac_tool_warned=yes ;;
3442 esac
3443 CC=$ac_ct_CC
3444 fi
3445 fi
3446
3447 fi
3448
3449
3450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "no acceptable C compiler found in \$PATH
3453 See \`config.log' for more details" "$LINENO" 5 ; }
3454
3455 # Provide some information about the compiler.
3456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3457 set X $ac_compile
3458 ac_compiler=$2
3459 for ac_option in --version -v -V -qversion; do
3460 { { ac_try="$ac_compiler $ac_option >&5"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3468 ac_status=$?
3469 if test -s conftest.err; then
3470 sed '10a\
3471 ... rest of stderr output deleted ...
3472 10q' conftest.err >conftest.er1
3473 cat conftest.er1 >&5
3474 fi
3475 rm -f conftest.er1 conftest.err
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 done
3479
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3495 # of exeext.
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3497 $as_echo_n "checking whether the C compiler works... " >&6; }
3498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3499
3500 # The possible output files:
3501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3502
3503 ac_rmfiles=
3504 for ac_file in $ac_files
3505 do
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3508 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3509 esac
3510 done
3511 rm -f $ac_rmfiles
3512
3513 if { { ac_try="$ac_link_default"
3514 case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3517 esac
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_link_default") 2>&5
3521 ac_status=$?
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; then :
3524 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3526 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3527 # so that the user can short-circuit this test for compilers unknown to
3528 # Autoconf.
3529 for ac_file in $ac_files ''
3530 do
3531 test -f "$ac_file" || continue
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3534 ;;
3535 [ab].out )
3536 # We found the default executable, but exeext='' is most
3537 # certainly right.
3538 break;;
3539 *.* )
3540 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3541 then :; else
3542 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3543 fi
3544 # We set ac_cv_exeext here because the later test for it is not
3545 # safe: cross compilers may not add the suffix if given an `-o'
3546 # argument, so we may need to know it at that point already.
3547 # Even if this section looks crufty: it has the advantage of
3548 # actually working.
3549 break;;
3550 * )
3551 break;;
3552 esac
3553 done
3554 test "$ac_cv_exeext" = no && ac_cv_exeext=
3555
3556 else
3557 ac_file=''
3558 fi
3559 if test -z "$ac_file"; then :
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 $as_echo "$as_me: failed program was:" >&5
3563 sed 's/^/| /' conftest.$ac_ext >&5
3564
3565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error 77 "C compiler cannot create executables
3568 See \`config.log' for more details" "$LINENO" 5 ; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3571 $as_echo "yes" >&6; }
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3574 $as_echo_n "checking for C compiler default output file name... " >&6; }
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3576 $as_echo "$ac_file" >&6; }
3577 ac_exeext=$ac_cv_exeext
3578
3579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3580 ac_clean_files=$ac_clean_files_save
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3582 $as_echo_n "checking for suffix of executables... " >&6; }
3583 if { { ac_try="$ac_link"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3596 # work properly (i.e., refer to `conftest.exe'), while it won't with
3597 # `rm'.
3598 for ac_file in conftest.exe conftest conftest.*; do
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603 break;;
3604 * ) break;;
3605 esac
3606 done
3607 else
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details" "$LINENO" 5 ; }
3612 fi
3613 rm -f conftest conftest$ac_cv_exeext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3615 $as_echo "$ac_cv_exeext" >&6; }
3616
3617 rm -f conftest.$ac_ext
3618 EXEEXT=$ac_cv_exeext
3619 ac_exeext=$EXEEXT
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622 #include <stdio.h>
3623 int
3624 main ()
3625 {
3626 FILE *f = fopen ("conftest.out", "w");
3627 return ferror (f) || fclose (f) != 0;
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 ac_clean_files="$ac_clean_files conftest.out"
3634 # Check that the compiler produces executables we can run. If not, either
3635 # the compiler is broken, or we cross compile.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3637 $as_echo_n "checking whether we are cross compiling... " >&6; }
3638 if test "$cross_compiling" != yes; then
3639 { { ac_try="$ac_link"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646 (eval "$ac_link") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649 test $ac_status = 0; }
3650 if { ac_try='./conftest$ac_cv_exeext'
3651 { { case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_try") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; }; then
3661 cross_compiling=no
3662 else
3663 if test "$cross_compiling" = maybe; then
3664 cross_compiling=yes
3665 else
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot run C compiled programs.
3669 If you meant to cross compile, use \`--host'.
3670 See \`config.log' for more details" "$LINENO" 5 ; }
3671 fi
3672 fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3675 $as_echo "$cross_compiling" >&6; }
3676
3677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3686
3687 int
3688 main ()
3689 {
3690
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 rm -f conftest.o conftest.obj
3696 if { { ac_try="$ac_compile"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_compile") 2>&5
3704 ac_status=$?
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 for ac_file in conftest.o conftest.obj conftest.*; do
3708 test -f "$ac_file" || continue;
3709 case $ac_file in
3710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3711 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3712 break;;
3713 esac
3714 done
3715 else
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "cannot compute suffix of object files: cannot compile
3722 See \`config.log' for more details" "$LINENO" 5 ; }
3723 fi
3724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3727 $as_echo "$ac_cv_objext" >&6; }
3728 OBJEXT=$ac_cv_objext
3729 ac_objext=$OBJEXT
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3732 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737
3738 int
3739 main ()
3740 {
3741 #ifndef __GNUC__
3742 choke me
3743 #endif
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750 ac_compiler_gnu=yes
3751 else
3752 ac_compiler_gnu=no
3753 fi
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3756
3757 fi
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3760 if test $ac_compiler_gnu = yes; then
3761 GCC=yes
3762 else
3763 GCC=
3764 fi
3765 ac_test_CFLAGS=${CFLAGS+set}
3766 ac_save_CFLAGS=$CFLAGS
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3769 if test "${ac_cv_prog_cc_g+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 ac_save_c_werror_flag=$ac_c_werror_flag
3773 ac_c_werror_flag=yes
3774 ac_cv_prog_cc_g=no
3775 CFLAGS="-g"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_g=yes
3789 else
3790 CFLAGS=""
3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 if ac_fn_c_try_compile "$LINENO"; then :
3803
3804 else
3805 ac_c_werror_flag=$ac_save_c_werror_flag
3806 CFLAGS="-g"
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809
3810 int
3811 main ()
3812 {
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 if ac_fn_c_try_compile "$LINENO"; then :
3819 ac_cv_prog_cc_g=yes
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 ac_c_werror_flag=$ac_save_c_werror_flag
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3829 $as_echo "$ac_cv_prog_cc_g" >&6; }
3830 if test "$ac_test_CFLAGS" = set; then
3831 CFLAGS=$ac_save_CFLAGS
3832 elif test $ac_cv_prog_cc_g = yes; then
3833 if test "$GCC" = yes; then
3834 CFLAGS="-g -O2"
3835 else
3836 CFLAGS="-g"
3837 fi
3838 else
3839 if test "$GCC" = yes; then
3840 CFLAGS="-O2"
3841 else
3842 CFLAGS=
3843 fi
3844 fi
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3847 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 ac_cv_prog_cc_c89=no
3851 ac_save_CC=$CC
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <stdarg.h>
3855 #include <stdio.h>
3856 #include <sys/types.h>
3857 #include <sys/stat.h>
3858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3859 struct buf { int x; };
3860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3861 static char *e (p, i)
3862 char **p;
3863 int i;
3864 {
3865 return p[i];
3866 }
3867 static char *f (char * (*g) (char **, int), char **p, ...)
3868 {
3869 char *s;
3870 va_list v;
3871 va_start (v,p);
3872 s = g (p, va_arg (v,int));
3873 va_end (v);
3874 return s;
3875 }
3876
3877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3878 function prototypes and stuff, but not '\xHH' hex character constants.
3879 These don't provoke an error unfortunately, instead are silently treated
3880 as 'x'. The following induces an error, until -std is added to get
3881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3882 array size at least. It's necessary to write '\x00'==0 to get something
3883 that's true only with -std. */
3884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885
3886 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3887 inside strings and character constants. */
3888 #define FOO(x) 'x'
3889 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890
3891 int test (int i, double x);
3892 struct s1 {int (*f) (int a);};
3893 struct s2 {int (*f) (double a);};
3894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3895 int argc;
3896 char **argv;
3897 int
3898 main ()
3899 {
3900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3906 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 do
3908 CC="$ac_save_CC $ac_arg"
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_c89=$ac_arg
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext
3913 test "x$ac_cv_prog_cc_c89" != "xno" && break
3914 done
3915 rm -f conftest.$ac_ext
3916 CC=$ac_save_CC
3917
3918 fi
3919 # AC_CACHE_VAL
3920 case "x$ac_cv_prog_cc_c89" in
3921 x)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923 $as_echo "none needed" >&6; } ;;
3924 xno)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926 $as_echo "unsupported" >&6; } ;;
3927 *)
3928 CC="$CC $ac_cv_prog_cc_c89"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3930 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3931 esac
3932 if test "x$ac_cv_prog_cc_c89" != xno; then :
3933
3934 fi
3935
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 DEPDIR="${am__leading_dot}deps"
3942
3943 ac_config_commands="$ac_config_commands depfiles"
3944
3945
3946 am_make=${MAKE-make}
3947 cat > confinc << 'END'
3948 am__doit:
3949 @echo this is the am__doit target
3950 .PHONY: am__doit
3951 END
3952 # If we don't find an include directive, just comment out the code.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3954 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3955 am__include="#"
3956 am__quote=
3957 _am_result=none
3958 # First try GNU make style include.
3959 echo "include confinc" > confmf
3960 # Ignore all kinds of additional output from `make'.
3961 case `$am_make -s -f confmf 2> /dev/null` in #(
3962 *the\ am__doit\ target*)
3963 am__include=include
3964 am__quote=
3965 _am_result=GNU
3966 ;;
3967 esac
3968 # Now try BSD make style include.
3969 if test "$am__include" = "#"; then
3970 echo '.include "confinc"' > confmf
3971 case `$am_make -s -f confmf 2> /dev/null` in #(
3972 *the\ am__doit\ target*)
3973 am__include=.include
3974 am__quote="\""
3975 _am_result=BSD
3976 ;;
3977 esac
3978 fi
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3982 $as_echo "$_am_result" >&6; }
3983 rm -f confinc confmf
3984
3985 # Check whether --enable-dependency-tracking was given.
3986 if test "${enable_dependency_tracking+set}" = set; then :
3987 enableval=$enable_dependency_tracking;
3988 fi
3989
3990 if test "x$enable_dependency_tracking" != xno; then
3991 am_depcomp="$ac_aux_dir/depcomp"
3992 AMDEPBACKSLASH='\'
3993 fi
3994 if test "x$enable_dependency_tracking" != xno; then
3995 AMDEP_TRUE=
3996 AMDEP_FALSE='#'
3997 else
3998 AMDEP_TRUE='#'
3999 AMDEP_FALSE=
4000 fi
4001
4002
4003
4004 depcc="$CC" am_compiler_list=
4005
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4007 $as_echo_n "checking dependency style of $depcc... " >&6; }
4008 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4012 # We make a subdir and do the tests there. Otherwise we can end up
4013 # making bogus files that we don't know about and never remove. For
4014 # instance it was reported that on HP-UX the gcc test will end up
4015 # making a dummy file named `D' -- because `-MD' means `put the output
4016 # in D'.
4017 mkdir conftest.dir
4018 # Copy depcomp to subdir because otherwise we won't find it if we're
4019 # using a relative directory.
4020 cp "$am_depcomp" conftest.dir
4021 cd conftest.dir
4022 # We will build objects and dependencies in a subdirectory because
4023 # it helps to detect inapplicable dependency modes. For instance
4024 # both Tru64's cc and ICC support -MD to output dependencies as a
4025 # side effect of compilation, but ICC will put the dependencies in
4026 # the current directory while Tru64 will put them in the object
4027 # directory.
4028 mkdir sub
4029
4030 am_cv_CC_dependencies_compiler_type=none
4031 if test "$am_compiler_list" = ""; then
4032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4033 fi
4034 am__universal=false
4035 case " $depcc " in #(
4036 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4037 esac
4038
4039 for depmode in $am_compiler_list; do
4040 # Setup a source with many dependencies, because some compilers
4041 # like to wrap large dependency lists on column 80 (with \), and
4042 # we should not choose a depcomp mode which is confused by this.
4043 #
4044 # We need to recreate these files for each test, as the compiler may
4045 # overwrite some of them when testing with obscure command lines.
4046 # This happens at least with the AIX C compiler.
4047 : > sub/conftest.c
4048 for i in 1 2 3 4 5 6; do
4049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4051 # Solaris 8's {/usr,}/bin/sh.
4052 touch sub/conftst$i.h
4053 done
4054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4055
4056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4057 # mode. It turns out that the SunPro C++ compiler does not properly
4058 # handle `-M -o', and we need to detect this. Also, some Intel
4059 # versions had trouble with output in subdirs
4060 am__obj=sub/conftest.${OBJEXT-o}
4061 am__minus_obj="-o $am__obj"
4062 case $depmode in
4063 gcc)
4064 # This depmode causes a compiler race in universal mode.
4065 test "$am__universal" = false || continue
4066 ;;
4067 nosideeffect)
4068 # after this tag, mechanisms are not by side-effect, so they'll
4069 # only be used when explicitly requested
4070 if test "x$enable_dependency_tracking" = xyes; then
4071 continue
4072 else
4073 break
4074 fi
4075 ;;
4076 msvisualcpp | msvcmsys)
4077 # This compiler won't grok `-c -o', but also, the minuso test has
4078 # not run yet. These depmodes are late enough in the game, and
4079 # so weak that their functioning should not be impacted.
4080 am__obj=conftest.${OBJEXT-o}
4081 am__minus_obj=
4082 ;;
4083 none) break ;;
4084 esac
4085 if depmode=$depmode \
4086 source=sub/conftest.c object=$am__obj \
4087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4088 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4089 >/dev/null 2>conftest.err &&
4090 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4092 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4094 # icc doesn't choke on unknown options, it will just issue warnings
4095 # or remarks (even with -Werror). So we grep stderr for any message
4096 # that says an option was ignored or not supported.
4097 # When given -MP, icc 7.0 and 7.1 complain thusly:
4098 # icc: Command line warning: ignoring option '-M'; no argument required
4099 # The diagnosis changed in icc 8.0:
4100 # icc: Command line remark: option '-MP' not supported
4101 if (grep 'ignoring option' conftest.err ||
4102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4103 am_cv_CC_dependencies_compiler_type=$depmode
4104 break
4105 fi
4106 fi
4107 done
4108
4109 cd ..
4110 rm -rf conftest.dir
4111 else
4112 am_cv_CC_dependencies_compiler_type=none
4113 fi
4114
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4117 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4118 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4119
4120 if
4121 test "x$enable_dependency_tracking" != xno \
4122 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4123 am__fastdepCC_TRUE=
4124 am__fastdepCC_FALSE='#'
4125 else
4126 am__fastdepCC_TRUE='#'
4127 am__fastdepCC_FALSE=
4128 fi
4129
4130
4131 case `pwd` in
4132 *\ * | *\ *)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4134 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4135 esac
4136
4137
4138
4139 macro_version='2.2.6b'
4140 macro_revision='1.3017'
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 ltmain="$ac_aux_dir/ltmain.sh"
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4157 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4158 if test "${ac_cv_path_SED+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4162 for ac_i in 1 2 3 4 5 6 7; do
4163 ac_script="$ac_script$as_nl$ac_script"
4164 done
4165 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4166 { ac_script=; unset ac_script;}
4167 if test -z "$SED"; then
4168 ac_path_SED_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in sed gsed; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4178 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180 # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4184 *)
4185 ac_count=0
4186 $as_echo_n 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo '' >> "conftest.nl"
4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_SED_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_SED="$ac_path_SED"
4199 ac_path_SED_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_SED_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_SED"; then
4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_SED=$SED
4217 fi
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 $as_echo "$ac_cv_path_SED" >&6; }
4222 SED="$ac_cv_path_SED"
4223 rm -f conftest.sed
4224
4225 test -z "$SED" && SED=sed
4226 Xsed="$SED -e 1s/^X//"
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if test "${ac_cv_path_GREP+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$GREP"; then
4244 ac_path_GREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in grep ggrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256 # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4258 *GNU*)
4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4260 *)
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
4264 do
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'GREP' >> "conftest.nl"
4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_GREP="$ac_path_GREP"
4275 ac_path_GREP_max=$ac_count
4276 fi
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4282
4283 $ac_path_GREP_found && break 3
4284 done
4285 done
4286 done
4287 IFS=$as_save_IFS
4288 if test -z "$ac_cv_path_GREP"; then
4289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290 fi
4291 else
4292 ac_cv_path_GREP=$GREP
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298 GREP="$ac_cv_path_GREP"
4299
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if test "${ac_cv_path_EGREP+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307 then ac_cv_path_EGREP="$GREP -E"
4308 else
4309 if test -z "$EGREP"; then
4310 ac_path_EGREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in egrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322 # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4326 *)
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4330 do
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'EGREP' >> "conftest.nl"
4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_EGREP="$ac_path_EGREP"
4341 ac_path_EGREP_max=$ac_count
4342 fi
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349 $ac_path_EGREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_EGREP"; then
4355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356 fi
4357 else
4358 ac_cv_path_EGREP=$EGREP
4359 fi
4360
4361 fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365 EGREP="$ac_cv_path_EGREP"
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4369 $as_echo_n "checking for fgrep... " >&6; }
4370 if test "${ac_cv_path_FGREP+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4374 then ac_cv_path_FGREP="$GREP -F"
4375 else
4376 if test -z "$FGREP"; then
4377 ac_path_FGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in fgrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4388 # Check for GNU ac_path_FGREP and select it if it is found.
4389 # Check for GNU $ac_path_FGREP
4390 case `"$ac_path_FGREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4393 *)
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'FGREP' >> "conftest.nl"
4402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 as_fn_arith $ac_count + 1 && ac_count=$as_val
4405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_FGREP="$ac_path_FGREP"
4408 ac_path_FGREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4415
4416 $ac_path_FGREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_FGREP"; then
4422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 fi
4424 else
4425 ac_cv_path_FGREP=$FGREP
4426 fi
4427
4428 fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4431 $as_echo "$ac_cv_path_FGREP" >&6; }
4432 FGREP="$ac_cv_path_FGREP"
4433
4434
4435 test -z "$GREP" && GREP=grep
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 # Check whether --with-gnu-ld was given.
4456 if test "${with_gnu_ld+set}" = set; then :
4457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4458 else
4459 with_gnu_ld=no
4460 fi
4461
4462 ac_prog=ld
4463 if test "$GCC" = yes; then
4464 # Check if gcc -print-prog-name=ld gives a path.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4466 $as_echo_n "checking for ld used by $CC... " >&6; }
4467 case $host in
4468 *-*-mingw*)
4469 # gcc leaves a trailing carriage return which upsets mingw
4470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4471 *)
4472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4473 esac
4474 case $ac_prog in
4475 # Accept absolute paths.
4476 [\\/]* | ?:[\\/]*)
4477 re_direlt='/[^/][^/]*/\.\./'
4478 # Canonicalize the pathname of ld
4479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4482 done
4483 test -z "$LD" && LD="$ac_prog"
4484 ;;
4485 "")
4486 # If it fails, then pretend we aren't using GCC.
4487 ac_prog=ld
4488 ;;
4489 *)
4490 # If it is relative, then search for the first ld in PATH.
4491 with_gnu_ld=unknown
4492 ;;
4493 esac
4494 elif test "$with_gnu_ld" = yes; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4496 $as_echo_n "checking for GNU ld... " >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4499 $as_echo_n "checking for non-GNU ld... " >&6; }
4500 fi
4501 if test "${lt_cv_path_LD+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -z "$LD"; then
4505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4506 for ac_dir in $PATH; do
4507 IFS="$lt_save_ifs"
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4510 lt_cv_path_LD="$ac_dir/$ac_prog"
4511 # Check to see if the program is GNU ld. I'd rather use --version,
4512 # but apparently some variants of GNU ld only accept -v.
4513 # Break only if it was the GNU/non-GNU ld that we prefer.
4514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4515 *GNU* | *'with BFD'*)
4516 test "$with_gnu_ld" != no && break
4517 ;;
4518 *)
4519 test "$with_gnu_ld" != yes && break
4520 ;;
4521 esac
4522 fi
4523 done
4524 IFS="$lt_save_ifs"
4525 else
4526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4527 fi
4528 fi
4529
4530 LD="$lt_cv_path_LD"
4531 if test -n "$LD"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4533 $as_echo "$LD" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 fi
4538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4541 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4545 case `$LD -v 2>&1 </dev/null` in
4546 *GNU* | *'with BFD'*)
4547 lt_cv_prog_gnu_ld=yes
4548 ;;
4549 *)
4550 lt_cv_prog_gnu_ld=no
4551 ;;
4552 esac
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4556 with_gnu_ld=$lt_cv_prog_gnu_ld
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4568 if test "${lt_cv_path_NM+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$NM"; then
4572 # Let the user override the test.
4573 lt_cv_path_NM="$NM"
4574 else
4575 lt_nm_to_check="${ac_tool_prefix}nm"
4576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4577 lt_nm_to_check="$lt_nm_to_check nm"
4578 fi
4579 for lt_tmp_nm in $lt_nm_to_check; do
4580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4582 IFS="$lt_save_ifs"
4583 test -z "$ac_dir" && ac_dir=.
4584 tmp_nm="$ac_dir/$lt_tmp_nm"
4585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4586 # Check to see if the nm accepts a BSD-compat flag.
4587 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4588 # nm: unknown option "B" ignored
4589 # Tru64's nm complains that /dev/null is an invalid object file
4590 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4591 */dev/null* | *'Invalid file or object type'*)
4592 lt_cv_path_NM="$tmp_nm -B"
4593 break
4594 ;;
4595 *)
4596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4597 */dev/null*)
4598 lt_cv_path_NM="$tmp_nm -p"
4599 break
4600 ;;
4601 *)
4602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4603 continue # so that we can try to find one that supports BSD flags
4604 ;;
4605 esac
4606 ;;
4607 esac
4608 fi
4609 done
4610 IFS="$lt_save_ifs"
4611 done
4612 : ${lt_cv_path_NM=no}
4613 fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4616 $as_echo "$lt_cv_path_NM" >&6; }
4617 if test "$lt_cv_path_NM" != "no"; then
4618 NM="$lt_cv_path_NM"
4619 else
4620 # Didn't find any BSD compatible name lister, look for dumpbin.
4621 if test -n "$ac_tool_prefix"; then
4622 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4623 do
4624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$DUMPBIN"; then
4632 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 DUMPBIN=$ac_cv_prog_DUMPBIN
4652 if test -n "$DUMPBIN"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4654 $as_echo "$DUMPBIN" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 test -n "$DUMPBIN" && break
4662 done
4663 fi
4664 if test -z "$DUMPBIN"; then
4665 ac_ct_DUMPBIN=$DUMPBIN
4666 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4667 do
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_DUMPBIN"; then
4676 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4696 if test -n "$ac_ct_DUMPBIN"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4698 $as_echo "$ac_ct_DUMPBIN" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704
4705 test -n "$ac_ct_DUMPBIN" && break
4706 done
4707
4708 if test "x$ac_ct_DUMPBIN" = x; then
4709 DUMPBIN=":"
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 DUMPBIN=$ac_ct_DUMPBIN
4718 fi
4719 fi
4720
4721
4722 if test "$DUMPBIN" != ":"; then
4723 NM="$DUMPBIN"
4724 fi
4725 fi
4726 test -z "$NM" && NM=nm
4727
4728
4729
4730
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4734 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4735 if test "${lt_cv_nm_interface+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 lt_cv_nm_interface="BSD nm"
4739 echo "int some_variable = 0;" > conftest.$ac_ext
4740 (eval echo "\"\$as_me:4740: $ac_compile\"" >&5)
4741 (eval "$ac_compile" 2>conftest.err)
4742 cat conftest.err >&5
4743 (eval echo "\"\$as_me:4743: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4744 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4745 cat conftest.err >&5
4746 (eval echo "\"\$as_me:4746: output\"" >&5)
4747 cat conftest.out >&5
4748 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4749 lt_cv_nm_interface="MS dumpbin"
4750 fi
4751 rm -f conftest*
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4754 $as_echo "$lt_cv_nm_interface" >&6; }
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4757 $as_echo_n "checking whether ln -s works... " >&6; }
4758 LN_S=$as_ln_s
4759 if test "$LN_S" = "ln -s"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4761 $as_echo "yes" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4764 $as_echo "no, using $LN_S" >&6; }
4765 fi
4766
4767 # find the maximum length of command line arguments
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4769 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4770 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 i=0
4774 teststring="ABCD"
4775
4776 case $build_os in
4777 msdosdjgpp*)
4778 # On DJGPP, this test can blow up pretty badly due to problems in libc
4779 # (any single argument exceeding 2000 bytes causes a buffer overrun
4780 # during glob expansion). Even if it were fixed, the result of this
4781 # check would be larger than it should be.
4782 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4783 ;;
4784
4785 gnu*)
4786 # Under GNU Hurd, this test is not required because there is
4787 # no limit to the length of command line arguments.
4788 # Libtool will interpret -1 as no limit whatsoever
4789 lt_cv_sys_max_cmd_len=-1;
4790 ;;
4791
4792 cygwin* | mingw* | cegcc*)
4793 # On Win9x/ME, this test blows up -- it succeeds, but takes
4794 # about 5 minutes as the teststring grows exponentially.
4795 # Worse, since 9x/ME are not pre-emptively multitasking,
4796 # you end up with a "frozen" computer, even though with patience
4797 # the test eventually succeeds (with a max line length of 256k).
4798 # Instead, let's just punt: use the minimum linelength reported by
4799 # all of the supported platforms: 8192 (on NT/2K/XP).
4800 lt_cv_sys_max_cmd_len=8192;
4801 ;;
4802
4803 amigaos*)
4804 # On AmigaOS with pdksh, this test takes hours, literally.
4805 # So we just punt and use a minimum line length of 8192.
4806 lt_cv_sys_max_cmd_len=8192;
4807 ;;
4808
4809 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4810 # This has been around since 386BSD, at least. Likely further.
4811 if test -x /sbin/sysctl; then
4812 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4813 elif test -x /usr/sbin/sysctl; then
4814 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4815 else
4816 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4817 fi
4818 # And add a safety zone
4819 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4821 ;;
4822
4823 interix*)
4824 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4825 lt_cv_sys_max_cmd_len=196608
4826 ;;
4827
4828 osf*)
4829 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4830 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4831 # nice to cause kernel panics so lets avoid the loop below.
4832 # First set a reasonable default.
4833 lt_cv_sys_max_cmd_len=16384
4834 #
4835 if test -x /sbin/sysconfig; then
4836 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4837 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4838 esac
4839 fi
4840 ;;
4841 sco3.2v5*)
4842 lt_cv_sys_max_cmd_len=102400
4843 ;;
4844 sysv5* | sco5v6* | sysv4.2uw2*)
4845 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4846 if test -n "$kargmax"; then
4847 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4848 else
4849 lt_cv_sys_max_cmd_len=32768
4850 fi
4851 ;;
4852 *)
4853 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4854 if test -n "$lt_cv_sys_max_cmd_len"; then
4855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4857 else
4858 # Make teststring a little bigger before we do anything with it.
4859 # a 1K string should be a reasonable start.
4860 for i in 1 2 3 4 5 6 7 8 ; do
4861 teststring=$teststring$teststring
4862 done
4863 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4864 # If test is not a shell built-in, we'll probably end up computing a
4865 # maximum length that is only half of the actual maximum length, but
4866 # we can't tell.
4867 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4868 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4869 test $i != 17 # 1/2 MB should be enough
4870 do
4871 i=`expr $i + 1`
4872 teststring=$teststring$teststring
4873 done
4874 # Only check the string length outside the loop.
4875 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4876 teststring=
4877 # Add a significant safety factor because C++ compilers can tack on
4878 # massive amounts of additional arguments before passing them to the
4879 # linker. It appears as though 1/2 is a usable value.
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4881 fi
4882 ;;
4883 esac
4884
4885 fi
4886
4887 if test -n $lt_cv_sys_max_cmd_len ; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4889 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4892 $as_echo "none" >&6; }
4893 fi
4894 max_cmd_len=$lt_cv_sys_max_cmd_len
4895
4896
4897
4898
4899
4900
4901 : ${CP="cp -f"}
4902 : ${MV="mv -f"}
4903 : ${RM="rm -f"}
4904
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4906 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4907 # Try some XSI features
4908 xsi_shell=no
4909 ( _lt_dummy="a/b/c"
4910 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4911 = c,a/b,, \
4912 && eval 'test $(( 1 + 1 )) -eq 2 \
4913 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4914 && xsi_shell=yes
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4916 $as_echo "$xsi_shell" >&6; }
4917
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4920 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4921 lt_shell_append=no
4922 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4923 >/dev/null 2>&1 \
4924 && lt_shell_append=yes
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4926 $as_echo "$lt_shell_append" >&6; }
4927
4928
4929 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4930 lt_unset=unset
4931 else
4932 lt_unset=false
4933 fi
4934
4935
4936
4937
4938
4939 # test EBCDIC or ASCII
4940 case `echo X|tr X '\101'` in
4941 A) # ASCII based system
4942 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4943 lt_SP2NL='tr \040 \012'
4944 lt_NL2SP='tr \015\012 \040\040'
4945 ;;
4946 *) # EBCDIC based system
4947 lt_SP2NL='tr \100 \n'
4948 lt_NL2SP='tr \r\n \100\100'
4949 ;;
4950 esac
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4961 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4962 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 lt_cv_ld_reload_flag='-r'
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4968 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4969 reload_flag=$lt_cv_ld_reload_flag
4970 case $reload_flag in
4971 "" | " "*) ;;
4972 *) reload_flag=" $reload_flag" ;;
4973 esac
4974 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4975 case $host_os in
4976 darwin*)
4977 if test "$GCC" = yes; then
4978 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4979 else
4980 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4981 fi
4982 ;;
4983 esac
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993 if test -n "$ac_tool_prefix"; then
4994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4995 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$OBJDUMP"; then
5002 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019 fi
5020 fi
5021 OBJDUMP=$ac_cv_prog_OBJDUMP
5022 if test -n "$OBJDUMP"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5024 $as_echo "$OBJDUMP" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5029
5030
5031 fi
5032 if test -z "$ac_cv_prog_OBJDUMP"; then
5033 ac_ct_OBJDUMP=$OBJDUMP
5034 # Extract the first word of "objdump", so it can be a program name with args.
5035 set dummy objdump; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$ac_ct_OBJDUMP"; then
5042 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5062 if test -n "$ac_ct_OBJDUMP"; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5064 $as_echo "$ac_ct_OBJDUMP" >&6; }
5065 else
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070 if test "x$ac_ct_OBJDUMP" = x; then
5071 OBJDUMP="false"
5072 else
5073 case $cross_compiling:$ac_tool_warned in
5074 yes:)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5077 ac_tool_warned=yes ;;
5078 esac
5079 OBJDUMP=$ac_ct_OBJDUMP
5080 fi
5081 else
5082 OBJDUMP="$ac_cv_prog_OBJDUMP"
5083 fi
5084
5085 test -z "$OBJDUMP" && OBJDUMP=objdump
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5096 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5097 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 lt_cv_file_magic_cmd='$MAGIC_CMD'
5101 lt_cv_file_magic_test_file=
5102 lt_cv_deplibs_check_method='unknown'
5103 # Need to set the preceding variable on all platforms that support
5104 # interlibrary dependencies.
5105 # 'none' -- dependencies not supported.
5106 # `unknown' -- same as none, but documents that we really don't know.
5107 # 'pass_all' -- all dependencies passed with no checks.
5108 # 'test_compile' -- check by making test program.
5109 # 'file_magic [[regex]]' -- check by looking for files in library path
5110 # which responds to the $file_magic_cmd with a given extended regex.
5111 # If you have `file' or equivalent on your system and you're not sure
5112 # whether `pass_all' will *always* work, you probably want this one.
5113
5114 case $host_os in
5115 aix[4-9]*)
5116 lt_cv_deplibs_check_method=pass_all
5117 ;;
5118
5119 beos*)
5120 lt_cv_deplibs_check_method=pass_all
5121 ;;
5122
5123 bsdi[45]*)
5124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5125 lt_cv_file_magic_cmd='/usr/bin/file -L'
5126 lt_cv_file_magic_test_file=/shlib/libc.so
5127 ;;
5128
5129 cygwin*)
5130 # func_win32_libid is a shell function defined in ltmain.sh
5131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5132 lt_cv_file_magic_cmd='func_win32_libid'
5133 ;;
5134
5135 mingw* | pw32*)
5136 # Base MSYS/MinGW do not provide the 'file' command needed by
5137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5138 # unless we find 'file', for example because we are cross-compiling.
5139 if ( file / ) >/dev/null 2>&1; then
5140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5141 lt_cv_file_magic_cmd='func_win32_libid'
5142 else
5143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5144 lt_cv_file_magic_cmd='$OBJDUMP -f'
5145 fi
5146 ;;
5147
5148 cegcc)
5149 # use the weaker test based on 'objdump'. See mingw*.
5150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5151 lt_cv_file_magic_cmd='$OBJDUMP -f'
5152 ;;
5153
5154 darwin* | rhapsody*)
5155 lt_cv_deplibs_check_method=pass_all
5156 ;;
5157
5158 freebsd* | dragonfly*)
5159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5160 case $host_cpu in
5161 i*86 )
5162 # Not sure whether the presence of OpenBSD here was a mistake.
5163 # Let's accept both of them until this is cleared up.
5164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5165 lt_cv_file_magic_cmd=/usr/bin/file
5166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5167 ;;
5168 esac
5169 else
5170 lt_cv_deplibs_check_method=pass_all
5171 fi
5172 ;;
5173
5174 gnu*)
5175 lt_cv_deplibs_check_method=pass_all
5176 ;;
5177
5178 hpux10.20* | hpux11*)
5179 lt_cv_file_magic_cmd=/usr/bin/file
5180 case $host_cpu in
5181 ia64*)
5182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5184 ;;
5185 hppa*64*)
5186 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]'
5187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5188 ;;
5189 *)
5190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5191 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5192 ;;
5193 esac
5194 ;;
5195
5196 interix[3-9]*)
5197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5199 ;;
5200
5201 irix5* | irix6* | nonstopux*)
5202 case $LD in
5203 *-32|*"-32 ") libmagic=32-bit;;
5204 *-n32|*"-n32 ") libmagic=N32;;
5205 *-64|*"-64 ") libmagic=64-bit;;
5206 *) libmagic=never-match;;
5207 esac
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211 # This must be Linux ELF.
5212 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5213 lt_cv_deplibs_check_method=pass_all
5214 ;;
5215
5216 netbsd* | netbsdelf*-gnu)
5217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5219 else
5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5221 fi
5222 ;;
5223
5224 newos6*)
5225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5228 ;;
5229
5230 *nto* | *qnx*)
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 openbsd*)
5235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5237 else
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239 fi
5240 ;;
5241
5242 osf3* | osf4* | osf5*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 rdos*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250 solaris*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5255 lt_cv_deplibs_check_method=pass_all
5256 ;;
5257
5258 sysv4 | sysv4.3*)
5259 case $host_vendor in
5260 motorola)
5261 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]'
5262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5263 ;;
5264 ncr)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267 sequent)
5268 lt_cv_file_magic_cmd='/bin/file'
5269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5270 ;;
5271 sni)
5272 lt_cv_file_magic_cmd='/bin/file'
5273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5274 lt_cv_file_magic_test_file=/lib/libc.so
5275 ;;
5276 siemens)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279 pc)
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282 esac
5283 ;;
5284
5285 tpf*)
5286 lt_cv_deplibs_check_method=pass_all
5287 ;;
5288 esac
5289
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5292 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5293 file_magic_cmd=$lt_cv_file_magic_cmd
5294 deplibs_check_method=$lt_cv_deplibs_check_method
5295 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}ar; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_AR+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$AR"; then
5317 ac_cv_prog_AR="$AR" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_AR="${ac_tool_prefix}ar"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330 done
5331 done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 AR=$ac_cv_prog_AR
5337 if test -n "$AR"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5339 $as_echo "$AR" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345
5346 fi
5347 if test -z "$ac_cv_prog_AR"; then
5348 ac_ct_AR=$AR
5349 # Extract the first word of "ar", so it can be a program name with args.
5350 set dummy ar; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$ac_ct_AR"; then
5357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_ac_ct_AR="ar"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5377 if test -n "$ac_ct_AR"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5379 $as_echo "$ac_ct_AR" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385 if test "x$ac_ct_AR" = x; then
5386 AR="false"
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394 AR=$ac_ct_AR
5395 fi
5396 else
5397 AR="$ac_cv_prog_AR"
5398 fi
5399
5400 test -z "$AR" && AR=ar
5401 test -z "$AR_FLAGS" && AR_FLAGS=cru
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 if test -n "$ac_tool_prefix"; then
5414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}strip; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if test "${ac_cv_prog_STRIP+set}" = set; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$STRIP"; then
5422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi
5440 fi
5441 STRIP=$ac_cv_prog_STRIP
5442 if test -n "$STRIP"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5444 $as_echo "$STRIP" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448 fi
5449
5450
5451 fi
5452 if test -z "$ac_cv_prog_STRIP"; then
5453 ac_ct_STRIP=$STRIP
5454 # Extract the first word of "strip", so it can be a program name with args.
5455 set dummy strip; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$ac_ct_STRIP"; then
5462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_ac_ct_STRIP="strip"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5482 if test -n "$ac_ct_STRIP"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5484 $as_echo "$ac_ct_STRIP" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490 if test "x$ac_ct_STRIP" = x; then
5491 STRIP=":"
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494 yes:)
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499 STRIP=$ac_ct_STRIP
5500 fi
5501 else
5502 STRIP="$ac_cv_prog_STRIP"
5503 fi
5504
5505 test -z "$STRIP" && STRIP=:
5506
5507
5508
5509
5510
5511
5512 if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5518 $as_echo_n "(cached) " >&6
5519 else
5520 if test -n "$RANLIB"; then
5521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 RANLIB=$ac_cv_prog_RANLIB
5541 if test -n "$RANLIB"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5543 $as_echo "$RANLIB" >&6; }
5544 else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 fi
5551 if test -z "$ac_cv_prog_RANLIB"; then
5552 ac_ct_RANLIB=$RANLIB
5553 # Extract the first word of "ranlib", so it can be a program name with args.
5554 set dummy ranlib; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_RANLIB"; then
5561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_RANLIB="ranlib"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5581 if test -n "$ac_ct_RANLIB"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5583 $as_echo "$ac_ct_RANLIB" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589 if test "x$ac_ct_RANLIB" = x; then
5590 RANLIB=":"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598 RANLIB=$ac_ct_RANLIB
5599 fi
5600 else
5601 RANLIB="$ac_cv_prog_RANLIB"
5602 fi
5603
5604 test -z "$RANLIB" && RANLIB=:
5605
5606
5607
5608
5609
5610
5611 # Determine commands to create old-style static archives.
5612 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5613 old_postinstall_cmds='chmod 644 $oldlib'
5614 old_postuninstall_cmds=
5615
5616 if test -n "$RANLIB"; then
5617 case $host_os in
5618 openbsd*)
5619 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5620 ;;
5621 *)
5622 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5623 ;;
5624 esac
5625 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5626 fi
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 # If no C compiler was specified, use CC.
5662 LTCC=${LTCC-"$CC"}
5663
5664 # If no C compiler flags were specified, use CFLAGS.
5665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5666
5667 # Allow CC to be a program name with arguments.
5668 compiler=$CC
5669
5670
5671 # Check for command to grab the raw symbol name followed by C symbol from nm.
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5673 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5674 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5676 else
5677
5678 # These are sane defaults that work on at least a few old systems.
5679 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5680
5681 # Character class describing NM global symbol codes.
5682 symcode='[BCDEGRST]'
5683
5684 # Regexp to match symbols that can be accessed directly from C.
5685 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5686
5687 # Define system-specific variables.
5688 case $host_os in
5689 aix*)
5690 symcode='[BCDT]'
5691 ;;
5692 cygwin* | mingw* | pw32* | cegcc*)
5693 symcode='[ABCDGISTW]'
5694 ;;
5695 hpux*)
5696 if test "$host_cpu" = ia64; then
5697 symcode='[ABCDEGRST]'
5698 fi
5699 ;;
5700 irix* | nonstopux*)
5701 symcode='[BCDEGRST]'
5702 ;;
5703 osf*)
5704 symcode='[BCDEGQRST]'
5705 ;;
5706 solaris*)
5707 symcode='[BDRT]'
5708 ;;
5709 sco3.2v5*)
5710 symcode='[DT]'
5711 ;;
5712 sysv4.2uw2*)
5713 symcode='[DT]'
5714 ;;
5715 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5716 symcode='[ABDT]'
5717 ;;
5718 sysv4)
5719 symcode='[DFNSTU]'
5720 ;;
5721 esac
5722
5723 # If we're using GNU nm, then use its standard symbol codes.
5724 case `$NM -V 2>&1` in
5725 *GNU* | *'with BFD'*)
5726 symcode='[ABCDGIRSTW]' ;;
5727 esac
5728
5729 # Transform an extracted symbol line into a proper C declaration.
5730 # Some systems (esp. on ia64) link data and code symbols differently,
5731 # so use this general approach.
5732 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5733
5734 # Transform an extracted symbol line into symbol name and symbol address
5735 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5736 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'"
5737
5738 # Handle CRLF in mingw tool chain
5739 opt_cr=
5740 case $build_os in
5741 mingw*)
5742 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5743 ;;
5744 esac
5745
5746 # Try without a prefix underscore, then with it.
5747 for ac_symprfx in "" "_"; do
5748
5749 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5750 symxfrm="\\1 $ac_symprfx\\2 \\2"
5751
5752 # Write the raw and C identifiers.
5753 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5754 # Fake it for dumpbin and say T for any non-static function
5755 # and D for any global variable.
5756 # Also find C++ and __fastcall symbols from MSVC++,
5757 # which start with @ or ?.
5758 lt_cv_sys_global_symbol_pipe="$AWK '"\
5759 " {last_section=section; section=\$ 3};"\
5760 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5761 " \$ 0!~/External *\|/{next};"\
5762 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5763 " {if(hide[section]) next};"\
5764 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5765 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5766 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5767 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5768 " ' prfx=^$ac_symprfx"
5769 else
5770 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5771 fi
5772
5773 # Check to see that the pipe works correctly.
5774 pipe_works=no
5775
5776 rm -f conftest*
5777 cat > conftest.$ac_ext <<_LT_EOF
5778 #ifdef __cplusplus
5779 extern "C" {
5780 #endif
5781 char nm_test_var;
5782 void nm_test_func(void);
5783 void nm_test_func(void){}
5784 #ifdef __cplusplus
5785 }
5786 #endif
5787 int main(){nm_test_var='a';nm_test_func();return(0);}
5788 _LT_EOF
5789
5790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5791 (eval $ac_compile) 2>&5
5792 ac_status=$?
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }; then
5795 # Now try to grab the symbols.
5796 nlist=conftest.nm
5797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5798 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } && test -s "$nlist"; then
5802 # Try sorting and uniquifying the output.
5803 if sort "$nlist" | uniq > "$nlist"T; then
5804 mv -f "$nlist"T "$nlist"
5805 else
5806 rm -f "$nlist"T
5807 fi
5808
5809 # Make sure that we snagged all the symbols we need.
5810 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5811 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5812 cat <<_LT_EOF > conftest.$ac_ext
5813 #ifdef __cplusplus
5814 extern "C" {
5815 #endif
5816
5817 _LT_EOF
5818 # Now generate the symbol file.
5819 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5820
5821 cat <<_LT_EOF >> conftest.$ac_ext
5822
5823 /* The mapping between symbol names and symbols. */
5824 const struct {
5825 const char *name;
5826 void *address;
5827 }
5828 lt__PROGRAM__LTX_preloaded_symbols[] =
5829 {
5830 { "@PROGRAM@", (void *) 0 },
5831 _LT_EOF
5832 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5833 cat <<\_LT_EOF >> conftest.$ac_ext
5834 {0, (void *) 0}
5835 };
5836
5837 /* This works around a problem in FreeBSD linker */
5838 #ifdef FREEBSD_WORKAROUND
5839 static const void *lt_preloaded_setup() {
5840 return lt__PROGRAM__LTX_preloaded_symbols;
5841 }
5842 #endif
5843
5844 #ifdef __cplusplus
5845 }
5846 #endif
5847 _LT_EOF
5848 # Now try linking the two files.
5849 mv conftest.$ac_objext conftstm.$ac_objext
5850 lt_save_LIBS="$LIBS"
5851 lt_save_CFLAGS="$CFLAGS"
5852 LIBS="conftstm.$ac_objext"
5853 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5855 (eval $ac_link) 2>&5
5856 ac_status=$?
5857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5858 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5859 pipe_works=yes
5860 fi
5861 LIBS="$lt_save_LIBS"
5862 CFLAGS="$lt_save_CFLAGS"
5863 else
5864 echo "cannot find nm_test_func in $nlist" >&5
5865 fi
5866 else
5867 echo "cannot find nm_test_var in $nlist" >&5
5868 fi
5869 else
5870 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5871 fi
5872 else
5873 echo "$progname: failed program was:" >&5
5874 cat conftest.$ac_ext >&5
5875 fi
5876 rm -rf conftest* conftst*
5877
5878 # Do not use the global_symbol_pipe unless it works.
5879 if test "$pipe_works" = yes; then
5880 break
5881 else
5882 lt_cv_sys_global_symbol_pipe=
5883 fi
5884 done
5885
5886 fi
5887
5888 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5889 lt_cv_sys_global_symbol_to_cdecl=
5890 fi
5891 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5893 $as_echo "failed" >&6; }
5894 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5896 $as_echo "ok" >&6; }
5897 fi
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 # Check whether --enable-libtool-lock was given.
5922 if test "${enable_libtool_lock+set}" = set; then :
5923 enableval=$enable_libtool_lock;
5924 fi
5925
5926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5927
5928 # Some flags need to be propagated to the compiler or linker for good
5929 # libtool support.
5930 case $host in
5931 ia64-*-hpux*)
5932 # Find out which ABI we are using.
5933 echo 'int i;' > conftest.$ac_ext
5934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5935 (eval $ac_compile) 2>&5
5936 ac_status=$?
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }; then
5939 case `/usr/bin/file conftest.$ac_objext` in
5940 *ELF-32*)
5941 HPUX_IA64_MODE="32"
5942 ;;
5943 *ELF-64*)
5944 HPUX_IA64_MODE="64"
5945 ;;
5946 esac
5947 fi
5948 rm -rf conftest*
5949 ;;
5950 *-*-irix6*)
5951 # Find out which ABI we are using.
5952 echo '#line 5952 "configure"' > conftest.$ac_ext
5953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5954 (eval $ac_compile) 2>&5
5955 ac_status=$?
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }; then
5958 if test "$lt_cv_prog_gnu_ld" = yes; then
5959 case `/usr/bin/file conftest.$ac_objext` in
5960 *32-bit*)
5961 LD="${LD-ld} -melf32bsmip"
5962 ;;
5963 *N32*)
5964 LD="${LD-ld} -melf32bmipn32"
5965 ;;
5966 *64-bit*)
5967 LD="${LD-ld} -melf64bmip"
5968 ;;
5969 esac
5970 else
5971 case `/usr/bin/file conftest.$ac_objext` in
5972 *32-bit*)
5973 LD="${LD-ld} -32"
5974 ;;
5975 *N32*)
5976 LD="${LD-ld} -n32"
5977 ;;
5978 *64-bit*)
5979 LD="${LD-ld} -64"
5980 ;;
5981 esac
5982 fi
5983 fi
5984 rm -rf conftest*
5985 ;;
5986
5987 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5988 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5989 # Find out which ABI we are using.
5990 echo 'int i;' > conftest.$ac_ext
5991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5992 (eval $ac_compile) 2>&5
5993 ac_status=$?
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }; then
5996 case `/usr/bin/file conftest.o` in
5997 *32-bit*)
5998 case $host in
5999 x86_64-*kfreebsd*-gnu)
6000 LD="${LD-ld} -m elf_i386_fbsd"
6001 ;;
6002 x86_64-*linux*)
6003 LD="${LD-ld} -m elf_i386"
6004 ;;
6005 ppc64-*linux*|powerpc64-*linux*)
6006 LD="${LD-ld} -m elf32ppclinux"
6007 ;;
6008 s390x-*linux*)
6009 LD="${LD-ld} -m elf_s390"
6010 ;;
6011 sparc64-*linux*)
6012 LD="${LD-ld} -m elf32_sparc"
6013 ;;
6014 esac
6015 ;;
6016 *64-bit*)
6017 case $host in
6018 x86_64-*kfreebsd*-gnu)
6019 LD="${LD-ld} -m elf_x86_64_fbsd"
6020 ;;
6021 x86_64-*linux*)
6022 LD="${LD-ld} -m elf_x86_64"
6023 ;;
6024 ppc*-*linux*|powerpc*-*linux*)
6025 LD="${LD-ld} -m elf64ppc"
6026 ;;
6027 s390*-*linux*|s390*-*tpf*)
6028 LD="${LD-ld} -m elf64_s390"
6029 ;;
6030 sparc*-*linux*)
6031 LD="${LD-ld} -m elf64_sparc"
6032 ;;
6033 esac
6034 ;;
6035 esac
6036 fi
6037 rm -rf conftest*
6038 ;;
6039
6040 *-*-sco3.2v5*)
6041 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6042 SAVE_CFLAGS="$CFLAGS"
6043 CFLAGS="$CFLAGS -belf"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6045 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6046 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 ac_ext=c
6050 ac_cpp='$CPP $CPPFLAGS'
6051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6054
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057
6058 int
6059 main ()
6060 {
6061
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067 lt_cv_cc_needs_belf=yes
6068 else
6069 lt_cv_cc_needs_belf=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073 ac_ext=c
6074 ac_cpp='$CPP $CPPFLAGS'
6075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6078
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6081 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6082 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6083 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6084 CFLAGS="$SAVE_CFLAGS"
6085 fi
6086 ;;
6087 sparc*-*solaris*)
6088 # Find out which ABI we are using.
6089 echo 'int i;' > conftest.$ac_ext
6090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6091 (eval $ac_compile) 2>&5
6092 ac_status=$?
6093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6094 test $ac_status = 0; }; then
6095 case `/usr/bin/file conftest.o` in
6096 *64-bit*)
6097 case $lt_cv_prog_gnu_ld in
6098 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6099 *)
6100 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6101 LD="${LD-ld} -64"
6102 fi
6103 ;;
6104 esac
6105 ;;
6106 esac
6107 fi
6108 rm -rf conftest*
6109 ;;
6110 esac
6111
6112 need_locks="$enable_libtool_lock"
6113
6114
6115 case $host_os in
6116 rhapsody* | darwin*)
6117 if test -n "$ac_tool_prefix"; then
6118 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6119 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$DSYMUTIL"; then
6126 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6146 if test -n "$DSYMUTIL"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6148 $as_echo "$DSYMUTIL" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 fi
6156 if test -z "$ac_cv_prog_DSYMUTIL"; then
6157 ac_ct_DSYMUTIL=$DSYMUTIL
6158 # Extract the first word of "dsymutil", so it can be a program name with args.
6159 set dummy dsymutil; ac_word=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6164 else
6165 if test -n "$ac_ct_DSYMUTIL"; then
6166 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6167 else
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6169 for as_dir in $PATH
6170 do
6171 IFS=$as_save_IFS
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 break 2
6178 fi
6179 done
6180 done
6181 IFS=$as_save_IFS
6182
6183 fi
6184 fi
6185 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6186 if test -n "$ac_ct_DSYMUTIL"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6188 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6189 else
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6192 fi
6193
6194 if test "x$ac_ct_DSYMUTIL" = x; then
6195 DSYMUTIL=":"
6196 else
6197 case $cross_compiling:$ac_tool_warned in
6198 yes:)
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6201 ac_tool_warned=yes ;;
6202 esac
6203 DSYMUTIL=$ac_ct_DSYMUTIL
6204 fi
6205 else
6206 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6207 fi
6208
6209 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6211 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$NMEDIT"; then
6218 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 NMEDIT=$ac_cv_prog_NMEDIT
6238 if test -n "$NMEDIT"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6240 $as_echo "$NMEDIT" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246
6247 fi
6248 if test -z "$ac_cv_prog_NMEDIT"; then
6249 ac_ct_NMEDIT=$NMEDIT
6250 # Extract the first word of "nmedit", so it can be a program name with args.
6251 set dummy nmedit; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$ac_ct_NMEDIT"; then
6258 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6270 fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6278 if test -n "$ac_ct_NMEDIT"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6280 $as_echo "$ac_ct_NMEDIT" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286 if test "x$ac_ct_NMEDIT" = x; then
6287 NMEDIT=":"
6288 else
6289 case $cross_compiling:$ac_tool_warned in
6290 yes:)
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6293 ac_tool_warned=yes ;;
6294 esac
6295 NMEDIT=$ac_ct_NMEDIT
6296 fi
6297 else
6298 NMEDIT="$ac_cv_prog_NMEDIT"
6299 fi
6300
6301 if test -n "$ac_tool_prefix"; then
6302 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_LIPO+set}" = set; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$LIPO"; then
6310 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 LIPO=$ac_cv_prog_LIPO
6330 if test -n "$LIPO"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6332 $as_echo "$LIPO" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338
6339 fi
6340 if test -z "$ac_cv_prog_LIPO"; then
6341 ac_ct_LIPO=$LIPO
6342 # Extract the first word of "lipo", so it can be a program name with args.
6343 set dummy lipo; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 if test -n "$ac_ct_LIPO"; then
6350 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355 IFS=$as_save_IFS
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_ac_ct_LIPO="lipo"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 break 2
6362 fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6370 if test -n "$ac_ct_LIPO"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6372 $as_echo "$ac_ct_LIPO" >&6; }
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378 if test "x$ac_ct_LIPO" = x; then
6379 LIPO=":"
6380 else
6381 case $cross_compiling:$ac_tool_warned in
6382 yes:)
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6385 ac_tool_warned=yes ;;
6386 esac
6387 LIPO=$ac_ct_LIPO
6388 fi
6389 else
6390 LIPO="$ac_cv_prog_LIPO"
6391 fi
6392
6393 if test -n "$ac_tool_prefix"; then
6394 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6395 set dummy ${ac_tool_prefix}otool; ac_word=$2
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 if test -n "$OTOOL"; then
6402 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 OTOOL=$ac_cv_prog_OTOOL
6422 if test -n "$OTOOL"; then
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6424 $as_echo "$OTOOL" >&6; }
6425 else
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430
6431 fi
6432 if test -z "$ac_cv_prog_OTOOL"; then
6433 ac_ct_OTOOL=$OTOOL
6434 # Extract the first word of "otool", so it can be a program name with args.
6435 set dummy otool; ac_word=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
6440 else
6441 if test -n "$ac_ct_OTOOL"; then
6442 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_ac_ct_OTOOL="otool"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6462 if test -n "$ac_ct_OTOOL"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6464 $as_echo "$ac_ct_OTOOL" >&6; }
6465 else
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470 if test "x$ac_ct_OTOOL" = x; then
6471 OTOOL=":"
6472 else
6473 case $cross_compiling:$ac_tool_warned in
6474 yes:)
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6477 ac_tool_warned=yes ;;
6478 esac
6479 OTOOL=$ac_ct_OTOOL
6480 fi
6481 else
6482 OTOOL="$ac_cv_prog_OTOOL"
6483 fi
6484
6485 if test -n "$ac_tool_prefix"; then
6486 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6487 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$OTOOL64"; then
6494 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 OTOOL64=$ac_cv_prog_OTOOL64
6514 if test -n "$OTOOL64"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6516 $as_echo "$OTOOL64" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_OTOOL64"; then
6525 ac_ct_OTOOL64=$OTOOL64
6526 # Extract the first word of "otool64", so it can be a program name with args.
6527 set dummy otool64; ac_word=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 if test -n "$ac_ct_OTOOL64"; then
6534 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539 IFS=$as_save_IFS
6540 test -z "$as_dir" && as_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543 ac_cv_prog_ac_ct_OTOOL64="otool64"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 break 2
6546 fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6554 if test -n "$ac_ct_OTOOL64"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6556 $as_echo "$ac_ct_OTOOL64" >&6; }
6557 else
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561
6562 if test "x$ac_ct_OTOOL64" = x; then
6563 OTOOL64=":"
6564 else
6565 case $cross_compiling:$ac_tool_warned in
6566 yes:)
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6569 ac_tool_warned=yes ;;
6570 esac
6571 OTOOL64=$ac_ct_OTOOL64
6572 fi
6573 else
6574 OTOOL64="$ac_cv_prog_OTOOL64"
6575 fi
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6604 $as_echo_n "checking for -single_module linker flag... " >&6; }
6605 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 lt_cv_apple_cc_single_mod=no
6609 if test -z "${LT_MULTI_MODULE}"; then
6610 # By default we will add the -single_module flag. You can override
6611 # by either setting the environment variable LT_MULTI_MODULE
6612 # non-empty at configure time, or by adding -multi_module to the
6613 # link flags.
6614 rm -rf libconftest.dylib*
6615 echo "int foo(void){return 1;}" > conftest.c
6616 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6617 -dynamiclib -Wl,-single_module conftest.c" >&5
6618 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6619 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6620 _lt_result=$?
6621 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6622 lt_cv_apple_cc_single_mod=yes
6623 else
6624 cat conftest.err >&5
6625 fi
6626 rm -rf libconftest.dylib*
6627 rm -f conftest.*
6628 fi
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6631 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6633 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6634 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6636 else
6637 lt_cv_ld_exported_symbols_list=no
6638 save_LDFLAGS=$LDFLAGS
6639 echo "_main" > conftest.sym
6640 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6643
6644 int
6645 main ()
6646 {
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 if ac_fn_c_try_link "$LINENO"; then :
6653 lt_cv_ld_exported_symbols_list=yes
6654 else
6655 lt_cv_ld_exported_symbols_list=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext conftest.$ac_ext
6659 LDFLAGS="$save_LDFLAGS"
6660
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6663 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6664 case $host_os in
6665 rhapsody* | darwin1.[012])
6666 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6667 darwin1.*)
6668 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6669 darwin*) # darwin 5.x on
6670 # if running on 10.5 or later, the deployment target defaults
6671 # to the OS version, if on x86, and 10.4, the deployment
6672 # target defaults to 10.4. Don't you love it?
6673 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6674 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6675 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6676 10.[012]*)
6677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6678 10.*)
6679 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6680 esac
6681 ;;
6682 esac
6683 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6684 _lt_dar_single_mod='$single_module'
6685 fi
6686 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6687 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6688 else
6689 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6690 fi
6691 if test "$DSYMUTIL" != ":"; then
6692 _lt_dsymutil='~$DSYMUTIL $lib || :'
6693 else
6694 _lt_dsymutil=
6695 fi
6696 ;;
6697 esac
6698
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6706 # On Suns, sometimes $CPP names a directory.
6707 if test -n "$CPP" && test -d "$CPP"; then
6708 CPP=
6709 fi
6710 if test -z "$CPP"; then
6711 if test "${ac_cv_prog_CPP+set}" = set; then :
6712 $as_echo_n "(cached) " >&6
6713 else
6714 # Double quotes because CPP needs to be expanded
6715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6716 do
6717 ac_preproc_ok=false
6718 for ac_c_preproc_warn_flag in '' yes
6719 do
6720 # Use a header file that comes with gcc, so configuring glibc
6721 # with a fresh cross-compiler works.
6722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6723 # <limits.h> exists even on freestanding compilers.
6724 # On the NeXT, cc -E runs the code through the compiler's parser,
6725 # not just through cpp. "Syntax error" is here to catch this case.
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #ifdef __STDC__
6729 # include <limits.h>
6730 #else
6731 # include <assert.h>
6732 #endif
6733 Syntax error
6734 _ACEOF
6735 if ac_fn_c_try_cpp "$LINENO"; then :
6736
6737 else
6738 # Broken: fails on valid input.
6739 continue
6740 fi
6741 rm -f conftest.err conftest.i conftest.$ac_ext
6742
6743 # OK, works on sane cases. Now check whether nonexistent headers
6744 # can be detected and how.
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <ac_nonexistent.h>
6748 _ACEOF
6749 if ac_fn_c_try_cpp "$LINENO"; then :
6750 # Broken: success on invalid input.
6751 continue
6752 else
6753 # Passes both tests.
6754 ac_preproc_ok=:
6755 break
6756 fi
6757 rm -f conftest.err conftest.i conftest.$ac_ext
6758
6759 done
6760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6761 rm -f conftest.i conftest.err conftest.$ac_ext
6762 if $ac_preproc_ok; then :
6763 break
6764 fi
6765
6766 done
6767 ac_cv_prog_CPP=$CPP
6768
6769 fi
6770 CPP=$ac_cv_prog_CPP
6771 else
6772 ac_cv_prog_CPP=$CPP
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6775 $as_echo "$CPP" >&6; }
6776 ac_preproc_ok=false
6777 for ac_c_preproc_warn_flag in '' yes
6778 do
6779 # Use a header file that comes with gcc, so configuring glibc
6780 # with a fresh cross-compiler works.
6781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6782 # <limits.h> exists even on freestanding compilers.
6783 # On the NeXT, cc -E runs the code through the compiler's parser,
6784 # not just through cpp. "Syntax error" is here to catch this case.
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #ifdef __STDC__
6788 # include <limits.h>
6789 #else
6790 # include <assert.h>
6791 #endif
6792 Syntax error
6793 _ACEOF
6794 if ac_fn_c_try_cpp "$LINENO"; then :
6795
6796 else
6797 # Broken: fails on valid input.
6798 continue
6799 fi
6800 rm -f conftest.err conftest.i conftest.$ac_ext
6801
6802 # OK, works on sane cases. Now check whether nonexistent headers
6803 # can be detected and how.
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <ac_nonexistent.h>
6807 _ACEOF
6808 if ac_fn_c_try_cpp "$LINENO"; then :
6809 # Broken: success on invalid input.
6810 continue
6811 else
6812 # Passes both tests.
6813 ac_preproc_ok=:
6814 break
6815 fi
6816 rm -f conftest.err conftest.i conftest.$ac_ext
6817
6818 done
6819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6820 rm -f conftest.i conftest.err conftest.$ac_ext
6821 if $ac_preproc_ok; then :
6822
6823 else
6824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6826 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6827 See \`config.log' for more details" "$LINENO" 5 ; }
6828 fi
6829
6830 ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6838 $as_echo_n "checking for ANSI C header files... " >&6; }
6839 if test "${ac_cv_header_stdc+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <stdlib.h>
6845 #include <stdarg.h>
6846 #include <string.h>
6847 #include <float.h>
6848
6849 int
6850 main ()
6851 {
6852
6853 ;
6854 return 0;
6855 }
6856 _ACEOF
6857 if ac_fn_c_try_compile "$LINENO"; then :
6858 ac_cv_header_stdc=yes
6859 else
6860 ac_cv_header_stdc=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6863
6864 if test $ac_cv_header_stdc = yes; then
6865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h. */
6868 #include <string.h>
6869
6870 _ACEOF
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872 $EGREP "memchr" >/dev/null 2>&1; then :
6873
6874 else
6875 ac_cv_header_stdc=no
6876 fi
6877 rm -f conftest*
6878
6879 fi
6880
6881 if test $ac_cv_header_stdc = yes; then
6882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <stdlib.h>
6886
6887 _ACEOF
6888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6889 $EGREP "free" >/dev/null 2>&1; then :
6890
6891 else
6892 ac_cv_header_stdc=no
6893 fi
6894 rm -f conftest*
6895
6896 fi
6897
6898 if test $ac_cv_header_stdc = yes; then
6899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6900 if test "$cross_compiling" = yes; then :
6901 :
6902 else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6905 #include <ctype.h>
6906 #include <stdlib.h>
6907 #if ((' ' & 0x0FF) == 0x020)
6908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6910 #else
6911 # define ISLOWER(c) \
6912 (('a' <= (c) && (c) <= 'i') \
6913 || ('j' <= (c) && (c) <= 'r') \
6914 || ('s' <= (c) && (c) <= 'z'))
6915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6916 #endif
6917
6918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6919 int
6920 main ()
6921 {
6922 int i;
6923 for (i = 0; i < 256; i++)
6924 if (XOR (islower (i), ISLOWER (i))
6925 || toupper (i) != TOUPPER (i))
6926 return 2;
6927 return 0;
6928 }
6929 _ACEOF
6930 if ac_fn_c_try_run "$LINENO"; then :
6931
6932 else
6933 ac_cv_header_stdc=no
6934 fi
6935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6936 conftest.$ac_objext conftest.beam conftest.$ac_ext
6937 fi
6938
6939 fi
6940 fi
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6942 $as_echo "$ac_cv_header_stdc" >&6; }
6943 if test $ac_cv_header_stdc = yes; then
6944
6945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6946
6947 fi
6948
6949 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6950 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6951 inttypes.h stdint.h unistd.h
6952 do :
6953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6954 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6955 "
6956 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6957 cat >>confdefs.h <<_ACEOF
6958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6959 _ACEOF
6960
6961 fi
6962
6963 done
6964
6965
6966 for ac_header in dlfcn.h
6967 do :
6968 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6969 "
6970 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6971 cat >>confdefs.h <<_ACEOF
6972 #define HAVE_DLFCN_H 1
6973 _ACEOF
6974
6975 fi
6976
6977 done
6978
6979
6980
6981 # Set options
6982
6983
6984
6985 enable_dlopen=no
6986
6987
6988 enable_win32_dll=no
6989
6990
6991 # Check whether --enable-shared was given.
6992 if test "${enable_shared+set}" = set; then :
6993 enableval=$enable_shared; p=${PACKAGE-default}
6994 case $enableval in
6995 yes) enable_shared=yes ;;
6996 no) enable_shared=no ;;
6997 *)
6998 enable_shared=no
6999 # Look at the argument we got. We use all the common list separators.
7000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7001 for pkg in $enableval; do
7002 IFS="$lt_save_ifs"
7003 if test "X$pkg" = "X$p"; then
7004 enable_shared=yes
7005 fi
7006 done
7007 IFS="$lt_save_ifs"
7008 ;;
7009 esac
7010 else
7011 enable_shared=yes
7012 fi
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022 # Check whether --enable-static was given.
7023 if test "${enable_static+set}" = set; then :
7024 enableval=$enable_static; p=${PACKAGE-default}
7025 case $enableval in
7026 yes) enable_static=yes ;;
7027 no) enable_static=no ;;
7028 *)
7029 enable_static=no
7030 # Look at the argument we got. We use all the common list separators.
7031 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7032 for pkg in $enableval; do
7033 IFS="$lt_save_ifs"
7034 if test "X$pkg" = "X$p"; then
7035 enable_static=yes
7036 fi
7037 done
7038 IFS="$lt_save_ifs"
7039 ;;
7040 esac
7041 else
7042 enable_static=yes
7043 fi
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054 # Check whether --with-pic was given.
7055 if test "${with_pic+set}" = set; then :
7056 withval=$with_pic; pic_mode="$withval"
7057 else
7058 pic_mode=default
7059 fi
7060
7061
7062 test -z "$pic_mode" && pic_mode=default
7063
7064
7065
7066
7067
7068
7069
7070 # Check whether --enable-fast-install was given.
7071 if test "${enable_fast_install+set}" = set; then :
7072 enableval=$enable_fast_install; p=${PACKAGE-default}
7073 case $enableval in
7074 yes) enable_fast_install=yes ;;
7075 no) enable_fast_install=no ;;
7076 *)
7077 enable_fast_install=no
7078 # Look at the argument we got. We use all the common list separators.
7079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7080 for pkg in $enableval; do
7081 IFS="$lt_save_ifs"
7082 if test "X$pkg" = "X$p"; then
7083 enable_fast_install=yes
7084 fi
7085 done
7086 IFS="$lt_save_ifs"
7087 ;;
7088 esac
7089 else
7090 enable_fast_install=yes
7091 fi
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 # This can be used to rebuild libtool when needed
7104 LIBTOOL_DEPS="$ltmain"
7105
7106 # Always use our own libtool.
7107 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 test -z "$LN_S" && LN_S="ln -s"
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148 if test -n "${ZSH_VERSION+set}" ; then
7149 setopt NO_GLOB_SUBST
7150 fi
7151
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7153 $as_echo_n "checking for objdir... " >&6; }
7154 if test "${lt_cv_objdir+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157 rm -f .libs 2>/dev/null
7158 mkdir .libs 2>/dev/null
7159 if test -d .libs; then
7160 lt_cv_objdir=.libs
7161 else
7162 # MS-DOS does not allow filenames that begin with a dot.
7163 lt_cv_objdir=_libs
7164 fi
7165 rmdir .libs 2>/dev/null
7166 fi
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7168 $as_echo "$lt_cv_objdir" >&6; }
7169 objdir=$lt_cv_objdir
7170
7171
7172
7173
7174
7175 cat >>confdefs.h <<_ACEOF
7176 #define LT_OBJDIR "$lt_cv_objdir/"
7177 _ACEOF
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195 case $host_os in
7196 aix3*)
7197 # AIX sometimes has problems with the GCC collect2 program. For some
7198 # reason, if we set the COLLECT_NAMES environment variable, the problems
7199 # vanish in a puff of smoke.
7200 if test "X${COLLECT_NAMES+set}" != Xset; then
7201 COLLECT_NAMES=
7202 export COLLECT_NAMES
7203 fi
7204 ;;
7205 esac
7206
7207 # Sed substitution that helps us do robust quoting. It backslashifies
7208 # metacharacters that are still active within double-quoted strings.
7209 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7210
7211 # Same as above, but do not quote variable references.
7212 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7213
7214 # Sed substitution to delay expansion of an escaped shell variable in a
7215 # double_quote_subst'ed string.
7216 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7217
7218 # Sed substitution to delay expansion of an escaped single quote.
7219 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7220
7221 # Sed substitution to avoid accidental globbing in evaled expressions
7222 no_glob_subst='s/\*/\\\*/g'
7223
7224 # Global variables:
7225 ofile=libtool
7226 can_build_shared=yes
7227
7228 # All known linkers require a `.a' archive for static linking (except MSVC,
7229 # which needs '.lib').
7230 libext=a
7231
7232 with_gnu_ld="$lt_cv_prog_gnu_ld"
7233
7234 old_CC="$CC"
7235 old_CFLAGS="$CFLAGS"
7236
7237 # Set sane defaults for various variables
7238 test -z "$CC" && CC=cc
7239 test -z "$LTCC" && LTCC=$CC
7240 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7241 test -z "$LD" && LD=ld
7242 test -z "$ac_objext" && ac_objext=o
7243
7244 for cc_temp in $compiler""; do
7245 case $cc_temp in
7246 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7247 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7248 \-*) ;;
7249 *) break;;
7250 esac
7251 done
7252 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7253
7254
7255 # Only perform the check for file, if the check method requires it
7256 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7257 case $deplibs_check_method in
7258 file_magic*)
7259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7261 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7262 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 case $MAGIC_CMD in
7266 [\\/*] | ?:[\\/]*)
7267 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7268 ;;
7269 *)
7270 lt_save_MAGIC_CMD="$MAGIC_CMD"
7271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7273 for ac_dir in $ac_dummy; do
7274 IFS="$lt_save_ifs"
7275 test -z "$ac_dir" && ac_dir=.
7276 if test -f $ac_dir/${ac_tool_prefix}file; then
7277 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7278 if test -n "$file_magic_test_file"; then
7279 case $deplibs_check_method in
7280 "file_magic "*)
7281 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7283 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7284 $EGREP "$file_magic_regex" > /dev/null; then
7285 :
7286 else
7287 cat <<_LT_EOF 1>&2
7288
7289 *** Warning: the command libtool uses to detect shared libraries,
7290 *** $file_magic_cmd, produces output that libtool cannot recognize.
7291 *** The result is that libtool may fail to recognize shared libraries
7292 *** as such. This will affect the creation of libtool libraries that
7293 *** depend on shared libraries, but programs linked with such libtool
7294 *** libraries will work regardless of this problem. Nevertheless, you
7295 *** may want to report the problem to your system manager and/or to
7296 *** bug-libtool@gnu.org
7297
7298 _LT_EOF
7299 fi ;;
7300 esac
7301 fi
7302 break
7303 fi
7304 done
7305 IFS="$lt_save_ifs"
7306 MAGIC_CMD="$lt_save_MAGIC_CMD"
7307 ;;
7308 esac
7309 fi
7310
7311 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7312 if test -n "$MAGIC_CMD"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7314 $as_echo "$MAGIC_CMD" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7318 fi
7319
7320
7321
7322
7323
7324 if test -z "$lt_cv_path_MAGIC_CMD"; then
7325 if test -n "$ac_tool_prefix"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7327 $as_echo_n "checking for file... " >&6; }
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 case $MAGIC_CMD in
7332 [\\/*] | ?:[\\/]*)
7333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334 ;;
7335 *)
7336 lt_save_MAGIC_CMD="$MAGIC_CMD"
7337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339 for ac_dir in $ac_dummy; do
7340 IFS="$lt_save_ifs"
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/file; then
7343 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344 if test -n "$file_magic_test_file"; then
7345 case $deplibs_check_method in
7346 "file_magic "*)
7347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350 $EGREP "$file_magic_regex" > /dev/null; then
7351 :
7352 else
7353 cat <<_LT_EOF 1>&2
7354
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such. This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem. Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7363
7364 _LT_EOF
7365 fi ;;
7366 esac
7367 fi
7368 break
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 MAGIC_CMD="$lt_save_MAGIC_CMD"
7373 ;;
7374 esac
7375 fi
7376
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7380 $as_echo "$MAGIC_CMD" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 else
7388 MAGIC_CMD=:
7389 fi
7390 fi
7391
7392 fi
7393 ;;
7394 esac
7395
7396 # Use C for the default configuration in the libtool script
7397
7398 lt_save_CC="$CC"
7399 ac_ext=c
7400 ac_cpp='$CPP $CPPFLAGS'
7401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404
7405
7406 # Source file extension for C test sources.
7407 ac_ext=c
7408
7409 # Object file extension for compiled C test sources.
7410 objext=o
7411 objext=$objext
7412
7413 # Code to be used in simple compile tests
7414 lt_simple_compile_test_code="int some_variable = 0;"
7415
7416 # Code to be used in simple link tests
7417 lt_simple_link_test_code='int main(){return(0);}'
7418
7419
7420
7421
7422
7423
7424
7425 # If no C compiler was specified, use CC.
7426 LTCC=${LTCC-"$CC"}
7427
7428 # If no C compiler flags were specified, use CFLAGS.
7429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7430
7431 # Allow CC to be a program name with arguments.
7432 compiler=$CC
7433
7434 # Save the default compiler, since it gets overwritten when the other
7435 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7436 compiler_DEFAULT=$CC
7437
7438 # save warnings/boilerplate of simple test code
7439 ac_outfile=conftest.$ac_objext
7440 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7441 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7442 _lt_compiler_boilerplate=`cat conftest.err`
7443 $RM conftest*
7444
7445 ac_outfile=conftest.$ac_objext
7446 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7447 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7448 _lt_linker_boilerplate=`cat conftest.err`
7449 $RM -r conftest*
7450
7451
7452 if test -n "$compiler"; then
7453
7454 lt_prog_compiler_no_builtin_flag=
7455
7456 if test "$GCC" = yes; then
7457 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7460 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7461 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 lt_cv_prog_compiler_rtti_exceptions=no
7465 ac_outfile=conftest.$ac_objext
7466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7467 lt_compiler_flag="-fno-rtti -fno-exceptions"
7468 # Insert the option either (1) after the last *FLAGS variable, or
7469 # (2) before a word containing "conftest.", or (3) at the end.
7470 # Note that $ac_compile itself does not contain backslashes and begins
7471 # with a dollar sign (not a hyphen), so the echo should work correctly.
7472 # The option is referenced via a variable to avoid confusing sed.
7473 lt_compile=`echo "$ac_compile" | $SED \
7474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7476 -e 's:$: $lt_compiler_flag:'`
7477 (eval echo "\"\$as_me:7477: $lt_compile\"" >&5)
7478 (eval "$lt_compile" 2>conftest.err)
7479 ac_status=$?
7480 cat conftest.err >&5
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 if (exit $ac_status) && test -s "$ac_outfile"; then
7483 # The compiler can only warn and ignore the option if not recognized
7484 # So say no if there are warnings other than the usual output.
7485 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7488 lt_cv_prog_compiler_rtti_exceptions=yes
7489 fi
7490 fi
7491 $RM conftest*
7492
7493 fi
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7495 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7496
7497 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7498 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7499 else
7500 :
7501 fi
7502
7503 fi
7504
7505
7506
7507
7508
7509
7510 lt_prog_compiler_wl=
7511 lt_prog_compiler_pic=
7512 lt_prog_compiler_static=
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7515 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7516
7517 if test "$GCC" = yes; then
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_static='-static'
7520
7521 case $host_os in
7522 aix*)
7523 # All AIX code is PIC.
7524 if test "$host_cpu" = ia64; then
7525 # AIX 5 now supports IA64 processor
7526 lt_prog_compiler_static='-Bstatic'
7527 fi
7528 ;;
7529
7530 amigaos*)
7531 case $host_cpu in
7532 powerpc)
7533 # see comment about AmigaOS4 .so support
7534 lt_prog_compiler_pic='-fPIC'
7535 ;;
7536 m68k)
7537 # FIXME: we need at least 68020 code to build shared libraries, but
7538 # adding the `-m68020' flag to GCC prevents building anything better,
7539 # like `-m68040'.
7540 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7541 ;;
7542 esac
7543 ;;
7544
7545 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7546 # PIC is the default for these OSes.
7547 ;;
7548
7549 mingw* | cygwin* | pw32* | os2* | cegcc*)
7550 # This hack is so that the source file can tell whether it is being
7551 # built for inclusion in a dll (and should export symbols for example).
7552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7553 # (--disable-auto-import) libraries
7554 lt_prog_compiler_pic='-DDLL_EXPORT'
7555 ;;
7556
7557 darwin* | rhapsody*)
7558 # PIC is the default on this platform
7559 # Common symbols not allowed in MH_DYLIB files
7560 lt_prog_compiler_pic='-fno-common'
7561 ;;
7562
7563 hpux*)
7564 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7565 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7566 # sets the default TLS model and affects inlining.
7567 case $host_cpu in
7568 hppa*64*)
7569 # +Z the default
7570 ;;
7571 *)
7572 lt_prog_compiler_pic='-fPIC'
7573 ;;
7574 esac
7575 ;;
7576
7577 interix[3-9]*)
7578 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7579 # Instead, we relocate shared libraries at runtime.
7580 ;;
7581
7582 msdosdjgpp*)
7583 # Just because we use GCC doesn't mean we suddenly get shared libraries
7584 # on systems that don't support them.
7585 lt_prog_compiler_can_build_shared=no
7586 enable_shared=no
7587 ;;
7588
7589 *nto* | *qnx*)
7590 # QNX uses GNU C++, but need to define -shared option too, otherwise
7591 # it will coredump.
7592 lt_prog_compiler_pic='-fPIC -shared'
7593 ;;
7594
7595 sysv4*MP*)
7596 if test -d /usr/nec; then
7597 lt_prog_compiler_pic=-Kconform_pic
7598 fi
7599 ;;
7600
7601 *)
7602 lt_prog_compiler_pic='-fPIC'
7603 ;;
7604 esac
7605 else
7606 # PORTME Check for flag to pass linker flags through the system compiler.
7607 case $host_os in
7608 aix*)
7609 lt_prog_compiler_wl='-Wl,'
7610 if test "$host_cpu" = ia64; then
7611 # AIX 5 now supports IA64 processor
7612 lt_prog_compiler_static='-Bstatic'
7613 else
7614 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7615 fi
7616 ;;
7617
7618 mingw* | cygwin* | pw32* | os2* | cegcc*)
7619 # This hack is so that the source file can tell whether it is being
7620 # built for inclusion in a dll (and should export symbols for example).
7621 lt_prog_compiler_pic='-DDLL_EXPORT'
7622 ;;
7623
7624 hpux9* | hpux10* | hpux11*)
7625 lt_prog_compiler_wl='-Wl,'
7626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7627 # not for PA HP-UX.
7628 case $host_cpu in
7629 hppa*64*|ia64*)
7630 # +Z the default
7631 ;;
7632 *)
7633 lt_prog_compiler_pic='+Z'
7634 ;;
7635 esac
7636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7637 lt_prog_compiler_static='${wl}-a ${wl}archive'
7638 ;;
7639
7640 irix5* | irix6* | nonstopux*)
7641 lt_prog_compiler_wl='-Wl,'
7642 # PIC (with -KPIC) is the default.
7643 lt_prog_compiler_static='-non_shared'
7644 ;;
7645
7646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7647 case $cc_basename in
7648 # old Intel for x86_64 which still supported -KPIC.
7649 ecc*)
7650 lt_prog_compiler_wl='-Wl,'
7651 lt_prog_compiler_pic='-KPIC'
7652 lt_prog_compiler_static='-static'
7653 ;;
7654 # icc used to be incompatible with GCC.
7655 # ICC 10 doesn't accept -KPIC any more.
7656 icc* | ifort*)
7657 lt_prog_compiler_wl='-Wl,'
7658 lt_prog_compiler_pic='-fPIC'
7659 lt_prog_compiler_static='-static'
7660 ;;
7661 # Lahey Fortran 8.1.
7662 lf95*)
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_pic='--shared'
7665 lt_prog_compiler_static='--static'
7666 ;;
7667 pgcc* | pgf77* | pgf90* | pgf95*)
7668 # Portland Group compilers (*not* the Pentium gcc compiler,
7669 # which looks to be a dead project)
7670 lt_prog_compiler_wl='-Wl,'
7671 lt_prog_compiler_pic='-fpic'
7672 lt_prog_compiler_static='-Bstatic'
7673 ;;
7674 ccc*)
7675 lt_prog_compiler_wl='-Wl,'
7676 # All Alpha code is PIC.
7677 lt_prog_compiler_static='-non_shared'
7678 ;;
7679 xl*)
7680 # IBM XL C 8.0/Fortran 10.1 on PPC
7681 lt_prog_compiler_wl='-Wl,'
7682 lt_prog_compiler_pic='-qpic'
7683 lt_prog_compiler_static='-qstaticlink'
7684 ;;
7685 *)
7686 case `$CC -V 2>&1 | sed 5q` in
7687 *Sun\ C*)
7688 # Sun C 5.9
7689 lt_prog_compiler_pic='-KPIC'
7690 lt_prog_compiler_static='-Bstatic'
7691 lt_prog_compiler_wl='-Wl,'
7692 ;;
7693 *Sun\ F*)
7694 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7695 lt_prog_compiler_pic='-KPIC'
7696 lt_prog_compiler_static='-Bstatic'
7697 lt_prog_compiler_wl=''
7698 ;;
7699 esac
7700 ;;
7701 esac
7702 ;;
7703
7704 newsos6)
7705 lt_prog_compiler_pic='-KPIC'
7706 lt_prog_compiler_static='-Bstatic'
7707 ;;
7708
7709 *nto* | *qnx*)
7710 # QNX uses GNU C++, but need to define -shared option too, otherwise
7711 # it will coredump.
7712 lt_prog_compiler_pic='-fPIC -shared'
7713 ;;
7714
7715 osf3* | osf4* | osf5*)
7716 lt_prog_compiler_wl='-Wl,'
7717 # All OSF/1 code is PIC.
7718 lt_prog_compiler_static='-non_shared'
7719 ;;
7720
7721 rdos*)
7722 lt_prog_compiler_static='-non_shared'
7723 ;;
7724
7725 solaris*)
7726 lt_prog_compiler_pic='-KPIC'
7727 lt_prog_compiler_static='-Bstatic'
7728 case $cc_basename in
7729 f77* | f90* | f95*)
7730 lt_prog_compiler_wl='-Qoption ld ';;
7731 *)
7732 lt_prog_compiler_wl='-Wl,';;
7733 esac
7734 ;;
7735
7736 sunos4*)
7737 lt_prog_compiler_wl='-Qoption ld '
7738 lt_prog_compiler_pic='-PIC'
7739 lt_prog_compiler_static='-Bstatic'
7740 ;;
7741
7742 sysv4 | sysv4.2uw2* | sysv4.3*)
7743 lt_prog_compiler_wl='-Wl,'
7744 lt_prog_compiler_pic='-KPIC'
7745 lt_prog_compiler_static='-Bstatic'
7746 ;;
7747
7748 sysv4*MP*)
7749 if test -d /usr/nec ;then
7750 lt_prog_compiler_pic='-Kconform_pic'
7751 lt_prog_compiler_static='-Bstatic'
7752 fi
7753 ;;
7754
7755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7756 lt_prog_compiler_wl='-Wl,'
7757 lt_prog_compiler_pic='-KPIC'
7758 lt_prog_compiler_static='-Bstatic'
7759 ;;
7760
7761 unicos*)
7762 lt_prog_compiler_wl='-Wl,'
7763 lt_prog_compiler_can_build_shared=no
7764 ;;
7765
7766 uts4*)
7767 lt_prog_compiler_pic='-pic'
7768 lt_prog_compiler_static='-Bstatic'
7769 ;;
7770
7771 *)
7772 lt_prog_compiler_can_build_shared=no
7773 ;;
7774 esac
7775 fi
7776
7777 case $host_os in
7778 # For platforms which do not support PIC, -DPIC is meaningless:
7779 *djgpp*)
7780 lt_prog_compiler_pic=
7781 ;;
7782 *)
7783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7784 ;;
7785 esac
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7787 $as_echo "$lt_prog_compiler_pic" >&6; }
7788
7789
7790
7791
7792
7793
7794 #
7795 # Check to make sure the PIC flag actually works.
7796 #
7797 if test -n "$lt_prog_compiler_pic"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7800 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 lt_cv_prog_compiler_pic_works=no
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7807 # Insert the option either (1) after the last *FLAGS variable, or
7808 # (2) before a word containing "conftest.", or (3) at the end.
7809 # Note that $ac_compile itself does not contain backslashes and begins
7810 # with a dollar sign (not a hyphen), so the echo should work correctly.
7811 # The option is referenced via a variable to avoid confusing sed.
7812 lt_compile=`echo "$ac_compile" | $SED \
7813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815 -e 's:$: $lt_compiler_flag:'`
7816 (eval echo "\"\$as_me:7816: $lt_compile\"" >&5)
7817 (eval "$lt_compile" 2>conftest.err)
7818 ac_status=$?
7819 cat conftest.err >&5
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 if (exit $ac_status) && test -s "$ac_outfile"; then
7822 # The compiler can only warn and ignore the option if not recognized
7823 # So say no if there are warnings other than the usual output.
7824 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7827 lt_cv_prog_compiler_pic_works=yes
7828 fi
7829 fi
7830 $RM conftest*
7831
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7834 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7835
7836 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7837 case $lt_prog_compiler_pic in
7838 "" | " "*) ;;
7839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7840 esac
7841 else
7842 lt_prog_compiler_pic=
7843 lt_prog_compiler_can_build_shared=no
7844 fi
7845
7846 fi
7847
7848
7849
7850
7851
7852
7853 #
7854 # Check to make sure the static flag actually works.
7855 #
7856 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7858 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7859 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 lt_cv_prog_compiler_static_works=no
7863 save_LDFLAGS="$LDFLAGS"
7864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7867 # The linker can only warn and ignore the option if not recognized
7868 # So say no if there are warnings
7869 if test -s conftest.err; then
7870 # Append any errors to the config.log.
7871 cat conftest.err 1>&5
7872 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874 if diff conftest.exp conftest.er2 >/dev/null; then
7875 lt_cv_prog_compiler_static_works=yes
7876 fi
7877 else
7878 lt_cv_prog_compiler_static_works=yes
7879 fi
7880 fi
7881 $RM -r conftest*
7882 LDFLAGS="$save_LDFLAGS"
7883
7884 fi
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7886 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7887
7888 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7889 :
7890 else
7891 lt_prog_compiler_static=
7892 fi
7893
7894
7895
7896
7897
7898
7899
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 lt_cv_prog_compiler_c_o=no
7906 $RM -r conftest 2>/dev/null
7907 mkdir conftest
7908 cd conftest
7909 mkdir out
7910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7911
7912 lt_compiler_flag="-o out/conftest2.$ac_objext"
7913 # Insert the option either (1) after the last *FLAGS variable, or
7914 # (2) before a word containing "conftest.", or (3) at the end.
7915 # Note that $ac_compile itself does not contain backslashes and begins
7916 # with a dollar sign (not a hyphen), so the echo should work correctly.
7917 lt_compile=`echo "$ac_compile" | $SED \
7918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7920 -e 's:$: $lt_compiler_flag:'`
7921 (eval echo "\"\$as_me:7921: $lt_compile\"" >&5)
7922 (eval "$lt_compile" 2>out/conftest.err)
7923 ac_status=$?
7924 cat out/conftest.err >&5
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7927 then
7928 # The compiler can only warn and ignore the option if not recognized
7929 # So say no if there are warnings
7930 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7933 lt_cv_prog_compiler_c_o=yes
7934 fi
7935 fi
7936 chmod u+w . 2>&5
7937 $RM conftest*
7938 # SGI C++ compiler will create directory out/ii_files/ for
7939 # template instantiation
7940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7941 $RM out/* && rmdir out
7942 cd ..
7943 $RM -r conftest
7944 $RM conftest*
7945
7946 fi
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7949
7950
7951
7952
7953
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7956 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7957 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 lt_cv_prog_compiler_c_o=no
7961 $RM -r conftest 2>/dev/null
7962 mkdir conftest
7963 cd conftest
7964 mkdir out
7965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966
7967 lt_compiler_flag="-o out/conftest2.$ac_objext"
7968 # Insert the option either (1) after the last *FLAGS variable, or
7969 # (2) before a word containing "conftest.", or (3) at the end.
7970 # Note that $ac_compile itself does not contain backslashes and begins
7971 # with a dollar sign (not a hyphen), so the echo should work correctly.
7972 lt_compile=`echo "$ac_compile" | $SED \
7973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975 -e 's:$: $lt_compiler_flag:'`
7976 (eval echo "\"\$as_me:7976: $lt_compile\"" >&5)
7977 (eval "$lt_compile" 2>out/conftest.err)
7978 ac_status=$?
7979 cat out/conftest.err >&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7982 then
7983 # The compiler can only warn and ignore the option if not recognized
7984 # So say no if there are warnings
7985 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7988 lt_cv_prog_compiler_c_o=yes
7989 fi
7990 fi
7991 chmod u+w . 2>&5
7992 $RM conftest*
7993 # SGI C++ compiler will create directory out/ii_files/ for
7994 # template instantiation
7995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7996 $RM out/* && rmdir out
7997 cd ..
7998 $RM -r conftest
7999 $RM conftest*
8000
8001 fi
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8003 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8004
8005
8006
8007
8008 hard_links="nottested"
8009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8010 # do not overwrite the value of need_locks provided by the user
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8012 $as_echo_n "checking if we can lock with hard links... " >&6; }
8013 hard_links=yes
8014 $RM conftest*
8015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8016 touch conftest.a
8017 ln conftest.a conftest.b 2>&5 || hard_links=no
8018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8020 $as_echo "$hard_links" >&6; }
8021 if test "$hard_links" = no; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8023 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8024 need_locks=warn
8025 fi
8026 else
8027 need_locks=no
8028 fi
8029
8030
8031
8032
8033
8034
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8037
8038 runpath_var=
8039 allow_undefined_flag=
8040 always_export_symbols=no
8041 archive_cmds=
8042 archive_expsym_cmds=
8043 compiler_needs_object=no
8044 enable_shared_with_static_runtimes=no
8045 export_dynamic_flag_spec=
8046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8047 hardcode_automatic=no
8048 hardcode_direct=no
8049 hardcode_direct_absolute=no
8050 hardcode_libdir_flag_spec=
8051 hardcode_libdir_flag_spec_ld=
8052 hardcode_libdir_separator=
8053 hardcode_minus_L=no
8054 hardcode_shlibpath_var=unsupported
8055 inherit_rpath=no
8056 link_all_deplibs=unknown
8057 module_cmds=
8058 module_expsym_cmds=
8059 old_archive_from_new_cmds=
8060 old_archive_from_expsyms_cmds=
8061 thread_safe_flag_spec=
8062 whole_archive_flag_spec=
8063 # include_expsyms should be a list of space-separated symbols to be *always*
8064 # included in the symbol list
8065 include_expsyms=
8066 # exclude_expsyms can be an extended regexp of symbols to exclude
8067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8069 # as well as any symbol that contains `d'.
8070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8072 # platforms (ab)use it in PIC code, but their linkers get confused if
8073 # the symbol is explicitly referenced. Since portable code cannot
8074 # rely on this symbol name, it's probably fine to never include it in
8075 # preloaded symbol tables.
8076 # Exclude shared library initialization/finalization symbols.
8077 extract_expsyms_cmds=
8078
8079 case $host_os in
8080 cygwin* | mingw* | pw32* | cegcc*)
8081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8082 # When not using gcc, we currently assume that we are using
8083 # Microsoft Visual C++.
8084 if test "$GCC" != yes; then
8085 with_gnu_ld=no
8086 fi
8087 ;;
8088 interix*)
8089 # we just hope/assume this is gcc and not c89 (= MSVC++)
8090 with_gnu_ld=yes
8091 ;;
8092 openbsd*)
8093 with_gnu_ld=no
8094 ;;
8095 linux* | k*bsd*-gnu)
8096 link_all_deplibs=no
8097 ;;
8098 esac
8099
8100 ld_shlibs=yes
8101 if test "$with_gnu_ld" = yes; then
8102 # If archive_cmds runs LD, not CC, wlarc should be empty
8103 wlarc='${wl}'
8104
8105 # Set some defaults for GNU ld with shared library support. These
8106 # are reset later if shared libraries are not supported. Putting them
8107 # here allows them to be overridden if necessary.
8108 runpath_var=LD_RUN_PATH
8109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8110 export_dynamic_flag_spec='${wl}--export-dynamic'
8111 # ancient GNU ld didn't support --whole-archive et. al.
8112 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8113 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8114 else
8115 whole_archive_flag_spec=
8116 fi
8117 supports_anon_versioning=no
8118 case `$LD -v 2>&1` in
8119 *GNU\ gold*) supports_anon_versioning=yes ;;
8120 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8121 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8122 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8123 *\ 2.11.*) ;; # other 2.11 versions
8124 *) supports_anon_versioning=yes ;;
8125 esac
8126
8127 # See if GNU ld supports shared libraries.
8128 case $host_os in
8129 aix[3-9]*)
8130 # On AIX/PPC, the GNU linker is very broken
8131 if test "$host_cpu" != ia64; then
8132 ld_shlibs=no
8133 cat <<_LT_EOF 1>&2
8134
8135 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8136 *** to be unable to reliably create shared libraries on AIX.
8137 *** Therefore, libtool is disabling shared libraries support. If you
8138 *** really care for shared libraries, you may want to modify your PATH
8139 *** so that a non-GNU linker is found, and then restart.
8140
8141 _LT_EOF
8142 fi
8143 ;;
8144
8145 amigaos*)
8146 case $host_cpu in
8147 powerpc)
8148 # see comment about AmigaOS4 .so support
8149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 archive_expsym_cmds=''
8151 ;;
8152 m68k)
8153 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)'
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_minus_L=yes
8156 ;;
8157 esac
8158 ;;
8159
8160 beos*)
8161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8162 allow_undefined_flag=unsupported
8163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8164 # support --undefined. This deserves some investigation. FIXME
8165 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166 else
8167 ld_shlibs=no
8168 fi
8169 ;;
8170
8171 cygwin* | mingw* | pw32* | cegcc*)
8172 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8173 # as there is no search path for DLLs.
8174 hardcode_libdir_flag_spec='-L$libdir'
8175 allow_undefined_flag=unsupported
8176 always_export_symbols=no
8177 enable_shared_with_static_runtimes=yes
8178 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8179
8180 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8182 # If the export-symbols file already is a .def file (1st line
8183 # is EXPORTS), use it as is; otherwise, prepend...
8184 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8185 cp $export_symbols $output_objdir/$soname.def;
8186 else
8187 echo EXPORTS > $output_objdir/$soname.def;
8188 cat $export_symbols >> $output_objdir/$soname.def;
8189 fi~
8190 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8191 else
8192 ld_shlibs=no
8193 fi
8194 ;;
8195
8196 interix[3-9]*)
8197 hardcode_direct=no
8198 hardcode_shlibpath_var=no
8199 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8200 export_dynamic_flag_spec='${wl}-E'
8201 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8202 # Instead, shared libraries are loaded at an image base (0x10000000 by
8203 # default) and relocated if they conflict, which is a slow very memory
8204 # consuming and fragmenting process. To avoid this, we pick a random,
8205 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8206 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8207 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8208 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'
8209 ;;
8210
8211 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8212 tmp_diet=no
8213 if test "$host_os" = linux-dietlibc; then
8214 case $cc_basename in
8215 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8216 esac
8217 fi
8218 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8219 && test "$tmp_diet" = no
8220 then
8221 tmp_addflag=
8222 tmp_sharedflag='-shared'
8223 case $cc_basename,$host_cpu in
8224 pgcc*) # Portland Group C compiler
8225 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'
8226 tmp_addflag=' $pic_flag'
8227 ;;
8228 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8229 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'
8230 tmp_addflag=' $pic_flag -Mnomain' ;;
8231 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8232 tmp_addflag=' -i_dynamic' ;;
8233 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8234 tmp_addflag=' -i_dynamic -nofor_main' ;;
8235 ifc* | ifort*) # Intel Fortran compiler
8236 tmp_addflag=' -nofor_main' ;;
8237 lf95*) # Lahey Fortran 8.1
8238 whole_archive_flag_spec=
8239 tmp_sharedflag='--shared' ;;
8240 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8241 tmp_sharedflag='-qmkshrobj'
8242 tmp_addflag= ;;
8243 esac
8244 case `$CC -V 2>&1 | sed 5q` in
8245 *Sun\ C*) # Sun C 5.9
8246 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'
8247 compiler_needs_object=yes
8248 tmp_sharedflag='-G' ;;
8249 *Sun\ F*) # Sun Fortran 8.3
8250 tmp_sharedflag='-G' ;;
8251 esac
8252 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253
8254 if test "x$supports_anon_versioning" = xyes; then
8255 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8256 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8257 echo "local: *; };" >> $output_objdir/$libname.ver~
8258 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8259 fi
8260
8261 case $cc_basename in
8262 xlf*)
8263 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8264 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8265 hardcode_libdir_flag_spec=
8266 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8267 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8268 if test "x$supports_anon_versioning" = xyes; then
8269 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8271 echo "local: *; };" >> $output_objdir/$libname.ver~
8272 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8273 fi
8274 ;;
8275 esac
8276 else
8277 ld_shlibs=no
8278 fi
8279 ;;
8280
8281 netbsd* | netbsdelf*-gnu)
8282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8283 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8284 wlarc=
8285 else
8286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288 fi
8289 ;;
8290
8291 solaris*)
8292 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8293 ld_shlibs=no
8294 cat <<_LT_EOF 1>&2
8295
8296 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8297 *** create shared libraries on Solaris systems. Therefore, libtool
8298 *** is disabling shared libraries support. We urge you to upgrade GNU
8299 *** binutils to release 2.9.1 or newer. Another option is to modify
8300 *** your PATH or compiler configuration so that the native linker is
8301 *** used, and then restart.
8302
8303 _LT_EOF
8304 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307 else
8308 ld_shlibs=no
8309 fi
8310 ;;
8311
8312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8313 case `$LD -v 2>&1` in
8314 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8315 ld_shlibs=no
8316 cat <<_LT_EOF 1>&2
8317
8318 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8319 *** reliably create shared libraries on SCO systems. Therefore, libtool
8320 *** is disabling shared libraries support. We urge you to upgrade GNU
8321 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8322 *** your PATH or compiler configuration so that the native linker is
8323 *** used, and then restart.
8324
8325 _LT_EOF
8326 ;;
8327 *)
8328 # For security reasons, it is highly recommended that you always
8329 # use absolute paths for naming shared libraries, and exclude the
8330 # DT_RUNPATH tag from executables and libraries. But doing so
8331 # requires that you compile everything twice, which is a pain.
8332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8336 else
8337 ld_shlibs=no
8338 fi
8339 ;;
8340 esac
8341 ;;
8342
8343 sunos4*)
8344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8345 wlarc=
8346 hardcode_direct=yes
8347 hardcode_shlibpath_var=no
8348 ;;
8349
8350 *)
8351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8354 else
8355 ld_shlibs=no
8356 fi
8357 ;;
8358 esac
8359
8360 if test "$ld_shlibs" = no; then
8361 runpath_var=
8362 hardcode_libdir_flag_spec=
8363 export_dynamic_flag_spec=
8364 whole_archive_flag_spec=
8365 fi
8366 else
8367 # PORTME fill in a description of your system's linker (not GNU ld)
8368 case $host_os in
8369 aix3*)
8370 allow_undefined_flag=unsupported
8371 always_export_symbols=yes
8372 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'
8373 # Note: this linker hardcodes the directories in LIBPATH if there
8374 # are no directories specified by -L.
8375 hardcode_minus_L=yes
8376 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8377 # Neither direct hardcoding nor static linking is supported with a
8378 # broken collect2.
8379 hardcode_direct=unsupported
8380 fi
8381 ;;
8382
8383 aix[4-9]*)
8384 if test "$host_cpu" = ia64; then
8385 # On IA64, the linker does run time linking by default, so we don't
8386 # have to do anything special.
8387 aix_use_runtimelinking=no
8388 exp_sym_flag='-Bexport'
8389 no_entry_flag=""
8390 else
8391 # If we're using GNU nm, then we don't want the "-C" option.
8392 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8393 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8394 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'
8395 else
8396 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'
8397 fi
8398 aix_use_runtimelinking=no
8399
8400 # Test if we are trying to use run time linking or normal
8401 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8402 # need to do runtime linking.
8403 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8404 for ld_flag in $LDFLAGS; do
8405 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8406 aix_use_runtimelinking=yes
8407 break
8408 fi
8409 done
8410 ;;
8411 esac
8412
8413 exp_sym_flag='-bexport'
8414 no_entry_flag='-bnoentry'
8415 fi
8416
8417 # When large executables or shared objects are built, AIX ld can
8418 # have problems creating the table of contents. If linking a library
8419 # or program results in "error TOC overflow" add -mminimal-toc to
8420 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8421 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8422
8423 archive_cmds=''
8424 hardcode_direct=yes
8425 hardcode_direct_absolute=yes
8426 hardcode_libdir_separator=':'
8427 link_all_deplibs=yes
8428 file_list_spec='${wl}-f,'
8429
8430 if test "$GCC" = yes; then
8431 case $host_os in aix4.[012]|aix4.[012].*)
8432 # We only want to do this on AIX 4.2 and lower, the check
8433 # below for broken collect2 doesn't work under 4.3+
8434 collect2name=`${CC} -print-prog-name=collect2`
8435 if test -f "$collect2name" &&
8436 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8437 then
8438 # We have reworked collect2
8439 :
8440 else
8441 # We have old collect2
8442 hardcode_direct=unsupported
8443 # It fails to find uninstalled libraries when the uninstalled
8444 # path is not listed in the libpath. Setting hardcode_minus_L
8445 # to unsupported forces relinking
8446 hardcode_minus_L=yes
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_libdir_separator=
8449 fi
8450 ;;
8451 esac
8452 shared_flag='-shared'
8453 if test "$aix_use_runtimelinking" = yes; then
8454 shared_flag="$shared_flag "'${wl}-G'
8455 fi
8456 link_all_deplibs=no
8457 else
8458 # not using gcc
8459 if test "$host_cpu" = ia64; then
8460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8461 # chokes on -Wl,-G. The following line is correct:
8462 shared_flag='-G'
8463 else
8464 if test "$aix_use_runtimelinking" = yes; then
8465 shared_flag='${wl}-G'
8466 else
8467 shared_flag='${wl}-bM:SRE'
8468 fi
8469 fi
8470 fi
8471
8472 export_dynamic_flag_spec='${wl}-bexpall'
8473 # It seems that -bexpall does not export symbols beginning with
8474 # underscore (_), so it is better to generate a list of symbols to export.
8475 always_export_symbols=yes
8476 if test "$aix_use_runtimelinking" = yes; then
8477 # Warning - without using the other runtime loading flags (-brtl),
8478 # -berok will link without error, but may produce a broken library.
8479 allow_undefined_flag='-berok'
8480 # Determine the default libpath from the value encoded in an
8481 # empty executable.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484
8485 int
8486 main ()
8487 {
8488
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8494
8495 lt_aix_libpath_sed='
8496 /Import File Strings/,/^$/ {
8497 /^0/ {
8498 s/^0 *\(.*\)$/\1/
8499 p
8500 }
8501 }'
8502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 # Check for a 64-bit object if we didn't find anything.
8504 if test -z "$aix_libpath"; then
8505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 fi
8507 fi
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8511
8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513 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"
8514 else
8515 if test "$host_cpu" = ia64; then
8516 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8517 allow_undefined_flag="-z nodefs"
8518 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"
8519 else
8520 # Determine the default libpath from the value encoded in an
8521 # empty executable.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524
8525 int
8526 main ()
8527 {
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_link "$LINENO"; then :
8534
8535 lt_aix_libpath_sed='
8536 /Import File Strings/,/^$/ {
8537 /^0/ {
8538 s/^0 *\(.*\)$/\1/
8539 p
8540 }
8541 }'
8542 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8543 # Check for a 64-bit object if we didn't find anything.
8544 if test -z "$aix_libpath"; then
8545 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8546 fi
8547 fi
8548 rm -f core conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8551
8552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8553 # Warning - without using the other run time loading flags,
8554 # -berok will link without error, but may produce a broken library.
8555 no_undefined_flag=' ${wl}-bernotok'
8556 allow_undefined_flag=' ${wl}-berok'
8557 # Exported symbols can be pulled into shared objects from archives
8558 whole_archive_flag_spec='$convenience'
8559 archive_cmds_need_lc=yes
8560 # This is similar to how AIX traditionally builds its shared libraries.
8561 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'
8562 fi
8563 fi
8564 ;;
8565
8566 amigaos*)
8567 case $host_cpu in
8568 powerpc)
8569 # see comment about AmigaOS4 .so support
8570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571 archive_expsym_cmds=''
8572 ;;
8573 m68k)
8574 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)'
8575 hardcode_libdir_flag_spec='-L$libdir'
8576 hardcode_minus_L=yes
8577 ;;
8578 esac
8579 ;;
8580
8581 bsdi[45]*)
8582 export_dynamic_flag_spec=-rdynamic
8583 ;;
8584
8585 cygwin* | mingw* | pw32* | cegcc*)
8586 # When not using gcc, we currently assume that we are using
8587 # Microsoft Visual C++.
8588 # hardcode_libdir_flag_spec is actually meaningless, as there is
8589 # no search path for DLLs.
8590 hardcode_libdir_flag_spec=' '
8591 allow_undefined_flag=unsupported
8592 # Tell ltmain to make .lib files, not .a files.
8593 libext=lib
8594 # Tell ltmain to make .dll files, not .so files.
8595 shrext_cmds=".dll"
8596 # FIXME: Setting linknames here is a bad hack.
8597 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8598 # The linker will automatically build a .lib file if we build a DLL.
8599 old_archive_from_new_cmds='true'
8600 # FIXME: Should let the user specify the lib program.
8601 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8602 fix_srcfile_path='`cygpath -w "$srcfile"`'
8603 enable_shared_with_static_runtimes=yes
8604 ;;
8605
8606 darwin* | rhapsody*)
8607
8608
8609 archive_cmds_need_lc=no
8610 hardcode_direct=no
8611 hardcode_automatic=yes
8612 hardcode_shlibpath_var=unsupported
8613 whole_archive_flag_spec=''
8614 link_all_deplibs=yes
8615 allow_undefined_flag="$_lt_dar_allow_undefined"
8616 case $cc_basename in
8617 ifort*) _lt_dar_can_shared=yes ;;
8618 *) _lt_dar_can_shared=$GCC ;;
8619 esac
8620 if test "$_lt_dar_can_shared" = "yes"; then
8621 output_verbose_link_cmd=echo
8622 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8623 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8624 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}"
8625 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}"
8626
8627 else
8628 ld_shlibs=no
8629 fi
8630
8631 ;;
8632
8633 dgux*)
8634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635 hardcode_libdir_flag_spec='-L$libdir'
8636 hardcode_shlibpath_var=no
8637 ;;
8638
8639 freebsd1*)
8640 ld_shlibs=no
8641 ;;
8642
8643 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8644 # support. Future versions do this automatically, but an explicit c++rt0.o
8645 # does not break anything, and helps significantly (at the cost of a little
8646 # extra space).
8647 freebsd2.2*)
8648 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8649 hardcode_libdir_flag_spec='-R$libdir'
8650 hardcode_direct=yes
8651 hardcode_shlibpath_var=no
8652 ;;
8653
8654 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8655 freebsd2*)
8656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8657 hardcode_direct=yes
8658 hardcode_minus_L=yes
8659 hardcode_shlibpath_var=no
8660 ;;
8661
8662 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8663 freebsd* | dragonfly*)
8664 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8665 hardcode_libdir_flag_spec='-R$libdir'
8666 hardcode_direct=yes
8667 hardcode_shlibpath_var=no
8668 ;;
8669
8670 hpux9*)
8671 if test "$GCC" = yes; then
8672 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'
8673 else
8674 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'
8675 fi
8676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8677 hardcode_libdir_separator=:
8678 hardcode_direct=yes
8679
8680 # hardcode_minus_L: Not really in the search PATH,
8681 # but as the default location of the library.
8682 hardcode_minus_L=yes
8683 export_dynamic_flag_spec='${wl}-E'
8684 ;;
8685
8686 hpux10*)
8687 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8689 else
8690 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8691 fi
8692 if test "$with_gnu_ld" = no; then
8693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8694 hardcode_libdir_flag_spec_ld='+b $libdir'
8695 hardcode_libdir_separator=:
8696 hardcode_direct=yes
8697 hardcode_direct_absolute=yes
8698 export_dynamic_flag_spec='${wl}-E'
8699 # hardcode_minus_L: Not really in the search PATH,
8700 # but as the default location of the library.
8701 hardcode_minus_L=yes
8702 fi
8703 ;;
8704
8705 hpux11*)
8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8707 case $host_cpu in
8708 hppa*64*)
8709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8710 ;;
8711 ia64*)
8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8713 ;;
8714 *)
8715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8716 ;;
8717 esac
8718 else
8719 case $host_cpu in
8720 hppa*64*)
8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8722 ;;
8723 ia64*)
8724 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8725 ;;
8726 *)
8727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 ;;
8729 esac
8730 fi
8731 if test "$with_gnu_ld" = no; then
8732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733 hardcode_libdir_separator=:
8734
8735 case $host_cpu in
8736 hppa*64*|ia64*)
8737 hardcode_direct=no
8738 hardcode_shlibpath_var=no
8739 ;;
8740 *)
8741 hardcode_direct=yes
8742 hardcode_direct_absolute=yes
8743 export_dynamic_flag_spec='${wl}-E'
8744
8745 # hardcode_minus_L: Not really in the search PATH,
8746 # but as the default location of the library.
8747 hardcode_minus_L=yes
8748 ;;
8749 esac
8750 fi
8751 ;;
8752
8753 irix5* | irix6* | nonstopux*)
8754 if test "$GCC" = yes; then
8755 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'
8756 # Try to use the -exported_symbol ld option, if it does not
8757 # work, assume that -exports_file does not work either and
8758 # implicitly export all symbols.
8759 save_LDFLAGS="$LDFLAGS"
8760 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 int foo(void) {}
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766 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'
8767
8768 fi
8769 rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8771 LDFLAGS="$save_LDFLAGS"
8772 else
8773 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'
8774 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'
8775 fi
8776 archive_cmds_need_lc='no'
8777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778 hardcode_libdir_separator=:
8779 inherit_rpath=yes
8780 link_all_deplibs=yes
8781 ;;
8782
8783 netbsd* | netbsdelf*-gnu)
8784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8786 else
8787 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8788 fi
8789 hardcode_libdir_flag_spec='-R$libdir'
8790 hardcode_direct=yes
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 newsos6)
8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 hardcode_direct=yes
8797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798 hardcode_libdir_separator=:
8799 hardcode_shlibpath_var=no
8800 ;;
8801
8802 *nto* | *qnx*)
8803 ;;
8804
8805 openbsd*)
8806 if test -f /usr/libexec/ld.so; then
8807 hardcode_direct=yes
8808 hardcode_shlibpath_var=no
8809 hardcode_direct_absolute=yes
8810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8811 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8812 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8813 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8814 export_dynamic_flag_spec='${wl}-E'
8815 else
8816 case $host_os in
8817 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819 hardcode_libdir_flag_spec='-R$libdir'
8820 ;;
8821 *)
8822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824 ;;
8825 esac
8826 fi
8827 else
8828 ld_shlibs=no
8829 fi
8830 ;;
8831
8832 os2*)
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_minus_L=yes
8835 allow_undefined_flag=unsupported
8836 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'
8837 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8838 ;;
8839
8840 osf3*)
8841 if test "$GCC" = yes; then
8842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8843 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'
8844 else
8845 allow_undefined_flag=' -expect_unresolved \*'
8846 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'
8847 fi
8848 archive_cmds_need_lc='no'
8849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850 hardcode_libdir_separator=:
8851 ;;
8852
8853 osf4* | osf5*) # as osf3* with the addition of -msym flag
8854 if test "$GCC" = yes; then
8855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8856 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'
8857 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8858 else
8859 allow_undefined_flag=' -expect_unresolved \*'
8860 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'
8861 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~
8862 $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'
8863
8864 # Both c and cxx compiler support -rpath directly
8865 hardcode_libdir_flag_spec='-rpath $libdir'
8866 fi
8867 archive_cmds_need_lc='no'
8868 hardcode_libdir_separator=:
8869 ;;
8870
8871 solaris*)
8872 no_undefined_flag=' -z defs'
8873 if test "$GCC" = yes; then
8874 wlarc='${wl}'
8875 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8877 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8878 else
8879 case `$CC -V 2>&1` in
8880 *"Compilers 5.0"*)
8881 wlarc=''
8882 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8884 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8885 ;;
8886 *)
8887 wlarc='${wl}'
8888 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8889 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8890 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8891 ;;
8892 esac
8893 fi
8894 hardcode_libdir_flag_spec='-R$libdir'
8895 hardcode_shlibpath_var=no
8896 case $host_os in
8897 solaris2.[0-5] | solaris2.[0-5].*) ;;
8898 *)
8899 # The compiler driver will combine and reorder linker options,
8900 # but understands `-z linker_flag'. GCC discards it without `$wl',
8901 # but is careful enough not to reorder.
8902 # Supported since Solaris 2.6 (maybe 2.5.1?)
8903 if test "$GCC" = yes; then
8904 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8905 else
8906 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8907 fi
8908 ;;
8909 esac
8910 link_all_deplibs=yes
8911 ;;
8912
8913 sunos4*)
8914 if test "x$host_vendor" = xsequent; then
8915 # Use $CC to link under sequent, because it throws in some extra .o
8916 # files that make .init and .fini sections work.
8917 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8918 else
8919 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8920 fi
8921 hardcode_libdir_flag_spec='-L$libdir'
8922 hardcode_direct=yes
8923 hardcode_minus_L=yes
8924 hardcode_shlibpath_var=no
8925 ;;
8926
8927 sysv4)
8928 case $host_vendor in
8929 sni)
8930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931 hardcode_direct=yes # is this really true???
8932 ;;
8933 siemens)
8934 ## LD is ld it makes a PLAMLIB
8935 ## CC just makes a GrossModule.
8936 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8937 reload_cmds='$CC -r -o $output$reload_objs'
8938 hardcode_direct=no
8939 ;;
8940 motorola)
8941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8943 ;;
8944 esac
8945 runpath_var='LD_RUN_PATH'
8946 hardcode_shlibpath_var=no
8947 ;;
8948
8949 sysv4.3*)
8950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8951 hardcode_shlibpath_var=no
8952 export_dynamic_flag_spec='-Bexport'
8953 ;;
8954
8955 sysv4*MP*)
8956 if test -d /usr/nec; then
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_shlibpath_var=no
8959 runpath_var=LD_RUN_PATH
8960 hardcode_runpath_var=yes
8961 ld_shlibs=yes
8962 fi
8963 ;;
8964
8965 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8966 no_undefined_flag='${wl}-z,text'
8967 archive_cmds_need_lc=no
8968 hardcode_shlibpath_var=no
8969 runpath_var='LD_RUN_PATH'
8970
8971 if test "$GCC" = yes; then
8972 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8973 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8974 else
8975 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8976 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8977 fi
8978 ;;
8979
8980 sysv5* | sco3.2v5* | sco5v6*)
8981 # Note: We can NOT use -z defs as we might desire, because we do not
8982 # link with -lc, and that would cause any symbols used from libc to
8983 # always be unresolved, which means just about no library would
8984 # ever link correctly. If we're not using GNU ld we use -z text
8985 # though, which does catch some bad symbols but isn't as heavy-handed
8986 # as -z defs.
8987 no_undefined_flag='${wl}-z,text'
8988 allow_undefined_flag='${wl}-z,nodefs'
8989 archive_cmds_need_lc=no
8990 hardcode_shlibpath_var=no
8991 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8992 hardcode_libdir_separator=':'
8993 link_all_deplibs=yes
8994 export_dynamic_flag_spec='${wl}-Bexport'
8995 runpath_var='LD_RUN_PATH'
8996
8997 if test "$GCC" = yes; then
8998 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9000 else
9001 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9002 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9003 fi
9004 ;;
9005
9006 uts4*)
9007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_shlibpath_var=no
9010 ;;
9011
9012 *)
9013 ld_shlibs=no
9014 ;;
9015 esac
9016
9017 if test x$host_vendor = xsni; then
9018 case $host in
9019 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9020 export_dynamic_flag_spec='${wl}-Blargedynsym'
9021 ;;
9022 esac
9023 fi
9024 fi
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9027 $as_echo "$ld_shlibs" >&6; }
9028 test "$ld_shlibs" = no && can_build_shared=no
9029
9030 with_gnu_ld=$with_gnu_ld
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046 #
9047 # Do we need to explicitly link libc?
9048 #
9049 case "x$archive_cmds_need_lc" in
9050 x|xyes)
9051 # Assume -lc should be added
9052 archive_cmds_need_lc=yes
9053
9054 if test "$enable_shared" = yes && test "$GCC" = yes; then
9055 case $archive_cmds in
9056 *'~'*)
9057 # FIXME: we may have to deal with multi-command sequences.
9058 ;;
9059 '$CC '*)
9060 # Test whether the compiler implicitly links with -lc since on some
9061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9062 # to ld, don't add -lc before -lgcc.
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9064 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9065 $RM conftest*
9066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067
9068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9069 (eval $ac_compile) 2>&5
9070 ac_status=$?
9071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9072 test $ac_status = 0; } 2>conftest.err; then
9073 soname=conftest
9074 lib=conftest
9075 libobjs=conftest.$ac_objext
9076 deplibs=
9077 wl=$lt_prog_compiler_wl
9078 pic_flag=$lt_prog_compiler_pic
9079 compiler_flags=-v
9080 linker_flags=-v
9081 verstring=
9082 output_objdir=.
9083 libname=conftest
9084 lt_save_allow_undefined_flag=$allow_undefined_flag
9085 allow_undefined_flag=
9086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9087 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9088 ac_status=$?
9089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090 test $ac_status = 0; }
9091 then
9092 archive_cmds_need_lc=no
9093 else
9094 archive_cmds_need_lc=yes
9095 fi
9096 allow_undefined_flag=$lt_save_allow_undefined_flag
9097 else
9098 cat conftest.err 1>&5
9099 fi
9100 $RM conftest*
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9102 $as_echo "$archive_cmds_need_lc" >&6; }
9103 ;;
9104 esac
9105 fi
9106 ;;
9107 esac
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
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9266 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9267
9268 if test "$GCC" = yes; then
9269 case $host_os in
9270 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9271 *) lt_awk_arg="/^libraries:/" ;;
9272 esac
9273 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9274 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9275 # if the path contains ";" then we assume it to be the separator
9276 # otherwise default to the standard path separator (i.e. ":") - it is
9277 # assumed that no part of a normal pathname contains ";" but that should
9278 # okay in the real world where ";" in dirpaths is itself problematic.
9279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9280 else
9281 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9282 fi
9283 # Ok, now we have the path, separated by spaces, we can step through it
9284 # and add multilib dir if necessary.
9285 lt_tmp_lt_search_path_spec=
9286 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9287 for lt_sys_path in $lt_search_path_spec; do
9288 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9290 else
9291 test -d "$lt_sys_path" && \
9292 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9293 fi
9294 done
9295 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9296 BEGIN {RS=" "; FS="/|\n";} {
9297 lt_foo="";
9298 lt_count=0;
9299 for (lt_i = NF; lt_i > 0; lt_i--) {
9300 if ($lt_i != "" && $lt_i != ".") {
9301 if ($lt_i == "..") {
9302 lt_count++;
9303 } else {
9304 if (lt_count == 0) {
9305 lt_foo="/" $lt_i lt_foo;
9306 } else {
9307 lt_count--;
9308 }
9309 }
9310 }
9311 }
9312 if (lt_foo != "") { lt_freq[lt_foo]++; }
9313 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9314 }'`
9315 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9316 else
9317 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9318 fi
9319 library_names_spec=
9320 libname_spec='lib$name'
9321 soname_spec=
9322 shrext_cmds=".so"
9323 postinstall_cmds=
9324 postuninstall_cmds=
9325 finish_cmds=
9326 finish_eval=
9327 shlibpath_var=
9328 shlibpath_overrides_runpath=unknown
9329 version_type=none
9330 dynamic_linker="$host_os ld.so"
9331 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9332 need_lib_prefix=unknown
9333 hardcode_into_libs=no
9334
9335 # when you set need_version to no, make sure it does not cause -set_version
9336 # flags to be left without arguments
9337 need_version=unknown
9338
9339 case $host_os in
9340 aix3*)
9341 version_type=linux
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9343 shlibpath_var=LIBPATH
9344
9345 # AIX 3 has no versioning support, so we append a major version to the name.
9346 soname_spec='${libname}${release}${shared_ext}$major'
9347 ;;
9348
9349 aix[4-9]*)
9350 version_type=linux
9351 need_lib_prefix=no
9352 need_version=no
9353 hardcode_into_libs=yes
9354 if test "$host_cpu" = ia64; then
9355 # AIX 5 supports IA64
9356 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 else
9359 # With GCC up to 2.95.x, collect2 would create an import file
9360 # for dependence libraries. The import file would start with
9361 # the line `#! .'. This would cause the generated library to
9362 # depend on `.', always an invalid library. This was fixed in
9363 # development snapshots of GCC prior to 3.0.
9364 case $host_os in
9365 aix4 | aix4.[01] | aix4.[01].*)
9366 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9367 echo ' yes '
9368 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9369 :
9370 else
9371 can_build_shared=no
9372 fi
9373 ;;
9374 esac
9375 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9376 # soname into executable. Probably we can add versioning support to
9377 # collect2, so additional links can be useful in future.
9378 if test "$aix_use_runtimelinking" = yes; then
9379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9380 # instead of lib<name>.a to let people know that these are not
9381 # typical AIX shared libraries.
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 else
9384 # We preserve .a as extension for shared libraries through AIX4.2
9385 # and later when we are not doing run time linking.
9386 library_names_spec='${libname}${release}.a $libname.a'
9387 soname_spec='${libname}${release}${shared_ext}$major'
9388 fi
9389 shlibpath_var=LIBPATH
9390 fi
9391 ;;
9392
9393 amigaos*)
9394 case $host_cpu in
9395 powerpc)
9396 # Since July 2007 AmigaOS4 officially supports .so libraries.
9397 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 ;;
9400 m68k)
9401 library_names_spec='$libname.ixlibrary $libname.a'
9402 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9403 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'
9404 ;;
9405 esac
9406 ;;
9407
9408 beos*)
9409 library_names_spec='${libname}${shared_ext}'
9410 dynamic_linker="$host_os ld.so"
9411 shlibpath_var=LIBRARY_PATH
9412 ;;
9413
9414 bsdi[45]*)
9415 version_type=linux
9416 need_version=no
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9420 shlibpath_var=LD_LIBRARY_PATH
9421 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9422 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9423 # the default ld.so.conf also contains /usr/contrib/lib and
9424 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9425 # libtool to hard-code these into programs
9426 ;;
9427
9428 cygwin* | mingw* | pw32* | cegcc*)
9429 version_type=windows
9430 shrext_cmds=".dll"
9431 need_version=no
9432 need_lib_prefix=no
9433
9434 case $GCC,$host_os in
9435 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9436 library_names_spec='$libname.dll.a'
9437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9438 postinstall_cmds='base_file=`basename \${file}`~
9439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9440 dldir=$destdir/`dirname \$dlpath`~
9441 test -d \$dldir || mkdir -p \$dldir~
9442 $install_prog $dir/$dlname \$dldir/$dlname~
9443 chmod a+x \$dldir/$dlname~
9444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9446 fi'
9447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9448 dlpath=$dir/\$dldll~
9449 $RM \$dlpath'
9450 shlibpath_overrides_runpath=yes
9451
9452 case $host_os in
9453 cygwin*)
9454 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9455 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9456 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9457 ;;
9458 mingw* | cegcc*)
9459 # MinGW DLLs use traditional 'lib' prefix
9460 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9461 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9462 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9463 # It is most probably a Windows format PATH printed by
9464 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9465 # path with ; separators, and with drive letters. We can handle the
9466 # drive letters (cygwin fileutils understands them), so leave them,
9467 # especially as we might pass files found there to a mingw objdump,
9468 # which wouldn't understand a cygwinified path. Ahh.
9469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9470 else
9471 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9472 fi
9473 ;;
9474 pw32*)
9475 # pw32 DLLs use 'pw' prefix rather than 'lib'
9476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9477 ;;
9478 esac
9479 ;;
9480
9481 *)
9482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9483 ;;
9484 esac
9485 dynamic_linker='Win32 ld.exe'
9486 # FIXME: first we should search . and the directory the executable is in
9487 shlibpath_var=PATH
9488 ;;
9489
9490 darwin* | rhapsody*)
9491 dynamic_linker="$host_os dyld"
9492 version_type=darwin
9493 need_lib_prefix=no
9494 need_version=no
9495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9496 soname_spec='${libname}${release}${major}$shared_ext'
9497 shlibpath_overrides_runpath=yes
9498 shlibpath_var=DYLD_LIBRARY_PATH
9499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9500
9501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9503 ;;
9504
9505 dgux*)
9506 version_type=linux
9507 need_lib_prefix=no
9508 need_version=no
9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 shlibpath_var=LD_LIBRARY_PATH
9512 ;;
9513
9514 freebsd1*)
9515 dynamic_linker=no
9516 ;;
9517
9518 freebsd* | dragonfly*)
9519 # DragonFly does not have aout. When/if they implement a new
9520 # versioning mechanism, adjust this.
9521 if test -x /usr/bin/objformat; then
9522 objformat=`/usr/bin/objformat`
9523 else
9524 case $host_os in
9525 freebsd[123]*) objformat=aout ;;
9526 *) objformat=elf ;;
9527 esac
9528 fi
9529 version_type=freebsd-$objformat
9530 case $version_type in
9531 freebsd-elf*)
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9533 need_version=no
9534 need_lib_prefix=no
9535 ;;
9536 freebsd-*)
9537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9538 need_version=yes
9539 ;;
9540 esac
9541 shlibpath_var=LD_LIBRARY_PATH
9542 case $host_os in
9543 freebsd2*)
9544 shlibpath_overrides_runpath=yes
9545 ;;
9546 freebsd3.[01]* | freebsdelf3.[01]*)
9547 shlibpath_overrides_runpath=yes
9548 hardcode_into_libs=yes
9549 ;;
9550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9552 shlibpath_overrides_runpath=no
9553 hardcode_into_libs=yes
9554 ;;
9555 *) # from 4.6 on, and DragonFly
9556 shlibpath_overrides_runpath=yes
9557 hardcode_into_libs=yes
9558 ;;
9559 esac
9560 ;;
9561
9562 gnu*)
9563 version_type=linux
9564 need_lib_prefix=no
9565 need_version=no
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 hardcode_into_libs=yes
9570 ;;
9571
9572 hpux9* | hpux10* | hpux11*)
9573 # Give a soname corresponding to the major version so that dld.sl refuses to
9574 # link against other versions.
9575 version_type=sunos
9576 need_lib_prefix=no
9577 need_version=no
9578 case $host_cpu in
9579 ia64*)
9580 shrext_cmds='.so'
9581 hardcode_into_libs=yes
9582 dynamic_linker="$host_os dld.so"
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 soname_spec='${libname}${release}${shared_ext}$major'
9587 if test "X$HPUX_IA64_MODE" = X32; then
9588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9589 else
9590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9591 fi
9592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9593 ;;
9594 hppa*64*)
9595 shrext_cmds='.sl'
9596 hardcode_into_libs=yes
9597 dynamic_linker="$host_os dld.sl"
9598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9604 ;;
9605 *)
9606 shrext_cmds='.sl'
9607 dynamic_linker="$host_os dld.sl"
9608 shlibpath_var=SHLIB_PATH
9609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
9613 esac
9614 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9615 postinstall_cmds='chmod 555 $lib'
9616 ;;
9617
9618 interix[3-9]*)
9619 version_type=linux
9620 need_lib_prefix=no
9621 need_version=no
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9625 shlibpath_var=LD_LIBRARY_PATH
9626 shlibpath_overrides_runpath=no
9627 hardcode_into_libs=yes
9628 ;;
9629
9630 irix5* | irix6* | nonstopux*)
9631 case $host_os in
9632 nonstopux*) version_type=nonstopux ;;
9633 *)
9634 if test "$lt_cv_prog_gnu_ld" = yes; then
9635 version_type=linux
9636 else
9637 version_type=irix
9638 fi ;;
9639 esac
9640 need_lib_prefix=no
9641 need_version=no
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9644 case $host_os in
9645 irix5* | nonstopux*)
9646 libsuff= shlibsuff=
9647 ;;
9648 *)
9649 case $LD in # libtool.m4 will add one of these switches to LD
9650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9651 libsuff= shlibsuff= libmagic=32-bit;;
9652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9653 libsuff=32 shlibsuff=N32 libmagic=N32;;
9654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9656 *) libsuff= shlibsuff= libmagic=never-match;;
9657 esac
9658 ;;
9659 esac
9660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9661 shlibpath_overrides_runpath=no
9662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9664 hardcode_into_libs=yes
9665 ;;
9666
9667 # No shared lib support for Linux oldld, aout, or coff.
9668 linux*oldld* | linux*aout* | linux*coff*)
9669 dynamic_linker=no
9670 ;;
9671
9672 # This must be Linux ELF.
9673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9674 version_type=linux
9675 need_lib_prefix=no
9676 need_version=no
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678 soname_spec='${libname}${release}${shared_ext}$major'
9679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 shlibpath_overrides_runpath=no
9682 # Some binutils ld are patched to set DT_RUNPATH
9683 save_LDFLAGS=$LDFLAGS
9684 save_libdir=$libdir
9685 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9686 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689
9690 int
9691 main ()
9692 {
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9700 shlibpath_overrides_runpath=yes
9701 fi
9702 fi
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LDFLAGS=$save_LDFLAGS
9706 libdir=$save_libdir
9707
9708 # This implies no fast_install, which is unacceptable.
9709 # Some rework will be needed to allow for fast_install
9710 # before this can be enabled.
9711 hardcode_into_libs=yes
9712
9713 # Append ld.so.conf contents to the search path
9714 if test -f /etc/ld.so.conf; then
9715 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' ' '`
9716 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9717 fi
9718
9719 # We used to test for /lib/ld.so.1 and disable shared libraries on
9720 # powerpc, because MkLinux only supported shared libraries with the
9721 # GNU dynamic linker. Since this was broken with cross compilers,
9722 # most powerpc-linux boxes support dynamic linking these days and
9723 # people can always --disable-shared, the test was removed, and we
9724 # assume the GNU/Linux dynamic linker is in use.
9725 dynamic_linker='GNU/Linux ld.so'
9726 ;;
9727
9728 netbsdelf*-gnu)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9737 dynamic_linker='NetBSD ld.elf_so'
9738 ;;
9739
9740 netbsd*)
9741 version_type=sunos
9742 need_lib_prefix=no
9743 need_version=no
9744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9747 dynamic_linker='NetBSD (a.out) ld.so'
9748 else
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9750 soname_spec='${libname}${release}${shared_ext}$major'
9751 dynamic_linker='NetBSD ld.elf_so'
9752 fi
9753 shlibpath_var=LD_LIBRARY_PATH
9754 shlibpath_overrides_runpath=yes
9755 hardcode_into_libs=yes
9756 ;;
9757
9758 newsos6)
9759 version_type=linux
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes
9763 ;;
9764
9765 *nto* | *qnx*)
9766 version_type=qnx
9767 need_lib_prefix=no
9768 need_version=no
9769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 shlibpath_overrides_runpath=no
9773 hardcode_into_libs=yes
9774 dynamic_linker='ldqnx.so'
9775 ;;
9776
9777 openbsd*)
9778 version_type=sunos
9779 sys_lib_dlsearch_path_spec="/usr/lib"
9780 need_lib_prefix=no
9781 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9782 case $host_os in
9783 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9784 *) need_version=no ;;
9785 esac
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9790 case $host_os in
9791 openbsd2.[89] | openbsd2.[89].*)
9792 shlibpath_overrides_runpath=no
9793 ;;
9794 *)
9795 shlibpath_overrides_runpath=yes
9796 ;;
9797 esac
9798 else
9799 shlibpath_overrides_runpath=yes
9800 fi
9801 ;;
9802
9803 os2*)
9804 libname_spec='$name'
9805 shrext_cmds=".dll"
9806 need_lib_prefix=no
9807 library_names_spec='$libname${shared_ext} $libname.a'
9808 dynamic_linker='OS/2 ld.exe'
9809 shlibpath_var=LIBPATH
9810 ;;
9811
9812 osf3* | osf4* | osf5*)
9813 version_type=osf
9814 need_lib_prefix=no
9815 need_version=no
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 shlibpath_var=LD_LIBRARY_PATH
9819 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9820 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9821 ;;
9822
9823 rdos*)
9824 dynamic_linker=no
9825 ;;
9826
9827 solaris*)
9828 version_type=linux
9829 need_lib_prefix=no
9830 need_version=no
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 soname_spec='${libname}${release}${shared_ext}$major'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=yes
9835 hardcode_into_libs=yes
9836 # ldd complains unless libraries are executable
9837 postinstall_cmds='chmod +x $lib'
9838 ;;
9839
9840 sunos4*)
9841 version_type=sunos
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9843 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes
9846 if test "$with_gnu_ld" = yes; then
9847 need_lib_prefix=no
9848 fi
9849 need_version=yes
9850 ;;
9851
9852 sysv4 | sysv4.3*)
9853 version_type=linux
9854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855 soname_spec='${libname}${release}${shared_ext}$major'
9856 shlibpath_var=LD_LIBRARY_PATH
9857 case $host_vendor in
9858 sni)
9859 shlibpath_overrides_runpath=no
9860 need_lib_prefix=no
9861 runpath_var=LD_RUN_PATH
9862 ;;
9863 siemens)
9864 need_lib_prefix=no
9865 ;;
9866 motorola)
9867 need_lib_prefix=no
9868 need_version=no
9869 shlibpath_overrides_runpath=no
9870 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9871 ;;
9872 esac
9873 ;;
9874
9875 sysv4*MP*)
9876 if test -d /usr/nec ;then
9877 version_type=linux
9878 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9879 soname_spec='$libname${shared_ext}.$major'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 fi
9882 ;;
9883
9884 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9885 version_type=freebsd-elf
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 shlibpath_overrides_runpath=yes
9892 hardcode_into_libs=yes
9893 if test "$with_gnu_ld" = yes; then
9894 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9895 else
9896 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9897 case $host_os in
9898 sco3.2v5*)
9899 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9900 ;;
9901 esac
9902 fi
9903 sys_lib_dlsearch_path_spec='/usr/lib'
9904 ;;
9905
9906 tpf*)
9907 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9908 version_type=linux
9909 need_lib_prefix=no
9910 need_version=no
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath=no
9914 hardcode_into_libs=yes
9915 ;;
9916
9917 uts4*)
9918 version_type=linux
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 ;;
9923
9924 *)
9925 dynamic_linker=no
9926 ;;
9927 esac
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9929 $as_echo "$dynamic_linker" >&6; }
9930 test "$dynamic_linker" = no && can_build_shared=no
9931
9932 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9933 if test "$GCC" = yes; then
9934 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9935 fi
9936
9937 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9938 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9939 fi
9940 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9941 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9942 fi
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10031 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10032 hardcode_action=
10033 if test -n "$hardcode_libdir_flag_spec" ||
10034 test -n "$runpath_var" ||
10035 test "X$hardcode_automatic" = "Xyes" ; then
10036
10037 # We can hardcode non-existent directories.
10038 if test "$hardcode_direct" != no &&
10039 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10040 # have to relink, otherwise we might link with an installed library
10041 # when we should be linking with a yet-to-be-installed one
10042 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10043 test "$hardcode_minus_L" != no; then
10044 # Linking always hardcodes the temporary library directory.
10045 hardcode_action=relink
10046 else
10047 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10048 hardcode_action=immediate
10049 fi
10050 else
10051 # We cannot hardcode anything, or else we can only hardcode existing
10052 # directories.
10053 hardcode_action=unsupported
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10056 $as_echo "$hardcode_action" >&6; }
10057
10058 if test "$hardcode_action" = relink ||
10059 test "$inherit_rpath" = yes; then
10060 # Fast installation is not supported
10061 enable_fast_install=no
10062 elif test "$shlibpath_overrides_runpath" = yes ||
10063 test "$enable_shared" = no; then
10064 # Fast installation is not necessary
10065 enable_fast_install=needless
10066 fi
10067
10068
10069
10070
10071
10072
10073 if test "x$enable_dlopen" != xyes; then
10074 enable_dlopen=unknown
10075 enable_dlopen_self=unknown
10076 enable_dlopen_self_static=unknown
10077 else
10078 lt_cv_dlopen=no
10079 lt_cv_dlopen_libs=
10080
10081 case $host_os in
10082 beos*)
10083 lt_cv_dlopen="load_add_on"
10084 lt_cv_dlopen_libs=
10085 lt_cv_dlopen_self=yes
10086 ;;
10087
10088 mingw* | pw32* | cegcc*)
10089 lt_cv_dlopen="LoadLibrary"
10090 lt_cv_dlopen_libs=
10091 ;;
10092
10093 cygwin*)
10094 lt_cv_dlopen="dlopen"
10095 lt_cv_dlopen_libs=
10096 ;;
10097
10098 darwin*)
10099 # if libdl is installed we need to link against it
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10101 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10102 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-ldl $LIBS"
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10109
10110 /* Override any GCC internal prototype to avoid an error.
10111 Use char because int might match the return type of a GCC
10112 builtin and then its argument prototype would still apply. */
10113 #ifdef __cplusplus
10114 extern "C"
10115 #endif
10116 char dlopen ();
10117 int
10118 main ()
10119 {
10120 return dlopen ();
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126 ac_cv_lib_dl_dlopen=yes
10127 else
10128 ac_cv_lib_dl_dlopen=no
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_check_lib_save_LIBS
10133 fi
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10135 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10136 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10137 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10138 else
10139
10140 lt_cv_dlopen="dyld"
10141 lt_cv_dlopen_libs=
10142 lt_cv_dlopen_self=yes
10143
10144 fi
10145
10146 ;;
10147
10148 *)
10149 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10150 if test "x$ac_cv_func_shl_load" = x""yes; then :
10151 lt_cv_dlopen="shl_load"
10152 else
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10154 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10155 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 ac_check_lib_save_LIBS=$LIBS
10159 LIBS="-ldld $LIBS"
10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10162
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10166 #ifdef __cplusplus
10167 extern "C"
10168 #endif
10169 char shl_load ();
10170 int
10171 main ()
10172 {
10173 return shl_load ();
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 ac_cv_lib_dld_shl_load=yes
10180 else
10181 ac_cv_lib_dld_shl_load=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10188 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10189 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10190 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10191 else
10192 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10193 if test "x$ac_cv_func_dlopen" = x""yes; then :
10194 lt_cv_dlopen="dlopen"
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10197 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10198 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 ac_check_lib_save_LIBS=$LIBS
10202 LIBS="-ldl $LIBS"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char dlopen ();
10213 int
10214 main ()
10215 {
10216 return dlopen ();
10217 ;
10218 return 0;
10219 }
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 ac_cv_lib_dl_dlopen=yes
10223 else
10224 ac_cv_lib_dl_dlopen=no
10225 fi
10226 rm -f core conftest.err conftest.$ac_objext \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10231 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10232 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10233 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10234 else
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10236 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10237 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 ac_check_lib_save_LIBS=$LIBS
10241 LIBS="-lsvld $LIBS"
10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char dlopen ();
10252 int
10253 main ()
10254 {
10255 return dlopen ();
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 if ac_fn_c_try_link "$LINENO"; then :
10261 ac_cv_lib_svld_dlopen=yes
10262 else
10263 ac_cv_lib_svld_dlopen=no
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10270 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10271 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10275 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10276 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
10278 else
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-ldld $LIBS"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283
10284 /* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10287 #ifdef __cplusplus
10288 extern "C"
10289 #endif
10290 char dld_link ();
10291 int
10292 main ()
10293 {
10294 return dld_link ();
10295 ;
10296 return 0;
10297 }
10298 _ACEOF
10299 if ac_fn_c_try_link "$LINENO"; then :
10300 ac_cv_lib_dld_dld_link=yes
10301 else
10302 ac_cv_lib_dld_dld_link=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10309 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10310 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10311 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10312 fi
10313
10314
10315 fi
10316
10317
10318 fi
10319
10320
10321 fi
10322
10323
10324 fi
10325
10326
10327 fi
10328
10329 ;;
10330 esac
10331
10332 if test "x$lt_cv_dlopen" != xno; then
10333 enable_dlopen=yes
10334 else
10335 enable_dlopen=no
10336 fi
10337
10338 case $lt_cv_dlopen in
10339 dlopen)
10340 save_CPPFLAGS="$CPPFLAGS"
10341 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10342
10343 save_LDFLAGS="$LDFLAGS"
10344 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10345
10346 save_LIBS="$LIBS"
10347 LIBS="$lt_cv_dlopen_libs $LIBS"
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10350 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10351 if test "${lt_cv_dlopen_self+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 if test "$cross_compiling" = yes; then :
10355 lt_cv_dlopen_self=cross
10356 else
10357 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10358 lt_status=$lt_dlunknown
10359 cat > conftest.$ac_ext <<_LT_EOF
10360 #line 10360 "configure"
10361 #include "confdefs.h"
10362
10363 #if HAVE_DLFCN_H
10364 #include <dlfcn.h>
10365 #endif
10366
10367 #include <stdio.h>
10368
10369 #ifdef RTLD_GLOBAL
10370 # define LT_DLGLOBAL RTLD_GLOBAL
10371 #else
10372 # ifdef DL_GLOBAL
10373 # define LT_DLGLOBAL DL_GLOBAL
10374 # else
10375 # define LT_DLGLOBAL 0
10376 # endif
10377 #endif
10378
10379 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10380 find out it does not work in some platform. */
10381 #ifndef LT_DLLAZY_OR_NOW
10382 # ifdef RTLD_LAZY
10383 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10384 # else
10385 # ifdef DL_LAZY
10386 # define LT_DLLAZY_OR_NOW DL_LAZY
10387 # else
10388 # ifdef RTLD_NOW
10389 # define LT_DLLAZY_OR_NOW RTLD_NOW
10390 # else
10391 # ifdef DL_NOW
10392 # define LT_DLLAZY_OR_NOW DL_NOW
10393 # else
10394 # define LT_DLLAZY_OR_NOW 0
10395 # endif
10396 # endif
10397 # endif
10398 # endif
10399 #endif
10400
10401 void fnord() { int i=42;}
10402 int main ()
10403 {
10404 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10405 int status = $lt_dlunknown;
10406
10407 if (self)
10408 {
10409 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10410 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10411 /* dlclose (self); */
10412 }
10413 else
10414 puts (dlerror ());
10415
10416 return status;
10417 }
10418 _LT_EOF
10419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10420 (eval $ac_link) 2>&5
10421 ac_status=$?
10422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10423 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10424 (./conftest; exit; ) >&5 2>/dev/null
10425 lt_status=$?
10426 case x$lt_status in
10427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10429 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10430 esac
10431 else :
10432 # compilation failed
10433 lt_cv_dlopen_self=no
10434 fi
10435 fi
10436 rm -fr conftest*
10437
10438
10439 fi
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10441 $as_echo "$lt_cv_dlopen_self" >&6; }
10442
10443 if test "x$lt_cv_dlopen_self" = xyes; then
10444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10446 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10447 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
10449 else
10450 if test "$cross_compiling" = yes; then :
10451 lt_cv_dlopen_self_static=cross
10452 else
10453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10454 lt_status=$lt_dlunknown
10455 cat > conftest.$ac_ext <<_LT_EOF
10456 #line 10456 "configure"
10457 #include "confdefs.h"
10458
10459 #if HAVE_DLFCN_H
10460 #include <dlfcn.h>
10461 #endif
10462
10463 #include <stdio.h>
10464
10465 #ifdef RTLD_GLOBAL
10466 # define LT_DLGLOBAL RTLD_GLOBAL
10467 #else
10468 # ifdef DL_GLOBAL
10469 # define LT_DLGLOBAL DL_GLOBAL
10470 # else
10471 # define LT_DLGLOBAL 0
10472 # endif
10473 #endif
10474
10475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10476 find out it does not work in some platform. */
10477 #ifndef LT_DLLAZY_OR_NOW
10478 # ifdef RTLD_LAZY
10479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10480 # else
10481 # ifdef DL_LAZY
10482 # define LT_DLLAZY_OR_NOW DL_LAZY
10483 # else
10484 # ifdef RTLD_NOW
10485 # define LT_DLLAZY_OR_NOW RTLD_NOW
10486 # else
10487 # ifdef DL_NOW
10488 # define LT_DLLAZY_OR_NOW DL_NOW
10489 # else
10490 # define LT_DLLAZY_OR_NOW 0
10491 # endif
10492 # endif
10493 # endif
10494 # endif
10495 #endif
10496
10497 void fnord() { int i=42;}
10498 int main ()
10499 {
10500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501 int status = $lt_dlunknown;
10502
10503 if (self)
10504 {
10505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10506 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507 /* dlclose (self); */
10508 }
10509 else
10510 puts (dlerror ());
10511
10512 return status;
10513 }
10514 _LT_EOF
10515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10516 (eval $ac_link) 2>&5
10517 ac_status=$?
10518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10520 (./conftest; exit; ) >&5 2>/dev/null
10521 lt_status=$?
10522 case x$lt_status in
10523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10526 esac
10527 else :
10528 # compilation failed
10529 lt_cv_dlopen_self_static=no
10530 fi
10531 fi
10532 rm -fr conftest*
10533
10534
10535 fi
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10537 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10538 fi
10539
10540 CPPFLAGS="$save_CPPFLAGS"
10541 LDFLAGS="$save_LDFLAGS"
10542 LIBS="$save_LIBS"
10543 ;;
10544 esac
10545
10546 case $lt_cv_dlopen_self in
10547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10548 *) enable_dlopen_self=unknown ;;
10549 esac
10550
10551 case $lt_cv_dlopen_self_static in
10552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10553 *) enable_dlopen_self_static=unknown ;;
10554 esac
10555 fi
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573 striplib=
10574 old_striplib=
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10576 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10577 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10581 $as_echo "yes" >&6; }
10582 else
10583 # FIXME - insert some real tests, host_os isn't really good enough
10584 case $host_os in
10585 darwin*)
10586 if test -n "$STRIP" ; then
10587 striplib="$STRIP -x"
10588 old_striplib="$STRIP -S"
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591 else
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 fi
10595 ;;
10596 *)
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10599 ;;
10600 esac
10601 fi
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614 # Report which library types will actually be built
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10616 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10618 $as_echo "$can_build_shared" >&6; }
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10621 $as_echo_n "checking whether to build shared libraries... " >&6; }
10622 test "$can_build_shared" = "no" && enable_shared=no
10623
10624 # On AIX, shared libraries and static libraries use the same namespace, and
10625 # are all built from PIC.
10626 case $host_os in
10627 aix3*)
10628 test "$enable_shared" = yes && enable_static=no
10629 if test -n "$RANLIB"; then
10630 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10631 postinstall_cmds='$RANLIB $lib'
10632 fi
10633 ;;
10634
10635 aix[4-9]*)
10636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10637 test "$enable_shared" = yes && enable_static=no
10638 fi
10639 ;;
10640 esac
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10642 $as_echo "$enable_shared" >&6; }
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10645 $as_echo_n "checking whether to build static libraries... " >&6; }
10646 # Make sure either enable_shared or enable_static is yes.
10647 test "$enable_shared" = yes || enable_static=yes
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10649 $as_echo "$enable_static" >&6; }
10650
10651
10652
10653
10654 fi
10655 ac_ext=c
10656 ac_cpp='$CPP $CPPFLAGS'
10657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661 CC="$lt_save_CC"
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 ac_config_commands="$ac_config_commands libtool"
10676
10677
10678
10679
10680 # Only expand once:
10681
10682
10683
10684
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
10686 $as_echo_n "checking spl license... " >&6; }
10687 LICENSE=GPL
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LICENSE" >&5
10689 $as_echo "$LICENSE" >&6; }
10690 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
10691
10692
10693
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10696 $as_echo_n "checking linux distribution... " >&6; }
10697 if test -f /etc/toss-release ; then
10698 VENDOR=toss ;
10699 elif test -f /etc/fedora-release ; then
10700 VENDOR=fedora ;
10701 elif test -f /etc/redhat-release ; then
10702 VENDOR=redhat ;
10703 elif test -f /etc/gentoo-release ; then
10704 VENDOR=gentoo ;
10705 elif test -f /etc/arch-release ; then
10706 VENDOR=arch ;
10707 elif test -f /etc/SuSE-release ; then
10708 VENDOR=sles ;
10709 elif test -f /etc/slackware-version ; then
10710 VENDOR=slackware ;
10711 elif test -f /etc/lunar.release ; then
10712 VENDOR=lunar ;
10713 elif test -f /etc/lsb-release ; then
10714 VENDOR=ubuntu ;
10715 elif test -f /etc/debian_version ; then
10716 VENDOR=debian ;
10717 else
10718 VENDOR= ;
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10721 $as_echo "$VENDOR" >&6; }
10722
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
10725 $as_echo_n "checking default package type... " >&6; }
10726 case "$VENDOR" in
10727 toss) DEFAULT_PACKAGE=rpm ;;
10728 redhat) DEFAULT_PACKAGE=rpm ;;
10729 fedora) DEFAULT_PACKAGE=rpm ;;
10730 gentoo) DEFAULT_PACKAGE=tgz ;;
10731 arch) DEFAULT_PACKAGE=tgz ;;
10732 sles) DEFAULT_PACKAGE=rpm ;;
10733 slackware) DEFAULT_PACKAGE=tgz ;;
10734 lunar) DEFAULT_PACKAGE=tgz ;;
10735 ubuntu) DEFAULT_PACKAGE=deb ;;
10736 debian) DEFAULT_PACKAGE=deb ;;
10737 *) DEFAULT_PACKAGE=rpm ;;
10738 esac
10739
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
10741 $as_echo "$DEFAULT_PACKAGE" >&6; }
10742
10743
10744
10745 RPM=rpm
10746 RPMBUILD=rpmbuild
10747
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
10749 $as_echo_n "checking whether $RPM is available... " >&6; }
10750 if tmp=$($RPM --version 2>/dev/null); then :
10751
10752 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10753 HAVE_RPM=yes
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
10755 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
10756
10757 else
10758
10759 HAVE_RPM=no
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
10761 $as_echo "$HAVE_RPM" >&6; }
10762
10763 fi
10764
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
10766 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
10767 if tmp=$($RPMBUILD --version 2>/dev/null); then :
10768
10769 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10770 HAVE_RPMBUILD=yes
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10772 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
10773
10774 else
10775
10776 HAVE_RPMBUILD=no
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
10778 $as_echo "$HAVE_RPMBUILD" >&6; }
10779
10780 fi
10781
10782 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_LOG) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
10783 RPM_DEFINE_UTIL=
10784 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
10785 RPM_DEFINE_DKMS=
10786
10787 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
10788 SRPM_DEFINE_UTIL=
10789 SRPM_DEFINE_KMOD=
10790 SRPM_DEFINE_DKMS=
10791
10792 RPM_SPEC_DIR="rpm/generic"
10793
10794 # Check whether --with-spec was given.
10795 if test "${with_spec+set}" = set; then :
10796 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
10797 fi
10798
10799
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
10801 $as_echo_n "checking whether spec files are available... " >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
10803 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 DPKG=dpkg
10825 DPKGBUILD=dpkg-buildpackage
10826
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
10828 $as_echo_n "checking whether $DPKG is available... " >&6; }
10829 if tmp=$($DPKG --version 2>/dev/null); then :
10830
10831 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
10832 HAVE_DPKG=yes
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
10834 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
10835
10836 else
10837
10838 HAVE_DPKG=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
10840 $as_echo "$HAVE_DPKG" >&6; }
10841
10842 fi
10843
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
10845 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
10846 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
10847
10848 DPKGBUILD_VERSION=$(echo $tmp | \
10849 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
10850 HAVE_DPKGBUILD=yes
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
10852 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
10853
10854 else
10855
10856 HAVE_DPKGBUILD=no
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
10858 $as_echo "$HAVE_DPKGBUILD" >&6; }
10859
10860 fi
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871 ALIEN=alien
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
10874 $as_echo_n "checking whether $ALIEN is available... " >&6; }
10875 if tmp=$($ALIEN --version 2>/dev/null); then :
10876
10877 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
10878 HAVE_ALIEN=yes
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
10880 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
10881
10882 else
10883
10884 HAVE_ALIEN=no
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
10886 $as_echo "$HAVE_ALIEN" >&6; }
10887
10888 fi
10889
10890
10891
10892
10893
10894
10895
10896 SPL_CONFIG=all
10897
10898 # Check whether --with-config was given.
10899 if test "${with_config+set}" = set; then :
10900 withval=$with_config; SPL_CONFIG="$withval"
10901 fi
10902
10903 # Check whether --enable-linux-builtin was given.
10904 if test "${enable_linux_builtin+set}" = set; then :
10905 enableval=$enable_linux_builtin;
10906 else
10907 enable_linux_builtin=no
10908 fi
10909
10910
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
10912 $as_echo_n "checking spl config... " >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
10914 $as_echo "$SPL_CONFIG" >&6; };
10915
10916
10917 case "$SPL_CONFIG" in
10918 kernel)
10919
10920
10921 # Check whether --with-linux was given.
10922 if test "${with_linux+set}" = set; then :
10923 withval=$with_linux; kernelsrc="$withval"
10924 fi
10925
10926
10927
10928 # Check whether --with-linux-obj was given.
10929 if test "${with_linux_obj+set}" = set; then :
10930 withval=$with_linux_obj; kernelbuild="$withval"
10931 fi
10932
10933
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
10935 $as_echo_n "checking kernel source directory... " >&6; }
10936 if test -z "$kernelsrc"; then
10937 if test -e "/lib/modules/$(uname -r)/source"; then
10938 headersdir="/lib/modules/$(uname -r)/source"
10939 sourcelink=$(readlink -f "$headersdir")
10940 elif test -e "/lib/modules/$(uname -r)/build"; then
10941 headersdir="/lib/modules/$(uname -r)/build"
10942 sourcelink=$(readlink -f "$headersdir")
10943 else
10944 sourcelink=$(ls -1d /usr/src/kernels/* \
10945 /usr/src/linux-* \
10946 2>/dev/null | grep -v obj | tail -1)
10947 fi
10948
10949 if test -n "$sourcelink" && test -e ${sourcelink}; then
10950 kernelsrc=`readlink -f ${sourcelink}`
10951 else
10952 kernelsrc="Not found"
10953 fi
10954 else
10955 if test "$kernelsrc" = "NONE"; then
10956 kernsrcver=NONE
10957 fi
10958 fi
10959
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
10961 $as_echo "$kernelsrc" >&6; }
10962 if test ! -d "$kernelsrc"; then
10963 as_fn_error $? "
10964 *** Please make sure the kernel devel package for your distribution
10965 *** is installed then try again. If that fails you can specify the
10966 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
10967 fi
10968
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
10970 $as_echo_n "checking kernel build directory... " >&6; }
10971 if test -z "$kernelbuild"; then
10972 if test -e "/lib/modules/$(uname -r)/build"; then
10973 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
10974 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
10975 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
10976 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
10977 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
10978 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
10979 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
10980 else
10981 kernelbuild=${kernelsrc}
10982 fi
10983 fi
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
10985 $as_echo "$kernelbuild" >&6; }
10986
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
10988 $as_echo_n "checking kernel source version... " >&6; }
10989 utsrelease1=$kernelbuild/include/linux/version.h
10990 utsrelease2=$kernelbuild/include/linux/utsrelease.h
10991 utsrelease3=$kernelbuild/include/generated/utsrelease.h
10992 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
10993 utsrelease=linux/version.h
10994 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
10995 utsrelease=linux/utsrelease.h
10996 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
10997 utsrelease=generated/utsrelease.h
10998 fi
10999
11000 if test "$utsrelease"; then
11001 kernsrcver=`(echo "#include <$utsrelease>";
11002 echo "kernsrcver=UTS_RELEASE") |
11003 cpp -I $kernelbuild/include |
11004 grep "^kernsrcver=" | cut -d \" -f 2`
11005
11006 if test -z "$kernsrcver"; then
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11008 $as_echo "Not found" >&6; }
11009 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
11010 fi
11011 else
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11013 $as_echo "Not found" >&6; }
11014 if test "x$enable_linux_builtin" != xyes; then
11015 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11016 else
11017 as_fn_error $? "
11018 *** Cannot find UTS_RELEASE definition.
11019 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11020 fi
11021 fi
11022
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11024 $as_echo "$kernsrcver" >&6; }
11025
11026 LINUX=${kernelsrc}
11027 LINUX_OBJ=${kernelbuild}
11028 LINUX_VERSION=${kernsrcver}
11029
11030
11031
11032
11033
11034
11035 modpost=$LINUX/scripts/Makefile.modpost
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11037 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11038 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
11039 if grep -q Modules.symvers $modpost; then
11040 LINUX_SYMBOLS=Modules.symvers
11041 else
11042 LINUX_SYMBOLS=Module.symvers
11043 fi
11044
11045 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11046 as_fn_error $? "
11047 *** Please make sure the kernel devel package for your distribution
11048 *** is installed. If your building with a custom kernel make sure the
11049 *** kernel is configured, built, and the '--with-linux=PATH' configure
11050 *** option refers to the location of the kernel source." "$LINENO" 5
11051 fi
11052 else
11053 LINUX_SYMBOLS=NONE
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11056 $as_echo "$LINUX_SYMBOLS" >&6; }
11057
11058
11059
11060
11061 if test "${LINUX_OBJ}" != "${LINUX}"; then
11062 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11063 fi
11064
11065
11066 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11067
11068
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
11071 $as_echo_n "checking whether debugging is enabled... " >&6; }
11072 # Check whether --enable-debug was given.
11073 if test "${enable_debug+set}" = set; then :
11074 enableval=$enable_debug;
11075 else
11076 enable_debug=no
11077 fi
11078
11079
11080 if test "x$enable_debug" = xyes; then :
11081
11082 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11083 DEBUG_CFLAGS="-DDEBUG -Werror"
11084 DEBUG_SPL="_with_debug"
11085
11086 else
11087
11088 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11089 DEBUG_CFLAGS="-DNDEBUG"
11090 DEBUG_SPL="_without_debug"
11091
11092 fi
11093
11094
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
11097 $as_echo "$enable_debug" >&6; }
11098
11099
11100 # Check whether --enable-debug-log was given.
11101 if test "${enable_debug_log+set}" = set; then :
11102 enableval=$enable_debug_log;
11103 else
11104 enable_debug_log=yes
11105 fi
11106
11107
11108 if test "x$enable_debug_log" = xyes; then :
11109
11110 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
11111 DEBUG_LOG="_with_debug_log"
11112
11113 $as_echo "#define DEBUG_LOG 1" >>confdefs.h
11114
11115
11116 else
11117
11118 DEBUG_LOG="_without_debug_log"
11119
11120 fi
11121
11122
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic debug logging is enabled" >&5
11124 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_log" >&5
11126 $as_echo "$enable_debug_log" >&6; }
11127
11128
11129 # Check whether --enable-debug-kmem was given.
11130 if test "${enable_debug_kmem+set}" = set; then :
11131 enableval=$enable_debug_kmem;
11132 else
11133 enable_debug_kmem=yes
11134 fi
11135
11136
11137 if test "x$enable_debug_kmem" = xyes; then :
11138
11139 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11140 DEBUG_KMEM="_with_debug_kmem"
11141
11142 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
11143
11144
11145 else
11146
11147 DEBUG_KMEM="_without_debug_kmem"
11148
11149 fi
11150
11151
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
11153 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
11155 $as_echo "$enable_debug_kmem" >&6; }
11156
11157
11158 # Check whether --enable-debug-kmem-tracking was given.
11159 if test "${enable_debug_kmem_tracking+set}" = set; then :
11160 enableval=$enable_debug_kmem_tracking;
11161 else
11162 enable_debug_kmem_tracking=no
11163 fi
11164
11165
11166 if test "x$enable_debug_kmem_tracking" = xyes; then :
11167
11168 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11169 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11170
11171 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
11172
11173
11174 else
11175
11176 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11177
11178 fi
11179
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
11182 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
11184 $as_echo "$enable_debug_kmem_tracking" >&6; }
11185
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11187 $as_echo_n "checking whether modules can be built... " >&6; }
11188
11189
11190 cat confdefs.h - <<_ACEOF >conftest.c
11191
11192
11193 int
11194 main (void)
11195 {
11196
11197 ;
11198 return 0;
11199 }
11200
11201 _ACEOF
11202
11203
11204 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11205 echo "obj-m := conftest.o" >build/Makefile
11206 modpost_flag=''
11207 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11208 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'
11209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11213 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11218 test $ac_status = 0; }; }; then :
11219
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222
11223 else
11224 $as_echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11226
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 $as_echo "no" >&6; }
11229 if test "x$enable_linux_builtin" != xyes; then
11230 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
11231 else
11232 as_fn_error $? "
11233 *** Unable to build an empty module.
11234 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11235 fi
11236
11237
11238
11239 fi
11240 rm -Rf build
11241
11242
11243
11244
11245 # Check whether --enable-atomic-spinlocks was given.
11246 if test "${enable_atomic_spinlocks+set}" = set; then :
11247 enableval=$enable_atomic_spinlocks;
11248 else
11249 enable_atomic_spinlocks=check
11250 fi
11251
11252
11253
11254
11255 cat confdefs.h - <<_ACEOF >conftest.c
11256
11257
11258 #include <linux/fs.h>
11259
11260 int
11261 main (void)
11262 {
11263
11264 atomic64_t *ptr __attribute__ ((unused));
11265
11266 ;
11267 return 0;
11268 }
11269
11270 _ACEOF
11271
11272
11273 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11274 echo "obj-m := conftest.o" >build/Makefile
11275 modpost_flag=''
11276 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11277 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'
11278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }; }; then :
11288
11289 have_atomic64_t=yes
11290
11291 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
11292
11293
11294 else
11295 $as_echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 have_atomic64_t=no
11299
11300
11301
11302 fi
11303 rm -Rf build
11304
11305
11306
11307 if test "x$enable_atomic_spinlocks" = xcheck; then :
11308
11309 if test "x$have_atomic64_t" = xyes; then :
11310
11311 enable_atomic_spinlocks=no
11312
11313 else
11314
11315 enable_atomic_spinlocks=yes
11316
11317 fi
11318
11319 fi
11320
11321 if test "x$enable_atomic_spinlocks" = xyes; then :
11322
11323
11324 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
11325
11326
11327 else
11328
11329 if test "x$have_atomic64_t" = xno; then :
11330
11331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11333 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
11334 See \`config.log' for more details" "$LINENO" 5 ; }
11335
11336 fi
11337
11338 fi
11339
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
11341 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
11343 $as_echo "$enable_atomic_spinlocks" >&6; }
11344
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
11346 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
11348 $as_echo "$have_atomic64_t" >&6; }
11349
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_cmpxchg" >&5
11351 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11352
11353
11354 cat confdefs.h - <<_ACEOF >conftest.c
11355
11356
11357 #include <linux/fs.h>
11358
11359 int
11360 main (void)
11361 {
11362
11363 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11364
11365 ;
11366 return 0;
11367 }
11368
11369 _ACEOF
11370
11371
11372 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11373 echo "obj-m := conftest.o" >build/Makefile
11374 modpost_flag=''
11375 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11376 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'
11377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11386 test $ac_status = 0; }; }; then :
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390
11391 $as_echo "#define HAVE_ATOMIC64_CMPXCHG 1" >>confdefs.h
11392
11393
11394 else
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400
11401
11402
11403 fi
11404 rm -Rf build
11405
11406
11407
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_xchg" >&5
11409 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11410
11411
11412 cat confdefs.h - <<_ACEOF >conftest.c
11413
11414
11415 #include <linux/fs.h>
11416
11417 int
11418 main (void)
11419 {
11420
11421 atomic64_xchg((atomic64_t *)NULL, 0);
11422
11423 ;
11424 return 0;
11425 }
11426
11427 _ACEOF
11428
11429
11430 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11431 echo "obj-m := conftest.o" >build/Makefile
11432 modpost_flag=''
11433 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11434 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'
11435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11444 test $ac_status = 0; }; }; then :
11445
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447 $as_echo "yes" >&6; }
11448
11449 $as_echo "#define HAVE_ATOMIC64_XCHG 1" >>confdefs.h
11450
11451
11452 else
11453 $as_echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458
11459
11460
11461 fi
11462 rm -Rf build
11463
11464
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines uintptr_t" >&5
11467 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11468
11469
11470 cat confdefs.h - <<_ACEOF >conftest.c
11471
11472
11473 #include <linux/types.h>
11474
11475 int
11476 main (void)
11477 {
11478
11479 uintptr_t *ptr __attribute__ ((unused));
11480
11481 ;
11482 return 0;
11483 }
11484
11485 _ACEOF
11486
11487
11488 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11489 echo "obj-m := conftest.o" >build/Makefile
11490 modpost_flag=''
11491 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11492 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'
11493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11494 (eval $ac_try) 2>&5
11495 ac_status=$?
11496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11497 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11502 test $ac_status = 0; }; }; then :
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11506
11507 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11508
11509
11510 else
11511 $as_echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.$ac_ext >&5
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11516
11517
11518
11519 fi
11520 rm -Rf build
11521
11522
11523
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether register_sysctl_table() wants 2 args" >&5
11525 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
11526
11527
11528 cat confdefs.h - <<_ACEOF >conftest.c
11529
11530
11531 #include <linux/sysctl.h>
11532
11533 int
11534 main (void)
11535 {
11536
11537 (void) register_sysctl_table(NULL, 0);
11538
11539 ;
11540 return 0;
11541 }
11542
11543 _ACEOF
11544
11545
11546 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11547 echo "obj-m := conftest.o" >build/Makefile
11548 modpost_flag=''
11549 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11550 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'
11551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11552 (eval $ac_try) 2>&5
11553 ac_status=$?
11554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11555 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; }; }; then :
11561
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11563 $as_echo "yes" >&6; }
11564
11565 $as_echo "#define HAVE_2ARGS_REGISTER_SYSCTL 1" >>confdefs.h
11566
11567
11568 else
11569 $as_echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; }
11574
11575
11576
11577 fi
11578 rm -Rf build
11579
11580
11581
11582
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_shrinker() available" >&5
11584 $as_echo_n "checking whether set_shrinker() available... " >&6; }
11585
11586
11587 cat confdefs.h - <<_ACEOF >conftest.c
11588
11589
11590 #include <linux/mm.h>
11591
11592 int
11593 main (void)
11594 {
11595
11596 return set_shrinker(DEFAULT_SEEKS, NULL);
11597
11598 ;
11599 return 0;
11600 }
11601
11602 _ACEOF
11603
11604
11605 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11606 echo "obj-m := conftest.o" >build/Makefile
11607 modpost_flag=''
11608 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11609 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'
11610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11619 test $ac_status = 0; }; }; then :
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622 $as_echo "yes" >&6; }
11623
11624 $as_echo "#define HAVE_SET_SHRINKER 1" >>confdefs.h
11625
11626
11627 else
11628 $as_echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632 $as_echo "no" >&6; }
11633
11634
11635
11636 fi
11637 rm -Rf build
11638
11639
11640
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrinker callback wants 3 args" >&5
11642 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
11643 tmp_flags="$EXTRA_KCFLAGS"
11644 EXTRA_KCFLAGS="-Werror"
11645
11646
11647 cat confdefs.h - <<_ACEOF >conftest.c
11648
11649
11650 #include <linux/mm.h>
11651
11652 int shrinker_cb(struct shrinker *, int, unsigned int);
11653
11654 int
11655 main (void)
11656 {
11657
11658 struct shrinker cache_shrinker = {
11659 .shrink = shrinker_cb,
11660 .seeks = DEFAULT_SEEKS,
11661 };
11662 register_shrinker(&cache_shrinker);
11663
11664 ;
11665 return 0;
11666 }
11667
11668 _ACEOF
11669
11670
11671 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11672 echo "obj-m := conftest.o" >build/Makefile
11673 modpost_flag=''
11674 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11675 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11682 (eval $ac_try) 2>&5
11683 ac_status=$?
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; }; }; then :
11686
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11688 $as_echo "yes" >&6; }
11689
11690 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
11691
11692
11693 else
11694 $as_echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11699
11700
11701
11702 fi
11703 rm -Rf build
11704
11705
11706 EXTRA_KCFLAGS="$tmp_flags"
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct path used in struct nameidata" >&5
11709 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
11710
11711
11712 cat confdefs.h - <<_ACEOF >conftest.c
11713
11714
11715 #include <linux/namei.h>
11716
11717 int
11718 main (void)
11719 {
11720
11721 struct nameidata nd __attribute__ ((unused));
11722
11723 nd.path.mnt = NULL;
11724 nd.path.dentry = NULL;
11725
11726 ;
11727 return 0;
11728 }
11729
11730 _ACEOF
11731
11732
11733 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11734 echo "obj-m := conftest.o" >build/Makefile
11735 modpost_flag=''
11736 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11737 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'
11738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747 test $ac_status = 0; }; }; then :
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751
11752 $as_echo "#define HAVE_PATH_IN_NAMEIDATA 1" >>confdefs.h
11753
11754
11755 else
11756 $as_echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; }
11761
11762
11763
11764 fi
11765 rm -Rf build
11766
11767
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether task_curr() is available" >&5
11770 $as_echo_n "checking whether task_curr() is available... " >&6; }
11771
11772
11773
11774 cat confdefs.h - <<_ACEOF >conftest.c
11775
11776
11777 #include <linux/sched.h>
11778
11779 int
11780 main (void)
11781 {
11782
11783 task_curr(NULL);
11784
11785 ;
11786 return 0;
11787 }
11788
11789 _ACEOF
11790
11791
11792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11793 echo "obj-m := conftest.o" >build/Makefile
11794 modpost_flag=''
11795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11796 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'
11797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806 test $ac_status = 0; }; }; then :
11807 rc=0
11808 else
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811 rc=1
11812
11813
11814 fi
11815 rm -Rf build
11816
11817
11818 if test $rc -ne 0; then :
11819
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821 $as_echo "no" >&6; }
11822
11823 else
11824 if test "x$enable_linux_builtin" != xyes; then
11825
11826 grep -q -E '[[:space:]]task_curr[[:space:]]' \
11827 $LINUX_OBJ/Module*.symvers 2>/dev/null
11828 rc=$?
11829 if test $rc -ne 0; then
11830 export=0
11831 for file in kernel/sched.c; do
11832 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
11833 "$LINUX_OBJ/$file" 2>/dev/null
11834 rc=$?
11835 if test $rc -eq 0; then
11836 export=1
11837 break;
11838 fi
11839 done
11840 if test $export -eq 0; then :
11841 rc=1
11842 else :
11843 rc=0
11844 fi
11845 else :
11846 rc=0
11847 fi
11848
11849 fi
11850 if test $rc -ne 0; then :
11851
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11854
11855 else :
11856
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859
11860 $as_echo "#define HAVE_TASK_CURR 1" >>confdefs.h
11861
11862
11863 fi
11864 fi
11865
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unnumbered sysctl support exists" >&5
11868 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
11869
11870
11871 cat confdefs.h - <<_ACEOF >conftest.c
11872
11873
11874 #include <linux/sysctl.h>
11875
11876 int
11877 main (void)
11878 {
11879
11880 #ifndef CTL_UNNUMBERED
11881 #error CTL_UNNUMBERED undefined
11882 #endif
11883
11884 ;
11885 return 0;
11886 }
11887
11888 _ACEOF
11889
11890
11891 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11892 echo "obj-m := conftest.o" >build/Makefile
11893 modpost_flag=''
11894 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11895 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'
11896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11902 (eval $ac_try) 2>&5
11903 ac_status=$?
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; }; }; then :
11906
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11909
11910 $as_echo "#define HAVE_CTL_UNNUMBERED 1" >>confdefs.h
11911
11912
11913 else
11914 $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919
11920
11921
11922 fi
11923 rm -Rf build
11924
11925
11926
11927
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
11929 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
11930
11931
11932 cat confdefs.h - <<_ACEOF >conftest.c
11933
11934
11935 #include <linux/sysctl.h>
11936
11937 int
11938 main (void)
11939 {
11940
11941 struct ctl_table ctl __attribute__ ((unused));
11942 ctl.ctl_name = 0;
11943
11944 ;
11945 return 0;
11946 }
11947
11948 _ACEOF
11949
11950
11951 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11952 echo "obj-m := conftest.o" >build/Makefile
11953 modpost_flag=''
11954 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11955 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'
11956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11960 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11965 test $ac_status = 0; }; }; then :
11966
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11969
11970 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
11971
11972
11973 else
11974 $as_echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979
11980
11981
11982 fi
11983 rm -Rf build
11984
11985
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fls64() is available" >&5
11988 $as_echo_n "checking whether fls64() is available... " >&6; }
11989
11990
11991 cat confdefs.h - <<_ACEOF >conftest.c
11992
11993
11994 #include <linux/bitops.h>
11995
11996 int
11997 main (void)
11998 {
11999
12000 return fls64(0);
12001
12002 ;
12003 return 0;
12004 }
12005
12006 _ACEOF
12007
12008
12009 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12010 echo "obj-m := conftest.o" >build/Makefile
12011 modpost_flag=''
12012 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12013 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12020 (eval $ac_try) 2>&5
12021 ac_status=$?
12022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12023 test $ac_status = 0; }; }; then :
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12026 $as_echo "yes" >&6; }
12027
12028 $as_echo "#define HAVE_FLS64 1" >>confdefs.h
12029
12030
12031 else
12032 $as_echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12037
12038
12039
12040 fi
12041 rm -Rf build
12042
12043
12044
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() is available" >&5
12046 $as_echo_n "checking whether device_create() is available... " >&6; }
12047
12048 grep -q -E '[[:space:]]device_create[[:space:]]' \
12049 $LINUX_OBJ/Module*.symvers 2>/dev/null
12050 rc=$?
12051 if test $rc -ne 0; then
12052 export=0
12053 for file in drivers/base/core.c; do
12054 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12055 "$LINUX_OBJ/$file" 2>/dev/null
12056 rc=$?
12057 if test $rc -eq 0; then
12058 export=1
12059 break;
12060 fi
12061 done
12062 if test $export -eq 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_DEVICE_CREATE 1" >>confdefs.h
12073
12074
12075 fi
12076 else :
12077
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12080
12081 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
12082
12083
12084 fi
12085
12086
12087
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() wants 5 args" >&5
12089 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12090 tmp_flags="$EXTRA_KCFLAGS"
12091 EXTRA_KCFLAGS="-Werror"
12092
12093
12094 cat confdefs.h - <<_ACEOF >conftest.c
12095
12096
12097 #include <linux/device.h>
12098
12099 int
12100 main (void)
12101 {
12102
12103 device_create(NULL, NULL, 0, NULL, "%d", 1);
12104
12105 ;
12106 return 0;
12107 }
12108
12109 _ACEOF
12110
12111
12112 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12113 echo "obj-m := conftest.o" >build/Makefile
12114 modpost_flag=''
12115 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12116 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'
12117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12126 test $ac_status = 0; }; }; then :
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130
12131 $as_echo "#define HAVE_5ARGS_DEVICE_CREATE 1" >>confdefs.h
12132
12133
12134 else
12135 $as_echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 $as_echo "no" >&6; }
12140
12141
12142
12143 fi
12144 rm -Rf build
12145
12146
12147 EXTRA_KCFLAGS="$tmp_flags"
12148
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether class_device_create() is available" >&5
12150 $as_echo_n "checking whether class_device_create() is available... " >&6; }
12151
12152
12153
12154 cat confdefs.h - <<_ACEOF >conftest.c
12155
12156
12157 #include <linux/device.h>
12158
12159 int
12160 main (void)
12161 {
12162
12163 class_device_create(NULL, NULL, 0, NULL, NULL);
12164
12165 ;
12166 return 0;
12167 }
12168
12169 _ACEOF
12170
12171
12172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12173 echo "obj-m := conftest.o" >build/Makefile
12174 modpost_flag=''
12175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12176 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'
12177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12178 (eval $ac_try) 2>&5
12179 ac_status=$?
12180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12181 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; }; }; then :
12187 rc=0
12188 else
12189 $as_echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191 rc=1
12192
12193
12194 fi
12195 rm -Rf build
12196
12197
12198 if test $rc -ne 0; then :
12199
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202
12203 else
12204 if test "x$enable_linux_builtin" != xyes; then
12205
12206 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12207 $LINUX_OBJ/Module*.symvers 2>/dev/null
12208 rc=$?
12209 if test $rc -ne 0; then
12210 export=0
12211 for file in drivers/base/class.c; do
12212 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12213 "$LINUX_OBJ/$file" 2>/dev/null
12214 rc=$?
12215 if test $rc -eq 0; then
12216 export=1
12217 break;
12218 fi
12219 done
12220 if test $export -eq 0; then :
12221 rc=1
12222 else :
12223 rc=0
12224 fi
12225 else :
12226 rc=0
12227 fi
12228
12229 fi
12230 if test $rc -ne 0; then :
12231
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12234
12235 else :
12236
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12238 $as_echo "yes" >&6; }
12239
12240 $as_echo "#define HAVE_CLASS_DEVICE_CREATE 1" >>confdefs.h
12241
12242
12243 fi
12244 fi
12245
12246
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is available as export" >&5
12248 $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; }
12249
12250
12251
12252 cat confdefs.h - <<_ACEOF >conftest.c
12253
12254
12255 #include <linux/time.h>
12256
12257 int
12258 main (void)
12259 {
12260
12261 set_normalized_timespec(NULL, 0, 0);
12262
12263 ;
12264 return 0;
12265 }
12266
12267 _ACEOF
12268
12269
12270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12271 echo "obj-m := conftest.o" >build/Makefile
12272 modpost_flag=''
12273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12274 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'
12275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12284 test $ac_status = 0; }; }; then :
12285 rc=0
12286 else
12287 $as_echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12289 rc=1
12290
12291
12292 fi
12293 rm -Rf build
12294
12295
12296 if test $rc -ne 0; then :
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300
12301 else
12302 if test "x$enable_linux_builtin" != xyes; then
12303
12304 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12305 $LINUX_OBJ/Module*.symvers 2>/dev/null
12306 rc=$?
12307 if test $rc -ne 0; then
12308 export=0
12309 for file in kernel/time.c; do
12310 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12311 "$LINUX_OBJ/$file" 2>/dev/null
12312 rc=$?
12313 if test $rc -eq 0; then
12314 export=1
12315 break;
12316 fi
12317 done
12318 if test $export -eq 0; then :
12319 rc=1
12320 else :
12321 rc=0
12322 fi
12323 else :
12324 rc=0
12325 fi
12326
12327 fi
12328 if test $rc -ne 0; then :
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331 $as_echo "no" >&6; }
12332
12333 else :
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336 $as_echo "yes" >&6; }
12337
12338 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1" >>confdefs.h
12339
12340
12341 fi
12342 fi
12343
12344
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is an inline" >&5
12347 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12348
12349
12350 cat confdefs.h - <<_ACEOF >conftest.c
12351
12352
12353 #include <linux/time.h>
12354 void set_normalized_timespec(struct timespec *ts,
12355 time_t sec, long nsec) { }
12356
12357 int
12358 main (void)
12359 {
12360
12361 ;
12362 return 0;
12363 }
12364
12365 _ACEOF
12366
12367
12368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12369 echo "obj-m := conftest.o" >build/Makefile
12370 modpost_flag=''
12371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12372 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'
12373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12382 test $ac_status = 0; }; }; then :
12383
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12386
12387 else
12388 $as_echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12392 $as_echo "yes" >&6; }
12393
12394 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1" >>confdefs.h
12395
12396
12397
12398
12399 fi
12400 rm -Rf build
12401
12402
12403
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timespec_sub() is available" >&5
12406 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12407
12408
12409 cat confdefs.h - <<_ACEOF >conftest.c
12410
12411
12412 #include <linux/time.h>
12413
12414 int
12415 main (void)
12416 {
12417
12418 struct timespec a = { 0 };
12419 struct timespec b = { 0 };
12420 struct timespec c __attribute__ ((unused));
12421 c = timespec_sub(a, b);
12422
12423 ;
12424 return 0;
12425 }
12426
12427 _ACEOF
12428
12429
12430 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12431 echo "obj-m := conftest.o" >build/Makefile
12432 modpost_flag=''
12433 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12434 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'
12435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12444 test $ac_status = 0; }; }; then :
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447 $as_echo "yes" >&6; }
12448
12449 $as_echo "#define HAVE_TIMESPEC_SUB 1" >>confdefs.h
12450
12451
12452 else
12453 $as_echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458
12459
12460
12461 fi
12462 rm -Rf build
12463
12464
12465
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_utsname() is available" >&5
12468 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12469
12470
12471 cat confdefs.h - <<_ACEOF >conftest.c
12472
12473
12474 #include <linux/utsname.h>
12475
12476 int
12477 main (void)
12478 {
12479
12480 struct new_utsname *a __attribute__ ((unused));
12481 a = init_utsname();
12482
12483 ;
12484 return 0;
12485 }
12486
12487 _ACEOF
12488
12489
12490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12491 echo "obj-m := conftest.o" >build/Makefile
12492 modpost_flag=''
12493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12494 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'
12495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12496 (eval $ac_try) 2>&5
12497 ac_status=$?
12498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12499 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; }; then :
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12507 $as_echo "yes" >&6; }
12508
12509 $as_echo "#define HAVE_INIT_UTSNAME 1" >>confdefs.h
12510
12511
12512 else
12513 $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518
12519
12520
12521 fi
12522 rm -Rf build
12523
12524
12525
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/uaccess.h exists" >&5
12528 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
12529
12530
12531 cat confdefs.h - <<_ACEOF >conftest.c
12532
12533
12534 #include <linux/uaccess.h>
12535
12536 int
12537 main (void)
12538 {
12539
12540 return 0;
12541
12542 ;
12543 return 0;
12544 }
12545
12546 _ACEOF
12547
12548
12549 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12550 echo "obj-m := conftest.o" >build/Makefile
12551 modpost_flag=''
12552 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12553 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'
12554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12563 test $ac_status = 0; }; }; then :
12564
12565
12566 $as_echo "#define HAVE_UACCESS_HEADER 1" >>confdefs.h
12567
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12569 $as_echo "yes" >&6; }
12570
12571
12572 else
12573 $as_echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577 $as_echo "no" >&6; }
12578
12579
12580
12581
12582 fi
12583 rm -Rf build
12584
12585
12586
12587
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmalloc_node() is available" >&5
12590 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
12591
12592
12593 cat confdefs.h - <<_ACEOF >conftest.c
12594
12595
12596 #include <linux/slab.h>
12597
12598 int
12599 main (void)
12600 {
12601
12602 void *a __attribute__ ((unused));
12603 a = kmalloc_node(1, GFP_KERNEL, 0);
12604
12605 ;
12606 return 0;
12607 }
12608
12609 _ACEOF
12610
12611
12612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12613 echo "obj-m := conftest.o" >build/Makefile
12614 modpost_flag=''
12615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12616 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'
12617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12626 test $ac_status = 0; }; }; then :
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12629 $as_echo "yes" >&6; }
12630
12631 $as_echo "#define HAVE_KMALLOC_NODE 1" >>confdefs.h
12632
12633
12634 else
12635 $as_echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12639 $as_echo "no" >&6; }
12640
12641
12642
12643 fi
12644 rm -Rf build
12645
12646
12647
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether monotonic_clock() is available" >&5
12649 $as_echo_n "checking whether monotonic_clock() is available... " >&6; }
12650
12651
12652
12653 cat confdefs.h - <<_ACEOF >conftest.c
12654
12655
12656 #include <linux/timex.h>
12657
12658 int
12659 main (void)
12660 {
12661
12662 monotonic_clock();
12663
12664 ;
12665 return 0;
12666 }
12667
12668 _ACEOF
12669
12670
12671 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12672 echo "obj-m := conftest.o" >build/Makefile
12673 modpost_flag=''
12674 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12675 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'
12676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12680 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12682 (eval $ac_try) 2>&5
12683 ac_status=$?
12684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685 test $ac_status = 0; }; }; then :
12686 rc=0
12687 else
12688 $as_echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690 rc=1
12691
12692
12693 fi
12694 rm -Rf build
12695
12696
12697 if test $rc -ne 0; then :
12698
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700 $as_echo "no" >&6; }
12701
12702 else
12703 if test "x$enable_linux_builtin" != xyes; then
12704
12705 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
12706 $LINUX_OBJ/Module*.symvers 2>/dev/null
12707 rc=$?
12708 if test $rc -ne 0; then
12709 export=0
12710 for file in ; do
12711 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
12712 "$LINUX_OBJ/$file" 2>/dev/null
12713 rc=$?
12714 if test $rc -eq 0; then
12715 export=1
12716 break;
12717 fi
12718 done
12719 if test $export -eq 0; then :
12720 rc=1
12721 else :
12722 rc=0
12723 fi
12724 else :
12725 rc=0
12726 fi
12727
12728 fi
12729 if test $rc -ne 0; then :
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12733
12734 else :
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; }
12738
12739 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
12740
12741
12742 fi
12743 fi
12744
12745
12746
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct inode has i_mutex" >&5
12748 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
12749
12750
12751 cat confdefs.h - <<_ACEOF >conftest.c
12752
12753
12754 #include <linux/fs.h>
12755 #include <linux/mutex.h>
12756
12757 int
12758 main (void)
12759 {
12760
12761 struct inode i;
12762 mutex_init(&i.i_mutex);
12763
12764 ;
12765 return 0;
12766 }
12767
12768 _ACEOF
12769
12770
12771 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12772 echo "obj-m := conftest.o" >build/Makefile
12773 modpost_flag=''
12774 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12775 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'
12776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12780 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; }; then :
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788 $as_echo "yes" >&6; }
12789
12790 $as_echo "#define HAVE_INODE_I_MUTEX 1" >>confdefs.h
12791
12792
12793 else
12794 $as_echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798 $as_echo "no" >&6; }
12799
12800
12801
12802 fi
12803 rm -Rf build
12804
12805
12806
12807
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex has owner" >&5
12809 $as_echo_n "checking whether struct mutex has owner... " >&6; }
12810
12811
12812 cat confdefs.h - <<_ACEOF >conftest.c
12813
12814
12815 #include <linux/mutex.h>
12816
12817 int
12818 main (void)
12819 {
12820
12821 struct mutex mtx __attribute__ ((unused));
12822 mtx.owner = NULL;
12823
12824 ;
12825 return 0;
12826 }
12827
12828 _ACEOF
12829
12830
12831 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12832 echo "obj-m := conftest.o" >build/Makefile
12833 modpost_flag=''
12834 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12835 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'
12836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12840 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12845 test $ac_status = 0; }; }; then :
12846
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12848 $as_echo "yes" >&6; }
12849
12850 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
12851
12852
12853 else
12854 $as_echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12858 $as_echo "no" >&6; }
12859
12860
12861
12862 fi
12863 rm -Rf build
12864
12865
12866
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex owner is a task_struct" >&5
12869 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
12870 tmp_flags="$EXTRA_KCFLAGS"
12871 EXTRA_KCFLAGS="-Werror"
12872
12873
12874 cat confdefs.h - <<_ACEOF >conftest.c
12875
12876
12877 #include <linux/mutex.h>
12878 #include <linux/sched.h>
12879
12880 int
12881 main (void)
12882 {
12883
12884 struct mutex mtx __attribute__ ((unused));
12885 mtx.owner = current;
12886
12887 ;
12888 return 0;
12889 }
12890
12891 _ACEOF
12892
12893
12894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12895 echo "obj-m := conftest.o" >build/Makefile
12896 modpost_flag=''
12897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12898 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'
12899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12900 (eval $ac_try) 2>&5
12901 ac_status=$?
12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12908 test $ac_status = 0; }; }; then :
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12911 $as_echo "yes" >&6; }
12912
12913 $as_echo "#define HAVE_MUTEX_OWNER_TASK_STRUCT 1" >>confdefs.h
12914
12915
12916 else
12917 $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921 $as_echo "no" >&6; }
12922
12923
12924
12925 fi
12926 rm -Rf build
12927
12928
12929 EXTRA_KCFLAGS="$tmp_flags"
12930
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock_nested() is available" >&5
12933 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
12934
12935
12936 cat confdefs.h - <<_ACEOF >conftest.c
12937
12938
12939 #include <linux/mutex.h>
12940
12941 int
12942 main (void)
12943 {
12944
12945 struct mutex mutex;
12946 mutex_init(&mutex);
12947 mutex_lock_nested(&mutex, 0);
12948
12949 ;
12950 return 0;
12951 }
12952
12953 _ACEOF
12954
12955
12956 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12957 echo "obj-m := conftest.o" >build/Makefile
12958 modpost_flag=''
12959 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12960 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'
12961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; }; }; then :
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12973 $as_echo "yes" >&6; }
12974
12975 $as_echo "#define HAVE_MUTEX_LOCK_NESTED 1" >>confdefs.h
12976
12977
12978 else
12979 $as_echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984
12985
12986
12987 fi
12988 rm -Rf build
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether on_each_cpu() wants 3 args" >&5
12994 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
12995
12996
12997 cat confdefs.h - <<_ACEOF >conftest.c
12998
12999
13000 #include <linux/interrupt.h>
13001 #include <linux/smp.h>
13002
13003 void on_each_cpu_func(void *data) { return; }
13004
13005 int
13006 main (void)
13007 {
13008
13009 on_each_cpu(on_each_cpu_func, NULL, 0);
13010
13011 ;
13012 return 0;
13013 }
13014
13015 _ACEOF
13016
13017
13018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13019 echo "obj-m := conftest.o" >build/Makefile
13020 modpost_flag=''
13021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13022 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'
13023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13032 test $ac_status = 0; }; }; then :
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13035 $as_echo "yes" >&6; }
13036
13037 $as_echo "#define HAVE_3ARGS_ON_EACH_CPU 1" >>confdefs.h
13038
13039
13040 else
13041 $as_echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13045 $as_echo "no" >&6; }
13046
13047
13048
13049 fi
13050 rm -Rf build
13051
13052
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kallsyms_lookup_name() is available" >&5
13055 $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; }
13056
13057
13058
13059 cat confdefs.h - <<_ACEOF >conftest.c
13060
13061
13062 #include <linux/kallsyms.h>
13063
13064 int
13065 main (void)
13066 {
13067
13068 kallsyms_lookup_name(NULL);
13069
13070 ;
13071 return 0;
13072 }
13073
13074 _ACEOF
13075
13076
13077 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13078 echo "obj-m := conftest.o" >build/Makefile
13079 modpost_flag=''
13080 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13081 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'
13082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13083 (eval $ac_try) 2>&5
13084 ac_status=$?
13085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13091 test $ac_status = 0; }; }; then :
13092 rc=0
13093 else
13094 $as_echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13096 rc=1
13097
13098
13099 fi
13100 rm -Rf build
13101
13102
13103 if test $rc -ne 0; then :
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13107
13108 else
13109 if test "x$enable_linux_builtin" != xyes; then
13110
13111 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13112 $LINUX_OBJ/Module*.symvers 2>/dev/null
13113 rc=$?
13114 if test $rc -ne 0; then
13115 export=0
13116 for file in ; do
13117 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13118 "$LINUX_OBJ/$file" 2>/dev/null
13119 rc=$?
13120 if test $rc -eq 0; then
13121 export=1
13122 break;
13123 fi
13124 done
13125 if test $export -eq 0; then :
13126 rc=1
13127 else :
13128 rc=0
13129 fi
13130 else :
13131 rc=0
13132 fi
13133
13134 fi
13135 if test $rc -ne 0; then :
13136
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139
13140 else :
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143 $as_echo "yes" >&6; }
13144
13145 $as_echo "#define HAVE_KALLSYMS_LOOKUP_NAME 1" >>confdefs.h
13146
13147
13148 fi
13149 fi
13150
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_vmalloc_info() is available" >&5
13153 $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; }
13154
13155 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13156 $LINUX_OBJ/Module*.symvers 2>/dev/null
13157 rc=$?
13158 if test $rc -ne 0; then
13159 export=0
13160 for file in ; do
13161 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13162 "$LINUX_OBJ/$file" 2>/dev/null
13163 rc=$?
13164 if test $rc -eq 0; then
13165 export=1
13166 break;
13167 fi
13168 done
13169 if test $export -eq 0; then :
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13173
13174 else :
13175
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13177 $as_echo "yes" >&6; }
13178
13179 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
13180
13181
13182 fi
13183 else :
13184
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13187
13188 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
13189
13190
13191 fi
13192
13193
13194
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol *_pgdat exist" >&5
13196 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13197 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13198 rc=$?
13199 if test $rc -eq 0; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13201 $as_echo "yes" >&6; }
13202
13203 $as_echo "#define HAVE_PGDAT_HELPERS 1" >>confdefs.h
13204
13205 else
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13208 fi
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether first_online_pgdat() is available" >&5
13211 $as_echo_n "checking whether first_online_pgdat() is available... " >&6; }
13212
13213
13214
13215 cat confdefs.h - <<_ACEOF >conftest.c
13216
13217
13218 #include <linux/mmzone.h>
13219
13220 int
13221 main (void)
13222 {
13223
13224 first_online_pgdat();
13225
13226 ;
13227 return 0;
13228 }
13229
13230 _ACEOF
13231
13232
13233 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13234 echo "obj-m := conftest.o" >build/Makefile
13235 modpost_flag=''
13236 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13237 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'
13238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13242 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13247 test $ac_status = 0; }; }; then :
13248 rc=0
13249 else
13250 $as_echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252 rc=1
13253
13254
13255 fi
13256 rm -Rf build
13257
13258
13259 if test $rc -ne 0; then :
13260
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263
13264 else
13265 if test "x$enable_linux_builtin" != xyes; then
13266
13267 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13268 $LINUX_OBJ/Module*.symvers 2>/dev/null
13269 rc=$?
13270 if test $rc -ne 0; then
13271 export=0
13272 for file in ; do
13273 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13274 "$LINUX_OBJ/$file" 2>/dev/null
13275 rc=$?
13276 if test $rc -eq 0; then
13277 export=1
13278 break;
13279 fi
13280 done
13281 if test $export -eq 0; then :
13282 rc=1
13283 else :
13284 rc=0
13285 fi
13286 else :
13287 rc=0
13288 fi
13289
13290 fi
13291 if test $rc -ne 0; then :
13292
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13294 $as_echo "no" >&6; }
13295
13296 else :
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13299 $as_echo "yes" >&6; }
13300
13301 $as_echo "#define HAVE_FIRST_ONLINE_PGDAT 1" >>confdefs.h
13302
13303
13304 fi
13305 fi
13306
13307
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_online_pgdat() is available" >&5
13309 $as_echo_n "checking whether next_online_pgdat() is available... " >&6; }
13310
13311
13312
13313 cat confdefs.h - <<_ACEOF >conftest.c
13314
13315
13316 #include <linux/mmzone.h>
13317
13318 int
13319 main (void)
13320 {
13321
13322 next_online_pgdat(NULL);
13323
13324 ;
13325 return 0;
13326 }
13327
13328 _ACEOF
13329
13330
13331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13332 echo "obj-m := conftest.o" >build/Makefile
13333 modpost_flag=''
13334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13335 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'
13336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345 test $ac_status = 0; }; }; then :
13346 rc=0
13347 else
13348 $as_echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350 rc=1
13351
13352
13353 fi
13354 rm -Rf build
13355
13356
13357 if test $rc -ne 0; then :
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361
13362 else
13363 if test "x$enable_linux_builtin" != xyes; then
13364
13365 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13366 $LINUX_OBJ/Module*.symvers 2>/dev/null
13367 rc=$?
13368 if test $rc -ne 0; then
13369 export=0
13370 for file in ; do
13371 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13372 "$LINUX_OBJ/$file" 2>/dev/null
13373 rc=$?
13374 if test $rc -eq 0; then
13375 export=1
13376 break;
13377 fi
13378 done
13379 if test $export -eq 0; then :
13380 rc=1
13381 else :
13382 rc=0
13383 fi
13384 else :
13385 rc=0
13386 fi
13387
13388 fi
13389 if test $rc -ne 0; then :
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13392 $as_echo "no" >&6; }
13393
13394 else :
13395
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13397 $as_echo "yes" >&6; }
13398
13399 $as_echo "#define HAVE_NEXT_ONLINE_PGDAT 1" >>confdefs.h
13400
13401
13402 fi
13403 fi
13404
13405
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_zone() is available" >&5
13407 $as_echo_n "checking whether next_zone() is available... " >&6; }
13408
13409
13410
13411 cat confdefs.h - <<_ACEOF >conftest.c
13412
13413
13414 #include <linux/mmzone.h>
13415
13416 int
13417 main (void)
13418 {
13419
13420 next_zone(NULL);
13421
13422 ;
13423 return 0;
13424 }
13425
13426 _ACEOF
13427
13428
13429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13430 echo "obj-m := conftest.o" >build/Makefile
13431 modpost_flag=''
13432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13433 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'
13434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13435 (eval $ac_try) 2>&5
13436 ac_status=$?
13437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13438 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443 test $ac_status = 0; }; }; then :
13444 rc=0
13445 else
13446 $as_echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13448 rc=1
13449
13450
13451 fi
13452 rm -Rf build
13453
13454
13455 if test $rc -ne 0; then :
13456
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13458 $as_echo "no" >&6; }
13459
13460 else
13461 if test "x$enable_linux_builtin" != xyes; then
13462
13463 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13464 $LINUX_OBJ/Module*.symvers 2>/dev/null
13465 rc=$?
13466 if test $rc -ne 0; then
13467 export=0
13468 for file in ; do
13469 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13470 "$LINUX_OBJ/$file" 2>/dev/null
13471 rc=$?
13472 if test $rc -eq 0; then
13473 export=1
13474 break;
13475 fi
13476 done
13477 if test $export -eq 0; then :
13478 rc=1
13479 else :
13480 rc=0
13481 fi
13482 else :
13483 rc=0
13484 fi
13485
13486 fi
13487 if test $rc -ne 0; then :
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13490 $as_echo "no" >&6; }
13491
13492 else :
13493
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13495 $as_echo "yes" >&6; }
13496
13497 $as_echo "#define HAVE_NEXT_ZONE 1" >>confdefs.h
13498
13499
13500 fi
13501 fi
13502
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgdat_list is available" >&5
13505 $as_echo_n "checking whether pgdat_list is available... " >&6; }
13506
13507
13508
13509 cat confdefs.h - <<_ACEOF >conftest.c
13510
13511
13512 #include <linux/topology.h>
13513 pg_data_t *tmp = pgdat_list;
13514
13515 int
13516 main (void)
13517 {
13518
13519 ;
13520 return 0;
13521 }
13522
13523 _ACEOF
13524
13525
13526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13527 echo "obj-m := conftest.o" >build/Makefile
13528 modpost_flag=''
13529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13530 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13540 test $ac_status = 0; }; }; then :
13541 rc=0
13542 else
13543 $as_echo "$as_me: failed program was:" >&5
13544 sed 's/^/| /' conftest.$ac_ext >&5
13545 rc=1
13546
13547
13548 fi
13549 rm -Rf build
13550
13551
13552 if test $rc -ne 0; then :
13553
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13556
13557 else
13558 if test "x$enable_linux_builtin" != xyes; then
13559
13560 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13561 $LINUX_OBJ/Module*.symvers 2>/dev/null
13562 rc=$?
13563 if test $rc -ne 0; then
13564 export=0
13565 for file in ; do
13566 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13567 "$LINUX_OBJ/$file" 2>/dev/null
13568 rc=$?
13569 if test $rc -eq 0; then
13570 export=1
13571 break;
13572 fi
13573 done
13574 if test $export -eq 0; then :
13575 rc=1
13576 else :
13577 rc=0
13578 fi
13579 else :
13580 rc=0
13581 fi
13582
13583 fi
13584 if test $rc -ne 0; then :
13585
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587 $as_echo "no" >&6; }
13588
13589 else :
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13592 $as_echo "yes" >&6; }
13593
13594 $as_echo "#define HAVE_PGDAT_LIST 1" >>confdefs.h
13595
13596
13597 fi
13598 fi
13599
13600
13601
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether global_page_state() is available" >&5
13603 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13604
13605
13606 cat confdefs.h - <<_ACEOF >conftest.c
13607
13608
13609 #include <linux/mm.h>
13610
13611 int
13612 main (void)
13613 {
13614
13615 unsigned long state __attribute__ ((unused));
13616 state = global_page_state(0);
13617
13618 ;
13619 return 0;
13620 }
13621
13622 _ACEOF
13623
13624
13625 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13626 echo "obj-m := conftest.o" >build/Makefile
13627 modpost_flag=''
13628 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13629 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'
13630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13639 test $ac_status = 0; }; }; then :
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642 $as_echo "yes" >&6; }
13643
13644 $as_echo "#define HAVE_GLOBAL_PAGE_STATE 1" >>confdefs.h
13645
13646
13647 else
13648 $as_echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13652 $as_echo "no" >&6; }
13653
13654
13655
13656 fi
13657 rm -Rf build
13658
13659
13660
13661
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_FREE_PAGES is available" >&5
13663 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13664
13665
13666 cat confdefs.h - <<_ACEOF >conftest.c
13667
13668
13669 #include <linux/mm.h>
13670
13671 int
13672 main (void)
13673 {
13674
13675 enum zone_stat_item zsi __attribute__ ((unused));
13676 zsi = NR_FREE_PAGES;
13677
13678 ;
13679 return 0;
13680 }
13681
13682 _ACEOF
13683
13684
13685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13686 echo "obj-m := conftest.o" >build/Makefile
13687 modpost_flag=''
13688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13689 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'
13690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; }; then :
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13703
13704 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1" >>confdefs.h
13705
13706
13707 else
13708 $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13713
13714
13715
13716 fi
13717 rm -Rf build
13718
13719
13720
13721
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE is available" >&5
13723 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13724
13725
13726 cat confdefs.h - <<_ACEOF >conftest.c
13727
13728
13729 #include <linux/mm.h>
13730
13731 int
13732 main (void)
13733 {
13734
13735 enum zone_stat_item zsi __attribute__ ((unused));
13736 zsi = NR_INACTIVE;
13737
13738 ;
13739 return 0;
13740 }
13741
13742 _ACEOF
13743
13744
13745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13746 echo "obj-m := conftest.o" >build/Makefile
13747 modpost_flag=''
13748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13749 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'
13750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13751 (eval $ac_try) 2>&5
13752 ac_status=$?
13753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13756 (eval $ac_try) 2>&5
13757 ac_status=$?
13758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13759 test $ac_status = 0; }; }; then :
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13762 $as_echo "yes" >&6; }
13763
13764 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1" >>confdefs.h
13765
13766
13767 else
13768 $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13772 $as_echo "no" >&6; }
13773
13774
13775
13776 fi
13777 rm -Rf build
13778
13779
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_ANON is available" >&5
13782 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
13783
13784
13785 cat confdefs.h - <<_ACEOF >conftest.c
13786
13787
13788 #include <linux/mm.h>
13789
13790 int
13791 main (void)
13792 {
13793
13794 enum zone_stat_item zsi __attribute__ ((unused));
13795 zsi = NR_INACTIVE_ANON;
13796
13797 ;
13798 return 0;
13799 }
13800
13801 _ACEOF
13802
13803
13804 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13805 echo "obj-m := conftest.o" >build/Makefile
13806 modpost_flag=''
13807 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13808 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'
13809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13813 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13815 (eval $ac_try) 2>&5
13816 ac_status=$?
13817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13818 test $ac_status = 0; }; }; then :
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13821 $as_echo "yes" >&6; }
13822
13823 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1" >>confdefs.h
13824
13825
13826 else
13827 $as_echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831 $as_echo "no" >&6; }
13832
13833
13834
13835 fi
13836 rm -Rf build
13837
13838
13839
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_FILE is available" >&5
13841 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
13842
13843
13844 cat confdefs.h - <<_ACEOF >conftest.c
13845
13846
13847 #include <linux/mm.h>
13848
13849 int
13850 main (void)
13851 {
13852
13853 enum zone_stat_item zsi __attribute__ ((unused));
13854 zsi = NR_INACTIVE_FILE;
13855
13856 ;
13857 return 0;
13858 }
13859
13860 _ACEOF
13861
13862
13863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13864 echo "obj-m := conftest.o" >build/Makefile
13865 modpost_flag=''
13866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13867 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'
13868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; }; then :
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13880 $as_echo "yes" >&6; }
13881
13882 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1" >>confdefs.h
13883
13884
13885 else
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13891
13892
13893
13894 fi
13895 rm -Rf build
13896
13897
13898
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE is available" >&5
13901 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
13902
13903
13904 cat confdefs.h - <<_ACEOF >conftest.c
13905
13906
13907 #include <linux/mm.h>
13908
13909 int
13910 main (void)
13911 {
13912
13913 enum zone_stat_item zsi __attribute__ ((unused));
13914 zsi = NR_ACTIVE;
13915
13916 ;
13917 return 0;
13918 }
13919
13920 _ACEOF
13921
13922
13923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13924 echo "obj-m := conftest.o" >build/Makefile
13925 modpost_flag=''
13926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13927 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'
13928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }; }; then :
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13940 $as_echo "yes" >&6; }
13941
13942 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1" >>confdefs.h
13943
13944
13945 else
13946 $as_echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950 $as_echo "no" >&6; }
13951
13952
13953
13954 fi
13955 rm -Rf build
13956
13957
13958
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_ANON is available" >&5
13960 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
13961
13962
13963 cat confdefs.h - <<_ACEOF >conftest.c
13964
13965
13966 #include <linux/mm.h>
13967
13968 int
13969 main (void)
13970 {
13971
13972 enum zone_stat_item zsi __attribute__ ((unused));
13973 zsi = NR_ACTIVE_ANON;
13974
13975 ;
13976 return 0;
13977 }
13978
13979 _ACEOF
13980
13981
13982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13983 echo "obj-m := conftest.o" >build/Makefile
13984 modpost_flag=''
13985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13986 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'
13987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; }; }; then :
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14000
14001 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1" >>confdefs.h
14002
14003
14004 else
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010
14011
14012
14013 fi
14014 rm -Rf build
14015
14016
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_FILE is available" >&5
14019 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14020
14021
14022 cat confdefs.h - <<_ACEOF >conftest.c
14023
14024
14025 #include <linux/mm.h>
14026
14027 int
14028 main (void)
14029 {
14030
14031 enum zone_stat_item zsi __attribute__ ((unused));
14032 zsi = NR_ACTIVE_FILE;
14033
14034 ;
14035 return 0;
14036 }
14037
14038 _ACEOF
14039
14040
14041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14042 echo "obj-m := conftest.o" >build/Makefile
14043 modpost_flag=''
14044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14045 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'
14046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14050 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14055 test $ac_status = 0; }; }; then :
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14058 $as_echo "yes" >&6; }
14059
14060 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1" >>confdefs.h
14061
14062
14063 else
14064 $as_echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14068 $as_echo "no" >&6; }
14069
14070
14071
14072 fi
14073 rm -Rf build
14074
14075
14076
14077
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol get_zone_counts is needed" >&5
14079 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14080
14081
14082 cat confdefs.h - <<_ACEOF >conftest.c
14083
14084
14085
14086 int
14087 main (void)
14088 {
14089
14090 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14091 #error "global_page_state needs NR_FREE_PAGES"
14092 #endif
14093
14094 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14095 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14096 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14097 #error "global_page_state needs NR_ACTIVE*"
14098 #endif
14099
14100 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14101 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14102 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14103 #error "global_page_state needs NR_INACTIVE*"
14104 #endif
14105
14106 ;
14107 return 0;
14108 }
14109
14110 _ACEOF
14111
14112
14113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14114 echo "obj-m := conftest.o" >build/Makefile
14115 modpost_flag=''
14116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14117 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'
14118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127 test $ac_status = 0; }; }; then :
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14131
14132 else
14133 $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14137 $as_echo "yes" >&6; }
14138
14139 $as_echo "#define NEED_GET_ZONE_COUNTS 1" >>confdefs.h
14140
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_zone_counts() is available" >&5
14143 $as_echo_n "checking whether get_zone_counts() is available... " >&6; }
14144
14145
14146
14147 cat confdefs.h - <<_ACEOF >conftest.c
14148
14149
14150 #include <linux/mmzone.h>
14151
14152 int
14153 main (void)
14154 {
14155
14156 get_zone_counts(NULL, NULL, NULL);
14157
14158 ;
14159 return 0;
14160 }
14161
14162 _ACEOF
14163
14164
14165 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14166 echo "obj-m := conftest.o" >build/Makefile
14167 modpost_flag=''
14168 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14169 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'
14170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14174 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14179 test $ac_status = 0; }; }; then :
14180 rc=0
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14184 rc=1
14185
14186
14187 fi
14188 rm -Rf build
14189
14190
14191 if test $rc -ne 0; then :
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194 $as_echo "no" >&6; }
14195
14196 else
14197 if test "x$enable_linux_builtin" != xyes; then
14198
14199 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14200 $LINUX_OBJ/Module*.symvers 2>/dev/null
14201 rc=$?
14202 if test $rc -ne 0; then
14203 export=0
14204 for file in ; do
14205 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14206 "$LINUX_OBJ/$file" 2>/dev/null
14207 rc=$?
14208 if test $rc -eq 0; then
14209 export=1
14210 break;
14211 fi
14212 done
14213 if test $export -eq 0; then :
14214 rc=1
14215 else :
14216 rc=0
14217 fi
14218 else :
14219 rc=0
14220 fi
14221
14222 fi
14223 if test $rc -ne 0; then :
14224
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227
14228 else :
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14231 $as_echo "yes" >&6; }
14232
14233 $as_echo "#define HAVE_GET_ZONE_COUNTS 1" >>confdefs.h
14234
14235
14236 fi
14237 fi
14238
14239
14240
14241
14242 fi
14243 rm -Rf build
14244
14245
14246
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user_path_dir() is available" >&5
14248 $as_echo_n "checking whether user_path_dir() is available... " >&6; }
14249
14250
14251
14252 cat confdefs.h - <<_ACEOF >conftest.c
14253
14254
14255 #include <linux/fcntl.h>
14256 #include <linux/namei.h>
14257
14258 int
14259 main (void)
14260 {
14261
14262 user_path_dir(NULL, NULL);
14263
14264 ;
14265 return 0;
14266 }
14267
14268 _ACEOF
14269
14270
14271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14272 echo "obj-m := conftest.o" >build/Makefile
14273 modpost_flag=''
14274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14275 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'
14276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14280 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285 test $ac_status = 0; }; }; then :
14286 rc=0
14287 else
14288 $as_echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14290 rc=1
14291
14292
14293 fi
14294 rm -Rf build
14295
14296
14297 if test $rc -ne 0; then :
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14300 $as_echo "no" >&6; }
14301
14302 else
14303 if test "x$enable_linux_builtin" != xyes; then
14304
14305 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14306 $LINUX_OBJ/Module*.symvers 2>/dev/null
14307 rc=$?
14308 if test $rc -ne 0; then
14309 export=0
14310 for file in ; do
14311 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14312 "$LINUX_OBJ/$file" 2>/dev/null
14313 rc=$?
14314 if test $rc -eq 0; then
14315 export=1
14316 break;
14317 fi
14318 done
14319 if test $export -eq 0; then :
14320 rc=1
14321 else :
14322 rc=0
14323 fi
14324 else :
14325 rc=0
14326 fi
14327
14328 fi
14329 if test $rc -ne 0; then :
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14333
14334 else :
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14338
14339 $as_echo "#define HAVE_USER_PATH_DIR 1" >>confdefs.h
14340
14341
14342 fi
14343 fi
14344
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() is available" >&5
14347 $as_echo_n "checking whether set_fs_pwd() is available... " >&6; }
14348
14349
14350
14351 cat confdefs.h - <<_ACEOF >conftest.c
14352
14353
14354 #include <linux/spinlock.h>
14355 #include <linux/fs_struct.h>
14356
14357 int
14358 main (void)
14359 {
14360
14361 (void) set_fs_pwd;
14362
14363 ;
14364 return 0;
14365 }
14366
14367 _ACEOF
14368
14369
14370 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14371 echo "obj-m := conftest.o" >build/Makefile
14372 modpost_flag=''
14373 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14374 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'
14375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }; }; then :
14385 rc=0
14386 else
14387 $as_echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389 rc=1
14390
14391
14392 fi
14393 rm -Rf build
14394
14395
14396 if test $rc -ne 0; then :
14397
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14400
14401 else
14402 if test "x$enable_linux_builtin" != xyes; then
14403
14404 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14405 $LINUX_OBJ/Module*.symvers 2>/dev/null
14406 rc=$?
14407 if test $rc -ne 0; then
14408 export=0
14409 for file in ; do
14410 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14411 "$LINUX_OBJ/$file" 2>/dev/null
14412 rc=$?
14413 if test $rc -eq 0; then
14414 export=1
14415 break;
14416 fi
14417 done
14418 if test $export -eq 0; then :
14419 rc=1
14420 else :
14421 rc=0
14422 fi
14423 else :
14424 rc=0
14425 fi
14426
14427 fi
14428 if test $rc -ne 0; then :
14429
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431 $as_echo "no" >&6; }
14432
14433 else :
14434
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14436 $as_echo "yes" >&6; }
14437
14438 $as_echo "#define HAVE_SET_FS_PWD 1" >>confdefs.h
14439
14440
14441 fi
14442 fi
14443
14444
14445 tmp_flags="$EXTRA_KCFLAGS"
14446 EXTRA_KCFLAGS="-Werror"
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
14448 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
14449
14450
14451 cat confdefs.h - <<_ACEOF >conftest.c
14452
14453
14454 #include <linux/spinlock.h>
14455 #include <linux/fs_struct.h>
14456 #include <linux/path.h>
14457 void (*const set_fs_pwd_func)
14458 (struct fs_struct *, const struct path *)
14459 = set_fs_pwd;
14460
14461 int
14462 main (void)
14463 {
14464
14465 return 0;
14466
14467 ;
14468 return 0;
14469 }
14470
14471 _ACEOF
14472
14473
14474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14475 echo "obj-m := conftest.o" >build/Makefile
14476 modpost_flag=''
14477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14478 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'
14479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14483 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488 test $ac_status = 0; }; }; then :
14489
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14491 $as_echo "yes" >&6; }
14492
14493 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
14494
14495
14496 else
14497 $as_echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500
14501
14502 cat confdefs.h - <<_ACEOF >conftest.c
14503
14504
14505 #include <linux/spinlock.h>
14506 #include <linux/fs_struct.h>
14507 #include <linux/path.h>
14508 void (*const set_fs_pwd_func)
14509 (struct fs_struct *, struct path *)
14510 = set_fs_pwd;
14511
14512 int
14513 main (void)
14514 {
14515
14516 return 0;
14517
14518 ;
14519 return 0;
14520 }
14521
14522 _ACEOF
14523
14524
14525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14526 echo "obj-m := conftest.o" >build/Makefile
14527 modpost_flag=''
14528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14529 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'
14530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14531 (eval $ac_try) 2>&5
14532 ac_status=$?
14533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14536 (eval $ac_try) 2>&5
14537 ac_status=$?
14538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14539 test $ac_status = 0; }; }; then :
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14542 $as_echo "no" >&6; }
14543
14544 else
14545 $as_echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 as_fn_error $? "unknown" "$LINENO" 5
14549
14550
14551
14552 fi
14553 rm -Rf build
14554
14555
14556
14557
14558
14559 fi
14560 rm -Rf build
14561
14562
14563 EXTRA_KCFLAGS="$tmp_flags"
14564
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
14566 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14567
14568
14569 cat confdefs.h - <<_ACEOF >conftest.c
14570
14571
14572 #include <linux/fs.h>
14573
14574 int
14575 main (void)
14576 {
14577
14578 vfs_unlink(NULL, NULL);
14579
14580 ;
14581 return 0;
14582 }
14583
14584 _ACEOF
14585
14586
14587 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14588 echo "obj-m := conftest.o" >build/Makefile
14589 modpost_flag=''
14590 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14591 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'
14592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14596 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601 test $ac_status = 0; }; }; then :
14602
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14604 $as_echo "yes" >&6; }
14605
14606 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
14607
14608
14609 else
14610 $as_echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14614 $as_echo "no" >&6; }
14615
14616
14617
14618 fi
14619 rm -Rf build
14620
14621
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
14624 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14625
14626
14627 cat confdefs.h - <<_ACEOF >conftest.c
14628
14629
14630 #include <linux/fs.h>
14631
14632 int
14633 main (void)
14634 {
14635
14636 vfs_rename(NULL, NULL, NULL, NULL);
14637
14638 ;
14639 return 0;
14640 }
14641
14642 _ACEOF
14643
14644
14645 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14646 echo "obj-m := conftest.o" >build/Makefile
14647 modpost_flag=''
14648 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14649 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'
14650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14654 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14659 test $ac_status = 0; }; }; then :
14660
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14662 $as_echo "yes" >&6; }
14663
14664 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
14665
14666
14667 else
14668 $as_echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672 $as_echo "no" >&6; }
14673
14674
14675
14676 fi
14677 rm -Rf build
14678
14679
14680
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() is available" >&5
14682 $as_echo_n "checking whether vfs_fsync() is available... " >&6; }
14683
14684
14685
14686 cat confdefs.h - <<_ACEOF >conftest.c
14687
14688
14689 #include <linux/fs.h>
14690
14691 int
14692 main (void)
14693 {
14694
14695 (void) vfs_fsync;
14696
14697 ;
14698 return 0;
14699 }
14700
14701 _ACEOF
14702
14703
14704 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14705 echo "obj-m := conftest.o" >build/Makefile
14706 modpost_flag=''
14707 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14708 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'
14709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14710 (eval $ac_try) 2>&5
14711 ac_status=$?
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14715 (eval $ac_try) 2>&5
14716 ac_status=$?
14717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14718 test $ac_status = 0; }; }; then :
14719 rc=0
14720 else
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723 rc=1
14724
14725
14726 fi
14727 rm -Rf build
14728
14729
14730 if test $rc -ne 0; then :
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14733 $as_echo "no" >&6; }
14734
14735 else
14736 if test "x$enable_linux_builtin" != xyes; then
14737
14738 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
14739 $LINUX_OBJ/Module*.symvers 2>/dev/null
14740 rc=$?
14741 if test $rc -ne 0; then
14742 export=0
14743 for file in fs/sync.c; do
14744 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
14745 "$LINUX_OBJ/$file" 2>/dev/null
14746 rc=$?
14747 if test $rc -eq 0; then
14748 export=1
14749 break;
14750 fi
14751 done
14752 if test $export -eq 0; then :
14753 rc=1
14754 else :
14755 rc=0
14756 fi
14757 else :
14758 rc=0
14759 fi
14760
14761 fi
14762 if test $rc -ne 0; then :
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14765 $as_echo "no" >&6; }
14766
14767 else :
14768
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14770 $as_echo "yes" >&6; }
14771
14772 $as_echo "#define HAVE_VFS_FSYNC 1" >>confdefs.h
14773
14774
14775 fi
14776 fi
14777
14778
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
14781 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
14782
14783
14784 cat confdefs.h - <<_ACEOF >conftest.c
14785
14786
14787 #include <linux/fs.h>
14788
14789 int
14790 main (void)
14791 {
14792
14793 vfs_fsync(NULL, 0);
14794
14795 ;
14796 return 0;
14797 }
14798
14799 _ACEOF
14800
14801
14802 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14803 echo "obj-m := conftest.o" >build/Makefile
14804 modpost_flag=''
14805 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14806 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'
14807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 test $ac_status = 0; }; }; then :
14817
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14819 $as_echo "yes" >&6; }
14820
14821 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
14822
14823
14824 else
14825 $as_echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829 $as_echo "no" >&6; }
14830
14831
14832
14833 fi
14834 rm -Rf build
14835
14836
14837
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
14840 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
14841
14842
14843 cat confdefs.h - <<_ACEOF >conftest.c
14844
14845
14846 #include <linux/fs.h>
14847
14848 int
14849 main (void)
14850 {
14851
14852 struct inode_operations ops;
14853 ops.truncate_range = NULL;
14854
14855 ;
14856 return 0;
14857 }
14858
14859 _ACEOF
14860
14861
14862 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14863 echo "obj-m := conftest.o" >build/Makefile
14864 modpost_flag=''
14865 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14866 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'
14867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876 test $ac_status = 0; }; }; then :
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14879 $as_echo "yes" >&6; }
14880
14881 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
14882
14883
14884 else
14885 $as_echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 $as_echo "no" >&6; }
14890
14891
14892
14893 fi
14894 rm -Rf build
14895
14896
14897
14898
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
14900 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
14901 tmp_flags="$EXTRA_KCFLAGS"
14902 EXTRA_KCFLAGS="-Werror"
14903
14904
14905 cat confdefs.h - <<_ACEOF >conftest.c
14906
14907
14908 #include <linux/sched.h>
14909 #include <linux/fs_struct.h>
14910
14911 int
14912 main (void)
14913 {
14914
14915 struct fs_struct fs;
14916 spin_lock_init(&fs.lock);
14917
14918 ;
14919 return 0;
14920 }
14921
14922 _ACEOF
14923
14924
14925 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14926 echo "obj-m := conftest.o" >build/Makefile
14927 modpost_flag=''
14928 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14929 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'
14930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14934 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14936 (eval $ac_try) 2>&5
14937 ac_status=$?
14938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14939 test $ac_status = 0; }; }; then :
14940
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14942 $as_echo "yes" >&6; }
14943
14944 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
14945
14946
14947 else
14948 $as_echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14950
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14952 $as_echo "no" >&6; }
14953
14954
14955
14956 fi
14957 rm -Rf build
14958
14959
14960 EXTRA_KCFLAGS="$tmp_flags"
14961
14962
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct cred exists" >&5
14964 $as_echo_n "checking whether struct cred exists... " >&6; }
14965
14966
14967 cat confdefs.h - <<_ACEOF >conftest.c
14968
14969
14970 #include <linux/cred.h>
14971
14972 int
14973 main (void)
14974 {
14975
14976 struct cred *cr __attribute__ ((unused));
14977 cr = NULL;
14978
14979 ;
14980 return 0;
14981 }
14982
14983 _ACEOF
14984
14985
14986 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14987 echo "obj-m := conftest.o" >build/Makefile
14988 modpost_flag=''
14989 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14990 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'
14991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14995 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000 test $ac_status = 0; }; }; then :
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15003 $as_echo "yes" >&6; }
15004
15005 $as_echo "#define HAVE_CRED_STRUCT 1" >>confdefs.h
15006
15007
15008 else
15009 $as_echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15013 $as_echo "no" >&6; }
15014
15015
15016
15017 fi
15018 rm -Rf build
15019
15020
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether groups_search() is available" >&5
15023 $as_echo_n "checking whether groups_search() is available... " >&6; }
15024
15025
15026
15027 cat confdefs.h - <<_ACEOF >conftest.c
15028
15029
15030 #include <linux/cred.h>
15031
15032 int
15033 main (void)
15034 {
15035
15036 groups_search(NULL, 0);
15037
15038 ;
15039 return 0;
15040 }
15041
15042 _ACEOF
15043
15044
15045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15046 echo "obj-m := conftest.o" >build/Makefile
15047 modpost_flag=''
15048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15049 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'
15050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15056 (eval $ac_try) 2>&5
15057 ac_status=$?
15058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15059 test $ac_status = 0; }; }; then :
15060 rc=0
15061 else
15062 $as_echo "$as_me: failed program was:" >&5
15063 sed 's/^/| /' conftest.$ac_ext >&5
15064 rc=1
15065
15066
15067 fi
15068 rm -Rf build
15069
15070
15071 if test $rc -ne 0; then :
15072
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15074 $as_echo "no" >&6; }
15075
15076 else
15077 if test "x$enable_linux_builtin" != xyes; then
15078
15079 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15080 $LINUX_OBJ/Module*.symvers 2>/dev/null
15081 rc=$?
15082 if test $rc -ne 0; then
15083 export=0
15084 for file in ; do
15085 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15086 "$LINUX_OBJ/$file" 2>/dev/null
15087 rc=$?
15088 if test $rc -eq 0; then
15089 export=1
15090 break;
15091 fi
15092 done
15093 if test $export -eq 0; then :
15094 rc=1
15095 else :
15096 rc=0
15097 fi
15098 else :
15099 rc=0
15100 fi
15101
15102 fi
15103 if test $rc -ne 0; then :
15104
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15106 $as_echo "no" >&6; }
15107
15108 else :
15109
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15111 $as_echo "yes" >&6; }
15112
15113 $as_echo "#define HAVE_GROUPS_SEARCH 1" >>confdefs.h
15114
15115
15116 fi
15117 fi
15118
15119
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
15121 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
15122
15123
15124
15125 cat confdefs.h - <<_ACEOF >conftest.c
15126
15127
15128 #include <linux/sched.h>
15129
15130 int
15131 main (void)
15132 {
15133
15134 __put_task_struct(NULL);
15135
15136 ;
15137 return 0;
15138 }
15139
15140 _ACEOF
15141
15142
15143 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15144 echo "obj-m := conftest.o" >build/Makefile
15145 modpost_flag=''
15146 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15147 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15154 (eval $ac_try) 2>&5
15155 ac_status=$?
15156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; }; }; then :
15158 rc=0
15159 else
15160 $as_echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162 rc=1
15163
15164
15165 fi
15166 rm -Rf build
15167
15168
15169 if test $rc -ne 0; then :
15170
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15172 $as_echo "no" >&6; }
15173
15174 else
15175 if test "x$enable_linux_builtin" != xyes; then
15176
15177 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15178 $LINUX_OBJ/Module*.symvers 2>/dev/null
15179 rc=$?
15180 if test $rc -ne 0; then
15181 export=0
15182 for file in ; do
15183 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15184 "$LINUX_OBJ/$file" 2>/dev/null
15185 rc=$?
15186 if test $rc -eq 0; then
15187 export=1
15188 break;
15189 fi
15190 done
15191 if test $export -eq 0; then :
15192 rc=1
15193 else :
15194 rc=0
15195 fi
15196 else :
15197 rc=0
15198 fi
15199
15200 fi
15201 if test $rc -ne 0; then :
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15204 $as_echo "no" >&6; }
15205
15206 else :
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15209 $as_echo "yes" >&6; }
15210
15211 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
15212
15213
15214 fi
15215 fi
15216
15217
15218
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether proc_handler() wants 5 args" >&5
15220 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15221
15222
15223 cat confdefs.h - <<_ACEOF >conftest.c
15224
15225
15226 #include <linux/sysctl.h>
15227
15228 int
15229 main (void)
15230 {
15231
15232 proc_dostring(NULL, 0, NULL, NULL, NULL);
15233
15234 ;
15235 return 0;
15236 }
15237
15238 _ACEOF
15239
15240
15241 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15242 echo "obj-m := conftest.o" >build/Makefile
15243 modpost_flag=''
15244 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15245 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'
15246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15252 (eval $ac_try) 2>&5
15253 ac_status=$?
15254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15255 test $ac_status = 0; }; }; then :
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15258 $as_echo "yes" >&6; }
15259
15260 $as_echo "#define HAVE_5ARGS_PROC_HANDLER 1" >>confdefs.h
15261
15262
15263 else
15264 $as_echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269
15270
15271
15272 fi
15273 rm -Rf build
15274
15275
15276
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kvasprintf() is available" >&5
15278 $as_echo_n "checking whether kvasprintf() is available... " >&6; }
15279
15280
15281
15282 cat confdefs.h - <<_ACEOF >conftest.c
15283
15284
15285 #include <linux/kernel.h>
15286
15287 int
15288 main (void)
15289 {
15290
15291 kvasprintf(0, NULL, *((va_list*)NULL));
15292
15293 ;
15294 return 0;
15295 }
15296
15297 _ACEOF
15298
15299
15300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15301 echo "obj-m := conftest.o" >build/Makefile
15302 modpost_flag=''
15303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15304 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'
15305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15306 (eval $ac_try) 2>&5
15307 ac_status=$?
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15314 test $ac_status = 0; }; }; then :
15315 rc=0
15316 else
15317 $as_echo "$as_me: failed program was:" >&5
15318 sed 's/^/| /' conftest.$ac_ext >&5
15319 rc=1
15320
15321
15322 fi
15323 rm -Rf build
15324
15325
15326 if test $rc -ne 0; then :
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330
15331 else
15332 if test "x$enable_linux_builtin" != xyes; then
15333
15334 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15335 $LINUX_OBJ/Module*.symvers 2>/dev/null
15336 rc=$?
15337 if test $rc -ne 0; then
15338 export=0
15339 for file in ; do
15340 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15341 "$LINUX_OBJ/$file" 2>/dev/null
15342 rc=$?
15343 if test $rc -eq 0; then
15344 export=1
15345 break;
15346 fi
15347 done
15348 if test $export -eq 0; then :
15349 rc=1
15350 else :
15351 rc=0
15352 fi
15353 else :
15354 rc=0
15355 fi
15356
15357 fi
15358 if test $rc -ne 0; then :
15359
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15362
15363 else :
15364
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15366 $as_echo "yes" >&6; }
15367
15368 $as_echo "#define HAVE_KVASPRINTF 1" >>confdefs.h
15369
15370
15371 fi
15372 fi
15373
15374
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5
15376 $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; }
15377
15378
15379
15380 cat confdefs.h - <<_ACEOF >conftest.c
15381
15382
15383 #include <linux/rwsem.h>
15384 int rwsem_is_locked(struct rw_semaphore *sem) { return 0; }
15385
15386 int
15387 main (void)
15388 {
15389
15390 ;
15391 return 0;
15392 }
15393
15394 _ACEOF
15395
15396
15397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15398 echo "obj-m := conftest.o" >build/Makefile
15399 modpost_flag=''
15400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15401 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'
15402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15408 (eval $ac_try) 2>&5
15409 ac_status=$?
15410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15411 test $ac_status = 0; }; }; then :
15412 rc=0
15413 else
15414 $as_echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416 rc=1
15417
15418
15419 fi
15420 rm -Rf build
15421
15422
15423 if test $rc -ne 0; then :
15424
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426 $as_echo "no" >&6; }
15427
15428 else
15429 if test "x$enable_linux_builtin" != xyes; then
15430
15431 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15432 $LINUX_OBJ/Module*.symvers 2>/dev/null
15433 rc=$?
15434 if test $rc -ne 0; then
15435 export=0
15436 for file in lib/rwsem-spinlock.c; do
15437 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15438 "$LINUX_OBJ/$file" 2>/dev/null
15439 rc=$?
15440 if test $rc -eq 0; then
15441 export=1
15442 break;
15443 fi
15444 done
15445 if test $export -eq 0; then :
15446 rc=1
15447 else :
15448 rc=0
15449 fi
15450 else :
15451 rc=0
15452 fi
15453
15454 fi
15455 if test $rc -ne 0; then :
15456
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15458 $as_echo "no" >&6; }
15459
15460 else :
15461
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15463 $as_echo "yes" >&6; }
15464
15465 $as_echo "#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1" >>confdefs.h
15466
15467
15468 fi
15469 fi
15470
15471
15472
15473
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15475 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15476
15477
15478 cat confdefs.h - <<_ACEOF >conftest.c
15479
15480
15481 #include <linux/fs.h>
15482
15483 int
15484 main (void)
15485 {
15486
15487 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15488 struct file_operations fops __attribute__ ((unused)) = {
15489 .fallocate = fallocate,
15490 };
15491
15492 ;
15493 return 0;
15494 }
15495
15496 _ACEOF
15497
15498
15499 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15500 echo "obj-m := conftest.o" >build/Makefile
15501 modpost_flag=''
15502 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15503 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'
15504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15508 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15510 (eval $ac_try) 2>&5
15511 ac_status=$?
15512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15513 test $ac_status = 0; }; }; then :
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15516 $as_echo "yes" >&6; }
15517
15518 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15519
15520
15521 else
15522 $as_echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15526 $as_echo "no" >&6; }
15527
15528
15529
15530 fi
15531 rm -Rf build
15532
15533
15534
15535
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15537 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15538
15539
15540 cat confdefs.h - <<_ACEOF >conftest.c
15541
15542
15543 #include <linux/fs.h>
15544
15545 int
15546 main (void)
15547 {
15548
15549 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15550 struct inode_operations fops __attribute__ ((unused)) = {
15551 .fallocate = fallocate,
15552 };
15553
15554 ;
15555 return 0;
15556 }
15557
15558 _ACEOF
15559
15560
15561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15562 echo "obj-m := conftest.o" >build/Makefile
15563 modpost_flag=''
15564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15565 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'
15566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15567 (eval $ac_try) 2>&5
15568 ac_status=$?
15569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15570 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15575 test $ac_status = 0; }; }; then :
15576
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15578 $as_echo "yes" >&6; }
15579
15580 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15581
15582
15583 else
15584 $as_echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15588 $as_echo "no" >&6; }
15589
15590
15591
15592 fi
15593 rm -Rf build
15594
15595
15596
15597
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15599 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15600
15601
15602 cat confdefs.h - <<_ACEOF >conftest.c
15603
15604
15605 #include <linux/fs.h>
15606
15607 int
15608 main (void)
15609 {
15610
15611 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15612 struct file_operations_no_const fops __attribute__ ((unused)) = {
15613 .fallocate = fallocate,
15614 };
15615
15616 ;
15617 return 0;
15618 }
15619
15620 _ACEOF
15621
15622
15623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15624 echo "obj-m := conftest.o" >build/Makefile
15625 modpost_flag=''
15626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15627 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'
15628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15637 test $ac_status = 0; }; }; then :
15638
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15640 $as_echo "yes" >&6; }
15641
15642 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15643
15644
15645 else
15646 $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15651
15652
15653
15654 fi
15655 rm -Rf build
15656
15657
15658
15659
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_dcache_memory() is available" >&5
15661 $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; }
15662
15663
15664
15665 cat confdefs.h - <<_ACEOF >conftest.c
15666
15667
15668 #include <linux/dcache.h>
15669
15670 int
15671 main (void)
15672 {
15673
15674 shrink_dcache_memory(0, 0);
15675
15676 ;
15677 return 0;
15678 }
15679
15680 _ACEOF
15681
15682
15683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15684 echo "obj-m := conftest.o" >build/Makefile
15685 modpost_flag=''
15686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15687 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'
15688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15697 test $ac_status = 0; }; }; then :
15698 rc=0
15699 else
15700 $as_echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702 rc=1
15703
15704
15705 fi
15706 rm -Rf build
15707
15708
15709 if test $rc -ne 0; then :
15710
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15713
15714 else
15715 if test "x$enable_linux_builtin" != xyes; then
15716
15717 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15718 $LINUX_OBJ/Module*.symvers 2>/dev/null
15719 rc=$?
15720 if test $rc -ne 0; then
15721 export=0
15722 for file in fs/dcache.c; do
15723 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15724 "$LINUX_OBJ/$file" 2>/dev/null
15725 rc=$?
15726 if test $rc -eq 0; then
15727 export=1
15728 break;
15729 fi
15730 done
15731 if test $export -eq 0; then :
15732 rc=1
15733 else :
15734 rc=0
15735 fi
15736 else :
15737 rc=0
15738 fi
15739
15740 fi
15741 if test $rc -ne 0; then :
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 $as_echo "no" >&6; }
15745
15746 else :
15747
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15749 $as_echo "yes" >&6; }
15750
15751 $as_echo "#define HAVE_SHRINK_DCACHE_MEMORY 1" >>confdefs.h
15752
15753
15754 fi
15755 fi
15756
15757
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_icache_memory() is available" >&5
15759 $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; }
15760
15761
15762
15763 cat confdefs.h - <<_ACEOF >conftest.c
15764
15765
15766 #include <linux/dcache.h>
15767
15768 int
15769 main (void)
15770 {
15771
15772 shrink_icache_memory(0, 0);
15773
15774 ;
15775 return 0;
15776 }
15777
15778 _ACEOF
15779
15780
15781 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15782 echo "obj-m := conftest.o" >build/Makefile
15783 modpost_flag=''
15784 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15785 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'
15786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15790 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15795 test $ac_status = 0; }; }; then :
15796 rc=0
15797 else
15798 $as_echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800 rc=1
15801
15802
15803 fi
15804 rm -Rf build
15805
15806
15807 if test $rc -ne 0; then :
15808
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 $as_echo "no" >&6; }
15811
15812 else
15813 if test "x$enable_linux_builtin" != xyes; then
15814
15815 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15816 $LINUX_OBJ/Module*.symvers 2>/dev/null
15817 rc=$?
15818 if test $rc -ne 0; then
15819 export=0
15820 for file in fs/inode.c; do
15821 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15822 "$LINUX_OBJ/$file" 2>/dev/null
15823 rc=$?
15824 if test $rc -eq 0; then
15825 export=1
15826 break;
15827 fi
15828 done
15829 if test $export -eq 0; then :
15830 rc=1
15831 else :
15832 rc=0
15833 fi
15834 else :
15835 rc=0
15836 fi
15837
15838 fi
15839 if test $rc -ne 0; then :
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15843
15844 else :
15845
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15847 $as_echo "yes" >&6; }
15848
15849 $as_echo "#define HAVE_SHRINK_ICACHE_MEMORY 1" >>confdefs.h
15850
15851
15852 fi
15853 fi
15854
15855
15856
15857
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_parent exists in header" >&5
15859 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15860 header=0
15861 for file in include/linux/namei.h; do
15862 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15863 rc=$?
15864 if test $rc -eq 0; then
15865 header=1
15866 break;
15867 fi
15868 done
15869 if test $header -eq 0; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15871 $as_echo "no" >&6; }
15872
15873 else
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15875 $as_echo "yes" >&6; }
15876
15877 $as_echo "#define HAVE_KERN_PATH_PARENT_HEADER 1" >>confdefs.h
15878
15879 fi
15880
15881
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kern_path_parent() is available" >&5
15883 $as_echo_n "checking whether kern_path_parent() is available... " >&6; }
15884
15885
15886
15887 cat confdefs.h - <<_ACEOF >conftest.c
15888
15889
15890 #include <linux/namei.h>
15891
15892 int
15893 main (void)
15894 {
15895
15896 kern_path_parent(NULL, NULL);
15897
15898 ;
15899 return 0;
15900 }
15901
15902 _ACEOF
15903
15904
15905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15906 echo "obj-m := conftest.o" >build/Makefile
15907 modpost_flag=''
15908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15909 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'
15910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15916 (eval $ac_try) 2>&5
15917 ac_status=$?
15918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15919 test $ac_status = 0; }; }; then :
15920 rc=0
15921 else
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924 rc=1
15925
15926
15927 fi
15928 rm -Rf build
15929
15930
15931 if test $rc -ne 0; then :
15932
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15934 $as_echo "no" >&6; }
15935
15936 else
15937 if test "x$enable_linux_builtin" != xyes; then
15938
15939 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15940 $LINUX_OBJ/Module*.symvers 2>/dev/null
15941 rc=$?
15942 if test $rc -ne 0; then
15943 export=0
15944 for file in fs/namei.c; do
15945 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15946 "$LINUX_OBJ/$file" 2>/dev/null
15947 rc=$?
15948 if test $rc -eq 0; then
15949 export=1
15950 break;
15951 fi
15952 done
15953 if test $export -eq 0; then :
15954 rc=1
15955 else :
15956 rc=0
15957 fi
15958 else :
15959 rc=0
15960 fi
15961
15962 fi
15963 if test $rc -ne 0; then :
15964
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15966 $as_echo "no" >&6; }
15967
15968 else :
15969
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15971 $as_echo "yes" >&6; }
15972
15973 $as_echo "#define HAVE_KERN_PATH_PARENT_SYMBOL 1" >>confdefs.h
15974
15975
15976 fi
15977 fi
15978
15979
15980
15981
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_locked exists in header" >&5
15983 $as_echo_n "checking whether symbol kern_path_locked exists in header... " >&6; }
15984 header=0
15985 for file in include/linux/namei.h; do
15986 grep -q "struct dentry \*kern_path_locked(const char \*, struct path \*)" "$LINUX/$file" 2>/dev/null
15987 rc=$?
15988 if test $rc -eq 0; then
15989 header=1
15990 break;
15991 fi
15992 done
15993 if test $header -eq 0; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15995 $as_echo "no" >&6; }
15996
15997 else
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15999 $as_echo "yes" >&6; }
16000
16001 $as_echo "#define HAVE_KERN_PATH_LOCKED 1" >>confdefs.h
16002
16003 fi
16004
16005
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_KALLSYMS is defined" >&5
16008 $as_echo_n "checking whether CONFIG_KALLSYMS is defined... " >&6; }
16009
16010
16011 cat confdefs.h - <<_ACEOF >conftest.c
16012
16013
16014 #if !defined(CONFIG_KALLSYMS)
16015 #error CONFIG_KALLSYMS not defined
16016 #endif
16017
16018 int
16019 main (void)
16020 {
16021
16022 ;
16023 return 0;
16024 }
16025
16026 _ACEOF
16027
16028
16029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16030 echo "obj-m := conftest.o" >build/Makefile
16031 modpost_flag=''
16032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16033 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'
16034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16038 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16043 test $ac_status = 0; }; }; then :
16044
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16046 $as_echo "yes" >&6; }
16047
16048 else
16049 $as_echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16053 $as_echo "no" >&6; }
16054 as_fn_error $? "
16055 *** This kernel does not include the required kallsyms support.
16056 *** Rebuild the kernel with CONFIG_KALLSYMS=y set." "$LINENO" 5
16057
16058
16059
16060 fi
16061 rm -Rf build
16062
16063
16064
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
16067 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
16068
16069
16070 cat confdefs.h - <<_ACEOF >conftest.c
16071
16072
16073 #if !defined(CONFIG_ZLIB_INFLATE) && \
16074 !defined(CONFIG_ZLIB_INFLATE_MODULE)
16075 #error CONFIG_ZLIB_INFLATE not defined
16076 #endif
16077
16078 int
16079 main (void)
16080 {
16081
16082 ;
16083 return 0;
16084 }
16085
16086 _ACEOF
16087
16088
16089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16090 echo "obj-m := conftest.o" >build/Makefile
16091 modpost_flag=''
16092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16093 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'
16094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; }; }; then :
16104
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16106 $as_echo "yes" >&6; }
16107
16108 else
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16114 as_fn_error $? "
16115 *** This kernel does not include the required zlib inflate support.
16116 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
16117
16118
16119
16120 fi
16121 rm -Rf build
16122
16123
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
16127 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
16128
16129
16130 cat confdefs.h - <<_ACEOF >conftest.c
16131
16132
16133 #if !defined(CONFIG_ZLIB_DEFLATE) && \
16134 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
16135 #error CONFIG_ZLIB_DEFLATE not defined
16136 #endif
16137
16138 int
16139 main (void)
16140 {
16141
16142 ;
16143 return 0;
16144 }
16145
16146 _ACEOF
16147
16148
16149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16150 echo "obj-m := conftest.o" >build/Makefile
16151 modpost_flag=''
16152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16153 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'
16154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16158 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16163 test $ac_status = 0; }; }; then :
16164
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16166 $as_echo "yes" >&6; }
16167
16168 else
16169 $as_echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16173 $as_echo "no" >&6; }
16174 as_fn_error $? "
16175 *** This kernel does not include the required zlib deflate support.
16176 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
16177
16178
16179
16180 fi
16181 rm -Rf build
16182
16183
16184
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
16186 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
16187
16188
16189 cat confdefs.h - <<_ACEOF >conftest.c
16190
16191
16192 #include <linux/zlib.h>
16193
16194 int
16195 main (void)
16196 {
16197
16198 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
16199
16200 ;
16201 return 0;
16202 }
16203
16204 _ACEOF
16205
16206
16207 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16208 echo "obj-m := conftest.o" >build/Makefile
16209 modpost_flag=''
16210 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16211 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'
16212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16216 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16221 test $ac_status = 0; }; }; then :
16222
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16224 $as_echo "yes" >&6; }
16225
16226 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
16227
16228
16229 else
16230 $as_echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16235
16236
16237
16238 fi
16239 rm -Rf build
16240
16241
16242
16243
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
16245 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
16246
16247
16248 cat confdefs.h - <<_ACEOF >conftest.c
16249
16250
16251 #include <linux/mm.h>
16252
16253 int
16254 main (void)
16255 {
16256
16257 struct shrink_control sc __attribute__ ((unused));
16258
16259 sc.nr_to_scan = 0;
16260 sc.gfp_mask = GFP_KERNEL;
16261
16262 ;
16263 return 0;
16264 }
16265
16266 _ACEOF
16267
16268
16269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16270 echo "obj-m := conftest.o" >build/Makefile
16271 modpost_flag=''
16272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16273 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'
16274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16278 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16280 (eval $ac_try) 2>&5
16281 ac_status=$?
16282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16283 test $ac_status = 0; }; }; then :
16284
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16286 $as_echo "yes" >&6; }
16287
16288 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
16289
16290
16291 else
16292 $as_echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16296 $as_echo "no" >&6; }
16297
16298
16299
16300 fi
16301 rm -Rf build
16302
16303
16304
16305
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
16307 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16308 tmp_flags="$EXTRA_KCFLAGS"
16309 EXTRA_KCFLAGS="-Werror"
16310
16311
16312 cat confdefs.h - <<_ACEOF >conftest.c
16313
16314
16315 #include <linux/rwsem.h>
16316
16317 int
16318 main (void)
16319 {
16320
16321 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16322 raw_spinlock_t dummy_lock __attribute__ ((unused));
16323 dummy_semaphore.wait_lock = dummy_lock;
16324
16325 ;
16326 return 0;
16327 }
16328
16329 _ACEOF
16330
16331
16332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16333 echo "obj-m := conftest.o" >build/Makefile
16334 modpost_flag=''
16335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16336 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'
16337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16338 (eval $ac_try) 2>&5
16339 ac_status=$?
16340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16341 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16346 test $ac_status = 0; }; }; then :
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16349 $as_echo "yes" >&6; }
16350
16351 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
16352
16353
16354 else
16355 $as_echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359 $as_echo "no" >&6; }
16360
16361
16362
16363 fi
16364 rm -Rf build
16365
16366
16367 EXTRA_KCFLAGS="$tmp_flags"
16368
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
16370 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
16371
16372
16373 cat confdefs.h - <<_ACEOF >conftest.c
16374
16375
16376 #include <linux/sched.h>
16377 #include <linux/sched/rt.h>
16378
16379 int
16380 main (void)
16381 {
16382
16383 return 0;
16384
16385 ;
16386 return 0;
16387 }
16388
16389 _ACEOF
16390
16391
16392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16393 echo "obj-m := conftest.o" >build/Makefile
16394 modpost_flag=''
16395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16396 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'
16397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16403 (eval $ac_try) 2>&5
16404 ac_status=$?
16405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16406 test $ac_status = 0; }; }; then :
16407
16408
16409 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
16410
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16412 $as_echo "yes" >&6; }
16413
16414 else
16415 $as_echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16420
16421
16422
16423 fi
16424 rm -Rf build
16425
16426
16427
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
16430 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
16431
16432
16433 cat confdefs.h - <<_ACEOF >conftest.c
16434
16435
16436 #include <linux/fs.h>
16437
16438 int
16439 main (void)
16440 {
16441
16442 vfs_getattr((struct path *) NULL,
16443 (struct kstat *)NULL);
16444
16445 ;
16446 return 0;
16447 }
16448
16449 _ACEOF
16450
16451
16452 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16453 echo "obj-m := conftest.o" >build/Makefile
16454 modpost_flag=''
16455 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16456 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'
16457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16458 (eval $ac_try) 2>&5
16459 ac_status=$?
16460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16461 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16463 (eval $ac_try) 2>&5
16464 ac_status=$?
16465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16466 test $ac_status = 0; }; }; then :
16467
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
16469 $as_echo "2 args" >&6; }
16470
16471 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
16472
16473
16474 else
16475 $as_echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478
16479
16480 cat confdefs.h - <<_ACEOF >conftest.c
16481
16482
16483 #include <linux/fs.h>
16484
16485 int
16486 main (void)
16487 {
16488
16489 vfs_getattr((struct vfsmount *)NULL,
16490 (struct dentry *)NULL,
16491 (struct kstat *)NULL);
16492
16493 ;
16494 return 0;
16495 }
16496
16497 _ACEOF
16498
16499
16500 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16501 echo "obj-m := conftest.o" >build/Makefile
16502 modpost_flag=''
16503 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16504 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'
16505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16506 (eval $ac_try) 2>&5
16507 ac_status=$?
16508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16509 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514 test $ac_status = 0; }; }; then :
16515
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
16517 $as_echo "3 args" >&6; }
16518
16519 else
16520 $as_echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523 as_fn_error $? "unknown" "$LINENO" 5
16524
16525
16526
16527 fi
16528 rm -Rf build
16529
16530
16531
16532
16533
16534 fi
16535 rm -Rf build
16536
16537
16538
16539 ;;
16540 user) ;;
16541 all)
16542
16543
16544 # Check whether --with-linux was given.
16545 if test "${with_linux+set}" = set; then :
16546 withval=$with_linux; kernelsrc="$withval"
16547 fi
16548
16549
16550
16551 # Check whether --with-linux-obj was given.
16552 if test "${with_linux_obj+set}" = set; then :
16553 withval=$with_linux_obj; kernelbuild="$withval"
16554 fi
16555
16556
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
16558 $as_echo_n "checking kernel source directory... " >&6; }
16559 if test -z "$kernelsrc"; then
16560 if test -e "/lib/modules/$(uname -r)/source"; then
16561 headersdir="/lib/modules/$(uname -r)/source"
16562 sourcelink=$(readlink -f "$headersdir")
16563 elif test -e "/lib/modules/$(uname -r)/build"; then
16564 headersdir="/lib/modules/$(uname -r)/build"
16565 sourcelink=$(readlink -f "$headersdir")
16566 else
16567 sourcelink=$(ls -1d /usr/src/kernels/* \
16568 /usr/src/linux-* \
16569 2>/dev/null | grep -v obj | tail -1)
16570 fi
16571
16572 if test -n "$sourcelink" && test -e ${sourcelink}; then
16573 kernelsrc=`readlink -f ${sourcelink}`
16574 else
16575 kernelsrc="Not found"
16576 fi
16577 else
16578 if test "$kernelsrc" = "NONE"; then
16579 kernsrcver=NONE
16580 fi
16581 fi
16582
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
16584 $as_echo "$kernelsrc" >&6; }
16585 if test ! -d "$kernelsrc"; then
16586 as_fn_error $? "
16587 *** Please make sure the kernel devel package for your distribution
16588 *** is installed then try again. If that fails you can specify the
16589 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
16590 fi
16591
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
16593 $as_echo_n "checking kernel build directory... " >&6; }
16594 if test -z "$kernelbuild"; then
16595 if test -e "/lib/modules/$(uname -r)/build"; then
16596 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16597 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16598 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16599 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16600 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16601 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16602 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16603 else
16604 kernelbuild=${kernelsrc}
16605 fi
16606 fi
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
16608 $as_echo "$kernelbuild" >&6; }
16609
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
16611 $as_echo_n "checking kernel source version... " >&6; }
16612 utsrelease1=$kernelbuild/include/linux/version.h
16613 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16614 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16615 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16616 utsrelease=linux/version.h
16617 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16618 utsrelease=linux/utsrelease.h
16619 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16620 utsrelease=generated/utsrelease.h
16621 fi
16622
16623 if test "$utsrelease"; then
16624 kernsrcver=`(echo "#include <$utsrelease>";
16625 echo "kernsrcver=UTS_RELEASE") |
16626 cpp -I $kernelbuild/include |
16627 grep "^kernsrcver=" | cut -d \" -f 2`
16628
16629 if test -z "$kernsrcver"; then
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16631 $as_echo "Not found" >&6; }
16632 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
16633 fi
16634 else
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
16636 $as_echo "Not found" >&6; }
16637 if test "x$enable_linux_builtin" != xyes; then
16638 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
16639 else
16640 as_fn_error $? "
16641 *** Cannot find UTS_RELEASE definition.
16642 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
16643 fi
16644 fi
16645
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
16647 $as_echo "$kernsrcver" >&6; }
16648
16649 LINUX=${kernelsrc}
16650 LINUX_OBJ=${kernelbuild}
16651 LINUX_VERSION=${kernsrcver}
16652
16653
16654
16655
16656
16657
16658 modpost=$LINUX/scripts/Makefile.modpost
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
16660 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16661 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
16662 if grep -q Modules.symvers $modpost; then
16663 LINUX_SYMBOLS=Modules.symvers
16664 else
16665 LINUX_SYMBOLS=Module.symvers
16666 fi
16667
16668 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16669 as_fn_error $? "
16670 *** Please make sure the kernel devel package for your distribution
16671 *** is installed. If your building with a custom kernel make sure the
16672 *** kernel is configured, built, and the '--with-linux=PATH' configure
16673 *** option refers to the location of the kernel source." "$LINENO" 5
16674 fi
16675 else
16676 LINUX_SYMBOLS=NONE
16677 fi
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
16679 $as_echo "$LINUX_SYMBOLS" >&6; }
16680
16681
16682
16683
16684 if test "${LINUX_OBJ}" != "${LINUX}"; then
16685 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16686 fi
16687
16688
16689 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16690
16691
16692
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
16694 $as_echo_n "checking whether debugging is enabled... " >&6; }
16695 # Check whether --enable-debug was given.
16696 if test "${enable_debug+set}" = set; then :
16697 enableval=$enable_debug;
16698 else
16699 enable_debug=no
16700 fi
16701
16702
16703 if test "x$enable_debug" = xyes; then :
16704
16705 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16706 DEBUG_CFLAGS="-DDEBUG -Werror"
16707 DEBUG_SPL="_with_debug"
16708
16709 else
16710
16711 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16712 DEBUG_CFLAGS="-DNDEBUG"
16713 DEBUG_SPL="_without_debug"
16714
16715 fi
16716
16717
16718
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16720 $as_echo "$enable_debug" >&6; }
16721
16722
16723 # Check whether --enable-debug-log was given.
16724 if test "${enable_debug_log+set}" = set; then :
16725 enableval=$enable_debug_log;
16726 else
16727 enable_debug_log=yes
16728 fi
16729
16730
16731 if test "x$enable_debug_log" = xyes; then :
16732
16733 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16734 DEBUG_LOG="_with_debug_log"
16735
16736 $as_echo "#define DEBUG_LOG 1" >>confdefs.h
16737
16738
16739 else
16740
16741 DEBUG_LOG="_without_debug_log"
16742
16743 fi
16744
16745
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic debug logging is enabled" >&5
16747 $as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_log" >&5
16749 $as_echo "$enable_debug_log" >&6; }
16750
16751
16752 # Check whether --enable-debug-kmem was given.
16753 if test "${enable_debug_kmem+set}" = set; then :
16754 enableval=$enable_debug_kmem;
16755 else
16756 enable_debug_kmem=yes
16757 fi
16758
16759
16760 if test "x$enable_debug_kmem" = xyes; then :
16761
16762 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16763 DEBUG_KMEM="_with_debug_kmem"
16764
16765 $as_echo "#define DEBUG_KMEM 1" >>confdefs.h
16766
16767
16768 else
16769
16770 DEBUG_KMEM="_without_debug_kmem"
16771
16772 fi
16773
16774
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
16776 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
16778 $as_echo "$enable_debug_kmem" >&6; }
16779
16780
16781 # Check whether --enable-debug-kmem-tracking was given.
16782 if test "${enable_debug_kmem_tracking+set}" = set; then :
16783 enableval=$enable_debug_kmem_tracking;
16784 else
16785 enable_debug_kmem_tracking=no
16786 fi
16787
16788
16789 if test "x$enable_debug_kmem_tracking" = xyes; then :
16790
16791 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16792 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
16793
16794 $as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
16795
16796
16797 else
16798
16799 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
16800
16801 fi
16802
16803
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
16805 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
16807 $as_echo "$enable_debug_kmem_tracking" >&6; }
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
16810 $as_echo_n "checking whether modules can be built... " >&6; }
16811
16812
16813 cat confdefs.h - <<_ACEOF >conftest.c
16814
16815
16816 int
16817 main (void)
16818 {
16819
16820 ;
16821 return 0;
16822 }
16823
16824 _ACEOF
16825
16826
16827 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16828 echo "obj-m := conftest.o" >build/Makefile
16829 modpost_flag=''
16830 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16831 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'
16832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16836 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16841 test $ac_status = 0; }; }; then :
16842
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16844 $as_echo "yes" >&6; }
16845
16846 else
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.$ac_ext >&5
16849
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16852 if test "x$enable_linux_builtin" != xyes; then
16853 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
16854 else
16855 as_fn_error $? "
16856 *** Unable to build an empty module.
16857 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
16858 fi
16859
16860
16861
16862 fi
16863 rm -Rf build
16864
16865
16866
16867
16868 # Check whether --enable-atomic-spinlocks was given.
16869 if test "${enable_atomic_spinlocks+set}" = set; then :
16870 enableval=$enable_atomic_spinlocks;
16871 else
16872 enable_atomic_spinlocks=check
16873 fi
16874
16875
16876
16877
16878 cat confdefs.h - <<_ACEOF >conftest.c
16879
16880
16881 #include <linux/fs.h>
16882
16883 int
16884 main (void)
16885 {
16886
16887 atomic64_t *ptr __attribute__ ((unused));
16888
16889 ;
16890 return 0;
16891 }
16892
16893 _ACEOF
16894
16895
16896 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16897 echo "obj-m := conftest.o" >build/Makefile
16898 modpost_flag=''
16899 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16900 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'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16903 ac_status=$?
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16910 test $ac_status = 0; }; }; then :
16911
16912 have_atomic64_t=yes
16913
16914 $as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
16915
16916
16917 else
16918 $as_echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 have_atomic64_t=no
16922
16923
16924
16925 fi
16926 rm -Rf build
16927
16928
16929
16930 if test "x$enable_atomic_spinlocks" = xcheck; then :
16931
16932 if test "x$have_atomic64_t" = xyes; then :
16933
16934 enable_atomic_spinlocks=no
16935
16936 else
16937
16938 enable_atomic_spinlocks=yes
16939
16940 fi
16941
16942 fi
16943
16944 if test "x$enable_atomic_spinlocks" = xyes; then :
16945
16946
16947 $as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
16948
16949
16950 else
16951
16952 if test "x$have_atomic64_t" = xno; then :
16953
16954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16956 as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
16957 See \`config.log' for more details" "$LINENO" 5 ; }
16958
16959 fi
16960
16961 fi
16962
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
16964 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
16966 $as_echo "$enable_atomic_spinlocks" >&6; }
16967
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
16969 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
16971 $as_echo "$have_atomic64_t" >&6; }
16972
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_cmpxchg" >&5
16974 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16975
16976
16977 cat confdefs.h - <<_ACEOF >conftest.c
16978
16979
16980 #include <linux/fs.h>
16981
16982 int
16983 main (void)
16984 {
16985
16986 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16987
16988 ;
16989 return 0;
16990 }
16991
16992 _ACEOF
16993
16994
16995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16996 echo "obj-m := conftest.o" >build/Makefile
16997 modpost_flag=''
16998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16999 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'
17000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; }; then :
17010
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17012 $as_echo "yes" >&6; }
17013
17014 $as_echo "#define HAVE_ATOMIC64_CMPXCHG 1" >>confdefs.h
17015
17016
17017 else
17018 $as_echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022 $as_echo "no" >&6; }
17023
17024
17025
17026 fi
17027 rm -Rf build
17028
17029
17030
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_xchg" >&5
17032 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
17033
17034
17035 cat confdefs.h - <<_ACEOF >conftest.c
17036
17037
17038 #include <linux/fs.h>
17039
17040 int
17041 main (void)
17042 {
17043
17044 atomic64_xchg((atomic64_t *)NULL, 0);
17045
17046 ;
17047 return 0;
17048 }
17049
17050 _ACEOF
17051
17052
17053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17054 echo "obj-m := conftest.o" >build/Makefile
17055 modpost_flag=''
17056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17057 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'
17058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17062 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17064 (eval $ac_try) 2>&5
17065 ac_status=$?
17066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17067 test $ac_status = 0; }; }; then :
17068
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17070 $as_echo "yes" >&6; }
17071
17072 $as_echo "#define HAVE_ATOMIC64_XCHG 1" >>confdefs.h
17073
17074
17075 else
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080 $as_echo "no" >&6; }
17081
17082
17083
17084 fi
17085 rm -Rf build
17086
17087
17088
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines uintptr_t" >&5
17090 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
17091
17092
17093 cat confdefs.h - <<_ACEOF >conftest.c
17094
17095
17096 #include <linux/types.h>
17097
17098 int
17099 main (void)
17100 {
17101
17102 uintptr_t *ptr __attribute__ ((unused));
17103
17104 ;
17105 return 0;
17106 }
17107
17108 _ACEOF
17109
17110
17111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17112 echo "obj-m := conftest.o" >build/Makefile
17113 modpost_flag=''
17114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17115 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17125 test $ac_status = 0; }; }; then :
17126
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17128 $as_echo "yes" >&6; }
17129
17130 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17131
17132
17133 else
17134 $as_echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 $as_echo "no" >&6; }
17139
17140
17141
17142 fi
17143 rm -Rf build
17144
17145
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether register_sysctl_table() wants 2 args" >&5
17148 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
17149
17150
17151 cat confdefs.h - <<_ACEOF >conftest.c
17152
17153
17154 #include <linux/sysctl.h>
17155
17156 int
17157 main (void)
17158 {
17159
17160 (void) register_sysctl_table(NULL, 0);
17161
17162 ;
17163 return 0;
17164 }
17165
17166 _ACEOF
17167
17168
17169 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17170 echo "obj-m := conftest.o" >build/Makefile
17171 modpost_flag=''
17172 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17173 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'
17174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17175 (eval $ac_try) 2>&5
17176 ac_status=$?
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; }; }; then :
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186 $as_echo "yes" >&6; }
17187
17188 $as_echo "#define HAVE_2ARGS_REGISTER_SYSCTL 1" >>confdefs.h
17189
17190
17191 else
17192 $as_echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17194
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17197
17198
17199
17200 fi
17201 rm -Rf build
17202
17203
17204
17205
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_shrinker() available" >&5
17207 $as_echo_n "checking whether set_shrinker() available... " >&6; }
17208
17209
17210 cat confdefs.h - <<_ACEOF >conftest.c
17211
17212
17213 #include <linux/mm.h>
17214
17215 int
17216 main (void)
17217 {
17218
17219 return set_shrinker(DEFAULT_SEEKS, NULL);
17220
17221 ;
17222 return 0;
17223 }
17224
17225 _ACEOF
17226
17227
17228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17229 echo "obj-m := conftest.o" >build/Makefile
17230 modpost_flag=''
17231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17232 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'
17233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17237 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17242 test $ac_status = 0; }; }; then :
17243
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17245 $as_echo "yes" >&6; }
17246
17247 $as_echo "#define HAVE_SET_SHRINKER 1" >>confdefs.h
17248
17249
17250 else
17251 $as_echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17255 $as_echo "no" >&6; }
17256
17257
17258
17259 fi
17260 rm -Rf build
17261
17262
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrinker callback wants 3 args" >&5
17265 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
17266 tmp_flags="$EXTRA_KCFLAGS"
17267 EXTRA_KCFLAGS="-Werror"
17268
17269
17270 cat confdefs.h - <<_ACEOF >conftest.c
17271
17272
17273 #include <linux/mm.h>
17274
17275 int shrinker_cb(struct shrinker *, int, unsigned int);
17276
17277 int
17278 main (void)
17279 {
17280
17281 struct shrinker cache_shrinker = {
17282 .shrink = shrinker_cb,
17283 .seeks = DEFAULT_SEEKS,
17284 };
17285 register_shrinker(&cache_shrinker);
17286
17287 ;
17288 return 0;
17289 }
17290
17291 _ACEOF
17292
17293
17294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17295 echo "obj-m := conftest.o" >build/Makefile
17296 modpost_flag=''
17297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17298 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'
17299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17303 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17308 test $ac_status = 0; }; }; then :
17309
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17311 $as_echo "yes" >&6; }
17312
17313 $as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
17314
17315
17316 else
17317 $as_echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17321 $as_echo "no" >&6; }
17322
17323
17324
17325 fi
17326 rm -Rf build
17327
17328
17329 EXTRA_KCFLAGS="$tmp_flags"
17330
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct path used in struct nameidata" >&5
17332 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
17333
17334
17335 cat confdefs.h - <<_ACEOF >conftest.c
17336
17337
17338 #include <linux/namei.h>
17339
17340 int
17341 main (void)
17342 {
17343
17344 struct nameidata nd __attribute__ ((unused));
17345
17346 nd.path.mnt = NULL;
17347 nd.path.dentry = NULL;
17348
17349 ;
17350 return 0;
17351 }
17352
17353 _ACEOF
17354
17355
17356 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17357 echo "obj-m := conftest.o" >build/Makefile
17358 modpost_flag=''
17359 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17360 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'
17361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17365 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17367 (eval $ac_try) 2>&5
17368 ac_status=$?
17369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17370 test $ac_status = 0; }; }; then :
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17373 $as_echo "yes" >&6; }
17374
17375 $as_echo "#define HAVE_PATH_IN_NAMEIDATA 1" >>confdefs.h
17376
17377
17378 else
17379 $as_echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384
17385
17386
17387 fi
17388 rm -Rf build
17389
17390
17391
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether task_curr() is available" >&5
17393 $as_echo_n "checking whether task_curr() is available... " >&6; }
17394
17395
17396
17397 cat confdefs.h - <<_ACEOF >conftest.c
17398
17399
17400 #include <linux/sched.h>
17401
17402 int
17403 main (void)
17404 {
17405
17406 task_curr(NULL);
17407
17408 ;
17409 return 0;
17410 }
17411
17412 _ACEOF
17413
17414
17415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17416 echo "obj-m := conftest.o" >build/Makefile
17417 modpost_flag=''
17418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17419 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'
17420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17424 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17426 (eval $ac_try) 2>&5
17427 ac_status=$?
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }; }; then :
17430 rc=0
17431 else
17432 $as_echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.$ac_ext >&5
17434 rc=1
17435
17436
17437 fi
17438 rm -Rf build
17439
17440
17441 if test $rc -ne 0; then :
17442
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17445
17446 else
17447 if test "x$enable_linux_builtin" != xyes; then
17448
17449 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17450 $LINUX_OBJ/Module*.symvers 2>/dev/null
17451 rc=$?
17452 if test $rc -ne 0; then
17453 export=0
17454 for file in kernel/sched.c; do
17455 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17456 "$LINUX_OBJ/$file" 2>/dev/null
17457 rc=$?
17458 if test $rc -eq 0; then
17459 export=1
17460 break;
17461 fi
17462 done
17463 if test $export -eq 0; then :
17464 rc=1
17465 else :
17466 rc=0
17467 fi
17468 else :
17469 rc=0
17470 fi
17471
17472 fi
17473 if test $rc -ne 0; then :
17474
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17477
17478 else :
17479
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17481 $as_echo "yes" >&6; }
17482
17483 $as_echo "#define HAVE_TASK_CURR 1" >>confdefs.h
17484
17485
17486 fi
17487 fi
17488
17489
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unnumbered sysctl support exists" >&5
17491 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17492
17493
17494 cat confdefs.h - <<_ACEOF >conftest.c
17495
17496
17497 #include <linux/sysctl.h>
17498
17499 int
17500 main (void)
17501 {
17502
17503 #ifndef CTL_UNNUMBERED
17504 #error CTL_UNNUMBERED undefined
17505 #endif
17506
17507 ;
17508 return 0;
17509 }
17510
17511 _ACEOF
17512
17513
17514 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17515 echo "obj-m := conftest.o" >build/Makefile
17516 modpost_flag=''
17517 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17518 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'
17519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17523 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17528 test $ac_status = 0; }; }; then :
17529
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17531 $as_echo "yes" >&6; }
17532
17533 $as_echo "#define HAVE_CTL_UNNUMBERED 1" >>confdefs.h
17534
17535
17536 else
17537 $as_echo "$as_me: failed program was:" >&5
17538 sed 's/^/| /' conftest.$ac_ext >&5
17539
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17541 $as_echo "no" >&6; }
17542
17543
17544
17545 fi
17546 rm -Rf build
17547
17548
17549
17550
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
17552 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17553
17554
17555 cat confdefs.h - <<_ACEOF >conftest.c
17556
17557
17558 #include <linux/sysctl.h>
17559
17560 int
17561 main (void)
17562 {
17563
17564 struct ctl_table ctl __attribute__ ((unused));
17565 ctl.ctl_name = 0;
17566
17567 ;
17568 return 0;
17569 }
17570
17571 _ACEOF
17572
17573
17574 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17575 echo "obj-m := conftest.o" >build/Makefile
17576 modpost_flag=''
17577 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17578 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'
17579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17583 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17588 test $ac_status = 0; }; }; then :
17589
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17591 $as_echo "yes" >&6; }
17592
17593 $as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
17594
17595
17596 else
17597 $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17601 $as_echo "no" >&6; }
17602
17603
17604
17605 fi
17606 rm -Rf build
17607
17608
17609
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fls64() is available" >&5
17611 $as_echo_n "checking whether fls64() is available... " >&6; }
17612
17613
17614 cat confdefs.h - <<_ACEOF >conftest.c
17615
17616
17617 #include <linux/bitops.h>
17618
17619 int
17620 main (void)
17621 {
17622
17623 return fls64(0);
17624
17625 ;
17626 return 0;
17627 }
17628
17629 _ACEOF
17630
17631
17632 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17633 echo "obj-m := conftest.o" >build/Makefile
17634 modpost_flag=''
17635 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17636 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'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17643 (eval $ac_try) 2>&5
17644 ac_status=$?
17645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17646 test $ac_status = 0; }; }; then :
17647
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17649 $as_echo "yes" >&6; }
17650
17651 $as_echo "#define HAVE_FLS64 1" >>confdefs.h
17652
17653
17654 else
17655 $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 $as_echo "no" >&6; }
17660
17661
17662
17663 fi
17664 rm -Rf build
17665
17666
17667
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() is available" >&5
17669 $as_echo_n "checking whether device_create() is available... " >&6; }
17670
17671 grep -q -E '[[:space:]]device_create[[:space:]]' \
17672 $LINUX_OBJ/Module*.symvers 2>/dev/null
17673 rc=$?
17674 if test $rc -ne 0; then
17675 export=0
17676 for file in drivers/base/core.c; do
17677 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17678 "$LINUX_OBJ/$file" 2>/dev/null
17679 rc=$?
17680 if test $rc -eq 0; then
17681 export=1
17682 break;
17683 fi
17684 done
17685 if test $export -eq 0; then :
17686
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688 $as_echo "no" >&6; }
17689
17690 else :
17691
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17693 $as_echo "yes" >&6; }
17694
17695 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
17696
17697
17698 fi
17699 else :
17700
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702 $as_echo "yes" >&6; }
17703
17704 $as_echo "#define HAVE_DEVICE_CREATE 1" >>confdefs.h
17705
17706
17707 fi
17708
17709
17710
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether device_create() wants 5 args" >&5
17712 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17713 tmp_flags="$EXTRA_KCFLAGS"
17714 EXTRA_KCFLAGS="-Werror"
17715
17716
17717 cat confdefs.h - <<_ACEOF >conftest.c
17718
17719
17720 #include <linux/device.h>
17721
17722 int
17723 main (void)
17724 {
17725
17726 device_create(NULL, NULL, 0, NULL, "%d", 1);
17727
17728 ;
17729 return 0;
17730 }
17731
17732 _ACEOF
17733
17734
17735 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17736 echo "obj-m := conftest.o" >build/Makefile
17737 modpost_flag=''
17738 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17739 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'
17740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17746 (eval $ac_try) 2>&5
17747 ac_status=$?
17748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17749 test $ac_status = 0; }; }; then :
17750
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17752 $as_echo "yes" >&6; }
17753
17754 $as_echo "#define HAVE_5ARGS_DEVICE_CREATE 1" >>confdefs.h
17755
17756
17757 else
17758 $as_echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763
17764
17765
17766 fi
17767 rm -Rf build
17768
17769
17770 EXTRA_KCFLAGS="$tmp_flags"
17771
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether class_device_create() is available" >&5
17773 $as_echo_n "checking whether class_device_create() is available... " >&6; }
17774
17775
17776
17777 cat confdefs.h - <<_ACEOF >conftest.c
17778
17779
17780 #include <linux/device.h>
17781
17782 int
17783 main (void)
17784 {
17785
17786 class_device_create(NULL, NULL, 0, NULL, NULL);
17787
17788 ;
17789 return 0;
17790 }
17791
17792 _ACEOF
17793
17794
17795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17796 echo "obj-m := conftest.o" >build/Makefile
17797 modpost_flag=''
17798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17799 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'
17800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17804 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17809 test $ac_status = 0; }; }; then :
17810 rc=0
17811 else
17812 $as_echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17814 rc=1
17815
17816
17817 fi
17818 rm -Rf build
17819
17820
17821 if test $rc -ne 0; then :
17822
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17825
17826 else
17827 if test "x$enable_linux_builtin" != xyes; then
17828
17829 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17830 $LINUX_OBJ/Module*.symvers 2>/dev/null
17831 rc=$?
17832 if test $rc -ne 0; then
17833 export=0
17834 for file in drivers/base/class.c; do
17835 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17836 "$LINUX_OBJ/$file" 2>/dev/null
17837 rc=$?
17838 if test $rc -eq 0; then
17839 export=1
17840 break;
17841 fi
17842 done
17843 if test $export -eq 0; then :
17844 rc=1
17845 else :
17846 rc=0
17847 fi
17848 else :
17849 rc=0
17850 fi
17851
17852 fi
17853 if test $rc -ne 0; then :
17854
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 $as_echo "no" >&6; }
17857
17858 else :
17859
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17861 $as_echo "yes" >&6; }
17862
17863 $as_echo "#define HAVE_CLASS_DEVICE_CREATE 1" >>confdefs.h
17864
17865
17866 fi
17867 fi
17868
17869
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is available as export" >&5
17871 $as_echo_n "checking whether set_normalized_timespec() is available as export... " >&6; }
17872
17873
17874
17875 cat confdefs.h - <<_ACEOF >conftest.c
17876
17877
17878 #include <linux/time.h>
17879
17880 int
17881 main (void)
17882 {
17883
17884 set_normalized_timespec(NULL, 0, 0);
17885
17886 ;
17887 return 0;
17888 }
17889
17890 _ACEOF
17891
17892
17893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17894 echo "obj-m := conftest.o" >build/Makefile
17895 modpost_flag=''
17896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17897 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'
17898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17902 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17907 test $ac_status = 0; }; }; then :
17908 rc=0
17909 else
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17912 rc=1
17913
17914
17915 fi
17916 rm -Rf build
17917
17918
17919 if test $rc -ne 0; then :
17920
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17922 $as_echo "no" >&6; }
17923
17924 else
17925 if test "x$enable_linux_builtin" != xyes; then
17926
17927 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17928 $LINUX_OBJ/Module*.symvers 2>/dev/null
17929 rc=$?
17930 if test $rc -ne 0; then
17931 export=0
17932 for file in kernel/time.c; do
17933 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17934 "$LINUX_OBJ/$file" 2>/dev/null
17935 rc=$?
17936 if test $rc -eq 0; then
17937 export=1
17938 break;
17939 fi
17940 done
17941 if test $export -eq 0; then :
17942 rc=1
17943 else :
17944 rc=0
17945 fi
17946 else :
17947 rc=0
17948 fi
17949
17950 fi
17951 if test $rc -ne 0; then :
17952
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17954 $as_echo "no" >&6; }
17955
17956 else :
17957
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17959 $as_echo "yes" >&6; }
17960
17961 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1" >>confdefs.h
17962
17963
17964 fi
17965 fi
17966
17967
17968
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_normalized_timespec() is an inline" >&5
17970 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17971
17972
17973 cat confdefs.h - <<_ACEOF >conftest.c
17974
17975
17976 #include <linux/time.h>
17977 void set_normalized_timespec(struct timespec *ts,
17978 time_t sec, long nsec) { }
17979
17980 int
17981 main (void)
17982 {
17983
17984 ;
17985 return 0;
17986 }
17987
17988 _ACEOF
17989
17990
17991 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17992 echo "obj-m := conftest.o" >build/Makefile
17993 modpost_flag=''
17994 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17995 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'
17996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18000 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18005 test $ac_status = 0; }; }; then :
18006
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009
18010 else
18011 $as_echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18015 $as_echo "yes" >&6; }
18016
18017 $as_echo "#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1" >>confdefs.h
18018
18019
18020
18021
18022 fi
18023 rm -Rf build
18024
18025
18026
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether timespec_sub() is available" >&5
18029 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
18030
18031
18032 cat confdefs.h - <<_ACEOF >conftest.c
18033
18034
18035 #include <linux/time.h>
18036
18037 int
18038 main (void)
18039 {
18040
18041 struct timespec a = { 0 };
18042 struct timespec b = { 0 };
18043 struct timespec c __attribute__ ((unused));
18044 c = timespec_sub(a, b);
18045
18046 ;
18047 return 0;
18048 }
18049
18050 _ACEOF
18051
18052
18053 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18054 echo "obj-m := conftest.o" >build/Makefile
18055 modpost_flag=''
18056 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18057 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'
18058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18062 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18067 test $ac_status = 0; }; }; then :
18068
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18070 $as_echo "yes" >&6; }
18071
18072 $as_echo "#define HAVE_TIMESPEC_SUB 1" >>confdefs.h
18073
18074
18075 else
18076 $as_echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18078
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18080 $as_echo "no" >&6; }
18081
18082
18083
18084 fi
18085 rm -Rf build
18086
18087
18088
18089
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_utsname() is available" >&5
18091 $as_echo_n "checking whether init_utsname() is available... " >&6; }
18092
18093
18094 cat confdefs.h - <<_ACEOF >conftest.c
18095
18096
18097 #include <linux/utsname.h>
18098
18099 int
18100 main (void)
18101 {
18102
18103 struct new_utsname *a __attribute__ ((unused));
18104 a = init_utsname();
18105
18106 ;
18107 return 0;
18108 }
18109
18110 _ACEOF
18111
18112
18113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18114 echo "obj-m := conftest.o" >build/Makefile
18115 modpost_flag=''
18116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18117 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'
18118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18127 test $ac_status = 0; }; }; then :
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18130 $as_echo "yes" >&6; }
18131
18132 $as_echo "#define HAVE_INIT_UTSNAME 1" >>confdefs.h
18133
18134
18135 else
18136 $as_echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18140 $as_echo "no" >&6; }
18141
18142
18143
18144 fi
18145 rm -Rf build
18146
18147
18148
18149
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/uaccess.h exists" >&5
18151 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
18152
18153
18154 cat confdefs.h - <<_ACEOF >conftest.c
18155
18156
18157 #include <linux/uaccess.h>
18158
18159 int
18160 main (void)
18161 {
18162
18163 return 0;
18164
18165 ;
18166 return 0;
18167 }
18168
18169 _ACEOF
18170
18171
18172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18173 echo "obj-m := conftest.o" >build/Makefile
18174 modpost_flag=''
18175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18176 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'
18177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18181 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18183 (eval $ac_try) 2>&5
18184 ac_status=$?
18185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18186 test $ac_status = 0; }; }; then :
18187
18188
18189 $as_echo "#define HAVE_UACCESS_HEADER 1" >>confdefs.h
18190
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18193
18194
18195 else
18196 $as_echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18200 $as_echo "no" >&6; }
18201
18202
18203
18204
18205 fi
18206 rm -Rf build
18207
18208
18209
18210
18211
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmalloc_node() is available" >&5
18213 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
18214
18215
18216 cat confdefs.h - <<_ACEOF >conftest.c
18217
18218
18219 #include <linux/slab.h>
18220
18221 int
18222 main (void)
18223 {
18224
18225 void *a __attribute__ ((unused));
18226 a = kmalloc_node(1, GFP_KERNEL, 0);
18227
18228 ;
18229 return 0;
18230 }
18231
18232 _ACEOF
18233
18234
18235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18236 echo "obj-m := conftest.o" >build/Makefile
18237 modpost_flag=''
18238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18239 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'
18240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18249 test $ac_status = 0; }; }; then :
18250
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18252 $as_echo "yes" >&6; }
18253
18254 $as_echo "#define HAVE_KMALLOC_NODE 1" >>confdefs.h
18255
18256
18257 else
18258 $as_echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262 $as_echo "no" >&6; }
18263
18264
18265
18266 fi
18267 rm -Rf build
18268
18269
18270
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether monotonic_clock() is available" >&5
18272 $as_echo_n "checking whether monotonic_clock() is available... " >&6; }
18273
18274
18275
18276 cat confdefs.h - <<_ACEOF >conftest.c
18277
18278
18279 #include <linux/timex.h>
18280
18281 int
18282 main (void)
18283 {
18284
18285 monotonic_clock();
18286
18287 ;
18288 return 0;
18289 }
18290
18291 _ACEOF
18292
18293
18294 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18295 echo "obj-m := conftest.o" >build/Makefile
18296 modpost_flag=''
18297 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18298 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'
18299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18303 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18305 (eval $ac_try) 2>&5
18306 ac_status=$?
18307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18308 test $ac_status = 0; }; }; then :
18309 rc=0
18310 else
18311 $as_echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313 rc=1
18314
18315
18316 fi
18317 rm -Rf build
18318
18319
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 if test "x$enable_linux_builtin" != xyes; then
18327
18328 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18329 $LINUX_OBJ/Module*.symvers 2>/dev/null
18330 rc=$?
18331 if test $rc -ne 0; then
18332 export=0
18333 for file in ; do
18334 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18335 "$LINUX_OBJ/$file" 2>/dev/null
18336 rc=$?
18337 if test $rc -eq 0; then
18338 export=1
18339 break;
18340 fi
18341 done
18342 if test $export -eq 0; then :
18343 rc=1
18344 else :
18345 rc=0
18346 fi
18347 else :
18348 rc=0
18349 fi
18350
18351 fi
18352 if test $rc -ne 0; then :
18353
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18355 $as_echo "no" >&6; }
18356
18357 else :
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18360 $as_echo "yes" >&6; }
18361
18362 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
18363
18364
18365 fi
18366 fi
18367
18368
18369
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct inode has i_mutex" >&5
18371 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18372
18373
18374 cat confdefs.h - <<_ACEOF >conftest.c
18375
18376
18377 #include <linux/fs.h>
18378 #include <linux/mutex.h>
18379
18380 int
18381 main (void)
18382 {
18383
18384 struct inode i;
18385 mutex_init(&i.i_mutex);
18386
18387 ;
18388 return 0;
18389 }
18390
18391 _ACEOF
18392
18393
18394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18395 echo "obj-m := conftest.o" >build/Makefile
18396 modpost_flag=''
18397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18398 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'
18399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18403 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18405 (eval $ac_try) 2>&5
18406 ac_status=$?
18407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18408 test $ac_status = 0; }; }; then :
18409
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 $as_echo "yes" >&6; }
18412
18413 $as_echo "#define HAVE_INODE_I_MUTEX 1" >>confdefs.h
18414
18415
18416 else
18417 $as_echo "$as_me: failed program was:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18419
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18421 $as_echo "no" >&6; }
18422
18423
18424
18425 fi
18426 rm -Rf build
18427
18428
18429
18430
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex has owner" >&5
18432 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18433
18434
18435 cat confdefs.h - <<_ACEOF >conftest.c
18436
18437
18438 #include <linux/mutex.h>
18439
18440 int
18441 main (void)
18442 {
18443
18444 struct mutex mtx __attribute__ ((unused));
18445 mtx.owner = NULL;
18446
18447 ;
18448 return 0;
18449 }
18450
18451 _ACEOF
18452
18453
18454 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18455 echo "obj-m := conftest.o" >build/Makefile
18456 modpost_flag=''
18457 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18458 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'
18459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18463 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18468 test $ac_status = 0; }; }; then :
18469
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18471 $as_echo "yes" >&6; }
18472
18473 $as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
18474
18475
18476 else
18477 $as_echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18481 $as_echo "no" >&6; }
18482
18483
18484
18485 fi
18486 rm -Rf build
18487
18488
18489
18490
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct mutex owner is a task_struct" >&5
18492 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18493 tmp_flags="$EXTRA_KCFLAGS"
18494 EXTRA_KCFLAGS="-Werror"
18495
18496
18497 cat confdefs.h - <<_ACEOF >conftest.c
18498
18499
18500 #include <linux/mutex.h>
18501 #include <linux/sched.h>
18502
18503 int
18504 main (void)
18505 {
18506
18507 struct mutex mtx __attribute__ ((unused));
18508 mtx.owner = current;
18509
18510 ;
18511 return 0;
18512 }
18513
18514 _ACEOF
18515
18516
18517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18518 echo "obj-m := conftest.o" >build/Makefile
18519 modpost_flag=''
18520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18521 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'
18522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18523 (eval $ac_try) 2>&5
18524 ac_status=$?
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18528 (eval $ac_try) 2>&5
18529 ac_status=$?
18530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18531 test $ac_status = 0; }; }; then :
18532
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18534 $as_echo "yes" >&6; }
18535
18536 $as_echo "#define HAVE_MUTEX_OWNER_TASK_STRUCT 1" >>confdefs.h
18537
18538
18539 else
18540 $as_echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544 $as_echo "no" >&6; }
18545
18546
18547
18548 fi
18549 rm -Rf build
18550
18551
18552 EXTRA_KCFLAGS="$tmp_flags"
18553
18554
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock_nested() is available" >&5
18556 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18557
18558
18559 cat confdefs.h - <<_ACEOF >conftest.c
18560
18561
18562 #include <linux/mutex.h>
18563
18564 int
18565 main (void)
18566 {
18567
18568 struct mutex mutex;
18569 mutex_init(&mutex);
18570 mutex_lock_nested(&mutex, 0);
18571
18572 ;
18573 return 0;
18574 }
18575
18576 _ACEOF
18577
18578
18579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18580 echo "obj-m := conftest.o" >build/Makefile
18581 modpost_flag=''
18582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18583 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'
18584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18585 (eval $ac_try) 2>&5
18586 ac_status=$?
18587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18588 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18590 (eval $ac_try) 2>&5
18591 ac_status=$?
18592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18593 test $ac_status = 0; }; }; then :
18594
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18596 $as_echo "yes" >&6; }
18597
18598 $as_echo "#define HAVE_MUTEX_LOCK_NESTED 1" >>confdefs.h
18599
18600
18601 else
18602 $as_echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18607
18608
18609
18610 fi
18611 rm -Rf build
18612
18613
18614
18615
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether on_each_cpu() wants 3 args" >&5
18617 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18618
18619
18620 cat confdefs.h - <<_ACEOF >conftest.c
18621
18622
18623 #include <linux/interrupt.h>
18624 #include <linux/smp.h>
18625
18626 void on_each_cpu_func(void *data) { return; }
18627
18628 int
18629 main (void)
18630 {
18631
18632 on_each_cpu(on_each_cpu_func, NULL, 0);
18633
18634 ;
18635 return 0;
18636 }
18637
18638 _ACEOF
18639
18640
18641 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18642 echo "obj-m := conftest.o" >build/Makefile
18643 modpost_flag=''
18644 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18645 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'
18646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18650 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18655 test $ac_status = 0; }; }; then :
18656
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18658 $as_echo "yes" >&6; }
18659
18660 $as_echo "#define HAVE_3ARGS_ON_EACH_CPU 1" >>confdefs.h
18661
18662
18663 else
18664 $as_echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18668 $as_echo "no" >&6; }
18669
18670
18671
18672 fi
18673 rm -Rf build
18674
18675
18676
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kallsyms_lookup_name() is available" >&5
18678 $as_echo_n "checking whether kallsyms_lookup_name() is available... " >&6; }
18679
18680
18681
18682 cat confdefs.h - <<_ACEOF >conftest.c
18683
18684
18685 #include <linux/kallsyms.h>
18686
18687 int
18688 main (void)
18689 {
18690
18691 kallsyms_lookup_name(NULL);
18692
18693 ;
18694 return 0;
18695 }
18696
18697 _ACEOF
18698
18699
18700 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18701 echo "obj-m := conftest.o" >build/Makefile
18702 modpost_flag=''
18703 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18704 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'
18705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18706 (eval $ac_try) 2>&5
18707 ac_status=$?
18708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18709 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18714 test $ac_status = 0; }; }; then :
18715 rc=0
18716 else
18717 $as_echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18719 rc=1
18720
18721
18722 fi
18723 rm -Rf build
18724
18725
18726 if test $rc -ne 0; then :
18727
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730
18731 else
18732 if test "x$enable_linux_builtin" != xyes; then
18733
18734 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18735 $LINUX_OBJ/Module*.symvers 2>/dev/null
18736 rc=$?
18737 if test $rc -ne 0; then
18738 export=0
18739 for file in ; do
18740 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18741 "$LINUX_OBJ/$file" 2>/dev/null
18742 rc=$?
18743 if test $rc -eq 0; then
18744 export=1
18745 break;
18746 fi
18747 done
18748 if test $export -eq 0; then :
18749 rc=1
18750 else :
18751 rc=0
18752 fi
18753 else :
18754 rc=0
18755 fi
18756
18757 fi
18758 if test $rc -ne 0; then :
18759
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761 $as_echo "no" >&6; }
18762
18763 else :
18764
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18766 $as_echo "yes" >&6; }
18767
18768 $as_echo "#define HAVE_KALLSYMS_LOOKUP_NAME 1" >>confdefs.h
18769
18770
18771 fi
18772 fi
18773
18774
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_vmalloc_info() is available" >&5
18776 $as_echo_n "checking whether get_vmalloc_info() is available... " >&6; }
18777
18778 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18779 $LINUX_OBJ/Module*.symvers 2>/dev/null
18780 rc=$?
18781 if test $rc -ne 0; then
18782 export=0
18783 for file in ; do
18784 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18785 "$LINUX_OBJ/$file" 2>/dev/null
18786 rc=$?
18787 if test $rc -eq 0; then
18788 export=1
18789 break;
18790 fi
18791 done
18792 if test $export -eq 0; then :
18793
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18795 $as_echo "no" >&6; }
18796
18797 else :
18798
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18800 $as_echo "yes" >&6; }
18801
18802 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
18803
18804
18805 fi
18806 else :
18807
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18809 $as_echo "yes" >&6; }
18810
18811 $as_echo "#define HAVE_GET_VMALLOC_INFO 1" >>confdefs.h
18812
18813
18814 fi
18815
18816
18817
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol *_pgdat exist" >&5
18819 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18820 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18821 rc=$?
18822 if test $rc -eq 0; then
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18824 $as_echo "yes" >&6; }
18825
18826 $as_echo "#define HAVE_PGDAT_HELPERS 1" >>confdefs.h
18827
18828 else
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830 $as_echo "no" >&6; }
18831 fi
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether first_online_pgdat() is available" >&5
18834 $as_echo_n "checking whether first_online_pgdat() is available... " >&6; }
18835
18836
18837
18838 cat confdefs.h - <<_ACEOF >conftest.c
18839
18840
18841 #include <linux/mmzone.h>
18842
18843 int
18844 main (void)
18845 {
18846
18847 first_online_pgdat();
18848
18849 ;
18850 return 0;
18851 }
18852
18853 _ACEOF
18854
18855
18856 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18857 echo "obj-m := conftest.o" >build/Makefile
18858 modpost_flag=''
18859 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18860 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'
18861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18865 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18870 test $ac_status = 0; }; }; then :
18871 rc=0
18872 else
18873 $as_echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18875 rc=1
18876
18877
18878 fi
18879 rm -Rf build
18880
18881
18882 if test $rc -ne 0; then :
18883
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885 $as_echo "no" >&6; }
18886
18887 else
18888 if test "x$enable_linux_builtin" != xyes; then
18889
18890 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18891 $LINUX_OBJ/Module*.symvers 2>/dev/null
18892 rc=$?
18893 if test $rc -ne 0; then
18894 export=0
18895 for file in ; do
18896 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18897 "$LINUX_OBJ/$file" 2>/dev/null
18898 rc=$?
18899 if test $rc -eq 0; then
18900 export=1
18901 break;
18902 fi
18903 done
18904 if test $export -eq 0; then :
18905 rc=1
18906 else :
18907 rc=0
18908 fi
18909 else :
18910 rc=0
18911 fi
18912
18913 fi
18914 if test $rc -ne 0; then :
18915
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18917 $as_echo "no" >&6; }
18918
18919 else :
18920
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18922 $as_echo "yes" >&6; }
18923
18924 $as_echo "#define HAVE_FIRST_ONLINE_PGDAT 1" >>confdefs.h
18925
18926
18927 fi
18928 fi
18929
18930
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_online_pgdat() is available" >&5
18932 $as_echo_n "checking whether next_online_pgdat() is available... " >&6; }
18933
18934
18935
18936 cat confdefs.h - <<_ACEOF >conftest.c
18937
18938
18939 #include <linux/mmzone.h>
18940
18941 int
18942 main (void)
18943 {
18944
18945 next_online_pgdat(NULL);
18946
18947 ;
18948 return 0;
18949 }
18950
18951 _ACEOF
18952
18953
18954 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18955 echo "obj-m := conftest.o" >build/Makefile
18956 modpost_flag=''
18957 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18958 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'
18959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18963 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968 test $ac_status = 0; }; }; then :
18969 rc=0
18970 else
18971 $as_echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973 rc=1
18974
18975
18976 fi
18977 rm -Rf build
18978
18979
18980 if test $rc -ne 0; then :
18981
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18984
18985 else
18986 if test "x$enable_linux_builtin" != xyes; then
18987
18988 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18989 $LINUX_OBJ/Module*.symvers 2>/dev/null
18990 rc=$?
18991 if test $rc -ne 0; then
18992 export=0
18993 for file in ; do
18994 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18995 "$LINUX_OBJ/$file" 2>/dev/null
18996 rc=$?
18997 if test $rc -eq 0; then
18998 export=1
18999 break;
19000 fi
19001 done
19002 if test $export -eq 0; then :
19003 rc=1
19004 else :
19005 rc=0
19006 fi
19007 else :
19008 rc=0
19009 fi
19010
19011 fi
19012 if test $rc -ne 0; then :
19013
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 $as_echo "no" >&6; }
19016
19017 else :
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19020 $as_echo "yes" >&6; }
19021
19022 $as_echo "#define HAVE_NEXT_ONLINE_PGDAT 1" >>confdefs.h
19023
19024
19025 fi
19026 fi
19027
19028
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether next_zone() is available" >&5
19030 $as_echo_n "checking whether next_zone() is available... " >&6; }
19031
19032
19033
19034 cat confdefs.h - <<_ACEOF >conftest.c
19035
19036
19037 #include <linux/mmzone.h>
19038
19039 int
19040 main (void)
19041 {
19042
19043 next_zone(NULL);
19044
19045 ;
19046 return 0;
19047 }
19048
19049 _ACEOF
19050
19051
19052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19053 echo "obj-m := conftest.o" >build/Makefile
19054 modpost_flag=''
19055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19056 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'
19057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19061 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19063 (eval $ac_try) 2>&5
19064 ac_status=$?
19065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19066 test $ac_status = 0; }; }; then :
19067 rc=0
19068 else
19069 $as_echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071 rc=1
19072
19073
19074 fi
19075 rm -Rf build
19076
19077
19078 if test $rc -ne 0; then :
19079
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 $as_echo "no" >&6; }
19082
19083 else
19084 if test "x$enable_linux_builtin" != xyes; then
19085
19086 grep -q -E '[[:space:]]next_zone[[:space:]]' \
19087 $LINUX_OBJ/Module*.symvers 2>/dev/null
19088 rc=$?
19089 if test $rc -ne 0; then
19090 export=0
19091 for file in ; do
19092 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
19093 "$LINUX_OBJ/$file" 2>/dev/null
19094 rc=$?
19095 if test $rc -eq 0; then
19096 export=1
19097 break;
19098 fi
19099 done
19100 if test $export -eq 0; then :
19101 rc=1
19102 else :
19103 rc=0
19104 fi
19105 else :
19106 rc=0
19107 fi
19108
19109 fi
19110 if test $rc -ne 0; then :
19111
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19114
19115 else :
19116
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19118 $as_echo "yes" >&6; }
19119
19120 $as_echo "#define HAVE_NEXT_ZONE 1" >>confdefs.h
19121
19122
19123 fi
19124 fi
19125
19126
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pgdat_list is available" >&5
19128 $as_echo_n "checking whether pgdat_list is available... " >&6; }
19129
19130
19131
19132 cat confdefs.h - <<_ACEOF >conftest.c
19133
19134
19135 #include <linux/topology.h>
19136 pg_data_t *tmp = pgdat_list;
19137
19138 int
19139 main (void)
19140 {
19141
19142 ;
19143 return 0;
19144 }
19145
19146 _ACEOF
19147
19148
19149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19150 echo "obj-m := conftest.o" >build/Makefile
19151 modpost_flag=''
19152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19153 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'
19154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19158 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19160 (eval $ac_try) 2>&5
19161 ac_status=$?
19162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19163 test $ac_status = 0; }; }; then :
19164 rc=0
19165 else
19166 $as_echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19168 rc=1
19169
19170
19171 fi
19172 rm -Rf build
19173
19174
19175 if test $rc -ne 0; then :
19176
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19178 $as_echo "no" >&6; }
19179
19180 else
19181 if test "x$enable_linux_builtin" != xyes; then
19182
19183 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
19184 $LINUX_OBJ/Module*.symvers 2>/dev/null
19185 rc=$?
19186 if test $rc -ne 0; then
19187 export=0
19188 for file in ; do
19189 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
19190 "$LINUX_OBJ/$file" 2>/dev/null
19191 rc=$?
19192 if test $rc -eq 0; then
19193 export=1
19194 break;
19195 fi
19196 done
19197 if test $export -eq 0; then :
19198 rc=1
19199 else :
19200 rc=0
19201 fi
19202 else :
19203 rc=0
19204 fi
19205
19206 fi
19207 if test $rc -ne 0; then :
19208
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19210 $as_echo "no" >&6; }
19211
19212 else :
19213
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19215 $as_echo "yes" >&6; }
19216
19217 $as_echo "#define HAVE_PGDAT_LIST 1" >>confdefs.h
19218
19219
19220 fi
19221 fi
19222
19223
19224
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether global_page_state() is available" >&5
19226 $as_echo_n "checking whether global_page_state() is available... " >&6; }
19227
19228
19229 cat confdefs.h - <<_ACEOF >conftest.c
19230
19231
19232 #include <linux/mm.h>
19233
19234 int
19235 main (void)
19236 {
19237
19238 unsigned long state __attribute__ ((unused));
19239 state = global_page_state(0);
19240
19241 ;
19242 return 0;
19243 }
19244
19245 _ACEOF
19246
19247
19248 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19249 echo "obj-m := conftest.o" >build/Makefile
19250 modpost_flag=''
19251 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19252 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'
19253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19257 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19262 test $ac_status = 0; }; }; then :
19263
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19266
19267 $as_echo "#define HAVE_GLOBAL_PAGE_STATE 1" >>confdefs.h
19268
19269
19270 else
19271 $as_echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19275 $as_echo "no" >&6; }
19276
19277
19278
19279 fi
19280 rm -Rf build
19281
19282
19283
19284
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_FREE_PAGES is available" >&5
19286 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
19287
19288
19289 cat confdefs.h - <<_ACEOF >conftest.c
19290
19291
19292 #include <linux/mm.h>
19293
19294 int
19295 main (void)
19296 {
19297
19298 enum zone_stat_item zsi __attribute__ ((unused));
19299 zsi = NR_FREE_PAGES;
19300
19301 ;
19302 return 0;
19303 }
19304
19305 _ACEOF
19306
19307
19308 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19309 echo "obj-m := conftest.o" >build/Makefile
19310 modpost_flag=''
19311 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19312 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'
19313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19317 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19319 (eval $ac_try) 2>&5
19320 ac_status=$?
19321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19322 test $ac_status = 0; }; }; then :
19323
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325 $as_echo "yes" >&6; }
19326
19327 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1" >>confdefs.h
19328
19329
19330 else
19331 $as_echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19335 $as_echo "no" >&6; }
19336
19337
19338
19339 fi
19340 rm -Rf build
19341
19342
19343
19344
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE is available" >&5
19346 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
19347
19348
19349 cat confdefs.h - <<_ACEOF >conftest.c
19350
19351
19352 #include <linux/mm.h>
19353
19354 int
19355 main (void)
19356 {
19357
19358 enum zone_stat_item zsi __attribute__ ((unused));
19359 zsi = NR_INACTIVE;
19360
19361 ;
19362 return 0;
19363 }
19364
19365 _ACEOF
19366
19367
19368 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19369 echo "obj-m := conftest.o" >build/Makefile
19370 modpost_flag=''
19371 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19372 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'
19373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19377 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19382 test $ac_status = 0; }; }; then :
19383
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19385 $as_echo "yes" >&6; }
19386
19387 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1" >>confdefs.h
19388
19389
19390 else
19391 $as_echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19395 $as_echo "no" >&6; }
19396
19397
19398
19399 fi
19400 rm -Rf build
19401
19402
19403
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_ANON is available" >&5
19405 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
19406
19407
19408 cat confdefs.h - <<_ACEOF >conftest.c
19409
19410
19411 #include <linux/mm.h>
19412
19413 int
19414 main (void)
19415 {
19416
19417 enum zone_stat_item zsi __attribute__ ((unused));
19418 zsi = NR_INACTIVE_ANON;
19419
19420 ;
19421 return 0;
19422 }
19423
19424 _ACEOF
19425
19426
19427 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19428 echo "obj-m := conftest.o" >build/Makefile
19429 modpost_flag=''
19430 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19431 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'
19432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19433 (eval $ac_try) 2>&5
19434 ac_status=$?
19435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19436 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19441 test $ac_status = 0; }; }; then :
19442
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19444 $as_echo "yes" >&6; }
19445
19446 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1" >>confdefs.h
19447
19448
19449 else
19450 $as_echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19454 $as_echo "no" >&6; }
19455
19456
19457
19458 fi
19459 rm -Rf build
19460
19461
19462
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_INACTIVE_FILE is available" >&5
19464 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
19465
19466
19467 cat confdefs.h - <<_ACEOF >conftest.c
19468
19469
19470 #include <linux/mm.h>
19471
19472 int
19473 main (void)
19474 {
19475
19476 enum zone_stat_item zsi __attribute__ ((unused));
19477 zsi = NR_INACTIVE_FILE;
19478
19479 ;
19480 return 0;
19481 }
19482
19483 _ACEOF
19484
19485
19486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19487 echo "obj-m := conftest.o" >build/Makefile
19488 modpost_flag=''
19489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19490 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'
19491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19495 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19500 test $ac_status = 0; }; }; then :
19501
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503 $as_echo "yes" >&6; }
19504
19505 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1" >>confdefs.h
19506
19507
19508 else
19509 $as_echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19513 $as_echo "no" >&6; }
19514
19515
19516
19517 fi
19518 rm -Rf build
19519
19520
19521
19522
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE is available" >&5
19524 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
19525
19526
19527 cat confdefs.h - <<_ACEOF >conftest.c
19528
19529
19530 #include <linux/mm.h>
19531
19532 int
19533 main (void)
19534 {
19535
19536 enum zone_stat_item zsi __attribute__ ((unused));
19537 zsi = NR_ACTIVE;
19538
19539 ;
19540 return 0;
19541 }
19542
19543 _ACEOF
19544
19545
19546 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19547 echo "obj-m := conftest.o" >build/Makefile
19548 modpost_flag=''
19549 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19550 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'
19551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19555 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19557 (eval $ac_try) 2>&5
19558 ac_status=$?
19559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19560 test $ac_status = 0; }; }; then :
19561
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19563 $as_echo "yes" >&6; }
19564
19565 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1" >>confdefs.h
19566
19567
19568 else
19569 $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19573 $as_echo "no" >&6; }
19574
19575
19576
19577 fi
19578 rm -Rf build
19579
19580
19581
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_ANON is available" >&5
19583 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
19584
19585
19586 cat confdefs.h - <<_ACEOF >conftest.c
19587
19588
19589 #include <linux/mm.h>
19590
19591 int
19592 main (void)
19593 {
19594
19595 enum zone_stat_item zsi __attribute__ ((unused));
19596 zsi = NR_ACTIVE_ANON;
19597
19598 ;
19599 return 0;
19600 }
19601
19602 _ACEOF
19603
19604
19605 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19606 echo "obj-m := conftest.o" >build/Makefile
19607 modpost_flag=''
19608 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19609 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'
19610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19614 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19619 test $ac_status = 0; }; }; then :
19620
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19622 $as_echo "yes" >&6; }
19623
19624 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1" >>confdefs.h
19625
19626
19627 else
19628 $as_echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19632 $as_echo "no" >&6; }
19633
19634
19635
19636 fi
19637 rm -Rf build
19638
19639
19640
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether page state NR_ACTIVE_FILE is available" >&5
19642 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
19643
19644
19645 cat confdefs.h - <<_ACEOF >conftest.c
19646
19647
19648 #include <linux/mm.h>
19649
19650 int
19651 main (void)
19652 {
19653
19654 enum zone_stat_item zsi __attribute__ ((unused));
19655 zsi = NR_ACTIVE_FILE;
19656
19657 ;
19658 return 0;
19659 }
19660
19661 _ACEOF
19662
19663
19664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19665 echo "obj-m := conftest.o" >build/Makefile
19666 modpost_flag=''
19667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19668 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'
19669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19670 (eval $ac_try) 2>&5
19671 ac_status=$?
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19678 test $ac_status = 0; }; }; then :
19679
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19681 $as_echo "yes" >&6; }
19682
19683 $as_echo "#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1" >>confdefs.h
19684
19685
19686 else
19687 $as_echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19692
19693
19694
19695 fi
19696 rm -Rf build
19697
19698
19699
19700
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol get_zone_counts is needed" >&5
19702 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19703
19704
19705 cat confdefs.h - <<_ACEOF >conftest.c
19706
19707
19708
19709 int
19710 main (void)
19711 {
19712
19713 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19714 #error "global_page_state needs NR_FREE_PAGES"
19715 #endif
19716
19717 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19718 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19719 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19720 #error "global_page_state needs NR_ACTIVE*"
19721 #endif
19722
19723 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19724 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19725 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19726 #error "global_page_state needs NR_INACTIVE*"
19727 #endif
19728
19729 ;
19730 return 0;
19731 }
19732
19733 _ACEOF
19734
19735
19736 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19737 echo "obj-m := conftest.o" >build/Makefile
19738 modpost_flag=''
19739 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19740 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'
19741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19745 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19750 test $ac_status = 0; }; }; then :
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19753 $as_echo "no" >&6; }
19754
19755 else
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19760 $as_echo "yes" >&6; }
19761
19762 $as_echo "#define NEED_GET_ZONE_COUNTS 1" >>confdefs.h
19763
19764
19765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_zone_counts() is available" >&5
19766 $as_echo_n "checking whether get_zone_counts() is available... " >&6; }
19767
19768
19769
19770 cat confdefs.h - <<_ACEOF >conftest.c
19771
19772
19773 #include <linux/mmzone.h>
19774
19775 int
19776 main (void)
19777 {
19778
19779 get_zone_counts(NULL, NULL, NULL);
19780
19781 ;
19782 return 0;
19783 }
19784
19785 _ACEOF
19786
19787
19788 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19789 echo "obj-m := conftest.o" >build/Makefile
19790 modpost_flag=''
19791 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19792 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'
19793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19794 (eval $ac_try) 2>&5
19795 ac_status=$?
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19802 test $ac_status = 0; }; }; then :
19803 rc=0
19804 else
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807 rc=1
19808
19809
19810 fi
19811 rm -Rf build
19812
19813
19814 if test $rc -ne 0; then :
19815
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19817 $as_echo "no" >&6; }
19818
19819 else
19820 if test "x$enable_linux_builtin" != xyes; then
19821
19822 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19823 $LINUX_OBJ/Module*.symvers 2>/dev/null
19824 rc=$?
19825 if test $rc -ne 0; then
19826 export=0
19827 for file in ; do
19828 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19829 "$LINUX_OBJ/$file" 2>/dev/null
19830 rc=$?
19831 if test $rc -eq 0; then
19832 export=1
19833 break;
19834 fi
19835 done
19836 if test $export -eq 0; then :
19837 rc=1
19838 else :
19839 rc=0
19840 fi
19841 else :
19842 rc=0
19843 fi
19844
19845 fi
19846 if test $rc -ne 0; then :
19847
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19849 $as_echo "no" >&6; }
19850
19851 else :
19852
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19854 $as_echo "yes" >&6; }
19855
19856 $as_echo "#define HAVE_GET_ZONE_COUNTS 1" >>confdefs.h
19857
19858
19859 fi
19860 fi
19861
19862
19863
19864
19865 fi
19866 rm -Rf build
19867
19868
19869
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether user_path_dir() is available" >&5
19871 $as_echo_n "checking whether user_path_dir() is available... " >&6; }
19872
19873
19874
19875 cat confdefs.h - <<_ACEOF >conftest.c
19876
19877
19878 #include <linux/fcntl.h>
19879 #include <linux/namei.h>
19880
19881 int
19882 main (void)
19883 {
19884
19885 user_path_dir(NULL, NULL);
19886
19887 ;
19888 return 0;
19889 }
19890
19891 _ACEOF
19892
19893
19894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19895 echo "obj-m := conftest.o" >build/Makefile
19896 modpost_flag=''
19897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19898 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'
19899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19900 (eval $ac_try) 2>&5
19901 ac_status=$?
19902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19903 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19905 (eval $ac_try) 2>&5
19906 ac_status=$?
19907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19908 test $ac_status = 0; }; }; then :
19909 rc=0
19910 else
19911 $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913 rc=1
19914
19915
19916 fi
19917 rm -Rf build
19918
19919
19920 if test $rc -ne 0; then :
19921
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923 $as_echo "no" >&6; }
19924
19925 else
19926 if test "x$enable_linux_builtin" != xyes; then
19927
19928 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19929 $LINUX_OBJ/Module*.symvers 2>/dev/null
19930 rc=$?
19931 if test $rc -ne 0; then
19932 export=0
19933 for file in ; do
19934 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19935 "$LINUX_OBJ/$file" 2>/dev/null
19936 rc=$?
19937 if test $rc -eq 0; then
19938 export=1
19939 break;
19940 fi
19941 done
19942 if test $export -eq 0; then :
19943 rc=1
19944 else :
19945 rc=0
19946 fi
19947 else :
19948 rc=0
19949 fi
19950
19951 fi
19952 if test $rc -ne 0; then :
19953
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19955 $as_echo "no" >&6; }
19956
19957 else :
19958
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19960 $as_echo "yes" >&6; }
19961
19962 $as_echo "#define HAVE_USER_PATH_DIR 1" >>confdefs.h
19963
19964
19965 fi
19966 fi
19967
19968
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() is available" >&5
19970 $as_echo_n "checking whether set_fs_pwd() is available... " >&6; }
19971
19972
19973
19974 cat confdefs.h - <<_ACEOF >conftest.c
19975
19976
19977 #include <linux/spinlock.h>
19978 #include <linux/fs_struct.h>
19979
19980 int
19981 main (void)
19982 {
19983
19984 (void) set_fs_pwd;
19985
19986 ;
19987 return 0;
19988 }
19989
19990 _ACEOF
19991
19992
19993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19994 echo "obj-m := conftest.o" >build/Makefile
19995 modpost_flag=''
19996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19997 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'
19998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20004 (eval $ac_try) 2>&5
20005 ac_status=$?
20006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20007 test $ac_status = 0; }; }; then :
20008 rc=0
20009 else
20010 $as_echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012 rc=1
20013
20014
20015 fi
20016 rm -Rf build
20017
20018
20019 if test $rc -ne 0; then :
20020
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20022 $as_echo "no" >&6; }
20023
20024 else
20025 if test "x$enable_linux_builtin" != xyes; then
20026
20027 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
20028 $LINUX_OBJ/Module*.symvers 2>/dev/null
20029 rc=$?
20030 if test $rc -ne 0; then
20031 export=0
20032 for file in ; do
20033 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
20034 "$LINUX_OBJ/$file" 2>/dev/null
20035 rc=$?
20036 if test $rc -eq 0; then
20037 export=1
20038 break;
20039 fi
20040 done
20041 if test $export -eq 0; then :
20042 rc=1
20043 else :
20044 rc=0
20045 fi
20046 else :
20047 rc=0
20048 fi
20049
20050 fi
20051 if test $rc -ne 0; then :
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054 $as_echo "no" >&6; }
20055
20056 else :
20057
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20059 $as_echo "yes" >&6; }
20060
20061 $as_echo "#define HAVE_SET_FS_PWD 1" >>confdefs.h
20062
20063
20064 fi
20065 fi
20066
20067
20068 tmp_flags="$EXTRA_KCFLAGS"
20069 EXTRA_KCFLAGS="-Werror"
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
20071 $as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
20072
20073
20074 cat confdefs.h - <<_ACEOF >conftest.c
20075
20076
20077 #include <linux/spinlock.h>
20078 #include <linux/fs_struct.h>
20079 #include <linux/path.h>
20080 void (*const set_fs_pwd_func)
20081 (struct fs_struct *, const struct path *)
20082 = set_fs_pwd;
20083
20084 int
20085 main (void)
20086 {
20087
20088 return 0;
20089
20090 ;
20091 return 0;
20092 }
20093
20094 _ACEOF
20095
20096
20097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20098 echo "obj-m := conftest.o" >build/Makefile
20099 modpost_flag=''
20100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20101 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'
20102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; }; }; then :
20112
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20114 $as_echo "yes" >&6; }
20115
20116 $as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
20117
20118
20119 else
20120 $as_echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123
20124
20125 cat confdefs.h - <<_ACEOF >conftest.c
20126
20127
20128 #include <linux/spinlock.h>
20129 #include <linux/fs_struct.h>
20130 #include <linux/path.h>
20131 void (*const set_fs_pwd_func)
20132 (struct fs_struct *, struct path *)
20133 = set_fs_pwd;
20134
20135 int
20136 main (void)
20137 {
20138
20139 return 0;
20140
20141 ;
20142 return 0;
20143 }
20144
20145 _ACEOF
20146
20147
20148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20149 echo "obj-m := conftest.o" >build/Makefile
20150 modpost_flag=''
20151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20152 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'
20153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20162 test $ac_status = 0; }; }; then :
20163
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20166
20167 else
20168 $as_echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 as_fn_error $? "unknown" "$LINENO" 5
20172
20173
20174
20175 fi
20176 rm -Rf build
20177
20178
20179
20180
20181
20182 fi
20183 rm -Rf build
20184
20185
20186 EXTRA_KCFLAGS="$tmp_flags"
20187
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
20189 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
20190
20191
20192 cat confdefs.h - <<_ACEOF >conftest.c
20193
20194
20195 #include <linux/fs.h>
20196
20197 int
20198 main (void)
20199 {
20200
20201 vfs_unlink(NULL, NULL);
20202
20203 ;
20204 return 0;
20205 }
20206
20207 _ACEOF
20208
20209
20210 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20211 echo "obj-m := conftest.o" >build/Makefile
20212 modpost_flag=''
20213 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20214 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'
20215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20216 (eval $ac_try) 2>&5
20217 ac_status=$?
20218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20219 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20221 (eval $ac_try) 2>&5
20222 ac_status=$?
20223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20224 test $ac_status = 0; }; }; then :
20225
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20227 $as_echo "yes" >&6; }
20228
20229 $as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
20230
20231
20232 else
20233 $as_echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20237 $as_echo "no" >&6; }
20238
20239
20240
20241 fi
20242 rm -Rf build
20243
20244
20245
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
20247 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
20248
20249
20250 cat confdefs.h - <<_ACEOF >conftest.c
20251
20252
20253 #include <linux/fs.h>
20254
20255 int
20256 main (void)
20257 {
20258
20259 vfs_rename(NULL, NULL, NULL, NULL);
20260
20261 ;
20262 return 0;
20263 }
20264
20265 _ACEOF
20266
20267
20268 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20269 echo "obj-m := conftest.o" >build/Makefile
20270 modpost_flag=''
20271 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20272 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'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; }; }; then :
20283
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20285 $as_echo "yes" >&6; }
20286
20287 $as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
20288
20289
20290 else
20291 $as_echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20295 $as_echo "no" >&6; }
20296
20297
20298
20299 fi
20300 rm -Rf build
20301
20302
20303
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() is available" >&5
20305 $as_echo_n "checking whether vfs_fsync() is available... " >&6; }
20306
20307
20308
20309 cat confdefs.h - <<_ACEOF >conftest.c
20310
20311
20312 #include <linux/fs.h>
20313
20314 int
20315 main (void)
20316 {
20317
20318 (void) vfs_fsync;
20319
20320 ;
20321 return 0;
20322 }
20323
20324 _ACEOF
20325
20326
20327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20328 echo "obj-m := conftest.o" >build/Makefile
20329 modpost_flag=''
20330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20331 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'
20332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20333 (eval $ac_try) 2>&5
20334 ac_status=$?
20335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20336 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20341 test $ac_status = 0; }; }; then :
20342 rc=0
20343 else
20344 $as_echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346 rc=1
20347
20348
20349 fi
20350 rm -Rf build
20351
20352
20353 if test $rc -ne 0; then :
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356 $as_echo "no" >&6; }
20357
20358 else
20359 if test "x$enable_linux_builtin" != xyes; then
20360
20361 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
20362 $LINUX_OBJ/Module*.symvers 2>/dev/null
20363 rc=$?
20364 if test $rc -ne 0; then
20365 export=0
20366 for file in fs/sync.c; do
20367 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
20368 "$LINUX_OBJ/$file" 2>/dev/null
20369 rc=$?
20370 if test $rc -eq 0; then
20371 export=1
20372 break;
20373 fi
20374 done
20375 if test $export -eq 0; then :
20376 rc=1
20377 else :
20378 rc=0
20379 fi
20380 else :
20381 rc=0
20382 fi
20383
20384 fi
20385 if test $rc -ne 0; then :
20386
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20388 $as_echo "no" >&6; }
20389
20390 else :
20391
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20393 $as_echo "yes" >&6; }
20394
20395 $as_echo "#define HAVE_VFS_FSYNC 1" >>confdefs.h
20396
20397
20398 fi
20399 fi
20400
20401
20402
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
20404 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
20405
20406
20407 cat confdefs.h - <<_ACEOF >conftest.c
20408
20409
20410 #include <linux/fs.h>
20411
20412 int
20413 main (void)
20414 {
20415
20416 vfs_fsync(NULL, 0);
20417
20418 ;
20419 return 0;
20420 }
20421
20422 _ACEOF
20423
20424
20425 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20426 echo "obj-m := conftest.o" >build/Makefile
20427 modpost_flag=''
20428 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20429 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'
20430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20434 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20436 (eval $ac_try) 2>&5
20437 ac_status=$?
20438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20439 test $ac_status = 0; }; }; then :
20440
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20442 $as_echo "yes" >&6; }
20443
20444 $as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
20445
20446
20447 else
20448 $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20452 $as_echo "no" >&6; }
20453
20454
20455
20456 fi
20457 rm -Rf build
20458
20459
20460
20461
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
20463 $as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
20464
20465
20466 cat confdefs.h - <<_ACEOF >conftest.c
20467
20468
20469 #include <linux/fs.h>
20470
20471 int
20472 main (void)
20473 {
20474
20475 struct inode_operations ops;
20476 ops.truncate_range = NULL;
20477
20478 ;
20479 return 0;
20480 }
20481
20482 _ACEOF
20483
20484
20485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20486 echo "obj-m := conftest.o" >build/Makefile
20487 modpost_flag=''
20488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20489 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'
20490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20491 (eval $ac_try) 2>&5
20492 ac_status=$?
20493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20494 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20499 test $ac_status = 0; }; }; then :
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502 $as_echo "yes" >&6; }
20503
20504 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
20505
20506
20507 else
20508 $as_echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20512 $as_echo "no" >&6; }
20513
20514
20515
20516 fi
20517 rm -Rf build
20518
20519
20520
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
20523 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
20524 tmp_flags="$EXTRA_KCFLAGS"
20525 EXTRA_KCFLAGS="-Werror"
20526
20527
20528 cat confdefs.h - <<_ACEOF >conftest.c
20529
20530
20531 #include <linux/sched.h>
20532 #include <linux/fs_struct.h>
20533
20534 int
20535 main (void)
20536 {
20537
20538 struct fs_struct fs;
20539 spin_lock_init(&fs.lock);
20540
20541 ;
20542 return 0;
20543 }
20544
20545 _ACEOF
20546
20547
20548 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20549 echo "obj-m := conftest.o" >build/Makefile
20550 modpost_flag=''
20551 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20552 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'
20553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20554 (eval $ac_try) 2>&5
20555 ac_status=$?
20556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20557 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20559 (eval $ac_try) 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562 test $ac_status = 0; }; }; then :
20563
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20565 $as_echo "yes" >&6; }
20566
20567 $as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
20568
20569
20570 else
20571 $as_echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 $as_echo "no" >&6; }
20576
20577
20578
20579 fi
20580 rm -Rf build
20581
20582
20583 EXTRA_KCFLAGS="$tmp_flags"
20584
20585
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct cred exists" >&5
20587 $as_echo_n "checking whether struct cred exists... " >&6; }
20588
20589
20590 cat confdefs.h - <<_ACEOF >conftest.c
20591
20592
20593 #include <linux/cred.h>
20594
20595 int
20596 main (void)
20597 {
20598
20599 struct cred *cr __attribute__ ((unused));
20600 cr = NULL;
20601
20602 ;
20603 return 0;
20604 }
20605
20606 _ACEOF
20607
20608
20609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20610 echo "obj-m := conftest.o" >build/Makefile
20611 modpost_flag=''
20612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20613 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'
20614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20615 (eval $ac_try) 2>&5
20616 ac_status=$?
20617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20618 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20620 (eval $ac_try) 2>&5
20621 ac_status=$?
20622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20623 test $ac_status = 0; }; }; then :
20624
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626 $as_echo "yes" >&6; }
20627
20628 $as_echo "#define HAVE_CRED_STRUCT 1" >>confdefs.h
20629
20630
20631 else
20632 $as_echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20634
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20637
20638
20639
20640 fi
20641 rm -Rf build
20642
20643
20644
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether groups_search() is available" >&5
20646 $as_echo_n "checking whether groups_search() is available... " >&6; }
20647
20648
20649
20650 cat confdefs.h - <<_ACEOF >conftest.c
20651
20652
20653 #include <linux/cred.h>
20654
20655 int
20656 main (void)
20657 {
20658
20659 groups_search(NULL, 0);
20660
20661 ;
20662 return 0;
20663 }
20664
20665 _ACEOF
20666
20667
20668 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20669 echo "obj-m := conftest.o" >build/Makefile
20670 modpost_flag=''
20671 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20672 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'
20673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20674 (eval $ac_try) 2>&5
20675 ac_status=$?
20676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20677 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20679 (eval $ac_try) 2>&5
20680 ac_status=$?
20681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20682 test $ac_status = 0; }; }; then :
20683 rc=0
20684 else
20685 $as_echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687 rc=1
20688
20689
20690 fi
20691 rm -Rf build
20692
20693
20694 if test $rc -ne 0; then :
20695
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 $as_echo "no" >&6; }
20698
20699 else
20700 if test "x$enable_linux_builtin" != xyes; then
20701
20702 grep -q -E '[[:space:]]groups_search[[:space:]]' \
20703 $LINUX_OBJ/Module*.symvers 2>/dev/null
20704 rc=$?
20705 if test $rc -ne 0; then
20706 export=0
20707 for file in ; do
20708 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
20709 "$LINUX_OBJ/$file" 2>/dev/null
20710 rc=$?
20711 if test $rc -eq 0; then
20712 export=1
20713 break;
20714 fi
20715 done
20716 if test $export -eq 0; then :
20717 rc=1
20718 else :
20719 rc=0
20720 fi
20721 else :
20722 rc=0
20723 fi
20724
20725 fi
20726 if test $rc -ne 0; then :
20727
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 $as_echo "no" >&6; }
20730
20731 else :
20732
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 $as_echo "yes" >&6; }
20735
20736 $as_echo "#define HAVE_GROUPS_SEARCH 1" >>confdefs.h
20737
20738
20739 fi
20740 fi
20741
20742
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
20744 $as_echo_n "checking whether __put_task_struct() is available... " >&6; }
20745
20746
20747
20748 cat confdefs.h - <<_ACEOF >conftest.c
20749
20750
20751 #include <linux/sched.h>
20752
20753 int
20754 main (void)
20755 {
20756
20757 __put_task_struct(NULL);
20758
20759 ;
20760 return 0;
20761 }
20762
20763 _ACEOF
20764
20765
20766 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20767 echo "obj-m := conftest.o" >build/Makefile
20768 modpost_flag=''
20769 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20770 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'
20771 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20775 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20778 ac_status=$?
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; }; then :
20781 rc=0
20782 else
20783 $as_echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785 rc=1
20786
20787
20788 fi
20789 rm -Rf build
20790
20791
20792 if test $rc -ne 0; then :
20793
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795 $as_echo "no" >&6; }
20796
20797 else
20798 if test "x$enable_linux_builtin" != xyes; then
20799
20800 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
20801 $LINUX_OBJ/Module*.symvers 2>/dev/null
20802 rc=$?
20803 if test $rc -ne 0; then
20804 export=0
20805 for file in ; do
20806 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
20807 "$LINUX_OBJ/$file" 2>/dev/null
20808 rc=$?
20809 if test $rc -eq 0; then
20810 export=1
20811 break;
20812 fi
20813 done
20814 if test $export -eq 0; then :
20815 rc=1
20816 else :
20817 rc=0
20818 fi
20819 else :
20820 rc=0
20821 fi
20822
20823 fi
20824 if test $rc -ne 0; then :
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20827 $as_echo "no" >&6; }
20828
20829 else :
20830
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20832 $as_echo "yes" >&6; }
20833
20834 $as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
20835
20836
20837 fi
20838 fi
20839
20840
20841
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether proc_handler() wants 5 args" >&5
20843 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
20844
20845
20846 cat confdefs.h - <<_ACEOF >conftest.c
20847
20848
20849 #include <linux/sysctl.h>
20850
20851 int
20852 main (void)
20853 {
20854
20855 proc_dostring(NULL, 0, NULL, NULL, NULL);
20856
20857 ;
20858 return 0;
20859 }
20860
20861 _ACEOF
20862
20863
20864 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20865 echo "obj-m := conftest.o" >build/Makefile
20866 modpost_flag=''
20867 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20868 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'
20869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20870 (eval $ac_try) 2>&5
20871 ac_status=$?
20872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20873 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20878 test $ac_status = 0; }; }; then :
20879
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20881 $as_echo "yes" >&6; }
20882
20883 $as_echo "#define HAVE_5ARGS_PROC_HANDLER 1" >>confdefs.h
20884
20885
20886 else
20887 $as_echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20891 $as_echo "no" >&6; }
20892
20893
20894
20895 fi
20896 rm -Rf build
20897
20898
20899
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kvasprintf() is available" >&5
20901 $as_echo_n "checking whether kvasprintf() is available... " >&6; }
20902
20903
20904
20905 cat confdefs.h - <<_ACEOF >conftest.c
20906
20907
20908 #include <linux/kernel.h>
20909
20910 int
20911 main (void)
20912 {
20913
20914 kvasprintf(0, NULL, *((va_list*)NULL));
20915
20916 ;
20917 return 0;
20918 }
20919
20920 _ACEOF
20921
20922
20923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20924 echo "obj-m := conftest.o" >build/Makefile
20925 modpost_flag=''
20926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20927 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'
20928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20937 test $ac_status = 0; }; }; then :
20938 rc=0
20939 else
20940 $as_echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942 rc=1
20943
20944
20945 fi
20946 rm -Rf build
20947
20948
20949 if test $rc -ne 0; then :
20950
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20952 $as_echo "no" >&6; }
20953
20954 else
20955 if test "x$enable_linux_builtin" != xyes; then
20956
20957 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
20958 $LINUX_OBJ/Module*.symvers 2>/dev/null
20959 rc=$?
20960 if test $rc -ne 0; then
20961 export=0
20962 for file in ; do
20963 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
20964 "$LINUX_OBJ/$file" 2>/dev/null
20965 rc=$?
20966 if test $rc -eq 0; then
20967 export=1
20968 break;
20969 fi
20970 done
20971 if test $export -eq 0; then :
20972 rc=1
20973 else :
20974 rc=0
20975 fi
20976 else :
20977 rc=0
20978 fi
20979
20980 fi
20981 if test $rc -ne 0; then :
20982
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20984 $as_echo "no" >&6; }
20985
20986 else :
20987
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20989 $as_echo "yes" >&6; }
20990
20991 $as_echo "#define HAVE_KVASPRINTF 1" >>confdefs.h
20992
20993
20994 fi
20995 fi
20996
20997
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rwsem_is_locked() acquires sem->wait_lock" >&5
20999 $as_echo_n "checking whether rwsem_is_locked() acquires sem->wait_lock... " >&6; }
21000
21001
21002
21003 cat confdefs.h - <<_ACEOF >conftest.c
21004
21005
21006 #include <linux/rwsem.h>
21007 int rwsem_is_locked(struct rw_semaphore *sem) { return 0; }
21008
21009 int
21010 main (void)
21011 {
21012
21013 ;
21014 return 0;
21015 }
21016
21017 _ACEOF
21018
21019
21020 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21021 echo "obj-m := conftest.o" >build/Makefile
21022 modpost_flag=''
21023 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21024 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'
21025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21026 (eval $ac_try) 2>&5
21027 ac_status=$?
21028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21029 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21031 (eval $ac_try) 2>&5
21032 ac_status=$?
21033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21034 test $ac_status = 0; }; }; then :
21035 rc=0
21036 else
21037 $as_echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039 rc=1
21040
21041
21042 fi
21043 rm -Rf build
21044
21045
21046 if test $rc -ne 0; then :
21047
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049 $as_echo "no" >&6; }
21050
21051 else
21052 if test "x$enable_linux_builtin" != xyes; then
21053
21054 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
21055 $LINUX_OBJ/Module*.symvers 2>/dev/null
21056 rc=$?
21057 if test $rc -ne 0; then
21058 export=0
21059 for file in lib/rwsem-spinlock.c; do
21060 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
21061 "$LINUX_OBJ/$file" 2>/dev/null
21062 rc=$?
21063 if test $rc -eq 0; then
21064 export=1
21065 break;
21066 fi
21067 done
21068 if test $export -eq 0; then :
21069 rc=1
21070 else :
21071 rc=0
21072 fi
21073 else :
21074 rc=0
21075 fi
21076
21077 fi
21078 if test $rc -ne 0; then :
21079
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081 $as_echo "no" >&6; }
21082
21083 else :
21084
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21086 $as_echo "yes" >&6; }
21087
21088 $as_echo "#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1" >>confdefs.h
21089
21090
21091 fi
21092 fi
21093
21094
21095
21096
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21098 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21099
21100
21101 cat confdefs.h - <<_ACEOF >conftest.c
21102
21103
21104 #include <linux/fs.h>
21105
21106 int
21107 main (void)
21108 {
21109
21110 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21111 struct file_operations fops __attribute__ ((unused)) = {
21112 .fallocate = fallocate,
21113 };
21114
21115 ;
21116 return 0;
21117 }
21118
21119 _ACEOF
21120
21121
21122 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21123 echo "obj-m := conftest.o" >build/Makefile
21124 modpost_flag=''
21125 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21126 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'
21127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21131 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21133 (eval $ac_try) 2>&5
21134 ac_status=$?
21135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21136 test $ac_status = 0; }; }; then :
21137
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21139 $as_echo "yes" >&6; }
21140
21141 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21142
21143
21144 else
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21149 $as_echo "no" >&6; }
21150
21151
21152
21153 fi
21154 rm -Rf build
21155
21156
21157
21158
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
21160 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21161
21162
21163 cat confdefs.h - <<_ACEOF >conftest.c
21164
21165
21166 #include <linux/fs.h>
21167
21168 int
21169 main (void)
21170 {
21171
21172 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21173 struct inode_operations fops __attribute__ ((unused)) = {
21174 .fallocate = fallocate,
21175 };
21176
21177 ;
21178 return 0;
21179 }
21180
21181 _ACEOF
21182
21183
21184 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21185 echo "obj-m := conftest.o" >build/Makefile
21186 modpost_flag=''
21187 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21188 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'
21189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21190 (eval $ac_try) 2>&5
21191 ac_status=$?
21192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21193 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21195 (eval $ac_try) 2>&5
21196 ac_status=$?
21197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21198 test $ac_status = 0; }; }; then :
21199
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21201 $as_echo "yes" >&6; }
21202
21203 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
21204
21205
21206 else
21207 $as_echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21211 $as_echo "no" >&6; }
21212
21213
21214
21215 fi
21216 rm -Rf build
21217
21218
21219
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21222 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21223
21224
21225 cat confdefs.h - <<_ACEOF >conftest.c
21226
21227
21228 #include <linux/fs.h>
21229
21230 int
21231 main (void)
21232 {
21233
21234 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21235 struct file_operations_no_const fops __attribute__ ((unused)) = {
21236 .fallocate = fallocate,
21237 };
21238
21239 ;
21240 return 0;
21241 }
21242
21243 _ACEOF
21244
21245
21246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21247 echo "obj-m := conftest.o" >build/Makefile
21248 modpost_flag=''
21249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21250 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'
21251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21255 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21257 (eval $ac_try) 2>&5
21258 ac_status=$?
21259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21260 test $ac_status = 0; }; }; then :
21261
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21263 $as_echo "yes" >&6; }
21264
21265 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21266
21267
21268 else
21269 $as_echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21273 $as_echo "no" >&6; }
21274
21275
21276
21277 fi
21278 rm -Rf build
21279
21280
21281
21282
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_dcache_memory() is available" >&5
21284 $as_echo_n "checking whether shrink_dcache_memory() is available... " >&6; }
21285
21286
21287
21288 cat confdefs.h - <<_ACEOF >conftest.c
21289
21290
21291 #include <linux/dcache.h>
21292
21293 int
21294 main (void)
21295 {
21296
21297 shrink_dcache_memory(0, 0);
21298
21299 ;
21300 return 0;
21301 }
21302
21303 _ACEOF
21304
21305
21306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21307 echo "obj-m := conftest.o" >build/Makefile
21308 modpost_flag=''
21309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21310 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'
21311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21315 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21320 test $ac_status = 0; }; }; then :
21321 rc=0
21322 else
21323 $as_echo "$as_me: failed program was:" >&5
21324 sed 's/^/| /' conftest.$ac_ext >&5
21325 rc=1
21326
21327
21328 fi
21329 rm -Rf build
21330
21331
21332 if test $rc -ne 0; then :
21333
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21335 $as_echo "no" >&6; }
21336
21337 else
21338 if test "x$enable_linux_builtin" != xyes; then
21339
21340 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
21341 $LINUX_OBJ/Module*.symvers 2>/dev/null
21342 rc=$?
21343 if test $rc -ne 0; then
21344 export=0
21345 for file in fs/dcache.c; do
21346 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
21347 "$LINUX_OBJ/$file" 2>/dev/null
21348 rc=$?
21349 if test $rc -eq 0; then
21350 export=1
21351 break;
21352 fi
21353 done
21354 if test $export -eq 0; then :
21355 rc=1
21356 else :
21357 rc=0
21358 fi
21359 else :
21360 rc=0
21361 fi
21362
21363 fi
21364 if test $rc -ne 0; then :
21365
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367 $as_echo "no" >&6; }
21368
21369 else :
21370
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21372 $as_echo "yes" >&6; }
21373
21374 $as_echo "#define HAVE_SHRINK_DCACHE_MEMORY 1" >>confdefs.h
21375
21376
21377 fi
21378 fi
21379
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_icache_memory() is available" >&5
21382 $as_echo_n "checking whether shrink_icache_memory() is available... " >&6; }
21383
21384
21385
21386 cat confdefs.h - <<_ACEOF >conftest.c
21387
21388
21389 #include <linux/dcache.h>
21390
21391 int
21392 main (void)
21393 {
21394
21395 shrink_icache_memory(0, 0);
21396
21397 ;
21398 return 0;
21399 }
21400
21401 _ACEOF
21402
21403
21404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21405 echo "obj-m := conftest.o" >build/Makefile
21406 modpost_flag=''
21407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21408 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'
21409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21413 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21418 test $ac_status = 0; }; }; then :
21419 rc=0
21420 else
21421 $as_echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21423 rc=1
21424
21425
21426 fi
21427 rm -Rf build
21428
21429
21430 if test $rc -ne 0; then :
21431
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21433 $as_echo "no" >&6; }
21434
21435 else
21436 if test "x$enable_linux_builtin" != xyes; then
21437
21438 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
21439 $LINUX_OBJ/Module*.symvers 2>/dev/null
21440 rc=$?
21441 if test $rc -ne 0; then
21442 export=0
21443 for file in fs/inode.c; do
21444 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
21445 "$LINUX_OBJ/$file" 2>/dev/null
21446 rc=$?
21447 if test $rc -eq 0; then
21448 export=1
21449 break;
21450 fi
21451 done
21452 if test $export -eq 0; then :
21453 rc=1
21454 else :
21455 rc=0
21456 fi
21457 else :
21458 rc=0
21459 fi
21460
21461 fi
21462 if test $rc -ne 0; then :
21463
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21465 $as_echo "no" >&6; }
21466
21467 else :
21468
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21470 $as_echo "yes" >&6; }
21471
21472 $as_echo "#define HAVE_SHRINK_ICACHE_MEMORY 1" >>confdefs.h
21473
21474
21475 fi
21476 fi
21477
21478
21479
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_parent exists in header" >&5
21482 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
21483 header=0
21484 for file in include/linux/namei.h; do
21485 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
21486 rc=$?
21487 if test $rc -eq 0; then
21488 header=1
21489 break;
21490 fi
21491 done
21492 if test $header -eq 0; then
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21494 $as_echo "no" >&6; }
21495
21496 else
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21498 $as_echo "yes" >&6; }
21499
21500 $as_echo "#define HAVE_KERN_PATH_PARENT_HEADER 1" >>confdefs.h
21501
21502 fi
21503
21504
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kern_path_parent() is available" >&5
21506 $as_echo_n "checking whether kern_path_parent() is available... " >&6; }
21507
21508
21509
21510 cat confdefs.h - <<_ACEOF >conftest.c
21511
21512
21513 #include <linux/namei.h>
21514
21515 int
21516 main (void)
21517 {
21518
21519 kern_path_parent(NULL, NULL);
21520
21521 ;
21522 return 0;
21523 }
21524
21525 _ACEOF
21526
21527
21528 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21529 echo "obj-m := conftest.o" >build/Makefile
21530 modpost_flag=''
21531 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21532 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'
21533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21537 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; }; }; then :
21543 rc=0
21544 else
21545 $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547 rc=1
21548
21549
21550 fi
21551 rm -Rf build
21552
21553
21554 if test $rc -ne 0; then :
21555
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21558
21559 else
21560 if test "x$enable_linux_builtin" != xyes; then
21561
21562 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
21563 $LINUX_OBJ/Module*.symvers 2>/dev/null
21564 rc=$?
21565 if test $rc -ne 0; then
21566 export=0
21567 for file in fs/namei.c; do
21568 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
21569 "$LINUX_OBJ/$file" 2>/dev/null
21570 rc=$?
21571 if test $rc -eq 0; then
21572 export=1
21573 break;
21574 fi
21575 done
21576 if test $export -eq 0; then :
21577 rc=1
21578 else :
21579 rc=0
21580 fi
21581 else :
21582 rc=0
21583 fi
21584
21585 fi
21586 if test $rc -ne 0; then :
21587
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21589 $as_echo "no" >&6; }
21590
21591 else :
21592
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21594 $as_echo "yes" >&6; }
21595
21596 $as_echo "#define HAVE_KERN_PATH_PARENT_SYMBOL 1" >>confdefs.h
21597
21598
21599 fi
21600 fi
21601
21602
21603
21604
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol kern_path_locked exists in header" >&5
21606 $as_echo_n "checking whether symbol kern_path_locked exists in header... " >&6; }
21607 header=0
21608 for file in include/linux/namei.h; do
21609 grep -q "struct dentry \*kern_path_locked(const char \*, struct path \*)" "$LINUX/$file" 2>/dev/null
21610 rc=$?
21611 if test $rc -eq 0; then
21612 header=1
21613 break;
21614 fi
21615 done
21616 if test $header -eq 0; then
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21618 $as_echo "no" >&6; }
21619
21620 else
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21622 $as_echo "yes" >&6; }
21623
21624 $as_echo "#define HAVE_KERN_PATH_LOCKED 1" >>confdefs.h
21625
21626 fi
21627
21628
21629
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_KALLSYMS is defined" >&5
21631 $as_echo_n "checking whether CONFIG_KALLSYMS is defined... " >&6; }
21632
21633
21634 cat confdefs.h - <<_ACEOF >conftest.c
21635
21636
21637 #if !defined(CONFIG_KALLSYMS)
21638 #error CONFIG_KALLSYMS not defined
21639 #endif
21640
21641 int
21642 main (void)
21643 {
21644
21645 ;
21646 return 0;
21647 }
21648
21649 _ACEOF
21650
21651
21652 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21653 echo "obj-m := conftest.o" >build/Makefile
21654 modpost_flag=''
21655 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21656 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'
21657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21658 (eval $ac_try) 2>&5
21659 ac_status=$?
21660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21661 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21666 test $ac_status = 0; }; }; then :
21667
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21669 $as_echo "yes" >&6; }
21670
21671 else
21672 $as_echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21676 $as_echo "no" >&6; }
21677 as_fn_error $? "
21678 *** This kernel does not include the required kallsyms support.
21679 *** Rebuild the kernel with CONFIG_KALLSYMS=y set." "$LINENO" 5
21680
21681
21682
21683 fi
21684 rm -Rf build
21685
21686
21687
21688
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
21690 $as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
21691
21692
21693 cat confdefs.h - <<_ACEOF >conftest.c
21694
21695
21696 #if !defined(CONFIG_ZLIB_INFLATE) && \
21697 !defined(CONFIG_ZLIB_INFLATE_MODULE)
21698 #error CONFIG_ZLIB_INFLATE not defined
21699 #endif
21700
21701 int
21702 main (void)
21703 {
21704
21705 ;
21706 return 0;
21707 }
21708
21709 _ACEOF
21710
21711
21712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21713 echo "obj-m := conftest.o" >build/Makefile
21714 modpost_flag=''
21715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21716 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'
21717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21718 (eval $ac_try) 2>&5
21719 ac_status=$?
21720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21721 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21726 test $ac_status = 0; }; }; then :
21727
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21729 $as_echo "yes" >&6; }
21730
21731 else
21732 $as_echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21734
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21736 $as_echo "no" >&6; }
21737 as_fn_error $? "
21738 *** This kernel does not include the required zlib inflate support.
21739 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
21740
21741
21742
21743 fi
21744 rm -Rf build
21745
21746
21747
21748
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
21750 $as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
21751
21752
21753 cat confdefs.h - <<_ACEOF >conftest.c
21754
21755
21756 #if !defined(CONFIG_ZLIB_DEFLATE) && \
21757 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
21758 #error CONFIG_ZLIB_DEFLATE not defined
21759 #endif
21760
21761 int
21762 main (void)
21763 {
21764
21765 ;
21766 return 0;
21767 }
21768
21769 _ACEOF
21770
21771
21772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21773 echo "obj-m := conftest.o" >build/Makefile
21774 modpost_flag=''
21775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21776 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'
21777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21781 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21786 test $ac_status = 0; }; }; then :
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21789 $as_echo "yes" >&6; }
21790
21791 else
21792 $as_echo "$as_me: failed program was:" >&5
21793 sed 's/^/| /' conftest.$ac_ext >&5
21794
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21796 $as_echo "no" >&6; }
21797 as_fn_error $? "
21798 *** This kernel does not include the required zlib deflate support.
21799 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
21800
21801
21802
21803 fi
21804 rm -Rf build
21805
21806
21807
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
21809 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
21810
21811
21812 cat confdefs.h - <<_ACEOF >conftest.c
21813
21814
21815 #include <linux/zlib.h>
21816
21817 int
21818 main (void)
21819 {
21820
21821 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
21822
21823 ;
21824 return 0;
21825 }
21826
21827 _ACEOF
21828
21829
21830 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21831 echo "obj-m := conftest.o" >build/Makefile
21832 modpost_flag=''
21833 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21834 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'
21835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21836 (eval $ac_try) 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21844 test $ac_status = 0; }; }; then :
21845
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21847 $as_echo "yes" >&6; }
21848
21849 $as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
21850
21851
21852 else
21853 $as_echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21857 $as_echo "no" >&6; }
21858
21859
21860
21861 fi
21862 rm -Rf build
21863
21864
21865
21866
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
21868 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
21869
21870
21871 cat confdefs.h - <<_ACEOF >conftest.c
21872
21873
21874 #include <linux/mm.h>
21875
21876 int
21877 main (void)
21878 {
21879
21880 struct shrink_control sc __attribute__ ((unused));
21881
21882 sc.nr_to_scan = 0;
21883 sc.gfp_mask = GFP_KERNEL;
21884
21885 ;
21886 return 0;
21887 }
21888
21889 _ACEOF
21890
21891
21892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21893 echo "obj-m := conftest.o" >build/Makefile
21894 modpost_flag=''
21895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21896 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'
21897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21898 (eval $ac_try) 2>&5
21899 ac_status=$?
21900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21901 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21906 test $ac_status = 0; }; }; then :
21907
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21909 $as_echo "yes" >&6; }
21910
21911 $as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
21912
21913
21914 else
21915 $as_echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21919 $as_echo "no" >&6; }
21920
21921
21922
21923 fi
21924 rm -Rf build
21925
21926
21927
21928
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
21930 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
21931 tmp_flags="$EXTRA_KCFLAGS"
21932 EXTRA_KCFLAGS="-Werror"
21933
21934
21935 cat confdefs.h - <<_ACEOF >conftest.c
21936
21937
21938 #include <linux/rwsem.h>
21939
21940 int
21941 main (void)
21942 {
21943
21944 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
21945 raw_spinlock_t dummy_lock __attribute__ ((unused));
21946 dummy_semaphore.wait_lock = dummy_lock;
21947
21948 ;
21949 return 0;
21950 }
21951
21952 _ACEOF
21953
21954
21955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21956 echo "obj-m := conftest.o" >build/Makefile
21957 modpost_flag=''
21958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21959 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'
21960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21969 test $ac_status = 0; }; }; then :
21970
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21972 $as_echo "yes" >&6; }
21973
21974 $as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
21975
21976
21977 else
21978 $as_echo "$as_me: failed program was:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21980
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21982 $as_echo "no" >&6; }
21983
21984
21985
21986 fi
21987 rm -Rf build
21988
21989
21990 EXTRA_KCFLAGS="$tmp_flags"
21991
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
21993 $as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
21994
21995
21996 cat confdefs.h - <<_ACEOF >conftest.c
21997
21998
21999 #include <linux/sched.h>
22000 #include <linux/sched/rt.h>
22001
22002 int
22003 main (void)
22004 {
22005
22006 return 0;
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
22031
22032 $as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
22033
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22035 $as_echo "yes" >&6; }
22036
22037 else
22038 $as_echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22042 $as_echo "no" >&6; }
22043
22044
22045
22046 fi
22047 rm -Rf build
22048
22049
22050
22051
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
22053 $as_echo_n "checking whether vfs_getattr() wants... " >&6; }
22054
22055
22056 cat confdefs.h - <<_ACEOF >conftest.c
22057
22058
22059 #include <linux/fs.h>
22060
22061 int
22062 main (void)
22063 {
22064
22065 vfs_getattr((struct path *) NULL,
22066 (struct kstat *)NULL);
22067
22068 ;
22069 return 0;
22070 }
22071
22072 _ACEOF
22073
22074
22075 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22076 echo "obj-m := conftest.o" >build/Makefile
22077 modpost_flag=''
22078 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22079 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'
22080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22084 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22089 test $ac_status = 0; }; }; then :
22090
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
22092 $as_echo "2 args" >&6; }
22093
22094 $as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
22095
22096
22097 else
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101
22102
22103 cat confdefs.h - <<_ACEOF >conftest.c
22104
22105
22106 #include <linux/fs.h>
22107
22108 int
22109 main (void)
22110 {
22111
22112 vfs_getattr((struct vfsmount *)NULL,
22113 (struct dentry *)NULL,
22114 (struct kstat *)NULL);
22115
22116 ;
22117 return 0;
22118 }
22119
22120 _ACEOF
22121
22122
22123 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22124 echo "obj-m := conftest.o" >build/Makefile
22125 modpost_flag=''
22126 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22127 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'
22128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22129 (eval $ac_try) 2>&5
22130 ac_status=$?
22131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22132 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22134 (eval $ac_try) 2>&5
22135 ac_status=$?
22136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22137 test $ac_status = 0; }; }; then :
22138
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
22140 $as_echo "3 args" >&6; }
22141
22142 else
22143 $as_echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146 as_fn_error $? "unknown" "$LINENO" 5
22147
22148
22149
22150 fi
22151 rm -Rf build
22152
22153
22154
22155
22156
22157 fi
22158 rm -Rf build
22159
22160
22161
22162
22163 ;;
22164 srpm) ;;
22165 *)
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
22167 $as_echo "Error!" >&6; }
22168 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
22169 user kernel|user|all|srpm" "$LINENO" 5 ;;
22170 esac
22171
22172 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
22173 CONFIG_USER_TRUE=
22174 CONFIG_USER_FALSE='#'
22175 else
22176 CONFIG_USER_TRUE='#'
22177 CONFIG_USER_FALSE=
22178 fi
22179
22180 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
22181 test "x$enable_linux_builtin" != xyes ; then
22182 CONFIG_KERNEL_TRUE=
22183 CONFIG_KERNEL_FALSE='#'
22184 else
22185 CONFIG_KERNEL_TRUE='#'
22186 CONFIG_KERNEL_FALSE=
22187 fi
22188
22189
22190
22191 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"
22192
22193
22194 cat >confcache <<\_ACEOF
22195 # This file is a shell script that caches the results of configure
22196 # tests run on this system so they can be shared between configure
22197 # scripts and configure runs, see configure's option --config-cache.
22198 # It is not useful on other systems. If it contains results you don't
22199 # want to keep, you may remove or edit it.
22200 #
22201 # config.status only pays attention to the cache file if you give it
22202 # the --recheck option to rerun configure.
22203 #
22204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22206 # following values.
22207
22208 _ACEOF
22209
22210 # The following way of writing the cache mishandles newlines in values,
22211 # but we know of no workaround that is simple, portable, and efficient.
22212 # So, we kill variables containing newlines.
22213 # Ultrix sh set writes to stderr and can't be redirected directly,
22214 # and sets the high bit in the cache file unless we assign to the vars.
22215 (
22216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22217 eval ac_val=\$$ac_var
22218 case $ac_val in #(
22219 *${as_nl}*)
22220 case $ac_var in #(
22221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22223 esac
22224 case $ac_var in #(
22225 _ | IFS | as_nl) ;; #(
22226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22227 *) { eval $ac_var=; unset $ac_var;} ;;
22228 esac ;;
22229 esac
22230 done
22231
22232 (set) 2>&1 |
22233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22234 *${as_nl}ac_space=\ *)
22235 # `set' does not quote correctly, so add quotes: double-quote
22236 # substitution turns \\\\ into \\, and sed turns \\ into \.
22237 sed -n \
22238 "s/'/'\\\\''/g;
22239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22240 ;; #(
22241 *)
22242 # `set' quotes correctly as required by POSIX, so do not add quotes.
22243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22244 ;;
22245 esac |
22246 sort
22247 ) |
22248 sed '
22249 /^ac_cv_env_/b end
22250 t clear
22251 :clear
22252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22253 t end
22254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22255 :end' >>confcache
22256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22257 if test -w "$cache_file"; then
22258 test "x$cache_file" != "x/dev/null" &&
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22260 $as_echo "$as_me: updating cache $cache_file" >&6;}
22261 cat confcache >$cache_file
22262 else
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22265 fi
22266 fi
22267 rm -f confcache
22268
22269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22270 # Let make expand exec_prefix.
22271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22272
22273 DEFS=-DHAVE_CONFIG_H
22274
22275 ac_libobjs=
22276 ac_ltlibobjs=
22277 U=
22278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22279 # 1. Remove the extension, and $U if already installed.
22280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22283 # will be set to the directory where LIBOBJS objects are built.
22284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22286 done
22287 LIBOBJS=$ac_libobjs
22288
22289 LTLIBOBJS=$ac_ltlibobjs
22290
22291
22292 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22293 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22295 fi
22296 if test -n "$EXEEXT"; then
22297 am__EXEEXT_TRUE=
22298 am__EXEEXT_FALSE='#'
22299 else
22300 am__EXEEXT_TRUE='#'
22301 am__EXEEXT_FALSE=
22302 fi
22303
22304 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22305 as_fn_error $? "conditional \"AMDEP\" was never defined.
22306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22307 fi
22308 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22309 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22311 fi
22312 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
22313 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
22314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22315 fi
22316 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
22317 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
22318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22319 fi
22320
22321 : ${CONFIG_STATUS=./config.status}
22322 ac_write_fail=0
22323 ac_clean_files_save=$ac_clean_files
22324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22326 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22327 as_write_fail=0
22328 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22329 #! $SHELL
22330 # Generated by $as_me.
22331 # Run this file to recreate the current configuration.
22332 # Compiler output produced by configure, useful for debugging
22333 # configure, is in config.log if it exists.
22334
22335 debug=false
22336 ac_cs_recheck=false
22337 ac_cs_silent=false
22338
22339 SHELL=\${CONFIG_SHELL-$SHELL}
22340 export SHELL
22341 _ASEOF
22342 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22343 ## -------------------- ##
22344 ## M4sh Initialization. ##
22345 ## -------------------- ##
22346
22347 # Be more Bourne compatible
22348 DUALCASE=1; export DUALCASE # for MKS sh
22349 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22350 emulate sh
22351 NULLCMD=:
22352 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22353 # is contrary to our usage. Disable this feature.
22354 alias -g '${1+"$@"}'='"$@"'
22355 setopt NO_GLOB_SUBST
22356 else
22357 case `(set -o) 2>/dev/null` in #(
22358 *posix*) :
22359 set -o posix ;; #(
22360 *) :
22361 ;;
22362 esac
22363 fi
22364
22365
22366 as_nl='
22367 '
22368 export as_nl
22369 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22370 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22373 # Prefer a ksh shell builtin over an external printf program on Solaris,
22374 # but without wasting forks for bash or zsh.
22375 if test -z "$BASH_VERSION$ZSH_VERSION" \
22376 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22377 as_echo='print -r --'
22378 as_echo_n='print -rn --'
22379 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22380 as_echo='printf %s\n'
22381 as_echo_n='printf %s'
22382 else
22383 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22384 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22385 as_echo_n='/usr/ucb/echo -n'
22386 else
22387 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22388 as_echo_n_body='eval
22389 arg=$1;
22390 case $arg in #(
22391 *"$as_nl"*)
22392 expr "X$arg" : "X\\(.*\\)$as_nl";
22393 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22394 esac;
22395 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22396 '
22397 export as_echo_n_body
22398 as_echo_n='sh -c $as_echo_n_body as_echo'
22399 fi
22400 export as_echo_body
22401 as_echo='sh -c $as_echo_body as_echo'
22402 fi
22403
22404 # The user is always right.
22405 if test "${PATH_SEPARATOR+set}" != set; then
22406 PATH_SEPARATOR=:
22407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22408 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22409 PATH_SEPARATOR=';'
22410 }
22411 fi
22412
22413
22414 # IFS
22415 # We need space, tab and new line, in precisely that order. Quoting is
22416 # there to prevent editors from complaining about space-tab.
22417 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22418 # splitting by setting IFS to empty value.)
22419 IFS=" "" $as_nl"
22420
22421 # Find who we are. Look in the path if we contain no directory separator.
22422 case $0 in #((
22423 *[\\/]* ) as_myself=$0 ;;
22424 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22425 for as_dir in $PATH
22426 do
22427 IFS=$as_save_IFS
22428 test -z "$as_dir" && as_dir=.
22429 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22430 done
22431 IFS=$as_save_IFS
22432
22433 ;;
22434 esac
22435 # We did not find ourselves, most probably we were run as `sh COMMAND'
22436 # in which case we are not to be found in the path.
22437 if test "x$as_myself" = x; then
22438 as_myself=$0
22439 fi
22440 if test ! -f "$as_myself"; then
22441 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22442 exit 1
22443 fi
22444
22445 # Unset variables that we do not need and which cause bugs (e.g. in
22446 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22447 # suppresses any "Segmentation fault" message there. '((' could
22448 # trigger a bug in pdksh 5.2.14.
22449 for as_var in BASH_ENV ENV MAIL MAILPATH
22450 do eval test x\${$as_var+set} = xset \
22451 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22452 done
22453 PS1='$ '
22454 PS2='> '
22455 PS4='+ '
22456
22457 # NLS nuisances.
22458 LC_ALL=C
22459 export LC_ALL
22460 LANGUAGE=C
22461 export LANGUAGE
22462
22463 # CDPATH.
22464 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22465
22466
22467 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22468 # ----------------------------------------
22469 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22470 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22471 # script with STATUS, using 1 if that was 0.
22472 as_fn_error ()
22473 {
22474 as_status=$1; test $as_status -eq 0 && as_status=1
22475 if test "$4"; then
22476 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22477 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22478 fi
22479 $as_echo "$as_me: error: $2" >&2
22480 as_fn_exit $as_status
22481 } # as_fn_error
22482
22483
22484 # as_fn_set_status STATUS
22485 # -----------------------
22486 # Set $? to STATUS, without forking.
22487 as_fn_set_status ()
22488 {
22489 return $1
22490 } # as_fn_set_status
22491
22492 # as_fn_exit STATUS
22493 # -----------------
22494 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22495 as_fn_exit ()
22496 {
22497 set +e
22498 as_fn_set_status $1
22499 exit $1
22500 } # as_fn_exit
22501
22502 # as_fn_unset VAR
22503 # ---------------
22504 # Portably unset VAR.
22505 as_fn_unset ()
22506 {
22507 { eval $1=; unset $1;}
22508 }
22509 as_unset=as_fn_unset
22510 # as_fn_append VAR VALUE
22511 # ----------------------
22512 # Append the text in VALUE to the end of the definition contained in VAR. Take
22513 # advantage of any shell optimizations that allow amortized linear growth over
22514 # repeated appends, instead of the typical quadratic growth present in naive
22515 # implementations.
22516 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22517 eval 'as_fn_append ()
22518 {
22519 eval $1+=\$2
22520 }'
22521 else
22522 as_fn_append ()
22523 {
22524 eval $1=\$$1\$2
22525 }
22526 fi # as_fn_append
22527
22528 # as_fn_arith ARG...
22529 # ------------------
22530 # Perform arithmetic evaluation on the ARGs, and store the result in the
22531 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22532 # must be portable across $(()) and expr.
22533 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22534 eval 'as_fn_arith ()
22535 {
22536 as_val=$(( $* ))
22537 }'
22538 else
22539 as_fn_arith ()
22540 {
22541 as_val=`expr "$@" || test $? -eq 1`
22542 }
22543 fi # as_fn_arith
22544
22545
22546 if expr a : '\(a\)' >/dev/null 2>&1 &&
22547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22548 as_expr=expr
22549 else
22550 as_expr=false
22551 fi
22552
22553 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22554 as_basename=basename
22555 else
22556 as_basename=false
22557 fi
22558
22559 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22560 as_dirname=dirname
22561 else
22562 as_dirname=false
22563 fi
22564
22565 as_me=`$as_basename -- "$0" ||
22566 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22567 X"$0" : 'X\(//\)$' \| \
22568 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22569 $as_echo X/"$0" |
22570 sed '/^.*\/\([^/][^/]*\)\/*$/{
22571 s//\1/
22572 q
22573 }
22574 /^X\/\(\/\/\)$/{
22575 s//\1/
22576 q
22577 }
22578 /^X\/\(\/\).*/{
22579 s//\1/
22580 q
22581 }
22582 s/.*/./; q'`
22583
22584 # Avoid depending upon Character Ranges.
22585 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22586 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22587 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22588 as_cr_digits='0123456789'
22589 as_cr_alnum=$as_cr_Letters$as_cr_digits
22590
22591 ECHO_C= ECHO_N= ECHO_T=
22592 case `echo -n x` in #(((((
22593 -n*)
22594 case `echo 'xy\c'` in
22595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22596 xy) ECHO_C='\c';;
22597 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22598 ECHO_T=' ';;
22599 esac;;
22600 *)
22601 ECHO_N='-n';;
22602 esac
22603
22604 rm -f conf$$ conf$$.exe conf$$.file
22605 if test -d conf$$.dir; then
22606 rm -f conf$$.dir/conf$$.file
22607 else
22608 rm -f conf$$.dir
22609 mkdir conf$$.dir 2>/dev/null
22610 fi
22611 if (echo >conf$$.file) 2>/dev/null; then
22612 if ln -s conf$$.file conf$$ 2>/dev/null; then
22613 as_ln_s='ln -s'
22614 # ... but there are two gotchas:
22615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22617 # In both cases, we have to default to `cp -p'.
22618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22619 as_ln_s='cp -p'
22620 elif ln conf$$.file conf$$ 2>/dev/null; then
22621 as_ln_s=ln
22622 else
22623 as_ln_s='cp -p'
22624 fi
22625 else
22626 as_ln_s='cp -p'
22627 fi
22628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22629 rmdir conf$$.dir 2>/dev/null
22630
22631
22632 # as_fn_mkdir_p
22633 # -------------
22634 # Create "$as_dir" as a directory, including parents if necessary.
22635 as_fn_mkdir_p ()
22636 {
22637
22638 case $as_dir in #(
22639 -*) as_dir=./$as_dir;;
22640 esac
22641 test -d "$as_dir" || eval $as_mkdir_p || {
22642 as_dirs=
22643 while :; do
22644 case $as_dir in #(
22645 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22646 *) as_qdir=$as_dir;;
22647 esac
22648 as_dirs="'$as_qdir' $as_dirs"
22649 as_dir=`$as_dirname -- "$as_dir" ||
22650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22651 X"$as_dir" : 'X\(//\)[^/]' \| \
22652 X"$as_dir" : 'X\(//\)$' \| \
22653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22654 $as_echo X"$as_dir" |
22655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22656 s//\1/
22657 q
22658 }
22659 /^X\(\/\/\)[^/].*/{
22660 s//\1/
22661 q
22662 }
22663 /^X\(\/\/\)$/{
22664 s//\1/
22665 q
22666 }
22667 /^X\(\/\).*/{
22668 s//\1/
22669 q
22670 }
22671 s/.*/./; q'`
22672 test -d "$as_dir" && break
22673 done
22674 test -z "$as_dirs" || eval "mkdir $as_dirs"
22675 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22676
22677
22678 } # as_fn_mkdir_p
22679 if mkdir -p . 2>/dev/null; then
22680 as_mkdir_p='mkdir -p "$as_dir"'
22681 else
22682 test -d ./-p && rmdir ./-p
22683 as_mkdir_p=false
22684 fi
22685
22686 if test -x / >/dev/null 2>&1; then
22687 as_test_x='test -x'
22688 else
22689 if ls -dL / >/dev/null 2>&1; then
22690 as_ls_L_option=L
22691 else
22692 as_ls_L_option=
22693 fi
22694 as_test_x='
22695 eval sh -c '\''
22696 if test -d "$1"; then
22697 test -d "$1/.";
22698 else
22699 case $1 in #(
22700 -*)set "./$1";;
22701 esac;
22702 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22703 ???[sx]*):;;*)false;;esac;fi
22704 '\'' sh
22705 '
22706 fi
22707 as_executable_p=$as_test_x
22708
22709 # Sed expression to map a string onto a valid CPP name.
22710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22711
22712 # Sed expression to map a string onto a valid variable name.
22713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22714
22715
22716 exec 6>&1
22717 ## ----------------------------------- ##
22718 ## Main body of $CONFIG_STATUS script. ##
22719 ## ----------------------------------- ##
22720 _ASEOF
22721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22722
22723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22724 # Save the log message, to keep $0 and so on meaningful, and to
22725 # report actual input values of CONFIG_FILES etc. instead of their
22726 # values after options handling.
22727 ac_log="
22728 This file was extended by $as_me, which was
22729 generated by GNU Autoconf 2.67. Invocation command line was
22730
22731 CONFIG_FILES = $CONFIG_FILES
22732 CONFIG_HEADERS = $CONFIG_HEADERS
22733 CONFIG_LINKS = $CONFIG_LINKS
22734 CONFIG_COMMANDS = $CONFIG_COMMANDS
22735 $ $0 $@
22736
22737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22738 "
22739
22740 _ACEOF
22741
22742 case $ac_config_files in *"
22743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22744 esac
22745
22746 case $ac_config_headers in *"
22747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22748 esac
22749
22750
22751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22752 # Files that config.status was made for.
22753 config_files="$ac_config_files"
22754 config_headers="$ac_config_headers"
22755 config_commands="$ac_config_commands"
22756
22757 _ACEOF
22758
22759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22760 ac_cs_usage="\
22761 \`$as_me' instantiates files and other configuration actions
22762 from templates according to the current configuration. Unless the files
22763 and actions are specified as TAGs, all are instantiated by default.
22764
22765 Usage: $0 [OPTION]... [TAG]...
22766
22767 -h, --help print this help, then exit
22768 -V, --version print version number and configuration settings, then exit
22769 --config print configuration, then exit
22770 -q, --quiet, --silent
22771 do not print progress messages
22772 -d, --debug don't remove temporary files
22773 --recheck update $as_me by reconfiguring in the same conditions
22774 --file=FILE[:TEMPLATE]
22775 instantiate the configuration file FILE
22776 --header=FILE[:TEMPLATE]
22777 instantiate the configuration header FILE
22778
22779 Configuration files:
22780 $config_files
22781
22782 Configuration headers:
22783 $config_headers
22784
22785 Configuration commands:
22786 $config_commands
22787
22788 Report bugs to the package provider."
22789
22790 _ACEOF
22791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22793 ac_cs_version="\\
22794 config.status
22795 configured by $0, generated by GNU Autoconf 2.67,
22796 with options \\"\$ac_cs_config\\"
22797
22798 Copyright (C) 2010 Free Software Foundation, Inc.
22799 This config.status script is free software; the Free Software Foundation
22800 gives unlimited permission to copy, distribute and modify it."
22801
22802 ac_pwd='$ac_pwd'
22803 srcdir='$srcdir'
22804 INSTALL='$INSTALL'
22805 MKDIR_P='$MKDIR_P'
22806 AWK='$AWK'
22807 test -n "\$AWK" || AWK=awk
22808 _ACEOF
22809
22810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22811 # The default lists apply if the user does not specify any file.
22812 ac_need_defaults=:
22813 while test $# != 0
22814 do
22815 case $1 in
22816 --*=?*)
22817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22819 ac_shift=:
22820 ;;
22821 --*=)
22822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22823 ac_optarg=
22824 ac_shift=:
22825 ;;
22826 *)
22827 ac_option=$1
22828 ac_optarg=$2
22829 ac_shift=shift
22830 ;;
22831 esac
22832
22833 case $ac_option in
22834 # Handling of the options.
22835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22836 ac_cs_recheck=: ;;
22837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22838 $as_echo "$ac_cs_version"; exit ;;
22839 --config | --confi | --conf | --con | --co | --c )
22840 $as_echo "$ac_cs_config"; exit ;;
22841 --debug | --debu | --deb | --de | --d | -d )
22842 debug=: ;;
22843 --file | --fil | --fi | --f )
22844 $ac_shift
22845 case $ac_optarg in
22846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22847 '') as_fn_error $? "missing file argument" ;;
22848 esac
22849 as_fn_append CONFIG_FILES " '$ac_optarg'"
22850 ac_need_defaults=false;;
22851 --header | --heade | --head | --hea )
22852 $ac_shift
22853 case $ac_optarg in
22854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22855 esac
22856 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22857 ac_need_defaults=false;;
22858 --he | --h)
22859 # Conflict between --help and --header
22860 as_fn_error $? "ambiguous option: \`$1'
22861 Try \`$0 --help' for more information.";;
22862 --help | --hel | -h )
22863 $as_echo "$ac_cs_usage"; exit ;;
22864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22866 ac_cs_silent=: ;;
22867
22868 # This is an error.
22869 -*) as_fn_error $? "unrecognized option: \`$1'
22870 Try \`$0 --help' for more information." ;;
22871
22872 *) as_fn_append ac_config_targets " $1"
22873 ac_need_defaults=false ;;
22874
22875 esac
22876 shift
22877 done
22878
22879 ac_configure_extra_args=
22880
22881 if $ac_cs_silent; then
22882 exec 6>/dev/null
22883 ac_configure_extra_args="$ac_configure_extra_args --silent"
22884 fi
22885
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22888 if \$ac_cs_recheck; then
22889 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22890 shift
22891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22892 CONFIG_SHELL='$SHELL'
22893 export CONFIG_SHELL
22894 exec "\$@"
22895 fi
22896
22897 _ACEOF
22898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22899 exec 5>>config.log
22900 {
22901 echo
22902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22903 ## Running $as_me. ##
22904 _ASBOX
22905 $as_echo "$ac_log"
22906 } >&5
22907
22908 _ACEOF
22909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22910 #
22911 # INIT-COMMANDS
22912 #
22913 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22914
22915
22916 # The HP-UX ksh and POSIX shell print the target directory to stdout
22917 # if CDPATH is set.
22918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22919
22920 sed_quote_subst='$sed_quote_subst'
22921 double_quote_subst='$double_quote_subst'
22922 delay_variable_subst='$delay_variable_subst'
22923 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22924 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22925 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22926 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22927 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22928 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22929 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22930 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22931 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22932 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22933 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22934 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22935 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22936 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22937 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22938 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22939 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22940 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22941 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22942 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22943 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22944 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22945 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22946 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22947 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22948 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22949 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22950 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22951 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22952 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22953 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22954 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22955 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22956 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22957 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22958 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22959 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22960 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22961 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22962 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22963 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22964 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22965 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22966 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22967 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"`'
22968 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"`'
22969 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22970 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22971 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22972 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22973 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22974 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22975 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22976 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22977 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22978 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22979 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22980 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22981 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22982 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22983 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22984 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22985 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22986 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22987 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22988 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22989 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22990 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22991 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22992 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22993 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22994 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22995 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22996 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22997 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22998 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22999 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23000 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23001 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23002 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23003 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23004 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23005 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23006 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23007 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23008 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23009 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23010 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23011 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23012 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23013 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23014 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23015 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23016 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23017 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23018 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23019 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23020 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23021 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23022 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23023 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23024 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23025 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23026 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23027 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23028 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23029 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23030 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23031 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23032 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23033 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23034 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23035 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23036 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23037 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23038 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23039 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23040 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23041
23042 LTCC='$LTCC'
23043 LTCFLAGS='$LTCFLAGS'
23044 compiler='$compiler_DEFAULT'
23045
23046 # Quote evaled strings.
23047 for var in SED \
23048 GREP \
23049 EGREP \
23050 FGREP \
23051 LD \
23052 NM \
23053 LN_S \
23054 lt_SP2NL \
23055 lt_NL2SP \
23056 reload_flag \
23057 OBJDUMP \
23058 deplibs_check_method \
23059 file_magic_cmd \
23060 AR \
23061 AR_FLAGS \
23062 STRIP \
23063 RANLIB \
23064 CC \
23065 CFLAGS \
23066 compiler \
23067 lt_cv_sys_global_symbol_pipe \
23068 lt_cv_sys_global_symbol_to_cdecl \
23069 lt_cv_sys_global_symbol_to_c_name_address \
23070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23071 SHELL \
23072 ECHO \
23073 lt_prog_compiler_no_builtin_flag \
23074 lt_prog_compiler_wl \
23075 lt_prog_compiler_pic \
23076 lt_prog_compiler_static \
23077 lt_cv_prog_compiler_c_o \
23078 need_locks \
23079 DSYMUTIL \
23080 NMEDIT \
23081 LIPO \
23082 OTOOL \
23083 OTOOL64 \
23084 shrext_cmds \
23085 export_dynamic_flag_spec \
23086 whole_archive_flag_spec \
23087 compiler_needs_object \
23088 with_gnu_ld \
23089 allow_undefined_flag \
23090 no_undefined_flag \
23091 hardcode_libdir_flag_spec \
23092 hardcode_libdir_flag_spec_ld \
23093 hardcode_libdir_separator \
23094 fix_srcfile_path \
23095 exclude_expsyms \
23096 include_expsyms \
23097 file_list_spec \
23098 variables_saved_for_relink \
23099 libname_spec \
23100 library_names_spec \
23101 soname_spec \
23102 finish_eval \
23103 old_striplib \
23104 striplib; do
23105 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23106 *[\\\\\\\`\\"\\\$]*)
23107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23108 ;;
23109 *)
23110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23111 ;;
23112 esac
23113 done
23114
23115 # Double-quote double-evaled strings.
23116 for var in reload_cmds \
23117 old_postinstall_cmds \
23118 old_postuninstall_cmds \
23119 old_archive_cmds \
23120 extract_expsyms_cmds \
23121 old_archive_from_new_cmds \
23122 old_archive_from_expsyms_cmds \
23123 archive_cmds \
23124 archive_expsym_cmds \
23125 module_cmds \
23126 module_expsym_cmds \
23127 export_symbols_cmds \
23128 prelink_cmds \
23129 postinstall_cmds \
23130 postuninstall_cmds \
23131 finish_cmds \
23132 sys_lib_search_path_spec \
23133 sys_lib_dlsearch_path_spec; do
23134 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23135 *[\\\\\\\`\\"\\\$]*)
23136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23137 ;;
23138 *)
23139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23140 ;;
23141 esac
23142 done
23143
23144 # Fix-up fallback echo if it was mangled by the above quoting rules.
23145 case \$lt_ECHO in
23146 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23147 ;;
23148 esac
23149
23150 ac_aux_dir='$ac_aux_dir'
23151 xsi_shell='$xsi_shell'
23152 lt_shell_append='$lt_shell_append'
23153
23154 # See if we are running on zsh, and set the options which allow our
23155 # commands through without removal of \ escapes INIT.
23156 if test -n "\${ZSH_VERSION+set}" ; then
23157 setopt NO_GLOB_SUBST
23158 fi
23159
23160
23161 PACKAGE='$PACKAGE'
23162 VERSION='$VERSION'
23163 TIMESTAMP='$TIMESTAMP'
23164 RM='$RM'
23165 ofile='$ofile'
23166
23167
23168
23169
23170 _ACEOF
23171
23172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23173
23174 # Handling of arguments.
23175 for ac_config_target in $ac_config_targets
23176 do
23177 case $ac_config_target in
23178 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
23179 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23180 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23182 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23183 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
23184 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23185 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
23186 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
23187 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
23188 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
23189 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23190 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
23191 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
23192 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
23193 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
23194 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
23195 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
23196 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
23197 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
23198 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
23199 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
23200 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23201 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
23202 "rpm/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/fedora/Makefile" ;;
23203 "rpm/fedora/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl.spec" ;;
23204 "rpm/fedora/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl-kmod.spec" ;;
23205 "rpm/fedora/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/spl-dkms.spec" ;;
23206 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
23207 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
23208 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
23209 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
23210 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
23211
23212 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
23213 esac
23214 done
23215
23216
23217 # If the user did not use the arguments to specify the items to instantiate,
23218 # then the envvar interface is used. Set only those that are not.
23219 # We use the long form for the default assignment because of an extremely
23220 # bizarre bug on SunOS 4.1.3.
23221 if $ac_need_defaults; then
23222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23225 fi
23226
23227 # Have a temporary directory for convenience. Make it in the build tree
23228 # simply because there is no reason against having it here, and in addition,
23229 # creating and moving files from /tmp can sometimes cause problems.
23230 # Hook for its removal unless debugging.
23231 # Note that there is a small window in which the directory will not be cleaned:
23232 # after its creation but before its name has been assigned to `$tmp'.
23233 $debug ||
23234 {
23235 tmp=
23236 trap 'exit_status=$?
23237 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23238 ' 0
23239 trap 'as_fn_exit 1' 1 2 13 15
23240 }
23241 # Create a (secure) tmp directory for tmp files.
23242
23243 {
23244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23245 test -n "$tmp" && test -d "$tmp"
23246 } ||
23247 {
23248 tmp=./conf$$-$RANDOM
23249 (umask 077 && mkdir "$tmp")
23250 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23251
23252 # Set up the scripts for CONFIG_FILES section.
23253 # No need to generate them if there are no CONFIG_FILES.
23254 # This happens for instance with `./config.status config.h'.
23255 if test -n "$CONFIG_FILES"; then
23256
23257
23258 ac_cr=`echo X | tr X '\015'`
23259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23260 # But we know of no other shell where ac_cr would be empty at this
23261 # point, so we can use a bashism as a fallback.
23262 if test "x$ac_cr" = x; then
23263 eval ac_cr=\$\'\\r\'
23264 fi
23265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23267 ac_cs_awk_cr='\\r'
23268 else
23269 ac_cs_awk_cr=$ac_cr
23270 fi
23271
23272 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23273 _ACEOF
23274
23275
23276 {
23277 echo "cat >conf$$subs.awk <<_ACEOF" &&
23278 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23279 echo "_ACEOF"
23280 } >conf$$subs.sh ||
23281 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23282 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23283 ac_delim='%!_!# '
23284 for ac_last_try in false false false false false :; do
23285 . ./conf$$subs.sh ||
23286 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23287
23288 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23289 if test $ac_delim_n = $ac_delim_num; then
23290 break
23291 elif $ac_last_try; then
23292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23293 else
23294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23295 fi
23296 done
23297 rm -f conf$$subs.sh
23298
23299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23300 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23301 _ACEOF
23302 sed -n '
23303 h
23304 s/^/S["/; s/!.*/"]=/
23305 p
23306 g
23307 s/^[^!]*!//
23308 :repl
23309 t repl
23310 s/'"$ac_delim"'$//
23311 t delim
23312 :nl
23313 h
23314 s/\(.\{148\}\)..*/\1/
23315 t more1
23316 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23317 p
23318 n
23319 b repl
23320 :more1
23321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23322 p
23323 g
23324 s/.\{148\}//
23325 t nl
23326 :delim
23327 h
23328 s/\(.\{148\}\)..*/\1/
23329 t more2
23330 s/["\\]/\\&/g; s/^/"/; s/$/"/
23331 p
23332 b
23333 :more2
23334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23335 p
23336 g
23337 s/.\{148\}//
23338 t delim
23339 ' <conf$$subs.awk | sed '
23340 /^[^""]/{
23341 N
23342 s/\n//
23343 }
23344 ' >>$CONFIG_STATUS || ac_write_fail=1
23345 rm -f conf$$subs.awk
23346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23347 _ACAWK
23348 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23349 for (key in S) S_is_set[key] = 1
23350 FS = "\a"
23351
23352 }
23353 {
23354 line = $ 0
23355 nfields = split(line, field, "@")
23356 substed = 0
23357 len = length(field[1])
23358 for (i = 2; i < nfields; i++) {
23359 key = field[i]
23360 keylen = length(key)
23361 if (S_is_set[key]) {
23362 value = S[key]
23363 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23364 len += length(value) + length(field[++i])
23365 substed = 1
23366 } else
23367 len += 1 + keylen
23368 }
23369
23370 print line
23371 }
23372
23373 _ACAWK
23374 _ACEOF
23375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23378 else
23379 cat
23380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23381 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23382 _ACEOF
23383
23384 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23385 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23386 # trailing colons and then remove the whole line if VPATH becomes empty
23387 # (actually we leave an empty line to preserve line numbers).
23388 if test "x$srcdir" = x.; then
23389 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23390 h
23391 s///
23392 s/^/:/
23393 s/[ ]*$/:/
23394 s/:\$(srcdir):/:/g
23395 s/:\${srcdir}:/:/g
23396 s/:@srcdir@:/:/g
23397 s/^:*//
23398 s/:*$//
23399 x
23400 s/\(=[ ]*\).*/\1/
23401 G
23402 s/\n//
23403 s/^[^=]*=[ ]*$//
23404 }'
23405 fi
23406
23407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23408 fi # test -n "$CONFIG_FILES"
23409
23410 # Set up the scripts for CONFIG_HEADERS section.
23411 # No need to generate them if there are no CONFIG_HEADERS.
23412 # This happens for instance with `./config.status Makefile'.
23413 if test -n "$CONFIG_HEADERS"; then
23414 cat >"$tmp/defines.awk" <<\_ACAWK ||
23415 BEGIN {
23416 _ACEOF
23417
23418 # Transform confdefs.h into an awk script `defines.awk', embedded as
23419 # here-document in config.status, that substitutes the proper values into
23420 # config.h.in to produce config.h.
23421
23422 # Create a delimiter string that does not exist in confdefs.h, to ease
23423 # handling of long lines.
23424 ac_delim='%!_!# '
23425 for ac_last_try in false false :; do
23426 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23427 if test -z "$ac_t"; then
23428 break
23429 elif $ac_last_try; then
23430 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23431 else
23432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23433 fi
23434 done
23435
23436 # For the awk script, D is an array of macro values keyed by name,
23437 # likewise P contains macro parameters if any. Preserve backslash
23438 # newline sequences.
23439
23440 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23441 sed -n '
23442 s/.\{148\}/&'"$ac_delim"'/g
23443 t rset
23444 :rset
23445 s/^[ ]*#[ ]*define[ ][ ]*/ /
23446 t def
23447 d
23448 :def
23449 s/\\$//
23450 t bsnl
23451 s/["\\]/\\&/g
23452 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23453 D["\1"]=" \3"/p
23454 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23455 d
23456 :bsnl
23457 s/["\\]/\\&/g
23458 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23459 D["\1"]=" \3\\\\\\n"\\/p
23460 t cont
23461 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23462 t cont
23463 d
23464 :cont
23465 n
23466 s/.\{148\}/&'"$ac_delim"'/g
23467 t clear
23468 :clear
23469 s/\\$//
23470 t bsnlc
23471 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23472 d
23473 :bsnlc
23474 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23475 b cont
23476 ' <confdefs.h | sed '
23477 s/'"$ac_delim"'/"\\\
23478 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23479
23480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23481 for (key in D) D_is_set[key] = 1
23482 FS = "\a"
23483 }
23484 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23485 line = \$ 0
23486 split(line, arg, " ")
23487 if (arg[1] == "#") {
23488 defundef = arg[2]
23489 mac1 = arg[3]
23490 } else {
23491 defundef = substr(arg[1], 2)
23492 mac1 = arg[2]
23493 }
23494 split(mac1, mac2, "(") #)
23495 macro = mac2[1]
23496 prefix = substr(line, 1, index(line, defundef) - 1)
23497 if (D_is_set[macro]) {
23498 # Preserve the white space surrounding the "#".
23499 print prefix "define", macro P[macro] D[macro]
23500 next
23501 } else {
23502 # Replace #undef with comments. This is necessary, for example,
23503 # in the case of _POSIX_SOURCE, which is predefined and required
23504 # on some systems where configure will not decide to define it.
23505 if (defundef == "undef") {
23506 print "/*", prefix defundef, macro, "*/"
23507 next
23508 }
23509 }
23510 }
23511 { print }
23512 _ACAWK
23513 _ACEOF
23514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23515 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23516 fi # test -n "$CONFIG_HEADERS"
23517
23518
23519 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23520 shift
23521 for ac_tag
23522 do
23523 case $ac_tag in
23524 :[FHLC]) ac_mode=$ac_tag; continue;;
23525 esac
23526 case $ac_mode$ac_tag in
23527 :[FHL]*:*);;
23528 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
23529 :[FH]-) ac_tag=-:-;;
23530 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23531 esac
23532 ac_save_IFS=$IFS
23533 IFS=:
23534 set x $ac_tag
23535 IFS=$ac_save_IFS
23536 shift
23537 ac_file=$1
23538 shift
23539
23540 case $ac_mode in
23541 :L) ac_source=$1;;
23542 :[FH])
23543 ac_file_inputs=
23544 for ac_f
23545 do
23546 case $ac_f in
23547 -) ac_f="$tmp/stdin";;
23548 *) # Look for the file first in the build tree, then in the source tree
23549 # (if the path is not absolute). The absolute path cannot be DOS-style,
23550 # because $ac_f cannot contain `:'.
23551 test -f "$ac_f" ||
23552 case $ac_f in
23553 [\\/$]*) false;;
23554 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23555 esac ||
23556 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
23557 esac
23558 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23559 as_fn_append ac_file_inputs " '$ac_f'"
23560 done
23561
23562 # Let's still pretend it is `configure' which instantiates (i.e., don't
23563 # use $as_me), people would be surprised to read:
23564 # /* config.h. Generated by config.status. */
23565 configure_input='Generated from '`
23566 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23567 `' by configure.'
23568 if test x"$ac_file" != x-; then
23569 configure_input="$ac_file. $configure_input"
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23571 $as_echo "$as_me: creating $ac_file" >&6;}
23572 fi
23573 # Neutralize special characters interpreted by sed in replacement strings.
23574 case $configure_input in #(
23575 *\&* | *\|* | *\\* )
23576 ac_sed_conf_input=`$as_echo "$configure_input" |
23577 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23578 *) ac_sed_conf_input=$configure_input;;
23579 esac
23580
23581 case $ac_tag in
23582 *:-:* | *:-) cat >"$tmp/stdin" \
23583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23584 esac
23585 ;;
23586 esac
23587
23588 ac_dir=`$as_dirname -- "$ac_file" ||
23589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23590 X"$ac_file" : 'X\(//\)[^/]' \| \
23591 X"$ac_file" : 'X\(//\)$' \| \
23592 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23593 $as_echo X"$ac_file" |
23594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23595 s//\1/
23596 q
23597 }
23598 /^X\(\/\/\)[^/].*/{
23599 s//\1/
23600 q
23601 }
23602 /^X\(\/\/\)$/{
23603 s//\1/
23604 q
23605 }
23606 /^X\(\/\).*/{
23607 s//\1/
23608 q
23609 }
23610 s/.*/./; q'`
23611 as_dir="$ac_dir"; as_fn_mkdir_p
23612 ac_builddir=.
23613
23614 case "$ac_dir" in
23615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23616 *)
23617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23618 # A ".." for each directory in $ac_dir_suffix.
23619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23620 case $ac_top_builddir_sub in
23621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23623 esac ;;
23624 esac
23625 ac_abs_top_builddir=$ac_pwd
23626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23627 # for backward compatibility:
23628 ac_top_builddir=$ac_top_build_prefix
23629
23630 case $srcdir in
23631 .) # We are building in place.
23632 ac_srcdir=.
23633 ac_top_srcdir=$ac_top_builddir_sub
23634 ac_abs_top_srcdir=$ac_pwd ;;
23635 [\\/]* | ?:[\\/]* ) # Absolute name.
23636 ac_srcdir=$srcdir$ac_dir_suffix;
23637 ac_top_srcdir=$srcdir
23638 ac_abs_top_srcdir=$srcdir ;;
23639 *) # Relative name.
23640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23641 ac_top_srcdir=$ac_top_build_prefix$srcdir
23642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23643 esac
23644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23645
23646
23647 case $ac_mode in
23648 :F)
23649 #
23650 # CONFIG_FILE
23651 #
23652
23653 case $INSTALL in
23654 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23655 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23656 esac
23657 ac_MKDIR_P=$MKDIR_P
23658 case $MKDIR_P in
23659 [\\/$]* | ?:[\\/]* ) ;;
23660 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23661 esac
23662 _ACEOF
23663
23664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23665 # If the template does not know about datarootdir, expand it.
23666 # FIXME: This hack should be removed a few years after 2.60.
23667 ac_datarootdir_hack=; ac_datarootdir_seen=
23668 ac_sed_dataroot='
23669 /datarootdir/ {
23670 p
23671 q
23672 }
23673 /@datadir@/p
23674 /@docdir@/p
23675 /@infodir@/p
23676 /@localedir@/p
23677 /@mandir@/p'
23678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23679 *datarootdir*) ac_datarootdir_seen=yes;;
23680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23683 _ACEOF
23684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23685 ac_datarootdir_hack='
23686 s&@datadir@&$datadir&g
23687 s&@docdir@&$docdir&g
23688 s&@infodir@&$infodir&g
23689 s&@localedir@&$localedir&g
23690 s&@mandir@&$mandir&g
23691 s&\\\${datarootdir}&$datarootdir&g' ;;
23692 esac
23693 _ACEOF
23694
23695 # Neutralize VPATH when `$srcdir' = `.'.
23696 # Shell code in configure.ac might set extrasub.
23697 # FIXME: do we really want to maintain this feature?
23698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23699 ac_sed_extra="$ac_vpsub
23700 $extrasub
23701 _ACEOF
23702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23703 :t
23704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23705 s|@configure_input@|$ac_sed_conf_input|;t t
23706 s&@top_builddir@&$ac_top_builddir_sub&;t t
23707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23708 s&@srcdir@&$ac_srcdir&;t t
23709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23710 s&@top_srcdir@&$ac_top_srcdir&;t t
23711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23712 s&@builddir@&$ac_builddir&;t t
23713 s&@abs_builddir@&$ac_abs_builddir&;t t
23714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23715 s&@INSTALL@&$ac_INSTALL&;t t
23716 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23717 $ac_datarootdir_hack
23718 "
23719 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23720 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23721
23722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23723 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23726 which seems to be undefined. Please make sure it is defined" >&5
23727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23728 which seems to be undefined. Please make sure it is defined" >&2;}
23729
23730 rm -f "$tmp/stdin"
23731 case $ac_file in
23732 -) cat "$tmp/out" && rm -f "$tmp/out";;
23733 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23734 esac \
23735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23736 ;;
23737 :H)
23738 #
23739 # CONFIG_HEADER
23740 #
23741 if test x"$ac_file" != x-; then
23742 {
23743 $as_echo "/* $configure_input */" \
23744 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23745 } >"$tmp/config.h" \
23746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23747 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23750 else
23751 rm -f "$ac_file"
23752 mv "$tmp/config.h" "$ac_file" \
23753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23754 fi
23755 else
23756 $as_echo "/* $configure_input */" \
23757 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23758 || as_fn_error $? "could not create -" "$LINENO" 5
23759 fi
23760 # Compute "$ac_file"'s index in $config_headers.
23761 _am_arg="$ac_file"
23762 _am_stamp_count=1
23763 for _am_header in $config_headers :; do
23764 case $_am_header in
23765 $_am_arg | $_am_arg:* )
23766 break ;;
23767 * )
23768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23769 esac
23770 done
23771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23773 X"$_am_arg" : 'X\(//\)[^/]' \| \
23774 X"$_am_arg" : 'X\(//\)$' \| \
23775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23776 $as_echo X"$_am_arg" |
23777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23778 s//\1/
23779 q
23780 }
23781 /^X\(\/\/\)[^/].*/{
23782 s//\1/
23783 q
23784 }
23785 /^X\(\/\/\)$/{
23786 s//\1/
23787 q
23788 }
23789 /^X\(\/\).*/{
23790 s//\1/
23791 q
23792 }
23793 s/.*/./; q'`/stamp-h$_am_stamp_count
23794 ;;
23795
23796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23797 $as_echo "$as_me: executing $ac_file commands" >&6;}
23798 ;;
23799 esac
23800
23801
23802 case $ac_file$ac_mode in
23803 "spl_config.h":H)
23804 (mv spl_config.h spl_config.h.tmp &&
23805 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
23806 rm spl_config.h.tmp) || exit 1 ;;
23807 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23808 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23809 # are listed without --file. Let's play safe and only enable the eval
23810 # if we detect the quoting.
23811 case $CONFIG_FILES in
23812 *\'*) eval set x "$CONFIG_FILES" ;;
23813 *) set x $CONFIG_FILES ;;
23814 esac
23815 shift
23816 for mf
23817 do
23818 # Strip MF so we end up with the name of the file.
23819 mf=`echo "$mf" | sed -e 's/:.*$//'`
23820 # Check whether this is an Automake generated Makefile or not.
23821 # We used to match only the files named `Makefile.in', but
23822 # some people rename them; so instead we look at the file content.
23823 # Grep'ing the first line is not enough: some people post-process
23824 # each Makefile.in and add a new line on top of each file to say so.
23825 # Grep'ing the whole file is not good either: AIX grep has a line
23826 # limit of 2048, but all sed's we know have understand at least 4000.
23827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23828 dirpart=`$as_dirname -- "$mf" ||
23829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23830 X"$mf" : 'X\(//\)[^/]' \| \
23831 X"$mf" : 'X\(//\)$' \| \
23832 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23833 $as_echo X"$mf" |
23834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23835 s//\1/
23836 q
23837 }
23838 /^X\(\/\/\)[^/].*/{
23839 s//\1/
23840 q
23841 }
23842 /^X\(\/\/\)$/{
23843 s//\1/
23844 q
23845 }
23846 /^X\(\/\).*/{
23847 s//\1/
23848 q
23849 }
23850 s/.*/./; q'`
23851 else
23852 continue
23853 fi
23854 # Extract the definition of DEPDIR, am__include, and am__quote
23855 # from the Makefile without running `make'.
23856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23857 test -z "$DEPDIR" && continue
23858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23859 test -z "am__include" && continue
23860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23861 # When using ansi2knr, U may be empty or an underscore; expand it
23862 U=`sed -n 's/^U = //p' < "$mf"`
23863 # Find all dependency output files, they are included files with
23864 # $(DEPDIR) in their names. We invoke sed twice because it is the
23865 # simplest approach to changing $(DEPDIR) to its actual value in the
23866 # expansion.
23867 for file in `sed -n "
23868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23870 # Make sure the directory exists.
23871 test -f "$dirpart/$file" && continue
23872 fdir=`$as_dirname -- "$file" ||
23873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23874 X"$file" : 'X\(//\)[^/]' \| \
23875 X"$file" : 'X\(//\)$' \| \
23876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23877 $as_echo X"$file" |
23878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23879 s//\1/
23880 q
23881 }
23882 /^X\(\/\/\)[^/].*/{
23883 s//\1/
23884 q
23885 }
23886 /^X\(\/\/\)$/{
23887 s//\1/
23888 q
23889 }
23890 /^X\(\/\).*/{
23891 s//\1/
23892 q
23893 }
23894 s/.*/./; q'`
23895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23896 # echo "creating $dirpart/$file"
23897 echo '# dummy' > "$dirpart/$file"
23898 done
23899 done
23900 }
23901 ;;
23902 "libtool":C)
23903
23904 # See if we are running on zsh, and set the options which allow our
23905 # commands through without removal of \ escapes.
23906 if test -n "${ZSH_VERSION+set}" ; then
23907 setopt NO_GLOB_SUBST
23908 fi
23909
23910 cfgfile="${ofile}T"
23911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23912 $RM "$cfgfile"
23913
23914 cat <<_LT_EOF >> "$cfgfile"
23915 #! $SHELL
23916
23917 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23918 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23919 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23921 #
23922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23923 # 2006, 2007, 2008 Free Software Foundation, Inc.
23924 # Written by Gordon Matzigkeit, 1996
23925 #
23926 # This file is part of GNU Libtool.
23927 #
23928 # GNU Libtool is free software; you can redistribute it and/or
23929 # modify it under the terms of the GNU General Public License as
23930 # published by the Free Software Foundation; either version 2 of
23931 # the License, or (at your option) any later version.
23932 #
23933 # As a special exception to the GNU General Public License,
23934 # if you distribute this file as part of a program or library that
23935 # is built using GNU Libtool, you may include this file under the
23936 # same distribution terms that you use for the rest of that program.
23937 #
23938 # GNU Libtool is distributed in the hope that it will be useful,
23939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23941 # GNU General Public License for more details.
23942 #
23943 # You should have received a copy of the GNU General Public License
23944 # along with GNU Libtool; see the file COPYING. If not, a copy
23945 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23946 # obtained by writing to the Free Software Foundation, Inc.,
23947 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23948
23949
23950 # The names of the tagged configurations supported by this script.
23951 available_tags=""
23952
23953 # ### BEGIN LIBTOOL CONFIG
23954
23955 # Which release of libtool.m4 was used?
23956 macro_version=$macro_version
23957 macro_revision=$macro_revision
23958
23959 # Whether or not to build shared libraries.
23960 build_libtool_libs=$enable_shared
23961
23962 # Whether or not to build static libraries.
23963 build_old_libs=$enable_static
23964
23965 # What type of objects to build.
23966 pic_mode=$pic_mode
23967
23968 # Whether or not to optimize for fast installation.
23969 fast_install=$enable_fast_install
23970
23971 # The host system.
23972 host_alias=$host_alias
23973 host=$host
23974 host_os=$host_os
23975
23976 # The build system.
23977 build_alias=$build_alias
23978 build=$build
23979 build_os=$build_os
23980
23981 # A sed program that does not truncate output.
23982 SED=$lt_SED
23983
23984 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23985 Xsed="\$SED -e 1s/^X//"
23986
23987 # A grep program that handles long lines.
23988 GREP=$lt_GREP
23989
23990 # An ERE matcher.
23991 EGREP=$lt_EGREP
23992
23993 # A literal string matcher.
23994 FGREP=$lt_FGREP
23995
23996 # A BSD- or MS-compatible name lister.
23997 NM=$lt_NM
23998
23999 # Whether we need soft or hard links.
24000 LN_S=$lt_LN_S
24001
24002 # What is the maximum length of a command?
24003 max_cmd_len=$max_cmd_len
24004
24005 # Object file suffix (normally "o").
24006 objext=$ac_objext
24007
24008 # Executable file suffix (normally "").
24009 exeext=$exeext
24010
24011 # whether the shell understands "unset".
24012 lt_unset=$lt_unset
24013
24014 # turn spaces into newlines.
24015 SP2NL=$lt_lt_SP2NL
24016
24017 # turn newlines into spaces.
24018 NL2SP=$lt_lt_NL2SP
24019
24020 # How to create reloadable object files.
24021 reload_flag=$lt_reload_flag
24022 reload_cmds=$lt_reload_cmds
24023
24024 # An object symbol dumper.
24025 OBJDUMP=$lt_OBJDUMP
24026
24027 # Method to check whether dependent libraries are shared objects.
24028 deplibs_check_method=$lt_deplibs_check_method
24029
24030 # Command to use when deplibs_check_method == "file_magic".
24031 file_magic_cmd=$lt_file_magic_cmd
24032
24033 # The archiver.
24034 AR=$lt_AR
24035 AR_FLAGS=$lt_AR_FLAGS
24036
24037 # A symbol stripping program.
24038 STRIP=$lt_STRIP
24039
24040 # Commands used to install an old-style archive.
24041 RANLIB=$lt_RANLIB
24042 old_postinstall_cmds=$lt_old_postinstall_cmds
24043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24044
24045 # A C compiler.
24046 LTCC=$lt_CC
24047
24048 # LTCC compiler flags.
24049 LTCFLAGS=$lt_CFLAGS
24050
24051 # Take the output of nm and produce a listing of raw symbols and C names.
24052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24053
24054 # Transform the output of nm in a proper C declaration.
24055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24056
24057 # Transform the output of nm in a C name address pair.
24058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24059
24060 # Transform the output of nm in a C name address pair when lib prefix is needed.
24061 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24062
24063 # The name of the directory that contains temporary libtool files.
24064 objdir=$objdir
24065
24066 # Shell to use when invoking shell scripts.
24067 SHELL=$lt_SHELL
24068
24069 # An echo program that does not interpret backslashes.
24070 ECHO=$lt_ECHO
24071
24072 # Used to examine libraries when file_magic_cmd begins with "file".
24073 MAGIC_CMD=$MAGIC_CMD
24074
24075 # Must we lock files when doing compilation?
24076 need_locks=$lt_need_locks
24077
24078 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24079 DSYMUTIL=$lt_DSYMUTIL
24080
24081 # Tool to change global to local symbols on Mac OS X.
24082 NMEDIT=$lt_NMEDIT
24083
24084 # Tool to manipulate fat objects and archives on Mac OS X.
24085 LIPO=$lt_LIPO
24086
24087 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24088 OTOOL=$lt_OTOOL
24089
24090 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24091 OTOOL64=$lt_OTOOL64
24092
24093 # Old archive suffix (normally "a").
24094 libext=$libext
24095
24096 # Shared library suffix (normally ".so").
24097 shrext_cmds=$lt_shrext_cmds
24098
24099 # The commands to extract the exported symbol list from a shared archive.
24100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24101
24102 # Variables whose values should be saved in libtool wrapper scripts and
24103 # restored at link time.
24104 variables_saved_for_relink=$lt_variables_saved_for_relink
24105
24106 # Do we need the "lib" prefix for modules?
24107 need_lib_prefix=$need_lib_prefix
24108
24109 # Do we need a version for libraries?
24110 need_version=$need_version
24111
24112 # Library versioning type.
24113 version_type=$version_type
24114
24115 # Shared library runtime path variable.
24116 runpath_var=$runpath_var
24117
24118 # Shared library path variable.
24119 shlibpath_var=$shlibpath_var
24120
24121 # Is shlibpath searched before the hard-coded library search path?
24122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24123
24124 # Format of library name prefix.
24125 libname_spec=$lt_libname_spec
24126
24127 # List of archive names. First name is the real one, the rest are links.
24128 # The last name is the one that the linker finds with -lNAME
24129 library_names_spec=$lt_library_names_spec
24130
24131 # The coded name of the library, if different from the real name.
24132 soname_spec=$lt_soname_spec
24133
24134 # Command to use after installation of a shared archive.
24135 postinstall_cmds=$lt_postinstall_cmds
24136
24137 # Command to use after uninstallation of a shared archive.
24138 postuninstall_cmds=$lt_postuninstall_cmds
24139
24140 # Commands used to finish a libtool library installation in a directory.
24141 finish_cmds=$lt_finish_cmds
24142
24143 # As "finish_cmds", except a single script fragment to be evaled but
24144 # not shown.
24145 finish_eval=$lt_finish_eval
24146
24147 # Whether we should hardcode library paths into libraries.
24148 hardcode_into_libs=$hardcode_into_libs
24149
24150 # Compile-time system search path for libraries.
24151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24152
24153 # Run-time system search path for libraries.
24154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24155
24156 # Whether dlopen is supported.
24157 dlopen_support=$enable_dlopen
24158
24159 # Whether dlopen of programs is supported.
24160 dlopen_self=$enable_dlopen_self
24161
24162 # Whether dlopen of statically linked programs is supported.
24163 dlopen_self_static=$enable_dlopen_self_static
24164
24165 # Commands to strip libraries.
24166 old_striplib=$lt_old_striplib
24167 striplib=$lt_striplib
24168
24169
24170 # The linker used to build libraries.
24171 LD=$lt_LD
24172
24173 # Commands used to build an old-style archive.
24174 old_archive_cmds=$lt_old_archive_cmds
24175
24176 # A language specific compiler.
24177 CC=$lt_compiler
24178
24179 # Is the compiler the GNU compiler?
24180 with_gcc=$GCC
24181
24182 # Compiler flag to turn off builtin functions.
24183 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24184
24185 # How to pass a linker flag through the compiler.
24186 wl=$lt_lt_prog_compiler_wl
24187
24188 # Additional compiler flags for building library objects.
24189 pic_flag=$lt_lt_prog_compiler_pic
24190
24191 # Compiler flag to prevent dynamic linking.
24192 link_static_flag=$lt_lt_prog_compiler_static
24193
24194 # Does compiler simultaneously support -c and -o options?
24195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24196
24197 # Whether or not to add -lc for building shared libraries.
24198 build_libtool_need_lc=$archive_cmds_need_lc
24199
24200 # Whether or not to disallow shared libs when runtime libs are static.
24201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24202
24203 # Compiler flag to allow reflexive dlopens.
24204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24205
24206 # Compiler flag to generate shared objects directly from archives.
24207 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24208
24209 # Whether the compiler copes with passing no objects directly.
24210 compiler_needs_object=$lt_compiler_needs_object
24211
24212 # Create an old-style archive from a shared archive.
24213 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24214
24215 # Create a temporary old-style archive to link instead of a shared archive.
24216 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24217
24218 # Commands used to build a shared archive.
24219 archive_cmds=$lt_archive_cmds
24220 archive_expsym_cmds=$lt_archive_expsym_cmds
24221
24222 # Commands used to build a loadable module if different from building
24223 # a shared archive.
24224 module_cmds=$lt_module_cmds
24225 module_expsym_cmds=$lt_module_expsym_cmds
24226
24227 # Whether we are building with GNU ld or not.
24228 with_gnu_ld=$lt_with_gnu_ld
24229
24230 # Flag that allows shared libraries with undefined symbols to be built.
24231 allow_undefined_flag=$lt_allow_undefined_flag
24232
24233 # Flag that enforces no undefined symbols.
24234 no_undefined_flag=$lt_no_undefined_flag
24235
24236 # Flag to hardcode \$libdir into a binary during linking.
24237 # This must work even if \$libdir does not exist
24238 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24239
24240 # If ld is used when linking, flag to hardcode \$libdir into a binary
24241 # during linking. This must work even if \$libdir does not exist.
24242 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24243
24244 # Whether we need a single "-rpath" flag with a separated argument.
24245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24246
24247 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24248 # DIR into the resulting binary.
24249 hardcode_direct=$hardcode_direct
24250
24251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24252 # DIR into the resulting binary and the resulting library dependency is
24253 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24254 # library is relocated.
24255 hardcode_direct_absolute=$hardcode_direct_absolute
24256
24257 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24258 # into the resulting binary.
24259 hardcode_minus_L=$hardcode_minus_L
24260
24261 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24262 # into the resulting binary.
24263 hardcode_shlibpath_var=$hardcode_shlibpath_var
24264
24265 # Set to "yes" if building a shared library automatically hardcodes DIR
24266 # into the library and all subsequent libraries and executables linked
24267 # against it.
24268 hardcode_automatic=$hardcode_automatic
24269
24270 # Set to yes if linker adds runtime paths of dependent libraries
24271 # to runtime path list.
24272 inherit_rpath=$inherit_rpath
24273
24274 # Whether libtool must link a program against all its dependency libraries.
24275 link_all_deplibs=$link_all_deplibs
24276
24277 # Fix the shell variable \$srcfile for the compiler.
24278 fix_srcfile_path=$lt_fix_srcfile_path
24279
24280 # Set to "yes" if exported symbols are required.
24281 always_export_symbols=$always_export_symbols
24282
24283 # The commands to list exported symbols.
24284 export_symbols_cmds=$lt_export_symbols_cmds
24285
24286 # Symbols that should not be listed in the preloaded symbols.
24287 exclude_expsyms=$lt_exclude_expsyms
24288
24289 # Symbols that must always be exported.
24290 include_expsyms=$lt_include_expsyms
24291
24292 # Commands necessary for linking programs (against libraries) with templates.
24293 prelink_cmds=$lt_prelink_cmds
24294
24295 # Specify filename containing input files.
24296 file_list_spec=$lt_file_list_spec
24297
24298 # How to hardcode a shared library path into an executable.
24299 hardcode_action=$hardcode_action
24300
24301 # ### END LIBTOOL CONFIG
24302
24303 _LT_EOF
24304
24305 case $host_os in
24306 aix3*)
24307 cat <<\_LT_EOF >> "$cfgfile"
24308 # AIX sometimes has problems with the GCC collect2 program. For some
24309 # reason, if we set the COLLECT_NAMES environment variable, the problems
24310 # vanish in a puff of smoke.
24311 if test "X${COLLECT_NAMES+set}" != Xset; then
24312 COLLECT_NAMES=
24313 export COLLECT_NAMES
24314 fi
24315 _LT_EOF
24316 ;;
24317 esac
24318
24319
24320 ltmain="$ac_aux_dir/ltmain.sh"
24321
24322
24323 # We use sed instead of cat because bash on DJGPP gets confused if
24324 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24325 # text mode, it properly converts lines to CR/LF. This bash problem
24326 # is reportedly fixed, but why not run on old versions too?
24327 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24328 || (rm -f "$cfgfile"; exit 1)
24329
24330 case $xsi_shell in
24331 yes)
24332 cat << \_LT_EOF >> "$cfgfile"
24333
24334 # func_dirname file append nondir_replacement
24335 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24336 # otherwise set result to NONDIR_REPLACEMENT.
24337 func_dirname ()
24338 {
24339 case ${1} in
24340 */*) func_dirname_result="${1%/*}${2}" ;;
24341 * ) func_dirname_result="${3}" ;;
24342 esac
24343 }
24344
24345 # func_basename file
24346 func_basename ()
24347 {
24348 func_basename_result="${1##*/}"
24349 }
24350
24351 # func_dirname_and_basename file append nondir_replacement
24352 # perform func_basename and func_dirname in a single function
24353 # call:
24354 # dirname: Compute the dirname of FILE. If nonempty,
24355 # add APPEND to the result, otherwise set result
24356 # to NONDIR_REPLACEMENT.
24357 # value returned in "$func_dirname_result"
24358 # basename: Compute filename of FILE.
24359 # value retuned in "$func_basename_result"
24360 # Implementation must be kept synchronized with func_dirname
24361 # and func_basename. For efficiency, we do not delegate to
24362 # those functions but instead duplicate the functionality here.
24363 func_dirname_and_basename ()
24364 {
24365 case ${1} in
24366 */*) func_dirname_result="${1%/*}${2}" ;;
24367 * ) func_dirname_result="${3}" ;;
24368 esac
24369 func_basename_result="${1##*/}"
24370 }
24371
24372 # func_stripname prefix suffix name
24373 # strip PREFIX and SUFFIX off of NAME.
24374 # PREFIX and SUFFIX must not contain globbing or regex special
24375 # characters, hashes, percent signs, but SUFFIX may contain a leading
24376 # dot (in which case that matches only a dot).
24377 func_stripname ()
24378 {
24379 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24380 # positional parameters, so assign one to ordinary parameter first.
24381 func_stripname_result=${3}
24382 func_stripname_result=${func_stripname_result#"${1}"}
24383 func_stripname_result=${func_stripname_result%"${2}"}
24384 }
24385
24386 # func_opt_split
24387 func_opt_split ()
24388 {
24389 func_opt_split_opt=${1%%=*}
24390 func_opt_split_arg=${1#*=}
24391 }
24392
24393 # func_lo2o object
24394 func_lo2o ()
24395 {
24396 case ${1} in
24397 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24398 *) func_lo2o_result=${1} ;;
24399 esac
24400 }
24401
24402 # func_xform libobj-or-source
24403 func_xform ()
24404 {
24405 func_xform_result=${1%.*}.lo
24406 }
24407
24408 # func_arith arithmetic-term...
24409 func_arith ()
24410 {
24411 func_arith_result=$(( $* ))
24412 }
24413
24414 # func_len string
24415 # STRING may not start with a hyphen.
24416 func_len ()
24417 {
24418 func_len_result=${#1}
24419 }
24420
24421 _LT_EOF
24422 ;;
24423 *) # Bourne compatible functions.
24424 cat << \_LT_EOF >> "$cfgfile"
24425
24426 # func_dirname file append nondir_replacement
24427 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24428 # otherwise set result to NONDIR_REPLACEMENT.
24429 func_dirname ()
24430 {
24431 # Extract subdirectory from the argument.
24432 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24433 if test "X$func_dirname_result" = "X${1}"; then
24434 func_dirname_result="${3}"
24435 else
24436 func_dirname_result="$func_dirname_result${2}"
24437 fi
24438 }
24439
24440 # func_basename file
24441 func_basename ()
24442 {
24443 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24444 }
24445
24446
24447 # func_stripname prefix suffix name
24448 # strip PREFIX and SUFFIX off of NAME.
24449 # PREFIX and SUFFIX must not contain globbing or regex special
24450 # characters, hashes, percent signs, but SUFFIX may contain a leading
24451 # dot (in which case that matches only a dot).
24452 # func_strip_suffix prefix name
24453 func_stripname ()
24454 {
24455 case ${2} in
24456 .*) func_stripname_result=`$ECHO "X${3}" \
24457 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24458 *) func_stripname_result=`$ECHO "X${3}" \
24459 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24460 esac
24461 }
24462
24463 # sed scripts:
24464 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24465 my_sed_long_arg='1s/^-[^=]*=//'
24466
24467 # func_opt_split
24468 func_opt_split ()
24469 {
24470 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24471 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24472 }
24473
24474 # func_lo2o object
24475 func_lo2o ()
24476 {
24477 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24478 }
24479
24480 # func_xform libobj-or-source
24481 func_xform ()
24482 {
24483 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24484 }
24485
24486 # func_arith arithmetic-term...
24487 func_arith ()
24488 {
24489 func_arith_result=`expr "$@"`
24490 }
24491
24492 # func_len string
24493 # STRING may not start with a hyphen.
24494 func_len ()
24495 {
24496 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24497 }
24498
24499 _LT_EOF
24500 esac
24501
24502 case $lt_shell_append in
24503 yes)
24504 cat << \_LT_EOF >> "$cfgfile"
24505
24506 # func_append var value
24507 # Append VALUE to the end of shell variable VAR.
24508 func_append ()
24509 {
24510 eval "$1+=\$2"
24511 }
24512 _LT_EOF
24513 ;;
24514 *)
24515 cat << \_LT_EOF >> "$cfgfile"
24516
24517 # func_append var value
24518 # Append VALUE to the end of shell variable VAR.
24519 func_append ()
24520 {
24521 eval "$1=\$$1\$2"
24522 }
24523
24524 _LT_EOF
24525 ;;
24526 esac
24527
24528
24529 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24530 || (rm -f "$cfgfile"; exit 1)
24531
24532 mv -f "$cfgfile" "$ofile" ||
24533 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24534 chmod +x "$ofile"
24535
24536 ;;
24537
24538 esac
24539 done # for ac_tag
24540
24541
24542 as_fn_exit 0
24543 _ACEOF
24544 ac_clean_files=$ac_clean_files_save
24545
24546 test $ac_write_fail = 0 ||
24547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24548
24549
24550 # configure is writing to config.log, and then calls config.status.
24551 # config.status does its own redirection, appending to config.log.
24552 # Unfortunately, on DOS this fails, as config.log is still kept open
24553 # by configure, so config.status won't be able to write to it; its
24554 # output is simply discarded. So we exec the FD to /dev/null,
24555 # effectively closing config.log, so it can be properly (re)opened and
24556 # appended to by config.status. When coming back to configure, we
24557 # need to make the FD available again.
24558 if test "$no_create" != yes; then
24559 ac_cs_success=:
24560 ac_config_status_args=
24561 test "$silent" = yes &&
24562 ac_config_status_args="$ac_config_status_args --quiet"
24563 exec 5>/dev/null
24564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24565 exec 5>>config.log
24566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24567 # would make configure fail if this is the last instruction.
24568 $ac_cs_success || as_fn_exit 1
24569 fi
24570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24573 fi
24574