]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
7b93f564f5a7f6f84677c335a7b33d7451a923ee
[mirror_spl-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 CONFIG_KERNEL_FALSE
791 CONFIG_KERNEL_TRUE
792 CONFIG_USER_FALSE
793 CONFIG_USER_TRUE
794 DEBUG_CFLAGS
795 KERNELCPPFLAGS
796 KERNELMAKE_PARAMS
797 LINUX_SYMBOLS
798 LINUX_VERSION
799 LINUX_OBJ
800 LINUX
801 SPL_CONFIG
802 MAKEPKG_VERSION
803 MAKEPKG
804 HAVE_MAKEPKG
805 PACMAN_VERSION
806 PACMAN
807 HAVE_PACMAN
808 ALIEN_VERSION
809 ALIEN
810 HAVE_ALIEN
811 DPKGBUILD_VERSION
812 DPKGBUILD
813 HAVE_DPKGBUILD
814 DPKG_VERSION
815 DPKG
816 HAVE_DPKG
817 RPMBUILD_VERSION
818 RPMBUILD
819 HAVE_RPMBUILD
820 RPM_VERSION
821 RPM
822 HAVE_RPM
823 DEFAULT_PACKAGE
824 VENDOR
825 LICENSE
826 CPP
827 OTOOL64
828 OTOOL
829 LIPO
830 NMEDIT
831 DSYMUTIL
832 lt_ECHO
833 RANLIB
834 AR
835 OBJDUMP
836 LN_S
837 NM
838 ac_ct_DUMPBIN
839 DUMPBIN
840 LD
841 FGREP
842 EGREP
843 GREP
844 SED
845 LIBTOOL
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 AM_BACKSLASH
886 AM_DEFAULT_VERBOSITY
887 MAINT
888 MAINTAINER_MODE_FALSE
889 MAINTAINER_MODE_TRUE
890 target_os
891 target_vendor
892 target_cpu
893 target
894 host_os
895 host_vendor
896 host_cpu
897 host
898 build_os
899 build_vendor
900 build_cpu
901 build
902 SPL_META_LT_AGE
903 SPL_META_LT_REVISION
904 SPL_META_LT_CURRENT
905 SPL_META_AUTHOR
906 SPL_META_DATA
907 SPL_META_ALIAS
908 SPL_META_RELEASE
909 SPL_META_VERSION
910 SPL_META_NAME
911 target_alias
912 host_alias
913 build_alias
914 LIBS
915 ECHO_T
916 ECHO_N
917 ECHO_C
918 DEFS
919 mandir
920 localedir
921 libdir
922 psdir
923 pdfdir
924 dvidir
925 htmldir
926 infodir
927 docdir
928 oldincludedir
929 includedir
930 localstatedir
931 sharedstatedir
932 sysconfdir
933 datadir
934 datarootdir
935 libexecdir
936 sbindir
937 bindir
938 program_transform_name
939 prefix
940 exec_prefix
941 PACKAGE_BUGREPORT
942 PACKAGE_STRING
943 PACKAGE_VERSION
944 PACKAGE_TARNAME
945 PACKAGE_NAME
946 PATH_SEPARATOR
947 SHELL'
948 ac_subst_files=''
949 ac_user_opts='
950 enable_option_checking
951 enable_maintainer_mode
952 enable_silent_rules
953 enable_dependency_tracking
954 enable_shared
955 enable_static
956 with_pic
957 enable_fast_install
958 with_gnu_ld
959 enable_libtool_lock
960 with_config
961 with_linux
962 with_linux_obj
963 enable_debug
964 enable_debug_kmem
965 enable_debug_kmem_tracking
966 enable_atomic_spinlocks
967 '
968 ac_precious_vars='build_alias
969 host_alias
970 target_alias
971 CC
972 CFLAGS
973 LDFLAGS
974 LIBS
975 CPPFLAGS
976 CPP'
977
978
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1000
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1026
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1030 do
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1036 fi
1037
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1042
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045 case $ac_dashdash$ac_option in
1046 --)
1047 ac_dashdash=yes ;;
1048
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1053
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1058
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1065
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1068
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1073
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1080
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1097
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1102
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1107
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1124
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1133
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1137
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1144
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1149
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1155
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1162
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1167
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1172
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1179
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1184
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1191
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1196
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1200
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1204
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1208
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1217
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1222
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1229
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1236
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1253
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1258
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1263
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1267
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1273
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1284
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1289
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1294
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1301
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1306
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1309
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1312
1313 -with-* | --with-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1329
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335 { (exit 1); exit 1; }; }
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1339 *"
1340 "with_$ac_useropt"
1341 "*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
1346
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1350
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1357
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1364
1365 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1366 Try \`$0 --help' for more information." >&2
1367 { (exit 1); exit 1; }; }
1368 ;;
1369
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375 { (exit 1); exit 1; }; }
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1378
1379 *)
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385 ;;
1386
1387 esac
1388 done
1389
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1393 { (exit 1); exit 1; }; }
1394 fi
1395
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400 { (exit 1); exit 1; }; } ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 esac
1403 fi
1404
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1410 do
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1413 case $ac_val in
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1417 esac
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424 { (exit 1); exit 1; }; }
1425 done
1426
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1433
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1441 cross_compiling=yes
1442 fi
1443 fi
1444
1445 ac_tool_prefix=
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448 test "$silent" = yes && exec 6>/dev/null
1449
1450
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455 { (exit 1); exit 1; }; }
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458 { (exit 1); exit 1; }; }
1459
1460
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 s//\1/
1473 q
1474 }
1475 /^X\(\/\/\)[^/].*/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\/\)$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\).*/{
1484 s//\1/
1485 q
1486 }
1487 s/.*/./; q'`
1488 srcdir=$ac_confdir
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 srcdir=..
1491 fi
1492 else
1493 ac_srcdir_defaulted=no
1494 fi
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1498 { (exit 1); exit 1; }; }
1499 fi
1500 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501 ac_abs_confdir=`(
1502 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1503 { (exit 1); exit 1; }; }
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508 fi
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1521
1522 #
1523 # Report the --help message.
1524 #
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures this package to adapt to many kinds of systems.
1530
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536 Defaults for the options are specified in brackets.
1537
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1554
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1559
1560 For better control, use the options below.
1561
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1583
1584 cat <<\_ACEOF
1585
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590
1591 System types:
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1595 _ACEOF
1596 fi
1597
1598 if test -n "$ac_init_help"; then
1599
1600 cat <<\_ACEOF
1601
1602 Optional Features:
1603 --disable-option-checking ignore unrecognized --enable/--with options
1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing) to the casual installer
1608 --enable-silent-rules less verbose build output (undo: `make V=1')
1609 --disable-silent-rules verbose build output (undo: `make V=0')
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-debug Enable generic debug support [default=no]
1618 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1619 --enable-debug-kmem-tracking
1620 Enable detailed kmem tracking [default=no]
1621 --enable-atomic-spinlocks
1622 Atomic types use spinlocks [default=check]
1623
1624 Optional Packages:
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-pic try to use only PIC/non-PIC objects [default=use
1628 both]
1629 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1630 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1631 --with-linux=PATH Path to kernel source
1632 --with-linux-obj=PATH Path to kernel build objects
1633
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CPP C preprocessor
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 configure
1710 generated by GNU Autoconf 2.63
1711
1712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1713 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1718 fi
1719 cat >config.log <<_ACEOF
1720 This file contains any messages produced by compilers while
1721 running configure, to aid debugging if configure makes a mistake.
1722
1723 It was created by $as_me, which was
1724 generated by GNU Autoconf 2.63. Invocation command line was
1725
1726 $ $0 $@
1727
1728 _ACEOF
1729 exec 5>>config.log
1730 {
1731 cat <<_ASUNAME
1732 ## --------- ##
1733 ## Platform. ##
1734 ## --------- ##
1735
1736 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1741
1742 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1744
1745 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1748 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1749 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752
1753 _ASUNAME
1754
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 $as_echo "PATH: $as_dir"
1761 done
1762 IFS=$as_save_IFS
1763
1764 } >&5
1765
1766 cat >&5 <<_ACEOF
1767
1768
1769 ## ----------- ##
1770 ## Core tests. ##
1771 ## ----------- ##
1772
1773 _ACEOF
1774
1775
1776 # Keep a trace of the command line.
1777 # Strip out --no-create and --no-recursion so they do not pile up.
1778 # Strip out --silent because we don't want to record it for future runs.
1779 # Also quote any args containing shell meta-characters.
1780 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_configure_args=
1782 ac_configure_args0=
1783 ac_configure_args1=
1784 ac_must_keep_next=false
1785 for ac_pass in 1 2
1786 do
1787 for ac_arg
1788 do
1789 case $ac_arg in
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1793 continue ;;
1794 *\'*)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 esac
1797 case $ac_pass in
1798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1799 2)
1800 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1803 else
1804 case $ac_arg in
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1811 esac
1812 ;;
1813 -* ) ac_must_keep_next=true ;;
1814 esac
1815 fi
1816 ac_configure_args="$ac_configure_args '$ac_arg'"
1817 ;;
1818 esac
1819 done
1820 done
1821 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1822 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1823
1824 # When interrupted or exit'd, cleanup temporary files, and complete
1825 # config.log. We remove comments because anyway the quotes in there
1826 # would cause problems or look ugly.
1827 # WARNING: Use '\'' to represent an apostrophe within the trap.
1828 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1829 trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 cat <<\_ASBOX
1835 ## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##
1838 _ASBOX
1839 echo
1840 # The following way of writing the cache mishandles newlines in values,
1841 (
1842 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in #(
1845 *${as_nl}*)
1846 case $ac_var in #(
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1849 esac
1850 case $ac_var in #(
1851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1853 *) $as_unset $ac_var ;;
1854 esac ;;
1855 esac
1856 done
1857 (set) 2>&1 |
1858 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1859 *${as_nl}ac_space=\ *)
1860 sed -n \
1861 "s/'\''/'\''\\\\'\'''\''/g;
1862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1863 ;; #(
1864 *)
1865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 ;;
1867 esac |
1868 sort
1869 )
1870 echo
1871
1872 cat <<\_ASBOX
1873 ## ----------------- ##
1874 ## Output variables. ##
1875 ## ----------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_vars
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887
1888 if test -n "$ac_subst_files"; then
1889 cat <<\_ASBOX
1890 ## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##
1893 _ASBOX
1894 echo
1895 for ac_var in $ac_subst_files
1896 do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
1902 done | sort
1903 echo
1904 fi
1905
1906 if test -s confdefs.h; then
1907 cat <<\_ASBOX
1908 ## ----------- ##
1909 ## confdefs.h. ##
1910 ## ----------- ##
1911 _ASBOX
1912 echo
1913 cat confdefs.h
1914 echo
1915 fi
1916 test "$ac_signal" != 0 &&
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
1919 } >&5
1920 rm -f core *.core core.conftest.* &&
1921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1922 exit $exit_status
1923 ' 0
1924 for ac_signal in 1 2 13 15; do
1925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1926 done
1927 ac_signal=0
1928
1929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1930 rm -f -r conftest* confdefs.h
1931
1932 # Predefined preprocessor variables.
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_NAME "$PACKAGE_NAME"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_STRING "$PACKAGE_STRING"
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956 _ACEOF
1957
1958
1959 # Let the site file select an alternate cache file if it wants to.
1960 # Prefer an explicitly selected file to automatically selected ones.
1961 ac_site_file1=NONE
1962 ac_site_file2=NONE
1963 if test -n "$CONFIG_SITE"; then
1964 ac_site_file1=$CONFIG_SITE
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971 fi
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1973 do
1974 test "x$ac_site_file" = xNONE && continue
1975 if test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file"
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special
1985 # files actually), so we avoid doing that.
1986 if test -f "$cache_file"; then
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2047 esac
2048 fi
2049 done
2050 if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
2090 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2091 $as_echo_n "checking metadata... " >&6; }
2092
2093 META="$srcdir/META"
2094 _spl_ac_meta_got_file=no
2095 if test -f "$META"; then
2096 _spl_ac_meta_got_file=yes
2097
2098 SPL_META_NAME=`perl -n\
2099 -e "BEGIN { \\$key=shift @ARGV; }"\
2100 -e "next unless s/^\s*\\$key[:=]//i;"\
2101 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2102 -e "s/^\s+//;"\
2103 -e "s/\s+$//;"\
2104 -e "s/^(['\"])(.*)\1/\\$2/;"\
2105 -e "\\$val=\\$_;"\
2106 -e "END { print \\$val if defined \\$val; }"\
2107 '(?:NAME|PROJECT|PACKAGE)' $META`;
2108 if test -n "$SPL_META_NAME"; then
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define SPL_META_NAME "$SPL_META_NAME"
2112 _ACEOF
2113
2114
2115 fi
2116
2117 SPL_META_VERSION=`perl -n\
2118 -e "BEGIN { \\$key=shift @ARGV; }"\
2119 -e "next unless s/^\s*\\$key[:=]//i;"\
2120 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2121 -e "s/^\s+//;"\
2122 -e "s/\s+$//;"\
2123 -e "s/^(['\"])(.*)\1/\\$2/;"\
2124 -e "\\$val=\\$_;"\
2125 -e "END { print \\$val if defined \\$val; }"\
2126 'VERSION' $META`;
2127 if test -n "$SPL_META_VERSION"; then
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define SPL_META_VERSION "$SPL_META_VERSION"
2131 _ACEOF
2132
2133
2134 fi
2135
2136 SPL_META_RELEASE=`perl -n\
2137 -e "BEGIN { \\$key=shift @ARGV; }"\
2138 -e "next unless s/^\s*\\$key[:=]//i;"\
2139 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2140 -e "s/^\s+//;"\
2141 -e "s/\s+$//;"\
2142 -e "s/^(['\"])(.*)\1/\\$2/;"\
2143 -e "\\$val=\\$_;"\
2144 -e "END { print \\$val if defined \\$val; }"\
2145 'RELEASE' $META`;
2146 if test -n "$SPL_META_RELEASE"; then
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2150 _ACEOF
2151
2152
2153 fi
2154
2155 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2156 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2157 test -n "$SPL_META_RELEASE" &&
2158 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2162 _ACEOF
2163
2164
2165 fi
2166
2167 SPL_META_DATA=`perl -n\
2168 -e "BEGIN { \\$key=shift @ARGV; }"\
2169 -e "next unless s/^\s*\\$key[:=]//i;"\
2170 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2171 -e "s/^\s+//;"\
2172 -e "s/\s+$//;"\
2173 -e "s/^(['\"])(.*)\1/\\$2/;"\
2174 -e "\\$val=\\$_;"\
2175 -e "END { print \\$val if defined \\$val; }"\
2176 'DATE' $META`;
2177 if test -n "$SPL_META_DATA"; then
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define SPL_META_DATA "$SPL_META_DATA"
2181 _ACEOF
2182
2183
2184 fi
2185
2186 SPL_META_AUTHOR=`perl -n\
2187 -e "BEGIN { \\$key=shift @ARGV; }"\
2188 -e "next unless s/^\s*\\$key[:=]//i;"\
2189 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2190 -e "s/^\s+//;"\
2191 -e "s/\s+$//;"\
2192 -e "s/^(['\"])(.*)\1/\\$2/;"\
2193 -e "\\$val=\\$_;"\
2194 -e "END { print \\$val if defined \\$val; }"\
2195 'AUTHOR' $META`;
2196 if test -n "$SPL_META_AUTHOR"; then
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2200 _ACEOF
2201
2202
2203 fi
2204
2205
2206 SPL_META_LT_CURRENT=`perl -n\
2207 -e "BEGIN { \\$key=shift @ARGV; }"\
2208 -e "next unless s/^\s*\\$key[:=]//i;"\
2209 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2210 -e "s/^\s+//;"\
2211 -e "s/\s+$//;"\
2212 -e "s/^(['\"])(.*)\1/\\$2/;"\
2213 -e "\\$val=\\$_;"\
2214 -e "END { print \\$val if defined \\$val; }"\
2215 'LT_CURRENT' $META`;
2216 SPL_META_LT_REVISION=`perl -n\
2217 -e "BEGIN { \\$key=shift @ARGV; }"\
2218 -e "next unless s/^\s*\\$key[:=]//i;"\
2219 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2220 -e "s/^\s+//;"\
2221 -e "s/\s+$//;"\
2222 -e "s/^(['\"])(.*)\1/\\$2/;"\
2223 -e "\\$val=\\$_;"\
2224 -e "END { print \\$val if defined \\$val; }"\
2225 'LT_REVISION' $META`;
2226 SPL_META_LT_AGE=`perl -n\
2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2230 -e "s/^\s+//;"\
2231 -e "s/\s+$//;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2233 -e "\\$val=\\$_;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2235 'LT_AGE' $META`;
2236 if test -n "$SPL_META_LT_CURRENT" \
2237 -o -n "$SPL_META_LT_REVISION" \
2238 -o -n "$SPL_META_LT_AGE"; then
2239 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2240 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2241 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2255 _ACEOF
2256
2257
2258
2259
2260 fi
2261 fi
2262
2263 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2264 $as_echo "$_spl_ac_meta_got_file" >&6; }
2265
2266
2267 ac_aux_dir=
2268 for ac_dir in config "$srcdir"/config; do
2269 if test -f "$ac_dir/install-sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install-sh -c"
2272 break
2273 elif test -f "$ac_dir/install.sh"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/install.sh -c"
2276 break
2277 elif test -f "$ac_dir/shtool"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/shtool install -c"
2280 break
2281 fi
2282 done
2283 if test -z "$ac_aux_dir"; then
2284 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2285 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2286 { (exit 1); exit 1; }; }
2287 fi
2288
2289 # These three variables are undocumented and unsupported,
2290 # and are intended to be withdrawn in a future Autoconf release.
2291 # They can cause serious problems if a builder's source tree is in a directory
2292 # whose full name contains unusual characters.
2293 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2294 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2295 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296
2297
2298 # Make sure we can run config.sub.
2299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2300 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2301 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2302 { (exit 1); exit 1; }; }
2303
2304 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2305 $as_echo_n "checking build system type... " >&6; }
2306 if test "${ac_cv_build+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2308 else
2309 ac_build_alias=$build_alias
2310 test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312 test "x$ac_build_alias" = x &&
2313 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2314 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2315 { (exit 1); exit 1; }; }
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2318 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2319 { (exit 1); exit 1; }; }
2320
2321 fi
2322 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2325 *-*-*) ;;
2326 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2327 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2328 { (exit 1); exit 1; }; };;
2329 esac
2330 build=$ac_cv_build
2331 ac_save_IFS=$IFS; IFS='-'
2332 set x $ac_cv_build
2333 shift
2334 build_cpu=$1
2335 build_vendor=$2
2336 shift; shift
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2339 build_os=$*
2340 IFS=$ac_save_IFS
2341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if test "${ac_cv_host+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351 else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2354 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357
2358 fi
2359 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2360 $as_echo "$ac_cv_host" >&6; }
2361 case $ac_cv_host in
2362 *-*-*) ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2364 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2365 { (exit 1); exit 1; }; };;
2366 esac
2367 host=$ac_cv_host
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_host
2370 shift
2371 host_cpu=$1
2372 host_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 host_os=$*
2377 IFS=$ac_save_IFS
2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2379
2380
2381 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2382 $as_echo_n "checking target system type... " >&6; }
2383 if test "${ac_cv_target+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$target_alias" = x; then
2387 ac_cv_target=$ac_cv_host
2388 else
2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2391 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2392 { (exit 1); exit 1; }; }
2393 fi
2394
2395 fi
2396 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2397 $as_echo "$ac_cv_target" >&6; }
2398 case $ac_cv_target in
2399 *-*-*) ;;
2400 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2401 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2402 { (exit 1); exit 1; }; };;
2403 esac
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_target
2407 shift
2408 target_cpu=$1
2409 target_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 target_os=$*
2414 IFS=$ac_save_IFS
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2416
2417
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
2424
2425 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2427 # Check whether --enable-maintainer-mode was given.
2428 if test "${enable_maintainer_mode+set}" = set; then
2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2430 else
2431 USE_MAINTAINER_MODE=no
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2436 if test $USE_MAINTAINER_MODE = yes; then
2437 MAINTAINER_MODE_TRUE=
2438 MAINTAINER_MODE_FALSE='#'
2439 else
2440 MAINTAINER_MODE_TRUE='#'
2441 MAINTAINER_MODE_FALSE=
2442 fi
2443
2444 MAINT=$MAINTAINER_MODE_TRUE
2445
2446
2447 # Check whether --enable-silent-rules was given.
2448 if test "${enable_silent_rules+set}" = set; then
2449 enableval=$enable_silent_rules;
2450 fi
2451
2452 case $enable_silent_rules in
2453 yes) AM_DEFAULT_VERBOSITY=0;;
2454 no) AM_DEFAULT_VERBOSITY=1;;
2455 *) AM_DEFAULT_VERBOSITY=1;;
2456 esac
2457 AM_BACKSLASH='\'
2458
2459 am__api_version='1.11'
2460
2461 # Find a good install program. We prefer a C program (faster),
2462 # so one script is as good as another. But avoid the broken or
2463 # incompatible versions:
2464 # SysV /etc/install, /usr/sbin/install
2465 # SunOS /usr/etc/install
2466 # IRIX /sbin/install
2467 # AIX /bin/install
2468 # AmigaOS /C/install, which installs bootblocks on floppy discs
2469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472 # OS/2's system install, which has a completely different semantic
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 # Reject install programs that cannot install multiple files.
2475 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2477 if test -z "$INSTALL"; then
2478 if test "${ac_cv_path_install+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487 case $as_dir/ in
2488 ./ | .// | /cC/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2491 /usr/ucb/* ) ;;
2492 *)
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2502 :
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2506 :
2507 else
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2519 fi
2520 fi
2521 fi
2522 done
2523 done
2524 ;;
2525 esac
2526
2527 done
2528 IFS=$as_save_IFS
2529
2530 rm -rf conftest.one conftest.two conftest.dir
2531
2532 fi
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2541 fi
2542 fi
2543 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2544 $as_echo "$INSTALL" >&6; }
2545
2546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547 # It thinks the first close brace ends the variable substitution.
2548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2553
2554 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2555 $as_echo_n "checking whether build environment is sane... " >&6; }
2556 # Just in case
2557 sleep 1
2558 echo timestamp > conftest.file
2559 # Reject unsafe characters in $srcdir or the absolute working directory
2560 # name. Accept space and tab only in the latter.
2561 am_lf='
2562 '
2563 case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2566 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2567 { (exit 1); exit 1; }; };;
2568 esac
2569 case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2572 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2573 { (exit 1); exit 1; }; };;
2574 esac
2575
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t "$srcdir/configure" conftest.file`
2586 fi
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2600 fi
2601
2602 test "$2" = conftest.file
2603 )
2604 then
2605 # Ok.
2606 :
2607 else
2608 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 $as_echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2613 fi
2614 { $as_echo "$as_me:$LINENO: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2625
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629 if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2633 *)
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2636 fi
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 fi
2645
2646 if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2650 *)
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2653 fi
2654
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 fi
2699 if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2732 else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 STRIP=$ac_ct_STRIP
2747 fi
2748 else
2749 STRIP="$ac_cv_prog_STRIP"
2750 fi
2751
2752 fi
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2754
2755 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2792 fi
2793 fi
2794 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2796
2797 mkdir_p="$MKDIR_P"
2798 case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801 esac
2802
2803 for ac_prog in gawk mawk nawk awk
2804 do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 AWK=$ac_cv_prog_AWK
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2836 else
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 test -n "$AWK" && break
2843 done
2844
2845 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2861 *)
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2865 fi
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:$LINENO: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:$LINENO: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2874 fi
2875
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2879 am__leading_dot=.
2880 else
2881 am__leading_dot=_
2882 fi
2883 rmdir .tst 2>/dev/null
2884
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2892 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908 PACKAGE=$SPL_META_NAME
2909 VERSION=$SPL_META_VERSION
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2919 _ACEOF
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 # We need awk for the "check" target. The system "awk" is bad on
2938 # some platforms.
2939 # Always define AMTAR for backward compatibility.
2940
2941 AMTAR=${AMTAR-"${am_missing_run}tar"}
2942
2943 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2944
2945
2946
2947
2948
2949 ac_config_headers="$ac_config_headers spl_config.h"
2950
2951
2952 # Find a good install program. We prefer a C program (faster),
2953 # so one script is as good as another. But avoid the broken or
2954 # incompatible versions:
2955 # SysV /etc/install, /usr/sbin/install
2956 # SunOS /usr/etc/install
2957 # IRIX /sbin/install
2958 # AIX /bin/install
2959 # AmigaOS /C/install, which installs bootblocks on floppy discs
2960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2963 # OS/2's system install, which has a completely different semantic
2964 # ./install, which can be erroneously created by make from ./install.sh.
2965 # Reject install programs that cannot install multiple files.
2966 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 $as_echo_n "(cached) " >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2983 *)
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2993 :
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2997 :
2998 else
2999 rm -rf conftest.one conftest.two conftest.dir
3000 echo one > conftest.one
3001 echo two > conftest.two
3002 mkdir conftest.dir
3003 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3004 test -s conftest.one && test -s conftest.two &&
3005 test -s conftest.dir/conftest.one &&
3006 test -s conftest.dir/conftest.two
3007 then
3008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3009 break 3
3010 fi
3011 fi
3012 fi
3013 done
3014 done
3015 ;;
3016 esac
3017
3018 done
3019 IFS=$as_save_IFS
3020
3021 rm -rf conftest.one conftest.two conftest.dir
3022
3023 fi
3024 if test "${ac_cv_path_install+set}" = set; then
3025 INSTALL=$ac_cv_path_install
3026 else
3027 # As a last resort, use the slow shell script. Don't cache a
3028 # value for INSTALL within a source directory, because that will
3029 # break other packages using the cache if that directory is
3030 # removed, or if the value is a relative name.
3031 INSTALL=$ac_install_sh
3032 fi
3033 fi
3034 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3035 $as_echo "$INSTALL" >&6; }
3036
3037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3038 # It thinks the first close brace ends the variable substitution.
3039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3040
3041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3042
3043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092 set dummy gcc; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136 CC=$ac_ct_CC
3137 fi
3138 else
3139 CC="$ac_cv_prog_CC"
3140 fi
3141
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}cc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 fi
3183 if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185 set dummy cc; ac_word=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 ac_prog_rejected=no
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected=yes
3204 continue
3205 fi
3206 ac_cv_prog_CC="cc"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy $ac_cv_prog_CC
3217 shift
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3222 shift
3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3224 fi
3225 fi
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 for ac_prog in cl.exe
3242 do
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 test -n "$CC" && break
3281 done
3282 fi
3283 if test -z "$CC"; then
3284 ac_ct_CC=$CC
3285 for ac_prog in cl.exe
3286 do
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_CC="$ac_prog"
3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310 IFS=$as_save_IFS
3311
3312 fi
3313 fi
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 $as_echo "$ac_ct_CC" >&6; }
3318 else
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320 $as_echo "no" >&6; }
3321 fi
3322
3323
3324 test -n "$ac_ct_CC" && break
3325 done
3326
3327 if test "x$ac_ct_CC" = x; then
3328 CC=""
3329 else
3330 case $cross_compiling:$ac_tool_warned in
3331 yes:)
3332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3335 esac
3336 CC=$ac_ct_CC
3337 fi
3338 fi
3339
3340 fi
3341
3342
3343 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }; }
3350
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 { (ac_try="$ac_compiler --version >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -v >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try="$ac_compiler -V >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { (ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447 ;;
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 fi
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3463 * )
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470 ac_file=''
3471 fi
3472
3473 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&2;}
3485 { (exit 77); exit 77; }; }; }
3486 fi
3487
3488 ac_exeext=$ac_cv_exeext
3489
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495 # If not cross compiling, check that we can run a simple program.
3496 if test "$cross_compiling" != yes; then
3497 if { ac_try='./$ac_file'
3498 { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details." >&5
3518 $as_echo "$as_me: error: cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3522 fi
3523 fi
3524 fi
3525 { $as_echo "$as_me:$LINENO: result: yes" >&5
3526 $as_echo "yes" >&6; }
3527
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3536
3537 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { (ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details." >&5
3568 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }; }
3571 fi
3572
3573 rm -f conftest$ac_cv_exeext
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3576
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3579 ac_exeext=$EXEEXT
3580 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if test "${ac_cv_objext+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.o conftest.obj
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; then
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619 done
3620 else
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details." >&5
3628 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }; }
3631 fi
3632
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3634 fi
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3638 ac_objext=$OBJEXT
3639 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655 choke me
3656 #endif
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_compiler_gnu=yes
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_compiler_gnu=no
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3690
3691 fi
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696 else
3697 GCC=
3698 fi
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if test "${ac_cv_prog_cc_g+set}" = set; then
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_g=yes
3744 else
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 CFLAGS=""
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 :
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3822 ac_cv_prog_cc_g=yes
3823 else
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 fi
3832
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838 fi
3839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855 fi
3856 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <stdarg.h>
3870 #include <stdio.h>
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3877 char **p;
3878 int i;
3879 {
3880 return p[i];
3881 }
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3883 {
3884 char *s;
3885 va_list v;
3886 va_start (v,p);
3887 s = g (p, va_arg (v,int));
3888 va_end (v);
3889 return s;
3890 }
3891
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3903 #define FOO(x) 'x'
3904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3905
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3910 int argc;
3911 char **argv;
3912 int
3913 main ()
3914 {
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3922 do
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3943 else
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947
3948 fi
3949
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3952 done
3953 rm -f conftest.$ac_ext
3954 CC=$ac_save_CC
3955
3956 fi
3957 # AC_CACHE_VAL
3958 case "x$ac_cv_prog_cc_c89" in
3959 x)
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3962 xno)
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3965 *)
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969 esac
3970
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 DEPDIR="${am__leading_dot}deps"
3978
3979 ac_config_commands="$ac_config_commands depfiles"
3980
3981
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3984 am__doit:
3985 @echo this is the am__doit target
3986 .PHONY: am__doit
3987 END
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 am__include="#"
3992 am__quote=
3993 _am_result=none
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from `make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
3999 am__include=include
4000 am__quote=
4001 _am_result=GNU
4002 ;;
4003 esac
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4010 am__quote="\""
4011 _am_result=BSD
4012 ;;
4013 esac
4014 fi
4015
4016
4017 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4020
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then
4023 enableval=$enable_dependency_tracking;
4024 fi
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4028 AMDEPBACKSLASH='\'
4029 fi
4030 if test "x$enable_dependency_tracking" != xno; then
4031 AMDEP_TRUE=
4032 AMDEP_FALSE='#'
4033 else
4034 AMDEP_TRUE='#'
4035 AMDEP_FALSE=
4036 fi
4037
4038
4039
4040 depcc="$CC" am_compiler_list=
4041
4042 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 $as_echo_n "checking dependency style of $depcc... " >&6; }
4044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 esac
4074
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4087 # Solaris 8's {/usr,}/bin/sh.
4088 touch sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091
4092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle `-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4098 case $depmode in
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
4103 nosideeffect)
4104 # after this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
4110 fi
4111 ;;
4112 msvisualcpp | msvcmsys)
4113 # This compiler won't grok `-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
4119 none) break ;;
4120 esac
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
4143 done
4144
4145 cd ..
4146 rm -rf conftest.dir
4147 else
4148 am_cv_CC_dependencies_compiler_type=none
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155
4156 if
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_TRUE=
4160 am__fastdepCC_FALSE='#'
4161 else
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4164 fi
4165
4166
4167 case `pwd` in
4168 *\ * | *\ *)
4169 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4171 esac
4172
4173
4174
4175 macro_version='2.2.6b'
4176 macro_revision='1.3017'
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190 ltmain="$ac_aux_dir/ltmain.sh"
4191
4192 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if test "${ac_cv_path_SED+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4200 done
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 $as_unset ac_script || ac_script=
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in sed gsed; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 ac_count=`expr $ac_count + 1`
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_SED_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_SED"; then
4249 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4250 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4251 { (exit 1); exit 1; }; }
4252 fi
4253 else
4254 ac_cv_path_SED=$SED
4255 fi
4256
4257 fi
4258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4259 $as_echo "$ac_cv_path_SED" >&6; }
4260 SED="$ac_cv_path_SED"
4261 rm -f conftest.sed
4262
4263 test -z "$SED" && SED=sed
4264 Xsed="$SED -e 1s/^X//"
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4278 if test "${ac_cv_path_GREP+set}" = set; then
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -z "$GREP"; then
4282 ac_path_GREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in grep ggrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4293 # Check for GNU ac_path_GREP and select it if it is found.
4294 # Check for GNU $ac_path_GREP
4295 case `"$ac_path_GREP" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4298 *)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'GREP' >> "conftest.nl"
4307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_GREP="$ac_path_GREP"
4313 ac_path_GREP_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321 $ac_path_GREP_found && break 3
4322 done
4323 done
4324 done
4325 IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_GREP"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331 else
4332 ac_cv_path_GREP=$GREP
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4398 fi
4399 else
4400 ac_cv_path_EGREP=$EGREP
4401 fi
4402
4403 fi
4404 fi
4405 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4406 $as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4408
4409
4410 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4411 $as_echo_n "checking for fgrep... " >&6; }
4412 if test "${ac_cv_path_FGREP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4416 then ac_cv_path_FGREP="$GREP -F"
4417 else
4418 if test -z "$FGREP"; then
4419 ac_path_FGREP_found=false
4420 # Loop through the user's path and test for each of PROGNAME-LIST
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_prog in fgrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4430 # Check for GNU ac_path_FGREP and select it if it is found.
4431 # Check for GNU $ac_path_FGREP
4432 case `"$ac_path_FGREP" --version 2>&1` in
4433 *GNU*)
4434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4435 *)
4436 ac_count=0
4437 $as_echo_n 0123456789 >"conftest.in"
4438 while :
4439 do
4440 cat "conftest.in" "conftest.in" >"conftest.tmp"
4441 mv "conftest.tmp" "conftest.in"
4442 cp "conftest.in" "conftest.nl"
4443 $as_echo 'FGREP' >> "conftest.nl"
4444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 ac_count=`expr $ac_count + 1`
4447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_FGREP="$ac_path_FGREP"
4450 ac_path_FGREP_max=$ac_count
4451 fi
4452 # 10*(2^10) chars as input seems more than enough
4453 test $ac_count -gt 10 && break
4454 done
4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 esac
4457
4458 $ac_path_FGREP_found && break 3
4459 done
4460 done
4461 done
4462 IFS=$as_save_IFS
4463 if test -z "$ac_cv_path_FGREP"; then
4464 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4465 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4466 { (exit 1); exit 1; }; }
4467 fi
4468 else
4469 ac_cv_path_FGREP=$FGREP
4470 fi
4471
4472 fi
4473 fi
4474 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4475 $as_echo "$ac_cv_path_FGREP" >&6; }
4476 FGREP="$ac_cv_path_FGREP"
4477
4478
4479 test -z "$GREP" && GREP=grep
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 # Check whether --with-gnu-ld was given.
4500 if test "${with_gnu_ld+set}" = set; then
4501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4502 else
4503 with_gnu_ld=no
4504 fi
4505
4506 ac_prog=ld
4507 if test "$GCC" = yes; then
4508 # Check if gcc -print-prog-name=ld gives a path.
4509 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4510 $as_echo_n "checking for ld used by $CC... " >&6; }
4511 case $host in
4512 *-*-mingw*)
4513 # gcc leaves a trailing carriage return which upsets mingw
4514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515 *)
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4517 esac
4518 case $ac_prog in
4519 # Accept absolute paths.
4520 [\\/]* | ?:[\\/]*)
4521 re_direlt='/[^/][^/]*/\.\./'
4522 # Canonicalize the pathname of ld
4523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526 done
4527 test -z "$LD" && LD="$ac_prog"
4528 ;;
4529 "")
4530 # If it fails, then pretend we aren't using GCC.
4531 ac_prog=ld
4532 ;;
4533 *)
4534 # If it is relative, then search for the first ld in PATH.
4535 with_gnu_ld=unknown
4536 ;;
4537 esac
4538 elif test "$with_gnu_ld" = yes; then
4539 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4540 $as_echo_n "checking for GNU ld... " >&6; }
4541 else
4542 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4543 $as_echo_n "checking for non-GNU ld... " >&6; }
4544 fi
4545 if test "${lt_cv_path_LD+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -z "$LD"; then
4549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4550 for ac_dir in $PATH; do
4551 IFS="$lt_save_ifs"
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554 lt_cv_path_LD="$ac_dir/$ac_prog"
4555 # Check to see if the program is GNU ld. I'd rather use --version,
4556 # but apparently some variants of GNU ld only accept -v.
4557 # Break only if it was the GNU/non-GNU ld that we prefer.
4558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 test "$with_gnu_ld" != no && break
4561 ;;
4562 *)
4563 test "$with_gnu_ld" != yes && break
4564 ;;
4565 esac
4566 fi
4567 done
4568 IFS="$lt_save_ifs"
4569 else
4570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4571 fi
4572 fi
4573
4574 LD="$lt_cv_path_LD"
4575 if test -n "$LD"; then
4576 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4577 $as_echo "$LD" >&6; }
4578 else
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4583 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4584 { (exit 1); exit 1; }; }
4585 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4587 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4589 else
4590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4591 case `$LD -v 2>&1 </dev/null` in
4592 *GNU* | *'with BFD'*)
4593 lt_cv_prog_gnu_ld=yes
4594 ;;
4595 *)
4596 lt_cv_prog_gnu_ld=no
4597 ;;
4598 esac
4599 fi
4600 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4601 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4602 with_gnu_ld=$lt_cv_prog_gnu_ld
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4613 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4614 if test "${lt_cv_path_NM+set}" = set; then
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$NM"; then
4618 # Let the user override the test.
4619 lt_cv_path_NM="$NM"
4620 else
4621 lt_nm_to_check="${ac_tool_prefix}nm"
4622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4623 lt_nm_to_check="$lt_nm_to_check nm"
4624 fi
4625 for lt_tmp_nm in $lt_nm_to_check; do
4626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628 IFS="$lt_save_ifs"
4629 test -z "$ac_dir" && ac_dir=.
4630 tmp_nm="$ac_dir/$lt_tmp_nm"
4631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4632 # Check to see if the nm accepts a BSD-compat flag.
4633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4634 # nm: unknown option "B" ignored
4635 # Tru64's nm complains that /dev/null is an invalid object file
4636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4637 */dev/null* | *'Invalid file or object type'*)
4638 lt_cv_path_NM="$tmp_nm -B"
4639 break
4640 ;;
4641 *)
4642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643 */dev/null*)
4644 lt_cv_path_NM="$tmp_nm -p"
4645 break
4646 ;;
4647 *)
4648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649 continue # so that we can try to find one that supports BSD flags
4650 ;;
4651 esac
4652 ;;
4653 esac
4654 fi
4655 done
4656 IFS="$lt_save_ifs"
4657 done
4658 : ${lt_cv_path_NM=no}
4659 fi
4660 fi
4661 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4662 $as_echo "$lt_cv_path_NM" >&6; }
4663 if test "$lt_cv_path_NM" != "no"; then
4664 NM="$lt_cv_path_NM"
4665 else
4666 # Didn't find any BSD compatible name lister, look for dumpbin.
4667 if test -n "$ac_tool_prefix"; then
4668 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4669 do
4670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$DUMPBIN"; then
4678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 DUMPBIN=$ac_cv_prog_DUMPBIN
4698 if test -n "$DUMPBIN"; then
4699 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4700 $as_echo "$DUMPBIN" >&6; }
4701 else
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706
4707 test -n "$DUMPBIN" && break
4708 done
4709 fi
4710 if test -z "$DUMPBIN"; then
4711 ac_ct_DUMPBIN=$DUMPBIN
4712 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713 do
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$ac_ct_DUMPBIN"; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4742 if test -n "$ac_ct_DUMPBIN"; then
4743 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4744 $as_echo "$ac_ct_DUMPBIN" >&6; }
4745 else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 test -n "$ac_ct_DUMPBIN" && break
4752 done
4753
4754 if test "x$ac_ct_DUMPBIN" = x; then
4755 DUMPBIN=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 DUMPBIN=$ac_ct_DUMPBIN
4764 fi
4765 fi
4766
4767
4768 if test "$DUMPBIN" != ":"; then
4769 NM="$DUMPBIN"
4770 fi
4771 fi
4772 test -z "$NM" && NM=nm
4773
4774
4775
4776
4777
4778
4779 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4781 if test "${lt_cv_nm_interface+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783 else
4784 lt_cv_nm_interface="BSD nm"
4785 echo "int some_variable = 0;" > conftest.$ac_ext
4786 (eval echo "\"\$as_me:4786: $ac_compile\"" >&5)
4787 (eval "$ac_compile" 2>conftest.err)
4788 cat conftest.err >&5
4789 (eval echo "\"\$as_me:4789: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:4792: output\"" >&5)
4793 cat conftest.out >&5
4794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4795 lt_cv_nm_interface="MS dumpbin"
4796 fi
4797 rm -f conftest*
4798 fi
4799 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4800 $as_echo "$lt_cv_nm_interface" >&6; }
4801
4802 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4803 $as_echo_n "checking whether ln -s works... " >&6; }
4804 LN_S=$as_ln_s
4805 if test "$LN_S" = "ln -s"; then
4806 { $as_echo "$as_me:$LINENO: result: yes" >&5
4807 $as_echo "yes" >&6; }
4808 else
4809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4810 $as_echo "no, using $LN_S" >&6; }
4811 fi
4812
4813 # find the maximum length of command line arguments
4814 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4816 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818 else
4819 i=0
4820 teststring="ABCD"
4821
4822 case $build_os in
4823 msdosdjgpp*)
4824 # On DJGPP, this test can blow up pretty badly due to problems in libc
4825 # (any single argument exceeding 2000 bytes causes a buffer overrun
4826 # during glob expansion). Even if it were fixed, the result of this
4827 # check would be larger than it should be.
4828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4829 ;;
4830
4831 gnu*)
4832 # Under GNU Hurd, this test is not required because there is
4833 # no limit to the length of command line arguments.
4834 # Libtool will interpret -1 as no limit whatsoever
4835 lt_cv_sys_max_cmd_len=-1;
4836 ;;
4837
4838 cygwin* | mingw* | cegcc*)
4839 # On Win9x/ME, this test blows up -- it succeeds, but takes
4840 # about 5 minutes as the teststring grows exponentially.
4841 # Worse, since 9x/ME are not pre-emptively multitasking,
4842 # you end up with a "frozen" computer, even though with patience
4843 # the test eventually succeeds (with a max line length of 256k).
4844 # Instead, let's just punt: use the minimum linelength reported by
4845 # all of the supported platforms: 8192 (on NT/2K/XP).
4846 lt_cv_sys_max_cmd_len=8192;
4847 ;;
4848
4849 amigaos*)
4850 # On AmigaOS with pdksh, this test takes hours, literally.
4851 # So we just punt and use a minimum line length of 8192.
4852 lt_cv_sys_max_cmd_len=8192;
4853 ;;
4854
4855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4856 # This has been around since 386BSD, at least. Likely further.
4857 if test -x /sbin/sysctl; then
4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859 elif test -x /usr/sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861 else
4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4863 fi
4864 # And add a safety zone
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4867 ;;
4868
4869 interix*)
4870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871 lt_cv_sys_max_cmd_len=196608
4872 ;;
4873
4874 osf*)
4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877 # nice to cause kernel panics so lets avoid the loop below.
4878 # First set a reasonable default.
4879 lt_cv_sys_max_cmd_len=16384
4880 #
4881 if test -x /sbin/sysconfig; then
4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4884 esac
4885 fi
4886 ;;
4887 sco3.2v5*)
4888 lt_cv_sys_max_cmd_len=102400
4889 ;;
4890 sysv5* | sco5v6* | sysv4.2uw2*)
4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892 if test -n "$kargmax"; then
4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 else
4895 lt_cv_sys_max_cmd_len=32768
4896 fi
4897 ;;
4898 *)
4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900 if test -n "$lt_cv_sys_max_cmd_len"; then
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 else
4904 # Make teststring a little bigger before we do anything with it.
4905 # a 1K string should be a reasonable start.
4906 for i in 1 2 3 4 5 6 7 8 ; do
4907 teststring=$teststring$teststring
4908 done
4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910 # If test is not a shell built-in, we'll probably end up computing a
4911 # maximum length that is only half of the actual maximum length, but
4912 # we can't tell.
4913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4914 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4915 test $i != 17 # 1/2 MB should be enough
4916 do
4917 i=`expr $i + 1`
4918 teststring=$teststring$teststring
4919 done
4920 # Only check the string length outside the loop.
4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4922 teststring=
4923 # Add a significant safety factor because C++ compilers can tack on
4924 # massive amounts of additional arguments before passing them to the
4925 # linker. It appears as though 1/2 is a usable value.
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4927 fi
4928 ;;
4929 esac
4930
4931 fi
4932
4933 if test -n $lt_cv_sys_max_cmd_len ; then
4934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4935 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4936 else
4937 { $as_echo "$as_me:$LINENO: result: none" >&5
4938 $as_echo "none" >&6; }
4939 fi
4940 max_cmd_len=$lt_cv_sys_max_cmd_len
4941
4942
4943
4944
4945
4946
4947 : ${CP="cp -f"}
4948 : ${MV="mv -f"}
4949 : ${RM="rm -f"}
4950
4951 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4952 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4953 # Try some XSI features
4954 xsi_shell=no
4955 ( _lt_dummy="a/b/c"
4956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4957 = c,a/b,, \
4958 && eval 'test $(( 1 + 1 )) -eq 2 \
4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4960 && xsi_shell=yes
4961 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4962 $as_echo "$xsi_shell" >&6; }
4963
4964
4965 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4966 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4967 lt_shell_append=no
4968 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4969 >/dev/null 2>&1 \
4970 && lt_shell_append=yes
4971 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4972 $as_echo "$lt_shell_append" >&6; }
4973
4974
4975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4976 lt_unset=unset
4977 else
4978 lt_unset=false
4979 fi
4980
4981
4982
4983
4984
4985 # test EBCDIC or ASCII
4986 case `echo X|tr X '\101'` in
4987 A) # ASCII based system
4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4989 lt_SP2NL='tr \040 \012'
4990 lt_NL2SP='tr \015\012 \040\040'
4991 ;;
4992 *) # EBCDIC based system
4993 lt_SP2NL='tr \100 \n'
4994 lt_NL2SP='tr \r\n \100\100'
4995 ;;
4996 esac
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5007 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5008 if test "${lt_cv_ld_reload_flag+set}" = set; then
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_ld_reload_flag='-r'
5012 fi
5013 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5014 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5015 reload_flag=$lt_cv_ld_reload_flag
5016 case $reload_flag in
5017 "" | " "*) ;;
5018 *) reload_flag=" $reload_flag" ;;
5019 esac
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 case $host_os in
5022 darwin*)
5023 if test "$GCC" = yes; then
5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5025 else
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 fi
5028 ;;
5029 esac
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$OBJDUMP"; then
5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 OBJDUMP=$ac_cv_prog_OBJDUMP
5068 if test -n "$OBJDUMP"; then
5069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5070 $as_echo "$OBJDUMP" >&6; }
5071 else
5072 { $as_echo "$as_me:$LINENO: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_OBJDUMP"; then
5079 ac_ct_OBJDUMP=$OBJDUMP
5080 # Extract the first word of "objdump", so it can be a program name with args.
5081 set dummy objdump; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$ac_ct_OBJDUMP"; then
5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108 if test -n "$ac_ct_OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5110 $as_echo "$ac_ct_OBJDUMP" >&6; }
5111 else
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116 if test "x$ac_ct_OBJDUMP" = x; then
5117 OBJDUMP="false"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125 OBJDUMP=$ac_ct_OBJDUMP
5126 fi
5127 else
5128 OBJDUMP="$ac_cv_prog_OBJDUMP"
5129 fi
5130
5131 test -z "$OBJDUMP" && OBJDUMP=objdump
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5142 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5143 if test "${lt_cv_deplibs_check_method+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5145 else
5146 lt_cv_file_magic_cmd='$MAGIC_CMD'
5147 lt_cv_file_magic_test_file=
5148 lt_cv_deplibs_check_method='unknown'
5149 # Need to set the preceding variable on all platforms that support
5150 # interlibrary dependencies.
5151 # 'none' -- dependencies not supported.
5152 # `unknown' -- same as none, but documents that we really don't know.
5153 # 'pass_all' -- all dependencies passed with no checks.
5154 # 'test_compile' -- check by making test program.
5155 # 'file_magic [[regex]]' -- check by looking for files in library path
5156 # which responds to the $file_magic_cmd with a given extended regex.
5157 # If you have `file' or equivalent on your system and you're not sure
5158 # whether `pass_all' will *always* work, you probably want this one.
5159
5160 case $host_os in
5161 aix[4-9]*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 beos*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 bsdi[45]*)
5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5171 lt_cv_file_magic_cmd='/usr/bin/file -L'
5172 lt_cv_file_magic_test_file=/shlib/libc.so
5173 ;;
5174
5175 cygwin*)
5176 # func_win32_libid is a shell function defined in ltmain.sh
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5179 ;;
5180
5181 mingw* | pw32*)
5182 # Base MSYS/MinGW do not provide the 'file' command needed by
5183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5184 # unless we find 'file', for example because we are cross-compiling.
5185 if ( file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 else
5189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5190 lt_cv_file_magic_cmd='$OBJDUMP -f'
5191 fi
5192 ;;
5193
5194 cegcc)
5195 # use the weaker test based on 'objdump'. See mingw*.
5196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5197 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 ;;
5199
5200 darwin* | rhapsody*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204 freebsd* | dragonfly*)
5205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206 case $host_cpu in
5207 i*86 )
5208 # Not sure whether the presence of OpenBSD here was a mistake.
5209 # Let's accept both of them until this is cleared up.
5210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5211 lt_cv_file_magic_cmd=/usr/bin/file
5212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5213 ;;
5214 esac
5215 else
5216 lt_cv_deplibs_check_method=pass_all
5217 fi
5218 ;;
5219
5220 gnu*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 hpux10.20* | hpux11*)
5225 lt_cv_file_magic_cmd=/usr/bin/file
5226 case $host_cpu in
5227 ia64*)
5228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230 ;;
5231 hppa*64*)
5232 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]'
5233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5234 ;;
5235 *)
5236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5238 ;;
5239 esac
5240 ;;
5241
5242 interix[3-9]*)
5243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5245 ;;
5246
5247 irix5* | irix6* | nonstopux*)
5248 case $LD in
5249 *-32|*"-32 ") libmagic=32-bit;;
5250 *-n32|*"-n32 ") libmagic=N32;;
5251 *-64|*"-64 ") libmagic=64-bit;;
5252 *) libmagic=never-match;;
5253 esac
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 # This must be Linux ELF.
5258 linux* | k*bsd*-gnu)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 netbsd*)
5263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5265 else
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5267 fi
5268 ;;
5269
5270 newos6*)
5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5274 ;;
5275
5276 *nto* | *qnx*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 openbsd*)
5281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5283 else
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5285 fi
5286 ;;
5287
5288 osf3* | osf4* | osf5*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 rdos*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 solaris*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304 sysv4 | sysv4.3*)
5305 case $host_vendor in
5306 motorola)
5307 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]'
5308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5309 ;;
5310 ncr)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313 sequent)
5314 lt_cv_file_magic_cmd='/bin/file'
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5316 ;;
5317 sni)
5318 lt_cv_file_magic_cmd='/bin/file'
5319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5320 lt_cv_file_magic_test_file=/lib/libc.so
5321 ;;
5322 siemens)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 pc)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328 esac
5329 ;;
5330
5331 tpf*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334 esac
5335
5336 fi
5337 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5339 file_magic_cmd=$lt_cv_file_magic_cmd
5340 deplibs_check_method=$lt_cv_deplibs_check_method
5341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}ar; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_AR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$AR"; then
5363 ac_cv_prog_AR="$AR" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AR="${ac_tool_prefix}ar"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 AR=$ac_cv_prog_AR
5383 if test -n "$AR"; then
5384 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5385 $as_echo "$AR" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_AR"; then
5394 ac_ct_AR=$AR
5395 # Extract the first word of "ar", so it can be a program name with args.
5396 set dummy ar; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_AR"; then
5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AR="ar"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423 if test -n "$ac_ct_AR"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5425 $as_echo "$ac_ct_AR" >&6; }
5426 else
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431 if test "x$ac_ct_AR" = x; then
5432 AR="false"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 AR=$ac_ct_AR
5441 fi
5442 else
5443 AR="$ac_cv_prog_AR"
5444 fi
5445
5446 test -z "$AR" && AR=ar
5447 test -z "$AR_FLAGS" && AR_FLAGS=cru
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_STRIP+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5491 else
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 fi
5498 if test -z "$ac_cv_prog_STRIP"; then
5499 ac_ct_STRIP=$STRIP
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5531 else
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536 if test "x$ac_ct_STRIP" = x; then
5537 STRIP=":"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 STRIP=$ac_ct_STRIP
5546 fi
5547 else
5548 STRIP="$ac_cv_prog_STRIP"
5549 fi
5550
5551 test -z "$STRIP" && STRIP=:
5552
5553
5554
5555
5556
5557
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_RANLIB+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$RANLIB"; then
5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 RANLIB=$ac_cv_prog_RANLIB
5587 if test -n "$RANLIB"; then
5588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5589 $as_echo "$RANLIB" >&6; }
5590 else
5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 fi
5597 if test -z "$ac_cv_prog_RANLIB"; then
5598 ac_ct_RANLIB=$RANLIB
5599 # Extract the first word of "ranlib", so it can be a program name with args.
5600 set dummy ranlib; ac_word=$2
5601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$ac_ct_RANLIB"; then
5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627 if test -n "$ac_ct_RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5629 $as_echo "$ac_ct_RANLIB" >&6; }
5630 else
5631 { $as_echo "$as_me:$LINENO: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635 if test "x$ac_ct_RANLIB" = x; then
5636 RANLIB=":"
5637 else
5638 case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644 RANLIB=$ac_ct_RANLIB
5645 fi
5646 else
5647 RANLIB="$ac_cv_prog_RANLIB"
5648 fi
5649
5650 test -z "$RANLIB" && RANLIB=:
5651
5652
5653
5654
5655
5656
5657 # Determine commands to create old-style static archives.
5658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659 old_postinstall_cmds='chmod 644 $oldlib'
5660 old_postuninstall_cmds=
5661
5662 if test -n "$RANLIB"; then
5663 case $host_os in
5664 openbsd*)
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5666 ;;
5667 *)
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5669 ;;
5670 esac
5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5672 fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # If no C compiler was specified, use CC.
5708 LTCC=${LTCC-"$CC"}
5709
5710 # If no C compiler flags were specified, use CFLAGS.
5711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5712
5713 # Allow CC to be a program name with arguments.
5714 compiler=$CC
5715
5716
5717 # Check for command to grab the raw symbol name followed by C symbol from nm.
5718 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5721 $as_echo_n "(cached) " >&6
5722 else
5723
5724 # These are sane defaults that work on at least a few old systems.
5725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5726
5727 # Character class describing NM global symbol codes.
5728 symcode='[BCDEGRST]'
5729
5730 # Regexp to match symbols that can be accessed directly from C.
5731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5732
5733 # Define system-specific variables.
5734 case $host_os in
5735 aix*)
5736 symcode='[BCDT]'
5737 ;;
5738 cygwin* | mingw* | pw32* | cegcc*)
5739 symcode='[ABCDGISTW]'
5740 ;;
5741 hpux*)
5742 if test "$host_cpu" = ia64; then
5743 symcode='[ABCDEGRST]'
5744 fi
5745 ;;
5746 irix* | nonstopux*)
5747 symcode='[BCDEGRST]'
5748 ;;
5749 osf*)
5750 symcode='[BCDEGQRST]'
5751 ;;
5752 solaris*)
5753 symcode='[BDRT]'
5754 ;;
5755 sco3.2v5*)
5756 symcode='[DT]'
5757 ;;
5758 sysv4.2uw2*)
5759 symcode='[DT]'
5760 ;;
5761 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5762 symcode='[ABDT]'
5763 ;;
5764 sysv4)
5765 symcode='[DFNSTU]'
5766 ;;
5767 esac
5768
5769 # If we're using GNU nm, then use its standard symbol codes.
5770 case `$NM -V 2>&1` in
5771 *GNU* | *'with BFD'*)
5772 symcode='[ABCDGIRSTW]' ;;
5773 esac
5774
5775 # Transform an extracted symbol line into a proper C declaration.
5776 # Some systems (esp. on ia64) link data and code symbols differently,
5777 # so use this general approach.
5778 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5779
5780 # Transform an extracted symbol line into symbol name and symbol address
5781 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5782 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'"
5783
5784 # Handle CRLF in mingw tool chain
5785 opt_cr=
5786 case $build_os in
5787 mingw*)
5788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5789 ;;
5790 esac
5791
5792 # Try without a prefix underscore, then with it.
5793 for ac_symprfx in "" "_"; do
5794
5795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5796 symxfrm="\\1 $ac_symprfx\\2 \\2"
5797
5798 # Write the raw and C identifiers.
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800 # Fake it for dumpbin and say T for any non-static function
5801 # and D for any global variable.
5802 # Also find C++ and __fastcall symbols from MSVC++,
5803 # which start with @ or ?.
5804 lt_cv_sys_global_symbol_pipe="$AWK '"\
5805 " {last_section=section; section=\$ 3};"\
5806 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5807 " \$ 0!~/External *\|/{next};"\
5808 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5809 " {if(hide[section]) next};"\
5810 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5811 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5812 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5813 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5814 " ' prfx=^$ac_symprfx"
5815 else
5816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5817 fi
5818
5819 # Check to see that the pipe works correctly.
5820 pipe_works=no
5821
5822 rm -f conftest*
5823 cat > conftest.$ac_ext <<_LT_EOF
5824 #ifdef __cplusplus
5825 extern "C" {
5826 #endif
5827 char nm_test_var;
5828 void nm_test_func(void);
5829 void nm_test_func(void){}
5830 #ifdef __cplusplus
5831 }
5832 #endif
5833 int main(){nm_test_var='a';nm_test_func();return(0);}
5834 _LT_EOF
5835
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5838 ac_status=$?
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; then
5841 # Now try to grab the symbols.
5842 nlist=conftest.nm
5843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5845 ac_status=$?
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && test -s "$nlist"; then
5848 # Try sorting and uniquifying the output.
5849 if sort "$nlist" | uniq > "$nlist"T; then
5850 mv -f "$nlist"T "$nlist"
5851 else
5852 rm -f "$nlist"T
5853 fi
5854
5855 # Make sure that we snagged all the symbols we need.
5856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5858 cat <<_LT_EOF > conftest.$ac_ext
5859 #ifdef __cplusplus
5860 extern "C" {
5861 #endif
5862
5863 _LT_EOF
5864 # Now generate the symbol file.
5865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5866
5867 cat <<_LT_EOF >> conftest.$ac_ext
5868
5869 /* The mapping between symbol names and symbols. */
5870 const struct {
5871 const char *name;
5872 void *address;
5873 }
5874 lt__PROGRAM__LTX_preloaded_symbols[] =
5875 {
5876 { "@PROGRAM@", (void *) 0 },
5877 _LT_EOF
5878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5879 cat <<\_LT_EOF >> conftest.$ac_ext
5880 {0, (void *) 0}
5881 };
5882
5883 /* This works around a problem in FreeBSD linker */
5884 #ifdef FREEBSD_WORKAROUND
5885 static const void *lt_preloaded_setup() {
5886 return lt__PROGRAM__LTX_preloaded_symbols;
5887 }
5888 #endif
5889
5890 #ifdef __cplusplus
5891 }
5892 #endif
5893 _LT_EOF
5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5902 ac_status=$?
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905 pipe_works=yes
5906 fi
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5909 else
5910 echo "cannot find nm_test_func in $nlist" >&5
5911 fi
5912 else
5913 echo "cannot find nm_test_var in $nlist" >&5
5914 fi
5915 else
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5917 fi
5918 else
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5921 fi
5922 rm -rf conftest* conftst*
5923
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5926 break
5927 else
5928 lt_cv_sys_global_symbol_pipe=
5929 fi
5930 done
5931
5932 fi
5933
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5936 fi
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 { $as_echo "$as_me:$LINENO: result: failed" >&5
5939 $as_echo "failed" >&6; }
5940 else
5941 { $as_echo "$as_me:$LINENO: result: ok" >&5
5942 $as_echo "ok" >&6; }
5943 fi
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 # Check whether --enable-libtool-lock was given.
5968 if test "${enable_libtool_lock+set}" = set; then
5969 enableval=$enable_libtool_lock;
5970 fi
5971
5972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5973
5974 # Some flags need to be propagated to the compiler or linker for good
5975 # libtool support.
5976 case $host in
5977 ia64-*-hpux*)
5978 # Find out which ABI we are using.
5979 echo 'int i;' > conftest.$ac_ext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; then
5985 case `/usr/bin/file conftest.$ac_objext` in
5986 *ELF-32*)
5987 HPUX_IA64_MODE="32"
5988 ;;
5989 *ELF-64*)
5990 HPUX_IA64_MODE="64"
5991 ;;
5992 esac
5993 fi
5994 rm -rf conftest*
5995 ;;
5996 *-*-irix6*)
5997 # Find out which ABI we are using.
5998 echo '#line 5998 "configure"' > conftest.$ac_ext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; then
6004 if test "$lt_cv_prog_gnu_ld" = yes; then
6005 case `/usr/bin/file conftest.$ac_objext` in
6006 *32-bit*)
6007 LD="${LD-ld} -melf32bsmip"
6008 ;;
6009 *N32*)
6010 LD="${LD-ld} -melf32bmipn32"
6011 ;;
6012 *64-bit*)
6013 LD="${LD-ld} -melf64bmip"
6014 ;;
6015 esac
6016 else
6017 case `/usr/bin/file conftest.$ac_objext` in
6018 *32-bit*)
6019 LD="${LD-ld} -32"
6020 ;;
6021 *N32*)
6022 LD="${LD-ld} -n32"
6023 ;;
6024 *64-bit*)
6025 LD="${LD-ld} -64"
6026 ;;
6027 esac
6028 fi
6029 fi
6030 rm -rf conftest*
6031 ;;
6032
6033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6035 # Find out which ABI we are using.
6036 echo 'int i;' > conftest.$ac_ext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; then
6042 case `/usr/bin/file conftest.o` in
6043 *32-bit*)
6044 case $host in
6045 x86_64-*kfreebsd*-gnu)
6046 LD="${LD-ld} -m elf_i386_fbsd"
6047 ;;
6048 x86_64-*linux*)
6049 LD="${LD-ld} -m elf_i386"
6050 ;;
6051 ppc64-*linux*|powerpc64-*linux*)
6052 LD="${LD-ld} -m elf32ppclinux"
6053 ;;
6054 s390x-*linux*)
6055 LD="${LD-ld} -m elf_s390"
6056 ;;
6057 sparc64-*linux*)
6058 LD="${LD-ld} -m elf32_sparc"
6059 ;;
6060 esac
6061 ;;
6062 *64-bit*)
6063 case $host in
6064 x86_64-*kfreebsd*-gnu)
6065 LD="${LD-ld} -m elf_x86_64_fbsd"
6066 ;;
6067 x86_64-*linux*)
6068 LD="${LD-ld} -m elf_x86_64"
6069 ;;
6070 ppc*-*linux*|powerpc*-*linux*)
6071 LD="${LD-ld} -m elf64ppc"
6072 ;;
6073 s390*-*linux*|s390*-*tpf*)
6074 LD="${LD-ld} -m elf64_s390"
6075 ;;
6076 sparc*-*linux*)
6077 LD="${LD-ld} -m elf64_sparc"
6078 ;;
6079 esac
6080 ;;
6081 esac
6082 fi
6083 rm -rf conftest*
6084 ;;
6085
6086 *-*-sco3.2v5*)
6087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6088 SAVE_CFLAGS="$CFLAGS"
6089 CFLAGS="$CFLAGS -belf"
6090 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6091 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6092 if test "${lt_cv_cc_needs_belf+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 ac_ext=c
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 int
6109 main ()
6110 {
6111
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123 $as_echo "$ac_try_echo") >&5
6124 (eval "$ac_link") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest$ac_exeext && {
6134 test "$cross_compiling" = yes ||
6135 $as_test_x conftest$ac_exeext
6136 }; then
6137 lt_cv_cc_needs_belf=yes
6138 else
6139 $as_echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 lt_cv_cc_needs_belf=no
6143 fi
6144
6145 rm -rf conftest.dSYM
6146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6147 conftest$ac_exeext conftest.$ac_ext
6148 ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154 fi
6155 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6156 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6159 CFLAGS="$SAVE_CFLAGS"
6160 fi
6161 ;;
6162 sparc*-*solaris*)
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; then
6170 case `/usr/bin/file conftest.o` in
6171 *64-bit*)
6172 case $lt_cv_prog_gnu_ld in
6173 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6174 *)
6175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6176 LD="${LD-ld} -64"
6177 fi
6178 ;;
6179 esac
6180 ;;
6181 esac
6182 fi
6183 rm -rf conftest*
6184 ;;
6185 esac
6186
6187 need_locks="$enable_libtool_lock"
6188
6189
6190 case $host_os in
6191 rhapsody* | darwin*)
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$DSYMUTIL"; then
6201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6221 if test -n "$DSYMUTIL"; then
6222 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6223 $as_echo "$DSYMUTIL" >&6; }
6224 else
6225 { $as_echo "$as_me:$LINENO: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_DSYMUTIL"; then
6232 ac_ct_DSYMUTIL=$DSYMUTIL
6233 # Extract the first word of "dsymutil", so it can be a program name with args.
6234 set dummy dsymutil; ac_word=$2
6235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_DSYMUTIL"; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6261 if test -n "$ac_ct_DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6264 else
6265 { $as_echo "$as_me:$LINENO: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_DSYMUTIL" = x; then
6270 DSYMUTIL=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 DSYMUTIL=$ac_ct_DSYMUTIL
6279 fi
6280 else
6281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6282 fi
6283
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$NMEDIT"; then
6293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 NMEDIT=$ac_cv_prog_NMEDIT
6313 if test -n "$NMEDIT"; then
6314 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6315 $as_echo "$NMEDIT" >&6; }
6316 else
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_NMEDIT"; then
6324 ac_ct_NMEDIT=$NMEDIT
6325 # Extract the first word of "nmedit", so it can be a program name with args.
6326 set dummy nmedit; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_NMEDIT"; then
6333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6353 if test -n "$ac_ct_NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6355 $as_echo "$ac_ct_NMEDIT" >&6; }
6356 else
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361 if test "x$ac_ct_NMEDIT" = x; then
6362 NMEDIT=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 NMEDIT=$ac_ct_NMEDIT
6371 fi
6372 else
6373 NMEDIT="$ac_cv_prog_NMEDIT"
6374 fi
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_LIPO+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 LIPO=$ac_cv_prog_LIPO
6405 if test -n "$LIPO"; then
6406 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6407 $as_echo "$LIPO" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_LIPO"; then
6416 ac_ct_LIPO=$LIPO
6417 # Extract the first word of "lipo", so it can be a program name with args.
6418 set dummy lipo; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_LIPO"; then
6425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_LIPO="lipo"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6445 if test -n "$ac_ct_LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6447 $as_echo "$ac_ct_LIPO" >&6; }
6448 else
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_LIPO" = x; then
6454 LIPO=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 LIPO=$ac_ct_LIPO
6463 fi
6464 else
6465 LIPO="$ac_cv_prog_LIPO"
6466 fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}otool; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_OTOOL+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$OTOOL"; then
6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 OTOOL=$ac_cv_prog_OTOOL
6497 if test -n "$OTOOL"; then
6498 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6499 $as_echo "$OTOOL" >&6; }
6500 else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_OTOOL"; then
6508 ac_ct_OTOOL=$OTOOL
6509 # Extract the first word of "otool", so it can be a program name with args.
6510 set dummy otool; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_OTOOL"; then
6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_OTOOL="otool"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6537 if test -n "$ac_ct_OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6539 $as_echo "$ac_ct_OTOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_OTOOL" = x; then
6546 OTOOL=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 OTOOL=$ac_ct_OTOOL
6555 fi
6556 else
6557 OTOOL="$ac_cv_prog_OTOOL"
6558 fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$OTOOL64"; then
6569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OTOOL64=$ac_cv_prog_OTOOL64
6589 if test -n "$OTOOL64"; then
6590 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6591 $as_echo "$OTOOL64" >&6; }
6592 else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OTOOL64"; then
6600 ac_ct_OTOOL64=$OTOOL64
6601 # Extract the first word of "otool64", so it can be a program name with args.
6602 set dummy otool64; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_OTOOL64"; then
6609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL64="otool64"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6629 if test -n "$ac_ct_OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6631 $as_echo "$ac_ct_OTOOL64" >&6; }
6632 else
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_OTOOL64" = x; then
6638 OTOOL64=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 OTOOL64=$ac_ct_OTOOL64
6647 fi
6648 else
6649 OTOOL64="$ac_cv_prog_OTOOL64"
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6679 $as_echo_n "checking for -single_module linker flag... " >&6; }
6680 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6682 else
6683 lt_cv_apple_cc_single_mod=no
6684 if test -z "${LT_MULTI_MODULE}"; then
6685 # By default we will add the -single_module flag. You can override
6686 # by either setting the environment variable LT_MULTI_MODULE
6687 # non-empty at configure time, or by adding -multi_module to the
6688 # link flags.
6689 rm -rf libconftest.dylib*
6690 echo "int foo(void){return 1;}" > conftest.c
6691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6692 -dynamiclib -Wl,-single_module conftest.c" >&5
6693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6695 _lt_result=$?
6696 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6697 lt_cv_apple_cc_single_mod=yes
6698 else
6699 cat conftest.err >&5
6700 fi
6701 rm -rf libconftest.dylib*
6702 rm -f conftest.*
6703 fi
6704 fi
6705 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6706 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6707 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6708 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6709 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6711 else
6712 lt_cv_ld_exported_symbols_list=no
6713 save_LDFLAGS=$LDFLAGS
6714 echo "_main" > conftest.sym
6715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722
6723 int
6724 main ()
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (ac_try="$ac_link"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739 (eval "$ac_link") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext && {
6749 test "$cross_compiling" = yes ||
6750 $as_test_x conftest$ac_exeext
6751 }; then
6752 lt_cv_ld_exported_symbols_list=yes
6753 else
6754 $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 lt_cv_ld_exported_symbols_list=no
6758 fi
6759
6760 rm -rf conftest.dSYM
6761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6762 conftest$ac_exeext conftest.$ac_ext
6763 LDFLAGS="$save_LDFLAGS"
6764
6765 fi
6766 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6767 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6768 case $host_os in
6769 rhapsody* | darwin1.[012])
6770 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6771 darwin1.*)
6772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6773 darwin*) # darwin 5.x on
6774 # if running on 10.5 or later, the deployment target defaults
6775 # to the OS version, if on x86, and 10.4, the deployment
6776 # target defaults to 10.4. Don't you love it?
6777 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6778 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6779 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6780 10.[012]*)
6781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6782 10.*)
6783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784 esac
6785 ;;
6786 esac
6787 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6788 _lt_dar_single_mod='$single_module'
6789 fi
6790 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6791 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6792 else
6793 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6794 fi
6795 if test "$DSYMUTIL" != ":"; then
6796 _lt_dsymutil='~$DSYMUTIL $lib || :'
6797 else
6798 _lt_dsymutil=
6799 fi
6800 ;;
6801 esac
6802
6803 ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6810 # On Suns, sometimes $CPP names a directory.
6811 if test -n "$CPP" && test -d "$CPP"; then
6812 CPP=
6813 fi
6814 if test -z "$CPP"; then
6815 if test "${ac_cv_prog_CPP+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 # Double quotes because CPP needs to be expanded
6819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820 do
6821 ac_preproc_ok=false
6822 for ac_c_preproc_warn_flag in '' yes
6823 do
6824 # Use a header file that comes with gcc, so configuring glibc
6825 # with a fresh cross-compiler works.
6826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 # <limits.h> exists even on freestanding compilers.
6828 # On the NeXT, cc -E runs the code through the compiler's parser,
6829 # not just through cpp. "Syntax error" is here to catch this case.
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #ifdef __STDC__
6837 # include <limits.h>
6838 #else
6839 # include <assert.h>
6840 #endif
6841 Syntax error
6842 _ACEOF
6843 if { (ac_try="$ac_cpp conftest.$ac_ext"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev/null && {
6857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 }; then
6860 :
6861 else
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 # Broken: fails on valid input.
6866 continue
6867 fi
6868
6869 rm -f conftest.err conftest.$ac_ext
6870
6871 # OK, works on sane cases. Now check whether nonexistent headers
6872 # can be detected and how.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <ac_nonexistent.h>
6880 _ACEOF
6881 if { (ac_try="$ac_cpp conftest.$ac_ext"
6882 case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } >/dev/null && {
6895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 }; then
6898 # Broken: success on invalid input.
6899 continue
6900 else
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 # Passes both tests.
6905 ac_preproc_ok=:
6906 break
6907 fi
6908
6909 rm -f conftest.err conftest.$ac_ext
6910
6911 done
6912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913 rm -f conftest.err conftest.$ac_ext
6914 if $ac_preproc_ok; then
6915 break
6916 fi
6917
6918 done
6919 ac_cv_prog_CPP=$CPP
6920
6921 fi
6922 CPP=$ac_cv_prog_CPP
6923 else
6924 ac_cv_prog_CPP=$CPP
6925 fi
6926 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6927 $as_echo "$CPP" >&6; }
6928 ac_preproc_ok=false
6929 for ac_c_preproc_warn_flag in '' yes
6930 do
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 #ifdef __STDC__
6944 # include <limits.h>
6945 #else
6946 # include <assert.h>
6947 #endif
6948 Syntax error
6949 _ACEOF
6950 if { (ac_try="$ac_cpp conftest.$ac_ext"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 }; then
6967 :
6968 else
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 # Broken: fails on valid input.
6973 continue
6974 fi
6975
6976 rm -f conftest.err conftest.$ac_ext
6977
6978 # OK, works on sane cases. Now check whether nonexistent headers
6979 # can be detected and how.
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <ac_nonexistent.h>
6987 _ACEOF
6988 if { (ac_try="$ac_cpp conftest.$ac_ext"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 }; then
7005 # Broken: success on invalid input.
7006 continue
7007 else
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 # Passes both tests.
7012 ac_preproc_ok=:
7013 break
7014 fi
7015
7016 rm -f conftest.err conftest.$ac_ext
7017
7018 done
7019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020 rm -f conftest.err conftest.$ac_ext
7021 if $ac_preproc_ok; then
7022 :
7023 else
7024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7027 See \`config.log' for more details." >&5
7028 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." >&2;}
7030 { (exit 1); exit 1; }; }; }
7031 fi
7032
7033 ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039
7040 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7041 $as_echo_n "checking for ANSI C header files... " >&6; }
7042 if test "${ac_cv_header_stdc+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <stdlib.h>
7052 #include <stdarg.h>
7053 #include <string.h>
7054 #include <float.h>
7055
7056 int
7057 main ()
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071 $as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_stdc=yes
7083 else
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_cv_header_stdc=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <string.h>
7101
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev/null 2>&1; then
7105 :
7106 else
7107 ac_cv_header_stdc=no
7108 fi
7109 rm -f conftest*
7110
7111 fi
7112
7113 if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <stdlib.h>
7122
7123 _ACEOF
7124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev/null 2>&1; then
7126 :
7127 else
7128 ac_cv_header_stdc=no
7129 fi
7130 rm -f conftest*
7131
7132 fi
7133
7134 if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7137 :
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <ctype.h>
7146 #include <stdlib.h>
7147 #if ((' ' & 0x0FF) == 0x020)
7148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7150 #else
7151 # define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7156 #endif
7157
7158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7159 int
7160 main ()
7161 {
7162 int i;
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7166 return 2;
7167 return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177 $as_echo "$ac_try_echo") >&5
7178 (eval "$ac_link") 2>&5
7179 ac_status=$?
7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7182 { (case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_try") 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 :
7193 else
7194 $as_echo "$as_me: program exited with status $ac_status" >&5
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ( exit $ac_status )
7199 ac_cv_header_stdc=no
7200 fi
7201 rm -rf conftest.dSYM
7202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7203 fi
7204
7205
7206 fi
7207 fi
7208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7209 $as_echo "$ac_cv_header_stdc" >&6; }
7210 if test $ac_cv_header_stdc = yes; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define STDC_HEADERS 1
7214 _ACEOF
7215
7216 fi
7217
7218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7230 do
7231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 $as_echo_n "checking for $ac_header... " >&6; }
7234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7235 $as_echo_n "(cached) " >&6
7236 else
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244
7245 #include <$ac_header>
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 eval "$as_ac_Header=yes"
7266 else
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 eval "$as_ac_Header=no"
7271 fi
7272
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 fi
7275 ac_res=`eval 'as_val=${'$as_ac_Header'}
7276 $as_echo "$as_val"'`
7277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 as_val=`eval 'as_val=${'$as_ac_Header'}
7280 $as_echo "$as_val"'`
7281 if test "x$as_val" = x""yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 _ACEOF
7285
7286 fi
7287
7288 done
7289
7290
7291
7292 for ac_header in dlfcn.h
7293 do
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7296 $as_echo_n "checking for $ac_header... " >&6; }
7297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7298 $as_echo_n "(cached) " >&6
7299 else
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307
7308 #include <$ac_header>
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329 else
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334 fi
7335
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 fi
7338 ac_res=`eval 'as_val=${'$as_ac_Header'}
7339 $as_echo "$as_val"'`
7340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7341 $as_echo "$ac_res" >&6; }
7342 as_val=`eval 'as_val=${'$as_ac_Header'}
7343 $as_echo "$as_val"'`
7344 if test "x$as_val" = x""yes; then
7345 cat >>confdefs.h <<_ACEOF
7346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 _ACEOF
7348
7349 fi
7350
7351 done
7352
7353
7354
7355 # Set options
7356
7357
7358
7359 enable_dlopen=no
7360
7361
7362 enable_win32_dll=no
7363
7364
7365 # Check whether --enable-shared was given.
7366 if test "${enable_shared+set}" = set; then
7367 enableval=$enable_shared; p=${PACKAGE-default}
7368 case $enableval in
7369 yes) enable_shared=yes ;;
7370 no) enable_shared=no ;;
7371 *)
7372 enable_shared=no
7373 # Look at the argument we got. We use all the common list separators.
7374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7375 for pkg in $enableval; do
7376 IFS="$lt_save_ifs"
7377 if test "X$pkg" = "X$p"; then
7378 enable_shared=yes
7379 fi
7380 done
7381 IFS="$lt_save_ifs"
7382 ;;
7383 esac
7384 else
7385 enable_shared=yes
7386 fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 # Check whether --enable-static was given.
7397 if test "${enable_static+set}" = set; then
7398 enableval=$enable_static; p=${PACKAGE-default}
7399 case $enableval in
7400 yes) enable_static=yes ;;
7401 no) enable_static=no ;;
7402 *)
7403 enable_static=no
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7407 IFS="$lt_save_ifs"
7408 if test "X$pkg" = "X$p"; then
7409 enable_static=yes
7410 fi
7411 done
7412 IFS="$lt_save_ifs"
7413 ;;
7414 esac
7415 else
7416 enable_static=yes
7417 fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428 # Check whether --with-pic was given.
7429 if test "${with_pic+set}" = set; then
7430 withval=$with_pic; pic_mode="$withval"
7431 else
7432 pic_mode=default
7433 fi
7434
7435
7436 test -z "$pic_mode" && pic_mode=default
7437
7438
7439
7440
7441
7442
7443
7444 # Check whether --enable-fast-install was given.
7445 if test "${enable_fast_install+set}" = set; then
7446 enableval=$enable_fast_install; p=${PACKAGE-default}
7447 case $enableval in
7448 yes) enable_fast_install=yes ;;
7449 no) enable_fast_install=no ;;
7450 *)
7451 enable_fast_install=no
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7455 IFS="$lt_save_ifs"
7456 if test "X$pkg" = "X$p"; then
7457 enable_fast_install=yes
7458 fi
7459 done
7460 IFS="$lt_save_ifs"
7461 ;;
7462 esac
7463 else
7464 enable_fast_install=yes
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 # This can be used to rebuild libtool when needed
7478 LIBTOOL_DEPS="$ltmain"
7479
7480 # Always use our own libtool.
7481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 test -z "$LN_S" && LN_S="ln -s"
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 if test -n "${ZSH_VERSION+set}" ; then
7523 setopt NO_GLOB_SUBST
7524 fi
7525
7526 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7527 $as_echo_n "checking for objdir... " >&6; }
7528 if test "${lt_cv_objdir+set}" = set; then
7529 $as_echo_n "(cached) " >&6
7530 else
7531 rm -f .libs 2>/dev/null
7532 mkdir .libs 2>/dev/null
7533 if test -d .libs; then
7534 lt_cv_objdir=.libs
7535 else
7536 # MS-DOS does not allow filenames that begin with a dot.
7537 lt_cv_objdir=_libs
7538 fi
7539 rmdir .libs 2>/dev/null
7540 fi
7541 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7542 $as_echo "$lt_cv_objdir" >&6; }
7543 objdir=$lt_cv_objdir
7544
7545
7546
7547
7548
7549 cat >>confdefs.h <<_ACEOF
7550 #define LT_OBJDIR "$lt_cv_objdir/"
7551 _ACEOF
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 case $host_os in
7570 aix3*)
7571 # AIX sometimes has problems with the GCC collect2 program. For some
7572 # reason, if we set the COLLECT_NAMES environment variable, the problems
7573 # vanish in a puff of smoke.
7574 if test "X${COLLECT_NAMES+set}" != Xset; then
7575 COLLECT_NAMES=
7576 export COLLECT_NAMES
7577 fi
7578 ;;
7579 esac
7580
7581 # Sed substitution that helps us do robust quoting. It backslashifies
7582 # metacharacters that are still active within double-quoted strings.
7583 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7584
7585 # Same as above, but do not quote variable references.
7586 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7587
7588 # Sed substitution to delay expansion of an escaped shell variable in a
7589 # double_quote_subst'ed string.
7590 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7591
7592 # Sed substitution to delay expansion of an escaped single quote.
7593 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7594
7595 # Sed substitution to avoid accidental globbing in evaled expressions
7596 no_glob_subst='s/\*/\\\*/g'
7597
7598 # Global variables:
7599 ofile=libtool
7600 can_build_shared=yes
7601
7602 # All known linkers require a `.a' archive for static linking (except MSVC,
7603 # which needs '.lib').
7604 libext=a
7605
7606 with_gnu_ld="$lt_cv_prog_gnu_ld"
7607
7608 old_CC="$CC"
7609 old_CFLAGS="$CFLAGS"
7610
7611 # Set sane defaults for various variables
7612 test -z "$CC" && CC=cc
7613 test -z "$LTCC" && LTCC=$CC
7614 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7615 test -z "$LD" && LD=ld
7616 test -z "$ac_objext" && ac_objext=o
7617
7618 for cc_temp in $compiler""; do
7619 case $cc_temp in
7620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7622 \-*) ;;
7623 *) break;;
7624 esac
7625 done
7626 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7627
7628
7629 # Only perform the check for file, if the check method requires it
7630 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7631 case $deplibs_check_method in
7632 file_magic*)
7633 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7634 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7635 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $MAGIC_CMD in
7640 [\\/*] | ?:[\\/]*)
7641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642 ;;
7643 *)
7644 lt_save_MAGIC_CMD="$MAGIC_CMD"
7645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647 for ac_dir in $ac_dummy; do
7648 IFS="$lt_save_ifs"
7649 test -z "$ac_dir" && ac_dir=.
7650 if test -f $ac_dir/${ac_tool_prefix}file; then
7651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7652 if test -n "$file_magic_test_file"; then
7653 case $deplibs_check_method in
7654 "file_magic "*)
7655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658 $EGREP "$file_magic_regex" > /dev/null; then
7659 :
7660 else
7661 cat <<_LT_EOF 1>&2
7662
7663 *** Warning: the command libtool uses to detect shared libraries,
7664 *** $file_magic_cmd, produces output that libtool cannot recognize.
7665 *** The result is that libtool may fail to recognize shared libraries
7666 *** as such. This will affect the creation of libtool libraries that
7667 *** depend on shared libraries, but programs linked with such libtool
7668 *** libraries will work regardless of this problem. Nevertheless, you
7669 *** may want to report the problem to your system manager and/or to
7670 *** bug-libtool@gnu.org
7671
7672 _LT_EOF
7673 fi ;;
7674 esac
7675 fi
7676 break
7677 fi
7678 done
7679 IFS="$lt_save_ifs"
7680 MAGIC_CMD="$lt_save_MAGIC_CMD"
7681 ;;
7682 esac
7683 fi
7684
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if test -n "$MAGIC_CMD"; then
7687 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7688 $as_echo "$MAGIC_CMD" >&6; }
7689 else
7690 { $as_echo "$as_me:$LINENO: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695
7696
7697
7698 if test -z "$lt_cv_path_MAGIC_CMD"; then
7699 if test -n "$ac_tool_prefix"; then
7700 { $as_echo "$as_me:$LINENO: checking for file" >&5
7701 $as_echo_n "checking for file... " >&6; }
7702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7704 else
7705 case $MAGIC_CMD in
7706 [\\/*] | ?:[\\/]*)
7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7708 ;;
7709 *)
7710 lt_save_MAGIC_CMD="$MAGIC_CMD"
7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7713 for ac_dir in $ac_dummy; do
7714 IFS="$lt_save_ifs"
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f $ac_dir/file; then
7717 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7718 if test -n "$file_magic_test_file"; then
7719 case $deplibs_check_method in
7720 "file_magic "*)
7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7724 $EGREP "$file_magic_regex" > /dev/null; then
7725 :
7726 else
7727 cat <<_LT_EOF 1>&2
7728
7729 *** Warning: the command libtool uses to detect shared libraries,
7730 *** $file_magic_cmd, produces output that libtool cannot recognize.
7731 *** The result is that libtool may fail to recognize shared libraries
7732 *** as such. This will affect the creation of libtool libraries that
7733 *** depend on shared libraries, but programs linked with such libtool
7734 *** libraries will work regardless of this problem. Nevertheless, you
7735 *** may want to report the problem to your system manager and/or to
7736 *** bug-libtool@gnu.org
7737
7738 _LT_EOF
7739 fi ;;
7740 esac
7741 fi
7742 break
7743 fi
7744 done
7745 IFS="$lt_save_ifs"
7746 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 ;;
7748 esac
7749 fi
7750
7751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752 if test -n "$MAGIC_CMD"; then
7753 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7754 $as_echo "$MAGIC_CMD" >&6; }
7755 else
7756 { $as_echo "$as_me:$LINENO: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 else
7762 MAGIC_CMD=:
7763 fi
7764 fi
7765
7766 fi
7767 ;;
7768 esac
7769
7770 # Use C for the default configuration in the libtool script
7771
7772 lt_save_CC="$CC"
7773 ac_ext=c
7774 ac_cpp='$CPP $CPPFLAGS'
7775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778
7779
7780 # Source file extension for C test sources.
7781 ac_ext=c
7782
7783 # Object file extension for compiled C test sources.
7784 objext=o
7785 objext=$objext
7786
7787 # Code to be used in simple compile tests
7788 lt_simple_compile_test_code="int some_variable = 0;"
7789
7790 # Code to be used in simple link tests
7791 lt_simple_link_test_code='int main(){return(0);}'
7792
7793
7794
7795
7796
7797
7798
7799 # If no C compiler was specified, use CC.
7800 LTCC=${LTCC-"$CC"}
7801
7802 # If no C compiler flags were specified, use CFLAGS.
7803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7804
7805 # Allow CC to be a program name with arguments.
7806 compiler=$CC
7807
7808 # Save the default compiler, since it gets overwritten when the other
7809 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7810 compiler_DEFAULT=$CC
7811
7812 # save warnings/boilerplate of simple test code
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816 _lt_compiler_boilerplate=`cat conftest.err`
7817 $RM conftest*
7818
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822 _lt_linker_boilerplate=`cat conftest.err`
7823 $RM -r conftest*
7824
7825
7826 if test -n "$compiler"; then
7827
7828 lt_prog_compiler_no_builtin_flag=
7829
7830 if test "$GCC" = yes; then
7831 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7832
7833 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7834 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7835 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7836 $as_echo_n "(cached) " >&6
7837 else
7838 lt_cv_prog_compiler_rtti_exceptions=no
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841 lt_compiler_flag="-fno-rtti -fno-exceptions"
7842 # Insert the option either (1) after the last *FLAGS variable, or
7843 # (2) before a word containing "conftest.", or (3) at the end.
7844 # Note that $ac_compile itself does not contain backslashes and begins
7845 # with a dollar sign (not a hyphen), so the echo should work correctly.
7846 # The option is referenced via a variable to avoid confusing sed.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>conftest.err)
7853 ac_status=$?
7854 cat conftest.err >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s "$ac_outfile"; then
7857 # The compiler can only warn and ignore the option if not recognized
7858 # So say no if there are warnings other than the usual output.
7859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7862 lt_cv_prog_compiler_rtti_exceptions=yes
7863 fi
7864 fi
7865 $RM conftest*
7866
7867 fi
7868 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7869 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7870
7871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7873 else
7874 :
7875 fi
7876
7877 fi
7878
7879
7880
7881
7882
7883
7884 lt_prog_compiler_wl=
7885 lt_prog_compiler_pic=
7886 lt_prog_compiler_static=
7887
7888 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7890
7891 if test "$GCC" = yes; then
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_static='-static'
7894
7895 case $host_os in
7896 aix*)
7897 # All AIX code is PIC.
7898 if test "$host_cpu" = ia64; then
7899 # AIX 5 now supports IA64 processor
7900 lt_prog_compiler_static='-Bstatic'
7901 fi
7902 ;;
7903
7904 amigaos*)
7905 case $host_cpu in
7906 powerpc)
7907 # see comment about AmigaOS4 .so support
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 m68k)
7911 # FIXME: we need at least 68020 code to build shared libraries, but
7912 # adding the `-m68020' flag to GCC prevents building anything better,
7913 # like `-m68040'.
7914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7915 ;;
7916 esac
7917 ;;
7918
7919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7920 # PIC is the default for these OSes.
7921 ;;
7922
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7927 # (--disable-auto-import) libraries
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 ;;
7930
7931 darwin* | rhapsody*)
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
7934 lt_prog_compiler_pic='-fno-common'
7935 ;;
7936
7937 hpux*)
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7941 case $host_cpu in
7942 hppa*64*)
7943 # +Z the default
7944 ;;
7945 *)
7946 lt_prog_compiler_pic='-fPIC'
7947 ;;
7948 esac
7949 ;;
7950
7951 interix[3-9]*)
7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7954 ;;
7955
7956 msdosdjgpp*)
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
7959 lt_prog_compiler_can_build_shared=no
7960 enable_shared=no
7961 ;;
7962
7963 *nto* | *qnx*)
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7965 # it will coredump.
7966 lt_prog_compiler_pic='-fPIC -shared'
7967 ;;
7968
7969 sysv4*MP*)
7970 if test -d /usr/nec; then
7971 lt_prog_compiler_pic=-Kconform_pic
7972 fi
7973 ;;
7974
7975 *)
7976 lt_prog_compiler_pic='-fPIC'
7977 ;;
7978 esac
7979 else
7980 # PORTME Check for flag to pass linker flags through the system compiler.
7981 case $host_os in
7982 aix*)
7983 lt_prog_compiler_wl='-Wl,'
7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
7986 lt_prog_compiler_static='-Bstatic'
7987 else
7988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7989 fi
7990 ;;
7991
7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
7995 lt_prog_compiler_pic='-DDLL_EXPORT'
7996 ;;
7997
7998 hpux9* | hpux10* | hpux11*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8001 # not for PA HP-UX.
8002 case $host_cpu in
8003 hppa*64*|ia64*)
8004 # +Z the default
8005 ;;
8006 *)
8007 lt_prog_compiler_pic='+Z'
8008 ;;
8009 esac
8010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8011 lt_prog_compiler_static='${wl}-a ${wl}archive'
8012 ;;
8013
8014 irix5* | irix6* | nonstopux*)
8015 lt_prog_compiler_wl='-Wl,'
8016 # PIC (with -KPIC) is the default.
8017 lt_prog_compiler_static='-non_shared'
8018 ;;
8019
8020 linux* | k*bsd*-gnu)
8021 case $cc_basename in
8022 # old Intel for x86_64 which still supported -KPIC.
8023 ecc*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-static'
8027 ;;
8028 # icc used to be incompatible with GCC.
8029 # ICC 10 doesn't accept -KPIC any more.
8030 icc* | ifort*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-fPIC'
8033 lt_prog_compiler_static='-static'
8034 ;;
8035 # Lahey Fortran 8.1.
8036 lf95*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='--shared'
8039 lt_prog_compiler_static='--static'
8040 ;;
8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
8047 ;;
8048 ccc*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # All Alpha code is PIC.
8051 lt_prog_compiler_static='-non_shared'
8052 ;;
8053 xl*)
8054 # IBM XL C 8.0/Fortran 10.1 on PPC
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-qpic'
8057 lt_prog_compiler_static='-qstaticlink'
8058 ;;
8059 *)
8060 case `$CC -V 2>&1 | sed 5q` in
8061 *Sun\ C*)
8062 # Sun C 5.9
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl='-Wl,'
8066 ;;
8067 *Sun\ F*)
8068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl=''
8072 ;;
8073 esac
8074 ;;
8075 esac
8076 ;;
8077
8078 newsos6)
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8081 ;;
8082
8083 *nto* | *qnx*)
8084 # QNX uses GNU C++, but need to define -shared option too, otherwise
8085 # it will coredump.
8086 lt_prog_compiler_pic='-fPIC -shared'
8087 ;;
8088
8089 osf3* | osf4* | osf5*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # All OSF/1 code is PIC.
8092 lt_prog_compiler_static='-non_shared'
8093 ;;
8094
8095 rdos*)
8096 lt_prog_compiler_static='-non_shared'
8097 ;;
8098
8099 solaris*)
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 case $cc_basename in
8103 f77* | f90* | f95*)
8104 lt_prog_compiler_wl='-Qoption ld ';;
8105 *)
8106 lt_prog_compiler_wl='-Wl,';;
8107 esac
8108 ;;
8109
8110 sunos4*)
8111 lt_prog_compiler_wl='-Qoption ld '
8112 lt_prog_compiler_pic='-PIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115
8116 sysv4 | sysv4.2uw2* | sysv4.3*)
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-KPIC'
8119 lt_prog_compiler_static='-Bstatic'
8120 ;;
8121
8122 sysv4*MP*)
8123 if test -d /usr/nec ;then
8124 lt_prog_compiler_pic='-Kconform_pic'
8125 lt_prog_compiler_static='-Bstatic'
8126 fi
8127 ;;
8128
8129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 ;;
8134
8135 unicos*)
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_can_build_shared=no
8138 ;;
8139
8140 uts4*)
8141 lt_prog_compiler_pic='-pic'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144
8145 *)
8146 lt_prog_compiler_can_build_shared=no
8147 ;;
8148 esac
8149 fi
8150
8151 case $host_os in
8152 # For platforms which do not support PIC, -DPIC is meaningless:
8153 *djgpp*)
8154 lt_prog_compiler_pic=
8155 ;;
8156 *)
8157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8158 ;;
8159 esac
8160 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161 $as_echo "$lt_prog_compiler_pic" >&6; }
8162
8163
8164
8165
8166
8167
8168 #
8169 # Check to make sure the PIC flag actually works.
8170 #
8171 if test -n "$lt_prog_compiler_pic"; then
8172 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8173 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8174 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8176 else
8177 lt_cv_prog_compiler_pic_works=no
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8181 # Insert the option either (1) after the last *FLAGS variable, or
8182 # (2) before a word containing "conftest.", or (3) at the end.
8183 # Note that $ac_compile itself does not contain backslashes and begins
8184 # with a dollar sign (not a hyphen), so the echo should work correctly.
8185 # The option is referenced via a variable to avoid confusing sed.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>conftest.err)
8192 ac_status=$?
8193 cat conftest.err >&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s "$ac_outfile"; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings other than the usual output.
8198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8201 lt_cv_prog_compiler_pic_works=yes
8202 fi
8203 fi
8204 $RM conftest*
8205
8206 fi
8207 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8208 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8209
8210 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8211 case $lt_prog_compiler_pic in
8212 "" | " "*) ;;
8213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8214 esac
8215 else
8216 lt_prog_compiler_pic=
8217 lt_prog_compiler_can_build_shared=no
8218 fi
8219
8220 fi
8221
8222
8223
8224
8225
8226
8227 #
8228 # Check to make sure the static flag actually works.
8229 #
8230 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234 $as_echo_n "(cached) " >&6
8235 else
8236 lt_cv_prog_compiler_static_works=no
8237 save_LDFLAGS="$LDFLAGS"
8238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8239 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241 # The linker can only warn and ignore the option if not recognized
8242 # So say no if there are warnings
8243 if test -s conftest.err; then
8244 # Append any errors to the config.log.
8245 cat conftest.err 1>&5
8246 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248 if diff conftest.exp conftest.er2 >/dev/null; then
8249 lt_cv_prog_compiler_static_works=yes
8250 fi
8251 else
8252 lt_cv_prog_compiler_static_works=yes
8253 fi
8254 fi
8255 $RM -r conftest*
8256 LDFLAGS="$save_LDFLAGS"
8257
8258 fi
8259 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8261
8262 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8263 :
8264 else
8265 lt_prog_compiler_static=
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8276 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8277 $as_echo_n "(cached) " >&6
8278 else
8279 lt_cv_prog_compiler_c_o=no
8280 $RM -r conftest 2>/dev/null
8281 mkdir conftest
8282 cd conftest
8283 mkdir out
8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285
8286 lt_compiler_flag="-o out/conftest2.$ac_objext"
8287 # Insert the option either (1) after the last *FLAGS variable, or
8288 # (2) before a word containing "conftest.", or (3) at the end.
8289 # Note that $ac_compile itself does not contain backslashes and begins
8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8291 lt_compile=`echo "$ac_compile" | $SED \
8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294 -e 's:$: $lt_compiler_flag:'`
8295 (eval echo "\"\$as_me:8295: $lt_compile\"" >&5)
8296 (eval "$lt_compile" 2>out/conftest.err)
8297 ac_status=$?
8298 cat out/conftest.err >&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8301 then
8302 # The compiler can only warn and ignore the option if not recognized
8303 # So say no if there are warnings
8304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8307 lt_cv_prog_compiler_c_o=yes
8308 fi
8309 fi
8310 chmod u+w . 2>&5
8311 $RM conftest*
8312 # SGI C++ compiler will create directory out/ii_files/ for
8313 # template instantiation
8314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8315 $RM out/* && rmdir out
8316 cd ..
8317 $RM -r conftest
8318 $RM conftest*
8319
8320 fi
8321 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8322 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8323
8324
8325
8326
8327
8328
8329 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8331 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8332 $as_echo_n "(cached) " >&6
8333 else
8334 lt_cv_prog_compiler_c_o=no
8335 $RM -r conftest 2>/dev/null
8336 mkdir conftest
8337 cd conftest
8338 mkdir out
8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340
8341 lt_compiler_flag="-o out/conftest2.$ac_objext"
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 lt_compile=`echo "$ac_compile" | $SED \
8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349 -e 's:$: $lt_compiler_flag:'`
8350 (eval echo "\"\$as_me:8350: $lt_compile\"" >&5)
8351 (eval "$lt_compile" 2>out/conftest.err)
8352 ac_status=$?
8353 cat out/conftest.err >&5
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356 then
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings
8359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_c_o=yes
8363 fi
8364 fi
8365 chmod u+w . 2>&5
8366 $RM conftest*
8367 # SGI C++ compiler will create directory out/ii_files/ for
8368 # template instantiation
8369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8370 $RM out/* && rmdir out
8371 cd ..
8372 $RM -r conftest
8373 $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8378
8379
8380
8381
8382 hard_links="nottested"
8383 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8384 # do not overwrite the value of need_locks provided by the user
8385 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8386 $as_echo_n "checking if we can lock with hard links... " >&6; }
8387 hard_links=yes
8388 $RM conftest*
8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390 touch conftest.a
8391 ln conftest.a conftest.b 2>&5 || hard_links=no
8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8394 $as_echo "$hard_links" >&6; }
8395 if test "$hard_links" = no; then
8396 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8398 need_locks=warn
8399 fi
8400 else
8401 need_locks=no
8402 fi
8403
8404
8405
8406
8407
8408
8409 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8411
8412 runpath_var=
8413 allow_undefined_flag=
8414 always_export_symbols=no
8415 archive_cmds=
8416 archive_expsym_cmds=
8417 compiler_needs_object=no
8418 enable_shared_with_static_runtimes=no
8419 export_dynamic_flag_spec=
8420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8421 hardcode_automatic=no
8422 hardcode_direct=no
8423 hardcode_direct_absolute=no
8424 hardcode_libdir_flag_spec=
8425 hardcode_libdir_flag_spec_ld=
8426 hardcode_libdir_separator=
8427 hardcode_minus_L=no
8428 hardcode_shlibpath_var=unsupported
8429 inherit_rpath=no
8430 link_all_deplibs=unknown
8431 module_cmds=
8432 module_expsym_cmds=
8433 old_archive_from_new_cmds=
8434 old_archive_from_expsyms_cmds=
8435 thread_safe_flag_spec=
8436 whole_archive_flag_spec=
8437 # include_expsyms should be a list of space-separated symbols to be *always*
8438 # included in the symbol list
8439 include_expsyms=
8440 # exclude_expsyms can be an extended regexp of symbols to exclude
8441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8443 # as well as any symbol that contains `d'.
8444 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8446 # platforms (ab)use it in PIC code, but their linkers get confused if
8447 # the symbol is explicitly referenced. Since portable code cannot
8448 # rely on this symbol name, it's probably fine to never include it in
8449 # preloaded symbol tables.
8450 # Exclude shared library initialization/finalization symbols.
8451 extract_expsyms_cmds=
8452
8453 case $host_os in
8454 cygwin* | mingw* | pw32* | cegcc*)
8455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8456 # When not using gcc, we currently assume that we are using
8457 # Microsoft Visual C++.
8458 if test "$GCC" != yes; then
8459 with_gnu_ld=no
8460 fi
8461 ;;
8462 interix*)
8463 # we just hope/assume this is gcc and not c89 (= MSVC++)
8464 with_gnu_ld=yes
8465 ;;
8466 openbsd*)
8467 with_gnu_ld=no
8468 ;;
8469 esac
8470
8471 ld_shlibs=yes
8472 if test "$with_gnu_ld" = yes; then
8473 # If archive_cmds runs LD, not CC, wlarc should be empty
8474 wlarc='${wl}'
8475
8476 # Set some defaults for GNU ld with shared library support. These
8477 # are reset later if shared libraries are not supported. Putting them
8478 # here allows them to be overridden if necessary.
8479 runpath_var=LD_RUN_PATH
8480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8481 export_dynamic_flag_spec='${wl}--export-dynamic'
8482 # ancient GNU ld didn't support --whole-archive et. al.
8483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485 else
8486 whole_archive_flag_spec=
8487 fi
8488 supports_anon_versioning=no
8489 case `$LD -v 2>&1` in
8490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8493 *\ 2.11.*) ;; # other 2.11 versions
8494 *) supports_anon_versioning=yes ;;
8495 esac
8496
8497 # See if GNU ld supports shared libraries.
8498 case $host_os in
8499 aix[3-9]*)
8500 # On AIX/PPC, the GNU linker is very broken
8501 if test "$host_cpu" != ia64; then
8502 ld_shlibs=no
8503 cat <<_LT_EOF 1>&2
8504
8505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8506 *** to be unable to reliably create shared libraries on AIX.
8507 *** Therefore, libtool is disabling shared libraries support. If you
8508 *** really care for shared libraries, you may want to modify your PATH
8509 *** so that a non-GNU linker is found, and then restart.
8510
8511 _LT_EOF
8512 fi
8513 ;;
8514
8515 amigaos*)
8516 case $host_cpu in
8517 powerpc)
8518 # see comment about AmigaOS4 .so support
8519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 archive_expsym_cmds=''
8521 ;;
8522 m68k)
8523 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)'
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 hardcode_minus_L=yes
8526 ;;
8527 esac
8528 ;;
8529
8530 beos*)
8531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8532 allow_undefined_flag=unsupported
8533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8534 # support --undefined. This deserves some investigation. FIXME
8535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536 else
8537 ld_shlibs=no
8538 fi
8539 ;;
8540
8541 cygwin* | mingw* | pw32* | cegcc*)
8542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8543 # as there is no search path for DLLs.
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 allow_undefined_flag=unsupported
8546 always_export_symbols=no
8547 enable_shared_with_static_runtimes=yes
8548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8549
8550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8552 # If the export-symbols file already is a .def file (1st line
8553 # is EXPORTS), use it as is; otherwise, prepend...
8554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8555 cp $export_symbols $output_objdir/$soname.def;
8556 else
8557 echo EXPORTS > $output_objdir/$soname.def;
8558 cat $export_symbols >> $output_objdir/$soname.def;
8559 fi~
8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561 else
8562 ld_shlibs=no
8563 fi
8564 ;;
8565
8566 interix[3-9]*)
8567 hardcode_direct=no
8568 hardcode_shlibpath_var=no
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570 export_dynamic_flag_spec='${wl}-E'
8571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8572 # Instead, shared libraries are loaded at an image base (0x10000000 by
8573 # default) and relocated if they conflict, which is a slow very memory
8574 # consuming and fragmenting process. To avoid this, we pick a random,
8575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8578 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'
8579 ;;
8580
8581 gnu* | linux* | tpf* | k*bsd*-gnu)
8582 tmp_diet=no
8583 if test "$host_os" = linux-dietlibc; then
8584 case $cc_basename in
8585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8586 esac
8587 fi
8588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8589 && test "$tmp_diet" = no
8590 then
8591 tmp_addflag=
8592 tmp_sharedflag='-shared'
8593 case $cc_basename,$host_cpu in
8594 pgcc*) # Portland Group C compiler
8595 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'
8596 tmp_addflag=' $pic_flag'
8597 ;;
8598 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8599 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'
8600 tmp_addflag=' $pic_flag -Mnomain' ;;
8601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8602 tmp_addflag=' -i_dynamic' ;;
8603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8604 tmp_addflag=' -i_dynamic -nofor_main' ;;
8605 ifc* | ifort*) # Intel Fortran compiler
8606 tmp_addflag=' -nofor_main' ;;
8607 lf95*) # Lahey Fortran 8.1
8608 whole_archive_flag_spec=
8609 tmp_sharedflag='--shared' ;;
8610 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8611 tmp_sharedflag='-qmkshrobj'
8612 tmp_addflag= ;;
8613 esac
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ C*) # Sun C 5.9
8616 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'
8617 compiler_needs_object=yes
8618 tmp_sharedflag='-G' ;;
8619 *Sun\ F*) # Sun Fortran 8.3
8620 tmp_sharedflag='-G' ;;
8621 esac
8622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623
8624 if test "x$supports_anon_versioning" = xyes; then
8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8629 fi
8630
8631 case $cc_basename in
8632 xlf*)
8633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8643 fi
8644 ;;
8645 esac
8646 else
8647 ld_shlibs=no
8648 fi
8649 ;;
8650
8651 netbsd*)
8652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8654 wlarc=
8655 else
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 fi
8659 ;;
8660
8661 solaris*)
8662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
8666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8667 *** create shared libraries on Solaris systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.9.1 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8672
8673 _LT_EOF
8674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 else
8678 ld_shlibs=no
8679 fi
8680 ;;
8681
8682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8683 case `$LD -v 2>&1` in
8684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8685 ld_shlibs=no
8686 cat <<_LT_EOF 1>&2
8687
8688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8689 *** reliably create shared libraries on SCO systems. Therefore, libtool
8690 *** is disabling shared libraries support. We urge you to upgrade GNU
8691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8692 *** your PATH or compiler configuration so that the native linker is
8693 *** used, and then restart.
8694
8695 _LT_EOF
8696 ;;
8697 *)
8698 # For security reasons, it is highly recommended that you always
8699 # use absolute paths for naming shared libraries, and exclude the
8700 # DT_RUNPATH tag from executables and libraries. But doing so
8701 # requires that you compile everything twice, which is a pain.
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 else
8707 ld_shlibs=no
8708 fi
8709 ;;
8710 esac
8711 ;;
8712
8713 sunos4*)
8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8715 wlarc=
8716 hardcode_direct=yes
8717 hardcode_shlibpath_var=no
8718 ;;
8719
8720 *)
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8726 fi
8727 ;;
8728 esac
8729
8730 if test "$ld_shlibs" = no; then
8731 runpath_var=
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
8735 fi
8736 else
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8738 case $host_os in
8739 aix3*)
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 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'
8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8745 hardcode_minus_L=yes
8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8748 # broken collect2.
8749 hardcode_direct=unsupported
8750 fi
8751 ;;
8752
8753 aix[4-9]*)
8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8759 no_entry_flag=""
8760 else
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8764 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'
8765 else
8766 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'
8767 fi
8768 aix_use_runtimelinking=no
8769
8770 # Test if we are trying to use run time linking or normal
8771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772 # need to do runtime linking.
8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8774 for ld_flag in $LDFLAGS; do
8775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776 aix_use_runtimelinking=yes
8777 break
8778 fi
8779 done
8780 ;;
8781 esac
8782
8783 exp_sym_flag='-bexport'
8784 no_entry_flag='-bnoentry'
8785 fi
8786
8787 # When large executables or shared objects are built, AIX ld can
8788 # have problems creating the table of contents. If linking a library
8789 # or program results in "error TOC overflow" add -mminimal-toc to
8790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8792
8793 archive_cmds=''
8794 hardcode_direct=yes
8795 hardcode_direct_absolute=yes
8796 hardcode_libdir_separator=':'
8797 link_all_deplibs=yes
8798 file_list_spec='${wl}-f,'
8799
8800 if test "$GCC" = yes; then
8801 case $host_os in aix4.[012]|aix4.[012].*)
8802 # We only want to do this on AIX 4.2 and lower, the check
8803 # below for broken collect2 doesn't work under 4.3+
8804 collect2name=`${CC} -print-prog-name=collect2`
8805 if test -f "$collect2name" &&
8806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8807 then
8808 # We have reworked collect2
8809 :
8810 else
8811 # We have old collect2
8812 hardcode_direct=unsupported
8813 # It fails to find uninstalled libraries when the uninstalled
8814 # path is not listed in the libpath. Setting hardcode_minus_L
8815 # to unsupported forces relinking
8816 hardcode_minus_L=yes
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_libdir_separator=
8819 fi
8820 ;;
8821 esac
8822 shared_flag='-shared'
8823 if test "$aix_use_runtimelinking" = yes; then
8824 shared_flag="$shared_flag "'${wl}-G'
8825 fi
8826 else
8827 # not using gcc
8828 if test "$host_cpu" = ia64; then
8829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8830 # chokes on -Wl,-G. The following line is correct:
8831 shared_flag='-G'
8832 else
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag='${wl}-G'
8835 else
8836 shared_flag='${wl}-bM:SRE'
8837 fi
8838 fi
8839 fi
8840
8841 export_dynamic_flag_spec='${wl}-bexpall'
8842 # It seems that -bexpall does not export symbols beginning with
8843 # underscore (_), so it is better to generate a list of symbols to export.
8844 always_export_symbols=yes
8845 if test "$aix_use_runtimelinking" = yes; then
8846 # Warning - without using the other runtime loading flags (-brtl),
8847 # -berok will link without error, but may produce a broken library.
8848 allow_undefined_flag='-berok'
8849 # Determine the default libpath from the value encoded in an
8850 # empty executable.
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857
8858 int
8859 main ()
8860 {
8861
8862 ;
8863 return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871 esac
8872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873 $as_echo "$ac_try_echo") >&5
8874 (eval "$ac_link") 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest$ac_exeext && {
8884 test "$cross_compiling" = yes ||
8885 $as_test_x conftest$ac_exeext
8886 }; then
8887
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8892 p
8893 }
8894 }'
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 fi
8900 else
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904
8905 fi
8906
8907 rm -rf conftest.dSYM
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8911
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 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"
8914 else
8915 if test "$host_cpu" = ia64; then
8916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917 allow_undefined_flag="-z nodefs"
8918 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"
8919 else
8920 # Determine the default libpath from the value encoded in an
8921 # empty executable.
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928
8929 int
8930 main ()
8931 {
8932
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8957 }; then
8958
8959 lt_aix_libpath_sed='
8960 /Import File Strings/,/^$/ {
8961 /^0/ {
8962 s/^0 *\(.*\)$/\1/
8963 p
8964 }
8965 }'
8966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8967 # Check for a 64-bit object if we didn't find anything.
8968 if test -z "$aix_libpath"; then
8969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 fi
8971 else
8972 $as_echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975
8976 fi
8977
8978 rm -rf conftest.dSYM
8979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8980 conftest$ac_exeext conftest.$ac_ext
8981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8982
8983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8984 # Warning - without using the other run time loading flags,
8985 # -berok will link without error, but may produce a broken library.
8986 no_undefined_flag=' ${wl}-bernotok'
8987 allow_undefined_flag=' ${wl}-berok'
8988 # Exported symbols can be pulled into shared objects from archives
8989 whole_archive_flag_spec='$convenience'
8990 archive_cmds_need_lc=yes
8991 # This is similar to how AIX traditionally builds its shared libraries.
8992 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'
8993 fi
8994 fi
8995 ;;
8996
8997 amigaos*)
8998 case $host_cpu in
8999 powerpc)
9000 # see comment about AmigaOS4 .so support
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds=''
9003 ;;
9004 m68k)
9005 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)'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 ;;
9009 esac
9010 ;;
9011
9012 bsdi[45]*)
9013 export_dynamic_flag_spec=-rdynamic
9014 ;;
9015
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 # hardcode_libdir_flag_spec is actually meaningless, as there is
9020 # no search path for DLLs.
9021 hardcode_libdir_flag_spec=' '
9022 allow_undefined_flag=unsupported
9023 # Tell ltmain to make .lib files, not .a files.
9024 libext=lib
9025 # Tell ltmain to make .dll files, not .so files.
9026 shrext_cmds=".dll"
9027 # FIXME: Setting linknames here is a bad hack.
9028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9029 # The linker will automatically build a .lib file if we build a DLL.
9030 old_archive_from_new_cmds='true'
9031 # FIXME: Should let the user specify the lib program.
9032 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9033 fix_srcfile_path='`cygpath -w "$srcfile"`'
9034 enable_shared_with_static_runtimes=yes
9035 ;;
9036
9037 darwin* | rhapsody*)
9038
9039
9040 archive_cmds_need_lc=no
9041 hardcode_direct=no
9042 hardcode_automatic=yes
9043 hardcode_shlibpath_var=unsupported
9044 whole_archive_flag_spec=''
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9050 esac
9051 if test "$_lt_dar_can_shared" = "yes"; then
9052 output_verbose_link_cmd=echo
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 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}"
9056 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}"
9057
9058 else
9059 ld_shlibs=no
9060 fi
9061
9062 ;;
9063
9064 dgux*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 freebsd1*)
9071 ld_shlibs=no
9072 ;;
9073
9074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9075 # support. Future versions do this automatically, but an explicit c++rt0.o
9076 # does not break anything, and helps significantly (at the cost of a little
9077 # extra space).
9078 freebsd2.2*)
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9080 hardcode_libdir_flag_spec='-R$libdir'
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9086 freebsd2*)
9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9091 ;;
9092
9093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9094 freebsd* | dragonfly*)
9095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9096 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_direct=yes
9098 hardcode_shlibpath_var=no
9099 ;;
9100
9101 hpux9*)
9102 if test "$GCC" = yes; then
9103 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'
9104 else
9105 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'
9106 fi
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9109 hardcode_direct=yes
9110
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
9113 hardcode_minus_L=yes
9114 export_dynamic_flag_spec='${wl}-E'
9115 ;;
9116
9117 hpux10*)
9118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 else
9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9122 fi
9123 if test "$with_gnu_ld" = no; then
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_flag_spec_ld='+b $libdir'
9126 hardcode_libdir_separator=:
9127 hardcode_direct=yes
9128 hardcode_direct_absolute=yes
9129 export_dynamic_flag_spec='${wl}-E'
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 fi
9134 ;;
9135
9136 hpux11*)
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9138 case $host_cpu in
9139 hppa*64*)
9140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 ia64*)
9143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 *)
9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 ;;
9148 esac
9149 else
9150 case $host_cpu in
9151 hppa*64*)
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 ;;
9154 ia64*)
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9156 ;;
9157 *)
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 ;;
9160 esac
9161 fi
9162 if test "$with_gnu_ld" = no; then
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9165
9166 case $host_cpu in
9167 hppa*64*|ia64*)
9168 hardcode_direct=no
9169 hardcode_shlibpath_var=no
9170 ;;
9171 *)
9172 hardcode_direct=yes
9173 hardcode_direct_absolute=yes
9174 export_dynamic_flag_spec='${wl}-E'
9175
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9179 ;;
9180 esac
9181 fi
9182 ;;
9183
9184 irix5* | irix6* | nonstopux*)
9185 if test "$GCC" = yes; then
9186 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'
9187 # Try to use the -exported_symbol ld option, if it does not
9188 # work, assume that -exports_file does not work either and
9189 # implicitly export all symbols.
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9192 cat >conftest.$ac_ext <<_ACEOF
9193 int foo(void) {}
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200 esac
9201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202 $as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && {
9210 test -z "$ac_c_werror_flag" ||
9211 test ! -s conftest.err
9212 } && test -s conftest$ac_exeext && {
9213 test "$cross_compiling" = yes ||
9214 $as_test_x conftest$ac_exeext
9215 }; then
9216 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'
9217
9218 else
9219 $as_echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222
9223 fi
9224
9225 rm -rf conftest.dSYM
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 LDFLAGS="$save_LDFLAGS"
9229 else
9230 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'
9231 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'
9232 fi
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236 inherit_rpath=yes
9237 link_all_deplibs=yes
9238 ;;
9239
9240 netbsd*)
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9243 else
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9245 fi
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9249 ;;
9250
9251 newsos6)
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_direct=yes
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 *nto* | *qnx*)
9260 ;;
9261
9262 openbsd*)
9263 if test -f /usr/libexec/ld.so; then
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 else
9273 case $host_os in
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 ;;
9278 *)
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 ;;
9282 esac
9283 fi
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 os2*)
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 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'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9295 ;;
9296
9297 osf3*)
9298 if test "$GCC" = yes; then
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 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'
9301 else
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 ;;
9309
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 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'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 else
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 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'
9318 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~
9319 $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'
9320
9321 # Both c and cxx compiler support -rpath directly
9322 hardcode_libdir_flag_spec='-rpath $libdir'
9323 fi
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
9326 ;;
9327
9328 solaris*)
9329 no_undefined_flag=' -z defs'
9330 if test "$GCC" = yes; then
9331 wlarc='${wl}'
9332 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9335 else
9336 case `$CC -V 2>&1` in
9337 *"Compilers 5.0"*)
9338 wlarc=''
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9342 ;;
9343 *)
9344 wlarc='${wl}'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9348 ;;
9349 esac
9350 fi
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
9353 case $host_os in
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 *)
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9362 else
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9364 fi
9365 ;;
9366 esac
9367 link_all_deplibs=yes
9368 ;;
9369
9370 sunos4*)
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9377 fi
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_direct=yes
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 sysv4)
9385 case $host_vendor in
9386 sni)
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
9389 ;;
9390 siemens)
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9395 hardcode_direct=no
9396 ;;
9397 motorola)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9400 ;;
9401 esac
9402 runpath_var='LD_RUN_PATH'
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 sysv4.3*)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
9418 ld_shlibs=yes
9419 fi
9420 ;;
9421
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 runpath_var='LD_RUN_PATH'
9427
9428 if test "$GCC" = yes; then
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 fi
9435 ;;
9436
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9443 # as -z defs.
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
9452 runpath_var='LD_RUN_PATH'
9453
9454 if test "$GCC" = yes; then
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 else
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 fi
9461 ;;
9462
9463 uts4*)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *)
9470 ld_shlibs=no
9471 ;;
9472 esac
9473
9474 if test x$host_vendor = xsni; then
9475 case $host in
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 ;;
9479 esac
9480 fi
9481 fi
9482
9483 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9484 $as_echo "$ld_shlibs" >&6; }
9485 test "$ld_shlibs" = no && can_build_shared=no
9486
9487 with_gnu_ld=$with_gnu_ld
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503 #
9504 # Do we need to explicitly link libc?
9505 #
9506 case "x$archive_cmds_need_lc" in
9507 x|xyes)
9508 # Assume -lc should be added
9509 archive_cmds_need_lc=yes
9510
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
9512 case $archive_cmds in
9513 *'~'*)
9514 # FIXME: we may have to deal with multi-command sequences.
9515 ;;
9516 '$CC '*)
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
9520 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522 $RM conftest*
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524
9525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>&5
9527 ac_status=$?
9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } 2>conftest.err; then
9530 soname=conftest
9531 lib=conftest
9532 libobjs=conftest.$ac_objext
9533 deplibs=
9534 wl=$lt_prog_compiler_wl
9535 pic_flag=$lt_prog_compiler_pic
9536 compiler_flags=-v
9537 linker_flags=-v
9538 verstring=
9539 output_objdir=.
9540 libname=conftest
9541 lt_save_allow_undefined_flag=$allow_undefined_flag
9542 allow_undefined_flag=
9543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9544 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9545 ac_status=$?
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }
9548 then
9549 archive_cmds_need_lc=no
9550 else
9551 archive_cmds_need_lc=yes
9552 fi
9553 allow_undefined_flag=$lt_save_allow_undefined_flag
9554 else
9555 cat conftest.err 1>&5
9556 fi
9557 $RM conftest*
9558 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9559 $as_echo "$archive_cmds_need_lc" >&6; }
9560 ;;
9561 esac
9562 fi
9563 ;;
9564 esac
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724
9725 if test "$GCC" = yes; then
9726 case $host_os in
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9729 esac
9730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9731 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9737 else
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9739 fi
9740 # Ok, now we have the path, separated by spaces, we can step through it
9741 # and add multilib dir if necessary.
9742 lt_tmp_lt_search_path_spec=
9743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9744 for lt_sys_path in $lt_search_path_spec; do
9745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9747 else
9748 test -d "$lt_sys_path" && \
9749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9750 fi
9751 done
9752 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9753 BEGIN {RS=" "; FS="/|\n";} {
9754 lt_foo="";
9755 lt_count=0;
9756 for (lt_i = NF; lt_i > 0; lt_i--) {
9757 if ($lt_i != "" && $lt_i != ".") {
9758 if ($lt_i == "..") {
9759 lt_count++;
9760 } else {
9761 if (lt_count == 0) {
9762 lt_foo="/" $lt_i lt_foo;
9763 } else {
9764 lt_count--;
9765 }
9766 }
9767 }
9768 }
9769 if (lt_foo != "") { lt_freq[lt_foo]++; }
9770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9771 }'`
9772 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9773 else
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775 fi
9776 library_names_spec=
9777 libname_spec='lib$name'
9778 soname_spec=
9779 shrext_cmds=".so"
9780 postinstall_cmds=
9781 postuninstall_cmds=
9782 finish_cmds=
9783 finish_eval=
9784 shlibpath_var=
9785 shlibpath_overrides_runpath=unknown
9786 version_type=none
9787 dynamic_linker="$host_os ld.so"
9788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789 need_lib_prefix=unknown
9790 hardcode_into_libs=no
9791
9792 # when you set need_version to no, make sure it does not cause -set_version
9793 # flags to be left without arguments
9794 need_version=unknown
9795
9796 case $host_os in
9797 aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
9806 aix[4-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
9847 fi
9848 ;;
9849
9850 amigaos*)
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9861 ;;
9862 esac
9863 ;;
9864
9865 beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871 bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9914 ;;
9915 mingw* | cegcc*)
9916 # MinGW DLLs use traditional 'lib' prefix
9917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9920 # It is most probably a Windows format PATH printed by
9921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922 # path with ; separators, and with drive letters. We can handle the
9923 # drive letters (cygwin fileutils understands them), so leave them,
9924 # especially as we might pass files found there to a mingw objdump,
9925 # which wouldn't understand a cygwinified path. Ahh.
9926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9927 else
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9929 fi
9930 ;;
9931 pw32*)
9932 # pw32 DLLs use 'pw' prefix rather than 'lib'
9933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 esac
9936 ;;
9937
9938 *)
9939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9940 ;;
9941 esac
9942 dynamic_linker='Win32 ld.exe'
9943 # FIXME: first we should search . and the directory the executable is in
9944 shlibpath_var=PATH
9945 ;;
9946
9947 darwin* | rhapsody*)
9948 dynamic_linker="$host_os dyld"
9949 version_type=darwin
9950 need_lib_prefix=no
9951 need_version=no
9952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9953 soname_spec='${libname}${release}${major}$shared_ext'
9954 shlibpath_overrides_runpath=yes
9955 shlibpath_var=DYLD_LIBRARY_PATH
9956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9957
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9960 ;;
9961
9962 dgux*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 ;;
9970
9971 freebsd1*)
9972 dynamic_linker=no
9973 ;;
9974
9975 freebsd* | dragonfly*)
9976 # DragonFly does not have aout. When/if they implement a new
9977 # versioning mechanism, adjust this.
9978 if test -x /usr/bin/objformat; then
9979 objformat=`/usr/bin/objformat`
9980 else
9981 case $host_os in
9982 freebsd[123]*) objformat=aout ;;
9983 *) objformat=elf ;;
9984 esac
9985 fi
9986 version_type=freebsd-$objformat
9987 case $version_type in
9988 freebsd-elf*)
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9990 need_version=no
9991 need_lib_prefix=no
9992 ;;
9993 freebsd-*)
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9995 need_version=yes
9996 ;;
9997 esac
9998 shlibpath_var=LD_LIBRARY_PATH
9999 case $host_os in
10000 freebsd2*)
10001 shlibpath_overrides_runpath=yes
10002 ;;
10003 freebsd3.[01]* | freebsdelf3.[01]*)
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10006 ;;
10007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10011 ;;
10012 *) # from 4.6 on, and DragonFly
10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10015 ;;
10016 esac
10017 ;;
10018
10019 gnu*)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 hardcode_into_libs=yes
10027 ;;
10028
10029 hpux9* | hpux10* | hpux11*)
10030 # Give a soname corresponding to the major version so that dld.sl refuses to
10031 # link against other versions.
10032 version_type=sunos
10033 need_lib_prefix=no
10034 need_version=no
10035 case $host_cpu in
10036 ia64*)
10037 shrext_cmds='.so'
10038 hardcode_into_libs=yes
10039 dynamic_linker="$host_os dld.so"
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 if test "X$HPUX_IA64_MODE" = X32; then
10045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10046 else
10047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10048 fi
10049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10050 ;;
10051 hppa*64*)
10052 shrext_cmds='.sl'
10053 hardcode_into_libs=yes
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 ;;
10062 *)
10063 shrext_cmds='.sl'
10064 dynamic_linker="$host_os dld.sl"
10065 shlibpath_var=SHLIB_PATH
10066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 ;;
10070 esac
10071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10072 postinstall_cmds='chmod 555 $lib'
10073 ;;
10074
10075 interix[3-9]*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 ;;
10086
10087 irix5* | irix6* | nonstopux*)
10088 case $host_os in
10089 nonstopux*) version_type=nonstopux ;;
10090 *)
10091 if test "$lt_cv_prog_gnu_ld" = yes; then
10092 version_type=linux
10093 else
10094 version_type=irix
10095 fi ;;
10096 esac
10097 need_lib_prefix=no
10098 need_version=no
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 case $host_os in
10102 irix5* | nonstopux*)
10103 libsuff= shlibsuff=
10104 ;;
10105 *)
10106 case $LD in # libtool.m4 will add one of these switches to LD
10107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10108 libsuff= shlibsuff= libmagic=32-bit;;
10109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10110 libsuff=32 shlibsuff=N32 libmagic=N32;;
10111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10113 *) libsuff= shlibsuff= libmagic=never-match;;
10114 esac
10115 ;;
10116 esac
10117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10118 shlibpath_overrides_runpath=no
10119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10121 hardcode_into_libs=yes
10122 ;;
10123
10124 # No shared lib support for Linux oldld, aout, or coff.
10125 linux*oldld* | linux*aout* | linux*coff*)
10126 dynamic_linker=no
10127 ;;
10128
10129 # This must be Linux ELF.
10130 linux* | k*bsd*-gnu)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139 # Some binutils ld are patched to set DT_RUNPATH
10140 save_LDFLAGS=$LDFLAGS
10141 save_libdir=$libdir
10142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151 int
10152 main ()
10153 {
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164 esac
10165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10166 $as_echo "$ac_try_echo") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext && {
10177 test "$cross_compiling" = yes ||
10178 $as_test_x conftest$ac_exeext
10179 }; then
10180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10181 shlibpath_overrides_runpath=yes
10182 fi
10183
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188
10189 fi
10190
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LDFLAGS=$save_LDFLAGS
10195 libdir=$save_libdir
10196
10197 # This implies no fast_install, which is unacceptable.
10198 # Some rework will be needed to allow for fast_install
10199 # before this can be enabled.
10200 hardcode_into_libs=yes
10201
10202 # Add ABI-specific directories to the system library path.
10203 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10204
10205 # Append ld.so.conf contents to the search path
10206 if test -f /etc/ld.so.conf; then
10207 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' ' '`
10208 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10209 fi
10210
10211 # We used to test for /lib/ld.so.1 and disable shared libraries on
10212 # powerpc, because MkLinux only supported shared libraries with the
10213 # GNU dynamic linker. Since this was broken with cross compilers,
10214 # most powerpc-linux boxes support dynamic linking these days and
10215 # people can always --disable-shared, the test was removed, and we
10216 # assume the GNU/Linux dynamic linker is in use.
10217 dynamic_linker='GNU/Linux ld.so'
10218 ;;
10219
10220 netbsd*)
10221 version_type=sunos
10222 need_lib_prefix=no
10223 need_version=no
10224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 dynamic_linker='NetBSD (a.out) ld.so'
10228 else
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='NetBSD ld.elf_so'
10232 fi
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10236 ;;
10237
10238 newsos6)
10239 version_type=linux
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10243 ;;
10244
10245 *nto* | *qnx*)
10246 version_type=qnx
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 dynamic_linker='ldqnx.so'
10255 ;;
10256
10257 openbsd*)
10258 version_type=sunos
10259 sys_lib_dlsearch_path_spec="/usr/lib"
10260 need_lib_prefix=no
10261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 case $host_os in
10263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10264 *) need_version=no ;;
10265 esac
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 case $host_os in
10271 openbsd2.[89] | openbsd2.[89].*)
10272 shlibpath_overrides_runpath=no
10273 ;;
10274 *)
10275 shlibpath_overrides_runpath=yes
10276 ;;
10277 esac
10278 else
10279 shlibpath_overrides_runpath=yes
10280 fi
10281 ;;
10282
10283 os2*)
10284 libname_spec='$name'
10285 shrext_cmds=".dll"
10286 need_lib_prefix=no
10287 library_names_spec='$libname${shared_ext} $libname.a'
10288 dynamic_linker='OS/2 ld.exe'
10289 shlibpath_var=LIBPATH
10290 ;;
10291
10292 osf3* | osf4* | osf5*)
10293 version_type=osf
10294 need_lib_prefix=no
10295 need_version=no
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10301 ;;
10302
10303 rdos*)
10304 dynamic_linker=no
10305 ;;
10306
10307 solaris*)
10308 version_type=linux
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 # ldd complains unless libraries are executable
10317 postinstall_cmds='chmod +x $lib'
10318 ;;
10319
10320 sunos4*)
10321 version_type=sunos
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 if test "$with_gnu_ld" = yes; then
10327 need_lib_prefix=no
10328 fi
10329 need_version=yes
10330 ;;
10331
10332 sysv4 | sysv4.3*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_vendor in
10338 sni)
10339 shlibpath_overrides_runpath=no
10340 need_lib_prefix=no
10341 runpath_var=LD_RUN_PATH
10342 ;;
10343 siemens)
10344 need_lib_prefix=no
10345 ;;
10346 motorola)
10347 need_lib_prefix=no
10348 need_version=no
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10351 ;;
10352 esac
10353 ;;
10354
10355 sysv4*MP*)
10356 if test -d /usr/nec ;then
10357 version_type=linux
10358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10359 soname_spec='$libname${shared_ext}.$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 fi
10362 ;;
10363
10364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10365 version_type=freebsd-elf
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10373 if test "$with_gnu_ld" = yes; then
10374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10375 else
10376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10377 case $host_os in
10378 sco3.2v5*)
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10380 ;;
10381 esac
10382 fi
10383 sys_lib_dlsearch_path_spec='/usr/lib'
10384 ;;
10385
10386 tpf*)
10387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10388 version_type=linux
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
10396
10397 uts4*)
10398 version_type=linux
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 ;;
10403
10404 *)
10405 dynamic_linker=no
10406 ;;
10407 esac
10408 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10409 $as_echo "$dynamic_linker" >&6; }
10410 test "$dynamic_linker" = no && can_build_shared=no
10411
10412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10413 if test "$GCC" = yes; then
10414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10415 fi
10416
10417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10419 fi
10420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10512 hardcode_action=
10513 if test -n "$hardcode_libdir_flag_spec" ||
10514 test -n "$runpath_var" ||
10515 test "X$hardcode_automatic" = "Xyes" ; then
10516
10517 # We can hardcode non-existent directories.
10518 if test "$hardcode_direct" != no &&
10519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10520 # have to relink, otherwise we might link with an installed library
10521 # when we should be linking with a yet-to-be-installed one
10522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10523 test "$hardcode_minus_L" != no; then
10524 # Linking always hardcodes the temporary library directory.
10525 hardcode_action=relink
10526 else
10527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10528 hardcode_action=immediate
10529 fi
10530 else
10531 # We cannot hardcode anything, or else we can only hardcode existing
10532 # directories.
10533 hardcode_action=unsupported
10534 fi
10535 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10536 $as_echo "$hardcode_action" >&6; }
10537
10538 if test "$hardcode_action" = relink ||
10539 test "$inherit_rpath" = yes; then
10540 # Fast installation is not supported
10541 enable_fast_install=no
10542 elif test "$shlibpath_overrides_runpath" = yes ||
10543 test "$enable_shared" = no; then
10544 # Fast installation is not necessary
10545 enable_fast_install=needless
10546 fi
10547
10548
10549
10550
10551
10552
10553 if test "x$enable_dlopen" != xyes; then
10554 enable_dlopen=unknown
10555 enable_dlopen_self=unknown
10556 enable_dlopen_self_static=unknown
10557 else
10558 lt_cv_dlopen=no
10559 lt_cv_dlopen_libs=
10560
10561 case $host_os in
10562 beos*)
10563 lt_cv_dlopen="load_add_on"
10564 lt_cv_dlopen_libs=
10565 lt_cv_dlopen_self=yes
10566 ;;
10567
10568 mingw* | pw32* | cegcc*)
10569 lt_cv_dlopen="LoadLibrary"
10570 lt_cv_dlopen_libs=
10571 ;;
10572
10573 cygwin*)
10574 lt_cv_dlopen="dlopen"
10575 lt_cv_dlopen_libs=
10576 ;;
10577
10578 darwin*)
10579 # if libdl is installed we need to link against it
10580 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-ldl $LIBS"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dlopen ();
10601 int
10602 main ()
10603 {
10604 return dlopen ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10629 }; then
10630 ac_cv_lib_dl_dlopen=yes
10631 else
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_cv_lib_dl_dlopen=no
10636 fi
10637
10638 rm -rf conftest.dSYM
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10642 fi
10643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10645 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10647 else
10648
10649 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_libs=
10651 lt_cv_dlopen_self=yes
10652
10653 fi
10654
10655 ;;
10656
10657 *)
10658 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10659 $as_echo_n "checking for shl_load... " >&6; }
10660 if test "${ac_cv_func_shl_load+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671 #define shl_load innocuous_shl_load
10672
10673 /* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char shl_load (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
10677
10678 #ifdef __STDC__
10679 # include <limits.h>
10680 #else
10681 # include <assert.h>
10682 #endif
10683
10684 #undef shl_load
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char shl_load ();
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined __stub_shl_load || defined __stub___shl_load
10697 choke me
10698 #endif
10699
10700 int
10701 main ()
10702 {
10703 return shl_load ();
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (ac_try="$ac_link"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext && {
10726 test "$cross_compiling" = yes ||
10727 $as_test_x conftest$ac_exeext
10728 }; then
10729 ac_cv_func_shl_load=yes
10730 else
10731 $as_echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ac_cv_func_shl_load=no
10735 fi
10736
10737 rm -rf conftest.dSYM
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740 fi
10741 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10742 $as_echo "$ac_cv_func_shl_load" >&6; }
10743 if test "x$ac_cv_func_shl_load" = x""yes; then
10744 lt_cv_dlopen="shl_load"
10745 else
10746 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10750 else
10751 ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-ldld $LIBS"
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char shl_load ();
10767 int
10768 main ()
10769 {
10770 return shl_load ();
10771 ;
10772 return 0;
10773 }
10774 _ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780 esac
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783 (eval "$ac_link") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext && {
10793 test "$cross_compiling" = yes ||
10794 $as_test_x conftest$ac_exeext
10795 }; then
10796 ac_cv_lib_dld_shl_load=yes
10797 else
10798 $as_echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_cv_lib_dld_shl_load=no
10802 fi
10803
10804 rm -rf conftest.dSYM
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10808 fi
10809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10811 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10813 else
10814 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10815 $as_echo_n "checking for dlopen... " >&6; }
10816 if test "${ac_cv_func_dlopen+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10818 else
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10827 #define dlopen innocuous_dlopen
10828
10829 /* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char dlopen (); below.
10831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832 <limits.h> exists even on freestanding compilers. */
10833
10834 #ifdef __STDC__
10835 # include <limits.h>
10836 #else
10837 # include <assert.h>
10838 #endif
10839
10840 #undef dlopen
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char dlopen ();
10849 /* The GNU C library defines this for functions which it implements
10850 to always fail with ENOSYS. Some functions are actually named
10851 something starting with __ and the normal name is an alias. */
10852 #if defined __stub_dlopen || defined __stub___dlopen
10853 choke me
10854 #endif
10855
10856 int
10857 main ()
10858 {
10859 return dlopen ();
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10871 $as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext && {
10882 test "$cross_compiling" = yes ||
10883 $as_test_x conftest$ac_exeext
10884 }; then
10885 ac_cv_func_dlopen=yes
10886 else
10887 $as_echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_cv_func_dlopen=no
10891 fi
10892
10893 rm -rf conftest.dSYM
10894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10895 conftest$ac_exeext conftest.$ac_ext
10896 fi
10897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10898 $as_echo "$ac_cv_func_dlopen" >&6; }
10899 if test "x$ac_cv_func_dlopen" = x""yes; then
10900 lt_cv_dlopen="dlopen"
10901 else
10902 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldl $LIBS"
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char dlopen ();
10923 int
10924 main ()
10925 {
10926 return dlopen ();
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_link") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest$ac_exeext && {
10949 test "$cross_compiling" = yes ||
10950 $as_test_x conftest$ac_exeext
10951 }; then
10952 ac_cv_lib_dl_dlopen=yes
10953 else
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 ac_cv_lib_dl_dlopen=no
10958 fi
10959
10960 rm -rf conftest.dSYM
10961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10964 fi
10965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969 else
10970 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974 else
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006 $as_echo "$ac_try_echo") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext && {
11017 test "$cross_compiling" = yes ||
11018 $as_test_x conftest$ac_exeext
11019 }; then
11020 ac_cv_lib_svld_dlopen=yes
11021 else
11022 $as_echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_lib_svld_dlopen=no
11026 fi
11027
11028 rm -rf conftest.dSYM
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037 else
11038 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11042 else
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-ldld $LIBS"
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 char dld_link ();
11059 int
11060 main ()
11061 {
11062 return dld_link ();
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074 $as_echo "$ac_try_echo") >&5
11075 (eval "$ac_link") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext && {
11085 test "$cross_compiling" = yes ||
11086 $as_test_x conftest$ac_exeext
11087 }; then
11088 ac_cv_lib_dld_dld_link=yes
11089 else
11090 $as_echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 ac_cv_lib_dld_dld_link=no
11094 fi
11095
11096 rm -rf conftest.dSYM
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11103 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116
11117 fi
11118
11119
11120 fi
11121
11122 ;;
11123 esac
11124
11125 if test "x$lt_cv_dlopen" != xno; then
11126 enable_dlopen=yes
11127 else
11128 enable_dlopen=no
11129 fi
11130
11131 case $lt_cv_dlopen in
11132 dlopen)
11133 save_CPPFLAGS="$CPPFLAGS"
11134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11135
11136 save_LDFLAGS="$LDFLAGS"
11137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11138
11139 save_LIBS="$LIBS"
11140 LIBS="$lt_cv_dlopen_libs $LIBS"
11141
11142 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11144 if test "${lt_cv_dlopen_self+set}" = set; then
11145 $as_echo_n "(cached) " >&6
11146 else
11147 if test "$cross_compiling" = yes; then :
11148 lt_cv_dlopen_self=cross
11149 else
11150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151 lt_status=$lt_dlunknown
11152 cat > conftest.$ac_ext <<_LT_EOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11155
11156 #if HAVE_DLFCN_H
11157 #include <dlfcn.h>
11158 #endif
11159
11160 #include <stdio.h>
11161
11162 #ifdef RTLD_GLOBAL
11163 # define LT_DLGLOBAL RTLD_GLOBAL
11164 #else
11165 # ifdef DL_GLOBAL
11166 # define LT_DLGLOBAL DL_GLOBAL
11167 # else
11168 # define LT_DLGLOBAL 0
11169 # endif
11170 #endif
11171
11172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173 find out it does not work in some platform. */
11174 #ifndef LT_DLLAZY_OR_NOW
11175 # ifdef RTLD_LAZY
11176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11177 # else
11178 # ifdef DL_LAZY
11179 # define LT_DLLAZY_OR_NOW DL_LAZY
11180 # else
11181 # ifdef RTLD_NOW
11182 # define LT_DLLAZY_OR_NOW RTLD_NOW
11183 # else
11184 # ifdef DL_NOW
11185 # define LT_DLLAZY_OR_NOW DL_NOW
11186 # else
11187 # define LT_DLLAZY_OR_NOW 0
11188 # endif
11189 # endif
11190 # endif
11191 # endif
11192 #endif
11193
11194 void fnord() { int i=42;}
11195 int main ()
11196 {
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
11199
11200 if (self)
11201 {
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11204 /* dlclose (self); */
11205 }
11206 else
11207 puts (dlerror ());
11208
11209 return status;
11210 }
11211 _LT_EOF
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11214 ac_status=$?
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11217 (./conftest; exit; ) >&5 2>/dev/null
11218 lt_status=$?
11219 case x$lt_status in
11220 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11221 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11222 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11223 esac
11224 else :
11225 # compilation failed
11226 lt_cv_dlopen_self=no
11227 fi
11228 fi
11229 rm -fr conftest*
11230
11231
11232 fi
11233 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11234 $as_echo "$lt_cv_dlopen_self" >&6; }
11235
11236 if test "x$lt_cv_dlopen_self" = xyes; then
11237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11238 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11239 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11240 if test "${lt_cv_dlopen_self_static+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self_static=cross
11245 else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
11249 #line 11249 "configure"
11250 #include "confdefs.h"
11251
11252 #if HAVE_DLFCN_H
11253 #include <dlfcn.h>
11254 #endif
11255
11256 #include <stdio.h>
11257
11258 #ifdef RTLD_GLOBAL
11259 # define LT_DLGLOBAL RTLD_GLOBAL
11260 #else
11261 # ifdef DL_GLOBAL
11262 # define LT_DLGLOBAL DL_GLOBAL
11263 # else
11264 # define LT_DLGLOBAL 0
11265 # endif
11266 #endif
11267
11268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270 #ifndef LT_DLLAZY_OR_NOW
11271 # ifdef RTLD_LAZY
11272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11273 # else
11274 # ifdef DL_LAZY
11275 # define LT_DLLAZY_OR_NOW DL_LAZY
11276 # else
11277 # ifdef RTLD_NOW
11278 # define LT_DLLAZY_OR_NOW RTLD_NOW
11279 # else
11280 # ifdef DL_NOW
11281 # define LT_DLLAZY_OR_NOW DL_NOW
11282 # else
11283 # define LT_DLLAZY_OR_NOW 0
11284 # endif
11285 # endif
11286 # endif
11287 # endif
11288 #endif
11289
11290 void fnord() { int i=42;}
11291 int main ()
11292 {
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11295
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306 }
11307 _LT_EOF
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self_static=no
11323 fi
11324 fi
11325 rm -fr conftest*
11326
11327
11328 fi
11329 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11331 fi
11332
11333 CPPFLAGS="$save_CPPFLAGS"
11334 LDFLAGS="$save_LDFLAGS"
11335 LIBS="$save_LIBS"
11336 ;;
11337 esac
11338
11339 case $lt_cv_dlopen_self in
11340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341 *) enable_dlopen_self=unknown ;;
11342 esac
11343
11344 case $lt_cv_dlopen_self_static in
11345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346 *) enable_dlopen_self_static=unknown ;;
11347 esac
11348 fi
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366 striplib=
11367 old_striplib=
11368 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 # FIXME - insert some real tests, host_os isn't really good enough
11377 case $host_os in
11378 darwin*)
11379 if test -n "$STRIP" ; then
11380 striplib="$STRIP -x"
11381 old_striplib="$STRIP -S"
11382 { $as_echo "$as_me:$LINENO: result: yes" >&5
11383 $as_echo "yes" >&6; }
11384 else
11385 { $as_echo "$as_me:$LINENO: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 ;;
11389 *)
11390 { $as_echo "$as_me:$LINENO: result: no" >&5
11391 $as_echo "no" >&6; }
11392 ;;
11393 esac
11394 fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407 # Report which library types will actually be built
11408 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11411 $as_echo "$can_build_shared" >&6; }
11412
11413 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11414 $as_echo_n "checking whether to build shared libraries... " >&6; }
11415 test "$can_build_shared" = "no" && enable_shared=no
11416
11417 # On AIX, shared libraries and static libraries use the same namespace, and
11418 # are all built from PIC.
11419 case $host_os in
11420 aix3*)
11421 test "$enable_shared" = yes && enable_static=no
11422 if test -n "$RANLIB"; then
11423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424 postinstall_cmds='$RANLIB $lib'
11425 fi
11426 ;;
11427
11428 aix[4-9]*)
11429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430 test "$enable_shared" = yes && enable_static=no
11431 fi
11432 ;;
11433 esac
11434 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11435 $as_echo "$enable_shared" >&6; }
11436
11437 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11438 $as_echo_n "checking whether to build static libraries... " >&6; }
11439 # Make sure either enable_shared or enable_static is yes.
11440 test "$enable_shared" = yes || enable_static=yes
11441 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11442 $as_echo "$enable_static" >&6; }
11443
11444
11445
11446
11447 fi
11448 ac_ext=c
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
11454 CC="$lt_save_CC"
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468 ac_config_commands="$ac_config_commands libtool"
11469
11470
11471
11472
11473 # Only expand once:
11474
11475
11476
11477
11478 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11479 $as_echo_n "checking spl license... " >&6; }
11480 LICENSE=GPL
11481 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11482 $as_echo "$LICENSE" >&6; }
11483 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11484
11485
11486
11487
11488 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11489 $as_echo_n "checking linux distribution... " >&6; }
11490 if test -f /etc/redhat-release ; then
11491 VENDOR=redhat ;
11492 elif test -f /etc/fedora-release ; then
11493 VENDOR=fedora ;
11494 elif test -f /etc/arch-release ; then
11495 VENDOR=arch ;
11496 elif test -f /etc/lsb-release ; then
11497 VENDOR=ubuntu ;
11498 elif test -f /etc/debian_version ; then
11499 VENDOR=debian ;
11500 elif test -f /etc/SuSE-release ; then
11501 VENDOR=sles ;
11502 elif test -f /etc/slackware-version ; then
11503 VENDOR=slackware ;
11504 elif test -f /etc/gentoo-release ; then
11505 VENDOR=gentoo ;
11506 else
11507 VENDOR= ;
11508 fi
11509 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11510 $as_echo "$VENDOR" >&6; }
11511
11512
11513 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11514 $as_echo_n "checking default package type... " >&6; }
11515 case "$VENDOR" in
11516 fedora) DEFAULT_PACKAGE=rpm ;;
11517 redhat) DEFAULT_PACKAGE=rpm ;;
11518 sles) DEFAULT_PACKAGE=rpm ;;
11519 ubuntu) DEFAULT_PACKAGE=deb ;;
11520 debian) DEFAULT_PACKAGE=deb ;;
11521 slackware) DEFAULT_PACKAGE=tgz ;;
11522 arch) DEFAULT_PACKAGE=arch;;
11523 *) DEFAULT_PACKAGE=rpm ;;
11524 esac
11525
11526 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11527 $as_echo "$DEFAULT_PACKAGE" >&6; }
11528
11529
11530
11531 RPM=rpm
11532 RPMBUILD=rpmbuild
11533
11534 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11535 $as_echo_n "checking whether $RPM is available... " >&6; }
11536 if tmp=$($RPM --version 2>/dev/null); then
11537
11538 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11539 HAVE_RPM=yes
11540 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11541 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11542
11543 else
11544
11545 HAVE_RPM=no
11546 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11547 $as_echo "$HAVE_RPM" >&6; }
11548
11549 fi
11550
11551
11552 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11553 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11554 if tmp=$($RPMBUILD --version 2>/dev/null); then
11555
11556 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11557 HAVE_RPMBUILD=yes
11558 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11559 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11560
11561 else
11562
11563 HAVE_RPMBUILD=no
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11565 $as_echo "$HAVE_RPMBUILD" >&6; }
11566
11567 fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579 DPKG=dpkg
11580 DPKGBUILD=dpkg-buildpackage
11581
11582 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11583 $as_echo_n "checking whether $DPKG is available... " >&6; }
11584 if tmp=$($DPKG --version 2>/dev/null); then
11585
11586 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11587 HAVE_DPKG=yes
11588 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11589 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11590
11591 else
11592
11593 HAVE_DPKG=no
11594 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11595 $as_echo "$HAVE_DPKG" >&6; }
11596
11597 fi
11598
11599
11600 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11601 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11602 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11603
11604 DPKGBUILD_VERSION=$(echo $tmp | \
11605 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11606 HAVE_DPKGBUILD=yes
11607 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11608 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11609
11610 else
11611
11612 HAVE_DPKGBUILD=no
11613 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11614 $as_echo "$HAVE_DPKGBUILD" >&6; }
11615
11616 fi
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628 ALIEN=alien
11629
11630 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11631 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11632 if tmp=$($ALIEN --version 2>/dev/null); then
11633
11634 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11635 HAVE_ALIEN=yes
11636 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11637 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11638
11639 else
11640
11641 HAVE_ALIEN=no
11642 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11643 $as_echo "$HAVE_ALIEN" >&6; }
11644
11645 fi
11646
11647
11648
11649
11650
11651
11652
11653 if test "$VENDOR" = "arch"; then
11654
11655 PACMAN=pacman
11656 MAKEPKG=makepkg
11657
11658 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11659 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11660 tmp=$($PACMAN --version 2>/dev/null)
11661 if test -n "$tmp"; then
11662
11663 PACMAN_VERSION=$(echo $tmp |
11664 $AWK '/Pacman/ { print $3 }' |
11665 $SED 's/^v//')
11666 HAVE_PACMAN=yes
11667 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11668 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11669
11670 else
11671
11672 HAVE_PACMAN=no
11673 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11674 $as_echo "$HAVE_PACMAN" >&6; }
11675
11676 fi
11677
11678
11679 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11680 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11681 tmp=$($MAKEPKG --version 2>/dev/null)
11682 if test -n "$tmp"; then
11683
11684 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11685 HAVE_MAKEPKG=yes
11686 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11687 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11688
11689 else
11690
11691 HAVE_MAKEPKG=no
11692 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11693 $as_echo "$HAVE_MAKEPKG" >&6; }
11694
11695 fi
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 fi
11707
11708
11709
11710 SPL_CONFIG=all
11711
11712 # Check whether --with-config was given.
11713 if test "${with_config+set}" = set; then
11714 withval=$with_config; SPL_CONFIG="$withval"
11715 fi
11716
11717
11718 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11719 $as_echo_n "checking spl config... " >&6; }
11720 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11721 $as_echo "$SPL_CONFIG" >&6; };
11722
11723
11724 case "$SPL_CONFIG" in
11725 kernel)
11726
11727
11728 # Check whether --with-linux was given.
11729 if test "${with_linux+set}" = set; then
11730 withval=$with_linux; kernelsrc="$withval"
11731 fi
11732
11733
11734
11735 # Check whether --with-linux-obj was given.
11736 if test "${with_linux_obj+set}" = set; then
11737 withval=$with_linux_obj; kernelbuild="$withval"
11738 fi
11739
11740
11741 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11742 $as_echo_n "checking kernel source directory... " >&6; }
11743 if test -z "$kernelsrc"; then
11744 if test -e "/lib/modules/$(uname -r)/source"; then
11745 headersdir="/lib/modules/$(uname -r)/source"
11746 sourcelink=$(readlink -f "$headersdir")
11747 elif test -e "/lib/modules/$(uname -r)/build"; then
11748 headersdir="/lib/modules/$(uname -r)/build"
11749 sourcelink=$(readlink -f "$headersdir")
11750 else
11751 sourcelink=$(ls -1d /usr/src/kernels/* \
11752 /usr/src/linux-* \
11753 2>/dev/null | grep -v obj | tail -1)
11754 fi
11755
11756 if test -n "$sourcelink" && test -e ${sourcelink}; then
11757 kernelsrc=`readlink -f ${sourcelink}`
11758 else
11759 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11760 $as_echo "Not found" >&6; }
11761 { { $as_echo "$as_me:$LINENO: error:
11762 *** Please make sure the kernel devel package for your distribution
11763 *** is installed then try again. If that fails you can specify the
11764 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11765 $as_echo "$as_me: error:
11766 *** Please make sure the kernel devel package for your distribution
11767 *** is installed then try again. If that fails you can specify the
11768 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11769 { (exit 1); exit 1; }; }
11770 fi
11771 else
11772 if test "$kernelsrc" = "NONE"; then
11773 kernsrcver=NONE
11774 fi
11775 fi
11776
11777 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11778 $as_echo "$kernelsrc" >&6; }
11779 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11780 $as_echo_n "checking kernel build directory... " >&6; }
11781 if test -z "$kernelbuild"; then
11782 if test -e "/lib/modules/$(uname -r)/build"; then
11783 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11784 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11785 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11786 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11787 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11788 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11789 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11790 else
11791 kernelbuild=${kernelsrc}
11792 fi
11793 fi
11794 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11795 $as_echo "$kernelbuild" >&6; }
11796
11797 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11798 $as_echo_n "checking kernel source version... " >&6; }
11799 utsrelease1=$kernelbuild/include/linux/version.h
11800 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11801 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11802 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11803 utsrelease=linux/version.h
11804 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11805 utsrelease=linux/utsrelease.h
11806 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11807 utsrelease=generated/utsrelease.h
11808 fi
11809
11810 if test "$utsrelease"; then
11811 kernsrcver=`(echo "#include <$utsrelease>";
11812 echo "kernsrcver=UTS_RELEASE") |
11813 cpp -I $kernelbuild/include |
11814 grep "^kernsrcver=" | cut -d \" -f 2`
11815
11816 if test -z "$kernsrcver"; then
11817 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11818 $as_echo "Not found" >&6; }
11819 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11820 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11821 { (exit 1); exit 1; }; }
11822 fi
11823 else
11824 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11825 $as_echo "Not found" >&6; }
11826 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11827 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11828 { (exit 1); exit 1; }; }
11829 fi
11830
11831 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11832 $as_echo "$kernsrcver" >&6; }
11833
11834 LINUX=${kernelsrc}
11835 LINUX_OBJ=${kernelbuild}
11836 LINUX_VERSION=${kernsrcver}
11837
11838
11839
11840
11841
11842
11843 modpost=$LINUX/scripts/Makefile.modpost
11844 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11845 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11846 if test -f "$modpost"; then
11847 if grep -q Modules.symvers $modpost; then
11848 LINUX_SYMBOLS=Modules.symvers
11849 else
11850 LINUX_SYMBOLS=Module.symvers
11851 fi
11852
11853 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11854 { { $as_echo "$as_me:$LINENO: error:
11855 *** Please make sure the kernel devel package for your distribution
11856 *** is installed. If your building with a custom kernel make sure the
11857 *** kernel is configured, built, and the '--with-linux=PATH' configure
11858 *** option refers to the location of the kernel source." >&5
11859 $as_echo "$as_me: error:
11860 *** Please make sure the kernel devel package for your distribution
11861 *** is installed. If your building with a custom kernel make sure the
11862 *** kernel is configured, built, and the '--with-linux=PATH' configure
11863 *** option refers to the location of the kernel source." >&2;}
11864 { (exit 1); exit 1; }; }
11865 fi
11866 else
11867 LINUX_SYMBOLS=NONE
11868 fi
11869 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11870 $as_echo "$LINUX_SYMBOLS" >&6; }
11871
11872
11873
11874
11875 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11876 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11877
11878
11879 cat confdefs.h - <<_ACEOF >conftest.c
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885
11886
11887 #include <linux/module.h>
11888
11889 int
11890 main (void)
11891 {
11892
11893 #ifndef CONFIG_PREEMPT
11894 #error CONFIG_PREEMPT not #defined
11895 #endif
11896
11897 ;
11898 return 0;
11899 }
11900
11901 _ACEOF
11902
11903
11904 rm -Rf build && mkdir -p build
11905 echo "obj-m := conftest.o" >build/Makefile
11906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11909 ac_status=$?
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; }; then
11917
11918 { $as_echo "$as_me:$LINENO: result: yes" >&5
11919 $as_echo "yes" >&6; }
11920 { { $as_echo "$as_me:$LINENO: error:
11921 *** Kernel built with CONFIG_PREEMPT which is not supported.
11922 ** You must rebuild your kernel without this option." >&5
11923 $as_echo "$as_me: error:
11924 *** Kernel built with CONFIG_PREEMPT which is not supported.
11925 ** You must rebuild your kernel without this option." >&2;}
11926 { (exit 1); exit 1; }; }
11927
11928 else
11929 $as_echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 { $as_echo "$as_me:$LINENO: result: no" >&5
11933 $as_echo "no" >&6; }
11934
11935
11936
11937
11938 fi
11939
11940 rm -Rf build
11941
11942
11943
11944
11945
11946 if test "${LINUX_OBJ}" != "${LINUX}"; then
11947 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11948 fi
11949
11950
11951 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11952
11953
11954
11955 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11956 $as_echo_n "checking whether debugging is enabled... " >&6; }
11957 # Check whether --enable-debug was given.
11958 if test "${enable_debug+set}" = set; then
11959 enableval=$enable_debug;
11960 else
11961 enable_debug=no
11962 fi
11963
11964
11965 if test "x$enable_debug" = xyes; then
11966
11967 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11968 DEBUG_CFLAGS="-DDEBUG -Werror"
11969
11970 else
11971
11972 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11973 DEBUG_CFLAGS="-DNDEBUG"
11974
11975 fi
11976
11977
11978
11979 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11980 $as_echo "$enable_debug" >&6; }
11981
11982
11983 # Check whether --enable-debug-kmem was given.
11984 if test "${enable_debug_kmem+set}" = set; then
11985 enableval=$enable_debug_kmem;
11986 else
11987 enable_debug_kmem=yes
11988 fi
11989
11990
11991 if test "x$enable_debug_kmem" = xyes; then
11992
11993 cat >>confdefs.h <<\_ACEOF
11994 #define DEBUG_KMEM 1
11995 _ACEOF
11996
11997 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11998 fi
11999
12000
12001 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12002 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12003 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12004 $as_echo "$enable_debug_kmem" >&6; }
12005
12006
12007 # Check whether --enable-debug-kmem-tracking was given.
12008 if test "${enable_debug_kmem_tracking+set}" = set; then
12009 enableval=$enable_debug_kmem_tracking;
12010 else
12011 enable_debug_kmem_tracking=no
12012 fi
12013
12014
12015 if test "x$enable_debug_kmem_tracking" = xyes; then
12016
12017 cat >>confdefs.h <<\_ACEOF
12018 #define DEBUG_KMEM_TRACKING 1
12019 _ACEOF
12020
12021 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12022 fi
12023
12024
12025 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12026 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12027 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12028 $as_echo "$enable_debug_kmem_tracking" >&6; }
12029
12030
12031 # Check whether --enable-atomic-spinlocks was given.
12032 if test "${enable_atomic_spinlocks+set}" = set; then
12033 enableval=$enable_atomic_spinlocks;
12034 else
12035 enable_atomic_spinlocks=check
12036 fi
12037
12038
12039
12040
12041 cat confdefs.h - <<_ACEOF >conftest.c
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047
12048
12049 #include <asm/atomic.h>
12050
12051 int
12052 main (void)
12053 {
12054
12055 atomic64_t *ptr __attribute__ ((unused));
12056
12057 ;
12058 return 0;
12059 }
12060
12061 _ACEOF
12062
12063
12064 rm -Rf build && mkdir -p build
12065 echo "obj-m := conftest.o" >build/Makefile
12066 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077
12078 have_atomic64_t=yes
12079
12080 cat >>confdefs.h <<\_ACEOF
12081 #define HAVE_ATOMIC64_T 1
12082 _ACEOF
12083
12084
12085 else
12086 $as_echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 have_atomic64_t=no
12090
12091
12092
12093 fi
12094
12095 rm -Rf build
12096
12097
12098
12099 if test "x$enable_atomic_spinlocks" = xcheck; then
12100
12101 if test "x$have_atomic64_t" = xyes; then
12102
12103 enable_atomic_spinlocks=no
12104
12105 else
12106
12107 enable_atomic_spinlocks=yes
12108
12109 fi
12110
12111
12112 fi
12113
12114
12115 if test "x$enable_atomic_spinlocks" = xyes; then
12116
12117
12118 cat >>confdefs.h <<\_ACEOF
12119 #define ATOMIC_SPINLOCK 1
12120 _ACEOF
12121
12122
12123 else
12124
12125 if test "x$have_atomic64_t" = xno; then
12126
12127 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12129 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12130 See \`config.log' for more details." >&5
12131 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12132 See \`config.log' for more details." >&2;}
12133 { (exit 1); exit 1; }; }; }
12134
12135 fi
12136
12137
12138 fi
12139
12140
12141 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12142 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12143 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12144 $as_echo "$enable_atomic_spinlocks" >&6; }
12145
12146 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12147 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12148 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12149 $as_echo "$have_atomic64_t" >&6; }
12150
12151 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12152 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12153
12154
12155 cat confdefs.h - <<_ACEOF >conftest.c
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161
12162
12163 #include <asm/atomic.h>
12164 #include <asm/system.h>
12165
12166 int
12167 main (void)
12168 {
12169
12170 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12171
12172 ;
12173 return 0;
12174 }
12175
12176 _ACEOF
12177
12178
12179 rm -Rf build && mkdir -p build
12180 echo "obj-m := conftest.o" >build/Makefile
12181 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192
12193 { $as_echo "$as_me:$LINENO: result: yes" >&5
12194 $as_echo "yes" >&6; }
12195
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_ATOMIC64_CMPXCHG 1
12198 _ACEOF
12199
12200
12201 else
12202 $as_echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 { $as_echo "$as_me:$LINENO: result: no" >&5
12206 $as_echo "no" >&6; }
12207
12208
12209
12210 fi
12211
12212 rm -Rf build
12213
12214
12215
12216 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12217 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12218
12219
12220 cat confdefs.h - <<_ACEOF >conftest.c
12221 /* confdefs.h. */
12222 _ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226
12227
12228 #include <asm/atomic.h>
12229
12230 int
12231 main (void)
12232 {
12233
12234 atomic64_xchg((atomic64_t *)NULL, 0);
12235
12236 ;
12237 return 0;
12238 }
12239
12240 _ACEOF
12241
12242
12243 rm -Rf build && mkdir -p build
12244 echo "obj-m := conftest.o" >build/Makefile
12245 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12253 ac_status=$?
12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); }; }; then
12256
12257 { $as_echo "$as_me:$LINENO: result: yes" >&5
12258 $as_echo "yes" >&6; }
12259
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_ATOMIC64_XCHG 1
12262 _ACEOF
12263
12264
12265 else
12266 $as_echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 { $as_echo "$as_me:$LINENO: result: no" >&5
12270 $as_echo "no" >&6; }
12271
12272
12273
12274 fi
12275
12276 rm -Rf build
12277
12278
12279
12280 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12281 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12282
12283
12284 cat confdefs.h - <<_ACEOF >conftest.c
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290
12291
12292 #include <linux/types.h>
12293
12294 int
12295 main (void)
12296 {
12297
12298 uintptr_t *ptr __attribute__ ((unused));
12299
12300 ;
12301 return 0;
12302 }
12303
12304 _ACEOF
12305
12306
12307 rm -Rf build && mkdir -p build
12308 echo "obj-m := conftest.o" >build/Makefile
12309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320
12321 { $as_echo "$as_me:$LINENO: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_UINTPTR_T 1
12326 _ACEOF
12327
12328
12329 else
12330 $as_echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 { $as_echo "$as_me:$LINENO: result: no" >&5
12334 $as_echo "no" >&6; }
12335
12336
12337
12338 fi
12339
12340 rm -Rf build
12341
12342
12343
12344 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12345 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12346
12347
12348 cat confdefs.h - <<_ACEOF >conftest.c
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354
12355
12356 #include <linux/workqueue.h>
12357
12358 int
12359 main (void)
12360 {
12361
12362 struct work_struct work __attribute__ ((unused));
12363 INIT_WORK(&work, NULL, NULL);
12364
12365 ;
12366 return 0;
12367 }
12368
12369 _ACEOF
12370
12371
12372 rm -Rf build && mkdir -p build
12373 echo "obj-m := conftest.o" >build/Makefile
12374 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12382 ac_status=$?
12383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385
12386 { $as_echo "$as_me:$LINENO: result: yes" >&5
12387 $as_echo "yes" >&6; }
12388
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_3ARGS_INIT_WORK 1
12391 _ACEOF
12392
12393
12394 else
12395 $as_echo "$as_me: failed program was:" >&5
12396 sed 's/^/| /' conftest.$ac_ext >&5
12397
12398 { $as_echo "$as_me:$LINENO: result: no" >&5
12399 $as_echo "no" >&6; }
12400
12401
12402
12403 fi
12404
12405 rm -Rf build
12406
12407
12408
12409 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12410 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12411
12412
12413 cat confdefs.h - <<_ACEOF >conftest.c
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419
12420
12421 #include <linux/sysctl.h>
12422
12423 int
12424 main (void)
12425 {
12426
12427 (void) register_sysctl_table(NULL, 0);
12428
12429 ;
12430 return 0;
12431 }
12432
12433 _ACEOF
12434
12435
12436 rm -Rf build && mkdir -p build
12437 echo "obj-m := conftest.o" >build/Makefile
12438 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449
12450 { $as_echo "$as_me:$LINENO: result: yes" >&5
12451 $as_echo "yes" >&6; }
12452
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12455 _ACEOF
12456
12457
12458 else
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 { $as_echo "$as_me:$LINENO: result: no" >&5
12463 $as_echo "no" >&6; }
12464
12465
12466
12467 fi
12468
12469 rm -Rf build
12470
12471
12472
12473
12474 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12475 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12476
12477
12478 cat confdefs.h - <<_ACEOF >conftest.c
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484
12485
12486 #include <linux/mm.h>
12487
12488 int
12489 main (void)
12490 {
12491
12492 return set_shrinker(DEFAULT_SEEKS, NULL);
12493
12494 ;
12495 return 0;
12496 }
12497
12498 _ACEOF
12499
12500
12501 rm -Rf build && mkdir -p build
12502 echo "obj-m := conftest.o" >build/Makefile
12503 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514
12515 { $as_echo "$as_me:$LINENO: result: yes" >&5
12516 $as_echo "yes" >&6; }
12517
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_SET_SHRINKER 1
12520 _ACEOF
12521
12522
12523 else
12524 $as_echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528 $as_echo "no" >&6; }
12529
12530
12531
12532 fi
12533
12534 rm -Rf build
12535
12536
12537
12538 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12539 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12540 tmp_flags="$EXTRA_KCFLAGS"
12541 EXTRA_KCFLAGS="-Werror"
12542
12543
12544 cat confdefs.h - <<_ACEOF >conftest.c
12545 /* confdefs.h. */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550
12551
12552 #include <linux/mm.h>
12553
12554 int shrinker_cb(struct shrinker *, int, unsigned int);
12555
12556 int
12557 main (void)
12558 {
12559
12560 struct shrinker cache_shrinker = {
12561 .shrink = shrinker_cb,
12562 .seeks = DEFAULT_SEEKS,
12563 };
12564 register_shrinker(&cache_shrinker);
12565
12566 ;
12567 return 0;
12568 }
12569
12570 _ACEOF
12571
12572
12573 rm -Rf build && mkdir -p build
12574 echo "obj-m := conftest.o" >build/Makefile
12575 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
12586
12587 { $as_echo "$as_me:$LINENO: result: yes" >&5
12588 $as_echo "yes" >&6; }
12589
12590 cat >>confdefs.h <<\_ACEOF
12591 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12592 _ACEOF
12593
12594
12595 else
12596 $as_echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 { $as_echo "$as_me:$LINENO: result: no" >&5
12600 $as_echo "no" >&6; }
12601
12602
12603
12604 fi
12605
12606 rm -Rf build
12607
12608
12609 EXTRA_KCFLAGS="$tmp_flags"
12610
12611 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12612 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12613
12614
12615 cat confdefs.h - <<_ACEOF >conftest.c
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621
12622
12623 #include <linux/namei.h>
12624
12625 int
12626 main (void)
12627 {
12628
12629 struct nameidata nd __attribute__ ((unused));
12630
12631 nd.path.mnt = NULL;
12632 nd.path.dentry = NULL;
12633
12634 ;
12635 return 0;
12636 }
12637
12638 _ACEOF
12639
12640
12641 rm -Rf build && mkdir -p build
12642 echo "obj-m := conftest.o" >build/Makefile
12643 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654
12655 { $as_echo "$as_me:$LINENO: result: yes" >&5
12656 $as_echo "yes" >&6; }
12657
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_PATH_IN_NAMEIDATA 1
12660 _ACEOF
12661
12662
12663 else
12664 $as_echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12669
12670
12671
12672 fi
12673
12674 rm -Rf build
12675
12676
12677
12678
12679 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12680 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12681 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12682 $LINUX_OBJ/Module*.symvers 2>/dev/null
12683 rc=$?
12684 if test $rc -ne 0; then
12685 export=0
12686 for file in kernel/sched.c; do
12687 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12688 "$LINUX_OBJ/$file" 2>/dev/null
12689 rc=$?
12690 if test $rc -eq 0; then
12691 export=1
12692 break;
12693 fi
12694 done
12695 if test $export -eq 0; then
12696 { $as_echo "$as_me:$LINENO: result: no" >&5
12697 $as_echo "no" >&6; }
12698
12699 else
12700 { $as_echo "$as_me:$LINENO: result: yes" >&5
12701 $as_echo "yes" >&6; }
12702
12703 cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_TASK_CURR 1
12705 _ACEOF
12706
12707 fi
12708 else
12709 { $as_echo "$as_me:$LINENO: result: yes" >&5
12710 $as_echo "yes" >&6; }
12711
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_TASK_CURR 1
12714 _ACEOF
12715
12716 fi
12717
12718
12719 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12720 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12721
12722
12723 cat confdefs.h - <<_ACEOF >conftest.c
12724 /* confdefs.h. */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729
12730
12731 #include <linux/sysctl.h>
12732
12733 int
12734 main (void)
12735 {
12736
12737 #ifndef CTL_UNNUMBERED
12738 #error CTL_UNNUMBERED undefined
12739 #endif
12740
12741 ;
12742 return 0;
12743 }
12744
12745 _ACEOF
12746
12747
12748 rm -Rf build && mkdir -p build
12749 echo "obj-m := conftest.o" >build/Makefile
12750 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761
12762 { $as_echo "$as_me:$LINENO: result: yes" >&5
12763 $as_echo "yes" >&6; }
12764
12765 cat >>confdefs.h <<\_ACEOF
12766 #define HAVE_CTL_UNNUMBERED 1
12767 _ACEOF
12768
12769
12770 else
12771 $as_echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 { $as_echo "$as_me:$LINENO: result: no" >&5
12775 $as_echo "no" >&6; }
12776
12777
12778
12779 fi
12780
12781 rm -Rf build
12782
12783
12784
12785
12786 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12787 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12788
12789
12790 cat confdefs.h - <<_ACEOF >conftest.c
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796
12797
12798 #include <linux/sysctl.h>
12799
12800 int
12801 main (void)
12802 {
12803
12804 struct ctl_table ctl __attribute__ ((unused));
12805 ctl.ctl_name = 0;
12806
12807 ;
12808 return 0;
12809 }
12810
12811 _ACEOF
12812
12813
12814 rm -Rf build && mkdir -p build
12815 echo "obj-m := conftest.o" >build/Makefile
12816 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; }; then
12827
12828 { $as_echo "$as_me:$LINENO: result: yes" >&5
12829 $as_echo "yes" >&6; }
12830
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_CTL_NAME 1
12833 _ACEOF
12834
12835
12836 else
12837 $as_echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12839
12840 { $as_echo "$as_me:$LINENO: result: no" >&5
12841 $as_echo "no" >&6; }
12842
12843
12844
12845 fi
12846
12847 rm -Rf build
12848
12849
12850
12851 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12852 $as_echo_n "checking whether fls64() is available... " >&6; }
12853
12854
12855 cat confdefs.h - <<_ACEOF >conftest.c
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861
12862
12863 #include <linux/bitops.h>
12864
12865 int
12866 main (void)
12867 {
12868
12869 return fls64(0);
12870
12871 ;
12872 return 0;
12873 }
12874
12875 _ACEOF
12876
12877
12878 rm -Rf build && mkdir -p build
12879 echo "obj-m := conftest.o" >build/Makefile
12880 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891
12892 { $as_echo "$as_me:$LINENO: result: yes" >&5
12893 $as_echo "yes" >&6; }
12894
12895 cat >>confdefs.h <<\_ACEOF
12896 #define HAVE_FLS64 1
12897 _ACEOF
12898
12899
12900 else
12901 $as_echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 { $as_echo "$as_me:$LINENO: result: no" >&5
12905 $as_echo "no" >&6; }
12906
12907
12908
12909 fi
12910
12911 rm -Rf build
12912
12913
12914
12915
12916 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12917 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12918 grep -q -E '[[:space:]]device_create[[:space:]]' \
12919 $LINUX_OBJ/Module*.symvers 2>/dev/null
12920 rc=$?
12921 if test $rc -ne 0; then
12922 export=0
12923 for file in drivers/base/core.c; do
12924 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12925 "$LINUX_OBJ/$file" 2>/dev/null
12926 rc=$?
12927 if test $rc -eq 0; then
12928 export=1
12929 break;
12930 fi
12931 done
12932 if test $export -eq 0; then
12933 { $as_echo "$as_me:$LINENO: result: no" >&5
12934 $as_echo "no" >&6; }
12935
12936 else
12937 { $as_echo "$as_me:$LINENO: result: yes" >&5
12938 $as_echo "yes" >&6; }
12939
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_DEVICE_CREATE 1
12942 _ACEOF
12943
12944 fi
12945 else
12946 { $as_echo "$as_me:$LINENO: result: yes" >&5
12947 $as_echo "yes" >&6; }
12948
12949 cat >>confdefs.h <<\_ACEOF
12950 #define HAVE_DEVICE_CREATE 1
12951 _ACEOF
12952
12953 fi
12954
12955
12956
12957 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12958 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12959 tmp_flags="$EXTRA_KCFLAGS"
12960 EXTRA_KCFLAGS="-Werror"
12961
12962
12963 cat confdefs.h - <<_ACEOF >conftest.c
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969
12970
12971 #include <linux/device.h>
12972
12973 int
12974 main (void)
12975 {
12976
12977 device_create(NULL, NULL, 0, NULL, "%d", 1);
12978
12979 ;
12980 return 0;
12981 }
12982
12983 _ACEOF
12984
12985
12986 rm -Rf build && mkdir -p build
12987 echo "obj-m := conftest.o" >build/Makefile
12988 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999
13000 { $as_echo "$as_me:$LINENO: result: yes" >&5
13001 $as_echo "yes" >&6; }
13002
13003 cat >>confdefs.h <<\_ACEOF
13004 #define HAVE_5ARGS_DEVICE_CREATE 1
13005 _ACEOF
13006
13007
13008 else
13009 $as_echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012 { $as_echo "$as_me:$LINENO: result: no" >&5
13013 $as_echo "no" >&6; }
13014
13015
13016
13017 fi
13018
13019 rm -Rf build
13020
13021
13022 EXTRA_KCFLAGS="$tmp_flags"
13023
13024
13025 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13026 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
13027 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13028 $LINUX_OBJ/Module*.symvers 2>/dev/null
13029 rc=$?
13030 if test $rc -ne 0; then
13031 export=0
13032 for file in drivers/base/class.c; do
13033 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13034 "$LINUX_OBJ/$file" 2>/dev/null
13035 rc=$?
13036 if test $rc -eq 0; then
13037 export=1
13038 break;
13039 fi
13040 done
13041 if test $export -eq 0; then
13042 { $as_echo "$as_me:$LINENO: result: no" >&5
13043 $as_echo "no" >&6; }
13044
13045 else
13046 { $as_echo "$as_me:$LINENO: result: yes" >&5
13047 $as_echo "yes" >&6; }
13048
13049 cat >>confdefs.h <<\_ACEOF
13050 #define HAVE_CLASS_DEVICE_CREATE 1
13051 _ACEOF
13052
13053 fi
13054 else
13055 { $as_echo "$as_me:$LINENO: result: yes" >&5
13056 $as_echo "yes" >&6; }
13057
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_CLASS_DEVICE_CREATE 1
13060 _ACEOF
13061
13062 fi
13063
13064
13065
13066 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13067 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13068 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13069 $LINUX_OBJ/Module*.symvers 2>/dev/null
13070 rc=$?
13071 if test $rc -ne 0; then
13072 export=0
13073 for file in kernel/time.c; do
13074 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13075 "$LINUX_OBJ/$file" 2>/dev/null
13076 rc=$?
13077 if test $rc -eq 0; then
13078 export=1
13079 break;
13080 fi
13081 done
13082 if test $export -eq 0; then
13083 { $as_echo "$as_me:$LINENO: result: no" >&5
13084 $as_echo "no" >&6; }
13085
13086 else
13087 { $as_echo "$as_me:$LINENO: result: yes" >&5
13088 $as_echo "yes" >&6; }
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13092 _ACEOF
13093
13094 fi
13095 else
13096 { $as_echo "$as_me:$LINENO: result: yes" >&5
13097 $as_echo "yes" >&6; }
13098
13099 cat >>confdefs.h <<\_ACEOF
13100 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13101 _ACEOF
13102
13103 fi
13104
13105
13106
13107 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13108 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13109
13110
13111 cat confdefs.h - <<_ACEOF >conftest.c
13112 /* confdefs.h. */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117
13118
13119 #include <linux/time.h>
13120 void set_normalized_timespec(struct timespec *ts,
13121 time_t sec, long nsec) { }
13122
13123 int
13124 main (void)
13125 {
13126
13127 ;
13128 return 0;
13129 }
13130
13131 _ACEOF
13132
13133
13134 rm -Rf build && mkdir -p build
13135 echo "obj-m := conftest.o" >build/Makefile
13136 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147
13148 { $as_echo "$as_me:$LINENO: result: no" >&5
13149 $as_echo "no" >&6; }
13150
13151 else
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155 { $as_echo "$as_me:$LINENO: result: yes" >&5
13156 $as_echo "yes" >&6; }
13157
13158 cat >>confdefs.h <<\_ACEOF
13159 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13160 _ACEOF
13161
13162
13163
13164
13165 fi
13166
13167 rm -Rf build
13168
13169
13170
13171
13172 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13173 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
13174
13175
13176 cat confdefs.h - <<_ACEOF >conftest.c
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182
13183
13184 #include <linux/time.h>
13185
13186 int
13187 main (void)
13188 {
13189
13190 struct timespec a = { 0 };
13191 struct timespec b = { 0 };
13192 struct timespec c __attribute__ ((unused));
13193 c = timespec_sub(a, b);
13194
13195 ;
13196 return 0;
13197 }
13198
13199 _ACEOF
13200
13201
13202 rm -Rf build && mkdir -p build
13203 echo "obj-m := conftest.o" >build/Makefile
13204 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13207 ac_status=$?
13208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215
13216 { $as_echo "$as_me:$LINENO: result: yes" >&5
13217 $as_echo "yes" >&6; }
13218
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_TIMESPEC_SUB 1
13221 _ACEOF
13222
13223
13224 else
13225 $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 { $as_echo "$as_me:$LINENO: result: no" >&5
13229 $as_echo "no" >&6; }
13230
13231
13232
13233 fi
13234
13235 rm -Rf build
13236
13237
13238
13239
13240 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13241 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13242
13243
13244 cat confdefs.h - <<_ACEOF >conftest.c
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250
13251
13252 #include <linux/utsname.h>
13253
13254 int
13255 main (void)
13256 {
13257
13258 struct new_utsname *a __attribute__ ((unused));
13259 a = init_utsname();
13260
13261 ;
13262 return 0;
13263 }
13264
13265 _ACEOF
13266
13267
13268 rm -Rf build && mkdir -p build
13269 echo "obj-m := conftest.o" >build/Makefile
13270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281
13282 { $as_echo "$as_me:$LINENO: result: yes" >&5
13283 $as_echo "yes" >&6; }
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_INIT_UTSNAME 1
13287 _ACEOF
13288
13289
13290 else
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294 { $as_echo "$as_me:$LINENO: result: no" >&5
13295 $as_echo "no" >&6; }
13296
13297
13298
13299 fi
13300
13301 rm -Rf build
13302
13303
13304
13305
13306 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13307 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13308
13309
13310 cat confdefs.h - <<_ACEOF >conftest.c
13311 /* confdefs.h. */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316
13317
13318 #include <linux/fdtable.h>
13319
13320 int
13321 main (void)
13322 {
13323
13324 return 0;
13325
13326 ;
13327 return 0;
13328 }
13329
13330 _ACEOF
13331
13332
13333 rm -Rf build && mkdir -p build
13334 echo "obj-m := conftest.o" >build/Makefile
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'
13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337 (eval $ac_try) 2>&5
13338 ac_status=$?
13339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13346
13347
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_FDTABLE_HEADER 1
13350 _ACEOF
13351
13352 { $as_echo "$as_me:$LINENO: result: yes" >&5
13353 $as_echo "yes" >&6; }
13354
13355
13356 else
13357 $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13359
13360 { $as_echo "$as_me:$LINENO: result: no" >&5
13361 $as_echo "no" >&6; }
13362
13363
13364
13365
13366 fi
13367
13368 rm -Rf build
13369
13370
13371
13372
13373
13374 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13375 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13376
13377
13378 cat confdefs.h - <<_ACEOF >conftest.c
13379 /* confdefs.h. */
13380 _ACEOF
13381 cat confdefs.h >>conftest.$ac_ext
13382 cat >>conftest.$ac_ext <<_ACEOF
13383 /* end confdefs.h. */
13384
13385
13386 #include <linux/sched.h>
13387 #include <linux/file.h>
13388 #ifdef HAVE_FDTABLE_HEADER
13389 #include <linux/fdtable.h>
13390 #endif
13391
13392 int
13393 main (void)
13394 {
13395
13396 struct files_struct *files = current->files;
13397 struct fdtable *fdt __attribute__ ((unused));
13398 fdt = files_fdtable(files);
13399
13400 ;
13401 return 0;
13402 }
13403
13404 _ACEOF
13405
13406
13407 rm -Rf build && mkdir -p build
13408 echo "obj-m := conftest.o" >build/Makefile
13409 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420
13421 { $as_echo "$as_me:$LINENO: result: yes" >&5
13422 $as_echo "yes" >&6; }
13423
13424 cat >>confdefs.h <<\_ACEOF
13425 #define HAVE_FILES_FDTABLE 1
13426 _ACEOF
13427
13428
13429 else
13430 $as_echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 { $as_echo "$as_me:$LINENO: result: no" >&5
13434 $as_echo "no" >&6; }
13435
13436
13437
13438 fi
13439
13440 rm -Rf build
13441
13442
13443
13444
13445 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13446 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13447
13448
13449 cat confdefs.h - <<_ACEOF >conftest.c
13450 /* confdefs.h. */
13451 _ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455
13456
13457 #include <linux/uaccess.h>
13458
13459 int
13460 main (void)
13461 {
13462
13463 return 0;
13464
13465 ;
13466 return 0;
13467 }
13468
13469 _ACEOF
13470
13471
13472 rm -Rf build && mkdir -p build
13473 echo "obj-m := conftest.o" >build/Makefile
13474 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485
13486
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_UACCESS_HEADER 1
13489 _ACEOF
13490
13491 { $as_echo "$as_me:$LINENO: result: yes" >&5
13492 $as_echo "yes" >&6; }
13493
13494
13495 else
13496 $as_echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 { $as_echo "$as_me:$LINENO: result: no" >&5
13500 $as_echo "no" >&6; }
13501
13502
13503
13504
13505 fi
13506
13507 rm -Rf build
13508
13509
13510
13511
13512
13513 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13514 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13515
13516
13517 cat confdefs.h - <<_ACEOF >conftest.c
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523
13524
13525 #include <linux/slab.h>
13526
13527 int
13528 main (void)
13529 {
13530
13531 void *a __attribute__ ((unused));
13532 a = kmalloc_node(1, GFP_KERNEL, 0);
13533
13534 ;
13535 return 0;
13536 }
13537
13538 _ACEOF
13539
13540
13541 rm -Rf build && mkdir -p build
13542 echo "obj-m := conftest.o" >build/Makefile
13543 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554
13555 { $as_echo "$as_me:$LINENO: result: yes" >&5
13556 $as_echo "yes" >&6; }
13557
13558 cat >>confdefs.h <<\_ACEOF
13559 #define HAVE_KMALLOC_NODE 1
13560 _ACEOF
13561
13562
13563 else
13564 $as_echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 { $as_echo "$as_me:$LINENO: result: no" >&5
13568 $as_echo "no" >&6; }
13569
13570
13571
13572 fi
13573
13574 rm -Rf build
13575
13576
13577
13578
13579 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13580 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13581 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13582 $LINUX_OBJ/Module*.symvers 2>/dev/null
13583 rc=$?
13584 if test $rc -ne 0; then
13585 export=0
13586 for file in ; do
13587 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13588 "$LINUX_OBJ/$file" 2>/dev/null
13589 rc=$?
13590 if test $rc -eq 0; then
13591 export=1
13592 break;
13593 fi
13594 done
13595 if test $export -eq 0; then
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597 $as_echo "no" >&6; }
13598
13599 else
13600 { $as_echo "$as_me:$LINENO: result: yes" >&5
13601 $as_echo "yes" >&6; }
13602
13603 cat >>confdefs.h <<\_ACEOF
13604 #define HAVE_MONOTONIC_CLOCK 1
13605 _ACEOF
13606
13607 fi
13608 else
13609 { $as_echo "$as_me:$LINENO: result: yes" >&5
13610 $as_echo "yes" >&6; }
13611
13612 cat >>confdefs.h <<\_ACEOF
13613 #define HAVE_MONOTONIC_CLOCK 1
13614 _ACEOF
13615
13616 fi
13617
13618
13619
13620 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13621 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13622
13623
13624 cat confdefs.h - <<_ACEOF >conftest.c
13625 /* confdefs.h. */
13626 _ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630
13631
13632 #include <linux/fs.h>
13633 #include <linux/mutex.h>
13634
13635 int
13636 main (void)
13637 {
13638
13639 struct inode i;
13640 mutex_init(&i.i_mutex);
13641
13642 ;
13643 return 0;
13644 }
13645
13646 _ACEOF
13647
13648
13649 rm -Rf build && mkdir -p build
13650 echo "obj-m := conftest.o" >build/Makefile
13651 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653 (eval $ac_try) 2>&5
13654 ac_status=$?
13655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }; then
13662
13663 { $as_echo "$as_me:$LINENO: result: yes" >&5
13664 $as_echo "yes" >&6; }
13665
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_INODE_I_MUTEX 1
13668 _ACEOF
13669
13670
13671 else
13672 $as_echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 { $as_echo "$as_me:$LINENO: result: no" >&5
13676 $as_echo "no" >&6; }
13677
13678
13679
13680 fi
13681
13682 rm -Rf build
13683
13684
13685
13686
13687 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13688 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13689
13690
13691 cat confdefs.h - <<_ACEOF >conftest.c
13692 /* confdefs.h. */
13693 _ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13697
13698
13699 #include <linux/mutex.h>
13700
13701 int
13702 main (void)
13703 {
13704
13705 struct mutex mtx __attribute__ ((unused));
13706 mtx.owner = NULL;
13707
13708 ;
13709 return 0;
13710 }
13711
13712 _ACEOF
13713
13714
13715 rm -Rf build && mkdir -p build
13716 echo "obj-m := conftest.o" >build/Makefile
13717 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728
13729 { $as_echo "$as_me:$LINENO: result: yes" >&5
13730 $as_echo "yes" >&6; }
13731
13732 cat >>confdefs.h <<\_ACEOF
13733 #define HAVE_MUTEX_OWNER 1
13734 _ACEOF
13735
13736
13737 else
13738 $as_echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 { $as_echo "$as_me:$LINENO: result: no" >&5
13742 $as_echo "no" >&6; }
13743
13744
13745
13746 fi
13747
13748 rm -Rf build
13749
13750
13751
13752
13753 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13754 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13755 tmp_flags="$EXTRA_KCFLAGS"
13756 EXTRA_KCFLAGS="-Werror"
13757
13758
13759 cat confdefs.h - <<_ACEOF >conftest.c
13760 /* confdefs.h. */
13761 _ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765
13766
13767 #include <linux/mutex.h>
13768
13769 int
13770 main (void)
13771 {
13772
13773 struct mutex mtx __attribute__ ((unused));
13774 mtx.owner = current;
13775
13776 ;
13777 return 0;
13778 }
13779
13780 _ACEOF
13781
13782
13783 rm -Rf build && mkdir -p build
13784 echo "obj-m := conftest.o" >build/Makefile
13785 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796
13797 { $as_echo "$as_me:$LINENO: result: yes" >&5
13798 $as_echo "yes" >&6; }
13799
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13802 _ACEOF
13803
13804
13805 else
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 { $as_echo "$as_me:$LINENO: result: no" >&5
13810 $as_echo "no" >&6; }
13811
13812
13813
13814 fi
13815
13816 rm -Rf build
13817
13818
13819 EXTRA_KCFLAGS="$tmp_flags"
13820
13821
13822 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13823 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13824
13825
13826 cat confdefs.h - <<_ACEOF >conftest.c
13827 /* confdefs.h. */
13828 _ACEOF
13829 cat confdefs.h >>conftest.$ac_ext
13830 cat >>conftest.$ac_ext <<_ACEOF
13831 /* end confdefs.h. */
13832
13833
13834 #include <linux/mutex.h>
13835
13836 int
13837 main (void)
13838 {
13839
13840 struct mutex mutex;
13841 mutex_init(&mutex);
13842 mutex_lock_nested(&mutex, 0);
13843
13844 ;
13845 return 0;
13846 }
13847
13848 _ACEOF
13849
13850
13851 rm -Rf build && mkdir -p build
13852 echo "obj-m := conftest.o" >build/Makefile
13853 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864
13865 { $as_echo "$as_me:$LINENO: result: yes" >&5
13866 $as_echo "yes" >&6; }
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_MUTEX_LOCK_NESTED 1
13870 _ACEOF
13871
13872
13873 else
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877 { $as_echo "$as_me:$LINENO: result: no" >&5
13878 $as_echo "no" >&6; }
13879
13880
13881
13882 fi
13883
13884 rm -Rf build
13885
13886
13887
13888
13889 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13890 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13891
13892
13893 cat confdefs.h - <<_ACEOF >conftest.c
13894 /* confdefs.h. */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899
13900
13901 #include <linux/smp.h>
13902
13903 int
13904 main (void)
13905 {
13906
13907 on_each_cpu(NULL, NULL, 0);
13908
13909 ;
13910 return 0;
13911 }
13912
13913 _ACEOF
13914
13915
13916 rm -Rf build && mkdir -p build
13917 echo "obj-m := conftest.o" >build/Makefile
13918 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13929
13930 { $as_echo "$as_me:$LINENO: result: yes" >&5
13931 $as_echo "yes" >&6; }
13932
13933 cat >>confdefs.h <<\_ACEOF
13934 #define HAVE_3ARGS_ON_EACH_CPU 1
13935 _ACEOF
13936
13937
13938 else
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 { $as_echo "$as_me:$LINENO: result: no" >&5
13943 $as_echo "no" >&6; }
13944
13945
13946
13947 fi
13948
13949 rm -Rf build
13950
13951
13952
13953
13954 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13955 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13956 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13957 $LINUX_OBJ/Module*.symvers 2>/dev/null
13958 rc=$?
13959 if test $rc -ne 0; then
13960 export=0
13961 for file in ; do
13962 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13963 "$LINUX_OBJ/$file" 2>/dev/null
13964 rc=$?
13965 if test $rc -eq 0; then
13966 export=1
13967 break;
13968 fi
13969 done
13970 if test $export -eq 0; then
13971 { $as_echo "$as_me:$LINENO: result: no" >&5
13972 $as_echo "no" >&6; }
13973
13974 else
13975 { $as_echo "$as_me:$LINENO: result: yes" >&5
13976 $as_echo "yes" >&6; }
13977
13978 cat >>confdefs.h <<\_ACEOF
13979 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13980 _ACEOF
13981
13982 fi
13983 else
13984 { $as_echo "$as_me:$LINENO: result: yes" >&5
13985 $as_echo "yes" >&6; }
13986
13987 cat >>confdefs.h <<\_ACEOF
13988 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13989 _ACEOF
13990
13991 fi
13992
13993
13994
13995 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13996 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13997 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13998 $LINUX_OBJ/Module*.symvers 2>/dev/null
13999 rc=$?
14000 if test $rc -ne 0; then
14001 export=0
14002 for file in ; do
14003 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14004 "$LINUX_OBJ/$file" 2>/dev/null
14005 rc=$?
14006 if test $rc -eq 0; then
14007 export=1
14008 break;
14009 fi
14010 done
14011 if test $export -eq 0; then
14012 { $as_echo "$as_me:$LINENO: result: no" >&5
14013 $as_echo "no" >&6; }
14014
14015 else
14016 { $as_echo "$as_me:$LINENO: result: yes" >&5
14017 $as_echo "yes" >&6; }
14018
14019 cat >>confdefs.h <<\_ACEOF
14020 #define HAVE_GET_VMALLOC_INFO 1
14021 _ACEOF
14022
14023 fi
14024 else
14025 { $as_echo "$as_me:$LINENO: result: yes" >&5
14026 $as_echo "yes" >&6; }
14027
14028 cat >>confdefs.h <<\_ACEOF
14029 #define HAVE_GET_VMALLOC_INFO 1
14030 _ACEOF
14031
14032 fi
14033
14034
14035
14036 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14037 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
14038 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14039 rc=$?
14040 if test $rc -eq 0; then
14041 { $as_echo "$as_me:$LINENO: result: yes" >&5
14042 $as_echo "yes" >&6; }
14043
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_PGDAT_HELPERS 1
14046 _ACEOF
14047
14048 else
14049 { $as_echo "$as_me:$LINENO: result: no" >&5
14050 $as_echo "no" >&6; }
14051 fi
14052
14053
14054 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14055 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
14056 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14057 $LINUX_OBJ/Module*.symvers 2>/dev/null
14058 rc=$?
14059 if test $rc -ne 0; then
14060 export=0
14061 for file in ; do
14062 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14063 "$LINUX_OBJ/$file" 2>/dev/null
14064 rc=$?
14065 if test $rc -eq 0; then
14066 export=1
14067 break;
14068 fi
14069 done
14070 if test $export -eq 0; then
14071 { $as_echo "$as_me:$LINENO: result: no" >&5
14072 $as_echo "no" >&6; }
14073
14074 else
14075 { $as_echo "$as_me:$LINENO: result: yes" >&5
14076 $as_echo "yes" >&6; }
14077
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_FIRST_ONLINE_PGDAT 1
14080 _ACEOF
14081
14082 fi
14083 else
14084 { $as_echo "$as_me:$LINENO: result: yes" >&5
14085 $as_echo "yes" >&6; }
14086
14087 cat >>confdefs.h <<\_ACEOF
14088 #define HAVE_FIRST_ONLINE_PGDAT 1
14089 _ACEOF
14090
14091 fi
14092
14093
14094
14095 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14096 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14097 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14098 $LINUX_OBJ/Module*.symvers 2>/dev/null
14099 rc=$?
14100 if test $rc -ne 0; then
14101 export=0
14102 for file in ; do
14103 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14104 "$LINUX_OBJ/$file" 2>/dev/null
14105 rc=$?
14106 if test $rc -eq 0; then
14107 export=1
14108 break;
14109 fi
14110 done
14111 if test $export -eq 0; then
14112 { $as_echo "$as_me:$LINENO: result: no" >&5
14113 $as_echo "no" >&6; }
14114
14115 else
14116 { $as_echo "$as_me:$LINENO: result: yes" >&5
14117 $as_echo "yes" >&6; }
14118
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_NEXT_ONLINE_PGDAT 1
14121 _ACEOF
14122
14123 fi
14124 else
14125 { $as_echo "$as_me:$LINENO: result: yes" >&5
14126 $as_echo "yes" >&6; }
14127
14128 cat >>confdefs.h <<\_ACEOF
14129 #define HAVE_NEXT_ONLINE_PGDAT 1
14130 _ACEOF
14131
14132 fi
14133
14134
14135
14136 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14137 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14138 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14139 $LINUX_OBJ/Module*.symvers 2>/dev/null
14140 rc=$?
14141 if test $rc -ne 0; then
14142 export=0
14143 for file in ; do
14144 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14145 "$LINUX_OBJ/$file" 2>/dev/null
14146 rc=$?
14147 if test $rc -eq 0; then
14148 export=1
14149 break;
14150 fi
14151 done
14152 if test $export -eq 0; then
14153 { $as_echo "$as_me:$LINENO: result: no" >&5
14154 $as_echo "no" >&6; }
14155
14156 else
14157 { $as_echo "$as_me:$LINENO: result: yes" >&5
14158 $as_echo "yes" >&6; }
14159
14160 cat >>confdefs.h <<\_ACEOF
14161 #define HAVE_NEXT_ZONE 1
14162 _ACEOF
14163
14164 fi
14165 else
14166 { $as_echo "$as_me:$LINENO: result: yes" >&5
14167 $as_echo "yes" >&6; }
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_NEXT_ZONE 1
14171 _ACEOF
14172
14173 fi
14174
14175
14176
14177 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14178 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14179 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14180 $LINUX_OBJ/Module*.symvers 2>/dev/null
14181 rc=$?
14182 if test $rc -ne 0; then
14183 export=0
14184 for file in ; do
14185 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14186 "$LINUX_OBJ/$file" 2>/dev/null
14187 rc=$?
14188 if test $rc -eq 0; then
14189 export=1
14190 break;
14191 fi
14192 done
14193 if test $export -eq 0; then
14194 { $as_echo "$as_me:$LINENO: result: no" >&5
14195 $as_echo "no" >&6; }
14196
14197 else
14198 { $as_echo "$as_me:$LINENO: result: yes" >&5
14199 $as_echo "yes" >&6; }
14200
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_PGDAT_LIST 1
14203 _ACEOF
14204
14205 fi
14206 else
14207 { $as_echo "$as_me:$LINENO: result: yes" >&5
14208 $as_echo "yes" >&6; }
14209
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_PGDAT_LIST 1
14212 _ACEOF
14213
14214 fi
14215
14216
14217
14218 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14219 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14220
14221
14222 cat confdefs.h - <<_ACEOF >conftest.c
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228
14229
14230 #include <linux/mm.h>
14231
14232 int
14233 main (void)
14234 {
14235
14236 unsigned long state __attribute__ ((unused));
14237 state = global_page_state(0);
14238
14239 ;
14240 return 0;
14241 }
14242
14243 _ACEOF
14244
14245
14246 rm -Rf build && mkdir -p build
14247 echo "obj-m := conftest.o" >build/Makefile
14248 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259
14260 { $as_echo "$as_me:$LINENO: result: yes" >&5
14261 $as_echo "yes" >&6; }
14262
14263 cat >>confdefs.h <<\_ACEOF
14264 #define HAVE_GLOBAL_PAGE_STATE 1
14265 _ACEOF
14266
14267
14268 else
14269 $as_echo "$as_me: failed program was:" >&5
14270 sed 's/^/| /' conftest.$ac_ext >&5
14271
14272 { $as_echo "$as_me:$LINENO: result: no" >&5
14273 $as_echo "no" >&6; }
14274
14275
14276
14277 fi
14278
14279 rm -Rf build
14280
14281
14282
14283
14284 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14285 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14286
14287
14288 cat confdefs.h - <<_ACEOF >conftest.c
14289 /* confdefs.h. */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h. */
14294
14295
14296 #include <linux/mm.h>
14297
14298 int
14299 main (void)
14300 {
14301
14302 enum zone_stat_item zsi __attribute__ ((unused));
14303 zsi = NR_FREE_PAGES;
14304
14305 ;
14306 return 0;
14307 }
14308
14309 _ACEOF
14310
14311
14312 rm -Rf build && mkdir -p build
14313 echo "obj-m := conftest.o" >build/Makefile
14314 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14317 ac_status=$?
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14322 ac_status=$?
14323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325
14326 { $as_echo "$as_me:$LINENO: result: yes" >&5
14327 $as_echo "yes" >&6; }
14328
14329 cat >>confdefs.h <<\_ACEOF
14330 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14331 _ACEOF
14332
14333
14334 else
14335 $as_echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 { $as_echo "$as_me:$LINENO: result: no" >&5
14339 $as_echo "no" >&6; }
14340
14341
14342
14343 fi
14344
14345 rm -Rf build
14346
14347
14348
14349
14350 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14351 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14352
14353
14354 cat confdefs.h - <<_ACEOF >conftest.c
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360
14361
14362 #include <linux/mm.h>
14363
14364 int
14365 main (void)
14366 {
14367
14368 enum zone_stat_item zsi __attribute__ ((unused));
14369 zsi = NR_INACTIVE;
14370
14371 ;
14372 return 0;
14373 }
14374
14375 _ACEOF
14376
14377
14378 rm -Rf build && mkdir -p build
14379 echo "obj-m := conftest.o" >build/Makefile
14380 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391
14392 { $as_echo "$as_me:$LINENO: result: yes" >&5
14393 $as_echo "yes" >&6; }
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14397 _ACEOF
14398
14399
14400 else
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 { $as_echo "$as_me:$LINENO: result: no" >&5
14405 $as_echo "no" >&6; }
14406
14407
14408
14409 fi
14410
14411 rm -Rf build
14412
14413
14414
14415 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14416 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14417
14418
14419 cat confdefs.h - <<_ACEOF >conftest.c
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425
14426
14427 #include <linux/mm.h>
14428
14429 int
14430 main (void)
14431 {
14432
14433 enum zone_stat_item zsi __attribute__ ((unused));
14434 zsi = NR_INACTIVE_ANON;
14435
14436 ;
14437 return 0;
14438 }
14439
14440 _ACEOF
14441
14442
14443 rm -Rf build && mkdir -p build
14444 echo "obj-m := conftest.o" >build/Makefile
14445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456
14457 { $as_echo "$as_me:$LINENO: result: yes" >&5
14458 $as_echo "yes" >&6; }
14459
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14462 _ACEOF
14463
14464
14465 else
14466 $as_echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 { $as_echo "$as_me:$LINENO: result: no" >&5
14470 $as_echo "no" >&6; }
14471
14472
14473
14474 fi
14475
14476 rm -Rf build
14477
14478
14479
14480 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14481 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14482
14483
14484 cat confdefs.h - <<_ACEOF >conftest.c
14485 /* confdefs.h. */
14486 _ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490
14491
14492 #include <linux/mm.h>
14493
14494 int
14495 main (void)
14496 {
14497
14498 enum zone_stat_item zsi __attribute__ ((unused));
14499 zsi = NR_INACTIVE_FILE;
14500
14501 ;
14502 return 0;
14503 }
14504
14505 _ACEOF
14506
14507
14508 rm -Rf build && mkdir -p build
14509 echo "obj-m := conftest.o" >build/Makefile
14510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521
14522 { $as_echo "$as_me:$LINENO: result: yes" >&5
14523 $as_echo "yes" >&6; }
14524
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14527 _ACEOF
14528
14529
14530 else
14531 $as_echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 { $as_echo "$as_me:$LINENO: result: no" >&5
14535 $as_echo "no" >&6; }
14536
14537
14538
14539 fi
14540
14541 rm -Rf build
14542
14543
14544
14545
14546 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14547 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14548
14549
14550 cat confdefs.h - <<_ACEOF >conftest.c
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556
14557
14558 #include <linux/mm.h>
14559
14560 int
14561 main (void)
14562 {
14563
14564 enum zone_stat_item zsi __attribute__ ((unused));
14565 zsi = NR_ACTIVE;
14566
14567 ;
14568 return 0;
14569 }
14570
14571 _ACEOF
14572
14573
14574 rm -Rf build && mkdir -p build
14575 echo "obj-m := conftest.o" >build/Makefile
14576 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587
14588 { $as_echo "$as_me:$LINENO: result: yes" >&5
14589 $as_echo "yes" >&6; }
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14593 _ACEOF
14594
14595
14596 else
14597 $as_echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 { $as_echo "$as_me:$LINENO: result: no" >&5
14601 $as_echo "no" >&6; }
14602
14603
14604
14605 fi
14606
14607 rm -Rf build
14608
14609
14610
14611 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14612 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14613
14614
14615 cat confdefs.h - <<_ACEOF >conftest.c
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621
14622
14623 #include <linux/mm.h>
14624
14625 int
14626 main (void)
14627 {
14628
14629 enum zone_stat_item zsi __attribute__ ((unused));
14630 zsi = NR_ACTIVE_ANON;
14631
14632 ;
14633 return 0;
14634 }
14635
14636 _ACEOF
14637
14638
14639 rm -Rf build && mkdir -p build
14640 echo "obj-m := conftest.o" >build/Makefile
14641 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652
14653 { $as_echo "$as_me:$LINENO: result: yes" >&5
14654 $as_echo "yes" >&6; }
14655
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14658 _ACEOF
14659
14660
14661 else
14662 $as_echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14667
14668
14669
14670 fi
14671
14672 rm -Rf build
14673
14674
14675
14676 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14677 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14678
14679
14680 cat confdefs.h - <<_ACEOF >conftest.c
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686
14687
14688 #include <linux/mm.h>
14689
14690 int
14691 main (void)
14692 {
14693
14694 enum zone_stat_item zsi __attribute__ ((unused));
14695 zsi = NR_ACTIVE_FILE;
14696
14697 ;
14698 return 0;
14699 }
14700
14701 _ACEOF
14702
14703
14704 rm -Rf build && mkdir -p build
14705 echo "obj-m := conftest.o" >build/Makefile
14706 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713 (eval $ac_try) 2>&5
14714 ac_status=$?
14715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717
14718 { $as_echo "$as_me:$LINENO: result: yes" >&5
14719 $as_echo "yes" >&6; }
14720
14721 cat >>confdefs.h <<\_ACEOF
14722 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14723 _ACEOF
14724
14725
14726 else
14727 $as_echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14729
14730 { $as_echo "$as_me:$LINENO: result: no" >&5
14731 $as_echo "no" >&6; }
14732
14733
14734
14735 fi
14736
14737 rm -Rf build
14738
14739
14740
14741
14742 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14743 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14744
14745
14746 cat confdefs.h - <<_ACEOF >conftest.c
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752
14753
14754
14755 int
14756 main (void)
14757 {
14758
14759 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14760 #error "global_page_state needs NR_FREE_PAGES"
14761 #endif
14762
14763 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14764 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14765 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14766 #error "global_page_state needs NR_ACTIVE*"
14767 #endif
14768
14769 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14770 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14771 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14772 #error "global_page_state needs NR_INACTIVE*"
14773 #endif
14774
14775 ;
14776 return 0;
14777 }
14778
14779 _ACEOF
14780
14781
14782 rm -Rf build && mkdir -p build
14783 echo "obj-m := conftest.o" >build/Makefile
14784 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14787 ac_status=$?
14788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795
14796 { $as_echo "$as_me:$LINENO: result: no" >&5
14797 $as_echo "no" >&6; }
14798
14799 else
14800 $as_echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803 { $as_echo "$as_me:$LINENO: result: yes" >&5
14804 $as_echo "yes" >&6; }
14805
14806 cat >>confdefs.h <<\_ACEOF
14807 #define NEED_GET_ZONE_COUNTS 1
14808 _ACEOF
14809
14810
14811 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14812 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14813 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14814 $LINUX_OBJ/Module*.symvers 2>/dev/null
14815 rc=$?
14816 if test $rc -ne 0; then
14817 export=0
14818 for file in ; do
14819 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14820 "$LINUX_OBJ/$file" 2>/dev/null
14821 rc=$?
14822 if test $rc -eq 0; then
14823 export=1
14824 break;
14825 fi
14826 done
14827 if test $export -eq 0; then
14828 { $as_echo "$as_me:$LINENO: result: no" >&5
14829 $as_echo "no" >&6; }
14830
14831 else
14832 { $as_echo "$as_me:$LINENO: result: yes" >&5
14833 $as_echo "yes" >&6; }
14834
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_GET_ZONE_COUNTS 1
14837 _ACEOF
14838
14839 fi
14840 else
14841 { $as_echo "$as_me:$LINENO: result: yes" >&5
14842 $as_echo "yes" >&6; }
14843
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_GET_ZONE_COUNTS 1
14846 _ACEOF
14847
14848 fi
14849
14850
14851
14852
14853 fi
14854
14855 rm -Rf build
14856
14857
14858
14859
14860 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14861 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14862 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14863 $LINUX_OBJ/Module*.symvers 2>/dev/null
14864 rc=$?
14865 if test $rc -ne 0; then
14866 export=0
14867 for file in ; do
14868 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14869 "$LINUX_OBJ/$file" 2>/dev/null
14870 rc=$?
14871 if test $rc -eq 0; then
14872 export=1
14873 break;
14874 fi
14875 done
14876 if test $export -eq 0; then
14877 { $as_echo "$as_me:$LINENO: result: no" >&5
14878 $as_echo "no" >&6; }
14879
14880 else
14881 { $as_echo "$as_me:$LINENO: result: yes" >&5
14882 $as_echo "yes" >&6; }
14883
14884 cat >>confdefs.h <<\_ACEOF
14885 #define HAVE_USER_PATH_DIR 1
14886 _ACEOF
14887
14888 fi
14889 else
14890 { $as_echo "$as_me:$LINENO: result: yes" >&5
14891 $as_echo "yes" >&6; }
14892
14893 cat >>confdefs.h <<\_ACEOF
14894 #define HAVE_USER_PATH_DIR 1
14895 _ACEOF
14896
14897 fi
14898
14899
14900
14901 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14902 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14903 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14904 $LINUX_OBJ/Module*.symvers 2>/dev/null
14905 rc=$?
14906 if test $rc -ne 0; then
14907 export=0
14908 for file in ; do
14909 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14910 "$LINUX_OBJ/$file" 2>/dev/null
14911 rc=$?
14912 if test $rc -eq 0; then
14913 export=1
14914 break;
14915 fi
14916 done
14917 if test $export -eq 0; then
14918 { $as_echo "$as_me:$LINENO: result: no" >&5
14919 $as_echo "no" >&6; }
14920
14921 else
14922 { $as_echo "$as_me:$LINENO: result: yes" >&5
14923 $as_echo "yes" >&6; }
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_SET_FS_PWD 1
14927 _ACEOF
14928
14929 fi
14930 else
14931 { $as_echo "$as_me:$LINENO: result: yes" >&5
14932 $as_echo "yes" >&6; }
14933
14934 cat >>confdefs.h <<\_ACEOF
14935 #define HAVE_SET_FS_PWD 1
14936 _ACEOF
14937
14938 fi
14939
14940
14941 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14942 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14943
14944
14945 cat confdefs.h - <<_ACEOF >conftest.c
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951
14952
14953 #include <linux/sched.h>
14954 #include <linux/fs_struct.h>
14955
14956 int
14957 main (void)
14958 {
14959
14960 set_fs_pwd(NULL, NULL);
14961
14962 ;
14963 return 0;
14964 }
14965
14966 _ACEOF
14967
14968
14969 rm -Rf build && mkdir -p build
14970 echo "obj-m := conftest.o" >build/Makefile
14971 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982
14983 { $as_echo "$as_me:$LINENO: result: yes" >&5
14984 $as_echo "yes" >&6; }
14985
14986 cat >>confdefs.h <<\_ACEOF
14987 #define HAVE_2ARGS_SET_FS_PWD 1
14988 _ACEOF
14989
14990
14991 else
14992 $as_echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 { $as_echo "$as_me:$LINENO: result: no" >&5
14996 $as_echo "no" >&6; }
14997
14998
14999
15000 fi
15001
15002 rm -Rf build
15003
15004
15005
15006 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15007 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15008
15009
15010 cat confdefs.h - <<_ACEOF >conftest.c
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016
15017
15018 #include <linux/fs.h>
15019
15020 int
15021 main (void)
15022 {
15023
15024 vfs_unlink(NULL, NULL);
15025
15026 ;
15027 return 0;
15028 }
15029
15030 _ACEOF
15031
15032
15033 rm -Rf build && mkdir -p build
15034 echo "obj-m := conftest.o" >build/Makefile
15035 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046
15047 { $as_echo "$as_me:$LINENO: result: yes" >&5
15048 $as_echo "yes" >&6; }
15049
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_2ARGS_VFS_UNLINK 1
15052 _ACEOF
15053
15054
15055 else
15056 $as_echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059 { $as_echo "$as_me:$LINENO: result: no" >&5
15060 $as_echo "no" >&6; }
15061
15062
15063
15064 fi
15065
15066 rm -Rf build
15067
15068
15069
15070 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15071 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15072
15073
15074 cat confdefs.h - <<_ACEOF >conftest.c
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080
15081
15082 #include <linux/fs.h>
15083
15084 int
15085 main (void)
15086 {
15087
15088 vfs_rename(NULL, NULL, NULL, NULL);
15089
15090 ;
15091 return 0;
15092 }
15093
15094 _ACEOF
15095
15096
15097 rm -Rf build && mkdir -p build
15098 echo "obj-m := conftest.o" >build/Makefile
15099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110
15111 { $as_echo "$as_me:$LINENO: result: yes" >&5
15112 $as_echo "yes" >&6; }
15113
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_4ARGS_VFS_RENAME 1
15116 _ACEOF
15117
15118
15119 else
15120 $as_echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 { $as_echo "$as_me:$LINENO: result: no" >&5
15124 $as_echo "no" >&6; }
15125
15126
15127
15128 fi
15129
15130 rm -Rf build
15131
15132
15133
15134
15135 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15136 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15137 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15138 $LINUX_OBJ/Module*.symvers 2>/dev/null
15139 rc=$?
15140 if test $rc -ne 0; then
15141 export=0
15142 for file in fs/sync.c; do
15143 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15144 "$LINUX_OBJ/$file" 2>/dev/null
15145 rc=$?
15146 if test $rc -eq 0; then
15147 export=1
15148 break;
15149 fi
15150 done
15151 if test $export -eq 0; then
15152 { $as_echo "$as_me:$LINENO: result: no" >&5
15153 $as_echo "no" >&6; }
15154
15155 else
15156 { $as_echo "$as_me:$LINENO: result: yes" >&5
15157 $as_echo "yes" >&6; }
15158
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_VFS_FSYNC 1
15161 _ACEOF
15162
15163 fi
15164 else
15165 { $as_echo "$as_me:$LINENO: result: yes" >&5
15166 $as_echo "yes" >&6; }
15167
15168 cat >>confdefs.h <<\_ACEOF
15169 #define HAVE_VFS_FSYNC 1
15170 _ACEOF
15171
15172 fi
15173
15174
15175
15176 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15177 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15178
15179
15180 cat confdefs.h - <<_ACEOF >conftest.c
15181 /* confdefs.h. */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186
15187
15188 #include <linux/fs.h>
15189
15190 int
15191 main (void)
15192 {
15193
15194 vfs_fsync(NULL, 0);
15195
15196 ;
15197 return 0;
15198 }
15199
15200 _ACEOF
15201
15202
15203 rm -Rf build && mkdir -p build
15204 echo "obj-m := conftest.o" >build/Makefile
15205 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
15216
15217 { $as_echo "$as_me:$LINENO: result: yes" >&5
15218 $as_echo "yes" >&6; }
15219
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_2ARGS_VFS_FSYNC 1
15222 _ACEOF
15223
15224
15225 else
15226 $as_echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 { $as_echo "$as_me:$LINENO: result: no" >&5
15230 $as_echo "no" >&6; }
15231
15232
15233
15234 fi
15235
15236 rm -Rf build
15237
15238
15239
15240
15241 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15242 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15243 tmp_flags="$EXTRA_KCFLAGS"
15244 EXTRA_KCFLAGS="-Werror"
15245
15246
15247 cat confdefs.h - <<_ACEOF >conftest.c
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253
15254
15255 #include <linux/sched.h>
15256 #include <linux/fs_struct.h>
15257
15258 int
15259 main (void)
15260 {
15261
15262 struct fs_struct fs;
15263 spin_lock_init(&fs.lock);
15264
15265 ;
15266 return 0;
15267 }
15268
15269 _ACEOF
15270
15271
15272 rm -Rf build && mkdir -p build
15273 echo "obj-m := conftest.o" >build/Makefile
15274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285
15286 { $as_echo "$as_me:$LINENO: result: yes" >&5
15287 $as_echo "yes" >&6; }
15288
15289 cat >>confdefs.h <<\_ACEOF
15290 #define HAVE_FS_STRUCT_SPINLOCK 1
15291 _ACEOF
15292
15293
15294 else
15295 $as_echo "$as_me: failed program was:" >&5
15296 sed 's/^/| /' conftest.$ac_ext >&5
15297
15298 { $as_echo "$as_me:$LINENO: result: no" >&5
15299 $as_echo "no" >&6; }
15300
15301
15302
15303 fi
15304
15305 rm -Rf build
15306
15307
15308 EXTRA_KCFLAGS="$tmp_flags"
15309
15310
15311 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15312 $as_echo_n "checking whether struct cred exists... " >&6; }
15313
15314
15315 cat confdefs.h - <<_ACEOF >conftest.c
15316 /* confdefs.h. */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321
15322
15323 #include <linux/cred.h>
15324
15325 int
15326 main (void)
15327 {
15328
15329 struct cred *cr __attribute__ ((unused));
15330 cr = NULL;
15331
15332 ;
15333 return 0;
15334 }
15335
15336 _ACEOF
15337
15338
15339 rm -Rf build && mkdir -p build
15340 echo "obj-m := conftest.o" >build/Makefile
15341 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352
15353 { $as_echo "$as_me:$LINENO: result: yes" >&5
15354 $as_echo "yes" >&6; }
15355
15356 cat >>confdefs.h <<\_ACEOF
15357 #define HAVE_CRED_STRUCT 1
15358 _ACEOF
15359
15360
15361 else
15362 $as_echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 { $as_echo "$as_me:$LINENO: result: no" >&5
15366 $as_echo "no" >&6; }
15367
15368
15369
15370 fi
15371
15372 rm -Rf build
15373
15374
15375
15376
15377 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15378 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15379 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15380 $LINUX_OBJ/Module*.symvers 2>/dev/null
15381 rc=$?
15382 if test $rc -ne 0; then
15383 export=0
15384 for file in ; do
15385 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15386 "$LINUX_OBJ/$file" 2>/dev/null
15387 rc=$?
15388 if test $rc -eq 0; then
15389 export=1
15390 break;
15391 fi
15392 done
15393 if test $export -eq 0; then
15394 { $as_echo "$as_me:$LINENO: result: no" >&5
15395 $as_echo "no" >&6; }
15396
15397 else
15398 { $as_echo "$as_me:$LINENO: result: yes" >&5
15399 $as_echo "yes" >&6; }
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_GROUPS_SEARCH 1
15403 _ACEOF
15404
15405 fi
15406 else
15407 { $as_echo "$as_me:$LINENO: result: yes" >&5
15408 $as_echo "yes" >&6; }
15409
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_GROUPS_SEARCH 1
15412 _ACEOF
15413
15414 fi
15415
15416
15417
15418 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15419 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15420 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15421 $LINUX_OBJ/Module*.symvers 2>/dev/null
15422 rc=$?
15423 if test $rc -ne 0; then
15424 export=0
15425 for file in ; do
15426 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15427 "$LINUX_OBJ/$file" 2>/dev/null
15428 rc=$?
15429 if test $rc -eq 0; then
15430 export=1
15431 break;
15432 fi
15433 done
15434 if test $export -eq 0; then
15435 { $as_echo "$as_me:$LINENO: result: no" >&5
15436 $as_echo "no" >&6; }
15437
15438 else
15439 { $as_echo "$as_me:$LINENO: result: yes" >&5
15440 $as_echo "yes" >&6; }
15441
15442 cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_PUT_TASK_STRUCT 1
15444 _ACEOF
15445
15446 fi
15447 else
15448 { $as_echo "$as_me:$LINENO: result: yes" >&5
15449 $as_echo "yes" >&6; }
15450
15451 cat >>confdefs.h <<\_ACEOF
15452 #define HAVE_PUT_TASK_STRUCT 1
15453 _ACEOF
15454
15455 fi
15456
15457
15458
15459 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15460 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15461
15462
15463 cat confdefs.h - <<_ACEOF >conftest.c
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469
15470
15471 #include <linux/sysctl.h>
15472
15473 int
15474 main (void)
15475 {
15476
15477 proc_dostring(NULL, 0, NULL, NULL, NULL);
15478
15479 ;
15480 return 0;
15481 }
15482
15483 _ACEOF
15484
15485
15486 rm -Rf build && mkdir -p build
15487 echo "obj-m := conftest.o" >build/Makefile
15488 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15496 ac_status=$?
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499
15500 { $as_echo "$as_me:$LINENO: result: yes" >&5
15501 $as_echo "yes" >&6; }
15502
15503 cat >>confdefs.h <<\_ACEOF
15504 #define HAVE_5ARGS_PROC_HANDLER 1
15505 _ACEOF
15506
15507
15508 else
15509 $as_echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 { $as_echo "$as_me:$LINENO: result: no" >&5
15513 $as_echo "no" >&6; }
15514
15515
15516
15517 fi
15518
15519 rm -Rf build
15520
15521
15522
15523
15524 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15525 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15526 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15527 $LINUX_OBJ/Module*.symvers 2>/dev/null
15528 rc=$?
15529 if test $rc -ne 0; then
15530 export=0
15531 for file in ; do
15532 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15533 "$LINUX_OBJ/$file" 2>/dev/null
15534 rc=$?
15535 if test $rc -eq 0; then
15536 export=1
15537 break;
15538 fi
15539 done
15540 if test $export -eq 0; then
15541 { $as_echo "$as_me:$LINENO: result: no" >&5
15542 $as_echo "no" >&6; }
15543
15544 else
15545 { $as_echo "$as_me:$LINENO: result: yes" >&5
15546 $as_echo "yes" >&6; }
15547
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_KVASPRINTF 1
15550 _ACEOF
15551
15552 fi
15553 else
15554 { $as_echo "$as_me:$LINENO: result: yes" >&5
15555 $as_echo "yes" >&6; }
15556
15557 cat >>confdefs.h <<\_ACEOF
15558 #define HAVE_KVASPRINTF 1
15559 _ACEOF
15560
15561 fi
15562
15563
15564
15565 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15566 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15567 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15568 $LINUX_OBJ/Module*.symvers 2>/dev/null
15569 rc=$?
15570 if test $rc -ne 0; then
15571 export=0
15572 for file in lib/rwsem-spinlock.c; do
15573 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15574 "$LINUX_OBJ/$file" 2>/dev/null
15575 rc=$?
15576 if test $rc -eq 0; then
15577 export=1
15578 break;
15579 fi
15580 done
15581 if test $export -eq 0; then
15582 { $as_echo "$as_me:$LINENO: result: no" >&5
15583 $as_echo "no" >&6; }
15584
15585 else
15586 { $as_echo "$as_me:$LINENO: result: yes" >&5
15587 $as_echo "yes" >&6; }
15588
15589 cat >>confdefs.h <<\_ACEOF
15590 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15591 _ACEOF
15592
15593 fi
15594 else
15595 { $as_echo "$as_me:$LINENO: result: yes" >&5
15596 $as_echo "yes" >&6; }
15597
15598 cat >>confdefs.h <<\_ACEOF
15599 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15600 _ACEOF
15601
15602 fi
15603
15604
15605
15606 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15607 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15608 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15609 $LINUX_OBJ/Module*.symvers 2>/dev/null
15610 rc=$?
15611 if test $rc -ne 0; then
15612 export=0
15613 for file in ; do
15614 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15615 "$LINUX_OBJ/$file" 2>/dev/null
15616 rc=$?
15617 if test $rc -eq 0; then
15618 export=1
15619 break;
15620 fi
15621 done
15622 if test $export -eq 0; then
15623 { $as_echo "$as_me:$LINENO: result: no" >&5
15624 $as_echo "no" >&6; }
15625
15626 else
15627 { $as_echo "$as_me:$LINENO: result: yes" >&5
15628 $as_echo "yes" >&6; }
15629
15630 cat >>confdefs.h <<\_ACEOF
15631 #define HAVE_INVALIDATE_INODES 1
15632 _ACEOF
15633
15634 fi
15635 else
15636 { $as_echo "$as_me:$LINENO: result: yes" >&5
15637 $as_echo "yes" >&6; }
15638
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_INVALIDATE_INODES 1
15641 _ACEOF
15642
15643 fi
15644
15645 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15646 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15647 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15648 $LINUX_OBJ/Module*.symvers 2>/dev/null
15649 rc=$?
15650 if test $rc -ne 0; then
15651 export=0
15652 for file in ; do
15653 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15654 "$LINUX_OBJ/$file" 2>/dev/null
15655 rc=$?
15656 if test $rc -eq 0; then
15657 export=1
15658 break;
15659 fi
15660 done
15661 if test $export -eq 0; then
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15664
15665 else
15666 { $as_echo "$as_me:$LINENO: result: yes" >&5
15667 $as_echo "yes" >&6; }
15668
15669 cat >>confdefs.h <<\_ACEOF
15670 #define HAVE_INVALIDATE_INODES_CHECK 1
15671 _ACEOF
15672
15673 fi
15674 else
15675 { $as_echo "$as_me:$LINENO: result: yes" >&5
15676 $as_echo "yes" >&6; }
15677
15678 cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_INVALIDATE_INODES_CHECK 1
15680 _ACEOF
15681
15682 fi
15683
15684
15685 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15686 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15687
15688
15689 cat confdefs.h - <<_ACEOF >conftest.c
15690 /* confdefs.h. */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695
15696
15697 #include <linux/fs.h>
15698
15699 int
15700 main (void)
15701 {
15702
15703 return __invalidate_device(NULL, 0);
15704
15705 ;
15706 return 0;
15707 }
15708
15709 _ACEOF
15710
15711
15712 rm -Rf build && mkdir -p build
15713 echo "obj-m := conftest.o" >build/Makefile
15714 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725
15726 { $as_echo "$as_me:$LINENO: result: yes" >&5
15727 $as_echo "yes" >&6; }
15728
15729 cat >>confdefs.h <<\_ACEOF
15730 #define HAVE_2ARGS_INVALIDATE_INODES 1
15731 _ACEOF
15732
15733
15734 else
15735 $as_echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 { $as_echo "$as_me:$LINENO: result: no" >&5
15739 $as_echo "no" >&6; }
15740
15741
15742
15743 fi
15744
15745 rm -Rf build
15746
15747
15748
15749
15750 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15751 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15752 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15753 $LINUX_OBJ/Module*.symvers 2>/dev/null
15754 rc=$?
15755 if test $rc -ne 0; then
15756 export=0
15757 for file in fs/dcache.c; do
15758 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15759 "$LINUX_OBJ/$file" 2>/dev/null
15760 rc=$?
15761 if test $rc -eq 0; then
15762 export=1
15763 break;
15764 fi
15765 done
15766 if test $export -eq 0; then
15767 { $as_echo "$as_me:$LINENO: result: no" >&5
15768 $as_echo "no" >&6; }
15769
15770 else
15771 { $as_echo "$as_me:$LINENO: result: yes" >&5
15772 $as_echo "yes" >&6; }
15773
15774 cat >>confdefs.h <<\_ACEOF
15775 #define HAVE_SHRINK_DCACHE_MEMORY 1
15776 _ACEOF
15777
15778 fi
15779 else
15780 { $as_echo "$as_me:$LINENO: result: yes" >&5
15781 $as_echo "yes" >&6; }
15782
15783 cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_SHRINK_DCACHE_MEMORY 1
15785 _ACEOF
15786
15787 fi
15788
15789
15790
15791 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15792 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15793 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15794 $LINUX_OBJ/Module*.symvers 2>/dev/null
15795 rc=$?
15796 if test $rc -ne 0; then
15797 export=0
15798 for file in fs/inode.c; do
15799 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15800 "$LINUX_OBJ/$file" 2>/dev/null
15801 rc=$?
15802 if test $rc -eq 0; then
15803 export=1
15804 break;
15805 fi
15806 done
15807 if test $export -eq 0; then
15808 { $as_echo "$as_me:$LINENO: result: no" >&5
15809 $as_echo "no" >&6; }
15810
15811 else
15812 { $as_echo "$as_me:$LINENO: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_SHRINK_ICACHE_MEMORY 1
15817 _ACEOF
15818
15819 fi
15820 else
15821 { $as_echo "$as_me:$LINENO: result: yes" >&5
15822 $as_echo "yes" >&6; }
15823
15824 cat >>confdefs.h <<\_ACEOF
15825 #define HAVE_SHRINK_ICACHE_MEMORY 1
15826 _ACEOF
15827
15828 fi
15829
15830
15831
15832
15833 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15834 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15835 header=0
15836 for file in include/linux/namei.h; do
15837 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15838 rc=$?
15839 if test $rc -eq 0; then
15840 header=1
15841 break;
15842 fi
15843 done
15844 if test $header -eq 0; then
15845 { $as_echo "$as_me:$LINENO: result: no" >&5
15846 $as_echo "no" >&6; }
15847
15848 else
15849 { $as_echo "$as_me:$LINENO: result: yes" >&5
15850 $as_echo "yes" >&6; }
15851
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_KERN_PATH_PARENT_HEADER 1
15854 _ACEOF
15855
15856 fi
15857
15858
15859
15860 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15861 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15862 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15863 $LINUX_OBJ/Module*.symvers 2>/dev/null
15864 rc=$?
15865 if test $rc -ne 0; then
15866 export=0
15867 for file in fs/namei.c; do
15868 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15869 "$LINUX_OBJ/$file" 2>/dev/null
15870 rc=$?
15871 if test $rc -eq 0; then
15872 export=1
15873 break;
15874 fi
15875 done
15876 if test $export -eq 0; then
15877 { $as_echo "$as_me:$LINENO: result: no" >&5
15878 $as_echo "no" >&6; }
15879
15880 else
15881 { $as_echo "$as_me:$LINENO: result: yes" >&5
15882 $as_echo "yes" >&6; }
15883
15884 cat >>confdefs.h <<\_ACEOF
15885 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15886 _ACEOF
15887
15888 fi
15889 else
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15892
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15895 _ACEOF
15896
15897 fi
15898
15899
15900 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15901 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15902
15903
15904 cat confdefs.h - <<_ACEOF >conftest.c
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910
15911
15912 #include <linux/zlib.h>
15913
15914 int
15915 main (void)
15916 {
15917
15918 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15919
15920 ;
15921 return 0;
15922 }
15923
15924 _ACEOF
15925
15926
15927 rm -Rf build && mkdir -p build
15928 echo "obj-m := conftest.o" >build/Makefile
15929 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15932 ac_status=$?
15933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940
15941 { $as_echo "$as_me:$LINENO: result: yes" >&5
15942 $as_echo "yes" >&6; }
15943
15944 cat >>confdefs.h <<\_ACEOF
15945 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15946 _ACEOF
15947
15948
15949 else
15950 $as_echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 { $as_echo "$as_me:$LINENO: result: no" >&5
15954 $as_echo "no" >&6; }
15955
15956
15957
15958 fi
15959
15960 rm -Rf build
15961
15962
15963
15964
15965 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15966 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15967
15968
15969 cat confdefs.h - <<_ACEOF >conftest.c
15970 /* confdefs.h. */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975
15976
15977 #include <linux/mm.h>
15978
15979 int
15980 main (void)
15981 {
15982
15983 struct shrink_control sc __attribute__ ((unused));
15984
15985 sc.nr_to_scan = 0;
15986 sc.gfp_mask = GFP_KERNEL;
15987
15988 ;
15989 return 0;
15990 }
15991
15992 _ACEOF
15993
15994
15995 rm -Rf build && mkdir -p build
15996 echo "obj-m := conftest.o" >build/Makefile
15997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; }; then
16008
16009 { $as_echo "$as_me:$LINENO: result: yes" >&5
16010 $as_echo "yes" >&6; }
16011
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAVE_SHRINK_CONTROL_STRUCT 1
16014 _ACEOF
16015
16016
16017 else
16018 $as_echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021 { $as_echo "$as_me:$LINENO: result: no" >&5
16022 $as_echo "no" >&6; }
16023
16024
16025
16026 fi
16027
16028 rm -Rf build
16029
16030
16031
16032
16033 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16034 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16035 tmp_flags="$EXTRA_KCFLAGS"
16036 EXTRA_KCFLAGS="-Werror"
16037
16038
16039 cat confdefs.h - <<_ACEOF >conftest.c
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045
16046
16047 #include <linux/rwsem.h>
16048
16049 int
16050 main (void)
16051 {
16052
16053 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16054 raw_spinlock_t dummy_lock __attribute__ ((unused));
16055 dummy_semaphore.wait_lock = dummy_lock;
16056
16057 ;
16058 return 0;
16059 }
16060
16061 _ACEOF
16062
16063
16064 rm -Rf build && mkdir -p build
16065 echo "obj-m := conftest.o" >build/Makefile
16066 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077
16078 { $as_echo "$as_me:$LINENO: result: yes" >&5
16079 $as_echo "yes" >&6; }
16080
16081 cat >>confdefs.h <<\_ACEOF
16082 #define RWSEM_SPINLOCK_IS_RAW 1
16083 _ACEOF
16084
16085
16086 else
16087 $as_echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 { $as_echo "$as_me:$LINENO: result: no" >&5
16091 $as_echo "no" >&6; }
16092
16093
16094
16095 fi
16096
16097 rm -Rf build
16098
16099
16100 EXTRA_KCFLAGS="$tmp_flags"
16101
16102 ;;
16103 user) ;;
16104 all)
16105
16106
16107 # Check whether --with-linux was given.
16108 if test "${with_linux+set}" = set; then
16109 withval=$with_linux; kernelsrc="$withval"
16110 fi
16111
16112
16113
16114 # Check whether --with-linux-obj was given.
16115 if test "${with_linux_obj+set}" = set; then
16116 withval=$with_linux_obj; kernelbuild="$withval"
16117 fi
16118
16119
16120 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16121 $as_echo_n "checking kernel source directory... " >&6; }
16122 if test -z "$kernelsrc"; then
16123 if test -e "/lib/modules/$(uname -r)/source"; then
16124 headersdir="/lib/modules/$(uname -r)/source"
16125 sourcelink=$(readlink -f "$headersdir")
16126 elif test -e "/lib/modules/$(uname -r)/build"; then
16127 headersdir="/lib/modules/$(uname -r)/build"
16128 sourcelink=$(readlink -f "$headersdir")
16129 else
16130 sourcelink=$(ls -1d /usr/src/kernels/* \
16131 /usr/src/linux-* \
16132 2>/dev/null | grep -v obj | tail -1)
16133 fi
16134
16135 if test -n "$sourcelink" && test -e ${sourcelink}; then
16136 kernelsrc=`readlink -f ${sourcelink}`
16137 else
16138 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16139 $as_echo "Not found" >&6; }
16140 { { $as_echo "$as_me:$LINENO: error:
16141 *** Please make sure the kernel devel package for your distribution
16142 *** is installed then try again. If that fails you can specify the
16143 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16144 $as_echo "$as_me: error:
16145 *** Please make sure the kernel devel package for your distribution
16146 *** is installed then try again. If that fails you can specify the
16147 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16148 { (exit 1); exit 1; }; }
16149 fi
16150 else
16151 if test "$kernelsrc" = "NONE"; then
16152 kernsrcver=NONE
16153 fi
16154 fi
16155
16156 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16157 $as_echo "$kernelsrc" >&6; }
16158 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16159 $as_echo_n "checking kernel build directory... " >&6; }
16160 if test -z "$kernelbuild"; then
16161 if test -e "/lib/modules/$(uname -r)/build"; then
16162 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16163 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16164 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16165 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16166 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16167 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16168 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16169 else
16170 kernelbuild=${kernelsrc}
16171 fi
16172 fi
16173 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16174 $as_echo "$kernelbuild" >&6; }
16175
16176 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16177 $as_echo_n "checking kernel source version... " >&6; }
16178 utsrelease1=$kernelbuild/include/linux/version.h
16179 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16180 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16181 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16182 utsrelease=linux/version.h
16183 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16184 utsrelease=linux/utsrelease.h
16185 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16186 utsrelease=generated/utsrelease.h
16187 fi
16188
16189 if test "$utsrelease"; then
16190 kernsrcver=`(echo "#include <$utsrelease>";
16191 echo "kernsrcver=UTS_RELEASE") |
16192 cpp -I $kernelbuild/include |
16193 grep "^kernsrcver=" | cut -d \" -f 2`
16194
16195 if test -z "$kernsrcver"; then
16196 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16197 $as_echo "Not found" >&6; }
16198 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16199 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16200 { (exit 1); exit 1; }; }
16201 fi
16202 else
16203 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16204 $as_echo "Not found" >&6; }
16205 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16206 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16207 { (exit 1); exit 1; }; }
16208 fi
16209
16210 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16211 $as_echo "$kernsrcver" >&6; }
16212
16213 LINUX=${kernelsrc}
16214 LINUX_OBJ=${kernelbuild}
16215 LINUX_VERSION=${kernsrcver}
16216
16217
16218
16219
16220
16221
16222 modpost=$LINUX/scripts/Makefile.modpost
16223 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16224 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16225 if test -f "$modpost"; then
16226 if grep -q Modules.symvers $modpost; then
16227 LINUX_SYMBOLS=Modules.symvers
16228 else
16229 LINUX_SYMBOLS=Module.symvers
16230 fi
16231
16232 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16233 { { $as_echo "$as_me:$LINENO: error:
16234 *** Please make sure the kernel devel package for your distribution
16235 *** is installed. If your building with a custom kernel make sure the
16236 *** kernel is configured, built, and the '--with-linux=PATH' configure
16237 *** option refers to the location of the kernel source." >&5
16238 $as_echo "$as_me: error:
16239 *** Please make sure the kernel devel package for your distribution
16240 *** is installed. If your building with a custom kernel make sure the
16241 *** kernel is configured, built, and the '--with-linux=PATH' configure
16242 *** option refers to the location of the kernel source." >&2;}
16243 { (exit 1); exit 1; }; }
16244 fi
16245 else
16246 LINUX_SYMBOLS=NONE
16247 fi
16248 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16249 $as_echo "$LINUX_SYMBOLS" >&6; }
16250
16251
16252
16253
16254 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16255 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16256
16257
16258 cat confdefs.h - <<_ACEOF >conftest.c
16259 /* confdefs.h. */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264
16265
16266 #include <linux/module.h>
16267
16268 int
16269 main (void)
16270 {
16271
16272 #ifndef CONFIG_PREEMPT
16273 #error CONFIG_PREEMPT not #defined
16274 #endif
16275
16276 ;
16277 return 0;
16278 }
16279
16280 _ACEOF
16281
16282
16283 rm -Rf build && mkdir -p build
16284 echo "obj-m := conftest.o" >build/Makefile
16285 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296
16297 { $as_echo "$as_me:$LINENO: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299 { { $as_echo "$as_me:$LINENO: error:
16300 *** Kernel built with CONFIG_PREEMPT which is not supported.
16301 ** You must rebuild your kernel without this option." >&5
16302 $as_echo "$as_me: error:
16303 *** Kernel built with CONFIG_PREEMPT which is not supported.
16304 ** You must rebuild your kernel without this option." >&2;}
16305 { (exit 1); exit 1; }; }
16306
16307 else
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 { $as_echo "$as_me:$LINENO: result: no" >&5
16312 $as_echo "no" >&6; }
16313
16314
16315
16316
16317 fi
16318
16319 rm -Rf build
16320
16321
16322
16323
16324
16325 if test "${LINUX_OBJ}" != "${LINUX}"; then
16326 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16327 fi
16328
16329
16330 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16331
16332
16333
16334 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16335 $as_echo_n "checking whether debugging is enabled... " >&6; }
16336 # Check whether --enable-debug was given.
16337 if test "${enable_debug+set}" = set; then
16338 enableval=$enable_debug;
16339 else
16340 enable_debug=no
16341 fi
16342
16343
16344 if test "x$enable_debug" = xyes; then
16345
16346 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16347 DEBUG_CFLAGS="-DDEBUG -Werror"
16348
16349 else
16350
16351 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16352 DEBUG_CFLAGS="-DNDEBUG"
16353
16354 fi
16355
16356
16357
16358 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16359 $as_echo "$enable_debug" >&6; }
16360
16361
16362 # Check whether --enable-debug-kmem was given.
16363 if test "${enable_debug_kmem+set}" = set; then
16364 enableval=$enable_debug_kmem;
16365 else
16366 enable_debug_kmem=yes
16367 fi
16368
16369
16370 if test "x$enable_debug_kmem" = xyes; then
16371
16372 cat >>confdefs.h <<\_ACEOF
16373 #define DEBUG_KMEM 1
16374 _ACEOF
16375
16376 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16377 fi
16378
16379
16380 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16381 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16382 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16383 $as_echo "$enable_debug_kmem" >&6; }
16384
16385
16386 # Check whether --enable-debug-kmem-tracking was given.
16387 if test "${enable_debug_kmem_tracking+set}" = set; then
16388 enableval=$enable_debug_kmem_tracking;
16389 else
16390 enable_debug_kmem_tracking=no
16391 fi
16392
16393
16394 if test "x$enable_debug_kmem_tracking" = xyes; then
16395
16396 cat >>confdefs.h <<\_ACEOF
16397 #define DEBUG_KMEM_TRACKING 1
16398 _ACEOF
16399
16400 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16401 fi
16402
16403
16404 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16405 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16406 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16407 $as_echo "$enable_debug_kmem_tracking" >&6; }
16408
16409
16410 # Check whether --enable-atomic-spinlocks was given.
16411 if test "${enable_atomic_spinlocks+set}" = set; then
16412 enableval=$enable_atomic_spinlocks;
16413 else
16414 enable_atomic_spinlocks=check
16415 fi
16416
16417
16418
16419
16420 cat confdefs.h - <<_ACEOF >conftest.c
16421 /* confdefs.h. */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426
16427
16428 #include <asm/atomic.h>
16429
16430 int
16431 main (void)
16432 {
16433
16434 atomic64_t *ptr __attribute__ ((unused));
16435
16436 ;
16437 return 0;
16438 }
16439
16440 _ACEOF
16441
16442
16443 rm -Rf build && mkdir -p build
16444 echo "obj-m := conftest.o" >build/Makefile
16445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16448 ac_status=$?
16449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456
16457 have_atomic64_t=yes
16458
16459 cat >>confdefs.h <<\_ACEOF
16460 #define HAVE_ATOMIC64_T 1
16461 _ACEOF
16462
16463
16464 else
16465 $as_echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468 have_atomic64_t=no
16469
16470
16471
16472 fi
16473
16474 rm -Rf build
16475
16476
16477
16478 if test "x$enable_atomic_spinlocks" = xcheck; then
16479
16480 if test "x$have_atomic64_t" = xyes; then
16481
16482 enable_atomic_spinlocks=no
16483
16484 else
16485
16486 enable_atomic_spinlocks=yes
16487
16488 fi
16489
16490
16491 fi
16492
16493
16494 if test "x$enable_atomic_spinlocks" = xyes; then
16495
16496
16497 cat >>confdefs.h <<\_ACEOF
16498 #define ATOMIC_SPINLOCK 1
16499 _ACEOF
16500
16501
16502 else
16503
16504 if test "x$have_atomic64_t" = xno; then
16505
16506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16508 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16509 See \`config.log' for more details." >&5
16510 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16511 See \`config.log' for more details." >&2;}
16512 { (exit 1); exit 1; }; }; }
16513
16514 fi
16515
16516
16517 fi
16518
16519
16520 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16521 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16522 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16523 $as_echo "$enable_atomic_spinlocks" >&6; }
16524
16525 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16526 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16527 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16528 $as_echo "$have_atomic64_t" >&6; }
16529
16530 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16531 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16532
16533
16534 cat confdefs.h - <<_ACEOF >conftest.c
16535 /* confdefs.h. */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540
16541
16542 #include <asm/atomic.h>
16543 #include <asm/system.h>
16544
16545 int
16546 main (void)
16547 {
16548
16549 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16550
16551 ;
16552 return 0;
16553 }
16554
16555 _ACEOF
16556
16557
16558 rm -Rf build && mkdir -p build
16559 echo "obj-m := conftest.o" >build/Makefile
16560 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571
16572 { $as_echo "$as_me:$LINENO: result: yes" >&5
16573 $as_echo "yes" >&6; }
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_ATOMIC64_CMPXCHG 1
16577 _ACEOF
16578
16579
16580 else
16581 $as_echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16583
16584 { $as_echo "$as_me:$LINENO: result: no" >&5
16585 $as_echo "no" >&6; }
16586
16587
16588
16589 fi
16590
16591 rm -Rf build
16592
16593
16594
16595 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16596 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16597
16598
16599 cat confdefs.h - <<_ACEOF >conftest.c
16600 /* confdefs.h. */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605
16606
16607 #include <asm/atomic.h>
16608
16609 int
16610 main (void)
16611 {
16612
16613 atomic64_xchg((atomic64_t *)NULL, 0);
16614
16615 ;
16616 return 0;
16617 }
16618
16619 _ACEOF
16620
16621
16622 rm -Rf build && mkdir -p build
16623 echo "obj-m := conftest.o" >build/Makefile
16624 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; }; then
16635
16636 { $as_echo "$as_me:$LINENO: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_ATOMIC64_XCHG 1
16641 _ACEOF
16642
16643
16644 else
16645 $as_echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648 { $as_echo "$as_me:$LINENO: result: no" >&5
16649 $as_echo "no" >&6; }
16650
16651
16652
16653 fi
16654
16655 rm -Rf build
16656
16657
16658
16659 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16660 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16661
16662
16663 cat confdefs.h - <<_ACEOF >conftest.c
16664 /* confdefs.h. */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669
16670
16671 #include <linux/types.h>
16672
16673 int
16674 main (void)
16675 {
16676
16677 uintptr_t *ptr __attribute__ ((unused));
16678
16679 ;
16680 return 0;
16681 }
16682
16683 _ACEOF
16684
16685
16686 rm -Rf build && mkdir -p build
16687 echo "obj-m := conftest.o" >build/Makefile
16688 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
16699
16700 { $as_echo "$as_me:$LINENO: result: yes" >&5
16701 $as_echo "yes" >&6; }
16702
16703 cat >>confdefs.h <<\_ACEOF
16704 #define HAVE_UINTPTR_T 1
16705 _ACEOF
16706
16707
16708 else
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712 { $as_echo "$as_me:$LINENO: result: no" >&5
16713 $as_echo "no" >&6; }
16714
16715
16716
16717 fi
16718
16719 rm -Rf build
16720
16721
16722
16723 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16724 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16725
16726
16727 cat confdefs.h - <<_ACEOF >conftest.c
16728 /* confdefs.h. */
16729 _ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733
16734
16735 #include <linux/workqueue.h>
16736
16737 int
16738 main (void)
16739 {
16740
16741 struct work_struct work __attribute__ ((unused));
16742 INIT_WORK(&work, NULL, NULL);
16743
16744 ;
16745 return 0;
16746 }
16747
16748 _ACEOF
16749
16750
16751 rm -Rf build && mkdir -p build
16752 echo "obj-m := conftest.o" >build/Makefile
16753 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764
16765 { $as_echo "$as_me:$LINENO: result: yes" >&5
16766 $as_echo "yes" >&6; }
16767
16768 cat >>confdefs.h <<\_ACEOF
16769 #define HAVE_3ARGS_INIT_WORK 1
16770 _ACEOF
16771
16772
16773 else
16774 $as_echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 { $as_echo "$as_me:$LINENO: result: no" >&5
16778 $as_echo "no" >&6; }
16779
16780
16781
16782 fi
16783
16784 rm -Rf build
16785
16786
16787
16788 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16789 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16790
16791
16792 cat confdefs.h - <<_ACEOF >conftest.c
16793 /* confdefs.h. */
16794 _ACEOF
16795 cat confdefs.h >>conftest.$ac_ext
16796 cat >>conftest.$ac_ext <<_ACEOF
16797 /* end confdefs.h. */
16798
16799
16800 #include <linux/sysctl.h>
16801
16802 int
16803 main (void)
16804 {
16805
16806 (void) register_sysctl_table(NULL, 0);
16807
16808 ;
16809 return 0;
16810 }
16811
16812 _ACEOF
16813
16814
16815 rm -Rf build && mkdir -p build
16816 echo "obj-m := conftest.o" >build/Makefile
16817 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; }; then
16828
16829 { $as_echo "$as_me:$LINENO: result: yes" >&5
16830 $as_echo "yes" >&6; }
16831
16832 cat >>confdefs.h <<\_ACEOF
16833 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16834 _ACEOF
16835
16836
16837 else
16838 $as_echo "$as_me: failed program was:" >&5
16839 sed 's/^/| /' conftest.$ac_ext >&5
16840
16841 { $as_echo "$as_me:$LINENO: result: no" >&5
16842 $as_echo "no" >&6; }
16843
16844
16845
16846 fi
16847
16848 rm -Rf build
16849
16850
16851
16852
16853 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16854 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16855
16856
16857 cat confdefs.h - <<_ACEOF >conftest.c
16858 /* confdefs.h. */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16863
16864
16865 #include <linux/mm.h>
16866
16867 int
16868 main (void)
16869 {
16870
16871 return set_shrinker(DEFAULT_SEEKS, NULL);
16872
16873 ;
16874 return 0;
16875 }
16876
16877 _ACEOF
16878
16879
16880 rm -Rf build && mkdir -p build
16881 echo "obj-m := conftest.o" >build/Makefile
16882 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16885 ac_status=$?
16886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16890 ac_status=$?
16891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893
16894 { $as_echo "$as_me:$LINENO: result: yes" >&5
16895 $as_echo "yes" >&6; }
16896
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_SET_SHRINKER 1
16899 _ACEOF
16900
16901
16902 else
16903 $as_echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 { $as_echo "$as_me:$LINENO: result: no" >&5
16907 $as_echo "no" >&6; }
16908
16909
16910
16911 fi
16912
16913 rm -Rf build
16914
16915
16916
16917 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16918 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16919 tmp_flags="$EXTRA_KCFLAGS"
16920 EXTRA_KCFLAGS="-Werror"
16921
16922
16923 cat confdefs.h - <<_ACEOF >conftest.c
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929
16930
16931 #include <linux/mm.h>
16932
16933 int shrinker_cb(struct shrinker *, int, unsigned int);
16934
16935 int
16936 main (void)
16937 {
16938
16939 struct shrinker cache_shrinker = {
16940 .shrink = shrinker_cb,
16941 .seeks = DEFAULT_SEEKS,
16942 };
16943 register_shrinker(&cache_shrinker);
16944
16945 ;
16946 return 0;
16947 }
16948
16949 _ACEOF
16950
16951
16952 rm -Rf build && mkdir -p build
16953 echo "obj-m := conftest.o" >build/Makefile
16954 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; }; then
16965
16966 { $as_echo "$as_me:$LINENO: result: yes" >&5
16967 $as_echo "yes" >&6; }
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
16971 _ACEOF
16972
16973
16974 else
16975 $as_echo "$as_me: failed program was:" >&5
16976 sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 { $as_echo "$as_me:$LINENO: result: no" >&5
16979 $as_echo "no" >&6; }
16980
16981
16982
16983 fi
16984
16985 rm -Rf build
16986
16987
16988 EXTRA_KCFLAGS="$tmp_flags"
16989
16990 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16991 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
16992
16993
16994 cat confdefs.h - <<_ACEOF >conftest.c
16995 /* confdefs.h. */
16996 _ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000
17001
17002 #include <linux/namei.h>
17003
17004 int
17005 main (void)
17006 {
17007
17008 struct nameidata nd __attribute__ ((unused));
17009
17010 nd.path.mnt = NULL;
17011 nd.path.dentry = NULL;
17012
17013 ;
17014 return 0;
17015 }
17016
17017 _ACEOF
17018
17019
17020 rm -Rf build && mkdir -p build
17021 echo "obj-m := conftest.o" >build/Makefile
17022 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17030 ac_status=$?
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033
17034 { $as_echo "$as_me:$LINENO: result: yes" >&5
17035 $as_echo "yes" >&6; }
17036
17037 cat >>confdefs.h <<\_ACEOF
17038 #define HAVE_PATH_IN_NAMEIDATA 1
17039 _ACEOF
17040
17041
17042 else
17043 $as_echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046 { $as_echo "$as_me:$LINENO: result: no" >&5
17047 $as_echo "no" >&6; }
17048
17049
17050
17051 fi
17052
17053 rm -Rf build
17054
17055
17056
17057
17058 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17059 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
17060 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17061 $LINUX_OBJ/Module*.symvers 2>/dev/null
17062 rc=$?
17063 if test $rc -ne 0; then
17064 export=0
17065 for file in kernel/sched.c; do
17066 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17067 "$LINUX_OBJ/$file" 2>/dev/null
17068 rc=$?
17069 if test $rc -eq 0; then
17070 export=1
17071 break;
17072 fi
17073 done
17074 if test $export -eq 0; then
17075 { $as_echo "$as_me:$LINENO: result: no" >&5
17076 $as_echo "no" >&6; }
17077
17078 else
17079 { $as_echo "$as_me:$LINENO: result: yes" >&5
17080 $as_echo "yes" >&6; }
17081
17082 cat >>confdefs.h <<\_ACEOF
17083 #define HAVE_TASK_CURR 1
17084 _ACEOF
17085
17086 fi
17087 else
17088 { $as_echo "$as_me:$LINENO: result: yes" >&5
17089 $as_echo "yes" >&6; }
17090
17091 cat >>confdefs.h <<\_ACEOF
17092 #define HAVE_TASK_CURR 1
17093 _ACEOF
17094
17095 fi
17096
17097
17098 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17099 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17100
17101
17102 cat confdefs.h - <<_ACEOF >conftest.c
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108
17109
17110 #include <linux/sysctl.h>
17111
17112 int
17113 main (void)
17114 {
17115
17116 #ifndef CTL_UNNUMBERED
17117 #error CTL_UNNUMBERED undefined
17118 #endif
17119
17120 ;
17121 return 0;
17122 }
17123
17124 _ACEOF
17125
17126
17127 rm -Rf build && mkdir -p build
17128 echo "obj-m := conftest.o" >build/Makefile
17129 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140
17141 { $as_echo "$as_me:$LINENO: result: yes" >&5
17142 $as_echo "yes" >&6; }
17143
17144 cat >>confdefs.h <<\_ACEOF
17145 #define HAVE_CTL_UNNUMBERED 1
17146 _ACEOF
17147
17148
17149 else
17150 $as_echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17152
17153 { $as_echo "$as_me:$LINENO: result: no" >&5
17154 $as_echo "no" >&6; }
17155
17156
17157
17158 fi
17159
17160 rm -Rf build
17161
17162
17163
17164
17165 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17166 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17167
17168
17169 cat confdefs.h - <<_ACEOF >conftest.c
17170 /* confdefs.h. */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175
17176
17177 #include <linux/sysctl.h>
17178
17179 int
17180 main (void)
17181 {
17182
17183 struct ctl_table ctl __attribute__ ((unused));
17184 ctl.ctl_name = 0;
17185
17186 ;
17187 return 0;
17188 }
17189
17190 _ACEOF
17191
17192
17193 rm -Rf build && mkdir -p build
17194 echo "obj-m := conftest.o" >build/Makefile
17195 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17198 ac_status=$?
17199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206
17207 { $as_echo "$as_me:$LINENO: result: yes" >&5
17208 $as_echo "yes" >&6; }
17209
17210 cat >>confdefs.h <<\_ACEOF
17211 #define HAVE_CTL_NAME 1
17212 _ACEOF
17213
17214
17215 else
17216 $as_echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 { $as_echo "$as_me:$LINENO: result: no" >&5
17220 $as_echo "no" >&6; }
17221
17222
17223
17224 fi
17225
17226 rm -Rf build
17227
17228
17229
17230 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17231 $as_echo_n "checking whether fls64() is available... " >&6; }
17232
17233
17234 cat confdefs.h - <<_ACEOF >conftest.c
17235 /* confdefs.h. */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17240
17241
17242 #include <linux/bitops.h>
17243
17244 int
17245 main (void)
17246 {
17247
17248 return fls64(0);
17249
17250 ;
17251 return 0;
17252 }
17253
17254 _ACEOF
17255
17256
17257 rm -Rf build && mkdir -p build
17258 echo "obj-m := conftest.o" >build/Makefile
17259 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270
17271 { $as_echo "$as_me:$LINENO: result: yes" >&5
17272 $as_echo "yes" >&6; }
17273
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_FLS64 1
17276 _ACEOF
17277
17278
17279 else
17280 $as_echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17282
17283 { $as_echo "$as_me:$LINENO: result: no" >&5
17284 $as_echo "no" >&6; }
17285
17286
17287
17288 fi
17289
17290 rm -Rf build
17291
17292
17293
17294
17295 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17296 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17297 grep -q -E '[[:space:]]device_create[[:space:]]' \
17298 $LINUX_OBJ/Module*.symvers 2>/dev/null
17299 rc=$?
17300 if test $rc -ne 0; then
17301 export=0
17302 for file in drivers/base/core.c; do
17303 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17304 "$LINUX_OBJ/$file" 2>/dev/null
17305 rc=$?
17306 if test $rc -eq 0; then
17307 export=1
17308 break;
17309 fi
17310 done
17311 if test $export -eq 0; then
17312 { $as_echo "$as_me:$LINENO: result: no" >&5
17313 $as_echo "no" >&6; }
17314
17315 else
17316 { $as_echo "$as_me:$LINENO: result: yes" >&5
17317 $as_echo "yes" >&6; }
17318
17319 cat >>confdefs.h <<\_ACEOF
17320 #define HAVE_DEVICE_CREATE 1
17321 _ACEOF
17322
17323 fi
17324 else
17325 { $as_echo "$as_me:$LINENO: result: yes" >&5
17326 $as_echo "yes" >&6; }
17327
17328 cat >>confdefs.h <<\_ACEOF
17329 #define HAVE_DEVICE_CREATE 1
17330 _ACEOF
17331
17332 fi
17333
17334
17335
17336 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17337 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17338 tmp_flags="$EXTRA_KCFLAGS"
17339 EXTRA_KCFLAGS="-Werror"
17340
17341
17342 cat confdefs.h - <<_ACEOF >conftest.c
17343 /* confdefs.h. */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348
17349
17350 #include <linux/device.h>
17351
17352 int
17353 main (void)
17354 {
17355
17356 device_create(NULL, NULL, 0, NULL, "%d", 1);
17357
17358 ;
17359 return 0;
17360 }
17361
17362 _ACEOF
17363
17364
17365 rm -Rf build && mkdir -p build
17366 echo "obj-m := conftest.o" >build/Makefile
17367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378
17379 { $as_echo "$as_me:$LINENO: result: yes" >&5
17380 $as_echo "yes" >&6; }
17381
17382 cat >>confdefs.h <<\_ACEOF
17383 #define HAVE_5ARGS_DEVICE_CREATE 1
17384 _ACEOF
17385
17386
17387 else
17388 $as_echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 { $as_echo "$as_me:$LINENO: result: no" >&5
17392 $as_echo "no" >&6; }
17393
17394
17395
17396 fi
17397
17398 rm -Rf build
17399
17400
17401 EXTRA_KCFLAGS="$tmp_flags"
17402
17403
17404 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17405 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17406 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17407 $LINUX_OBJ/Module*.symvers 2>/dev/null
17408 rc=$?
17409 if test $rc -ne 0; then
17410 export=0
17411 for file in drivers/base/class.c; do
17412 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17413 "$LINUX_OBJ/$file" 2>/dev/null
17414 rc=$?
17415 if test $rc -eq 0; then
17416 export=1
17417 break;
17418 fi
17419 done
17420 if test $export -eq 0; then
17421 { $as_echo "$as_me:$LINENO: result: no" >&5
17422 $as_echo "no" >&6; }
17423
17424 else
17425 { $as_echo "$as_me:$LINENO: result: yes" >&5
17426 $as_echo "yes" >&6; }
17427
17428 cat >>confdefs.h <<\_ACEOF
17429 #define HAVE_CLASS_DEVICE_CREATE 1
17430 _ACEOF
17431
17432 fi
17433 else
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436
17437 cat >>confdefs.h <<\_ACEOF
17438 #define HAVE_CLASS_DEVICE_CREATE 1
17439 _ACEOF
17440
17441 fi
17442
17443
17444
17445 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17446 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17447 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17448 $LINUX_OBJ/Module*.symvers 2>/dev/null
17449 rc=$?
17450 if test $rc -ne 0; then
17451 export=0
17452 for file in kernel/time.c; do
17453 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17454 "$LINUX_OBJ/$file" 2>/dev/null
17455 rc=$?
17456 if test $rc -eq 0; then
17457 export=1
17458 break;
17459 fi
17460 done
17461 if test $export -eq 0; then
17462 { $as_echo "$as_me:$LINENO: result: no" >&5
17463 $as_echo "no" >&6; }
17464
17465 else
17466 { $as_echo "$as_me:$LINENO: result: yes" >&5
17467 $as_echo "yes" >&6; }
17468
17469 cat >>confdefs.h <<\_ACEOF
17470 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17471 _ACEOF
17472
17473 fi
17474 else
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476 $as_echo "yes" >&6; }
17477
17478 cat >>confdefs.h <<\_ACEOF
17479 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17480 _ACEOF
17481
17482 fi
17483
17484
17485
17486 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17487 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17488
17489
17490 cat confdefs.h - <<_ACEOF >conftest.c
17491 /* confdefs.h. */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17496
17497
17498 #include <linux/time.h>
17499 void set_normalized_timespec(struct timespec *ts,
17500 time_t sec, long nsec) { }
17501
17502 int
17503 main (void)
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509
17510 _ACEOF
17511
17512
17513 rm -Rf build && mkdir -p build
17514 echo "obj-m := conftest.o" >build/Makefile
17515 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17523 ac_status=$?
17524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526
17527 { $as_echo "$as_me:$LINENO: result: no" >&5
17528 $as_echo "no" >&6; }
17529
17530 else
17531 $as_echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17533
17534 { $as_echo "$as_me:$LINENO: result: yes" >&5
17535 $as_echo "yes" >&6; }
17536
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17539 _ACEOF
17540
17541
17542
17543
17544 fi
17545
17546 rm -Rf build
17547
17548
17549
17550
17551 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17552 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17553
17554
17555 cat confdefs.h - <<_ACEOF >conftest.c
17556 /* confdefs.h. */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561
17562
17563 #include <linux/time.h>
17564
17565 int
17566 main (void)
17567 {
17568
17569 struct timespec a = { 0 };
17570 struct timespec b = { 0 };
17571 struct timespec c __attribute__ ((unused));
17572 c = timespec_sub(a, b);
17573
17574 ;
17575 return 0;
17576 }
17577
17578 _ACEOF
17579
17580
17581 rm -Rf build && mkdir -p build
17582 echo "obj-m := conftest.o" >build/Makefile
17583 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590 (eval $ac_try) 2>&5
17591 ac_status=$?
17592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; }; then
17594
17595 { $as_echo "$as_me:$LINENO: result: yes" >&5
17596 $as_echo "yes" >&6; }
17597
17598 cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_TIMESPEC_SUB 1
17600 _ACEOF
17601
17602
17603 else
17604 $as_echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 { $as_echo "$as_me:$LINENO: result: no" >&5
17608 $as_echo "no" >&6; }
17609
17610
17611
17612 fi
17613
17614 rm -Rf build
17615
17616
17617
17618
17619 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17620 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17621
17622
17623 cat confdefs.h - <<_ACEOF >conftest.c
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629
17630
17631 #include <linux/utsname.h>
17632
17633 int
17634 main (void)
17635 {
17636
17637 struct new_utsname *a __attribute__ ((unused));
17638 a = init_utsname();
17639
17640 ;
17641 return 0;
17642 }
17643
17644 _ACEOF
17645
17646
17647 rm -Rf build && mkdir -p build
17648 echo "obj-m := conftest.o" >build/Makefile
17649 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660
17661 { $as_echo "$as_me:$LINENO: result: yes" >&5
17662 $as_echo "yes" >&6; }
17663
17664 cat >>confdefs.h <<\_ACEOF
17665 #define HAVE_INIT_UTSNAME 1
17666 _ACEOF
17667
17668
17669 else
17670 $as_echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17672
17673 { $as_echo "$as_me:$LINENO: result: no" >&5
17674 $as_echo "no" >&6; }
17675
17676
17677
17678 fi
17679
17680 rm -Rf build
17681
17682
17683
17684
17685 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17686 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17687
17688
17689 cat confdefs.h - <<_ACEOF >conftest.c
17690 /* confdefs.h. */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h. */
17695
17696
17697 #include <linux/fdtable.h>
17698
17699 int
17700 main (void)
17701 {
17702
17703 return 0;
17704
17705 ;
17706 return 0;
17707 }
17708
17709 _ACEOF
17710
17711
17712 rm -Rf build && mkdir -p build
17713 echo "obj-m := conftest.o" >build/Makefile
17714 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725
17726
17727 cat >>confdefs.h <<\_ACEOF
17728 #define HAVE_FDTABLE_HEADER 1
17729 _ACEOF
17730
17731 { $as_echo "$as_me:$LINENO: result: yes" >&5
17732 $as_echo "yes" >&6; }
17733
17734
17735 else
17736 $as_echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 { $as_echo "$as_me:$LINENO: result: no" >&5
17740 $as_echo "no" >&6; }
17741
17742
17743
17744
17745 fi
17746
17747 rm -Rf build
17748
17749
17750
17751
17752
17753 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17754 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17755
17756
17757 cat confdefs.h - <<_ACEOF >conftest.c
17758 /* confdefs.h. */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17763
17764
17765 #include <linux/sched.h>
17766 #include <linux/file.h>
17767 #ifdef HAVE_FDTABLE_HEADER
17768 #include <linux/fdtable.h>
17769 #endif
17770
17771 int
17772 main (void)
17773 {
17774
17775 struct files_struct *files = current->files;
17776 struct fdtable *fdt __attribute__ ((unused));
17777 fdt = files_fdtable(files);
17778
17779 ;
17780 return 0;
17781 }
17782
17783 _ACEOF
17784
17785
17786 rm -Rf build && mkdir -p build
17787 echo "obj-m := conftest.o" >build/Makefile
17788 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799
17800 { $as_echo "$as_me:$LINENO: result: yes" >&5
17801 $as_echo "yes" >&6; }
17802
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_FILES_FDTABLE 1
17805 _ACEOF
17806
17807
17808 else
17809 $as_echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 { $as_echo "$as_me:$LINENO: result: no" >&5
17813 $as_echo "no" >&6; }
17814
17815
17816
17817 fi
17818
17819 rm -Rf build
17820
17821
17822
17823
17824 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17825 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17826
17827
17828 cat confdefs.h - <<_ACEOF >conftest.c
17829 /* confdefs.h. */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834
17835
17836 #include <linux/uaccess.h>
17837
17838 int
17839 main (void)
17840 {
17841
17842 return 0;
17843
17844 ;
17845 return 0;
17846 }
17847
17848 _ACEOF
17849
17850
17851 rm -Rf build && mkdir -p build
17852 echo "obj-m := conftest.o" >build/Makefile
17853 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17861 ac_status=$?
17862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17864
17865
17866 cat >>confdefs.h <<\_ACEOF
17867 #define HAVE_UACCESS_HEADER 1
17868 _ACEOF
17869
17870 { $as_echo "$as_me:$LINENO: result: yes" >&5
17871 $as_echo "yes" >&6; }
17872
17873
17874 else
17875 $as_echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878 { $as_echo "$as_me:$LINENO: result: no" >&5
17879 $as_echo "no" >&6; }
17880
17881
17882
17883
17884 fi
17885
17886 rm -Rf build
17887
17888
17889
17890
17891
17892 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17893 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17894
17895
17896 cat confdefs.h - <<_ACEOF >conftest.c
17897 /* confdefs.h. */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902
17903
17904 #include <linux/slab.h>
17905
17906 int
17907 main (void)
17908 {
17909
17910 void *a __attribute__ ((unused));
17911 a = kmalloc_node(1, GFP_KERNEL, 0);
17912
17913 ;
17914 return 0;
17915 }
17916
17917 _ACEOF
17918
17919
17920 rm -Rf build && mkdir -p build
17921 echo "obj-m := conftest.o" >build/Makefile
17922 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933
17934 { $as_echo "$as_me:$LINENO: result: yes" >&5
17935 $as_echo "yes" >&6; }
17936
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_KMALLOC_NODE 1
17939 _ACEOF
17940
17941
17942 else
17943 $as_echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 { $as_echo "$as_me:$LINENO: result: no" >&5
17947 $as_echo "no" >&6; }
17948
17949
17950
17951 fi
17952
17953 rm -Rf build
17954
17955
17956
17957
17958 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17959 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17960 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17961 $LINUX_OBJ/Module*.symvers 2>/dev/null
17962 rc=$?
17963 if test $rc -ne 0; then
17964 export=0
17965 for file in ; do
17966 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17967 "$LINUX_OBJ/$file" 2>/dev/null
17968 rc=$?
17969 if test $rc -eq 0; then
17970 export=1
17971 break;
17972 fi
17973 done
17974 if test $export -eq 0; then
17975 { $as_echo "$as_me:$LINENO: result: no" >&5
17976 $as_echo "no" >&6; }
17977
17978 else
17979 { $as_echo "$as_me:$LINENO: result: yes" >&5
17980 $as_echo "yes" >&6; }
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_MONOTONIC_CLOCK 1
17984 _ACEOF
17985
17986 fi
17987 else
17988 { $as_echo "$as_me:$LINENO: result: yes" >&5
17989 $as_echo "yes" >&6; }
17990
17991 cat >>confdefs.h <<\_ACEOF
17992 #define HAVE_MONOTONIC_CLOCK 1
17993 _ACEOF
17994
17995 fi
17996
17997
17998
17999 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18000 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18001
18002
18003 cat confdefs.h - <<_ACEOF >conftest.c
18004 /* confdefs.h. */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009
18010
18011 #include <linux/fs.h>
18012 #include <linux/mutex.h>
18013
18014 int
18015 main (void)
18016 {
18017
18018 struct inode i;
18019 mutex_init(&i.i_mutex);
18020
18021 ;
18022 return 0;
18023 }
18024
18025 _ACEOF
18026
18027
18028 rm -Rf build && mkdir -p build
18029 echo "obj-m := conftest.o" >build/Makefile
18030 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18038 ac_status=$?
18039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041
18042 { $as_echo "$as_me:$LINENO: result: yes" >&5
18043 $as_echo "yes" >&6; }
18044
18045 cat >>confdefs.h <<\_ACEOF
18046 #define HAVE_INODE_I_MUTEX 1
18047 _ACEOF
18048
18049
18050 else
18051 $as_echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 { $as_echo "$as_me:$LINENO: result: no" >&5
18055 $as_echo "no" >&6; }
18056
18057
18058
18059 fi
18060
18061 rm -Rf build
18062
18063
18064
18065
18066 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18067 $as_echo_n "checking whether struct mutex has owner... " >&6; }
18068
18069
18070 cat confdefs.h - <<_ACEOF >conftest.c
18071 /* confdefs.h. */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076
18077
18078 #include <linux/mutex.h>
18079
18080 int
18081 main (void)
18082 {
18083
18084 struct mutex mtx __attribute__ ((unused));
18085 mtx.owner = NULL;
18086
18087 ;
18088 return 0;
18089 }
18090
18091 _ACEOF
18092
18093
18094 rm -Rf build && mkdir -p build
18095 echo "obj-m := conftest.o" >build/Makefile
18096 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; }; then
18107
18108 { $as_echo "$as_me:$LINENO: result: yes" >&5
18109 $as_echo "yes" >&6; }
18110
18111 cat >>confdefs.h <<\_ACEOF
18112 #define HAVE_MUTEX_OWNER 1
18113 _ACEOF
18114
18115
18116 else
18117 $as_echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 { $as_echo "$as_me:$LINENO: result: no" >&5
18121 $as_echo "no" >&6; }
18122
18123
18124
18125 fi
18126
18127 rm -Rf build
18128
18129
18130
18131
18132 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18133 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18134 tmp_flags="$EXTRA_KCFLAGS"
18135 EXTRA_KCFLAGS="-Werror"
18136
18137
18138 cat confdefs.h - <<_ACEOF >conftest.c
18139 /* confdefs.h. */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144
18145
18146 #include <linux/mutex.h>
18147
18148 int
18149 main (void)
18150 {
18151
18152 struct mutex mtx __attribute__ ((unused));
18153 mtx.owner = current;
18154
18155 ;
18156 return 0;
18157 }
18158
18159 _ACEOF
18160
18161
18162 rm -Rf build && mkdir -p build
18163 echo "obj-m := conftest.o" >build/Makefile
18164 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175
18176 { $as_echo "$as_me:$LINENO: result: yes" >&5
18177 $as_echo "yes" >&6; }
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18181 _ACEOF
18182
18183
18184 else
18185 $as_echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 { $as_echo "$as_me:$LINENO: result: no" >&5
18189 $as_echo "no" >&6; }
18190
18191
18192
18193 fi
18194
18195 rm -Rf build
18196
18197
18198 EXTRA_KCFLAGS="$tmp_flags"
18199
18200
18201 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18202 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18203
18204
18205 cat confdefs.h - <<_ACEOF >conftest.c
18206 /* confdefs.h. */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211
18212
18213 #include <linux/mutex.h>
18214
18215 int
18216 main (void)
18217 {
18218
18219 struct mutex mutex;
18220 mutex_init(&mutex);
18221 mutex_lock_nested(&mutex, 0);
18222
18223 ;
18224 return 0;
18225 }
18226
18227 _ACEOF
18228
18229
18230 rm -Rf build && mkdir -p build
18231 echo "obj-m := conftest.o" >build/Makefile
18232 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
18236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243
18244 { $as_echo "$as_me:$LINENO: result: yes" >&5
18245 $as_echo "yes" >&6; }
18246
18247 cat >>confdefs.h <<\_ACEOF
18248 #define HAVE_MUTEX_LOCK_NESTED 1
18249 _ACEOF
18250
18251
18252 else
18253 $as_echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 { $as_echo "$as_me:$LINENO: result: no" >&5
18257 $as_echo "no" >&6; }
18258
18259
18260
18261 fi
18262
18263 rm -Rf build
18264
18265
18266
18267
18268 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18269 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18270
18271
18272 cat confdefs.h - <<_ACEOF >conftest.c
18273 /* confdefs.h. */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278
18279
18280 #include <linux/smp.h>
18281
18282 int
18283 main (void)
18284 {
18285
18286 on_each_cpu(NULL, NULL, 0);
18287
18288 ;
18289 return 0;
18290 }
18291
18292 _ACEOF
18293
18294
18295 rm -Rf build && mkdir -p build
18296 echo "obj-m := conftest.o" >build/Makefile
18297 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; }; then
18308
18309 { $as_echo "$as_me:$LINENO: result: yes" >&5
18310 $as_echo "yes" >&6; }
18311
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_3ARGS_ON_EACH_CPU 1
18314 _ACEOF
18315
18316
18317 else
18318 $as_echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18320
18321 { $as_echo "$as_me:$LINENO: result: no" >&5
18322 $as_echo "no" >&6; }
18323
18324
18325
18326 fi
18327
18328 rm -Rf build
18329
18330
18331
18332
18333 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18334 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18335 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18336 $LINUX_OBJ/Module*.symvers 2>/dev/null
18337 rc=$?
18338 if test $rc -ne 0; then
18339 export=0
18340 for file in ; do
18341 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18342 "$LINUX_OBJ/$file" 2>/dev/null
18343 rc=$?
18344 if test $rc -eq 0; then
18345 export=1
18346 break;
18347 fi
18348 done
18349 if test $export -eq 0; then
18350 { $as_echo "$as_me:$LINENO: result: no" >&5
18351 $as_echo "no" >&6; }
18352
18353 else
18354 { $as_echo "$as_me:$LINENO: result: yes" >&5
18355 $as_echo "yes" >&6; }
18356
18357 cat >>confdefs.h <<\_ACEOF
18358 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18359 _ACEOF
18360
18361 fi
18362 else
18363 { $as_echo "$as_me:$LINENO: result: yes" >&5
18364 $as_echo "yes" >&6; }
18365
18366 cat >>confdefs.h <<\_ACEOF
18367 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18368 _ACEOF
18369
18370 fi
18371
18372
18373
18374 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18375 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18376 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18377 $LINUX_OBJ/Module*.symvers 2>/dev/null
18378 rc=$?
18379 if test $rc -ne 0; then
18380 export=0
18381 for file in ; do
18382 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18383 "$LINUX_OBJ/$file" 2>/dev/null
18384 rc=$?
18385 if test $rc -eq 0; then
18386 export=1
18387 break;
18388 fi
18389 done
18390 if test $export -eq 0; then
18391 { $as_echo "$as_me:$LINENO: result: no" >&5
18392 $as_echo "no" >&6; }
18393
18394 else
18395 { $as_echo "$as_me:$LINENO: result: yes" >&5
18396 $as_echo "yes" >&6; }
18397
18398 cat >>confdefs.h <<\_ACEOF
18399 #define HAVE_GET_VMALLOC_INFO 1
18400 _ACEOF
18401
18402 fi
18403 else
18404 { $as_echo "$as_me:$LINENO: result: yes" >&5
18405 $as_echo "yes" >&6; }
18406
18407 cat >>confdefs.h <<\_ACEOF
18408 #define HAVE_GET_VMALLOC_INFO 1
18409 _ACEOF
18410
18411 fi
18412
18413
18414
18415 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18416 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18417 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18418 rc=$?
18419 if test $rc -eq 0; then
18420 { $as_echo "$as_me:$LINENO: result: yes" >&5
18421 $as_echo "yes" >&6; }
18422
18423 cat >>confdefs.h <<\_ACEOF
18424 #define HAVE_PGDAT_HELPERS 1
18425 _ACEOF
18426
18427 else
18428 { $as_echo "$as_me:$LINENO: result: no" >&5
18429 $as_echo "no" >&6; }
18430 fi
18431
18432
18433 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18434 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18435 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18436 $LINUX_OBJ/Module*.symvers 2>/dev/null
18437 rc=$?
18438 if test $rc -ne 0; then
18439 export=0
18440 for file in ; do
18441 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18442 "$LINUX_OBJ/$file" 2>/dev/null
18443 rc=$?
18444 if test $rc -eq 0; then
18445 export=1
18446 break;
18447 fi
18448 done
18449 if test $export -eq 0; then
18450 { $as_echo "$as_me:$LINENO: result: no" >&5
18451 $as_echo "no" >&6; }
18452
18453 else
18454 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455 $as_echo "yes" >&6; }
18456
18457 cat >>confdefs.h <<\_ACEOF
18458 #define HAVE_FIRST_ONLINE_PGDAT 1
18459 _ACEOF
18460
18461 fi
18462 else
18463 { $as_echo "$as_me:$LINENO: result: yes" >&5
18464 $as_echo "yes" >&6; }
18465
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_FIRST_ONLINE_PGDAT 1
18468 _ACEOF
18469
18470 fi
18471
18472
18473
18474 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18475 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18476 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18477 $LINUX_OBJ/Module*.symvers 2>/dev/null
18478 rc=$?
18479 if test $rc -ne 0; then
18480 export=0
18481 for file in ; do
18482 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18483 "$LINUX_OBJ/$file" 2>/dev/null
18484 rc=$?
18485 if test $rc -eq 0; then
18486 export=1
18487 break;
18488 fi
18489 done
18490 if test $export -eq 0; then
18491 { $as_echo "$as_me:$LINENO: result: no" >&5
18492 $as_echo "no" >&6; }
18493
18494 else
18495 { $as_echo "$as_me:$LINENO: result: yes" >&5
18496 $as_echo "yes" >&6; }
18497
18498 cat >>confdefs.h <<\_ACEOF
18499 #define HAVE_NEXT_ONLINE_PGDAT 1
18500 _ACEOF
18501
18502 fi
18503 else
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505 $as_echo "yes" >&6; }
18506
18507 cat >>confdefs.h <<\_ACEOF
18508 #define HAVE_NEXT_ONLINE_PGDAT 1
18509 _ACEOF
18510
18511 fi
18512
18513
18514
18515 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18516 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18517 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18518 $LINUX_OBJ/Module*.symvers 2>/dev/null
18519 rc=$?
18520 if test $rc -ne 0; then
18521 export=0
18522 for file in ; do
18523 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18524 "$LINUX_OBJ/$file" 2>/dev/null
18525 rc=$?
18526 if test $rc -eq 0; then
18527 export=1
18528 break;
18529 fi
18530 done
18531 if test $export -eq 0; then
18532 { $as_echo "$as_me:$LINENO: result: no" >&5
18533 $as_echo "no" >&6; }
18534
18535 else
18536 { $as_echo "$as_me:$LINENO: result: yes" >&5
18537 $as_echo "yes" >&6; }
18538
18539 cat >>confdefs.h <<\_ACEOF
18540 #define HAVE_NEXT_ZONE 1
18541 _ACEOF
18542
18543 fi
18544 else
18545 { $as_echo "$as_me:$LINENO: result: yes" >&5
18546 $as_echo "yes" >&6; }
18547
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_NEXT_ZONE 1
18550 _ACEOF
18551
18552 fi
18553
18554
18555
18556 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18557 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18558 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18559 $LINUX_OBJ/Module*.symvers 2>/dev/null
18560 rc=$?
18561 if test $rc -ne 0; then
18562 export=0
18563 for file in ; do
18564 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18565 "$LINUX_OBJ/$file" 2>/dev/null
18566 rc=$?
18567 if test $rc -eq 0; then
18568 export=1
18569 break;
18570 fi
18571 done
18572 if test $export -eq 0; then
18573 { $as_echo "$as_me:$LINENO: result: no" >&5
18574 $as_echo "no" >&6; }
18575
18576 else
18577 { $as_echo "$as_me:$LINENO: result: yes" >&5
18578 $as_echo "yes" >&6; }
18579
18580 cat >>confdefs.h <<\_ACEOF
18581 #define HAVE_PGDAT_LIST 1
18582 _ACEOF
18583
18584 fi
18585 else
18586 { $as_echo "$as_me:$LINENO: result: yes" >&5
18587 $as_echo "yes" >&6; }
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define HAVE_PGDAT_LIST 1
18591 _ACEOF
18592
18593 fi
18594
18595
18596
18597 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18598 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18599
18600
18601 cat confdefs.h - <<_ACEOF >conftest.c
18602 /* confdefs.h. */
18603 _ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18607
18608
18609 #include <linux/mm.h>
18610
18611 int
18612 main (void)
18613 {
18614
18615 unsigned long state __attribute__ ((unused));
18616 state = global_page_state(0);
18617
18618 ;
18619 return 0;
18620 }
18621
18622 _ACEOF
18623
18624
18625 rm -Rf build && mkdir -p build
18626 echo "obj-m := conftest.o" >build/Makefile
18627 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; }; then
18638
18639 { $as_echo "$as_me:$LINENO: result: yes" >&5
18640 $as_echo "yes" >&6; }
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE_GLOBAL_PAGE_STATE 1
18644 _ACEOF
18645
18646
18647 else
18648 $as_echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 { $as_echo "$as_me:$LINENO: result: no" >&5
18652 $as_echo "no" >&6; }
18653
18654
18655
18656 fi
18657
18658 rm -Rf build
18659
18660
18661
18662
18663 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18664 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18665
18666
18667 cat confdefs.h - <<_ACEOF >conftest.c
18668 /* confdefs.h. */
18669 _ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673
18674
18675 #include <linux/mm.h>
18676
18677 int
18678 main (void)
18679 {
18680
18681 enum zone_stat_item zsi __attribute__ ((unused));
18682 zsi = NR_FREE_PAGES;
18683
18684 ;
18685 return 0;
18686 }
18687
18688 _ACEOF
18689
18690
18691 rm -Rf build && mkdir -p build
18692 echo "obj-m := conftest.o" >build/Makefile
18693 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704
18705 { $as_echo "$as_me:$LINENO: result: yes" >&5
18706 $as_echo "yes" >&6; }
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18710 _ACEOF
18711
18712
18713 else
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 { $as_echo "$as_me:$LINENO: result: no" >&5
18718 $as_echo "no" >&6; }
18719
18720
18721
18722 fi
18723
18724 rm -Rf build
18725
18726
18727
18728
18729 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18730 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18731
18732
18733 cat confdefs.h - <<_ACEOF >conftest.c
18734 /* confdefs.h. */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739
18740
18741 #include <linux/mm.h>
18742
18743 int
18744 main (void)
18745 {
18746
18747 enum zone_stat_item zsi __attribute__ ((unused));
18748 zsi = NR_INACTIVE;
18749
18750 ;
18751 return 0;
18752 }
18753
18754 _ACEOF
18755
18756
18757 rm -Rf build && mkdir -p build
18758 echo "obj-m := conftest.o" >build/Makefile
18759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18766 (eval $ac_try) 2>&5
18767 ac_status=$?
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770
18771 { $as_echo "$as_me:$LINENO: result: yes" >&5
18772 $as_echo "yes" >&6; }
18773
18774 cat >>confdefs.h <<\_ACEOF
18775 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18776 _ACEOF
18777
18778
18779 else
18780 $as_echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783 { $as_echo "$as_me:$LINENO: result: no" >&5
18784 $as_echo "no" >&6; }
18785
18786
18787
18788 fi
18789
18790 rm -Rf build
18791
18792
18793
18794 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18795 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18796
18797
18798 cat confdefs.h - <<_ACEOF >conftest.c
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804
18805
18806 #include <linux/mm.h>
18807
18808 int
18809 main (void)
18810 {
18811
18812 enum zone_stat_item zsi __attribute__ ((unused));
18813 zsi = NR_INACTIVE_ANON;
18814
18815 ;
18816 return 0;
18817 }
18818
18819 _ACEOF
18820
18821
18822 rm -Rf build && mkdir -p build
18823 echo "obj-m := conftest.o" >build/Makefile
18824 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
18835
18836 { $as_echo "$as_me:$LINENO: result: yes" >&5
18837 $as_echo "yes" >&6; }
18838
18839 cat >>confdefs.h <<\_ACEOF
18840 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
18841 _ACEOF
18842
18843
18844 else
18845 $as_echo "$as_me: failed program was:" >&5
18846 sed 's/^/| /' conftest.$ac_ext >&5
18847
18848 { $as_echo "$as_me:$LINENO: result: no" >&5
18849 $as_echo "no" >&6; }
18850
18851
18852
18853 fi
18854
18855 rm -Rf build
18856
18857
18858
18859 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18860 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18861
18862
18863 cat confdefs.h - <<_ACEOF >conftest.c
18864 /* confdefs.h. */
18865 _ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869
18870
18871 #include <linux/mm.h>
18872
18873 int
18874 main (void)
18875 {
18876
18877 enum zone_stat_item zsi __attribute__ ((unused));
18878 zsi = NR_INACTIVE_FILE;
18879
18880 ;
18881 return 0;
18882 }
18883
18884 _ACEOF
18885
18886
18887 rm -Rf build && mkdir -p build
18888 echo "obj-m := conftest.o" >build/Makefile
18889 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18891 (eval $ac_try) 2>&5
18892 ac_status=$?
18893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; }; then
18900
18901 { $as_echo "$as_me:$LINENO: result: yes" >&5
18902 $as_echo "yes" >&6; }
18903
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18906 _ACEOF
18907
18908
18909 else
18910 $as_echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913 { $as_echo "$as_me:$LINENO: result: no" >&5
18914 $as_echo "no" >&6; }
18915
18916
18917
18918 fi
18919
18920 rm -Rf build
18921
18922
18923
18924
18925 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18926 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18927
18928
18929 cat confdefs.h - <<_ACEOF >conftest.c
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935
18936
18937 #include <linux/mm.h>
18938
18939 int
18940 main (void)
18941 {
18942
18943 enum zone_stat_item zsi __attribute__ ((unused));
18944 zsi = NR_ACTIVE;
18945
18946 ;
18947 return 0;
18948 }
18949
18950 _ACEOF
18951
18952
18953 rm -Rf build && mkdir -p build
18954 echo "obj-m := conftest.o" >build/Makefile
18955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957 (eval $ac_try) 2>&5
18958 ac_status=$?
18959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966
18967 { $as_echo "$as_me:$LINENO: result: yes" >&5
18968 $as_echo "yes" >&6; }
18969
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
18972 _ACEOF
18973
18974
18975 else
18976 $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 { $as_echo "$as_me:$LINENO: result: no" >&5
18980 $as_echo "no" >&6; }
18981
18982
18983
18984 fi
18985
18986 rm -Rf build
18987
18988
18989
18990 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18991 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
18992
18993
18994 cat confdefs.h - <<_ACEOF >conftest.c
18995 /* confdefs.h. */
18996 _ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19000
19001
19002 #include <linux/mm.h>
19003
19004 int
19005 main (void)
19006 {
19007
19008 enum zone_stat_item zsi __attribute__ ((unused));
19009 zsi = NR_ACTIVE_ANON;
19010
19011 ;
19012 return 0;
19013 }
19014
19015 _ACEOF
19016
19017
19018 rm -Rf build && mkdir -p build
19019 echo "obj-m := conftest.o" >build/Makefile
19020 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19023 ac_status=$?
19024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19028 ac_status=$?
19029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; }; then
19031
19032 { $as_echo "$as_me:$LINENO: result: yes" >&5
19033 $as_echo "yes" >&6; }
19034
19035 cat >>confdefs.h <<\_ACEOF
19036 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
19037 _ACEOF
19038
19039
19040 else
19041 $as_echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19043
19044 { $as_echo "$as_me:$LINENO: result: no" >&5
19045 $as_echo "no" >&6; }
19046
19047
19048
19049 fi
19050
19051 rm -Rf build
19052
19053
19054
19055 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19056 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
19057
19058
19059 cat confdefs.h - <<_ACEOF >conftest.c
19060 /* confdefs.h. */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065
19066
19067 #include <linux/mm.h>
19068
19069 int
19070 main (void)
19071 {
19072
19073 enum zone_stat_item zsi __attribute__ ((unused));
19074 zsi = NR_ACTIVE_FILE;
19075
19076 ;
19077 return 0;
19078 }
19079
19080 _ACEOF
19081
19082
19083 rm -Rf build && mkdir -p build
19084 echo "obj-m := conftest.o" >build/Makefile
19085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19092 (eval $ac_try) 2>&5
19093 ac_status=$?
19094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); }; }; then
19096
19097 { $as_echo "$as_me:$LINENO: result: yes" >&5
19098 $as_echo "yes" >&6; }
19099
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
19102 _ACEOF
19103
19104
19105 else
19106 $as_echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 { $as_echo "$as_me:$LINENO: result: no" >&5
19110 $as_echo "no" >&6; }
19111
19112
19113
19114 fi
19115
19116 rm -Rf build
19117
19118
19119
19120
19121 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19122 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19123
19124
19125 cat confdefs.h - <<_ACEOF >conftest.c
19126 /* confdefs.h. */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131
19132
19133
19134 int
19135 main (void)
19136 {
19137
19138 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19139 #error "global_page_state needs NR_FREE_PAGES"
19140 #endif
19141
19142 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19143 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19144 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19145 #error "global_page_state needs NR_ACTIVE*"
19146 #endif
19147
19148 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19149 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19150 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19151 #error "global_page_state needs NR_INACTIVE*"
19152 #endif
19153
19154 ;
19155 return 0;
19156 }
19157
19158 _ACEOF
19159
19160
19161 rm -Rf build && mkdir -p build
19162 echo "obj-m := conftest.o" >build/Makefile
19163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174
19175 { $as_echo "$as_me:$LINENO: result: no" >&5
19176 $as_echo "no" >&6; }
19177
19178 else
19179 $as_echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 { $as_echo "$as_me:$LINENO: result: yes" >&5
19183 $as_echo "yes" >&6; }
19184
19185 cat >>confdefs.h <<\_ACEOF
19186 #define NEED_GET_ZONE_COUNTS 1
19187 _ACEOF
19188
19189
19190 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19191 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19192 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19193 $LINUX_OBJ/Module*.symvers 2>/dev/null
19194 rc=$?
19195 if test $rc -ne 0; then
19196 export=0
19197 for file in ; do
19198 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19199 "$LINUX_OBJ/$file" 2>/dev/null
19200 rc=$?
19201 if test $rc -eq 0; then
19202 export=1
19203 break;
19204 fi
19205 done
19206 if test $export -eq 0; then
19207 { $as_echo "$as_me:$LINENO: result: no" >&5
19208 $as_echo "no" >&6; }
19209
19210 else
19211 { $as_echo "$as_me:$LINENO: result: yes" >&5
19212 $as_echo "yes" >&6; }
19213
19214 cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_GET_ZONE_COUNTS 1
19216 _ACEOF
19217
19218 fi
19219 else
19220 { $as_echo "$as_me:$LINENO: result: yes" >&5
19221 $as_echo "yes" >&6; }
19222
19223 cat >>confdefs.h <<\_ACEOF
19224 #define HAVE_GET_ZONE_COUNTS 1
19225 _ACEOF
19226
19227 fi
19228
19229
19230
19231
19232 fi
19233
19234 rm -Rf build
19235
19236
19237
19238
19239 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19240 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19241 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19242 $LINUX_OBJ/Module*.symvers 2>/dev/null
19243 rc=$?
19244 if test $rc -ne 0; then
19245 export=0
19246 for file in ; do
19247 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19248 "$LINUX_OBJ/$file" 2>/dev/null
19249 rc=$?
19250 if test $rc -eq 0; then
19251 export=1
19252 break;
19253 fi
19254 done
19255 if test $export -eq 0; then
19256 { $as_echo "$as_me:$LINENO: result: no" >&5
19257 $as_echo "no" >&6; }
19258
19259 else
19260 { $as_echo "$as_me:$LINENO: result: yes" >&5
19261 $as_echo "yes" >&6; }
19262
19263 cat >>confdefs.h <<\_ACEOF
19264 #define HAVE_USER_PATH_DIR 1
19265 _ACEOF
19266
19267 fi
19268 else
19269 { $as_echo "$as_me:$LINENO: result: yes" >&5
19270 $as_echo "yes" >&6; }
19271
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_USER_PATH_DIR 1
19274 _ACEOF
19275
19276 fi
19277
19278
19279
19280 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19281 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19282 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19283 $LINUX_OBJ/Module*.symvers 2>/dev/null
19284 rc=$?
19285 if test $rc -ne 0; then
19286 export=0
19287 for file in ; do
19288 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19289 "$LINUX_OBJ/$file" 2>/dev/null
19290 rc=$?
19291 if test $rc -eq 0; then
19292 export=1
19293 break;
19294 fi
19295 done
19296 if test $export -eq 0; then
19297 { $as_echo "$as_me:$LINENO: result: no" >&5
19298 $as_echo "no" >&6; }
19299
19300 else
19301 { $as_echo "$as_me:$LINENO: result: yes" >&5
19302 $as_echo "yes" >&6; }
19303
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_SET_FS_PWD 1
19306 _ACEOF
19307
19308 fi
19309 else
19310 { $as_echo "$as_me:$LINENO: result: yes" >&5
19311 $as_echo "yes" >&6; }
19312
19313 cat >>confdefs.h <<\_ACEOF
19314 #define HAVE_SET_FS_PWD 1
19315 _ACEOF
19316
19317 fi
19318
19319
19320 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19321 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19322
19323
19324 cat confdefs.h - <<_ACEOF >conftest.c
19325 /* confdefs.h. */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330
19331
19332 #include <linux/sched.h>
19333 #include <linux/fs_struct.h>
19334
19335 int
19336 main (void)
19337 {
19338
19339 set_fs_pwd(NULL, NULL);
19340
19341 ;
19342 return 0;
19343 }
19344
19345 _ACEOF
19346
19347
19348 rm -Rf build && mkdir -p build
19349 echo "obj-m := conftest.o" >build/Makefile
19350 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19353 ac_status=$?
19354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361
19362 { $as_echo "$as_me:$LINENO: result: yes" >&5
19363 $as_echo "yes" >&6; }
19364
19365 cat >>confdefs.h <<\_ACEOF
19366 #define HAVE_2ARGS_SET_FS_PWD 1
19367 _ACEOF
19368
19369
19370 else
19371 $as_echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 { $as_echo "$as_me:$LINENO: result: no" >&5
19375 $as_echo "no" >&6; }
19376
19377
19378
19379 fi
19380
19381 rm -Rf build
19382
19383
19384
19385 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19386 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
19387
19388
19389 cat confdefs.h - <<_ACEOF >conftest.c
19390 /* confdefs.h. */
19391 _ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395
19396
19397 #include <linux/fs.h>
19398
19399 int
19400 main (void)
19401 {
19402
19403 vfs_unlink(NULL, NULL);
19404
19405 ;
19406 return 0;
19407 }
19408
19409 _ACEOF
19410
19411
19412 rm -Rf build && mkdir -p build
19413 echo "obj-m := conftest.o" >build/Makefile
19414 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19417 ac_status=$?
19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425
19426 { $as_echo "$as_me:$LINENO: result: yes" >&5
19427 $as_echo "yes" >&6; }
19428
19429 cat >>confdefs.h <<\_ACEOF
19430 #define HAVE_2ARGS_VFS_UNLINK 1
19431 _ACEOF
19432
19433
19434 else
19435 $as_echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 { $as_echo "$as_me:$LINENO: result: no" >&5
19439 $as_echo "no" >&6; }
19440
19441
19442
19443 fi
19444
19445 rm -Rf build
19446
19447
19448
19449 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19450 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19451
19452
19453 cat confdefs.h - <<_ACEOF >conftest.c
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19459
19460
19461 #include <linux/fs.h>
19462
19463 int
19464 main (void)
19465 {
19466
19467 vfs_rename(NULL, NULL, NULL, NULL);
19468
19469 ;
19470 return 0;
19471 }
19472
19473 _ACEOF
19474
19475
19476 rm -Rf build && mkdir -p build
19477 echo "obj-m := conftest.o" >build/Makefile
19478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; }; then
19489
19490 { $as_echo "$as_me:$LINENO: result: yes" >&5
19491 $as_echo "yes" >&6; }
19492
19493 cat >>confdefs.h <<\_ACEOF
19494 #define HAVE_4ARGS_VFS_RENAME 1
19495 _ACEOF
19496
19497
19498 else
19499 $as_echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 { $as_echo "$as_me:$LINENO: result: no" >&5
19503 $as_echo "no" >&6; }
19504
19505
19506
19507 fi
19508
19509 rm -Rf build
19510
19511
19512
19513
19514 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19515 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19516 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19517 $LINUX_OBJ/Module*.symvers 2>/dev/null
19518 rc=$?
19519 if test $rc -ne 0; then
19520 export=0
19521 for file in fs/sync.c; do
19522 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19523 "$LINUX_OBJ/$file" 2>/dev/null
19524 rc=$?
19525 if test $rc -eq 0; then
19526 export=1
19527 break;
19528 fi
19529 done
19530 if test $export -eq 0; then
19531 { $as_echo "$as_me:$LINENO: result: no" >&5
19532 $as_echo "no" >&6; }
19533
19534 else
19535 { $as_echo "$as_me:$LINENO: result: yes" >&5
19536 $as_echo "yes" >&6; }
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_VFS_FSYNC 1
19540 _ACEOF
19541
19542 fi
19543 else
19544 { $as_echo "$as_me:$LINENO: result: yes" >&5
19545 $as_echo "yes" >&6; }
19546
19547 cat >>confdefs.h <<\_ACEOF
19548 #define HAVE_VFS_FSYNC 1
19549 _ACEOF
19550
19551 fi
19552
19553
19554
19555 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19556 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19557
19558
19559 cat confdefs.h - <<_ACEOF >conftest.c
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565
19566
19567 #include <linux/fs.h>
19568
19569 int
19570 main (void)
19571 {
19572
19573 vfs_fsync(NULL, 0);
19574
19575 ;
19576 return 0;
19577 }
19578
19579 _ACEOF
19580
19581
19582 rm -Rf build && mkdir -p build
19583 echo "obj-m := conftest.o" >build/Makefile
19584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595
19596 { $as_echo "$as_me:$LINENO: result: yes" >&5
19597 $as_echo "yes" >&6; }
19598
19599 cat >>confdefs.h <<\_ACEOF
19600 #define HAVE_2ARGS_VFS_FSYNC 1
19601 _ACEOF
19602
19603
19604 else
19605 $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608 { $as_echo "$as_me:$LINENO: result: no" >&5
19609 $as_echo "no" >&6; }
19610
19611
19612
19613 fi
19614
19615 rm -Rf build
19616
19617
19618
19619
19620 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19621 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19622 tmp_flags="$EXTRA_KCFLAGS"
19623 EXTRA_KCFLAGS="-Werror"
19624
19625
19626 cat confdefs.h - <<_ACEOF >conftest.c
19627 /* confdefs.h. */
19628 _ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632
19633
19634 #include <linux/sched.h>
19635 #include <linux/fs_struct.h>
19636
19637 int
19638 main (void)
19639 {
19640
19641 struct fs_struct fs;
19642 spin_lock_init(&fs.lock);
19643
19644 ;
19645 return 0;
19646 }
19647
19648 _ACEOF
19649
19650
19651 rm -Rf build && mkdir -p build
19652 echo "obj-m := conftest.o" >build/Makefile
19653 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664
19665 { $as_echo "$as_me:$LINENO: result: yes" >&5
19666 $as_echo "yes" >&6; }
19667
19668 cat >>confdefs.h <<\_ACEOF
19669 #define HAVE_FS_STRUCT_SPINLOCK 1
19670 _ACEOF
19671
19672
19673 else
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677 { $as_echo "$as_me:$LINENO: result: no" >&5
19678 $as_echo "no" >&6; }
19679
19680
19681
19682 fi
19683
19684 rm -Rf build
19685
19686
19687 EXTRA_KCFLAGS="$tmp_flags"
19688
19689
19690 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19691 $as_echo_n "checking whether struct cred exists... " >&6; }
19692
19693
19694 cat confdefs.h - <<_ACEOF >conftest.c
19695 /* confdefs.h. */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19700
19701
19702 #include <linux/cred.h>
19703
19704 int
19705 main (void)
19706 {
19707
19708 struct cred *cr __attribute__ ((unused));
19709 cr = NULL;
19710
19711 ;
19712 return 0;
19713 }
19714
19715 _ACEOF
19716
19717
19718 rm -Rf build && mkdir -p build
19719 echo "obj-m := conftest.o" >build/Makefile
19720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731
19732 { $as_echo "$as_me:$LINENO: result: yes" >&5
19733 $as_echo "yes" >&6; }
19734
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_CRED_STRUCT 1
19737 _ACEOF
19738
19739
19740 else
19741 $as_echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 { $as_echo "$as_me:$LINENO: result: no" >&5
19745 $as_echo "no" >&6; }
19746
19747
19748
19749 fi
19750
19751 rm -Rf build
19752
19753
19754
19755
19756 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19757 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19758 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19759 $LINUX_OBJ/Module*.symvers 2>/dev/null
19760 rc=$?
19761 if test $rc -ne 0; then
19762 export=0
19763 for file in ; do
19764 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19765 "$LINUX_OBJ/$file" 2>/dev/null
19766 rc=$?
19767 if test $rc -eq 0; then
19768 export=1
19769 break;
19770 fi
19771 done
19772 if test $export -eq 0; then
19773 { $as_echo "$as_me:$LINENO: result: no" >&5
19774 $as_echo "no" >&6; }
19775
19776 else
19777 { $as_echo "$as_me:$LINENO: result: yes" >&5
19778 $as_echo "yes" >&6; }
19779
19780 cat >>confdefs.h <<\_ACEOF
19781 #define HAVE_GROUPS_SEARCH 1
19782 _ACEOF
19783
19784 fi
19785 else
19786 { $as_echo "$as_me:$LINENO: result: yes" >&5
19787 $as_echo "yes" >&6; }
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_GROUPS_SEARCH 1
19791 _ACEOF
19792
19793 fi
19794
19795
19796
19797 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19798 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19799 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19800 $LINUX_OBJ/Module*.symvers 2>/dev/null
19801 rc=$?
19802 if test $rc -ne 0; then
19803 export=0
19804 for file in ; do
19805 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19806 "$LINUX_OBJ/$file" 2>/dev/null
19807 rc=$?
19808 if test $rc -eq 0; then
19809 export=1
19810 break;
19811 fi
19812 done
19813 if test $export -eq 0; then
19814 { $as_echo "$as_me:$LINENO: result: no" >&5
19815 $as_echo "no" >&6; }
19816
19817 else
19818 { $as_echo "$as_me:$LINENO: result: yes" >&5
19819 $as_echo "yes" >&6; }
19820
19821 cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_PUT_TASK_STRUCT 1
19823 _ACEOF
19824
19825 fi
19826 else
19827 { $as_echo "$as_me:$LINENO: result: yes" >&5
19828 $as_echo "yes" >&6; }
19829
19830 cat >>confdefs.h <<\_ACEOF
19831 #define HAVE_PUT_TASK_STRUCT 1
19832 _ACEOF
19833
19834 fi
19835
19836
19837
19838 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19839 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19840
19841
19842 cat confdefs.h - <<_ACEOF >conftest.c
19843 /* confdefs.h. */
19844 _ACEOF
19845 cat confdefs.h >>conftest.$ac_ext
19846 cat >>conftest.$ac_ext <<_ACEOF
19847 /* end confdefs.h. */
19848
19849
19850 #include <linux/sysctl.h>
19851
19852 int
19853 main (void)
19854 {
19855
19856 proc_dostring(NULL, 0, NULL, NULL, NULL);
19857
19858 ;
19859 return 0;
19860 }
19861
19862 _ACEOF
19863
19864
19865 rm -Rf build && mkdir -p build
19866 echo "obj-m := conftest.o" >build/Makefile
19867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19870 ac_status=$?
19871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878
19879 { $as_echo "$as_me:$LINENO: result: yes" >&5
19880 $as_echo "yes" >&6; }
19881
19882 cat >>confdefs.h <<\_ACEOF
19883 #define HAVE_5ARGS_PROC_HANDLER 1
19884 _ACEOF
19885
19886
19887 else
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19890
19891 { $as_echo "$as_me:$LINENO: result: no" >&5
19892 $as_echo "no" >&6; }
19893
19894
19895
19896 fi
19897
19898 rm -Rf build
19899
19900
19901
19902
19903 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19904 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19905 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19906 $LINUX_OBJ/Module*.symvers 2>/dev/null
19907 rc=$?
19908 if test $rc -ne 0; then
19909 export=0
19910 for file in ; do
19911 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19912 "$LINUX_OBJ/$file" 2>/dev/null
19913 rc=$?
19914 if test $rc -eq 0; then
19915 export=1
19916 break;
19917 fi
19918 done
19919 if test $export -eq 0; then
19920 { $as_echo "$as_me:$LINENO: result: no" >&5
19921 $as_echo "no" >&6; }
19922
19923 else
19924 { $as_echo "$as_me:$LINENO: result: yes" >&5
19925 $as_echo "yes" >&6; }
19926
19927 cat >>confdefs.h <<\_ACEOF
19928 #define HAVE_KVASPRINTF 1
19929 _ACEOF
19930
19931 fi
19932 else
19933 { $as_echo "$as_me:$LINENO: result: yes" >&5
19934 $as_echo "yes" >&6; }
19935
19936 cat >>confdefs.h <<\_ACEOF
19937 #define HAVE_KVASPRINTF 1
19938 _ACEOF
19939
19940 fi
19941
19942
19943
19944 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19945 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19946 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19947 $LINUX_OBJ/Module*.symvers 2>/dev/null
19948 rc=$?
19949 if test $rc -ne 0; then
19950 export=0
19951 for file in lib/rwsem-spinlock.c; do
19952 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
19953 "$LINUX_OBJ/$file" 2>/dev/null
19954 rc=$?
19955 if test $rc -eq 0; then
19956 export=1
19957 break;
19958 fi
19959 done
19960 if test $export -eq 0; then
19961 { $as_echo "$as_me:$LINENO: result: no" >&5
19962 $as_echo "no" >&6; }
19963
19964 else
19965 { $as_echo "$as_me:$LINENO: result: yes" >&5
19966 $as_echo "yes" >&6; }
19967
19968 cat >>confdefs.h <<\_ACEOF
19969 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19970 _ACEOF
19971
19972 fi
19973 else
19974 { $as_echo "$as_me:$LINENO: result: yes" >&5
19975 $as_echo "yes" >&6; }
19976
19977 cat >>confdefs.h <<\_ACEOF
19978 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19979 _ACEOF
19980
19981 fi
19982
19983
19984
19985 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
19986 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
19987 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
19988 $LINUX_OBJ/Module*.symvers 2>/dev/null
19989 rc=$?
19990 if test $rc -ne 0; then
19991 export=0
19992 for file in ; do
19993 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
19994 "$LINUX_OBJ/$file" 2>/dev/null
19995 rc=$?
19996 if test $rc -eq 0; then
19997 export=1
19998 break;
19999 fi
20000 done
20001 if test $export -eq 0; then
20002 { $as_echo "$as_me:$LINENO: result: no" >&5
20003 $as_echo "no" >&6; }
20004
20005 else
20006 { $as_echo "$as_me:$LINENO: result: yes" >&5
20007 $as_echo "yes" >&6; }
20008
20009 cat >>confdefs.h <<\_ACEOF
20010 #define HAVE_INVALIDATE_INODES 1
20011 _ACEOF
20012
20013 fi
20014 else
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016 $as_echo "yes" >&6; }
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_INVALIDATE_INODES 1
20020 _ACEOF
20021
20022 fi
20023
20024 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20025 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20026 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20027 $LINUX_OBJ/Module*.symvers 2>/dev/null
20028 rc=$?
20029 if test $rc -ne 0; then
20030 export=0
20031 for file in ; do
20032 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20033 "$LINUX_OBJ/$file" 2>/dev/null
20034 rc=$?
20035 if test $rc -eq 0; then
20036 export=1
20037 break;
20038 fi
20039 done
20040 if test $export -eq 0; then
20041 { $as_echo "$as_me:$LINENO: result: no" >&5
20042 $as_echo "no" >&6; }
20043
20044 else
20045 { $as_echo "$as_me:$LINENO: result: yes" >&5
20046 $as_echo "yes" >&6; }
20047
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_INVALIDATE_INODES_CHECK 1
20050 _ACEOF
20051
20052 fi
20053 else
20054 { $as_echo "$as_me:$LINENO: result: yes" >&5
20055 $as_echo "yes" >&6; }
20056
20057 cat >>confdefs.h <<\_ACEOF
20058 #define HAVE_INVALIDATE_INODES_CHECK 1
20059 _ACEOF
20060
20061 fi
20062
20063
20064 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20065 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20066
20067
20068 cat confdefs.h - <<_ACEOF >conftest.c
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074
20075
20076 #include <linux/fs.h>
20077
20078 int
20079 main (void)
20080 {
20081
20082 return __invalidate_device(NULL, 0);
20083
20084 ;
20085 return 0;
20086 }
20087
20088 _ACEOF
20089
20090
20091 rm -Rf build && mkdir -p build
20092 echo "obj-m := conftest.o" >build/Makefile
20093 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104
20105 { $as_echo "$as_me:$LINENO: result: yes" >&5
20106 $as_echo "yes" >&6; }
20107
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_2ARGS_INVALIDATE_INODES 1
20110 _ACEOF
20111
20112
20113 else
20114 $as_echo "$as_me: failed program was:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20116
20117 { $as_echo "$as_me:$LINENO: result: no" >&5
20118 $as_echo "no" >&6; }
20119
20120
20121
20122 fi
20123
20124 rm -Rf build
20125
20126
20127
20128
20129 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20130 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20131 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20132 $LINUX_OBJ/Module*.symvers 2>/dev/null
20133 rc=$?
20134 if test $rc -ne 0; then
20135 export=0
20136 for file in fs/dcache.c; do
20137 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20138 "$LINUX_OBJ/$file" 2>/dev/null
20139 rc=$?
20140 if test $rc -eq 0; then
20141 export=1
20142 break;
20143 fi
20144 done
20145 if test $export -eq 0; then
20146 { $as_echo "$as_me:$LINENO: result: no" >&5
20147 $as_echo "no" >&6; }
20148
20149 else
20150 { $as_echo "$as_me:$LINENO: result: yes" >&5
20151 $as_echo "yes" >&6; }
20152
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_SHRINK_DCACHE_MEMORY 1
20155 _ACEOF
20156
20157 fi
20158 else
20159 { $as_echo "$as_me:$LINENO: result: yes" >&5
20160 $as_echo "yes" >&6; }
20161
20162 cat >>confdefs.h <<\_ACEOF
20163 #define HAVE_SHRINK_DCACHE_MEMORY 1
20164 _ACEOF
20165
20166 fi
20167
20168
20169
20170 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20171 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20172 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20173 $LINUX_OBJ/Module*.symvers 2>/dev/null
20174 rc=$?
20175 if test $rc -ne 0; then
20176 export=0
20177 for file in fs/inode.c; do
20178 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20179 "$LINUX_OBJ/$file" 2>/dev/null
20180 rc=$?
20181 if test $rc -eq 0; then
20182 export=1
20183 break;
20184 fi
20185 done
20186 if test $export -eq 0; then
20187 { $as_echo "$as_me:$LINENO: result: no" >&5
20188 $as_echo "no" >&6; }
20189
20190 else
20191 { $as_echo "$as_me:$LINENO: result: yes" >&5
20192 $as_echo "yes" >&6; }
20193
20194 cat >>confdefs.h <<\_ACEOF
20195 #define HAVE_SHRINK_ICACHE_MEMORY 1
20196 _ACEOF
20197
20198 fi
20199 else
20200 { $as_echo "$as_me:$LINENO: result: yes" >&5
20201 $as_echo "yes" >&6; }
20202
20203 cat >>confdefs.h <<\_ACEOF
20204 #define HAVE_SHRINK_ICACHE_MEMORY 1
20205 _ACEOF
20206
20207 fi
20208
20209
20210
20211
20212 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20213 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20214 header=0
20215 for file in include/linux/namei.h; do
20216 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20217 rc=$?
20218 if test $rc -eq 0; then
20219 header=1
20220 break;
20221 fi
20222 done
20223 if test $header -eq 0; then
20224 { $as_echo "$as_me:$LINENO: result: no" >&5
20225 $as_echo "no" >&6; }
20226
20227 else
20228 { $as_echo "$as_me:$LINENO: result: yes" >&5
20229 $as_echo "yes" >&6; }
20230
20231 cat >>confdefs.h <<\_ACEOF
20232 #define HAVE_KERN_PATH_PARENT_HEADER 1
20233 _ACEOF
20234
20235 fi
20236
20237
20238
20239 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20240 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20241 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20242 $LINUX_OBJ/Module*.symvers 2>/dev/null
20243 rc=$?
20244 if test $rc -ne 0; then
20245 export=0
20246 for file in fs/namei.c; do
20247 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20248 "$LINUX_OBJ/$file" 2>/dev/null
20249 rc=$?
20250 if test $rc -eq 0; then
20251 export=1
20252 break;
20253 fi
20254 done
20255 if test $export -eq 0; then
20256 { $as_echo "$as_me:$LINENO: result: no" >&5
20257 $as_echo "no" >&6; }
20258
20259 else
20260 { $as_echo "$as_me:$LINENO: result: yes" >&5
20261 $as_echo "yes" >&6; }
20262
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20265 _ACEOF
20266
20267 fi
20268 else
20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
20270 $as_echo "yes" >&6; }
20271
20272 cat >>confdefs.h <<\_ACEOF
20273 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20274 _ACEOF
20275
20276 fi
20277
20278
20279 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20280 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20281
20282
20283 cat confdefs.h - <<_ACEOF >conftest.c
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289
20290
20291 #include <linux/zlib.h>
20292
20293 int
20294 main (void)
20295 {
20296
20297 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20298
20299 ;
20300 return 0;
20301 }
20302
20303 _ACEOF
20304
20305
20306 rm -Rf build && mkdir -p build
20307 echo "obj-m := conftest.o" >build/Makefile
20308 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319
20320 { $as_echo "$as_me:$LINENO: result: yes" >&5
20321 $as_echo "yes" >&6; }
20322
20323 cat >>confdefs.h <<\_ACEOF
20324 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20325 _ACEOF
20326
20327
20328 else
20329 $as_echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 { $as_echo "$as_me:$LINENO: result: no" >&5
20333 $as_echo "no" >&6; }
20334
20335
20336
20337 fi
20338
20339 rm -Rf build
20340
20341
20342
20343
20344 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20345 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20346
20347
20348 cat confdefs.h - <<_ACEOF >conftest.c
20349 /* confdefs.h. */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20354
20355
20356 #include <linux/mm.h>
20357
20358 int
20359 main (void)
20360 {
20361
20362 struct shrink_control sc __attribute__ ((unused));
20363
20364 sc.nr_to_scan = 0;
20365 sc.gfp_mask = GFP_KERNEL;
20366
20367 ;
20368 return 0;
20369 }
20370
20371 _ACEOF
20372
20373
20374 rm -Rf build && mkdir -p build
20375 echo "obj-m := conftest.o" >build/Makefile
20376 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20383 (eval $ac_try) 2>&5
20384 ac_status=$?
20385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); }; }; then
20387
20388 { $as_echo "$as_me:$LINENO: result: yes" >&5
20389 $as_echo "yes" >&6; }
20390
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_SHRINK_CONTROL_STRUCT 1
20393 _ACEOF
20394
20395
20396 else
20397 $as_echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 { $as_echo "$as_me:$LINENO: result: no" >&5
20401 $as_echo "no" >&6; }
20402
20403
20404
20405 fi
20406
20407 rm -Rf build
20408
20409
20410
20411
20412 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20413 $as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20414 tmp_flags="$EXTRA_KCFLAGS"
20415 EXTRA_KCFLAGS="-Werror"
20416
20417
20418 cat confdefs.h - <<_ACEOF >conftest.c
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424
20425
20426 #include <linux/rwsem.h>
20427
20428 int
20429 main (void)
20430 {
20431
20432 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20433 raw_spinlock_t dummy_lock __attribute__ ((unused));
20434 dummy_semaphore.wait_lock = dummy_lock;
20435
20436 ;
20437 return 0;
20438 }
20439
20440 _ACEOF
20441
20442
20443 rm -Rf build && mkdir -p build
20444 echo "obj-m := conftest.o" >build/Makefile
20445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452 (eval $ac_try) 2>&5
20453 ac_status=$?
20454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; }; then
20456
20457 { $as_echo "$as_me:$LINENO: result: yes" >&5
20458 $as_echo "yes" >&6; }
20459
20460 cat >>confdefs.h <<\_ACEOF
20461 #define RWSEM_SPINLOCK_IS_RAW 1
20462 _ACEOF
20463
20464
20465 else
20466 $as_echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 { $as_echo "$as_me:$LINENO: result: no" >&5
20470 $as_echo "no" >&6; }
20471
20472
20473
20474 fi
20475
20476 rm -Rf build
20477
20478
20479 EXTRA_KCFLAGS="$tmp_flags"
20480
20481
20482 ;;
20483 srpm) ;;
20484 *)
20485 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20486 $as_echo "Error!" >&6; }
20487 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20488 user kernel|user|all|srpm" >&5
20489 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20490 user kernel|user|all|srpm" >&2;}
20491 { (exit 1); exit 1; }; } ;;
20492 esac
20493
20494 if test "$SPL_CONFIG" = user ||
20495 test "$SPL_CONFIG" = all; then
20496 CONFIG_USER_TRUE=
20497 CONFIG_USER_FALSE='#'
20498 else
20499 CONFIG_USER_TRUE='#'
20500 CONFIG_USER_FALSE=
20501 fi
20502
20503 if test "$SPL_CONFIG" = kernel ||
20504 test "$SPL_CONFIG" = all; then
20505 CONFIG_KERNEL_TRUE=
20506 CONFIG_KERNEL_FALSE='#'
20507 else
20508 CONFIG_KERNEL_TRUE='#'
20509 CONFIG_KERNEL_FALSE=
20510 fi
20511
20512
20513
20514 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
20515
20516
20517 cat >confcache <<\_ACEOF
20518 # This file is a shell script that caches the results of configure
20519 # tests run on this system so they can be shared between configure
20520 # scripts and configure runs, see configure's option --config-cache.
20521 # It is not useful on other systems. If it contains results you don't
20522 # want to keep, you may remove or edit it.
20523 #
20524 # config.status only pays attention to the cache file if you give it
20525 # the --recheck option to rerun configure.
20526 #
20527 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20528 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20529 # following values.
20530
20531 _ACEOF
20532
20533 # The following way of writing the cache mishandles newlines in values,
20534 # but we know of no workaround that is simple, portable, and efficient.
20535 # So, we kill variables containing newlines.
20536 # Ultrix sh set writes to stderr and can't be redirected directly,
20537 # and sets the high bit in the cache file unless we assign to the vars.
20538 (
20539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20540 eval ac_val=\$$ac_var
20541 case $ac_val in #(
20542 *${as_nl}*)
20543 case $ac_var in #(
20544 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20546 esac
20547 case $ac_var in #(
20548 _ | IFS | as_nl) ;; #(
20549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20550 *) $as_unset $ac_var ;;
20551 esac ;;
20552 esac
20553 done
20554
20555 (set) 2>&1 |
20556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20557 *${as_nl}ac_space=\ *)
20558 # `set' does not quote correctly, so add quotes (double-quote
20559 # substitution turns \\\\ into \\, and sed turns \\ into \).
20560 sed -n \
20561 "s/'/'\\\\''/g;
20562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20563 ;; #(
20564 *)
20565 # `set' quotes correctly as required by POSIX, so do not add quotes.
20566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20567 ;;
20568 esac |
20569 sort
20570 ) |
20571 sed '
20572 /^ac_cv_env_/b end
20573 t clear
20574 :clear
20575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20576 t end
20577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20578 :end' >>confcache
20579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20580 if test -w "$cache_file"; then
20581 test "x$cache_file" != "x/dev/null" &&
20582 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20583 $as_echo "$as_me: updating cache $cache_file" >&6;}
20584 cat confcache >$cache_file
20585 else
20586 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20588 fi
20589 fi
20590 rm -f confcache
20591
20592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593 # Let make expand exec_prefix.
20594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20595
20596 DEFS=-DHAVE_CONFIG_H
20597
20598 ac_libobjs=
20599 ac_ltlibobjs=
20600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20601 # 1. Remove the extension, and $U if already installed.
20602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20605 # will be set to the directory where LIBOBJS objects are built.
20606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20608 done
20609 LIBOBJS=$ac_libobjs
20610
20611 LTLIBOBJS=$ac_ltlibobjs
20612
20613
20614 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20615 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20616 Usually this means the macro was only invoked conditionally." >&5
20617 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20618 Usually this means the macro was only invoked conditionally." >&2;}
20619 { (exit 1); exit 1; }; }
20620 fi
20621 if test -n "$EXEEXT"; then
20622 am__EXEEXT_TRUE=
20623 am__EXEEXT_FALSE='#'
20624 else
20625 am__EXEEXT_TRUE='#'
20626 am__EXEEXT_FALSE=
20627 fi
20628
20629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20630 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20631 Usually this means the macro was only invoked conditionally." >&5
20632 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20633 Usually this means the macro was only invoked conditionally." >&2;}
20634 { (exit 1); exit 1; }; }
20635 fi
20636 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20637 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20638 Usually this means the macro was only invoked conditionally." >&5
20639 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20640 Usually this means the macro was only invoked conditionally." >&2;}
20641 { (exit 1); exit 1; }; }
20642 fi
20643 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20644 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20645 Usually this means the macro was only invoked conditionally." >&5
20646 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20647 Usually this means the macro was only invoked conditionally." >&2;}
20648 { (exit 1); exit 1; }; }
20649 fi
20650 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20651 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20652 Usually this means the macro was only invoked conditionally." >&5
20653 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20654 Usually this means the macro was only invoked conditionally." >&2;}
20655 { (exit 1); exit 1; }; }
20656 fi
20657
20658 : ${CONFIG_STATUS=./config.status}
20659 ac_write_fail=0
20660 ac_clean_files_save=$ac_clean_files
20661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20662 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20664 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20665 #! $SHELL
20666 # Generated by $as_me.
20667 # Run this file to recreate the current configuration.
20668 # Compiler output produced by configure, useful for debugging
20669 # configure, is in config.log if it exists.
20670
20671 debug=false
20672 ac_cs_recheck=false
20673 ac_cs_silent=false
20674 SHELL=\${CONFIG_SHELL-$SHELL}
20675 _ACEOF
20676
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 ## --------------------- ##
20679 ## M4sh Initialization. ##
20680 ## --------------------- ##
20681
20682 # Be more Bourne compatible
20683 DUALCASE=1; export DUALCASE # for MKS sh
20684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20685 emulate sh
20686 NULLCMD=:
20687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20688 # is contrary to our usage. Disable this feature.
20689 alias -g '${1+"$@"}'='"$@"'
20690 setopt NO_GLOB_SUBST
20691 else
20692 case `(set -o) 2>/dev/null` in
20693 *posix*) set -o posix ;;
20694 esac
20695
20696 fi
20697
20698
20699
20700
20701 # PATH needs CR
20702 # Avoid depending upon Character Ranges.
20703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20706 as_cr_digits='0123456789'
20707 as_cr_alnum=$as_cr_Letters$as_cr_digits
20708
20709 as_nl='
20710 '
20711 export as_nl
20712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20716 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20717 as_echo='printf %s\n'
20718 as_echo_n='printf %s'
20719 else
20720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20722 as_echo_n='/usr/ucb/echo -n'
20723 else
20724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20725 as_echo_n_body='eval
20726 arg=$1;
20727 case $arg in
20728 *"$as_nl"*)
20729 expr "X$arg" : "X\\(.*\\)$as_nl";
20730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20731 esac;
20732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20733 '
20734 export as_echo_n_body
20735 as_echo_n='sh -c $as_echo_n_body as_echo'
20736 fi
20737 export as_echo_body
20738 as_echo='sh -c $as_echo_body as_echo'
20739 fi
20740
20741 # The user is always right.
20742 if test "${PATH_SEPARATOR+set}" != set; then
20743 PATH_SEPARATOR=:
20744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20746 PATH_SEPARATOR=';'
20747 }
20748 fi
20749
20750 # Support unset when possible.
20751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20752 as_unset=unset
20753 else
20754 as_unset=false
20755 fi
20756
20757
20758 # IFS
20759 # We need space, tab and new line, in precisely that order. Quoting is
20760 # there to prevent editors from complaining about space-tab.
20761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20762 # splitting by setting IFS to empty value.)
20763 IFS=" "" $as_nl"
20764
20765 # Find who we are. Look in the path if we contain no directory separator.
20766 case $0 in
20767 *[\\/]* ) as_myself=$0 ;;
20768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20769 for as_dir in $PATH
20770 do
20771 IFS=$as_save_IFS
20772 test -z "$as_dir" && as_dir=.
20773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20774 done
20775 IFS=$as_save_IFS
20776
20777 ;;
20778 esac
20779 # We did not find ourselves, most probably we were run as `sh COMMAND'
20780 # in which case we are not to be found in the path.
20781 if test "x$as_myself" = x; then
20782 as_myself=$0
20783 fi
20784 if test ! -f "$as_myself"; then
20785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20786 { (exit 1); exit 1; }
20787 fi
20788
20789 # Work around bugs in pre-3.0 UWIN ksh.
20790 for as_var in ENV MAIL MAILPATH
20791 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20792 done
20793 PS1='$ '
20794 PS2='> '
20795 PS4='+ '
20796
20797 # NLS nuisances.
20798 LC_ALL=C
20799 export LC_ALL
20800 LANGUAGE=C
20801 export LANGUAGE
20802
20803 # Required to use basename.
20804 if expr a : '\(a\)' >/dev/null 2>&1 &&
20805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20806 as_expr=expr
20807 else
20808 as_expr=false
20809 fi
20810
20811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20812 as_basename=basename
20813 else
20814 as_basename=false
20815 fi
20816
20817
20818 # Name of the executable.
20819 as_me=`$as_basename -- "$0" ||
20820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20821 X"$0" : 'X\(//\)$' \| \
20822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20823 $as_echo X/"$0" |
20824 sed '/^.*\/\([^/][^/]*\)\/*$/{
20825 s//\1/
20826 q
20827 }
20828 /^X\/\(\/\/\)$/{
20829 s//\1/
20830 q
20831 }
20832 /^X\/\(\/\).*/{
20833 s//\1/
20834 q
20835 }
20836 s/.*/./; q'`
20837
20838 # CDPATH.
20839 $as_unset CDPATH
20840
20841
20842
20843 as_lineno_1=$LINENO
20844 as_lineno_2=$LINENO
20845 test "x$as_lineno_1" != "x$as_lineno_2" &&
20846 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20847
20848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20849 # uniformly replaced by the line number. The first 'sed' inserts a
20850 # line-number line after each line using $LINENO; the second 'sed'
20851 # does the real work. The second script uses 'N' to pair each
20852 # line-number line with the line containing $LINENO, and appends
20853 # trailing '-' during substitution so that $LINENO is not a special
20854 # case at line end.
20855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20856 # scripts with optimization help from Paolo Bonzini. Blame Lee
20857 # E. McMahon (1931-1989) for sed's syntax. :-)
20858 sed -n '
20859 p
20860 /[$]LINENO/=
20861 ' <$as_myself |
20862 sed '
20863 s/[$]LINENO.*/&-/
20864 t lineno
20865 b
20866 :lineno
20867 N
20868 :loop
20869 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20870 t loop
20871 s/-\n.*//
20872 ' >$as_me.lineno &&
20873 chmod +x "$as_me.lineno" ||
20874 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20875 { (exit 1); exit 1; }; }
20876
20877 # Don't try to exec as it changes $[0], causing all sort of problems
20878 # (the dirname of $[0] is not the place where we might find the
20879 # original and so on. Autoconf is especially sensitive to this).
20880 . "./$as_me.lineno"
20881 # Exit status is that of the last command.
20882 exit
20883 }
20884
20885
20886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20887 as_dirname=dirname
20888 else
20889 as_dirname=false
20890 fi
20891
20892 ECHO_C= ECHO_N= ECHO_T=
20893 case `echo -n x` in
20894 -n*)
20895 case `echo 'x\c'` in
20896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20897 *) ECHO_C='\c';;
20898 esac;;
20899 *)
20900 ECHO_N='-n';;
20901 esac
20902 if expr a : '\(a\)' >/dev/null 2>&1 &&
20903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20904 as_expr=expr
20905 else
20906 as_expr=false
20907 fi
20908
20909 rm -f conf$$ conf$$.exe conf$$.file
20910 if test -d conf$$.dir; then
20911 rm -f conf$$.dir/conf$$.file
20912 else
20913 rm -f conf$$.dir
20914 mkdir conf$$.dir 2>/dev/null
20915 fi
20916 if (echo >conf$$.file) 2>/dev/null; then
20917 if ln -s conf$$.file conf$$ 2>/dev/null; then
20918 as_ln_s='ln -s'
20919 # ... but there are two gotchas:
20920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20922 # In both cases, we have to default to `cp -p'.
20923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20924 as_ln_s='cp -p'
20925 elif ln conf$$.file conf$$ 2>/dev/null; then
20926 as_ln_s=ln
20927 else
20928 as_ln_s='cp -p'
20929 fi
20930 else
20931 as_ln_s='cp -p'
20932 fi
20933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20934 rmdir conf$$.dir 2>/dev/null
20935
20936 if mkdir -p . 2>/dev/null; then
20937 as_mkdir_p=:
20938 else
20939 test -d ./-p && rmdir ./-p
20940 as_mkdir_p=false
20941 fi
20942
20943 if test -x / >/dev/null 2>&1; then
20944 as_test_x='test -x'
20945 else
20946 if ls -dL / >/dev/null 2>&1; then
20947 as_ls_L_option=L
20948 else
20949 as_ls_L_option=
20950 fi
20951 as_test_x='
20952 eval sh -c '\''
20953 if test -d "$1"; then
20954 test -d "$1/.";
20955 else
20956 case $1 in
20957 -*)set "./$1";;
20958 esac;
20959 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20960 ???[sx]*):;;*)false;;esac;fi
20961 '\'' sh
20962 '
20963 fi
20964 as_executable_p=$as_test_x
20965
20966 # Sed expression to map a string onto a valid CPP name.
20967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20968
20969 # Sed expression to map a string onto a valid variable name.
20970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20971
20972
20973 exec 6>&1
20974
20975 # Save the log message, to keep $[0] and so on meaningful, and to
20976 # report actual input values of CONFIG_FILES etc. instead of their
20977 # values after options handling.
20978 ac_log="
20979 This file was extended by $as_me, which was
20980 generated by GNU Autoconf 2.63. Invocation command line was
20981
20982 CONFIG_FILES = $CONFIG_FILES
20983 CONFIG_HEADERS = $CONFIG_HEADERS
20984 CONFIG_LINKS = $CONFIG_LINKS
20985 CONFIG_COMMANDS = $CONFIG_COMMANDS
20986 $ $0 $@
20987
20988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20989 "
20990
20991 _ACEOF
20992
20993 case $ac_config_files in *"
20994 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20995 esac
20996
20997 case $ac_config_headers in *"
20998 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20999 esac
21000
21001
21002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21003 # Files that config.status was made for.
21004 config_files="$ac_config_files"
21005 config_headers="$ac_config_headers"
21006 config_commands="$ac_config_commands"
21007
21008 _ACEOF
21009
21010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21011 ac_cs_usage="\
21012 \`$as_me' instantiates files from templates according to the
21013 current configuration.
21014
21015 Usage: $0 [OPTION]... [FILE]...
21016
21017 -h, --help print this help, then exit
21018 -V, --version print version number and configuration settings, then exit
21019 -q, --quiet, --silent
21020 do not print progress messages
21021 -d, --debug don't remove temporary files
21022 --recheck update $as_me by reconfiguring in the same conditions
21023 --file=FILE[:TEMPLATE]
21024 instantiate the configuration file FILE
21025 --header=FILE[:TEMPLATE]
21026 instantiate the configuration header FILE
21027
21028 Configuration files:
21029 $config_files
21030
21031 Configuration headers:
21032 $config_headers
21033
21034 Configuration commands:
21035 $config_commands
21036
21037 Report bugs to <bug-autoconf@gnu.org>."
21038
21039 _ACEOF
21040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21041 ac_cs_version="\\
21042 config.status
21043 configured by $0, generated by GNU Autoconf 2.63,
21044 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21045
21046 Copyright (C) 2008 Free Software Foundation, Inc.
21047 This config.status script is free software; the Free Software Foundation
21048 gives unlimited permission to copy, distribute and modify it."
21049
21050 ac_pwd='$ac_pwd'
21051 srcdir='$srcdir'
21052 INSTALL='$INSTALL'
21053 MKDIR_P='$MKDIR_P'
21054 AWK='$AWK'
21055 test -n "\$AWK" || AWK=awk
21056 _ACEOF
21057
21058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21059 # The default lists apply if the user does not specify any file.
21060 ac_need_defaults=:
21061 while test $# != 0
21062 do
21063 case $1 in
21064 --*=*)
21065 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21066 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21067 ac_shift=:
21068 ;;
21069 *)
21070 ac_option=$1
21071 ac_optarg=$2
21072 ac_shift=shift
21073 ;;
21074 esac
21075
21076 case $ac_option in
21077 # Handling of the options.
21078 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21079 ac_cs_recheck=: ;;
21080 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21081 $as_echo "$ac_cs_version"; exit ;;
21082 --debug | --debu | --deb | --de | --d | -d )
21083 debug=: ;;
21084 --file | --fil | --fi | --f )
21085 $ac_shift
21086 case $ac_optarg in
21087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21088 esac
21089 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21090 ac_need_defaults=false;;
21091 --header | --heade | --head | --hea )
21092 $ac_shift
21093 case $ac_optarg in
21094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21095 esac
21096 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21097 ac_need_defaults=false;;
21098 --he | --h)
21099 # Conflict between --help and --header
21100 { $as_echo "$as_me: error: ambiguous option: $1
21101 Try \`$0 --help' for more information." >&2
21102 { (exit 1); exit 1; }; };;
21103 --help | --hel | -h )
21104 $as_echo "$ac_cs_usage"; exit ;;
21105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21107 ac_cs_silent=: ;;
21108
21109 # This is an error.
21110 -*) { $as_echo "$as_me: error: unrecognized option: $1
21111 Try \`$0 --help' for more information." >&2
21112 { (exit 1); exit 1; }; } ;;
21113
21114 *) ac_config_targets="$ac_config_targets $1"
21115 ac_need_defaults=false ;;
21116
21117 esac
21118 shift
21119 done
21120
21121 ac_configure_extra_args=
21122
21123 if $ac_cs_silent; then
21124 exec 6>/dev/null
21125 ac_configure_extra_args="$ac_configure_extra_args --silent"
21126 fi
21127
21128 _ACEOF
21129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21130 if \$ac_cs_recheck; then
21131 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21132 shift
21133 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21134 CONFIG_SHELL='$SHELL'
21135 export CONFIG_SHELL
21136 exec "\$@"
21137 fi
21138
21139 _ACEOF
21140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21141 exec 5>>config.log
21142 {
21143 echo
21144 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21145 ## Running $as_me. ##
21146 _ASBOX
21147 $as_echo "$ac_log"
21148 } >&5
21149
21150 _ACEOF
21151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21152 #
21153 # INIT-COMMANDS
21154 #
21155 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21156
21157
21158 # The HP-UX ksh and POSIX shell print the target directory to stdout
21159 # if CDPATH is set.
21160 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21161
21162 sed_quote_subst='$sed_quote_subst'
21163 double_quote_subst='$double_quote_subst'
21164 delay_variable_subst='$delay_variable_subst'
21165 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21166 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21167 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21168 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21169 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21170 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21171 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21172 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21173 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21174 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21175 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21176 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21177 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21178 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21179 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21180 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21181 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21182 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21183 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21184 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21185 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21186 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21187 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21188 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21189 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21190 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21191 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21192 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21193 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21194 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21195 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21196 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21197 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21198 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21199 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21200 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21201 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21202 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21203 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21204 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21205 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21206 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21207 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21208 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21209 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"`'
21210 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"`'
21211 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21212 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21213 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21214 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21215 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21216 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21217 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21218 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21219 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21220 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21221 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21222 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21223 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21224 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21225 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21226 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21227 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21228 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21229 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21230 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21231 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21232 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21233 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21234 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21235 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21236 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21237 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21238 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21239 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21240 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21241 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21243 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21244 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21245 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21246 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21247 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21248 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21249 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21250 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21251 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21252 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21253 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21254 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21255 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21256 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21257 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21258 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21259 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21260 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21261 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21262 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21263 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21264 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21265 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21266 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21267 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21268 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21269 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21270 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21271 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21272 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21273 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21274 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21275 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21276 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21277 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21278 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21279 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21280 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21281 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21282 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21283
21284 LTCC='$LTCC'
21285 LTCFLAGS='$LTCFLAGS'
21286 compiler='$compiler_DEFAULT'
21287
21288 # Quote evaled strings.
21289 for var in SED \
21290 GREP \
21291 EGREP \
21292 FGREP \
21293 LD \
21294 NM \
21295 LN_S \
21296 lt_SP2NL \
21297 lt_NL2SP \
21298 reload_flag \
21299 OBJDUMP \
21300 deplibs_check_method \
21301 file_magic_cmd \
21302 AR \
21303 AR_FLAGS \
21304 STRIP \
21305 RANLIB \
21306 CC \
21307 CFLAGS \
21308 compiler \
21309 lt_cv_sys_global_symbol_pipe \
21310 lt_cv_sys_global_symbol_to_cdecl \
21311 lt_cv_sys_global_symbol_to_c_name_address \
21312 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21313 SHELL \
21314 ECHO \
21315 lt_prog_compiler_no_builtin_flag \
21316 lt_prog_compiler_wl \
21317 lt_prog_compiler_pic \
21318 lt_prog_compiler_static \
21319 lt_cv_prog_compiler_c_o \
21320 need_locks \
21321 DSYMUTIL \
21322 NMEDIT \
21323 LIPO \
21324 OTOOL \
21325 OTOOL64 \
21326 shrext_cmds \
21327 export_dynamic_flag_spec \
21328 whole_archive_flag_spec \
21329 compiler_needs_object \
21330 with_gnu_ld \
21331 allow_undefined_flag \
21332 no_undefined_flag \
21333 hardcode_libdir_flag_spec \
21334 hardcode_libdir_flag_spec_ld \
21335 hardcode_libdir_separator \
21336 fix_srcfile_path \
21337 exclude_expsyms \
21338 include_expsyms \
21339 file_list_spec \
21340 variables_saved_for_relink \
21341 libname_spec \
21342 library_names_spec \
21343 soname_spec \
21344 finish_eval \
21345 old_striplib \
21346 striplib; do
21347 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21348 *[\\\\\\\`\\"\\\$]*)
21349 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21350 ;;
21351 *)
21352 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21353 ;;
21354 esac
21355 done
21356
21357 # Double-quote double-evaled strings.
21358 for var in reload_cmds \
21359 old_postinstall_cmds \
21360 old_postuninstall_cmds \
21361 old_archive_cmds \
21362 extract_expsyms_cmds \
21363 old_archive_from_new_cmds \
21364 old_archive_from_expsyms_cmds \
21365 archive_cmds \
21366 archive_expsym_cmds \
21367 module_cmds \
21368 module_expsym_cmds \
21369 export_symbols_cmds \
21370 prelink_cmds \
21371 postinstall_cmds \
21372 postuninstall_cmds \
21373 finish_cmds \
21374 sys_lib_search_path_spec \
21375 sys_lib_dlsearch_path_spec; do
21376 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21377 *[\\\\\\\`\\"\\\$]*)
21378 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21379 ;;
21380 *)
21381 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21382 ;;
21383 esac
21384 done
21385
21386 # Fix-up fallback echo if it was mangled by the above quoting rules.
21387 case \$lt_ECHO in
21388 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21389 ;;
21390 esac
21391
21392 ac_aux_dir='$ac_aux_dir'
21393 xsi_shell='$xsi_shell'
21394 lt_shell_append='$lt_shell_append'
21395
21396 # See if we are running on zsh, and set the options which allow our
21397 # commands through without removal of \ escapes INIT.
21398 if test -n "\${ZSH_VERSION+set}" ; then
21399 setopt NO_GLOB_SUBST
21400 fi
21401
21402
21403 PACKAGE='$PACKAGE'
21404 VERSION='$VERSION'
21405 TIMESTAMP='$TIMESTAMP'
21406 RM='$RM'
21407 ofile='$ofile'
21408
21409
21410
21411
21412 _ACEOF
21413
21414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21415
21416 # Handling of arguments.
21417 for ac_config_target in $ac_config_targets
21418 do
21419 case $ac_config_target in
21420 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21421 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21422 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21423 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21424 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21425 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21426 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21427 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21428 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21429 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21430 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21431 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21432 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21433 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21434 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
21435
21436 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21437 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21438 { (exit 1); exit 1; }; };;
21439 esac
21440 done
21441
21442
21443 # If the user did not use the arguments to specify the items to instantiate,
21444 # then the envvar interface is used. Set only those that are not.
21445 # We use the long form for the default assignment because of an extremely
21446 # bizarre bug on SunOS 4.1.3.
21447 if $ac_need_defaults; then
21448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21449 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21450 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21451 fi
21452
21453 # Have a temporary directory for convenience. Make it in the build tree
21454 # simply because there is no reason against having it here, and in addition,
21455 # creating and moving files from /tmp can sometimes cause problems.
21456 # Hook for its removal unless debugging.
21457 # Note that there is a small window in which the directory will not be cleaned:
21458 # after its creation but before its name has been assigned to `$tmp'.
21459 $debug ||
21460 {
21461 tmp=
21462 trap 'exit_status=$?
21463 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21464 ' 0
21465 trap '{ (exit 1); exit 1; }' 1 2 13 15
21466 }
21467 # Create a (secure) tmp directory for tmp files.
21468
21469 {
21470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21471 test -n "$tmp" && test -d "$tmp"
21472 } ||
21473 {
21474 tmp=./conf$$-$RANDOM
21475 (umask 077 && mkdir "$tmp")
21476 } ||
21477 {
21478 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21479 { (exit 1); exit 1; }
21480 }
21481
21482 # Set up the scripts for CONFIG_FILES section.
21483 # No need to generate them if there are no CONFIG_FILES.
21484 # This happens for instance with `./config.status config.h'.
21485 if test -n "$CONFIG_FILES"; then
21486
21487
21488 ac_cr=' '
21489 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21490 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21491 ac_cs_awk_cr='\\r'
21492 else
21493 ac_cs_awk_cr=$ac_cr
21494 fi
21495
21496 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21497 _ACEOF
21498
21499
21500 {
21501 echo "cat >conf$$subs.awk <<_ACEOF" &&
21502 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21503 echo "_ACEOF"
21504 } >conf$$subs.sh ||
21505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21506 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21507 { (exit 1); exit 1; }; }
21508 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21509 ac_delim='%!_!# '
21510 for ac_last_try in false false false false false :; do
21511 . ./conf$$subs.sh ||
21512 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21513 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21514 { (exit 1); exit 1; }; }
21515
21516 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21517 if test $ac_delim_n = $ac_delim_num; then
21518 break
21519 elif $ac_last_try; then
21520 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21521 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21522 { (exit 1); exit 1; }; }
21523 else
21524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21525 fi
21526 done
21527 rm -f conf$$subs.sh
21528
21529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21530 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21531 _ACEOF
21532 sed -n '
21533 h
21534 s/^/S["/; s/!.*/"]=/
21535 p
21536 g
21537 s/^[^!]*!//
21538 :repl
21539 t repl
21540 s/'"$ac_delim"'$//
21541 t delim
21542 :nl
21543 h
21544 s/\(.\{148\}\).*/\1/
21545 t more1
21546 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21547 p
21548 n
21549 b repl
21550 :more1
21551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21552 p
21553 g
21554 s/.\{148\}//
21555 t nl
21556 :delim
21557 h
21558 s/\(.\{148\}\).*/\1/
21559 t more2
21560 s/["\\]/\\&/g; s/^/"/; s/$/"/
21561 p
21562 b
21563 :more2
21564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21565 p
21566 g
21567 s/.\{148\}//
21568 t delim
21569 ' <conf$$subs.awk | sed '
21570 /^[^""]/{
21571 N
21572 s/\n//
21573 }
21574 ' >>$CONFIG_STATUS || ac_write_fail=1
21575 rm -f conf$$subs.awk
21576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21577 _ACAWK
21578 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21579 for (key in S) S_is_set[key] = 1
21580 FS = "\a"
21581
21582 }
21583 {
21584 line = $ 0
21585 nfields = split(line, field, "@")
21586 substed = 0
21587 len = length(field[1])
21588 for (i = 2; i < nfields; i++) {
21589 key = field[i]
21590 keylen = length(key)
21591 if (S_is_set[key]) {
21592 value = S[key]
21593 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21594 len += length(value) + length(field[++i])
21595 substed = 1
21596 } else
21597 len += 1 + keylen
21598 }
21599
21600 print line
21601 }
21602
21603 _ACAWK
21604 _ACEOF
21605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21606 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21607 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21608 else
21609 cat
21610 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21611 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21612 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21613 { (exit 1); exit 1; }; }
21614 _ACEOF
21615
21616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21618 # trailing colons and then remove the whole line if VPATH becomes empty
21619 # (actually we leave an empty line to preserve line numbers).
21620 if test "x$srcdir" = x.; then
21621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21622 s/:*\$(srcdir):*/:/
21623 s/:*\${srcdir}:*/:/
21624 s/:*@srcdir@:*/:/
21625 s/^\([^=]*=[ ]*\):*/\1/
21626 s/:*$//
21627 s/^[^=]*=[ ]*$//
21628 }'
21629 fi
21630
21631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21632 fi # test -n "$CONFIG_FILES"
21633
21634 # Set up the scripts for CONFIG_HEADERS section.
21635 # No need to generate them if there are no CONFIG_HEADERS.
21636 # This happens for instance with `./config.status Makefile'.
21637 if test -n "$CONFIG_HEADERS"; then
21638 cat >"$tmp/defines.awk" <<\_ACAWK ||
21639 BEGIN {
21640 _ACEOF
21641
21642 # Transform confdefs.h into an awk script `defines.awk', embedded as
21643 # here-document in config.status, that substitutes the proper values into
21644 # config.h.in to produce config.h.
21645
21646 # Create a delimiter string that does not exist in confdefs.h, to ease
21647 # handling of long lines.
21648 ac_delim='%!_!# '
21649 for ac_last_try in false false :; do
21650 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21651 if test -z "$ac_t"; then
21652 break
21653 elif $ac_last_try; then
21654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21655 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21656 { (exit 1); exit 1; }; }
21657 else
21658 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21659 fi
21660 done
21661
21662 # For the awk script, D is an array of macro values keyed by name,
21663 # likewise P contains macro parameters if any. Preserve backslash
21664 # newline sequences.
21665
21666 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21667 sed -n '
21668 s/.\{148\}/&'"$ac_delim"'/g
21669 t rset
21670 :rset
21671 s/^[ ]*#[ ]*define[ ][ ]*/ /
21672 t def
21673 d
21674 :def
21675 s/\\$//
21676 t bsnl
21677 s/["\\]/\\&/g
21678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21679 D["\1"]=" \3"/p
21680 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21681 d
21682 :bsnl
21683 s/["\\]/\\&/g
21684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21685 D["\1"]=" \3\\\\\\n"\\/p
21686 t cont
21687 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21688 t cont
21689 d
21690 :cont
21691 n
21692 s/.\{148\}/&'"$ac_delim"'/g
21693 t clear
21694 :clear
21695 s/\\$//
21696 t bsnlc
21697 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21698 d
21699 :bsnlc
21700 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21701 b cont
21702 ' <confdefs.h | sed '
21703 s/'"$ac_delim"'/"\\\
21704 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21705
21706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21707 for (key in D) D_is_set[key] = 1
21708 FS = "\a"
21709 }
21710 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21711 line = \$ 0
21712 split(line, arg, " ")
21713 if (arg[1] == "#") {
21714 defundef = arg[2]
21715 mac1 = arg[3]
21716 } else {
21717 defundef = substr(arg[1], 2)
21718 mac1 = arg[2]
21719 }
21720 split(mac1, mac2, "(") #)
21721 macro = mac2[1]
21722 prefix = substr(line, 1, index(line, defundef) - 1)
21723 if (D_is_set[macro]) {
21724 # Preserve the white space surrounding the "#".
21725 print prefix "define", macro P[macro] D[macro]
21726 next
21727 } else {
21728 # Replace #undef with comments. This is necessary, for example,
21729 # in the case of _POSIX_SOURCE, which is predefined and required
21730 # on some systems where configure will not decide to define it.
21731 if (defundef == "undef") {
21732 print "/*", prefix defundef, macro, "*/"
21733 next
21734 }
21735 }
21736 }
21737 { print }
21738 _ACAWK
21739 _ACEOF
21740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21741 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21742 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21743 { (exit 1); exit 1; }; }
21744 fi # test -n "$CONFIG_HEADERS"
21745
21746
21747 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21748 shift
21749 for ac_tag
21750 do
21751 case $ac_tag in
21752 :[FHLC]) ac_mode=$ac_tag; continue;;
21753 esac
21754 case $ac_mode$ac_tag in
21755 :[FHL]*:*);;
21756 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21757 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21758 { (exit 1); exit 1; }; };;
21759 :[FH]-) ac_tag=-:-;;
21760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21761 esac
21762 ac_save_IFS=$IFS
21763 IFS=:
21764 set x $ac_tag
21765 IFS=$ac_save_IFS
21766 shift
21767 ac_file=$1
21768 shift
21769
21770 case $ac_mode in
21771 :L) ac_source=$1;;
21772 :[FH])
21773 ac_file_inputs=
21774 for ac_f
21775 do
21776 case $ac_f in
21777 -) ac_f="$tmp/stdin";;
21778 *) # Look for the file first in the build tree, then in the source tree
21779 # (if the path is not absolute). The absolute path cannot be DOS-style,
21780 # because $ac_f cannot contain `:'.
21781 test -f "$ac_f" ||
21782 case $ac_f in
21783 [\\/$]*) false;;
21784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21785 esac ||
21786 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21787 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21788 { (exit 1); exit 1; }; };;
21789 esac
21790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21791 ac_file_inputs="$ac_file_inputs '$ac_f'"
21792 done
21793
21794 # Let's still pretend it is `configure' which instantiates (i.e., don't
21795 # use $as_me), people would be surprised to read:
21796 # /* config.h. Generated by config.status. */
21797 configure_input='Generated from '`
21798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21799 `' by configure.'
21800 if test x"$ac_file" != x-; then
21801 configure_input="$ac_file. $configure_input"
21802 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21803 $as_echo "$as_me: creating $ac_file" >&6;}
21804 fi
21805 # Neutralize special characters interpreted by sed in replacement strings.
21806 case $configure_input in #(
21807 *\&* | *\|* | *\\* )
21808 ac_sed_conf_input=`$as_echo "$configure_input" |
21809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21810 *) ac_sed_conf_input=$configure_input;;
21811 esac
21812
21813 case $ac_tag in
21814 *:-:* | *:-) cat >"$tmp/stdin" \
21815 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21816 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21817 { (exit 1); exit 1; }; } ;;
21818 esac
21819 ;;
21820 esac
21821
21822 ac_dir=`$as_dirname -- "$ac_file" ||
21823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21824 X"$ac_file" : 'X\(//\)[^/]' \| \
21825 X"$ac_file" : 'X\(//\)$' \| \
21826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21827 $as_echo X"$ac_file" |
21828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21829 s//\1/
21830 q
21831 }
21832 /^X\(\/\/\)[^/].*/{
21833 s//\1/
21834 q
21835 }
21836 /^X\(\/\/\)$/{
21837 s//\1/
21838 q
21839 }
21840 /^X\(\/\).*/{
21841 s//\1/
21842 q
21843 }
21844 s/.*/./; q'`
21845 { as_dir="$ac_dir"
21846 case $as_dir in #(
21847 -*) as_dir=./$as_dir;;
21848 esac
21849 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21850 as_dirs=
21851 while :; do
21852 case $as_dir in #(
21853 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21854 *) as_qdir=$as_dir;;
21855 esac
21856 as_dirs="'$as_qdir' $as_dirs"
21857 as_dir=`$as_dirname -- "$as_dir" ||
21858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21859 X"$as_dir" : 'X\(//\)[^/]' \| \
21860 X"$as_dir" : 'X\(//\)$' \| \
21861 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21862 $as_echo X"$as_dir" |
21863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21864 s//\1/
21865 q
21866 }
21867 /^X\(\/\/\)[^/].*/{
21868 s//\1/
21869 q
21870 }
21871 /^X\(\/\/\)$/{
21872 s//\1/
21873 q
21874 }
21875 /^X\(\/\).*/{
21876 s//\1/
21877 q
21878 }
21879 s/.*/./; q'`
21880 test -d "$as_dir" && break
21881 done
21882 test -z "$as_dirs" || eval "mkdir $as_dirs"
21883 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21884 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21885 { (exit 1); exit 1; }; }; }
21886 ac_builddir=.
21887
21888 case "$ac_dir" in
21889 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21890 *)
21891 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21892 # A ".." for each directory in $ac_dir_suffix.
21893 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21894 case $ac_top_builddir_sub in
21895 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21896 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21897 esac ;;
21898 esac
21899 ac_abs_top_builddir=$ac_pwd
21900 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21901 # for backward compatibility:
21902 ac_top_builddir=$ac_top_build_prefix
21903
21904 case $srcdir in
21905 .) # We are building in place.
21906 ac_srcdir=.
21907 ac_top_srcdir=$ac_top_builddir_sub
21908 ac_abs_top_srcdir=$ac_pwd ;;
21909 [\\/]* | ?:[\\/]* ) # Absolute name.
21910 ac_srcdir=$srcdir$ac_dir_suffix;
21911 ac_top_srcdir=$srcdir
21912 ac_abs_top_srcdir=$srcdir ;;
21913 *) # Relative name.
21914 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21915 ac_top_srcdir=$ac_top_build_prefix$srcdir
21916 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21917 esac
21918 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21919
21920
21921 case $ac_mode in
21922 :F)
21923 #
21924 # CONFIG_FILE
21925 #
21926
21927 case $INSTALL in
21928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21929 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21930 esac
21931 ac_MKDIR_P=$MKDIR_P
21932 case $MKDIR_P in
21933 [\\/$]* | ?:[\\/]* ) ;;
21934 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21935 esac
21936 _ACEOF
21937
21938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21939 # If the template does not know about datarootdir, expand it.
21940 # FIXME: This hack should be removed a few years after 2.60.
21941 ac_datarootdir_hack=; ac_datarootdir_seen=
21942
21943 ac_sed_dataroot='
21944 /datarootdir/ {
21945 p
21946 q
21947 }
21948 /@datadir@/p
21949 /@docdir@/p
21950 /@infodir@/p
21951 /@localedir@/p
21952 /@mandir@/p
21953 '
21954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21955 *datarootdir*) ac_datarootdir_seen=yes;;
21956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21957 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21959 _ACEOF
21960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21961 ac_datarootdir_hack='
21962 s&@datadir@&$datadir&g
21963 s&@docdir@&$docdir&g
21964 s&@infodir@&$infodir&g
21965 s&@localedir@&$localedir&g
21966 s&@mandir@&$mandir&g
21967 s&\\\${datarootdir}&$datarootdir&g' ;;
21968 esac
21969 _ACEOF
21970
21971 # Neutralize VPATH when `$srcdir' = `.'.
21972 # Shell code in configure.ac might set extrasub.
21973 # FIXME: do we really want to maintain this feature?
21974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21975 ac_sed_extra="$ac_vpsub
21976 $extrasub
21977 _ACEOF
21978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21979 :t
21980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21981 s|@configure_input@|$ac_sed_conf_input|;t t
21982 s&@top_builddir@&$ac_top_builddir_sub&;t t
21983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21984 s&@srcdir@&$ac_srcdir&;t t
21985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21986 s&@top_srcdir@&$ac_top_srcdir&;t t
21987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21988 s&@builddir@&$ac_builddir&;t t
21989 s&@abs_builddir@&$ac_abs_builddir&;t t
21990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21991 s&@INSTALL@&$ac_INSTALL&;t t
21992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21993 $ac_datarootdir_hack
21994 "
21995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21996 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21997 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21998 { (exit 1); exit 1; }; }
21999
22000 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22001 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22002 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22004 which seems to be undefined. Please make sure it is defined." >&5
22005 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22006 which seems to be undefined. Please make sure it is defined." >&2;}
22007
22008 rm -f "$tmp/stdin"
22009 case $ac_file in
22010 -) cat "$tmp/out" && rm -f "$tmp/out";;
22011 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22012 esac \
22013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22014 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22015 { (exit 1); exit 1; }; }
22016 ;;
22017 :H)
22018 #
22019 # CONFIG_HEADER
22020 #
22021 if test x"$ac_file" != x-; then
22022 {
22023 $as_echo "/* $configure_input */" \
22024 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22025 } >"$tmp/config.h" \
22026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22028 { (exit 1); exit 1; }; }
22029 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22030 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22031 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22032 else
22033 rm -f "$ac_file"
22034 mv "$tmp/config.h" "$ac_file" \
22035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22037 { (exit 1); exit 1; }; }
22038 fi
22039 else
22040 $as_echo "/* $configure_input */" \
22041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22042 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22043 $as_echo "$as_me: error: could not create -" >&2;}
22044 { (exit 1); exit 1; }; }
22045 fi
22046 # Compute "$ac_file"'s index in $config_headers.
22047 _am_arg="$ac_file"
22048 _am_stamp_count=1
22049 for _am_header in $config_headers :; do
22050 case $_am_header in
22051 $_am_arg | $_am_arg:* )
22052 break ;;
22053 * )
22054 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22055 esac
22056 done
22057 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22058 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22059 X"$_am_arg" : 'X\(//\)[^/]' \| \
22060 X"$_am_arg" : 'X\(//\)$' \| \
22061 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22062 $as_echo X"$_am_arg" |
22063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22064 s//\1/
22065 q
22066 }
22067 /^X\(\/\/\)[^/].*/{
22068 s//\1/
22069 q
22070 }
22071 /^X\(\/\/\)$/{
22072 s//\1/
22073 q
22074 }
22075 /^X\(\/\).*/{
22076 s//\1/
22077 q
22078 }
22079 s/.*/./; q'`/stamp-h$_am_stamp_count
22080 ;;
22081
22082 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22083 $as_echo "$as_me: executing $ac_file commands" >&6;}
22084 ;;
22085 esac
22086
22087
22088 case $ac_file$ac_mode in
22089 "spl_config.h":H)
22090 (mv spl_config.h spl_config.h.tmp &&
22091 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
22092 rm spl_config.h.tmp) || exit 1 ;;
22093 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22094 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22095 # are listed without --file. Let's play safe and only enable the eval
22096 # if we detect the quoting.
22097 case $CONFIG_FILES in
22098 *\'*) eval set x "$CONFIG_FILES" ;;
22099 *) set x $CONFIG_FILES ;;
22100 esac
22101 shift
22102 for mf
22103 do
22104 # Strip MF so we end up with the name of the file.
22105 mf=`echo "$mf" | sed -e 's/:.*$//'`
22106 # Check whether this is an Automake generated Makefile or not.
22107 # We used to match only the files named `Makefile.in', but
22108 # some people rename them; so instead we look at the file content.
22109 # Grep'ing the first line is not enough: some people post-process
22110 # each Makefile.in and add a new line on top of each file to say so.
22111 # Grep'ing the whole file is not good either: AIX grep has a line
22112 # limit of 2048, but all sed's we know have understand at least 4000.
22113 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22114 dirpart=`$as_dirname -- "$mf" ||
22115 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22116 X"$mf" : 'X\(//\)[^/]' \| \
22117 X"$mf" : 'X\(//\)$' \| \
22118 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22119 $as_echo X"$mf" |
22120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22121 s//\1/
22122 q
22123 }
22124 /^X\(\/\/\)[^/].*/{
22125 s//\1/
22126 q
22127 }
22128 /^X\(\/\/\)$/{
22129 s//\1/
22130 q
22131 }
22132 /^X\(\/\).*/{
22133 s//\1/
22134 q
22135 }
22136 s/.*/./; q'`
22137 else
22138 continue
22139 fi
22140 # Extract the definition of DEPDIR, am__include, and am__quote
22141 # from the Makefile without running `make'.
22142 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22143 test -z "$DEPDIR" && continue
22144 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22145 test -z "am__include" && continue
22146 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22147 # When using ansi2knr, U may be empty or an underscore; expand it
22148 U=`sed -n 's/^U = //p' < "$mf"`
22149 # Find all dependency output files, they are included files with
22150 # $(DEPDIR) in their names. We invoke sed twice because it is the
22151 # simplest approach to changing $(DEPDIR) to its actual value in the
22152 # expansion.
22153 for file in `sed -n "
22154 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22155 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22156 # Make sure the directory exists.
22157 test -f "$dirpart/$file" && continue
22158 fdir=`$as_dirname -- "$file" ||
22159 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22160 X"$file" : 'X\(//\)[^/]' \| \
22161 X"$file" : 'X\(//\)$' \| \
22162 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22163 $as_echo X"$file" |
22164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22165 s//\1/
22166 q
22167 }
22168 /^X\(\/\/\)[^/].*/{
22169 s//\1/
22170 q
22171 }
22172 /^X\(\/\/\)$/{
22173 s//\1/
22174 q
22175 }
22176 /^X\(\/\).*/{
22177 s//\1/
22178 q
22179 }
22180 s/.*/./; q'`
22181 { as_dir=$dirpart/$fdir
22182 case $as_dir in #(
22183 -*) as_dir=./$as_dir;;
22184 esac
22185 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22186 as_dirs=
22187 while :; do
22188 case $as_dir in #(
22189 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22190 *) as_qdir=$as_dir;;
22191 esac
22192 as_dirs="'$as_qdir' $as_dirs"
22193 as_dir=`$as_dirname -- "$as_dir" ||
22194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22195 X"$as_dir" : 'X\(//\)[^/]' \| \
22196 X"$as_dir" : 'X\(//\)$' \| \
22197 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22198 $as_echo X"$as_dir" |
22199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22200 s//\1/
22201 q
22202 }
22203 /^X\(\/\/\)[^/].*/{
22204 s//\1/
22205 q
22206 }
22207 /^X\(\/\/\)$/{
22208 s//\1/
22209 q
22210 }
22211 /^X\(\/\).*/{
22212 s//\1/
22213 q
22214 }
22215 s/.*/./; q'`
22216 test -d "$as_dir" && break
22217 done
22218 test -z "$as_dirs" || eval "mkdir $as_dirs"
22219 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22220 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22221 { (exit 1); exit 1; }; }; }
22222 # echo "creating $dirpart/$file"
22223 echo '# dummy' > "$dirpart/$file"
22224 done
22225 done
22226 }
22227 ;;
22228 "libtool":C)
22229
22230 # See if we are running on zsh, and set the options which allow our
22231 # commands through without removal of \ escapes.
22232 if test -n "${ZSH_VERSION+set}" ; then
22233 setopt NO_GLOB_SUBST
22234 fi
22235
22236 cfgfile="${ofile}T"
22237 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22238 $RM "$cfgfile"
22239
22240 cat <<_LT_EOF >> "$cfgfile"
22241 #! $SHELL
22242
22243 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22244 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22245 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22247 #
22248 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22249 # 2006, 2007, 2008 Free Software Foundation, Inc.
22250 # Written by Gordon Matzigkeit, 1996
22251 #
22252 # This file is part of GNU Libtool.
22253 #
22254 # GNU Libtool is free software; you can redistribute it and/or
22255 # modify it under the terms of the GNU General Public License as
22256 # published by the Free Software Foundation; either version 2 of
22257 # the License, or (at your option) any later version.
22258 #
22259 # As a special exception to the GNU General Public License,
22260 # if you distribute this file as part of a program or library that
22261 # is built using GNU Libtool, you may include this file under the
22262 # same distribution terms that you use for the rest of that program.
22263 #
22264 # GNU Libtool is distributed in the hope that it will be useful,
22265 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22267 # GNU General Public License for more details.
22268 #
22269 # You should have received a copy of the GNU General Public License
22270 # along with GNU Libtool; see the file COPYING. If not, a copy
22271 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22272 # obtained by writing to the Free Software Foundation, Inc.,
22273 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22274
22275
22276 # The names of the tagged configurations supported by this script.
22277 available_tags=""
22278
22279 # ### BEGIN LIBTOOL CONFIG
22280
22281 # Which release of libtool.m4 was used?
22282 macro_version=$macro_version
22283 macro_revision=$macro_revision
22284
22285 # Whether or not to build shared libraries.
22286 build_libtool_libs=$enable_shared
22287
22288 # Whether or not to build static libraries.
22289 build_old_libs=$enable_static
22290
22291 # What type of objects to build.
22292 pic_mode=$pic_mode
22293
22294 # Whether or not to optimize for fast installation.
22295 fast_install=$enable_fast_install
22296
22297 # The host system.
22298 host_alias=$host_alias
22299 host=$host
22300 host_os=$host_os
22301
22302 # The build system.
22303 build_alias=$build_alias
22304 build=$build
22305 build_os=$build_os
22306
22307 # A sed program that does not truncate output.
22308 SED=$lt_SED
22309
22310 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22311 Xsed="\$SED -e 1s/^X//"
22312
22313 # A grep program that handles long lines.
22314 GREP=$lt_GREP
22315
22316 # An ERE matcher.
22317 EGREP=$lt_EGREP
22318
22319 # A literal string matcher.
22320 FGREP=$lt_FGREP
22321
22322 # A BSD- or MS-compatible name lister.
22323 NM=$lt_NM
22324
22325 # Whether we need soft or hard links.
22326 LN_S=$lt_LN_S
22327
22328 # What is the maximum length of a command?
22329 max_cmd_len=$max_cmd_len
22330
22331 # Object file suffix (normally "o").
22332 objext=$ac_objext
22333
22334 # Executable file suffix (normally "").
22335 exeext=$exeext
22336
22337 # whether the shell understands "unset".
22338 lt_unset=$lt_unset
22339
22340 # turn spaces into newlines.
22341 SP2NL=$lt_lt_SP2NL
22342
22343 # turn newlines into spaces.
22344 NL2SP=$lt_lt_NL2SP
22345
22346 # How to create reloadable object files.
22347 reload_flag=$lt_reload_flag
22348 reload_cmds=$lt_reload_cmds
22349
22350 # An object symbol dumper.
22351 OBJDUMP=$lt_OBJDUMP
22352
22353 # Method to check whether dependent libraries are shared objects.
22354 deplibs_check_method=$lt_deplibs_check_method
22355
22356 # Command to use when deplibs_check_method == "file_magic".
22357 file_magic_cmd=$lt_file_magic_cmd
22358
22359 # The archiver.
22360 AR=$lt_AR
22361 AR_FLAGS=$lt_AR_FLAGS
22362
22363 # A symbol stripping program.
22364 STRIP=$lt_STRIP
22365
22366 # Commands used to install an old-style archive.
22367 RANLIB=$lt_RANLIB
22368 old_postinstall_cmds=$lt_old_postinstall_cmds
22369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22370
22371 # A C compiler.
22372 LTCC=$lt_CC
22373
22374 # LTCC compiler flags.
22375 LTCFLAGS=$lt_CFLAGS
22376
22377 # Take the output of nm and produce a listing of raw symbols and C names.
22378 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22379
22380 # Transform the output of nm in a proper C declaration.
22381 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22382
22383 # Transform the output of nm in a C name address pair.
22384 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22385
22386 # Transform the output of nm in a C name address pair when lib prefix is needed.
22387 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22388
22389 # The name of the directory that contains temporary libtool files.
22390 objdir=$objdir
22391
22392 # Shell to use when invoking shell scripts.
22393 SHELL=$lt_SHELL
22394
22395 # An echo program that does not interpret backslashes.
22396 ECHO=$lt_ECHO
22397
22398 # Used to examine libraries when file_magic_cmd begins with "file".
22399 MAGIC_CMD=$MAGIC_CMD
22400
22401 # Must we lock files when doing compilation?
22402 need_locks=$lt_need_locks
22403
22404 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22405 DSYMUTIL=$lt_DSYMUTIL
22406
22407 # Tool to change global to local symbols on Mac OS X.
22408 NMEDIT=$lt_NMEDIT
22409
22410 # Tool to manipulate fat objects and archives on Mac OS X.
22411 LIPO=$lt_LIPO
22412
22413 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22414 OTOOL=$lt_OTOOL
22415
22416 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22417 OTOOL64=$lt_OTOOL64
22418
22419 # Old archive suffix (normally "a").
22420 libext=$libext
22421
22422 # Shared library suffix (normally ".so").
22423 shrext_cmds=$lt_shrext_cmds
22424
22425 # The commands to extract the exported symbol list from a shared archive.
22426 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22427
22428 # Variables whose values should be saved in libtool wrapper scripts and
22429 # restored at link time.
22430 variables_saved_for_relink=$lt_variables_saved_for_relink
22431
22432 # Do we need the "lib" prefix for modules?
22433 need_lib_prefix=$need_lib_prefix
22434
22435 # Do we need a version for libraries?
22436 need_version=$need_version
22437
22438 # Library versioning type.
22439 version_type=$version_type
22440
22441 # Shared library runtime path variable.
22442 runpath_var=$runpath_var
22443
22444 # Shared library path variable.
22445 shlibpath_var=$shlibpath_var
22446
22447 # Is shlibpath searched before the hard-coded library search path?
22448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22449
22450 # Format of library name prefix.
22451 libname_spec=$lt_libname_spec
22452
22453 # List of archive names. First name is the real one, the rest are links.
22454 # The last name is the one that the linker finds with -lNAME
22455 library_names_spec=$lt_library_names_spec
22456
22457 # The coded name of the library, if different from the real name.
22458 soname_spec=$lt_soname_spec
22459
22460 # Command to use after installation of a shared archive.
22461 postinstall_cmds=$lt_postinstall_cmds
22462
22463 # Command to use after uninstallation of a shared archive.
22464 postuninstall_cmds=$lt_postuninstall_cmds
22465
22466 # Commands used to finish a libtool library installation in a directory.
22467 finish_cmds=$lt_finish_cmds
22468
22469 # As "finish_cmds", except a single script fragment to be evaled but
22470 # not shown.
22471 finish_eval=$lt_finish_eval
22472
22473 # Whether we should hardcode library paths into libraries.
22474 hardcode_into_libs=$hardcode_into_libs
22475
22476 # Compile-time system search path for libraries.
22477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22478
22479 # Run-time system search path for libraries.
22480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22481
22482 # Whether dlopen is supported.
22483 dlopen_support=$enable_dlopen
22484
22485 # Whether dlopen of programs is supported.
22486 dlopen_self=$enable_dlopen_self
22487
22488 # Whether dlopen of statically linked programs is supported.
22489 dlopen_self_static=$enable_dlopen_self_static
22490
22491 # Commands to strip libraries.
22492 old_striplib=$lt_old_striplib
22493 striplib=$lt_striplib
22494
22495
22496 # The linker used to build libraries.
22497 LD=$lt_LD
22498
22499 # Commands used to build an old-style archive.
22500 old_archive_cmds=$lt_old_archive_cmds
22501
22502 # A language specific compiler.
22503 CC=$lt_compiler
22504
22505 # Is the compiler the GNU compiler?
22506 with_gcc=$GCC
22507
22508 # Compiler flag to turn off builtin functions.
22509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22510
22511 # How to pass a linker flag through the compiler.
22512 wl=$lt_lt_prog_compiler_wl
22513
22514 # Additional compiler flags for building library objects.
22515 pic_flag=$lt_lt_prog_compiler_pic
22516
22517 # Compiler flag to prevent dynamic linking.
22518 link_static_flag=$lt_lt_prog_compiler_static
22519
22520 # Does compiler simultaneously support -c and -o options?
22521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22522
22523 # Whether or not to add -lc for building shared libraries.
22524 build_libtool_need_lc=$archive_cmds_need_lc
22525
22526 # Whether or not to disallow shared libs when runtime libs are static.
22527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22528
22529 # Compiler flag to allow reflexive dlopens.
22530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22531
22532 # Compiler flag to generate shared objects directly from archives.
22533 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22534
22535 # Whether the compiler copes with passing no objects directly.
22536 compiler_needs_object=$lt_compiler_needs_object
22537
22538 # Create an old-style archive from a shared archive.
22539 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22540
22541 # Create a temporary old-style archive to link instead of a shared archive.
22542 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22543
22544 # Commands used to build a shared archive.
22545 archive_cmds=$lt_archive_cmds
22546 archive_expsym_cmds=$lt_archive_expsym_cmds
22547
22548 # Commands used to build a loadable module if different from building
22549 # a shared archive.
22550 module_cmds=$lt_module_cmds
22551 module_expsym_cmds=$lt_module_expsym_cmds
22552
22553 # Whether we are building with GNU ld or not.
22554 with_gnu_ld=$lt_with_gnu_ld
22555
22556 # Flag that allows shared libraries with undefined symbols to be built.
22557 allow_undefined_flag=$lt_allow_undefined_flag
22558
22559 # Flag that enforces no undefined symbols.
22560 no_undefined_flag=$lt_no_undefined_flag
22561
22562 # Flag to hardcode \$libdir into a binary during linking.
22563 # This must work even if \$libdir does not exist
22564 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22565
22566 # If ld is used when linking, flag to hardcode \$libdir into a binary
22567 # during linking. This must work even if \$libdir does not exist.
22568 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22569
22570 # Whether we need a single "-rpath" flag with a separated argument.
22571 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22572
22573 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22574 # DIR into the resulting binary.
22575 hardcode_direct=$hardcode_direct
22576
22577 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22578 # DIR into the resulting binary and the resulting library dependency is
22579 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22580 # library is relocated.
22581 hardcode_direct_absolute=$hardcode_direct_absolute
22582
22583 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22584 # into the resulting binary.
22585 hardcode_minus_L=$hardcode_minus_L
22586
22587 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22588 # into the resulting binary.
22589 hardcode_shlibpath_var=$hardcode_shlibpath_var
22590
22591 # Set to "yes" if building a shared library automatically hardcodes DIR
22592 # into the library and all subsequent libraries and executables linked
22593 # against it.
22594 hardcode_automatic=$hardcode_automatic
22595
22596 # Set to yes if linker adds runtime paths of dependent libraries
22597 # to runtime path list.
22598 inherit_rpath=$inherit_rpath
22599
22600 # Whether libtool must link a program against all its dependency libraries.
22601 link_all_deplibs=$link_all_deplibs
22602
22603 # Fix the shell variable \$srcfile for the compiler.
22604 fix_srcfile_path=$lt_fix_srcfile_path
22605
22606 # Set to "yes" if exported symbols are required.
22607 always_export_symbols=$always_export_symbols
22608
22609 # The commands to list exported symbols.
22610 export_symbols_cmds=$lt_export_symbols_cmds
22611
22612 # Symbols that should not be listed in the preloaded symbols.
22613 exclude_expsyms=$lt_exclude_expsyms
22614
22615 # Symbols that must always be exported.
22616 include_expsyms=$lt_include_expsyms
22617
22618 # Commands necessary for linking programs (against libraries) with templates.
22619 prelink_cmds=$lt_prelink_cmds
22620
22621 # Specify filename containing input files.
22622 file_list_spec=$lt_file_list_spec
22623
22624 # How to hardcode a shared library path into an executable.
22625 hardcode_action=$hardcode_action
22626
22627 # ### END LIBTOOL CONFIG
22628
22629 _LT_EOF
22630
22631 case $host_os in
22632 aix3*)
22633 cat <<\_LT_EOF >> "$cfgfile"
22634 # AIX sometimes has problems with the GCC collect2 program. For some
22635 # reason, if we set the COLLECT_NAMES environment variable, the problems
22636 # vanish in a puff of smoke.
22637 if test "X${COLLECT_NAMES+set}" != Xset; then
22638 COLLECT_NAMES=
22639 export COLLECT_NAMES
22640 fi
22641 _LT_EOF
22642 ;;
22643 esac
22644
22645
22646 ltmain="$ac_aux_dir/ltmain.sh"
22647
22648
22649 # We use sed instead of cat because bash on DJGPP gets confused if
22650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22651 # text mode, it properly converts lines to CR/LF. This bash problem
22652 # is reportedly fixed, but why not run on old versions too?
22653 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22654 || (rm -f "$cfgfile"; exit 1)
22655
22656 case $xsi_shell in
22657 yes)
22658 cat << \_LT_EOF >> "$cfgfile"
22659
22660 # func_dirname file append nondir_replacement
22661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22662 # otherwise set result to NONDIR_REPLACEMENT.
22663 func_dirname ()
22664 {
22665 case ${1} in
22666 */*) func_dirname_result="${1%/*}${2}" ;;
22667 * ) func_dirname_result="${3}" ;;
22668 esac
22669 }
22670
22671 # func_basename file
22672 func_basename ()
22673 {
22674 func_basename_result="${1##*/}"
22675 }
22676
22677 # func_dirname_and_basename file append nondir_replacement
22678 # perform func_basename and func_dirname in a single function
22679 # call:
22680 # dirname: Compute the dirname of FILE. If nonempty,
22681 # add APPEND to the result, otherwise set result
22682 # to NONDIR_REPLACEMENT.
22683 # value returned in "$func_dirname_result"
22684 # basename: Compute filename of FILE.
22685 # value retuned in "$func_basename_result"
22686 # Implementation must be kept synchronized with func_dirname
22687 # and func_basename. For efficiency, we do not delegate to
22688 # those functions but instead duplicate the functionality here.
22689 func_dirname_and_basename ()
22690 {
22691 case ${1} in
22692 */*) func_dirname_result="${1%/*}${2}" ;;
22693 * ) func_dirname_result="${3}" ;;
22694 esac
22695 func_basename_result="${1##*/}"
22696 }
22697
22698 # func_stripname prefix suffix name
22699 # strip PREFIX and SUFFIX off of NAME.
22700 # PREFIX and SUFFIX must not contain globbing or regex special
22701 # characters, hashes, percent signs, but SUFFIX may contain a leading
22702 # dot (in which case that matches only a dot).
22703 func_stripname ()
22704 {
22705 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22706 # positional parameters, so assign one to ordinary parameter first.
22707 func_stripname_result=${3}
22708 func_stripname_result=${func_stripname_result#"${1}"}
22709 func_stripname_result=${func_stripname_result%"${2}"}
22710 }
22711
22712 # func_opt_split
22713 func_opt_split ()
22714 {
22715 func_opt_split_opt=${1%%=*}
22716 func_opt_split_arg=${1#*=}
22717 }
22718
22719 # func_lo2o object
22720 func_lo2o ()
22721 {
22722 case ${1} in
22723 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22724 *) func_lo2o_result=${1} ;;
22725 esac
22726 }
22727
22728 # func_xform libobj-or-source
22729 func_xform ()
22730 {
22731 func_xform_result=${1%.*}.lo
22732 }
22733
22734 # func_arith arithmetic-term...
22735 func_arith ()
22736 {
22737 func_arith_result=$(( $* ))
22738 }
22739
22740 # func_len string
22741 # STRING may not start with a hyphen.
22742 func_len ()
22743 {
22744 func_len_result=${#1}
22745 }
22746
22747 _LT_EOF
22748 ;;
22749 *) # Bourne compatible functions.
22750 cat << \_LT_EOF >> "$cfgfile"
22751
22752 # func_dirname file append nondir_replacement
22753 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22754 # otherwise set result to NONDIR_REPLACEMENT.
22755 func_dirname ()
22756 {
22757 # Extract subdirectory from the argument.
22758 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22759 if test "X$func_dirname_result" = "X${1}"; then
22760 func_dirname_result="${3}"
22761 else
22762 func_dirname_result="$func_dirname_result${2}"
22763 fi
22764 }
22765
22766 # func_basename file
22767 func_basename ()
22768 {
22769 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22770 }
22771
22772
22773 # func_stripname prefix suffix name
22774 # strip PREFIX and SUFFIX off of NAME.
22775 # PREFIX and SUFFIX must not contain globbing or regex special
22776 # characters, hashes, percent signs, but SUFFIX may contain a leading
22777 # dot (in which case that matches only a dot).
22778 # func_strip_suffix prefix name
22779 func_stripname ()
22780 {
22781 case ${2} in
22782 .*) func_stripname_result=`$ECHO "X${3}" \
22783 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22784 *) func_stripname_result=`$ECHO "X${3}" \
22785 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22786 esac
22787 }
22788
22789 # sed scripts:
22790 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22791 my_sed_long_arg='1s/^-[^=]*=//'
22792
22793 # func_opt_split
22794 func_opt_split ()
22795 {
22796 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22797 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22798 }
22799
22800 # func_lo2o object
22801 func_lo2o ()
22802 {
22803 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22804 }
22805
22806 # func_xform libobj-or-source
22807 func_xform ()
22808 {
22809 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22810 }
22811
22812 # func_arith arithmetic-term...
22813 func_arith ()
22814 {
22815 func_arith_result=`expr "$@"`
22816 }
22817
22818 # func_len string
22819 # STRING may not start with a hyphen.
22820 func_len ()
22821 {
22822 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22823 }
22824
22825 _LT_EOF
22826 esac
22827
22828 case $lt_shell_append in
22829 yes)
22830 cat << \_LT_EOF >> "$cfgfile"
22831
22832 # func_append var value
22833 # Append VALUE to the end of shell variable VAR.
22834 func_append ()
22835 {
22836 eval "$1+=\$2"
22837 }
22838 _LT_EOF
22839 ;;
22840 *)
22841 cat << \_LT_EOF >> "$cfgfile"
22842
22843 # func_append var value
22844 # Append VALUE to the end of shell variable VAR.
22845 func_append ()
22846 {
22847 eval "$1=\$$1\$2"
22848 }
22849
22850 _LT_EOF
22851 ;;
22852 esac
22853
22854
22855 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22856 || (rm -f "$cfgfile"; exit 1)
22857
22858 mv -f "$cfgfile" "$ofile" ||
22859 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22860 chmod +x "$ofile"
22861
22862 ;;
22863
22864 esac
22865 done # for ac_tag
22866
22867
22868 { (exit 0); exit 0; }
22869 _ACEOF
22870 chmod +x $CONFIG_STATUS
22871 ac_clean_files=$ac_clean_files_save
22872
22873 test $ac_write_fail = 0 ||
22874 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22875 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22876 { (exit 1); exit 1; }; }
22877
22878
22879 # configure is writing to config.log, and then calls config.status.
22880 # config.status does its own redirection, appending to config.log.
22881 # Unfortunately, on DOS this fails, as config.log is still kept open
22882 # by configure, so config.status won't be able to write to it; its
22883 # output is simply discarded. So we exec the FD to /dev/null,
22884 # effectively closing config.log, so it can be properly (re)opened and
22885 # appended to by config.status. When coming back to configure, we
22886 # need to make the FD available again.
22887 if test "$no_create" != yes; then
22888 ac_cs_success=:
22889 ac_config_status_args=
22890 test "$silent" = yes &&
22891 ac_config_status_args="$ac_config_status_args --quiet"
22892 exec 5>/dev/null
22893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22894 exec 5>>config.log
22895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22896 # would make configure fail if this is the last instruction.
22897 $ac_cs_success || { (exit 1); exit 1; }
22898 fi
22899 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22900 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22901 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22902 fi
22903