]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Remove AC_DEFINE for DEBUG/NDEBUG
[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 LICENSE
803 CPP
804 OTOOL64
805 OTOOL
806 LIPO
807 NMEDIT
808 DSYMUTIL
809 lt_ECHO
810 RANLIB
811 AR
812 OBJDUMP
813 LN_S
814 NM
815 ac_ct_DUMPBIN
816 DUMPBIN
817 LD
818 FGREP
819 EGREP
820 GREP
821 SED
822 LIBTOOL
823 am__fastdepCC_FALSE
824 am__fastdepCC_TRUE
825 CCDEPMODE
826 AMDEPBACKSLASH
827 AMDEP_FALSE
828 AMDEP_TRUE
829 am__quote
830 am__include
831 DEPDIR
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
838 CC
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
844 AWK
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 AM_BACKSLASH
863 AM_DEFAULT_VERBOSITY
864 MAINT
865 MAINTAINER_MODE_FALSE
866 MAINTAINER_MODE_TRUE
867 target_os
868 target_vendor
869 target_cpu
870 target
871 host_os
872 host_vendor
873 host_cpu
874 host
875 build_os
876 build_vendor
877 build_cpu
878 build
879 SPL_META_LT_AGE
880 SPL_META_LT_REVISION
881 SPL_META_LT_CURRENT
882 SPL_META_AUTHOR
883 SPL_META_DATA
884 SPL_META_ALIAS
885 SPL_META_RELEASE
886 SPL_META_VERSION
887 SPL_META_NAME
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_maintainer_mode
929 enable_silent_rules
930 enable_dependency_tracking
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 with_config
938 with_linux
939 with_linux_obj
940 enable_debug
941 enable_debug_kmem
942 enable_debug_kmem_tracking
943 enable_atomic_spinlocks
944 '
945 ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP'
954
955
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 ac_unrecognized_opts=
960 ac_unrecognized_sep=
961 # The variables have the same names as the options, with
962 # dashes changed to underlines.
963 cache_file=/dev/null
964 exec_prefix=NONE
965 no_create=
966 no_recursion=
967 prefix=NONE
968 program_prefix=NONE
969 program_suffix=NONE
970 program_transform_name=s,x,x,
971 silent=
972 site=
973 srcdir=
974 verbose=
975 x_includes=NONE
976 x_libraries=NONE
977
978 # Installation directory options.
979 # These are left unexpanded so users can "make install exec_prefix=/foo"
980 # and all the variables that are supposed to be based on exec_prefix
981 # by default will actually change.
982 # Use braces instead of parens because sh, perl, etc. also accept them.
983 # (The list follows the same order as the GNU Coding Standards.)
984 bindir='${exec_prefix}/bin'
985 sbindir='${exec_prefix}/sbin'
986 libexecdir='${exec_prefix}/libexec'
987 datarootdir='${prefix}/share'
988 datadir='${datarootdir}'
989 sysconfdir='${prefix}/etc'
990 sharedstatedir='${prefix}/com'
991 localstatedir='${prefix}/var'
992 includedir='${prefix}/include'
993 oldincludedir='/usr/include'
994 docdir='${datarootdir}/doc/${PACKAGE}'
995 infodir='${datarootdir}/info'
996 htmldir='${docdir}'
997 dvidir='${docdir}'
998 pdfdir='${docdir}'
999 psdir='${docdir}'
1000 libdir='${exec_prefix}/lib'
1001 localedir='${datarootdir}/locale'
1002 mandir='${datarootdir}/man'
1003
1004 ac_prev=
1005 ac_dashdash=
1006 for ac_option
1007 do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
1010 eval $ac_prev=\$ac_option
1011 ac_prev=
1012 continue
1013 fi
1014
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
1046 -datadir | --datadir | --datadi | --datad)
1047 ac_prev=datadir ;;
1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1049 datadir=$ac_optarg ;;
1050
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
1058 -disable-* | --disable-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
1084
1085 -enable-* | --enable-*)
1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1099 esac
1100 eval enable_$ac_useropt=\$ac_optarg ;;
1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
1163 | --localstate | --localstat | --localsta | --localst | --locals)
1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1295 { (exit 1); exit 1; }; }
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=\$ac_optarg ;;
1306
1307 -without-* | --without-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
1342 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1343 Try \`$0 --help' for more information." >&2
1344 { (exit 1); exit 1; }; }
1345 ;;
1346
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1351 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1352 { (exit 1); exit 1; }; }
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1370 { (exit 1); exit 1; }; }
1371 fi
1372
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1377 { (exit 1); exit 1; }; } ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
1387 do
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401 { (exit 1); exit 1; }; }
1402 done
1403
1404 # There might be people who depend on the old broken behavior: `$host'
1405 # used to hold the argument of --host etc.
1406 # FIXME: To remove some day.
1407 build=$build_alias
1408 host=$host_alias
1409 target=$target_alias
1410
1411 # FIXME: To remove some day.
1412 if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1416 If a cross compiler is detected then cross compile mode will be used." >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1419 fi
1420 fi
1421
1422 ac_tool_prefix=
1423 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425 test "$silent" = yes && exec 6>/dev/null
1426
1427
1428 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429 ac_ls_di=`ls -di .` &&
1430 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1432 { (exit 1); exit 1; }; }
1433 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435 { (exit 1); exit 1; }; }
1436
1437
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\).*/{
1461 s//\1/
1462 q
1463 }
1464 s/.*/./; q'`
1465 srcdir=$ac_confdir
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 srcdir=..
1468 fi
1469 else
1470 ac_srcdir_defaulted=no
1471 fi
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1475 { (exit 1); exit 1; }; }
1476 fi
1477 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 ac_abs_confdir=`(
1479 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1480 { (exit 1); exit 1; }; }
1481 pwd)`
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485 fi
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1489 case $srcdir in
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491 esac
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497 done
1498
1499 #
1500 # Report the --help message.
1501 #
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506 \`configure' configures this package to adapt to many kinds of systems.
1507
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513 Defaults for the options are specified in brackets.
1514
1515 Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 [PREFIX]
1531
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1536
1537 For better control, use the options below.
1538
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1559 _ACEOF
1560
1561 cat <<\_ACEOF
1562
1563 Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567
1568 System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1572 _ACEOF
1573 fi
1574
1575 if test -n "$ac_init_help"; then
1576
1577 cat <<\_ACEOF
1578
1579 Optional Features:
1580 --disable-option-checking ignore unrecognized --enable/--with options
1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-maintainer-mode enable make rules and dependencies not useful
1584 (and sometimes confusing) to the casual installer
1585 --enable-silent-rules less verbose build output (undo: `make V=1')
1586 --disable-silent-rules verbose build output (undo: `make V=0')
1587 --disable-dependency-tracking speeds up one-time build
1588 --enable-dependency-tracking do not reject slow dependency extractors
1589 --enable-shared[=PKGS] build shared libraries [default=yes]
1590 --enable-static[=PKGS] build static libraries [default=yes]
1591 --enable-fast-install[=PKGS]
1592 optimize for fast installation [default=yes]
1593 --disable-libtool-lock avoid locking (might break parallel builds)
1594 --enable-debug Enable generic debug support [default=no]
1595 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1596 --enable-debug-kmem-tracking
1597 Enable detailed kmem tracking [default=no]
1598 --enable-atomic-spinlocks
1599 Atomic types use spinlocks [default=check]
1600
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-pic try to use only PIC/non-PIC objects [default=use
1605 both]
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1608 --with-linux=PATH Path to kernel source
1609 --with-linux-obj=PATH Path to kernel build objects
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620
1621 Use these variables to override the choices made by `configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1623
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 continue
1634 ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653 .) # We are building in place.
1654 ac_srcdir=.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1676 else
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1680 done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685 cat <<\_ACEOF
1686 configure
1687 generated by GNU Autoconf 2.63
1688
1689 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1690 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1691 This configure script is free software; the Free Software Foundation
1692 gives unlimited permission to copy, distribute and modify it.
1693 _ACEOF
1694 exit
1695 fi
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1699
1700 It was created by $as_me, which was
1701 generated by GNU Autoconf 2.63. Invocation command line was
1702
1703 $ $0 $@
1704
1705 _ACEOF
1706 exec 5>>config.log
1707 {
1708 cat <<_ASUNAME
1709 ## --------- ##
1710 ## Platform. ##
1711 ## --------- ##
1712
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730 _ASUNAME
1731
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
1737 $as_echo "PATH: $as_dir"
1738 done
1739 IFS=$as_save_IFS
1740
1741 } >&5
1742
1743 cat >&5 <<_ACEOF
1744
1745
1746 ## ----------- ##
1747 ## Core tests. ##
1748 ## ----------- ##
1749
1750 _ACEOF
1751
1752
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1758 ac_configure_args=
1759 ac_configure_args0=
1760 ac_configure_args1=
1761 ac_must_keep_next=false
1762 for ac_pass in 1 2
1763 do
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
1771 *\'*)
1772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1792 fi
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1794 ;;
1795 esac
1796 done
1797 done
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
1810
1811 cat <<\_ASBOX
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1815 _ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
1818 (
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1830 *) $as_unset $ac_var ;;
1831 esac ;;
1832 esac
1833 done
1834 (set) 2>&1 |
1835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
1837 sed -n \
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 ;; #(
1841 *)
1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1843 ;;
1844 esac |
1845 sort
1846 )
1847 echo
1848
1849 cat <<\_ASBOX
1850 ## ----------------- ##
1851 ## Output variables. ##
1852 ## ----------------- ##
1853 _ASBOX
1854 echo
1855 for ac_var in $ac_subst_vars
1856 do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 $as_echo "$ac_var='\''$ac_val'\''"
1862 done | sort
1863 echo
1864
1865 if test -n "$ac_subst_files"; then
1866 cat <<\_ASBOX
1867 ## ------------------- ##
1868 ## File substitutions. ##
1869 ## ------------------- ##
1870 _ASBOX
1871 echo
1872 for ac_var in $ac_subst_files
1873 do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 $as_echo "$ac_var='\''$ac_val'\''"
1879 done | sort
1880 echo
1881 fi
1882
1883 if test -s confdefs.h; then
1884 cat <<\_ASBOX
1885 ## ----------- ##
1886 ## confdefs.h. ##
1887 ## ----------- ##
1888 _ASBOX
1889 echo
1890 cat confdefs.h
1891 echo
1892 fi
1893 test "$ac_signal" != 0 &&
1894 $as_echo "$as_me: caught signal $ac_signal"
1895 $as_echo "$as_me: exit $exit_status"
1896 } >&5
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 exit $exit_status
1900 ' 0
1901 for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903 done
1904 ac_signal=0
1905
1906 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1907 rm -f -r conftest* confdefs.h
1908
1909 # Predefined preprocessor variables.
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918 _ACEOF
1919
1920
1921 cat >>confdefs.h <<_ACEOF
1922 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 _ACEOF
1924
1925
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_STRING "$PACKAGE_STRING"
1928 _ACEOF
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933 _ACEOF
1934
1935
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer an explicitly selected file to automatically selected ones.
1938 ac_site_file1=NONE
1939 ac_site_file2=NONE
1940 if test -n "$CONFIG_SITE"; then
1941 ac_site_file1=$CONFIG_SITE
1942 elif test "x$prefix" != xNONE; then
1943 ac_site_file1=$prefix/share/config.site
1944 ac_site_file2=$prefix/etc/config.site
1945 else
1946 ac_site_file1=$ac_default_prefix/share/config.site
1947 ac_site_file2=$ac_default_prefix/etc/config.site
1948 fi
1949 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950 do
1951 test "x$ac_site_file" = xNONE && continue
1952 if test -r "$ac_site_file"; then
1953 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1954 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1955 sed 's/^/| /' "$ac_site_file" >&5
1956 . "$ac_site_file"
1957 fi
1958 done
1959
1960 if test -r "$cache_file"; then
1961 # Some versions of bash will fail to source /dev/null (special
1962 # files actually), so we avoid doing that.
1963 if test -f "$cache_file"; then
1964 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1965 $as_echo "$as_me: loading cache $cache_file" >&6;}
1966 case $cache_file in
1967 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1968 *) . "./$cache_file";;
1969 esac
1970 fi
1971 else
1972 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1973 $as_echo "$as_me: creating cache $cache_file" >&6;}
1974 >$cache_file
1975 fi
1976
1977 # Check that the precious variables saved in the cache have kept the same
1978 # value.
1979 ac_cache_corrupted=false
1980 for ac_var in $ac_precious_vars; do
1981 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1982 eval ac_new_set=\$ac_env_${ac_var}_set
1983 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1984 eval ac_new_val=\$ac_env_${ac_var}_value
1985 case $ac_old_set,$ac_new_set in
1986 set,)
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1990 ,set)
1991 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1993 ac_cache_corrupted=: ;;
1994 ,);;
1995 *)
1996 if test "x$ac_old_val" != "x$ac_new_val"; then
1997 # differences in whitespace do not lead to failure.
1998 ac_old_val_w=`echo x $ac_old_val`
1999 ac_new_val_w=`echo x $ac_new_val`
2000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 ac_cache_corrupted=:
2004 else
2005 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007 eval $ac_var=\$ac_old_val
2008 fi
2009 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2010 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2011 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2012 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
2018 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024 esac
2025 fi
2026 done
2027 if $ac_cache_corrupted; then
2028 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2031 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2033 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2034 { (exit 1); exit 1; }; }
2035 fi
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053 ac_ext=c
2054 ac_cpp='$CPP $CPPFLAGS'
2055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2058
2059
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065
2066
2067 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2068 $as_echo_n "checking metadata... " >&6; }
2069
2070 META="$srcdir/META"
2071 _spl_ac_meta_got_file=no
2072 if test -f "$META"; then
2073 _spl_ac_meta_got_file=yes
2074
2075 SPL_META_NAME=`perl -n\
2076 -e "BEGIN { \\$key=shift @ARGV; }"\
2077 -e "next unless s/^\s*\\$key[:=]//i;"\
2078 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2079 -e "s/^\s+//;"\
2080 -e "s/\s+$//;"\
2081 -e "s/^(['\"])(.*)\1/\\$2/;"\
2082 -e "\\$val=\\$_;"\
2083 -e "END { print \\$val if defined \\$val; }"\
2084 '(?:NAME|PROJECT|PACKAGE)' $META`;
2085 if test -n "$SPL_META_NAME"; then
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define SPL_META_NAME "$SPL_META_NAME"
2089 _ACEOF
2090
2091
2092 fi
2093
2094 SPL_META_VERSION=`perl -n\
2095 -e "BEGIN { \\$key=shift @ARGV; }"\
2096 -e "next unless s/^\s*\\$key[:=]//i;"\
2097 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2098 -e "s/^\s+//;"\
2099 -e "s/\s+$//;"\
2100 -e "s/^(['\"])(.*)\1/\\$2/;"\
2101 -e "\\$val=\\$_;"\
2102 -e "END { print \\$val if defined \\$val; }"\
2103 'VERSION' $META`;
2104 if test -n "$SPL_META_VERSION"; then
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define SPL_META_VERSION "$SPL_META_VERSION"
2108 _ACEOF
2109
2110
2111 fi
2112
2113 SPL_META_RELEASE=`perl -n\
2114 -e "BEGIN { \\$key=shift @ARGV; }"\
2115 -e "next unless s/^\s*\\$key[:=]//i;"\
2116 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2117 -e "s/^\s+//;"\
2118 -e "s/\s+$//;"\
2119 -e "s/^(['\"])(.*)\1/\\$2/;"\
2120 -e "\\$val=\\$_;"\
2121 -e "END { print \\$val if defined \\$val; }"\
2122 'RELEASE' $META`;
2123 if test -n "$SPL_META_RELEASE"; then
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2127 _ACEOF
2128
2129
2130 fi
2131
2132 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2133 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2134 test -n "$SPL_META_RELEASE" &&
2135 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2139 _ACEOF
2140
2141
2142 fi
2143
2144 SPL_META_DATA=`perl -n\
2145 -e "BEGIN { \\$key=shift @ARGV; }"\
2146 -e "next unless s/^\s*\\$key[:=]//i;"\
2147 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2148 -e "s/^\s+//;"\
2149 -e "s/\s+$//;"\
2150 -e "s/^(['\"])(.*)\1/\\$2/;"\
2151 -e "\\$val=\\$_;"\
2152 -e "END { print \\$val if defined \\$val; }"\
2153 'DATE' $META`;
2154 if test -n "$SPL_META_DATA"; then
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define SPL_META_DATA "$SPL_META_DATA"
2158 _ACEOF
2159
2160
2161 fi
2162
2163 SPL_META_AUTHOR=`perl -n\
2164 -e "BEGIN { \\$key=shift @ARGV; }"\
2165 -e "next unless s/^\s*\\$key[:=]//i;"\
2166 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2167 -e "s/^\s+//;"\
2168 -e "s/\s+$//;"\
2169 -e "s/^(['\"])(.*)\1/\\$2/;"\
2170 -e "\\$val=\\$_;"\
2171 -e "END { print \\$val if defined \\$val; }"\
2172 'AUTHOR' $META`;
2173 if test -n "$SPL_META_AUTHOR"; then
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2177 _ACEOF
2178
2179
2180 fi
2181
2182
2183 SPL_META_LT_CURRENT=`perl -n\
2184 -e "BEGIN { \\$key=shift @ARGV; }"\
2185 -e "next unless s/^\s*\\$key[:=]//i;"\
2186 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2187 -e "s/^\s+//;"\
2188 -e "s/\s+$//;"\
2189 -e "s/^(['\"])(.*)\1/\\$2/;"\
2190 -e "\\$val=\\$_;"\
2191 -e "END { print \\$val if defined \\$val; }"\
2192 'LT_CURRENT' $META`;
2193 SPL_META_LT_REVISION=`perl -n\
2194 -e "BEGIN { \\$key=shift @ARGV; }"\
2195 -e "next unless s/^\s*\\$key[:=]//i;"\
2196 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2197 -e "s/^\s+//;"\
2198 -e "s/\s+$//;"\
2199 -e "s/^(['\"])(.*)\1/\\$2/;"\
2200 -e "\\$val=\\$_;"\
2201 -e "END { print \\$val if defined \\$val; }"\
2202 'LT_REVISION' $META`;
2203 SPL_META_LT_AGE=`perl -n\
2204 -e "BEGIN { \\$key=shift @ARGV; }"\
2205 -e "next unless s/^\s*\\$key[:=]//i;"\
2206 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2207 -e "s/^\s+//;"\
2208 -e "s/\s+$//;"\
2209 -e "s/^(['\"])(.*)\1/\\$2/;"\
2210 -e "\\$val=\\$_;"\
2211 -e "END { print \\$val if defined \\$val; }"\
2212 'LT_AGE' $META`;
2213 if test -n "$SPL_META_LT_CURRENT" \
2214 -o -n "$SPL_META_LT_REVISION" \
2215 -o -n "$SPL_META_LT_AGE"; then
2216 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2217 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2218 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2219
2220 cat >>confdefs.h <<_ACEOF
2221 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2222 _ACEOF
2223
2224
2225 cat >>confdefs.h <<_ACEOF
2226 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2227 _ACEOF
2228
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2232 _ACEOF
2233
2234
2235
2236
2237 fi
2238 fi
2239
2240 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2241 $as_echo "$_spl_ac_meta_got_file" >&6; }
2242
2243
2244 ac_aux_dir=
2245 for ac_dir in config "$srcdir"/config; do
2246 if test -f "$ac_dir/install-sh"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install-sh -c"
2249 break
2250 elif test -f "$ac_dir/install.sh"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install.sh -c"
2253 break
2254 elif test -f "$ac_dir/shtool"; then
2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/shtool install -c"
2257 break
2258 fi
2259 done
2260 if test -z "$ac_aux_dir"; then
2261 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2262 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2263 { (exit 1); exit 1; }; }
2264 fi
2265
2266 # These three variables are undocumented and unsupported,
2267 # and are intended to be withdrawn in a future Autoconf release.
2268 # They can cause serious problems if a builder's source tree is in a directory
2269 # whose full name contains unusual characters.
2270 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2271 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2272 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273
2274
2275 # Make sure we can run config.sub.
2276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2277 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2278 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2279 { (exit 1); exit 1; }; }
2280
2281 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2282 $as_echo_n "checking build system type... " >&6; }
2283 if test "${ac_cv_build+set}" = set; then
2284 $as_echo_n "(cached) " >&6
2285 else
2286 ac_build_alias=$build_alias
2287 test "x$ac_build_alias" = x &&
2288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2289 test "x$ac_build_alias" = x &&
2290 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2291 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2292 { (exit 1); exit 1; }; }
2293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2294 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2295 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2296 { (exit 1); exit 1; }; }
2297
2298 fi
2299 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2300 $as_echo "$ac_cv_build" >&6; }
2301 case $ac_cv_build in
2302 *-*-*) ;;
2303 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2304 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2305 { (exit 1); exit 1; }; };;
2306 esac
2307 build=$ac_cv_build
2308 ac_save_IFS=$IFS; IFS='-'
2309 set x $ac_cv_build
2310 shift
2311 build_cpu=$1
2312 build_vendor=$2
2313 shift; shift
2314 # Remember, the first character of IFS is used to create $*,
2315 # except with old shells:
2316 build_os=$*
2317 IFS=$ac_save_IFS
2318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2319
2320
2321 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2322 $as_echo_n "checking host system type... " >&6; }
2323 if test "${ac_cv_host+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2325 else
2326 if test "x$host_alias" = x; then
2327 ac_cv_host=$ac_cv_build
2328 else
2329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2330 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2331 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2332 { (exit 1); exit 1; }; }
2333 fi
2334
2335 fi
2336 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2337 $as_echo "$ac_cv_host" >&6; }
2338 case $ac_cv_host in
2339 *-*-*) ;;
2340 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2341 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2342 { (exit 1); exit 1; }; };;
2343 esac
2344 host=$ac_cv_host
2345 ac_save_IFS=$IFS; IFS='-'
2346 set x $ac_cv_host
2347 shift
2348 host_cpu=$1
2349 host_vendor=$2
2350 shift; shift
2351 # Remember, the first character of IFS is used to create $*,
2352 # except with old shells:
2353 host_os=$*
2354 IFS=$ac_save_IFS
2355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2356
2357
2358 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2359 $as_echo_n "checking target system type... " >&6; }
2360 if test "${ac_cv_target+set}" = set; then
2361 $as_echo_n "(cached) " >&6
2362 else
2363 if test "x$target_alias" = x; then
2364 ac_cv_target=$ac_cv_host
2365 else
2366 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2367 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2368 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2369 { (exit 1); exit 1; }; }
2370 fi
2371
2372 fi
2373 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2374 $as_echo "$ac_cv_target" >&6; }
2375 case $ac_cv_target in
2376 *-*-*) ;;
2377 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2378 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2379 { (exit 1); exit 1; }; };;
2380 esac
2381 target=$ac_cv_target
2382 ac_save_IFS=$IFS; IFS='-'
2383 set x $ac_cv_target
2384 shift
2385 target_cpu=$1
2386 target_vendor=$2
2387 shift; shift
2388 # Remember, the first character of IFS is used to create $*,
2389 # except with old shells:
2390 target_os=$*
2391 IFS=$ac_save_IFS
2392 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2393
2394
2395 # The aliases save the names the user supplied, while $host etc.
2396 # will get canonicalized.
2397 test -n "$target_alias" &&
2398 test "$program_prefix$program_suffix$program_transform_name" = \
2399 NONENONEs,x,x, &&
2400 program_prefix=${target_alias}-
2401
2402 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2403 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2404 # Check whether --enable-maintainer-mode was given.
2405 if test "${enable_maintainer_mode+set}" = set; then
2406 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2407 else
2408 USE_MAINTAINER_MODE=no
2409 fi
2410
2411 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2412 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2413 if test $USE_MAINTAINER_MODE = yes; then
2414 MAINTAINER_MODE_TRUE=
2415 MAINTAINER_MODE_FALSE='#'
2416 else
2417 MAINTAINER_MODE_TRUE='#'
2418 MAINTAINER_MODE_FALSE=
2419 fi
2420
2421 MAINT=$MAINTAINER_MODE_TRUE
2422
2423
2424 # Check whether --enable-silent-rules was given.
2425 if test "${enable_silent_rules+set}" = set; then
2426 enableval=$enable_silent_rules;
2427 fi
2428
2429 case $enable_silent_rules in
2430 yes) AM_DEFAULT_VERBOSITY=0;;
2431 no) AM_DEFAULT_VERBOSITY=1;;
2432 *) AM_DEFAULT_VERBOSITY=1;;
2433 esac
2434 AM_BACKSLASH='\'
2435
2436 am__api_version='1.11'
2437
2438 # Find a good install program. We prefer a C program (faster),
2439 # so one script is as good as another. But avoid the broken or
2440 # incompatible versions:
2441 # SysV /etc/install, /usr/sbin/install
2442 # SunOS /usr/etc/install
2443 # IRIX /sbin/install
2444 # AIX /bin/install
2445 # AmigaOS /C/install, which installs bootblocks on floppy discs
2446 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449 # OS/2's system install, which has a completely different semantic
2450 # ./install, which can be erroneously created by make from ./install.sh.
2451 # Reject install programs that cannot install multiple files.
2452 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2453 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2454 if test -z "$INSTALL"; then
2455 if test "${ac_cv_path_install+set}" = set; then
2456 $as_echo_n "(cached) " >&6
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 # Account for people who put trailing slashes in PATH elements.
2464 case $as_dir/ in
2465 ./ | .// | /cC/* | \
2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2468 /usr/ucb/* ) ;;
2469 *)
2470 # OSF1 and SCO ODT 3.0 have their own names for install.
2471 # Don't use installbsd from OSF since it installs stuff as root
2472 # by default.
2473 for ac_prog in ginstall scoinst install; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2476 if test $ac_prog = install &&
2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # AIX install. It has an incompatible calling convention.
2479 :
2480 elif test $ac_prog = install &&
2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2483 :
2484 else
2485 rm -rf conftest.one conftest.two conftest.dir
2486 echo one > conftest.one
2487 echo two > conftest.two
2488 mkdir conftest.dir
2489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490 test -s conftest.one && test -s conftest.two &&
2491 test -s conftest.dir/conftest.one &&
2492 test -s conftest.dir/conftest.two
2493 then
2494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 break 3
2496 fi
2497 fi
2498 fi
2499 done
2500 done
2501 ;;
2502 esac
2503
2504 done
2505 IFS=$as_save_IFS
2506
2507 rm -rf conftest.one conftest.two conftest.dir
2508
2509 fi
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL=$ac_cv_path_install
2512 else
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the value is a relative name.
2517 INSTALL=$ac_install_sh
2518 fi
2519 fi
2520 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2521 $as_echo "$INSTALL" >&6; }
2522
2523 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524 # It thinks the first close brace ends the variable substitution.
2525 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
2527 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528
2529 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
2531 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2532 $as_echo_n "checking whether build environment is sane... " >&6; }
2533 # Just in case
2534 sleep 1
2535 echo timestamp > conftest.file
2536 # Reject unsafe characters in $srcdir or the absolute working directory
2537 # name. Accept space and tab only in the latter.
2538 am_lf='
2539 '
2540 case `pwd` in
2541 *[\\\"\#\$\&\'\`$am_lf]*)
2542 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2543 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2544 { (exit 1); exit 1; }; };;
2545 esac
2546 case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2549 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2550 { (exit 1); exit 1; }; };;
2551 esac
2552
2553 # Do `set' in a subshell so we don't clobber the current shell's
2554 # arguments. Must try -L first in case configure is actually a
2555 # symlink; some systems play weird games with the mod time of symlinks
2556 # (eg FreeBSD returns the mod time of the symlink's containing
2557 # directory).
2558 if (
2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2560 if test "$*" = "X"; then
2561 # -L didn't work.
2562 set X `ls -t "$srcdir/configure" conftest.file`
2563 fi
2564 rm -f conftest.file
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
2572 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2573 alias in your environment" >&5
2574 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2575 alias in your environment" >&2;}
2576 { (exit 1); exit 1; }; }
2577 fi
2578
2579 test "$2" = conftest.file
2580 )
2581 then
2582 # Ok.
2583 :
2584 else
2585 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2586 Check your system clock" >&5
2587 $as_echo "$as_me: error: newly created file is older than distributed files!
2588 Check your system clock" >&2;}
2589 { (exit 1); exit 1; }; }
2590 fi
2591 { $as_echo "$as_me:$LINENO: result: yes" >&5
2592 $as_echo "yes" >&6; }
2593 test "$program_prefix" != NONE &&
2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2595 # Use a double $ so make ignores it.
2596 test "$program_suffix" != NONE &&
2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2598 # Double any \ or $.
2599 # By default was `s,x,x', remove it if useless.
2600 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2601 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602
2603 # expand $ac_aux_dir to an absolute path
2604 am_aux_dir=`cd $ac_aux_dir && pwd`
2605
2606 if test x"${MISSING+set}" != xset; then
2607 case $am_aux_dir in
2608 *\ * | *\ *)
2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 *)
2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612 esac
2613 fi
2614 # Use eval to expand $SHELL
2615 if eval "$MISSING --run true"; then
2616 am_missing_run="$MISSING --run "
2617 else
2618 am_missing_run=
2619 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2620 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2621 fi
2622
2623 if test x"${install_sh}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 *)
2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
2629 esac
2630 fi
2631
2632 # Installed binaries are usually stripped using `strip' when the user
2633 # run `make install-strip'. However `strip' might not be the right
2634 # tool to use in cross-compilation environments, therefore Automake
2635 # will honor the `STRIP' environment variable to overrule this program.
2636 if test "$cross_compiling" != no; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}strip; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_STRIP+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$STRIP"; then
2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 STRIP=$ac_cv_prog_STRIP
2666 if test -n "$STRIP"; then
2667 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2668 $as_echo "$STRIP" >&6; }
2669 else
2670 { $as_echo "$as_me:$LINENO: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674
2675 fi
2676 if test -z "$ac_cv_prog_STRIP"; then
2677 ac_ct_STRIP=$STRIP
2678 # Extract the first word of "strip", so it can be a program name with args.
2679 set dummy strip; ac_word=$2
2680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_STRIP"; then
2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_STRIP="strip"
2696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706 if test -n "$ac_ct_STRIP"; then
2707 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2708 $as_echo "$ac_ct_STRIP" >&6; }
2709 else
2710 { $as_echo "$as_me:$LINENO: result: no" >&5
2711 $as_echo "no" >&6; }
2712 fi
2713
2714 if test "x$ac_ct_STRIP" = x; then
2715 STRIP=":"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 STRIP=$ac_ct_STRIP
2724 fi
2725 else
2726 STRIP="$ac_cv_prog_STRIP"
2727 fi
2728
2729 fi
2730 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2733 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734 if test -z "$MKDIR_P"; then
2735 if test "${ac_cv_path_mkdir+set}" = set; then
2736 $as_echo_n "(cached) " >&6
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_prog in mkdir gmkdir; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747 'mkdir (GNU coreutils) '* | \
2748 'mkdir (coreutils) '* | \
2749 'mkdir (fileutils) '4.1*)
2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 break 3;;
2752 esac
2753 done
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 MKDIR_P="$ac_cv_path_mkdir -p"
2762 else
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for MKDIR_P within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 test -d ./--version && rmdir ./--version
2768 MKDIR_P="$ac_install_sh -d"
2769 fi
2770 fi
2771 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2772 $as_echo "$MKDIR_P" >&6; }
2773
2774 mkdir_p="$MKDIR_P"
2775 case $mkdir_p in
2776 [\\/$]* | ?:[\\/]*) ;;
2777 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2778 esac
2779
2780 for ac_prog in gawk mawk nawk awk
2781 do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_AWK+set}" = set; then
2787 $as_echo_n "(cached) " >&6
2788 else
2789 if test -n "$AWK"; then
2790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_AWK="$ac_prog"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2802 fi
2803 done
2804 done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 AWK=$ac_cv_prog_AWK
2810 if test -n "$AWK"; then
2811 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2812 $as_echo "$AWK" >&6; }
2813 else
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 test -n "$AWK" && break
2820 done
2821
2822 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2824 set x ${MAKE-make}
2825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2826 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2827 $as_echo_n "(cached) " >&6
2828 else
2829 cat >conftest.make <<\_ACEOF
2830 SHELL = /bin/sh
2831 all:
2832 @echo '@@@%%%=$(MAKE)=@@@%%%'
2833 _ACEOF
2834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2836 *@@@%%%=?*=@@@%%%*)
2837 eval ac_cv_prog_make_${ac_make}_set=yes;;
2838 *)
2839 eval ac_cv_prog_make_${ac_make}_set=no;;
2840 esac
2841 rm -f conftest.make
2842 fi
2843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2844 { $as_echo "$as_me:$LINENO: result: yes" >&5
2845 $as_echo "yes" >&6; }
2846 SET_MAKE=
2847 else
2848 { $as_echo "$as_me:$LINENO: result: no" >&5
2849 $as_echo "no" >&6; }
2850 SET_MAKE="MAKE=${MAKE-make}"
2851 fi
2852
2853 rm -rf .tst 2>/dev/null
2854 mkdir .tst 2>/dev/null
2855 if test -d .tst; then
2856 am__leading_dot=.
2857 else
2858 am__leading_dot=_
2859 fi
2860 rmdir .tst 2>/dev/null
2861
2862 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2863 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2864 # is not polluted with repeated "-I."
2865 am__isrc=' -I$(srcdir)'
2866 # test to see if srcdir already configured
2867 if test -f $srcdir/config.status; then
2868 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2869 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2870 { (exit 1); exit 1; }; }
2871 fi
2872 fi
2873
2874 # test whether we have cygpath
2875 if test -z "$CYGPATH_W"; then
2876 if (cygpath --version) >/dev/null 2>/dev/null; then
2877 CYGPATH_W='cygpath -w'
2878 else
2879 CYGPATH_W=echo
2880 fi
2881 fi
2882
2883
2884 # Define the identity of the package.
2885 PACKAGE=$SPL_META_NAME
2886 VERSION=$SPL_META_VERSION
2887
2888
2889 cat >>confdefs.h <<_ACEOF
2890 #define PACKAGE "$PACKAGE"
2891 _ACEOF
2892
2893
2894 cat >>confdefs.h <<_ACEOF
2895 #define VERSION "$VERSION"
2896 _ACEOF
2897
2898 # Some tools Automake needs.
2899
2900 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2901
2902
2903 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2904
2905
2906 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2907
2908
2909 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2910
2911
2912 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2913
2914 # We need awk for the "check" target. The system "awk" is bad on
2915 # some platforms.
2916 # Always define AMTAR for backward compatibility.
2917
2918 AMTAR=${AMTAR-"${am_missing_run}tar"}
2919
2920 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2921
2922
2923
2924
2925
2926 ac_config_headers="$ac_config_headers spl_config.h"
2927
2928
2929 # Find a good install program. We prefer a C program (faster),
2930 # so one script is as good as another. But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2935 # AIX /bin/install
2936 # AmigaOS /C/install, which installs bootblocks on floppy discs
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # OS/2's system install, which has a completely different semantic
2941 # ./install, which can be erroneously created by make from ./install.sh.
2942 # Reject install programs that cannot install multiple files.
2943 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2944 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2945 if test -z "$INSTALL"; then
2946 if test "${ac_cv_path_install+set}" = set; then
2947 $as_echo_n "(cached) " >&6
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 # Account for people who put trailing slashes in PATH elements.
2955 case $as_dir/ in
2956 ./ | .// | /cC/* | \
2957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2958 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2959 /usr/ucb/* ) ;;
2960 *)
2961 # OSF1 and SCO ODT 3.0 have their own names for install.
2962 # Don't use installbsd from OSF since it installs stuff as root
2963 # by default.
2964 for ac_prog in ginstall scoinst install; do
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2967 if test $ac_prog = install &&
2968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # AIX install. It has an incompatible calling convention.
2970 :
2971 elif test $ac_prog = install &&
2972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2973 # program-specific install script used by HP pwplus--don't use.
2974 :
2975 else
2976 rm -rf conftest.one conftest.two conftest.dir
2977 echo one > conftest.one
2978 echo two > conftest.two
2979 mkdir conftest.dir
2980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2981 test -s conftest.one && test -s conftest.two &&
2982 test -s conftest.dir/conftest.one &&
2983 test -s conftest.dir/conftest.two
2984 then
2985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2986 break 3
2987 fi
2988 fi
2989 fi
2990 done
2991 done
2992 ;;
2993 esac
2994
2995 done
2996 IFS=$as_save_IFS
2997
2998 rm -rf conftest.one conftest.two conftest.dir
2999
3000 fi
3001 if test "${ac_cv_path_install+set}" = set; then
3002 INSTALL=$ac_cv_path_install
3003 else
3004 # As a last resort, use the slow shell script. Don't cache a
3005 # value for INSTALL within a source directory, because that will
3006 # break other packages using the cache if that directory is
3007 # removed, or if the value is a relative name.
3008 INSTALL=$ac_install_sh
3009 fi
3010 fi
3011 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3012 $as_echo "$INSTALL" >&6; }
3013
3014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3015 # It thinks the first close brace ends the variable substitution.
3016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3017
3018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3019
3020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3021
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060 { $as_echo "$as_me:$LINENO: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065 fi
3066 if test -z "$ac_cv_prog_CC"; then
3067 ac_ct_CC=$CC
3068 # Extract the first word of "gcc", so it can be a program name with args.
3069 set dummy gcc; ac_word=$2
3070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 $as_echo_n "checking for $ac_word... " >&6; }
3072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3073 $as_echo_n "(cached) " >&6
3074 else
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085 ac_cv_prog_ac_ct_CC="gcc"
3086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi
3094 fi
3095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096 if test -n "$ac_ct_CC"; then
3097 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098 $as_echo "$ac_ct_CC" >&6; }
3099 else
3100 { $as_echo "$as_me:$LINENO: result: no" >&5
3101 $as_echo "no" >&6; }
3102 fi
3103
3104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108 yes:)
3109 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111 ac_tool_warned=yes ;;
3112 esac
3113 CC=$ac_ct_CC
3114 fi
3115 else
3116 CC="$ac_cv_prog_CC"
3117 fi
3118
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122 set dummy ${ac_tool_prefix}cc; ac_word=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142 done
3143 done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 fi
3160 if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162 set dummy cc; ac_word=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 ac_prog_rejected=no
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3182 fi
3183 ac_cv_prog_CC="cc"
3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187 done
3188 done
3189 IFS=$as_save_IFS
3190
3191 if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201 fi
3202 fi
3203 fi
3204 fi
3205 CC=$ac_cv_prog_CC
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3209 else
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211 $as_echo "no" >&6; }
3212 fi
3213
3214
3215 fi
3216 if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
3218 for ac_prog in cl.exe
3219 do
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if test "${ac_cv_prog_CC+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257 test -n "$CC" && break
3258 done
3259 fi
3260 if test -z "$CC"; then
3261 ac_ct_CC=$CC
3262 for ac_prog in cl.exe
3263 do
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265 set dummy $ac_prog; ac_word=$2
3266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281 ac_cv_prog_ac_ct_CC="$ac_prog"
3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285 done
3286 done
3287 IFS=$as_save_IFS
3288
3289 fi
3290 fi
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3295 else
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297 $as_echo "no" >&6; }
3298 fi
3299
3300
3301 test -n "$ac_ct_CC" && break
3302 done
3303
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308 yes:)
3309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3312 esac
3313 CC=$ac_ct_CC
3314 fi
3315 fi
3316
3317 fi
3318
3319
3320 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }; }
3327
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3330 set X $ac_compile
3331 ac_compiler=$2
3332 { (ac_try="$ac_compiler --version >&5"
3333 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compiler --version >&5") 2>&5
3340 ac_status=$?
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }
3343 { (ac_try="$ac_compiler -v >&5"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349 $as_echo "$ac_try_echo") >&5
3350 (eval "$ac_compiler -v >&5") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354 { (ac_try="$ac_compiler -V >&5"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compiler -V >&5") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3365
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext.
3386 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393 ac_rmfiles=
3394 for ac_file in $ac_files
3395 do
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 esac
3400 done
3401 rm -f $ac_rmfiles
3402
3403 if { (ac_try="$ac_link_default"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410 (eval "$ac_link_default") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; then
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf.
3419 for ac_file in $ac_files ''
3420 do
3421 test -f "$ac_file" || continue
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424 ;;
3425 [ab].out )
3426 # We found the default executable, but exeext='' is most
3427 # certainly right.
3428 break;;
3429 *.* )
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 then :; else
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 fi
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3438 # actually working.
3439 break;;
3440 * )
3441 break;;
3442 esac
3443 done
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446 else
3447 ac_file=''
3448 fi
3449
3450 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 if test -z "$ac_file"; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&5
3460 $as_echo "$as_me: error: C compiler cannot create executables
3461 See \`config.log' for more details." >&2;}
3462 { (exit 77); exit 77; }; }; }
3463 fi
3464
3465 ac_exeext=$ac_cv_exeext
3466
3467 # Check that the compiler produces executables we can run. If not, either
3468 # the compiler is broken, or we cross compile.
3469 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472 # If not cross compiling, check that we can run a simple program.
3473 if test "$cross_compiling" != yes; then
3474 if { ac_try='./$ac_file'
3475 { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }; }; then
3485 cross_compiling=no
3486 else
3487 if test "$cross_compiling" = maybe; then
3488 cross_compiling=yes
3489 else
3490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3493 If you meant to cross compile, use \`--host'.
3494 See \`config.log' for more details." >&5
3495 $as_echo "$as_me: error: cannot run C compiled programs.
3496 If you meant to cross compile, use \`--host'.
3497 See \`config.log' for more details." >&2;}
3498 { (exit 1); exit 1; }; }; }
3499 fi
3500 fi
3501 fi
3502 { $as_echo "$as_me:$LINENO: result: yes" >&5
3503 $as_echo "yes" >&6; }
3504
3505 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3506 ac_clean_files=$ac_clean_files_save
3507 # Check that the compiler produces executables we can run. If not, either
3508 # the compiler is broken, or we cross compile.
3509 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3510 $as_echo_n "checking whether we are cross compiling... " >&6; }
3511 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3513
3514 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3515 $as_echo_n "checking for suffix of executables... " >&6; }
3516 if { (ac_try="$ac_link"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_link") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529 # work properly (i.e., refer to `conftest.exe'), while it won't with
3530 # `rm'.
3531 for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3536 break;;
3537 * ) break;;
3538 esac
3539 done
3540 else
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3544 See \`config.log' for more details." >&5
3545 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }; }
3548 fi
3549
3550 rm -f conftest$ac_cv_exeext
3551 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3552 $as_echo "$ac_cv_exeext" >&6; }
3553
3554 rm -f conftest.$ac_ext
3555 EXEEXT=$ac_cv_exeext
3556 ac_exeext=$EXEEXT
3557 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3558 $as_echo_n "checking for suffix of object files... " >&6; }
3559 if test "${ac_cv_objext+set}" = set; then
3560 $as_echo_n "(cached) " >&6
3561 else
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h. */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3568
3569 int
3570 main ()
3571 {
3572
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 rm -f conftest.o conftest.obj
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584 $as_echo "$ac_try_echo") >&5
3585 (eval "$ac_compile") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; then
3589 for ac_file in conftest.o conftest.obj conftest.*; do
3590 test -f "$ac_file" || continue;
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 break;;
3595 esac
3596 done
3597 else
3598 $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3600
3601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }; }
3608 fi
3609
3610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611 fi
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613 $as_echo "$ac_cv_objext" >&6; }
3614 OBJEXT=$ac_cv_objext
3615 ac_objext=$OBJEXT
3616 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3619 $as_echo_n "(cached) " >&6
3620 else
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627
3628 int
3629 main ()
3630 {
3631 #ifndef __GNUC__
3632 choke me
3633 #endif
3634
3635 ;
3636 return 0;
3637 }
3638 _ACEOF
3639 rm -f conftest.$ac_objext
3640 if { (ac_try="$ac_compile"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646 $as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3657 ac_compiler_gnu=yes
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_compiler_gnu=no
3663 fi
3664
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3667
3668 fi
3669 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673 else
3674 GCC=
3675 fi
3676 ac_test_CFLAGS=${CFLAGS+set}
3677 ac_save_CFLAGS=$CFLAGS
3678 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3680 if test "${ac_cv_prog_cc_g+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3682 else
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat >conftest.$ac_ext <<_ACEOF
3688 /* confdefs.h. */
3689 _ACEOF
3690 cat confdefs.h >>conftest.$ac_ext
3691 cat >>conftest.$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3704 case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 ac_cv_prog_cc_g=yes
3721 else
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h. */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732
3733 int
3734 main ()
3735 {
3736
3737 ;
3738 return 0;
3739 }
3740 _ACEOF
3741 rm -f conftest.$ac_objext
3742 if { (ac_try="$ac_compile"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748 $as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 :
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772
3773 int
3774 main ()
3775 {
3776
3777 ;
3778 return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788 $as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 ac_cv_prog_cc_g=yes
3800 else
3801 $as_echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804
3805 fi
3806
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 fi
3809
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3815 fi
3816 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817 $as_echo "$ac_cv_prog_cc_g" >&6; }
3818 if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820 elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3825 fi
3826 else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3831 fi
3832 fi
3833 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835 if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_cv_prog_cc_c89=no
3839 ac_save_CC=$CC
3840 cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h. */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h. */
3846 #include <stdarg.h>
3847 #include <stdio.h>
3848 #include <sys/types.h>
3849 #include <sys/stat.h>
3850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851 struct buf { int x; };
3852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853 static char *e (p, i)
3854 char **p;
3855 int i;
3856 {
3857 return p[i];
3858 }
3859 static char *f (char * (*g) (char **, int), char **p, ...)
3860 {
3861 char *s;
3862 va_list v;
3863 va_start (v,p);
3864 s = g (p, va_arg (v,int));
3865 va_end (v);
3866 return s;
3867 }
3868
3869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
3872 as 'x'. The following induces an error, until -std is added to get
3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
3875 that's true only with -std. */
3876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
3878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3880 #define FOO(x) 'x'
3881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
3883 int test (int i, double x);
3884 struct s1 {int (*f) (int a);};
3885 struct s2 {int (*f) (double a);};
3886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 int argc;
3888 char **argv;
3889 int
3890 main ()
3891 {
3892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 do
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3920 else
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3929 done
3930 rm -f conftest.$ac_ext
3931 CC=$ac_save_CC
3932
3933 fi
3934 # AC_CACHE_VAL
3935 case "x$ac_cv_prog_cc_c89" in
3936 x)
3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938 $as_echo "none needed" >&6; } ;;
3939 xno)
3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941 $as_echo "unsupported" >&6; } ;;
3942 *)
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3946 esac
3947
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954 DEPDIR="${am__leading_dot}deps"
3955
3956 ac_config_commands="$ac_config_commands depfiles"
3957
3958
3959 am_make=${MAKE-make}
3960 cat > confinc << 'END'
3961 am__doit:
3962 @echo this is the am__doit target
3963 .PHONY: am__doit
3964 END
3965 # If we don't find an include directive, just comment out the code.
3966 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3967 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3968 am__include="#"
3969 am__quote=
3970 _am_result=none
3971 # First try GNU make style include.
3972 echo "include confinc" > confmf
3973 # Ignore all kinds of additional output from `make'.
3974 case `$am_make -s -f confmf 2> /dev/null` in #(
3975 *the\ am__doit\ target*)
3976 am__include=include
3977 am__quote=
3978 _am_result=GNU
3979 ;;
3980 esac
3981 # Now try BSD make style include.
3982 if test "$am__include" = "#"; then
3983 echo '.include "confinc"' > confmf
3984 case `$am_make -s -f confmf 2> /dev/null` in #(
3985 *the\ am__doit\ target*)
3986 am__include=.include
3987 am__quote="\""
3988 _am_result=BSD
3989 ;;
3990 esac
3991 fi
3992
3993
3994 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3995 $as_echo "$_am_result" >&6; }
3996 rm -f confinc confmf
3997
3998 # Check whether --enable-dependency-tracking was given.
3999 if test "${enable_dependency_tracking+set}" = set; then
4000 enableval=$enable_dependency_tracking;
4001 fi
4002
4003 if test "x$enable_dependency_tracking" != xno; then
4004 am_depcomp="$ac_aux_dir/depcomp"
4005 AMDEPBACKSLASH='\'
4006 fi
4007 if test "x$enable_dependency_tracking" != xno; then
4008 AMDEP_TRUE=
4009 AMDEP_FALSE='#'
4010 else
4011 AMDEP_TRUE='#'
4012 AMDEP_FALSE=
4013 fi
4014
4015
4016
4017 depcc="$CC" am_compiler_list=
4018
4019 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4020 $as_echo_n "checking dependency style of $depcc... " >&6; }
4021 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4022 $as_echo_n "(cached) " >&6
4023 else
4024 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4025 # We make a subdir and do the tests there. Otherwise we can end up
4026 # making bogus files that we don't know about and never remove. For
4027 # instance it was reported that on HP-UX the gcc test will end up
4028 # making a dummy file named `D' -- because `-MD' means `put the output
4029 # in D'.
4030 mkdir conftest.dir
4031 # Copy depcomp to subdir because otherwise we won't find it if we're
4032 # using a relative directory.
4033 cp "$am_depcomp" conftest.dir
4034 cd conftest.dir
4035 # We will build objects and dependencies in a subdirectory because
4036 # it helps to detect inapplicable dependency modes. For instance
4037 # both Tru64's cc and ICC support -MD to output dependencies as a
4038 # side effect of compilation, but ICC will put the dependencies in
4039 # the current directory while Tru64 will put them in the object
4040 # directory.
4041 mkdir sub
4042
4043 am_cv_CC_dependencies_compiler_type=none
4044 if test "$am_compiler_list" = ""; then
4045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4046 fi
4047 am__universal=false
4048 case " $depcc " in #(
4049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4050 esac
4051
4052 for depmode in $am_compiler_list; do
4053 # Setup a source with many dependencies, because some compilers
4054 # like to wrap large dependency lists on column 80 (with \), and
4055 # we should not choose a depcomp mode which is confused by this.
4056 #
4057 # We need to recreate these files for each test, as the compiler may
4058 # overwrite some of them when testing with obscure command lines.
4059 # This happens at least with the AIX C compiler.
4060 : > sub/conftest.c
4061 for i in 1 2 3 4 5 6; do
4062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4064 # Solaris 8's {/usr,}/bin/sh.
4065 touch sub/conftst$i.h
4066 done
4067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068
4069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4070 # mode. It turns out that the SunPro C++ compiler does not properly
4071 # handle `-M -o', and we need to detect this. Also, some Intel
4072 # versions had trouble with output in subdirs
4073 am__obj=sub/conftest.${OBJEXT-o}
4074 am__minus_obj="-o $am__obj"
4075 case $depmode in
4076 gcc)
4077 # This depmode causes a compiler race in universal mode.
4078 test "$am__universal" = false || continue
4079 ;;
4080 nosideeffect)
4081 # after this tag, mechanisms are not by side-effect, so they'll
4082 # only be used when explicitly requested
4083 if test "x$enable_dependency_tracking" = xyes; then
4084 continue
4085 else
4086 break
4087 fi
4088 ;;
4089 msvisualcpp | msvcmsys)
4090 # This compiler won't grok `-c -o', but also, the minuso test has
4091 # not run yet. These depmodes are late enough in the game, and
4092 # so weak that their functioning should not be impacted.
4093 am__obj=conftest.${OBJEXT-o}
4094 am__minus_obj=
4095 ;;
4096 none) break ;;
4097 esac
4098 if depmode=$depmode \
4099 source=sub/conftest.c object=$am__obj \
4100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4102 >/dev/null 2>conftest.err &&
4103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4107 # icc doesn't choke on unknown options, it will just issue warnings
4108 # or remarks (even with -Werror). So we grep stderr for any message
4109 # that says an option was ignored or not supported.
4110 # When given -MP, icc 7.0 and 7.1 complain thusly:
4111 # icc: Command line warning: ignoring option '-M'; no argument required
4112 # The diagnosis changed in icc 8.0:
4113 # icc: Command line remark: option '-MP' not supported
4114 if (grep 'ignoring option' conftest.err ||
4115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4116 am_cv_CC_dependencies_compiler_type=$depmode
4117 break
4118 fi
4119 fi
4120 done
4121
4122 cd ..
4123 rm -rf conftest.dir
4124 else
4125 am_cv_CC_dependencies_compiler_type=none
4126 fi
4127
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4132
4133 if
4134 test "x$enable_dependency_tracking" != xno \
4135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136 am__fastdepCC_TRUE=
4137 am__fastdepCC_FALSE='#'
4138 else
4139 am__fastdepCC_TRUE='#'
4140 am__fastdepCC_FALSE=
4141 fi
4142
4143
4144 case `pwd` in
4145 *\ * | *\ *)
4146 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4147 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4148 esac
4149
4150
4151
4152 macro_version='2.2.6'
4153 macro_revision='1.3012'
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167 ltmain="$ac_aux_dir/ltmain.sh"
4168
4169 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4170 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171 if test "${ac_cv_path_SED+set}" = set; then
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 $as_unset ac_script || ac_script=
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in sed gsed; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4192 # Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194 case `"$ac_path_SED" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 ac_count=`expr $ac_count + 1`
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_SED_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_SED"; then
4226 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4227 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4228 { (exit 1); exit 1; }; }
4229 fi
4230 else
4231 ac_cv_path_SED=$SED
4232 fi
4233
4234 fi
4235 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4236 $as_echo "$ac_cv_path_SED" >&6; }
4237 SED="$ac_cv_path_SED"
4238 rm -f conftest.sed
4239
4240 test -z "$SED" && SED=sed
4241 Xsed="$SED -e 1s/^X//"
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4254 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4255 if test "${ac_cv_path_GREP+set}" = set; then
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -z "$GREP"; then
4259 ac_path_GREP_found=false
4260 # Loop through the user's path and test for each of PROGNAME-LIST
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_prog in grep ggrep; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4269 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4270 # Check for GNU ac_path_GREP and select it if it is found.
4271 # Check for GNU $ac_path_GREP
4272 case `"$ac_path_GREP" --version 2>&1` in
4273 *GNU*)
4274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275 *)
4276 ac_count=0
4277 $as_echo_n 0123456789 >"conftest.in"
4278 while :
4279 do
4280 cat "conftest.in" "conftest.in" >"conftest.tmp"
4281 mv "conftest.tmp" "conftest.in"
4282 cp "conftest.in" "conftest.nl"
4283 $as_echo 'GREP' >> "conftest.nl"
4284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286 ac_count=`expr $ac_count + 1`
4287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4288 # Best one so far, save it but keep looking for a better one
4289 ac_cv_path_GREP="$ac_path_GREP"
4290 ac_path_GREP_max=$ac_count
4291 fi
4292 # 10*(2^10) chars as input seems more than enough
4293 test $ac_count -gt 10 && break
4294 done
4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296 esac
4297
4298 $ac_path_GREP_found && break 3
4299 done
4300 done
4301 done
4302 IFS=$as_save_IFS
4303 if test -z "$ac_cv_path_GREP"; then
4304 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4305 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4306 { (exit 1); exit 1; }; }
4307 fi
4308 else
4309 ac_cv_path_GREP=$GREP
4310 fi
4311
4312 fi
4313 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4314 $as_echo "$ac_cv_path_GREP" >&6; }
4315 GREP="$ac_cv_path_GREP"
4316
4317
4318 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4319 $as_echo_n "checking for egrep... " >&6; }
4320 if test "${ac_cv_path_EGREP+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4324 then ac_cv_path_EGREP="$GREP -E"
4325 else
4326 if test -z "$EGREP"; then
4327 ac_path_EGREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in egrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4337 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4338 # Check for GNU ac_path_EGREP and select it if it is found.
4339 # Check for GNU $ac_path_EGREP
4340 case `"$ac_path_EGREP" --version 2>&1` in
4341 *GNU*)
4342 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4343 *)
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'EGREP' >> "conftest.nl"
4352 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 ac_count=`expr $ac_count + 1`
4355 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_EGREP="$ac_path_EGREP"
4358 ac_path_EGREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 esac
4365
4366 $ac_path_EGREP_found && break 3
4367 done
4368 done
4369 done
4370 IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_EGREP"; then
4372 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4373 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4374 { (exit 1); exit 1; }; }
4375 fi
4376 else
4377 ac_cv_path_EGREP=$EGREP
4378 fi
4379
4380 fi
4381 fi
4382 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4383 $as_echo "$ac_cv_path_EGREP" >&6; }
4384 EGREP="$ac_cv_path_EGREP"
4385
4386
4387 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4388 $as_echo_n "checking for fgrep... " >&6; }
4389 if test "${ac_cv_path_FGREP+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4393 then ac_cv_path_FGREP="$GREP -F"
4394 else
4395 if test -z "$FGREP"; then
4396 ac_path_FGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400 do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in fgrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4407 # Check for GNU ac_path_FGREP and select it if it is found.
4408 # Check for GNU $ac_path_FGREP
4409 case `"$ac_path_FGREP" --version 2>&1` in
4410 *GNU*)
4411 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4412 *)
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'FGREP' >> "conftest.nl"
4421 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 ac_count=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_FGREP="$ac_path_FGREP"
4427 ac_path_FGREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433 esac
4434
4435 $ac_path_FGREP_found && break 3
4436 done
4437 done
4438 done
4439 IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_FGREP"; then
4441 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4444 fi
4445 else
4446 ac_cv_path_FGREP=$FGREP
4447 fi
4448
4449 fi
4450 fi
4451 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4452 $as_echo "$ac_cv_path_FGREP" >&6; }
4453 FGREP="$ac_cv_path_FGREP"
4454
4455
4456 test -z "$GREP" && GREP=grep
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 # Check whether --with-gnu-ld was given.
4477 if test "${with_gnu_ld+set}" = set; then
4478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479 else
4480 with_gnu_ld=no
4481 fi
4482
4483 ac_prog=ld
4484 if test "$GCC" = yes; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4487 $as_echo_n "checking for ld used by $CC... " >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 *)
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD="$ac_prog"
4505 ;;
4506 "")
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4509 ;;
4510 *)
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4513 ;;
4514 esac
4515 elif test "$with_gnu_ld" = yes; then
4516 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4517 $as_echo_n "checking for GNU ld... " >&6; }
4518 else
4519 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4520 $as_echo_n "checking for non-GNU ld... " >&6; }
4521 fi
4522 if test "${lt_cv_path_LD+set}" = set; then
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -z "$LD"; then
4526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS="$lt_save_ifs"
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD="$ac_dir/$ac_prog"
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test "$with_gnu_ld" != no && break
4538 ;;
4539 *)
4540 test "$with_gnu_ld" != yes && break
4541 ;;
4542 esac
4543 fi
4544 done
4545 IFS="$lt_save_ifs"
4546 else
4547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4548 fi
4549 fi
4550
4551 LD="$lt_cv_path_LD"
4552 if test -n "$LD"; then
4553 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4554 $as_echo "$LD" >&6; }
4555 else
4556 { $as_echo "$as_me:$LINENO: result: no" >&5
4557 $as_echo "no" >&6; }
4558 fi
4559 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4560 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4561 { (exit 1); exit 1; }; }
4562 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4563 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4564 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4565 $as_echo_n "(cached) " >&6
4566 else
4567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568 case `$LD -v 2>&1 </dev/null` in
4569 *GNU* | *'with BFD'*)
4570 lt_cv_prog_gnu_ld=yes
4571 ;;
4572 *)
4573 lt_cv_prog_gnu_ld=no
4574 ;;
4575 esac
4576 fi
4577 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4578 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4579 with_gnu_ld=$lt_cv_prog_gnu_ld
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4590 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4591 if test "${lt_cv_path_NM+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$NM"; then
4595 # Let the user override the test.
4596 lt_cv_path_NM="$NM"
4597 else
4598 lt_nm_to_check="${ac_tool_prefix}nm"
4599 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4600 lt_nm_to_check="$lt_nm_to_check nm"
4601 fi
4602 for lt_tmp_nm in $lt_nm_to_check; do
4603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4605 IFS="$lt_save_ifs"
4606 test -z "$ac_dir" && ac_dir=.
4607 tmp_nm="$ac_dir/$lt_tmp_nm"
4608 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4609 # Check to see if the nm accepts a BSD-compat flag.
4610 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4611 # nm: unknown option "B" ignored
4612 # Tru64's nm complains that /dev/null is an invalid object file
4613 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4614 */dev/null* | *'Invalid file or object type'*)
4615 lt_cv_path_NM="$tmp_nm -B"
4616 break
4617 ;;
4618 *)
4619 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4620 */dev/null*)
4621 lt_cv_path_NM="$tmp_nm -p"
4622 break
4623 ;;
4624 *)
4625 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4626 continue # so that we can try to find one that supports BSD flags
4627 ;;
4628 esac
4629 ;;
4630 esac
4631 fi
4632 done
4633 IFS="$lt_save_ifs"
4634 done
4635 : ${lt_cv_path_NM=no}
4636 fi
4637 fi
4638 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4639 $as_echo "$lt_cv_path_NM" >&6; }
4640 if test "$lt_cv_path_NM" != "no"; then
4641 NM="$lt_cv_path_NM"
4642 else
4643 # Didn't find any BSD compatible name lister, look for dumpbin.
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653 else
4654 if test -n "$DUMPBIN"; then
4655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672 fi
4673 fi
4674 DUMPBIN=$ac_cv_prog_DUMPBIN
4675 if test -n "$DUMPBIN"; then
4676 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4677 $as_echo "$DUMPBIN" >&6; }
4678 else
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680 $as_echo "no" >&6; }
4681 fi
4682
4683
4684 test -n "$DUMPBIN" && break
4685 done
4686 fi
4687 if test -z "$DUMPBIN"; then
4688 ac_ct_DUMPBIN=$DUMPBIN
4689 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4690 do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4696 $as_echo_n "(cached) " >&6
4697 else
4698 if test -n "$ac_ct_DUMPBIN"; then
4699 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712 done
4713 done
4714 IFS=$as_save_IFS
4715
4716 fi
4717 fi
4718 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4719 if test -n "$ac_ct_DUMPBIN"; then
4720 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4721 $as_echo "$ac_ct_DUMPBIN" >&6; }
4722 else
4723 { $as_echo "$as_me:$LINENO: result: no" >&5
4724 $as_echo "no" >&6; }
4725 fi
4726
4727
4728 test -n "$ac_ct_DUMPBIN" && break
4729 done
4730
4731 if test "x$ac_ct_DUMPBIN" = x; then
4732 DUMPBIN=":"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735 yes:)
4736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4739 esac
4740 DUMPBIN=$ac_ct_DUMPBIN
4741 fi
4742 fi
4743
4744
4745 if test "$DUMPBIN" != ":"; then
4746 NM="$DUMPBIN"
4747 fi
4748 fi
4749 test -z "$NM" && NM=nm
4750
4751
4752
4753
4754
4755
4756 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4757 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4758 if test "${lt_cv_nm_interface+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760 else
4761 lt_cv_nm_interface="BSD nm"
4762 echo "int some_variable = 0;" > conftest.$ac_ext
4763 (eval echo "\"\$as_me:4763: $ac_compile\"" >&5)
4764 (eval "$ac_compile" 2>conftest.err)
4765 cat conftest.err >&5
4766 (eval echo "\"\$as_me:4766: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4767 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4768 cat conftest.err >&5
4769 (eval echo "\"\$as_me:4769: output\"" >&5)
4770 cat conftest.out >&5
4771 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4772 lt_cv_nm_interface="MS dumpbin"
4773 fi
4774 rm -f conftest*
4775 fi
4776 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4777 $as_echo "$lt_cv_nm_interface" >&6; }
4778
4779 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4780 $as_echo_n "checking whether ln -s works... " >&6; }
4781 LN_S=$as_ln_s
4782 if test "$LN_S" = "ln -s"; then
4783 { $as_echo "$as_me:$LINENO: result: yes" >&5
4784 $as_echo "yes" >&6; }
4785 else
4786 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4787 $as_echo "no, using $LN_S" >&6; }
4788 fi
4789
4790 # find the maximum length of command line arguments
4791 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4792 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4793 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4794 $as_echo_n "(cached) " >&6
4795 else
4796 i=0
4797 teststring="ABCD"
4798
4799 case $build_os in
4800 msdosdjgpp*)
4801 # On DJGPP, this test can blow up pretty badly due to problems in libc
4802 # (any single argument exceeding 2000 bytes causes a buffer overrun
4803 # during glob expansion). Even if it were fixed, the result of this
4804 # check would be larger than it should be.
4805 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4806 ;;
4807
4808 gnu*)
4809 # Under GNU Hurd, this test is not required because there is
4810 # no limit to the length of command line arguments.
4811 # Libtool will interpret -1 as no limit whatsoever
4812 lt_cv_sys_max_cmd_len=-1;
4813 ;;
4814
4815 cygwin* | mingw* | cegcc*)
4816 # On Win9x/ME, this test blows up -- it succeeds, but takes
4817 # about 5 minutes as the teststring grows exponentially.
4818 # Worse, since 9x/ME are not pre-emptively multitasking,
4819 # you end up with a "frozen" computer, even though with patience
4820 # the test eventually succeeds (with a max line length of 256k).
4821 # Instead, let's just punt: use the minimum linelength reported by
4822 # all of the supported platforms: 8192 (on NT/2K/XP).
4823 lt_cv_sys_max_cmd_len=8192;
4824 ;;
4825
4826 amigaos*)
4827 # On AmigaOS with pdksh, this test takes hours, literally.
4828 # So we just punt and use a minimum line length of 8192.
4829 lt_cv_sys_max_cmd_len=8192;
4830 ;;
4831
4832 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4833 # This has been around since 386BSD, at least. Likely further.
4834 if test -x /sbin/sysctl; then
4835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4836 elif test -x /usr/sbin/sysctl; then
4837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4838 else
4839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4840 fi
4841 # And add a safety zone
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4844 ;;
4845
4846 interix*)
4847 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4848 lt_cv_sys_max_cmd_len=196608
4849 ;;
4850
4851 osf*)
4852 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4853 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4854 # nice to cause kernel panics so lets avoid the loop below.
4855 # First set a reasonable default.
4856 lt_cv_sys_max_cmd_len=16384
4857 #
4858 if test -x /sbin/sysconfig; then
4859 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4860 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4861 esac
4862 fi
4863 ;;
4864 sco3.2v5*)
4865 lt_cv_sys_max_cmd_len=102400
4866 ;;
4867 sysv5* | sco5v6* | sysv4.2uw2*)
4868 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4869 if test -n "$kargmax"; then
4870 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4871 else
4872 lt_cv_sys_max_cmd_len=32768
4873 fi
4874 ;;
4875 *)
4876 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4877 if test -n "$lt_cv_sys_max_cmd_len"; then
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880 else
4881 # Make teststring a little bigger before we do anything with it.
4882 # a 1K string should be a reasonable start.
4883 for i in 1 2 3 4 5 6 7 8 ; do
4884 teststring=$teststring$teststring
4885 done
4886 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4887 # If test is not a shell built-in, we'll probably end up computing a
4888 # maximum length that is only half of the actual maximum length, but
4889 # we can't tell.
4890 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4891 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4892 test $i != 17 # 1/2 MB should be enough
4893 do
4894 i=`expr $i + 1`
4895 teststring=$teststring$teststring
4896 done
4897 # Only check the string length outside the loop.
4898 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4899 teststring=
4900 # Add a significant safety factor because C++ compilers can tack on
4901 # massive amounts of additional arguments before passing them to the
4902 # linker. It appears as though 1/2 is a usable value.
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4904 fi
4905 ;;
4906 esac
4907
4908 fi
4909
4910 if test -n $lt_cv_sys_max_cmd_len ; then
4911 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4912 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4913 else
4914 { $as_echo "$as_me:$LINENO: result: none" >&5
4915 $as_echo "none" >&6; }
4916 fi
4917 max_cmd_len=$lt_cv_sys_max_cmd_len
4918
4919
4920
4921
4922
4923
4924 : ${CP="cp -f"}
4925 : ${MV="mv -f"}
4926 : ${RM="rm -f"}
4927
4928 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4929 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4930 # Try some XSI features
4931 xsi_shell=no
4932 ( _lt_dummy="a/b/c"
4933 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4934 = c,a/b,, \
4935 && eval 'test $(( 1 + 1 )) -eq 2 \
4936 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4937 && xsi_shell=yes
4938 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4939 $as_echo "$xsi_shell" >&6; }
4940
4941
4942 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4943 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4944 lt_shell_append=no
4945 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946 >/dev/null 2>&1 \
4947 && lt_shell_append=yes
4948 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4949 $as_echo "$lt_shell_append" >&6; }
4950
4951
4952 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953 lt_unset=unset
4954 else
4955 lt_unset=false
4956 fi
4957
4958
4959
4960
4961
4962 # test EBCDIC or ASCII
4963 case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966 lt_SP2NL='tr \040 \012'
4967 lt_NL2SP='tr \015\012 \040\040'
4968 ;;
4969 *) # EBCDIC based system
4970 lt_SP2NL='tr \100 \n'
4971 lt_NL2SP='tr \r\n \100\100'
4972 ;;
4973 esac
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4984 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4985 if test "${lt_cv_ld_reload_flag+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 lt_cv_ld_reload_flag='-r'
4989 fi
4990 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4991 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4992 reload_flag=$lt_cv_ld_reload_flag
4993 case $reload_flag in
4994 "" | " "*) ;;
4995 *) reload_flag=" $reload_flag" ;;
4996 esac
4997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998 case $host_os in
4999 darwin*)
5000 if test "$GCC" = yes; then
5001 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5002 else
5003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5004 fi
5005 ;;
5006 esac
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5018 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$OBJDUMP"; then
5025 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038 done
5039 done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 OBJDUMP=$ac_cv_prog_OBJDUMP
5045 if test -n "$OBJDUMP"; then
5046 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5047 $as_echo "$OBJDUMP" >&6; }
5048 else
5049 { $as_echo "$as_me:$LINENO: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054 fi
5055 if test -z "$ac_cv_prog_OBJDUMP"; then
5056 ac_ct_OBJDUMP=$OBJDUMP
5057 # Extract the first word of "objdump", so it can be a program name with args.
5058 set dummy objdump; ac_word=$2
5059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_OBJDUMP"; then
5065 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5085 if test -n "$ac_ct_OBJDUMP"; then
5086 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5087 $as_echo "$ac_ct_OBJDUMP" >&6; }
5088 else
5089 { $as_echo "$as_me:$LINENO: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093 if test "x$ac_ct_OBJDUMP" = x; then
5094 OBJDUMP="false"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5101 esac
5102 OBJDUMP=$ac_ct_OBJDUMP
5103 fi
5104 else
5105 OBJDUMP="$ac_cv_prog_OBJDUMP"
5106 fi
5107
5108 test -z "$OBJDUMP" && OBJDUMP=objdump
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5119 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5120 if test "${lt_cv_deplibs_check_method+set}" = set; then
5121 $as_echo_n "(cached) " >&6
5122 else
5123 lt_cv_file_magic_cmd='$MAGIC_CMD'
5124 lt_cv_file_magic_test_file=
5125 lt_cv_deplibs_check_method='unknown'
5126 # Need to set the preceding variable on all platforms that support
5127 # interlibrary dependencies.
5128 # 'none' -- dependencies not supported.
5129 # `unknown' -- same as none, but documents that we really don't know.
5130 # 'pass_all' -- all dependencies passed with no checks.
5131 # 'test_compile' -- check by making test program.
5132 # 'file_magic [[regex]]' -- check by looking for files in library path
5133 # which responds to the $file_magic_cmd with a given extended regex.
5134 # If you have `file' or equivalent on your system and you're not sure
5135 # whether `pass_all' will *always* work, you probably want this one.
5136
5137 case $host_os in
5138 aix[4-9]*)
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
5141
5142 beos*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146 bsdi[45]*)
5147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5148 lt_cv_file_magic_cmd='/usr/bin/file -L'
5149 lt_cv_file_magic_test_file=/shlib/libc.so
5150 ;;
5151
5152 cygwin*)
5153 # func_win32_libid is a shell function defined in ltmain.sh
5154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155 lt_cv_file_magic_cmd='func_win32_libid'
5156 ;;
5157
5158 mingw* | pw32*)
5159 # Base MSYS/MinGW do not provide the 'file' command needed by
5160 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5161 # unless we find 'file', for example because we are cross-compiling.
5162 if ( file / ) >/dev/null 2>&1; then
5163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5164 lt_cv_file_magic_cmd='func_win32_libid'
5165 else
5166 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5167 lt_cv_file_magic_cmd='$OBJDUMP -f'
5168 fi
5169 ;;
5170
5171 cegcc)
5172 # use the weaker test based on 'objdump'. See mingw*.
5173 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5174 lt_cv_file_magic_cmd='$OBJDUMP -f'
5175 ;;
5176
5177 darwin* | rhapsody*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 freebsd* | dragonfly*)
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 case $host_cpu in
5184 i*86 )
5185 # Not sure whether the presence of OpenBSD here was a mistake.
5186 # Let's accept both of them until this is cleared up.
5187 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5188 lt_cv_file_magic_cmd=/usr/bin/file
5189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5190 ;;
5191 esac
5192 else
5193 lt_cv_deplibs_check_method=pass_all
5194 fi
5195 ;;
5196
5197 gnu*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
5200
5201 hpux10.20* | hpux11*)
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 case $host_cpu in
5204 ia64*)
5205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5206 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5207 ;;
5208 hppa*64*)
5209 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]'
5210 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5211 ;;
5212 *)
5213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5214 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5215 ;;
5216 esac
5217 ;;
5218
5219 interix[3-9]*)
5220 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5222 ;;
5223
5224 irix5* | irix6* | nonstopux*)
5225 case $LD in
5226 *-32|*"-32 ") libmagic=32-bit;;
5227 *-n32|*"-n32 ") libmagic=N32;;
5228 *-64|*"-64 ") libmagic=64-bit;;
5229 *) libmagic=never-match;;
5230 esac
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
5233
5234 # This must be Linux ELF.
5235 linux* | k*bsd*-gnu)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239 netbsd*)
5240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5242 else
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5244 fi
5245 ;;
5246
5247 newos6*)
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5251 ;;
5252
5253 *nto* | *qnx*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 openbsd*)
5258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5260 else
5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5262 fi
5263 ;;
5264
5265 osf3* | osf4* | osf5*)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
5268
5269 rdos*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
5272
5273 solaris*)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276
5277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
5280
5281 sysv4 | sysv4.3*)
5282 case $host_vendor in
5283 motorola)
5284 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]'
5285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5286 ;;
5287 ncr)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290 sequent)
5291 lt_cv_file_magic_cmd='/bin/file'
5292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5293 ;;
5294 sni)
5295 lt_cv_file_magic_cmd='/bin/file'
5296 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5297 lt_cv_file_magic_test_file=/lib/libc.so
5298 ;;
5299 siemens)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 pc)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305 esac
5306 ;;
5307
5308 tpf*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
5311 esac
5312
5313 fi
5314 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5315 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5316 file_magic_cmd=$lt_cv_file_magic_cmd
5317 deplibs_check_method=$lt_cv_deplibs_check_method
5318 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}ar; ac_word=$2
5334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_AR+set}" = set; then
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$AR"; then
5340 ac_cv_prog_AR="$AR" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_AR="${ac_tool_prefix}ar"
5350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 AR=$ac_cv_prog_AR
5360 if test -n "$AR"; then
5361 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5362 $as_echo "$AR" >&6; }
5363 else
5364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369 fi
5370 if test -z "$ac_cv_prog_AR"; then
5371 ac_ct_AR=$AR
5372 # Extract the first word of "ar", so it can be a program name with args.
5373 set dummy ar; ac_word=$2
5374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$ac_ct_AR"; then
5380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_prog_ac_ct_AR="ar"
5390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5392 fi
5393 done
5394 done
5395 IFS=$as_save_IFS
5396
5397 fi
5398 fi
5399 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5400 if test -n "$ac_ct_AR"; then
5401 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5402 $as_echo "$ac_ct_AR" >&6; }
5403 else
5404 { $as_echo "$as_me:$LINENO: result: no" >&5
5405 $as_echo "no" >&6; }
5406 fi
5407
5408 if test "x$ac_ct_AR" = x; then
5409 AR="false"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417 AR=$ac_ct_AR
5418 fi
5419 else
5420 AR="$ac_cv_prog_AR"
5421 fi
5422
5423 test -z "$AR" && AR=ar
5424 test -z "$AR_FLAGS" && AR_FLAGS=cru
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5438 set dummy ${ac_tool_prefix}strip; ac_word=$2
5439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if test "${ac_cv_prog_STRIP+set}" = set; then
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$STRIP"; then
5445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458 done
5459 done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 STRIP=$ac_cv_prog_STRIP
5465 if test -n "$STRIP"; then
5466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5467 $as_echo "$STRIP" >&6; }
5468 else
5469 { $as_echo "$as_me:$LINENO: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474 fi
5475 if test -z "$ac_cv_prog_STRIP"; then
5476 ac_ct_STRIP=$STRIP
5477 # Extract the first word of "strip", so it can be a program name with args.
5478 set dummy strip; ac_word=$2
5479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$ac_ct_STRIP"; then
5485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_STRIP="strip"
5495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498 done
5499 done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5505 if test -n "$ac_ct_STRIP"; then
5506 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5507 $as_echo "$ac_ct_STRIP" >&6; }
5508 else
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513 if test "x$ac_ct_STRIP" = x; then
5514 STRIP=":"
5515 else
5516 case $cross_compiling:$ac_tool_warned in
5517 yes:)
5518 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520 ac_tool_warned=yes ;;
5521 esac
5522 STRIP=$ac_ct_STRIP
5523 fi
5524 else
5525 STRIP="$ac_cv_prog_STRIP"
5526 fi
5527
5528 test -z "$STRIP" && STRIP=:
5529
5530
5531
5532
5533
5534
5535 if test -n "$ac_tool_prefix"; then
5536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if test "${ac_cv_prog_RANLIB+set}" = set; then
5541 $as_echo_n "(cached) " >&6
5542 else
5543 if test -n "$RANLIB"; then
5544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5545 else
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557 done
5558 done
5559 IFS=$as_save_IFS
5560
5561 fi
5562 fi
5563 RANLIB=$ac_cv_prog_RANLIB
5564 if test -n "$RANLIB"; then
5565 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5566 $as_echo "$RANLIB" >&6; }
5567 else
5568 { $as_echo "$as_me:$LINENO: result: no" >&5
5569 $as_echo "no" >&6; }
5570 fi
5571
5572
5573 fi
5574 if test -z "$ac_cv_prog_RANLIB"; then
5575 ac_ct_RANLIB=$RANLIB
5576 # Extract the first word of "ranlib", so it can be a program name with args.
5577 set dummy ranlib; ac_word=$2
5578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5581 $as_echo_n "(cached) " >&6
5582 else
5583 if test -n "$ac_ct_RANLIB"; then
5584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_prog_ac_ct_RANLIB="ranlib"
5594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5604 if test -n "$ac_ct_RANLIB"; then
5605 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5606 $as_echo "$ac_ct_RANLIB" >&6; }
5607 else
5608 { $as_echo "$as_me:$LINENO: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612 if test "x$ac_ct_RANLIB" = x; then
5613 RANLIB=":"
5614 else
5615 case $cross_compiling:$ac_tool_warned in
5616 yes:)
5617 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 RANLIB=$ac_ct_RANLIB
5622 fi
5623 else
5624 RANLIB="$ac_cv_prog_RANLIB"
5625 fi
5626
5627 test -z "$RANLIB" && RANLIB=:
5628
5629
5630
5631
5632
5633
5634 # Determine commands to create old-style static archives.
5635 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5636 old_postinstall_cmds='chmod 644 $oldlib'
5637 old_postuninstall_cmds=
5638
5639 if test -n "$RANLIB"; then
5640 case $host_os in
5641 openbsd*)
5642 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5643 ;;
5644 *)
5645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5646 ;;
5647 esac
5648 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5649 fi
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 # If no C compiler was specified, use CC.
5685 LTCC=${LTCC-"$CC"}
5686
5687 # If no C compiler flags were specified, use CFLAGS.
5688 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5689
5690 # Allow CC to be a program name with arguments.
5691 compiler=$CC
5692
5693
5694 # Check for command to grab the raw symbol name followed by C symbol from nm.
5695 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5696 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5697 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699 else
5700
5701 # These are sane defaults that work on at least a few old systems.
5702 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5703
5704 # Character class describing NM global symbol codes.
5705 symcode='[BCDEGRST]'
5706
5707 # Regexp to match symbols that can be accessed directly from C.
5708 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5709
5710 # Define system-specific variables.
5711 case $host_os in
5712 aix*)
5713 symcode='[BCDT]'
5714 ;;
5715 cygwin* | mingw* | pw32* | cegcc*)
5716 symcode='[ABCDGISTW]'
5717 ;;
5718 hpux*)
5719 if test "$host_cpu" = ia64; then
5720 symcode='[ABCDEGRST]'
5721 fi
5722 ;;
5723 irix* | nonstopux*)
5724 symcode='[BCDEGRST]'
5725 ;;
5726 osf*)
5727 symcode='[BCDEGQRST]'
5728 ;;
5729 solaris*)
5730 symcode='[BDRT]'
5731 ;;
5732 sco3.2v5*)
5733 symcode='[DT]'
5734 ;;
5735 sysv4.2uw2*)
5736 symcode='[DT]'
5737 ;;
5738 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5739 symcode='[ABDT]'
5740 ;;
5741 sysv4)
5742 symcode='[DFNSTU]'
5743 ;;
5744 esac
5745
5746 # If we're using GNU nm, then use its standard symbol codes.
5747 case `$NM -V 2>&1` in
5748 *GNU* | *'with BFD'*)
5749 symcode='[ABCDGIRSTW]' ;;
5750 esac
5751
5752 # Transform an extracted symbol line into a proper C declaration.
5753 # Some systems (esp. on ia64) link data and code symbols differently,
5754 # so use this general approach.
5755 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5756
5757 # Transform an extracted symbol line into symbol name and symbol address
5758 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5759 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'"
5760
5761 # Handle CRLF in mingw tool chain
5762 opt_cr=
5763 case $build_os in
5764 mingw*)
5765 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5766 ;;
5767 esac
5768
5769 # Try without a prefix underscore, then with it.
5770 for ac_symprfx in "" "_"; do
5771
5772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5773 symxfrm="\\1 $ac_symprfx\\2 \\2"
5774
5775 # Write the raw and C identifiers.
5776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5777 # Fake it for dumpbin and say T for any non-static function
5778 # and D for any global variable.
5779 # Also find C++ and __fastcall symbols from MSVC++,
5780 # which start with @ or ?.
5781 lt_cv_sys_global_symbol_pipe="$AWK '"\
5782 " {last_section=section; section=\$ 3};"\
5783 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5784 " \$ 0!~/External *\|/{next};"\
5785 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5786 " {if(hide[section]) next};"\
5787 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5788 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5789 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5790 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5791 " ' prfx=^$ac_symprfx"
5792 else
5793 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5794 fi
5795
5796 # Check to see that the pipe works correctly.
5797 pipe_works=no
5798
5799 rm -f conftest*
5800 cat > conftest.$ac_ext <<_LT_EOF
5801 #ifdef __cplusplus
5802 extern "C" {
5803 #endif
5804 char nm_test_var;
5805 void nm_test_func(void);
5806 void nm_test_func(void){}
5807 #ifdef __cplusplus
5808 }
5809 #endif
5810 int main(){nm_test_var='a';nm_test_func();return(0);}
5811 _LT_EOF
5812
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>&5
5815 ac_status=$?
5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; then
5818 # Now try to grab the symbols.
5819 nlist=conftest.nm
5820 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5821 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5822 ac_status=$?
5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); } && test -s "$nlist"; then
5825 # Try sorting and uniquifying the output.
5826 if sort "$nlist" | uniq > "$nlist"T; then
5827 mv -f "$nlist"T "$nlist"
5828 else
5829 rm -f "$nlist"T
5830 fi
5831
5832 # Make sure that we snagged all the symbols we need.
5833 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5834 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5835 cat <<_LT_EOF > conftest.$ac_ext
5836 #ifdef __cplusplus
5837 extern "C" {
5838 #endif
5839
5840 _LT_EOF
5841 # Now generate the symbol file.
5842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5843
5844 cat <<_LT_EOF >> conftest.$ac_ext
5845
5846 /* The mapping between symbol names and symbols. */
5847 const struct {
5848 const char *name;
5849 void *address;
5850 }
5851 lt__PROGRAM__LTX_preloaded_symbols[] =
5852 {
5853 { "@PROGRAM@", (void *) 0 },
5854 _LT_EOF
5855 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5856 cat <<\_LT_EOF >> conftest.$ac_ext
5857 {0, (void *) 0}
5858 };
5859
5860 /* This works around a problem in FreeBSD linker */
5861 #ifdef FREEBSD_WORKAROUND
5862 static const void *lt_preloaded_setup() {
5863 return lt__PROGRAM__LTX_preloaded_symbols;
5864 }
5865 #endif
5866
5867 #ifdef __cplusplus
5868 }
5869 #endif
5870 _LT_EOF
5871 # Now try linking the two files.
5872 mv conftest.$ac_objext conftstm.$ac_objext
5873 lt_save_LIBS="$LIBS"
5874 lt_save_CFLAGS="$CFLAGS"
5875 LIBS="conftstm.$ac_objext"
5876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5882 pipe_works=yes
5883 fi
5884 LIBS="$lt_save_LIBS"
5885 CFLAGS="$lt_save_CFLAGS"
5886 else
5887 echo "cannot find nm_test_func in $nlist" >&5
5888 fi
5889 else
5890 echo "cannot find nm_test_var in $nlist" >&5
5891 fi
5892 else
5893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5894 fi
5895 else
5896 echo "$progname: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 fi
5899 rm -rf conftest* conftst*
5900
5901 # Do not use the global_symbol_pipe unless it works.
5902 if test "$pipe_works" = yes; then
5903 break
5904 else
5905 lt_cv_sys_global_symbol_pipe=
5906 fi
5907 done
5908
5909 fi
5910
5911 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5912 lt_cv_sys_global_symbol_to_cdecl=
5913 fi
5914 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5915 { $as_echo "$as_me:$LINENO: result: failed" >&5
5916 $as_echo "failed" >&6; }
5917 else
5918 { $as_echo "$as_me:$LINENO: result: ok" >&5
5919 $as_echo "ok" >&6; }
5920 fi
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 # Check whether --enable-libtool-lock was given.
5945 if test "${enable_libtool_lock+set}" = set; then
5946 enableval=$enable_libtool_lock;
5947 fi
5948
5949 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5950
5951 # Some flags need to be propagated to the compiler or linker for good
5952 # libtool support.
5953 case $host in
5954 ia64-*-hpux*)
5955 # Find out which ABI we are using.
5956 echo 'int i;' > conftest.$ac_ext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; then
5962 case `/usr/bin/file conftest.$ac_objext` in
5963 *ELF-32*)
5964 HPUX_IA64_MODE="32"
5965 ;;
5966 *ELF-64*)
5967 HPUX_IA64_MODE="64"
5968 ;;
5969 esac
5970 fi
5971 rm -rf conftest*
5972 ;;
5973 *-*-irix6*)
5974 # Find out which ABI we are using.
5975 echo '#line 5975 "configure"' > conftest.$ac_ext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5978 ac_status=$?
5979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; then
5981 if test "$lt_cv_prog_gnu_ld" = yes; then
5982 case `/usr/bin/file conftest.$ac_objext` in
5983 *32-bit*)
5984 LD="${LD-ld} -melf32bsmip"
5985 ;;
5986 *N32*)
5987 LD="${LD-ld} -melf32bmipn32"
5988 ;;
5989 *64-bit*)
5990 LD="${LD-ld} -melf64bmip"
5991 ;;
5992 esac
5993 else
5994 case `/usr/bin/file conftest.$ac_objext` in
5995 *32-bit*)
5996 LD="${LD-ld} -32"
5997 ;;
5998 *N32*)
5999 LD="${LD-ld} -n32"
6000 ;;
6001 *64-bit*)
6002 LD="${LD-ld} -64"
6003 ;;
6004 esac
6005 fi
6006 fi
6007 rm -rf conftest*
6008 ;;
6009
6010 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6011 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6012 # Find out which ABI we are using.
6013 echo 'int i;' > conftest.$ac_ext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; then
6019 case `/usr/bin/file conftest.o` in
6020 *32-bit*)
6021 case $host in
6022 x86_64-*kfreebsd*-gnu)
6023 LD="${LD-ld} -m elf_i386_fbsd"
6024 ;;
6025 x86_64-*linux*)
6026 LD="${LD-ld} -m elf_i386"
6027 ;;
6028 ppc64-*linux*|powerpc64-*linux*)
6029 LD="${LD-ld} -m elf32ppclinux"
6030 ;;
6031 s390x-*linux*)
6032 LD="${LD-ld} -m elf_s390"
6033 ;;
6034 sparc64-*linux*)
6035 LD="${LD-ld} -m elf32_sparc"
6036 ;;
6037 esac
6038 ;;
6039 *64-bit*)
6040 case $host in
6041 x86_64-*kfreebsd*-gnu)
6042 LD="${LD-ld} -m elf_x86_64_fbsd"
6043 ;;
6044 x86_64-*linux*)
6045 LD="${LD-ld} -m elf_x86_64"
6046 ;;
6047 ppc*-*linux*|powerpc*-*linux*)
6048 LD="${LD-ld} -m elf64ppc"
6049 ;;
6050 s390*-*linux*|s390*-*tpf*)
6051 LD="${LD-ld} -m elf64_s390"
6052 ;;
6053 sparc*-*linux*)
6054 LD="${LD-ld} -m elf64_sparc"
6055 ;;
6056 esac
6057 ;;
6058 esac
6059 fi
6060 rm -rf conftest*
6061 ;;
6062
6063 *-*-sco3.2v5*)
6064 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6065 SAVE_CFLAGS="$CFLAGS"
6066 CFLAGS="$CFLAGS -belf"
6067 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6068 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6069 if test "${lt_cv_cc_needs_belf+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6071 else
6072 ac_ext=c
6073 ac_cpp='$CPP $CPPFLAGS'
6074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084
6085 int
6086 main ()
6087 {
6088
6089 ;
6090 return 0;
6091 }
6092 _ACEOF
6093 rm -f conftest.$ac_objext conftest$ac_exeext
6094 if { (ac_try="$ac_link"
6095 case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098 esac
6099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6100 $as_echo "$ac_try_echo") >&5
6101 (eval "$ac_link") 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest$ac_exeext && {
6111 test "$cross_compiling" = yes ||
6112 $as_test_x conftest$ac_exeext
6113 }; then
6114 lt_cv_cc_needs_belf=yes
6115 else
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 lt_cv_cc_needs_belf=no
6120 fi
6121
6122 rm -rf conftest.dSYM
6123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6124 conftest$ac_exeext conftest.$ac_ext
6125 ac_ext=c
6126 ac_cpp='$CPP $CPPFLAGS'
6127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6130
6131 fi
6132 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6133 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6136 CFLAGS="$SAVE_CFLAGS"
6137 fi
6138 ;;
6139 sparc*-*solaris*)
6140 # Find out which ABI we are using.
6141 echo 'int i;' > conftest.$ac_ext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; then
6147 case `/usr/bin/file conftest.o` in
6148 *64-bit*)
6149 case $lt_cv_prog_gnu_ld in
6150 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6151 *)
6152 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6153 LD="${LD-ld} -64"
6154 fi
6155 ;;
6156 esac
6157 ;;
6158 esac
6159 fi
6160 rm -rf conftest*
6161 ;;
6162 esac
6163
6164 need_locks="$enable_libtool_lock"
6165
6166
6167 case $host_os in
6168 rhapsody* | darwin*)
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6176 else
6177 if test -n "$DSYMUTIL"; then
6178 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191 done
6192 done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6198 if test -n "$DSYMUTIL"; then
6199 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6200 $as_echo "$DSYMUTIL" >&6; }
6201 else
6202 { $as_echo "$as_me:$LINENO: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206
6207 fi
6208 if test -z "$ac_cv_prog_DSYMUTIL"; then
6209 ac_ct_DSYMUTIL=$DSYMUTIL
6210 # Extract the first word of "dsymutil", so it can be a program name with args.
6211 set dummy dsymutil; ac_word=$2
6212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$ac_ct_DSYMUTIL"; then
6218 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6234
6235 fi
6236 fi
6237 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6238 if test -n "$ac_ct_DSYMUTIL"; then
6239 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6240 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6241 else
6242 { $as_echo "$as_me:$LINENO: result: no" >&5
6243 $as_echo "no" >&6; }
6244 fi
6245
6246 if test "x$ac_ct_DSYMUTIL" = x; then
6247 DSYMUTIL=":"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned=yes ;;
6254 esac
6255 DSYMUTIL=$ac_ct_DSYMUTIL
6256 fi
6257 else
6258 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6259 fi
6260
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$NMEDIT"; then
6270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 NMEDIT=$ac_cv_prog_NMEDIT
6290 if test -n "$NMEDIT"; then
6291 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6292 $as_echo "$NMEDIT" >&6; }
6293 else
6294 { $as_echo "$as_me:$LINENO: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298
6299 fi
6300 if test -z "$ac_cv_prog_NMEDIT"; then
6301 ac_ct_NMEDIT=$NMEDIT
6302 # Extract the first word of "nmedit", so it can be a program name with args.
6303 set dummy nmedit; ac_word=$2
6304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$ac_ct_NMEDIT"; then
6310 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6330 if test -n "$ac_ct_NMEDIT"; then
6331 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6332 $as_echo "$ac_ct_NMEDIT" >&6; }
6333 else
6334 { $as_echo "$as_me:$LINENO: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338 if test "x$ac_ct_NMEDIT" = x; then
6339 NMEDIT=":"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 NMEDIT=$ac_ct_NMEDIT
6348 fi
6349 else
6350 NMEDIT="$ac_cv_prog_NMEDIT"
6351 fi
6352
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6355 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6357 $as_echo_n "checking for $ac_word... " >&6; }
6358 if test "${ac_cv_prog_LIPO+set}" = set; then
6359 $as_echo_n "(cached) " >&6
6360 else
6361 if test -n "$LIPO"; then
6362 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6363 else
6364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 for as_dir in $PATH
6366 do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375 done
6376 done
6377 IFS=$as_save_IFS
6378
6379 fi
6380 fi
6381 LIPO=$ac_cv_prog_LIPO
6382 if test -n "$LIPO"; then
6383 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6384 $as_echo "$LIPO" >&6; }
6385 else
6386 { $as_echo "$as_me:$LINENO: result: no" >&5
6387 $as_echo "no" >&6; }
6388 fi
6389
6390
6391 fi
6392 if test -z "$ac_cv_prog_LIPO"; then
6393 ac_ct_LIPO=$LIPO
6394 # Extract the first word of "lipo", so it can be a program name with args.
6395 set dummy lipo; ac_word=$2
6396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 $as_echo_n "checking for $ac_word... " >&6; }
6398 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6400 else
6401 if test -n "$ac_ct_LIPO"; then
6402 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6403 else
6404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_LIPO="lipo"
6412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 break 2
6414 fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419 fi
6420 fi
6421 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6422 if test -n "$ac_ct_LIPO"; then
6423 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6424 $as_echo "$ac_ct_LIPO" >&6; }
6425 else
6426 { $as_echo "$as_me:$LINENO: result: no" >&5
6427 $as_echo "no" >&6; }
6428 fi
6429
6430 if test "x$ac_ct_LIPO" = x; then
6431 LIPO=":"
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434 yes:)
6435 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437 ac_tool_warned=yes ;;
6438 esac
6439 LIPO=$ac_ct_LIPO
6440 fi
6441 else
6442 LIPO="$ac_cv_prog_LIPO"
6443 fi
6444
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6447 set dummy ${ac_tool_prefix}otool; ac_word=$2
6448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if test "${ac_cv_prog_OTOOL+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$OTOOL"; then
6454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 OTOOL=$ac_cv_prog_OTOOL
6474 if test -n "$OTOOL"; then
6475 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6476 $as_echo "$OTOOL" >&6; }
6477 else
6478 { $as_echo "$as_me:$LINENO: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if test -z "$ac_cv_prog_OTOOL"; then
6485 ac_ct_OTOOL=$OTOOL
6486 # Extract the first word of "otool", so it can be a program name with args.
6487 set dummy otool; ac_word=$2
6488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_OTOOL"; then
6494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_OTOOL="otool"
6504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6514 if test -n "$ac_ct_OTOOL"; then
6515 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6516 $as_echo "$ac_ct_OTOOL" >&6; }
6517 else
6518 { $as_echo "$as_me:$LINENO: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522 if test "x$ac_ct_OTOOL" = x; then
6523 OTOOL=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 OTOOL=$ac_ct_OTOOL
6532 fi
6533 else
6534 OTOOL="$ac_cv_prog_OTOOL"
6535 fi
6536
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6539 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6543 $as_echo_n "(cached) " >&6
6544 else
6545 if test -n "$OTOOL64"; then
6546 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 OTOOL64=$ac_cv_prog_OTOOL64
6566 if test -n "$OTOOL64"; then
6567 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6568 $as_echo "$OTOOL64" >&6; }
6569 else
6570 { $as_echo "$as_me:$LINENO: result: no" >&5
6571 $as_echo "no" >&6; }
6572 fi
6573
6574
6575 fi
6576 if test -z "$ac_cv_prog_OTOOL64"; then
6577 ac_ct_OTOOL64=$OTOOL64
6578 # Extract the first word of "otool64", so it can be a program name with args.
6579 set dummy otool64; ac_word=$2
6580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6583 $as_echo_n "(cached) " >&6
6584 else
6585 if test -n "$ac_ct_OTOOL64"; then
6586 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_OTOOL64="otool64"
6596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599 done
6600 done
6601 IFS=$as_save_IFS
6602
6603 fi
6604 fi
6605 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6606 if test -n "$ac_ct_OTOOL64"; then
6607 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6608 $as_echo "$ac_ct_OTOOL64" >&6; }
6609 else
6610 { $as_echo "$as_me:$LINENO: result: no" >&5
6611 $as_echo "no" >&6; }
6612 fi
6613
6614 if test "x$ac_ct_OTOOL64" = x; then
6615 OTOOL64=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618 yes:)
6619 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623 OTOOL64=$ac_ct_OTOOL64
6624 fi
6625 else
6626 OTOOL64="$ac_cv_prog_OTOOL64"
6627 fi
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6656 $as_echo_n "checking for -single_module linker flag... " >&6; }
6657 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6659 else
6660 lt_cv_apple_cc_single_mod=no
6661 if test -z "${LT_MULTI_MODULE}"; then
6662 # By default we will add the -single_module flag. You can override
6663 # by either setting the environment variable LT_MULTI_MODULE
6664 # non-empty at configure time, or by adding -multi_module to the
6665 # link flags.
6666 rm -rf libconftest.dylib*
6667 echo "int foo(void){return 1;}" > conftest.c
6668 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6669 -dynamiclib -Wl,-single_module conftest.c" >&5
6670 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6671 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6672 _lt_result=$?
6673 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6674 lt_cv_apple_cc_single_mod=yes
6675 else
6676 cat conftest.err >&5
6677 fi
6678 rm -rf libconftest.dylib*
6679 rm -f conftest.*
6680 fi
6681 fi
6682 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6683 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6684 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6685 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6686 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6687 $as_echo_n "(cached) " >&6
6688 else
6689 lt_cv_ld_exported_symbols_list=no
6690 save_LDFLAGS=$LDFLAGS
6691 echo "_main" > conftest.sym
6692 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 rm -f conftest.$ac_objext conftest$ac_exeext
6709 if { (ac_try="$ac_link"
6710 case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6715 $as_echo "$ac_try_echo") >&5
6716 (eval "$ac_link") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest$ac_exeext && {
6726 test "$cross_compiling" = yes ||
6727 $as_test_x conftest$ac_exeext
6728 }; then
6729 lt_cv_ld_exported_symbols_list=yes
6730 else
6731 $as_echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 lt_cv_ld_exported_symbols_list=no
6735 fi
6736
6737 rm -rf conftest.dSYM
6738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739 conftest$ac_exeext conftest.$ac_ext
6740 LDFLAGS="$save_LDFLAGS"
6741
6742 fi
6743 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6744 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6745 case $host_os in
6746 rhapsody* | darwin1.[012])
6747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748 darwin1.*)
6749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6750 darwin*) # darwin 5.x on
6751 # if running on 10.5 or later, the deployment target defaults
6752 # to the OS version, if on x86, and 10.4, the deployment
6753 # target defaults to 10.4. Don't you love it?
6754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757 10.[012]*)
6758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759 10.*)
6760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761 esac
6762 ;;
6763 esac
6764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765 _lt_dar_single_mod='$single_module'
6766 fi
6767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6769 else
6770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771 fi
6772 if test "$DSYMUTIL" != ":"; then
6773 _lt_dsymutil='~$DSYMUTIL $lib || :'
6774 else
6775 _lt_dsymutil=
6776 fi
6777 ;;
6778 esac
6779
6780 ac_ext=c
6781 ac_cpp='$CPP $CPPFLAGS'
6782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6786 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6787 # On Suns, sometimes $CPP names a directory.
6788 if test -n "$CPP" && test -d "$CPP"; then
6789 CPP=
6790 fi
6791 if test -z "$CPP"; then
6792 if test "${ac_cv_prog_CPP+set}" = set; then
6793 $as_echo_n "(cached) " >&6
6794 else
6795 # Double quotes because CPP needs to be expanded
6796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6797 do
6798 ac_preproc_ok=false
6799 for ac_c_preproc_warn_flag in '' yes
6800 do
6801 # Use a header file that comes with gcc, so configuring glibc
6802 # with a fresh cross-compiler works.
6803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804 # <limits.h> exists even on freestanding compilers.
6805 # On the NeXT, cc -E runs the code through the compiler's parser,
6806 # not just through cpp. "Syntax error" is here to catch this case.
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 #ifdef __STDC__
6814 # include <limits.h>
6815 #else
6816 # include <assert.h>
6817 #endif
6818 Syntax error
6819 _ACEOF
6820 if { (ac_try="$ac_cpp conftest.$ac_ext"
6821 case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824 esac
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6828 ac_status=$?
6829 grep -v '^ *+' conftest.er1 >conftest.err
6830 rm -f conftest.er1
6831 cat conftest.err >&5
6832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } >/dev/null && {
6834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 }; then
6837 :
6838 else
6839 $as_echo "$as_me: failed program was:" >&5
6840 sed 's/^/| /' conftest.$ac_ext >&5
6841
6842 # Broken: fails on valid input.
6843 continue
6844 fi
6845
6846 rm -f conftest.err conftest.$ac_ext
6847
6848 # OK, works on sane cases. Now check whether nonexistent headers
6849 # can be detected and how.
6850 cat >conftest.$ac_ext <<_ACEOF
6851 /* confdefs.h. */
6852 _ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6856 #include <ac_nonexistent.h>
6857 _ACEOF
6858 if { (ac_try="$ac_cpp conftest.$ac_ext"
6859 case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862 esac
6863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864 $as_echo "$ac_try_echo") >&5
6865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } >/dev/null && {
6872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 }; then
6875 # Broken: success on invalid input.
6876 continue
6877 else
6878 $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 # Passes both tests.
6882 ac_preproc_ok=:
6883 break
6884 fi
6885
6886 rm -f conftest.err conftest.$ac_ext
6887
6888 done
6889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6890 rm -f conftest.err conftest.$ac_ext
6891 if $ac_preproc_ok; then
6892 break
6893 fi
6894
6895 done
6896 ac_cv_prog_CPP=$CPP
6897
6898 fi
6899 CPP=$ac_cv_prog_CPP
6900 else
6901 ac_cv_prog_CPP=$CPP
6902 fi
6903 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6904 $as_echo "$CPP" >&6; }
6905 ac_preproc_ok=false
6906 for ac_c_preproc_warn_flag in '' yes
6907 do
6908 # Use a header file that comes with gcc, so configuring glibc
6909 # with a fresh cross-compiler works.
6910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6911 # <limits.h> exists even on freestanding compilers.
6912 # On the NeXT, cc -E runs the code through the compiler's parser,
6913 # not just through cpp. "Syntax error" is here to catch this case.
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #ifdef __STDC__
6921 # include <limits.h>
6922 #else
6923 # include <assert.h>
6924 #endif
6925 Syntax error
6926 _ACEOF
6927 if { (ac_try="$ac_cpp conftest.$ac_ext"
6928 case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931 esac
6932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6933 $as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 }; then
6944 :
6945 else
6946 $as_echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949 # Broken: fails on valid input.
6950 continue
6951 fi
6952
6953 rm -f conftest.err conftest.$ac_ext
6954
6955 # OK, works on sane cases. Now check whether nonexistent headers
6956 # can be detected and how.
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <ac_nonexistent.h>
6964 _ACEOF
6965 if { (ac_try="$ac_cpp conftest.$ac_ext"
6966 case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969 esac
6970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6971 $as_echo "$ac_try_echo") >&5
6972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null && {
6979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6980 test ! -s conftest.err
6981 }; then
6982 # Broken: success on invalid input.
6983 continue
6984 else
6985 $as_echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6987
6988 # Passes both tests.
6989 ac_preproc_ok=:
6990 break
6991 fi
6992
6993 rm -f conftest.err conftest.$ac_ext
6994
6995 done
6996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6997 rm -f conftest.err conftest.$ac_ext
6998 if $ac_preproc_ok; then
6999 :
7000 else
7001 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7003 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7004 See \`config.log' for more details." >&5
7005 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7006 See \`config.log' for more details." >&2;}
7007 { (exit 1); exit 1; }; }; }
7008 fi
7009
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016
7017 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7018 $as_echo_n "checking for ANSI C header files... " >&6; }
7019 if test "${ac_cv_header_stdc+set}" = set; then
7020 $as_echo_n "(cached) " >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <stdlib.h>
7029 #include <stdarg.h>
7030 #include <string.h>
7031 #include <float.h>
7032
7033 int
7034 main ()
7035 {
7036
7037 ;
7038 return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046 esac
7047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048 $as_echo "$ac_try_echo") >&5
7049 (eval "$ac_compile") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest.$ac_objext; then
7059 ac_cv_header_stdc=yes
7060 else
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064 ac_cv_header_stdc=no
7065 fi
7066
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068
7069 if test $ac_cv_header_stdc = yes; then
7070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7071 cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 #include <string.h>
7078
7079 _ACEOF
7080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 $EGREP "memchr" >/dev/null 2>&1; then
7082 :
7083 else
7084 ac_cv_header_stdc=no
7085 fi
7086 rm -f conftest*
7087
7088 fi
7089
7090 if test $ac_cv_header_stdc = yes; then
7091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <stdlib.h>
7099
7100 _ACEOF
7101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 $EGREP "free" >/dev/null 2>&1; then
7103 :
7104 else
7105 ac_cv_header_stdc=no
7106 fi
7107 rm -f conftest*
7108
7109 fi
7110
7111 if test $ac_cv_header_stdc = yes; then
7112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7113 if test "$cross_compiling" = yes; then
7114 :
7115 else
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <ctype.h>
7123 #include <stdlib.h>
7124 #if ((' ' & 0x0FF) == 0x020)
7125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7127 #else
7128 # define ISLOWER(c) \
7129 (('a' <= (c) && (c) <= 'i') \
7130 || ('j' <= (c) && (c) <= 'r') \
7131 || ('s' <= (c) && (c) <= 'z'))
7132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7133 #endif
7134
7135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7136 int
7137 main ()
7138 {
7139 int i;
7140 for (i = 0; i < 256; i++)
7141 if (XOR (islower (i), ISLOWER (i))
7142 || toupper (i) != TOUPPER (i))
7143 return 2;
7144 return 0;
7145 }
7146 _ACEOF
7147 rm -f conftest$ac_exeext
7148 if { (ac_try="$ac_link"
7149 case "(($ac_try" in
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7152 esac
7153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7154 $as_echo "$ac_try_echo") >&5
7155 (eval "$ac_link") 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7159 { (case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162 esac
7163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7164 $as_echo "$ac_try_echo") >&5
7165 (eval "$ac_try") 2>&5
7166 ac_status=$?
7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 :
7170 else
7171 $as_echo "$as_me: program exited with status $ac_status" >&5
7172 $as_echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 ( exit $ac_status )
7176 ac_cv_header_stdc=no
7177 fi
7178 rm -rf conftest.dSYM
7179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7180 fi
7181
7182
7183 fi
7184 fi
7185 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7186 $as_echo "$ac_cv_header_stdc" >&6; }
7187 if test $ac_cv_header_stdc = yes; then
7188
7189 cat >>confdefs.h <<\_ACEOF
7190 #define STDC_HEADERS 1
7191 _ACEOF
7192
7193 fi
7194
7195 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7206 inttypes.h stdint.h unistd.h
7207 do
7208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7210 $as_echo_n "checking for $ac_header... " >&6; }
7211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212 $as_echo_n "(cached) " >&6
7213 else
7214 cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7221
7222 #include <$ac_header>
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229 esac
7230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7231 $as_echo "$ac_try_echo") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 eval "$as_ac_Header=yes"
7243 else
7244 $as_echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 eval "$as_ac_Header=no"
7248 fi
7249
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251 fi
7252 ac_res=`eval 'as_val=${'$as_ac_Header'}
7253 $as_echo "$as_val"'`
7254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7255 $as_echo "$ac_res" >&6; }
7256 as_val=`eval 'as_val=${'$as_ac_Header'}
7257 $as_echo "$as_val"'`
7258 if test "x$as_val" = x""yes; then
7259 cat >>confdefs.h <<_ACEOF
7260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7261 _ACEOF
7262
7263 fi
7264
7265 done
7266
7267
7268
7269 for ac_header in dlfcn.h
7270 do
7271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7273 $as_echo_n "checking for $ac_header... " >&6; }
7274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h. */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7284
7285 #include <$ac_header>
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294 $as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 eval "$as_ac_Header=yes"
7306 else
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 eval "$as_ac_Header=no"
7311 fi
7312
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 fi
7315 ac_res=`eval 'as_val=${'$as_ac_Header'}
7316 $as_echo "$as_val"'`
7317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7318 $as_echo "$ac_res" >&6; }
7319 as_val=`eval 'as_val=${'$as_ac_Header'}
7320 $as_echo "$as_val"'`
7321 if test "x$as_val" = x""yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327
7328 done
7329
7330
7331
7332 # Set options
7333
7334
7335
7336 enable_dlopen=no
7337
7338
7339 enable_win32_dll=no
7340
7341
7342 # Check whether --enable-shared was given.
7343 if test "${enable_shared+set}" = set; then
7344 enableval=$enable_shared; p=${PACKAGE-default}
7345 case $enableval in
7346 yes) enable_shared=yes ;;
7347 no) enable_shared=no ;;
7348 *)
7349 enable_shared=no
7350 # Look at the argument we got. We use all the common list separators.
7351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7352 for pkg in $enableval; do
7353 IFS="$lt_save_ifs"
7354 if test "X$pkg" = "X$p"; then
7355 enable_shared=yes
7356 fi
7357 done
7358 IFS="$lt_save_ifs"
7359 ;;
7360 esac
7361 else
7362 enable_shared=yes
7363 fi
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373 # Check whether --enable-static was given.
7374 if test "${enable_static+set}" = set; then
7375 enableval=$enable_static; p=${PACKAGE-default}
7376 case $enableval in
7377 yes) enable_static=yes ;;
7378 no) enable_static=no ;;
7379 *)
7380 enable_static=no
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7384 IFS="$lt_save_ifs"
7385 if test "X$pkg" = "X$p"; then
7386 enable_static=yes
7387 fi
7388 done
7389 IFS="$lt_save_ifs"
7390 ;;
7391 esac
7392 else
7393 enable_static=yes
7394 fi
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 # Check whether --with-pic was given.
7406 if test "${with_pic+set}" = set; then
7407 withval=$with_pic; pic_mode="$withval"
7408 else
7409 pic_mode=default
7410 fi
7411
7412
7413 test -z "$pic_mode" && pic_mode=default
7414
7415
7416
7417
7418
7419
7420
7421 # Check whether --enable-fast-install was given.
7422 if test "${enable_fast_install+set}" = set; then
7423 enableval=$enable_fast_install; p=${PACKAGE-default}
7424 case $enableval in
7425 yes) enable_fast_install=yes ;;
7426 no) enable_fast_install=no ;;
7427 *)
7428 enable_fast_install=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_fast_install=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440 else
7441 enable_fast_install=yes
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 # This can be used to rebuild libtool when needed
7455 LIBTOOL_DEPS="$ltmain"
7456
7457 # Always use our own libtool.
7458 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484 test -z "$LN_S" && LN_S="ln -s"
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 if test -n "${ZSH_VERSION+set}" ; then
7500 setopt NO_GLOB_SUBST
7501 fi
7502
7503 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7504 $as_echo_n "checking for objdir... " >&6; }
7505 if test "${lt_cv_objdir+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7507 else
7508 rm -f .libs 2>/dev/null
7509 mkdir .libs 2>/dev/null
7510 if test -d .libs; then
7511 lt_cv_objdir=.libs
7512 else
7513 # MS-DOS does not allow filenames that begin with a dot.
7514 lt_cv_objdir=_libs
7515 fi
7516 rmdir .libs 2>/dev/null
7517 fi
7518 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7519 $as_echo "$lt_cv_objdir" >&6; }
7520 objdir=$lt_cv_objdir
7521
7522
7523
7524
7525
7526 cat >>confdefs.h <<_ACEOF
7527 #define LT_OBJDIR "$lt_cv_objdir/"
7528 _ACEOF
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 case $host_os in
7547 aix3*)
7548 # AIX sometimes has problems with the GCC collect2 program. For some
7549 # reason, if we set the COLLECT_NAMES environment variable, the problems
7550 # vanish in a puff of smoke.
7551 if test "X${COLLECT_NAMES+set}" != Xset; then
7552 COLLECT_NAMES=
7553 export COLLECT_NAMES
7554 fi
7555 ;;
7556 esac
7557
7558 # Sed substitution that helps us do robust quoting. It backslashifies
7559 # metacharacters that are still active within double-quoted strings.
7560 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7561
7562 # Same as above, but do not quote variable references.
7563 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7564
7565 # Sed substitution to delay expansion of an escaped shell variable in a
7566 # double_quote_subst'ed string.
7567 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7568
7569 # Sed substitution to delay expansion of an escaped single quote.
7570 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7571
7572 # Sed substitution to avoid accidental globbing in evaled expressions
7573 no_glob_subst='s/\*/\\\*/g'
7574
7575 # Global variables:
7576 ofile=libtool
7577 can_build_shared=yes
7578
7579 # All known linkers require a `.a' archive for static linking (except MSVC,
7580 # which needs '.lib').
7581 libext=a
7582
7583 with_gnu_ld="$lt_cv_prog_gnu_ld"
7584
7585 old_CC="$CC"
7586 old_CFLAGS="$CFLAGS"
7587
7588 # Set sane defaults for various variables
7589 test -z "$CC" && CC=cc
7590 test -z "$LTCC" && LTCC=$CC
7591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7592 test -z "$LD" && LD=ld
7593 test -z "$ac_objext" && ac_objext=o
7594
7595 for cc_temp in $compiler""; do
7596 case $cc_temp in
7597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7599 \-*) ;;
7600 *) break;;
7601 esac
7602 done
7603 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7604
7605
7606 # Only perform the check for file, if the check method requires it
7607 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7608 case $deplibs_check_method in
7609 file_magic*)
7610 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7611 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7612 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7615 else
7616 case $MAGIC_CMD in
7617 [\\/*] | ?:[\\/]*)
7618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 lt_save_MAGIC_CMD="$MAGIC_CMD"
7622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7624 for ac_dir in $ac_dummy; do
7625 IFS="$lt_save_ifs"
7626 test -z "$ac_dir" && ac_dir=.
7627 if test -f $ac_dir/${ac_tool_prefix}file; then
7628 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7629 if test -n "$file_magic_test_file"; then
7630 case $deplibs_check_method in
7631 "file_magic "*)
7632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7635 $EGREP "$file_magic_regex" > /dev/null; then
7636 :
7637 else
7638 cat <<_LT_EOF 1>&2
7639
7640 *** Warning: the command libtool uses to detect shared libraries,
7641 *** $file_magic_cmd, produces output that libtool cannot recognize.
7642 *** The result is that libtool may fail to recognize shared libraries
7643 *** as such. This will affect the creation of libtool libraries that
7644 *** depend on shared libraries, but programs linked with such libtool
7645 *** libraries will work regardless of this problem. Nevertheless, you
7646 *** may want to report the problem to your system manager and/or to
7647 *** bug-libtool@gnu.org
7648
7649 _LT_EOF
7650 fi ;;
7651 esac
7652 fi
7653 break
7654 fi
7655 done
7656 IFS="$lt_save_ifs"
7657 MAGIC_CMD="$lt_save_MAGIC_CMD"
7658 ;;
7659 esac
7660 fi
7661
7662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663 if test -n "$MAGIC_CMD"; then
7664 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7665 $as_echo "$MAGIC_CMD" >&6; }
7666 else
7667 { $as_echo "$as_me:$LINENO: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672
7673
7674
7675 if test -z "$lt_cv_path_MAGIC_CMD"; then
7676 if test -n "$ac_tool_prefix"; then
7677 { $as_echo "$as_me:$LINENO: checking for file" >&5
7678 $as_echo_n "checking for file... " >&6; }
7679 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7680 $as_echo_n "(cached) " >&6
7681 else
7682 case $MAGIC_CMD in
7683 [\\/*] | ?:[\\/]*)
7684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685 ;;
7686 *)
7687 lt_save_MAGIC_CMD="$MAGIC_CMD"
7688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7690 for ac_dir in $ac_dummy; do
7691 IFS="$lt_save_ifs"
7692 test -z "$ac_dir" && ac_dir=.
7693 if test -f $ac_dir/file; then
7694 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7695 if test -n "$file_magic_test_file"; then
7696 case $deplibs_check_method in
7697 "file_magic "*)
7698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7701 $EGREP "$file_magic_regex" > /dev/null; then
7702 :
7703 else
7704 cat <<_LT_EOF 1>&2
7705
7706 *** Warning: the command libtool uses to detect shared libraries,
7707 *** $file_magic_cmd, produces output that libtool cannot recognize.
7708 *** The result is that libtool may fail to recognize shared libraries
7709 *** as such. This will affect the creation of libtool libraries that
7710 *** depend on shared libraries, but programs linked with such libtool
7711 *** libraries will work regardless of this problem. Nevertheless, you
7712 *** may want to report the problem to your system manager and/or to
7713 *** bug-libtool@gnu.org
7714
7715 _LT_EOF
7716 fi ;;
7717 esac
7718 fi
7719 break
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 MAGIC_CMD="$lt_save_MAGIC_CMD"
7724 ;;
7725 esac
7726 fi
7727
7728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729 if test -n "$MAGIC_CMD"; then
7730 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7731 $as_echo "$MAGIC_CMD" >&6; }
7732 else
7733 { $as_echo "$as_me:$LINENO: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738 else
7739 MAGIC_CMD=:
7740 fi
7741 fi
7742
7743 fi
7744 ;;
7745 esac
7746
7747 # Use C for the default configuration in the libtool script
7748
7749 lt_save_CC="$CC"
7750 ac_ext=c
7751 ac_cpp='$CPP $CPPFLAGS'
7752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
7756
7757 # Source file extension for C test sources.
7758 ac_ext=c
7759
7760 # Object file extension for compiled C test sources.
7761 objext=o
7762 objext=$objext
7763
7764 # Code to be used in simple compile tests
7765 lt_simple_compile_test_code="int some_variable = 0;"
7766
7767 # Code to be used in simple link tests
7768 lt_simple_link_test_code='int main(){return(0);}'
7769
7770
7771
7772
7773
7774
7775
7776 # If no C compiler was specified, use CC.
7777 LTCC=${LTCC-"$CC"}
7778
7779 # If no C compiler flags were specified, use CFLAGS.
7780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7781
7782 # Allow CC to be a program name with arguments.
7783 compiler=$CC
7784
7785 # Save the default compiler, since it gets overwritten when the other
7786 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7787 compiler_DEFAULT=$CC
7788
7789 # save warnings/boilerplate of simple test code
7790 ac_outfile=conftest.$ac_objext
7791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7793 _lt_compiler_boilerplate=`cat conftest.err`
7794 $RM conftest*
7795
7796 ac_outfile=conftest.$ac_objext
7797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7799 _lt_linker_boilerplate=`cat conftest.err`
7800 $RM -r conftest*
7801
7802
7803 if test -n "$compiler"; then
7804
7805 lt_prog_compiler_no_builtin_flag=
7806
7807 if test "$GCC" = yes; then
7808 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7809
7810 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7811 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7812 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7813 $as_echo_n "(cached) " >&6
7814 else
7815 lt_cv_prog_compiler_rtti_exceptions=no
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
7836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
7842 $RM conftest*
7843
7844 fi
7845 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7846 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7847
7848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7850 else
7851 :
7852 fi
7853
7854 fi
7855
7856
7857
7858
7859
7860
7861 lt_prog_compiler_wl=
7862 lt_prog_compiler_pic=
7863 lt_prog_compiler_static=
7864
7865 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7866 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7867
7868 if test "$GCC" = yes; then
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_static='-static'
7871
7872 case $host_os in
7873 aix*)
7874 # All AIX code is PIC.
7875 if test "$host_cpu" = ia64; then
7876 # AIX 5 now supports IA64 processor
7877 lt_prog_compiler_static='-Bstatic'
7878 fi
7879 ;;
7880
7881 amigaos*)
7882 case $host_cpu in
7883 powerpc)
7884 # see comment about AmigaOS4 .so support
7885 lt_prog_compiler_pic='-fPIC'
7886 ;;
7887 m68k)
7888 # FIXME: we need at least 68020 code to build shared libraries, but
7889 # adding the `-m68020' flag to GCC prevents building anything better,
7890 # like `-m68040'.
7891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7892 ;;
7893 esac
7894 ;;
7895
7896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7897 # PIC is the default for these OSes.
7898 ;;
7899
7900 mingw* | cygwin* | pw32* | os2* | cegcc*)
7901 # This hack is so that the source file can tell whether it is being
7902 # built for inclusion in a dll (and should export symbols for example).
7903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7904 # (--disable-auto-import) libraries
7905 lt_prog_compiler_pic='-DDLL_EXPORT'
7906 ;;
7907
7908 darwin* | rhapsody*)
7909 # PIC is the default on this platform
7910 # Common symbols not allowed in MH_DYLIB files
7911 lt_prog_compiler_pic='-fno-common'
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 ;;
7927
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
7938 ;;
7939
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956 else
7957 # PORTME Check for flag to pass linker flags through the system compiler.
7958 case $host_os in
7959 aix*)
7960 lt_prog_compiler_wl='-Wl,'
7961 if test "$host_cpu" = ia64; then
7962 # AIX 5 now supports IA64 processor
7963 lt_prog_compiler_static='-Bstatic'
7964 else
7965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7966 fi
7967 ;;
7968
7969 mingw* | cygwin* | pw32* | os2* | cegcc*)
7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
7972 lt_prog_compiler_pic='-DDLL_EXPORT'
7973 ;;
7974
7975 hpux9* | hpux10* | hpux11*)
7976 lt_prog_compiler_wl='-Wl,'
7977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7978 # not for PA HP-UX.
7979 case $host_cpu in
7980 hppa*64*|ia64*)
7981 # +Z the default
7982 ;;
7983 *)
7984 lt_prog_compiler_pic='+Z'
7985 ;;
7986 esac
7987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7988 lt_prog_compiler_static='${wl}-a ${wl}archive'
7989 ;;
7990
7991 irix5* | irix6* | nonstopux*)
7992 lt_prog_compiler_wl='-Wl,'
7993 # PIC (with -KPIC) is the default.
7994 lt_prog_compiler_static='-non_shared'
7995 ;;
7996
7997 linux* | k*bsd*-gnu)
7998 case $cc_basename in
7999 # old Intel for x86_64 which still supported -KPIC.
8000 ecc*)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-static'
8004 ;;
8005 # icc used to be incompatible with GCC.
8006 # ICC 10 doesn't accept -KPIC any more.
8007 icc* | ifort*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-fPIC'
8010 lt_prog_compiler_static='-static'
8011 ;;
8012 # Lahey Fortran 8.1.
8013 lf95*)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='--shared'
8016 lt_prog_compiler_static='--static'
8017 ;;
8018 pgcc* | pgf77* | pgf90* | pgf95*)
8019 # Portland Group compilers (*not* the Pentium gcc compiler,
8020 # which looks to be a dead project)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-fpic'
8023 lt_prog_compiler_static='-Bstatic'
8024 ;;
8025 ccc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 # All Alpha code is PIC.
8028 lt_prog_compiler_static='-non_shared'
8029 ;;
8030 xl*)
8031 # IBM XL C 8.0/Fortran 10.1 on PPC
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-qpic'
8034 lt_prog_compiler_static='-qstaticlink'
8035 ;;
8036 *)
8037 case `$CC -V 2>&1 | sed 5q` in
8038 *Sun\ C*)
8039 # Sun C 5.9
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 lt_prog_compiler_wl='-Wl,'
8043 ;;
8044 *Sun\ F*)
8045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl=''
8049 ;;
8050 esac
8051 ;;
8052 esac
8053 ;;
8054
8055 newsos6)
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 ;;
8059
8060 *nto* | *qnx*)
8061 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 # it will coredump.
8063 lt_prog_compiler_pic='-fPIC -shared'
8064 ;;
8065
8066 osf3* | osf4* | osf5*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # All OSF/1 code is PIC.
8069 lt_prog_compiler_static='-non_shared'
8070 ;;
8071
8072 rdos*)
8073 lt_prog_compiler_static='-non_shared'
8074 ;;
8075
8076 solaris*)
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8079 case $cc_basename in
8080 f77* | f90* | f95*)
8081 lt_prog_compiler_wl='-Qoption ld ';;
8082 *)
8083 lt_prog_compiler_wl='-Wl,';;
8084 esac
8085 ;;
8086
8087 sunos4*)
8088 lt_prog_compiler_wl='-Qoption ld '
8089 lt_prog_compiler_pic='-PIC'
8090 lt_prog_compiler_static='-Bstatic'
8091 ;;
8092
8093 sysv4 | sysv4.2uw2* | sysv4.3*)
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
8097 ;;
8098
8099 sysv4*MP*)
8100 if test -d /usr/nec ;then
8101 lt_prog_compiler_pic='-Kconform_pic'
8102 lt_prog_compiler_static='-Bstatic'
8103 fi
8104 ;;
8105
8106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 ;;
8111
8112 unicos*)
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_can_build_shared=no
8115 ;;
8116
8117 uts4*)
8118 lt_prog_compiler_pic='-pic'
8119 lt_prog_compiler_static='-Bstatic'
8120 ;;
8121
8122 *)
8123 lt_prog_compiler_can_build_shared=no
8124 ;;
8125 esac
8126 fi
8127
8128 case $host_os in
8129 # For platforms which do not support PIC, -DPIC is meaningless:
8130 *djgpp*)
8131 lt_prog_compiler_pic=
8132 ;;
8133 *)
8134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8135 ;;
8136 esac
8137 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8138 $as_echo "$lt_prog_compiler_pic" >&6; }
8139
8140
8141
8142
8143
8144
8145 #
8146 # Check to make sure the PIC flag actually works.
8147 #
8148 if test -n "$lt_prog_compiler_pic"; then
8149 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8150 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8151 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8152 $as_echo_n "(cached) " >&6
8153 else
8154 lt_cv_prog_compiler_pic_works=no
8155 ac_outfile=conftest.$ac_objext
8156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8158 # Insert the option either (1) after the last *FLAGS variable, or
8159 # (2) before a word containing "conftest.", or (3) at the end.
8160 # Note that $ac_compile itself does not contain backslashes and begins
8161 # with a dollar sign (not a hyphen), so the echo should work correctly.
8162 # The option is referenced via a variable to avoid confusing sed.
8163 lt_compile=`echo "$ac_compile" | $SED \
8164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8166 -e 's:$: $lt_compiler_flag:'`
8167 (eval echo "\"\$as_me:8167: $lt_compile\"" >&5)
8168 (eval "$lt_compile" 2>conftest.err)
8169 ac_status=$?
8170 cat conftest.err >&5
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 if (exit $ac_status) && test -s "$ac_outfile"; then
8173 # The compiler can only warn and ignore the option if not recognized
8174 # So say no if there are warnings other than the usual output.
8175 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8178 lt_cv_prog_compiler_pic_works=yes
8179 fi
8180 fi
8181 $RM conftest*
8182
8183 fi
8184 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8185 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8186
8187 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8188 case $lt_prog_compiler_pic in
8189 "" | " "*) ;;
8190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8191 esac
8192 else
8193 lt_prog_compiler_pic=
8194 lt_prog_compiler_can_build_shared=no
8195 fi
8196
8197 fi
8198
8199
8200
8201
8202
8203
8204 #
8205 # Check to make sure the static flag actually works.
8206 #
8207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8208 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8209 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8210 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8211 $as_echo_n "(cached) " >&6
8212 else
8213 lt_cv_prog_compiler_static_works=no
8214 save_LDFLAGS="$LDFLAGS"
8215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8218 # The linker can only warn and ignore the option if not recognized
8219 # So say no if there are warnings
8220 if test -s conftest.err; then
8221 # Append any errors to the config.log.
8222 cat conftest.err 1>&5
8223 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8225 if diff conftest.exp conftest.er2 >/dev/null; then
8226 lt_cv_prog_compiler_static_works=yes
8227 fi
8228 else
8229 lt_cv_prog_compiler_static_works=yes
8230 fi
8231 fi
8232 $RM -r conftest*
8233 LDFLAGS="$save_LDFLAGS"
8234
8235 fi
8236 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8237 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8238
8239 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8240 :
8241 else
8242 lt_prog_compiler_static=
8243 fi
8244
8245
8246
8247
8248
8249
8250
8251 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8253 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8254 $as_echo_n "(cached) " >&6
8255 else
8256 lt_cv_prog_compiler_c_o=no
8257 $RM -r conftest 2>/dev/null
8258 mkdir conftest
8259 cd conftest
8260 mkdir out
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262
8263 lt_compiler_flag="-o out/conftest2.$ac_objext"
8264 # Insert the option either (1) after the last *FLAGS variable, or
8265 # (2) before a word containing "conftest.", or (3) at the end.
8266 # Note that $ac_compile itself does not contain backslashes and begins
8267 # with a dollar sign (not a hyphen), so the echo should work correctly.
8268 lt_compile=`echo "$ac_compile" | $SED \
8269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271 -e 's:$: $lt_compiler_flag:'`
8272 (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8273 (eval "$lt_compile" 2>out/conftest.err)
8274 ac_status=$?
8275 cat out/conftest.err >&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278 then
8279 # The compiler can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8284 lt_cv_prog_compiler_c_o=yes
8285 fi
8286 fi
8287 chmod u+w . 2>&5
8288 $RM conftest*
8289 # SGI C++ compiler will create directory out/ii_files/ for
8290 # template instantiation
8291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8292 $RM out/* && rmdir out
8293 cd ..
8294 $RM -r conftest
8295 $RM conftest*
8296
8297 fi
8298 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300
8301
8302
8303
8304
8305
8306 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8307 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8308 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8309 $as_echo_n "(cached) " >&6
8310 else
8311 lt_cv_prog_compiler_c_o=no
8312 $RM -r conftest 2>/dev/null
8313 mkdir conftest
8314 cd conftest
8315 mkdir out
8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317
8318 lt_compiler_flag="-o out/conftest2.$ac_objext"
8319 # Insert the option either (1) after the last *FLAGS variable, or
8320 # (2) before a word containing "conftest.", or (3) at the end.
8321 # Note that $ac_compile itself does not contain backslashes and begins
8322 # with a dollar sign (not a hyphen), so the echo should work correctly.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
8327 (eval echo "\"\$as_me:8327: $lt_compile\"" >&5)
8328 (eval "$lt_compile" 2>out/conftest.err)
8329 ac_status=$?
8330 cat out/conftest.err >&5
8331 echo "$as_me:8331: \$? = $ac_status" >&5
8332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333 then
8334 # The compiler can only warn and ignore the option if not recognized
8335 # So say no if there are warnings
8336 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8339 lt_cv_prog_compiler_c_o=yes
8340 fi
8341 fi
8342 chmod u+w . 2>&5
8343 $RM conftest*
8344 # SGI C++ compiler will create directory out/ii_files/ for
8345 # template instantiation
8346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8347 $RM out/* && rmdir out
8348 cd ..
8349 $RM -r conftest
8350 $RM conftest*
8351
8352 fi
8353 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8354 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8355
8356
8357
8358
8359 hard_links="nottested"
8360 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8361 # do not overwrite the value of need_locks provided by the user
8362 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8363 $as_echo_n "checking if we can lock with hard links... " >&6; }
8364 hard_links=yes
8365 $RM conftest*
8366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8367 touch conftest.a
8368 ln conftest.a conftest.b 2>&5 || hard_links=no
8369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8370 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8371 $as_echo "$hard_links" >&6; }
8372 if test "$hard_links" = no; then
8373 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8374 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8375 need_locks=warn
8376 fi
8377 else
8378 need_locks=no
8379 fi
8380
8381
8382
8383
8384
8385
8386 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8387 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8388
8389 runpath_var=
8390 allow_undefined_flag=
8391 always_export_symbols=no
8392 archive_cmds=
8393 archive_expsym_cmds=
8394 compiler_needs_object=no
8395 enable_shared_with_static_runtimes=no
8396 export_dynamic_flag_spec=
8397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8398 hardcode_automatic=no
8399 hardcode_direct=no
8400 hardcode_direct_absolute=no
8401 hardcode_libdir_flag_spec=
8402 hardcode_libdir_flag_spec_ld=
8403 hardcode_libdir_separator=
8404 hardcode_minus_L=no
8405 hardcode_shlibpath_var=unsupported
8406 inherit_rpath=no
8407 link_all_deplibs=unknown
8408 module_cmds=
8409 module_expsym_cmds=
8410 old_archive_from_new_cmds=
8411 old_archive_from_expsyms_cmds=
8412 thread_safe_flag_spec=
8413 whole_archive_flag_spec=
8414 # include_expsyms should be a list of space-separated symbols to be *always*
8415 # included in the symbol list
8416 include_expsyms=
8417 # exclude_expsyms can be an extended regexp of symbols to exclude
8418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8420 # as well as any symbol that contains `d'.
8421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8423 # platforms (ab)use it in PIC code, but their linkers get confused if
8424 # the symbol is explicitly referenced. Since portable code cannot
8425 # rely on this symbol name, it's probably fine to never include it in
8426 # preloaded symbol tables.
8427 # Exclude shared library initialization/finalization symbols.
8428 extract_expsyms_cmds=
8429
8430 case $host_os in
8431 cygwin* | mingw* | pw32* | cegcc*)
8432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8433 # When not using gcc, we currently assume that we are using
8434 # Microsoft Visual C++.
8435 if test "$GCC" != yes; then
8436 with_gnu_ld=no
8437 fi
8438 ;;
8439 interix*)
8440 # we just hope/assume this is gcc and not c89 (= MSVC++)
8441 with_gnu_ld=yes
8442 ;;
8443 openbsd*)
8444 with_gnu_ld=no
8445 ;;
8446 esac
8447
8448 ld_shlibs=yes
8449 if test "$with_gnu_ld" = yes; then
8450 # If archive_cmds runs LD, not CC, wlarc should be empty
8451 wlarc='${wl}'
8452
8453 # Set some defaults for GNU ld with shared library support. These
8454 # are reset later if shared libraries are not supported. Putting them
8455 # here allows them to be overridden if necessary.
8456 runpath_var=LD_RUN_PATH
8457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8458 export_dynamic_flag_spec='${wl}--export-dynamic'
8459 # ancient GNU ld didn't support --whole-archive et. al.
8460 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8461 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8462 else
8463 whole_archive_flag_spec=
8464 fi
8465 supports_anon_versioning=no
8466 case `$LD -v 2>&1` in
8467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8470 *\ 2.11.*) ;; # other 2.11 versions
8471 *) supports_anon_versioning=yes ;;
8472 esac
8473
8474 # See if GNU ld supports shared libraries.
8475 case $host_os in
8476 aix[3-9]*)
8477 # On AIX/PPC, the GNU linker is very broken
8478 if test "$host_cpu" != ia64; then
8479 ld_shlibs=no
8480 cat <<_LT_EOF 1>&2
8481
8482 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8483 *** to be unable to reliably create shared libraries on AIX.
8484 *** Therefore, libtool is disabling shared libraries support. If you
8485 *** really care for shared libraries, you may want to modify your PATH
8486 *** so that a non-GNU linker is found, and then restart.
8487
8488 _LT_EOF
8489 fi
8490 ;;
8491
8492 amigaos*)
8493 case $host_cpu in
8494 powerpc)
8495 # see comment about AmigaOS4 .so support
8496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8497 archive_expsym_cmds=''
8498 ;;
8499 m68k)
8500 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)'
8501 hardcode_libdir_flag_spec='-L$libdir'
8502 hardcode_minus_L=yes
8503 ;;
8504 esac
8505 ;;
8506
8507 beos*)
8508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509 allow_undefined_flag=unsupported
8510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8511 # support --undefined. This deserves some investigation. FIXME
8512 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8513 else
8514 ld_shlibs=no
8515 fi
8516 ;;
8517
8518 cygwin* | mingw* | pw32* | cegcc*)
8519 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8520 # as there is no search path for DLLs.
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 allow_undefined_flag=unsupported
8523 always_export_symbols=no
8524 enable_shared_with_static_runtimes=yes
8525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8526
8527 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8529 # If the export-symbols file already is a .def file (1st line
8530 # is EXPORTS), use it as is; otherwise, prepend...
8531 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8532 cp $export_symbols $output_objdir/$soname.def;
8533 else
8534 echo EXPORTS > $output_objdir/$soname.def;
8535 cat $export_symbols >> $output_objdir/$soname.def;
8536 fi~
8537 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538 else
8539 ld_shlibs=no
8540 fi
8541 ;;
8542
8543 interix[3-9]*)
8544 hardcode_direct=no
8545 hardcode_shlibpath_var=no
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
8548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8549 # Instead, shared libraries are loaded at an image base (0x10000000 by
8550 # default) and relocated if they conflict, which is a slow very memory
8551 # consuming and fragmenting process. To avoid this, we pick a random,
8552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8553 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8555 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'
8556 ;;
8557
8558 gnu* | linux* | tpf* | k*bsd*-gnu)
8559 tmp_diet=no
8560 if test "$host_os" = linux-dietlibc; then
8561 case $cc_basename in
8562 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8563 esac
8564 fi
8565 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8566 && test "$tmp_diet" = no
8567 then
8568 tmp_addflag=
8569 tmp_sharedflag='-shared'
8570 case $cc_basename,$host_cpu in
8571 pgcc*) # Portland Group C compiler
8572 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'
8573 tmp_addflag=' $pic_flag'
8574 ;;
8575 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8576 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'
8577 tmp_addflag=' $pic_flag -Mnomain' ;;
8578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8579 tmp_addflag=' -i_dynamic' ;;
8580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8581 tmp_addflag=' -i_dynamic -nofor_main' ;;
8582 ifc* | ifort*) # Intel Fortran compiler
8583 tmp_addflag=' -nofor_main' ;;
8584 lf95*) # Lahey Fortran 8.1
8585 whole_archive_flag_spec=
8586 tmp_sharedflag='--shared' ;;
8587 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8588 tmp_sharedflag='-qmkshrobj'
8589 tmp_addflag= ;;
8590 esac
8591 case `$CC -V 2>&1 | sed 5q` in
8592 *Sun\ C*) # Sun C 5.9
8593 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'
8594 compiler_needs_object=yes
8595 tmp_sharedflag='-G' ;;
8596 *Sun\ F*) # Sun Fortran 8.3
8597 tmp_sharedflag='-G' ;;
8598 esac
8599 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600
8601 if test "x$supports_anon_versioning" = xyes; then
8602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8604 echo "local: *; };" >> $output_objdir/$libname.ver~
8605 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8606 fi
8607
8608 case $cc_basename in
8609 xlf*)
8610 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8611 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8612 hardcode_libdir_flag_spec=
8613 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8614 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8615 if test "x$supports_anon_versioning" = xyes; then
8616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618 echo "local: *; };" >> $output_objdir/$libname.ver~
8619 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8620 fi
8621 ;;
8622 esac
8623 else
8624 ld_shlibs=no
8625 fi
8626 ;;
8627
8628 netbsd*)
8629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8630 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8631 wlarc=
8632 else
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635 fi
8636 ;;
8637
8638 solaris*)
8639 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8640 ld_shlibs=no
8641 cat <<_LT_EOF 1>&2
8642
8643 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8644 *** create shared libraries on Solaris systems. Therefore, libtool
8645 *** is disabling shared libraries support. We urge you to upgrade GNU
8646 *** binutils to release 2.9.1 or newer. Another option is to modify
8647 *** your PATH or compiler configuration so that the native linker is
8648 *** used, and then restart.
8649
8650 _LT_EOF
8651 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654 else
8655 ld_shlibs=no
8656 fi
8657 ;;
8658
8659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8660 case `$LD -v 2>&1` in
8661 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8662 ld_shlibs=no
8663 cat <<_LT_EOF 1>&2
8664
8665 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8666 *** reliably create shared libraries on SCO systems. Therefore, libtool
8667 *** is disabling shared libraries support. We urge you to upgrade GNU
8668 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8669 *** your PATH or compiler configuration so that the native linker is
8670 *** used, and then restart.
8671
8672 _LT_EOF
8673 ;;
8674 *)
8675 # For security reasons, it is highly recommended that you always
8676 # use absolute paths for naming shared libraries, and exclude the
8677 # DT_RUNPATH tag from executables and libraries. But doing so
8678 # requires that you compile everything twice, which is a pain.
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8683 else
8684 ld_shlibs=no
8685 fi
8686 ;;
8687 esac
8688 ;;
8689
8690 sunos4*)
8691 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8692 wlarc=
8693 hardcode_direct=yes
8694 hardcode_shlibpath_var=no
8695 ;;
8696
8697 *)
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701 else
8702 ld_shlibs=no
8703 fi
8704 ;;
8705 esac
8706
8707 if test "$ld_shlibs" = no; then
8708 runpath_var=
8709 hardcode_libdir_flag_spec=
8710 export_dynamic_flag_spec=
8711 whole_archive_flag_spec=
8712 fi
8713 else
8714 # PORTME fill in a description of your system's linker (not GNU ld)
8715 case $host_os in
8716 aix3*)
8717 allow_undefined_flag=unsupported
8718 always_export_symbols=yes
8719 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'
8720 # Note: this linker hardcodes the directories in LIBPATH if there
8721 # are no directories specified by -L.
8722 hardcode_minus_L=yes
8723 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8724 # Neither direct hardcoding nor static linking is supported with a
8725 # broken collect2.
8726 hardcode_direct=unsupported
8727 fi
8728 ;;
8729
8730 aix[4-9]*)
8731 if test "$host_cpu" = ia64; then
8732 # On IA64, the linker does run time linking by default, so we don't
8733 # have to do anything special.
8734 aix_use_runtimelinking=no
8735 exp_sym_flag='-Bexport'
8736 no_entry_flag=""
8737 else
8738 # If we're using GNU nm, then we don't want the "-C" option.
8739 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8741 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'
8742 else
8743 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'
8744 fi
8745 aix_use_runtimelinking=no
8746
8747 # Test if we are trying to use run time linking or normal
8748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8749 # need to do runtime linking.
8750 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8751 for ld_flag in $LDFLAGS; do
8752 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8753 aix_use_runtimelinking=yes
8754 break
8755 fi
8756 done
8757 ;;
8758 esac
8759
8760 exp_sym_flag='-bexport'
8761 no_entry_flag='-bnoentry'
8762 fi
8763
8764 # When large executables or shared objects are built, AIX ld can
8765 # have problems creating the table of contents. If linking a library
8766 # or program results in "error TOC overflow" add -mminimal-toc to
8767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8769
8770 archive_cmds=''
8771 hardcode_direct=yes
8772 hardcode_direct_absolute=yes
8773 hardcode_libdir_separator=':'
8774 link_all_deplibs=yes
8775 file_list_spec='${wl}-f,'
8776
8777 if test "$GCC" = yes; then
8778 case $host_os in aix4.[012]|aix4.[012].*)
8779 # We only want to do this on AIX 4.2 and lower, the check
8780 # below for broken collect2 doesn't work under 4.3+
8781 collect2name=`${CC} -print-prog-name=collect2`
8782 if test -f "$collect2name" &&
8783 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8784 then
8785 # We have reworked collect2
8786 :
8787 else
8788 # We have old collect2
8789 hardcode_direct=unsupported
8790 # It fails to find uninstalled libraries when the uninstalled
8791 # path is not listed in the libpath. Setting hardcode_minus_L
8792 # to unsupported forces relinking
8793 hardcode_minus_L=yes
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_libdir_separator=
8796 fi
8797 ;;
8798 esac
8799 shared_flag='-shared'
8800 if test "$aix_use_runtimelinking" = yes; then
8801 shared_flag="$shared_flag "'${wl}-G'
8802 fi
8803 else
8804 # not using gcc
8805 if test "$host_cpu" = ia64; then
8806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8807 # chokes on -Wl,-G. The following line is correct:
8808 shared_flag='-G'
8809 else
8810 if test "$aix_use_runtimelinking" = yes; then
8811 shared_flag='${wl}-G'
8812 else
8813 shared_flag='${wl}-bM:SRE'
8814 fi
8815 fi
8816 fi
8817
8818 export_dynamic_flag_spec='${wl}-bexpall'
8819 # It seems that -bexpall does not export symbols beginning with
8820 # underscore (_), so it is better to generate a list of symbols to export.
8821 always_export_symbols=yes
8822 if test "$aix_use_runtimelinking" = yes; then
8823 # Warning - without using the other runtime loading flags (-brtl),
8824 # -berok will link without error, but may produce a broken library.
8825 allow_undefined_flag='-berok'
8826 # Determine the default libpath from the value encoded in an
8827 # empty executable.
8828 cat >conftest.$ac_ext <<_ACEOF
8829 /* confdefs.h. */
8830 _ACEOF
8831 cat confdefs.h >>conftest.$ac_ext
8832 cat >>conftest.$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8834
8835 int
8836 main ()
8837 {
8838
8839 ;
8840 return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (ac_try="$ac_link"
8845 case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848 esac
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851 (eval "$ac_link") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest$ac_exeext && {
8861 test "$cross_compiling" = yes ||
8862 $as_test_x conftest$ac_exeext
8863 }; then
8864
8865 lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8867 /^0/ {
8868 s/^0 *\(.*\)$/\1/
8869 p
8870 }
8871 }'
8872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8873 # Check for a 64-bit object if we didn't find anything.
8874 if test -z "$aix_libpath"; then
8875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876 fi
8877 else
8878 $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881
8882 fi
8883
8884 rm -rf conftest.dSYM
8885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8886 conftest$ac_exeext conftest.$ac_ext
8887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8888
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 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"
8891 else
8892 if test "$host_cpu" = ia64; then
8893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894 allow_undefined_flag="-z nodefs"
8895 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"
8896 else
8897 # Determine the default libpath from the value encoded in an
8898 # empty executable.
8899 cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h. */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905
8906 int
8907 main ()
8908 {
8909
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (ac_try="$ac_link"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921 $as_echo "$ac_try_echo") >&5
8922 (eval "$ac_link") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext && {
8932 test "$cross_compiling" = yes ||
8933 $as_test_x conftest$ac_exeext
8934 }; then
8935
8936 lt_aix_libpath_sed='
8937 /Import File Strings/,/^$/ {
8938 /^0/ {
8939 s/^0 *\(.*\)$/\1/
8940 p
8941 }
8942 }'
8943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8944 # Check for a 64-bit object if we didn't find anything.
8945 if test -z "$aix_libpath"; then
8946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947 fi
8948 else
8949 $as_echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952
8953 fi
8954
8955 rm -rf conftest.dSYM
8956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8957 conftest$ac_exeext conftest.$ac_ext
8958 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959
8960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8961 # Warning - without using the other run time loading flags,
8962 # -berok will link without error, but may produce a broken library.
8963 no_undefined_flag=' ${wl}-bernotok'
8964 allow_undefined_flag=' ${wl}-berok'
8965 # Exported symbols can be pulled into shared objects from archives
8966 whole_archive_flag_spec='$convenience'
8967 archive_cmds_need_lc=yes
8968 # This is similar to how AIX traditionally builds its shared libraries.
8969 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'
8970 fi
8971 fi
8972 ;;
8973
8974 amigaos*)
8975 case $host_cpu in
8976 powerpc)
8977 # see comment about AmigaOS4 .so support
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds=''
8980 ;;
8981 m68k)
8982 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)'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_minus_L=yes
8985 ;;
8986 esac
8987 ;;
8988
8989 bsdi[45]*)
8990 export_dynamic_flag_spec=-rdynamic
8991 ;;
8992
8993 cygwin* | mingw* | pw32* | cegcc*)
8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 # hardcode_libdir_flag_spec is actually meaningless, as there is
8997 # no search path for DLLs.
8998 hardcode_libdir_flag_spec=' '
8999 allow_undefined_flag=unsupported
9000 # Tell ltmain to make .lib files, not .a files.
9001 libext=lib
9002 # Tell ltmain to make .dll files, not .so files.
9003 shrext_cmds=".dll"
9004 # FIXME: Setting linknames here is a bad hack.
9005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9006 # The linker will automatically build a .lib file if we build a DLL.
9007 old_archive_from_new_cmds='true'
9008 # FIXME: Should let the user specify the lib program.
9009 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9010 fix_srcfile_path='`cygpath -w "$srcfile"`'
9011 enable_shared_with_static_runtimes=yes
9012 ;;
9013
9014 darwin* | rhapsody*)
9015
9016
9017 archive_cmds_need_lc=no
9018 hardcode_direct=no
9019 hardcode_automatic=yes
9020 hardcode_shlibpath_var=unsupported
9021 whole_archive_flag_spec=''
9022 link_all_deplibs=yes
9023 allow_undefined_flag="$_lt_dar_allow_undefined"
9024 case $cc_basename in
9025 ifort*) _lt_dar_can_shared=yes ;;
9026 *) _lt_dar_can_shared=$GCC ;;
9027 esac
9028 if test "$_lt_dar_can_shared" = "yes"; then
9029 output_verbose_link_cmd=echo
9030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9032 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}"
9033 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}"
9034
9035 else
9036 ld_shlibs=no
9037 fi
9038
9039 ;;
9040
9041 dgux*)
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_shlibpath_var=no
9045 ;;
9046
9047 freebsd1*)
9048 ld_shlibs=no
9049 ;;
9050
9051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9052 # support. Future versions do this automatically, but an explicit c++rt0.o
9053 # does not break anything, and helps significantly (at the cost of a little
9054 # extra space).
9055 freebsd2.2*)
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9057 hardcode_libdir_flag_spec='-R$libdir'
9058 hardcode_direct=yes
9059 hardcode_shlibpath_var=no
9060 ;;
9061
9062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9063 freebsd2*)
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_direct=yes
9066 hardcode_minus_L=yes
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9071 freebsd* | dragonfly*)
9072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9076 ;;
9077
9078 hpux9*)
9079 if test "$GCC" = yes; then
9080 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'
9081 else
9082 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'
9083 fi
9084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085 hardcode_libdir_separator=:
9086 hardcode_direct=yes
9087
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L=yes
9091 export_dynamic_flag_spec='${wl}-E'
9092 ;;
9093
9094 hpux10*)
9095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097 else
9098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9099 fi
9100 if test "$with_gnu_ld" = no; then
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_flag_spec_ld='+b $libdir'
9103 hardcode_libdir_separator=:
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 export_dynamic_flag_spec='${wl}-E'
9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
9109 hardcode_minus_L=yes
9110 fi
9111 ;;
9112
9113 hpux11*)
9114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9115 case $host_cpu in
9116 hppa*64*)
9117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 ;;
9119 ia64*)
9120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 *)
9123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 esac
9126 else
9127 case $host_cpu in
9128 hppa*64*)
9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 ;;
9131 ia64*)
9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133 ;;
9134 *)
9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136 ;;
9137 esac
9138 fi
9139 if test "$with_gnu_ld" = no; then
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
9142
9143 case $host_cpu in
9144 hppa*64*|ia64*)
9145 hardcode_direct=no
9146 hardcode_shlibpath_var=no
9147 ;;
9148 *)
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 export_dynamic_flag_spec='${wl}-E'
9152
9153 # hardcode_minus_L: Not really in the search PATH,
9154 # but as the default location of the library.
9155 hardcode_minus_L=yes
9156 ;;
9157 esac
9158 fi
9159 ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162 if test "$GCC" = yes; then
9163 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'
9164 # Try to use the -exported_symbol ld option, if it does not
9165 # work, assume that -exports_file does not work either and
9166 # implicitly export all symbols.
9167 save_LDFLAGS="$LDFLAGS"
9168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169 cat >conftest.$ac_ext <<_ACEOF
9170 int foo(void) {}
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (ac_try="$ac_link"
9174 case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9179 $as_echo "$ac_try_echo") >&5
9180 (eval "$ac_link") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest$ac_exeext && {
9190 test "$cross_compiling" = yes ||
9191 $as_test_x conftest$ac_exeext
9192 }; then
9193 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'
9194
9195 else
9196 $as_echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199
9200 fi
9201
9202 rm -rf conftest.dSYM
9203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LDFLAGS="$save_LDFLAGS"
9206 else
9207 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'
9208 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'
9209 fi
9210 archive_cmds_need_lc='no'
9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212 hardcode_libdir_separator=:
9213 inherit_rpath=yes
9214 link_all_deplibs=yes
9215 ;;
9216
9217 netbsd*)
9218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9220 else
9221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9222 fi
9223 hardcode_libdir_flag_spec='-R$libdir'
9224 hardcode_direct=yes
9225 hardcode_shlibpath_var=no
9226 ;;
9227
9228 newsos6)
9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_direct=yes
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 hardcode_libdir_separator=:
9233 hardcode_shlibpath_var=no
9234 ;;
9235
9236 *nto* | *qnx*)
9237 ;;
9238
9239 openbsd*)
9240 if test -f /usr/libexec/ld.so; then
9241 hardcode_direct=yes
9242 hardcode_shlibpath_var=no
9243 hardcode_direct_absolute=yes
9244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9248 export_dynamic_flag_spec='${wl}-E'
9249 else
9250 case $host_os in
9251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_libdir_flag_spec='-R$libdir'
9254 ;;
9255 *)
9256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 ;;
9259 esac
9260 fi
9261 else
9262 ld_shlibs=no
9263 fi
9264 ;;
9265
9266 os2*)
9267 hardcode_libdir_flag_spec='-L$libdir'
9268 hardcode_minus_L=yes
9269 allow_undefined_flag=unsupported
9270 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'
9271 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9272 ;;
9273
9274 osf3*)
9275 if test "$GCC" = yes; then
9276 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9277 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'
9278 else
9279 allow_undefined_flag=' -expect_unresolved \*'
9280 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'
9281 fi
9282 archive_cmds_need_lc='no'
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284 hardcode_libdir_separator=:
9285 ;;
9286
9287 osf4* | osf5*) # as osf3* with the addition of -msym flag
9288 if test "$GCC" = yes; then
9289 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9290 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'
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 else
9293 allow_undefined_flag=' -expect_unresolved \*'
9294 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'
9295 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~
9296 $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'
9297
9298 # Both c and cxx compiler support -rpath directly
9299 hardcode_libdir_flag_spec='-rpath $libdir'
9300 fi
9301 archive_cmds_need_lc='no'
9302 hardcode_libdir_separator=:
9303 ;;
9304
9305 solaris*)
9306 no_undefined_flag=' -z defs'
9307 if test "$GCC" = yes; then
9308 wlarc='${wl}'
9309 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9311 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9312 else
9313 case `$CC -V 2>&1` in
9314 *"Compilers 5.0"*)
9315 wlarc=''
9316 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9319 ;;
9320 *)
9321 wlarc='${wl}'
9322 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9324 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9325 ;;
9326 esac
9327 fi
9328 hardcode_libdir_flag_spec='-R$libdir'
9329 hardcode_shlibpath_var=no
9330 case $host_os in
9331 solaris2.[0-5] | solaris2.[0-5].*) ;;
9332 *)
9333 # The compiler driver will combine and reorder linker options,
9334 # but understands `-z linker_flag'. GCC discards it without `$wl',
9335 # but is careful enough not to reorder.
9336 # Supported since Solaris 2.6 (maybe 2.5.1?)
9337 if test "$GCC" = yes; then
9338 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9339 else
9340 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9341 fi
9342 ;;
9343 esac
9344 link_all_deplibs=yes
9345 ;;
9346
9347 sunos4*)
9348 if test "x$host_vendor" = xsequent; then
9349 # Use $CC to link under sequent, because it throws in some extra .o
9350 # files that make .init and .fini sections work.
9351 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9352 else
9353 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9354 fi
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_direct=yes
9357 hardcode_minus_L=yes
9358 hardcode_shlibpath_var=no
9359 ;;
9360
9361 sysv4)
9362 case $host_vendor in
9363 sni)
9364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365 hardcode_direct=yes # is this really true???
9366 ;;
9367 siemens)
9368 ## LD is ld it makes a PLAMLIB
9369 ## CC just makes a GrossModule.
9370 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9371 reload_cmds='$CC -r -o $output$reload_objs'
9372 hardcode_direct=no
9373 ;;
9374 motorola)
9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9377 ;;
9378 esac
9379 runpath_var='LD_RUN_PATH'
9380 hardcode_shlibpath_var=no
9381 ;;
9382
9383 sysv4.3*)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_shlibpath_var=no
9386 export_dynamic_flag_spec='-Bexport'
9387 ;;
9388
9389 sysv4*MP*)
9390 if test -d /usr/nec; then
9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
9393 runpath_var=LD_RUN_PATH
9394 hardcode_runpath_var=yes
9395 ld_shlibs=yes
9396 fi
9397 ;;
9398
9399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9400 no_undefined_flag='${wl}-z,text'
9401 archive_cmds_need_lc=no
9402 hardcode_shlibpath_var=no
9403 runpath_var='LD_RUN_PATH'
9404
9405 if test "$GCC" = yes; then
9406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9408 else
9409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 fi
9412 ;;
9413
9414 sysv5* | sco3.2v5* | sco5v6*)
9415 # Note: We can NOT use -z defs as we might desire, because we do not
9416 # link with -lc, and that would cause any symbols used from libc to
9417 # always be unresolved, which means just about no library would
9418 # ever link correctly. If we're not using GNU ld we use -z text
9419 # though, which does catch some bad symbols but isn't as heavy-handed
9420 # as -z defs.
9421 no_undefined_flag='${wl}-z,text'
9422 allow_undefined_flag='${wl}-z,nodefs'
9423 archive_cmds_need_lc=no
9424 hardcode_shlibpath_var=no
9425 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9426 hardcode_libdir_separator=':'
9427 link_all_deplibs=yes
9428 export_dynamic_flag_spec='${wl}-Bexport'
9429 runpath_var='LD_RUN_PATH'
9430
9431 if test "$GCC" = yes; then
9432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 else
9435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 fi
9438 ;;
9439
9440 uts4*)
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_libdir_flag_spec='-L$libdir'
9443 hardcode_shlibpath_var=no
9444 ;;
9445
9446 *)
9447 ld_shlibs=no
9448 ;;
9449 esac
9450
9451 if test x$host_vendor = xsni; then
9452 case $host in
9453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9454 export_dynamic_flag_spec='${wl}-Blargedynsym'
9455 ;;
9456 esac
9457 fi
9458 fi
9459
9460 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9461 $as_echo "$ld_shlibs" >&6; }
9462 test "$ld_shlibs" = no && can_build_shared=no
9463
9464 with_gnu_ld=$with_gnu_ld
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480 #
9481 # Do we need to explicitly link libc?
9482 #
9483 case "x$archive_cmds_need_lc" in
9484 x|xyes)
9485 # Assume -lc should be added
9486 archive_cmds_need_lc=yes
9487
9488 if test "$enable_shared" = yes && test "$GCC" = yes; then
9489 case $archive_cmds in
9490 *'~'*)
9491 # FIXME: we may have to deal with multi-command sequences.
9492 ;;
9493 '$CC '*)
9494 # Test whether the compiler implicitly links with -lc since on some
9495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9496 # to ld, don't add -lc before -lgcc.
9497 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9498 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9499 $RM conftest*
9500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9501
9502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9503 (eval $ac_compile) 2>&5
9504 ac_status=$?
9505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } 2>conftest.err; then
9507 soname=conftest
9508 lib=conftest
9509 libobjs=conftest.$ac_objext
9510 deplibs=
9511 wl=$lt_prog_compiler_wl
9512 pic_flag=$lt_prog_compiler_pic
9513 compiler_flags=-v
9514 linker_flags=-v
9515 verstring=
9516 output_objdir=.
9517 libname=conftest
9518 lt_save_allow_undefined_flag=$allow_undefined_flag
9519 allow_undefined_flag=
9520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9522 ac_status=$?
9523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }
9525 then
9526 archive_cmds_need_lc=no
9527 else
9528 archive_cmds_need_lc=yes
9529 fi
9530 allow_undefined_flag=$lt_save_allow_undefined_flag
9531 else
9532 cat conftest.err 1>&5
9533 fi
9534 $RM conftest*
9535 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9536 $as_echo "$archive_cmds_need_lc" >&6; }
9537 ;;
9538 esac
9539 fi
9540 ;;
9541 esac
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9700 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9701
9702 if test "$GCC" = yes; then
9703 case $host_os in
9704 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9705 *) lt_awk_arg="/^libraries:/" ;;
9706 esac
9707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9708 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9709 # if the path contains ";" then we assume it to be the separator
9710 # otherwise default to the standard path separator (i.e. ":") - it is
9711 # assumed that no part of a normal pathname contains ";" but that should
9712 # okay in the real world where ";" in dirpaths is itself problematic.
9713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9714 else
9715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9716 fi
9717 # Ok, now we have the path, separated by spaces, we can step through it
9718 # and add multilib dir if necessary.
9719 lt_tmp_lt_search_path_spec=
9720 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9721 for lt_sys_path in $lt_search_path_spec; do
9722 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9724 else
9725 test -d "$lt_sys_path" && \
9726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9727 fi
9728 done
9729 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9730 BEGIN {RS=" "; FS="/|\n";} {
9731 lt_foo="";
9732 lt_count=0;
9733 for (lt_i = NF; lt_i > 0; lt_i--) {
9734 if ($lt_i != "" && $lt_i != ".") {
9735 if ($lt_i == "..") {
9736 lt_count++;
9737 } else {
9738 if (lt_count == 0) {
9739 lt_foo="/" $lt_i lt_foo;
9740 } else {
9741 lt_count--;
9742 }
9743 }
9744 }
9745 }
9746 if (lt_foo != "") { lt_freq[lt_foo]++; }
9747 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9748 }'`
9749 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9750 else
9751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9752 fi
9753 library_names_spec=
9754 libname_spec='lib$name'
9755 soname_spec=
9756 shrext_cmds=".so"
9757 postinstall_cmds=
9758 postuninstall_cmds=
9759 finish_cmds=
9760 finish_eval=
9761 shlibpath_var=
9762 shlibpath_overrides_runpath=unknown
9763 version_type=none
9764 dynamic_linker="$host_os ld.so"
9765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9766 need_lib_prefix=unknown
9767 hardcode_into_libs=no
9768
9769 # when you set need_version to no, make sure it does not cause -set_version
9770 # flags to be left without arguments
9771 need_version=unknown
9772
9773 case $host_os in
9774 aix3*)
9775 version_type=linux
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9777 shlibpath_var=LIBPATH
9778
9779 # AIX 3 has no versioning support, so we append a major version to the name.
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 ;;
9782
9783 aix[4-9]*)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 hardcode_into_libs=yes
9788 if test "$host_cpu" = ia64; then
9789 # AIX 5 supports IA64
9790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 else
9793 # With GCC up to 2.95.x, collect2 would create an import file
9794 # for dependence libraries. The import file would start with
9795 # the line `#! .'. This would cause the generated library to
9796 # depend on `.', always an invalid library. This was fixed in
9797 # development snapshots of GCC prior to 3.0.
9798 case $host_os in
9799 aix4 | aix4.[01] | aix4.[01].*)
9800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9801 echo ' yes '
9802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9803 :
9804 else
9805 can_build_shared=no
9806 fi
9807 ;;
9808 esac
9809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9810 # soname into executable. Probably we can add versioning support to
9811 # collect2, so additional links can be useful in future.
9812 if test "$aix_use_runtimelinking" = yes; then
9813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9814 # instead of lib<name>.a to let people know that these are not
9815 # typical AIX shared libraries.
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 else
9818 # We preserve .a as extension for shared libraries through AIX4.2
9819 # and later when we are not doing run time linking.
9820 library_names_spec='${libname}${release}.a $libname.a'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 fi
9823 shlibpath_var=LIBPATH
9824 fi
9825 ;;
9826
9827 amigaos*)
9828 case $host_cpu in
9829 powerpc)
9830 # Since July 2007 AmigaOS4 officially supports .so libraries.
9831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 ;;
9834 m68k)
9835 library_names_spec='$libname.ixlibrary $libname.a'
9836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9837 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'
9838 ;;
9839 esac
9840 ;;
9841
9842 beos*)
9843 library_names_spec='${libname}${shared_ext}'
9844 dynamic_linker="$host_os ld.so"
9845 shlibpath_var=LIBRARY_PATH
9846 ;;
9847
9848 bsdi[45]*)
9849 version_type=linux
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857 # the default ld.so.conf also contains /usr/contrib/lib and
9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859 # libtool to hard-code these into programs
9860 ;;
9861
9862 cygwin* | mingw* | pw32* | cegcc*)
9863 version_type=windows
9864 shrext_cmds=".dll"
9865 need_version=no
9866 need_lib_prefix=no
9867
9868 case $GCC,$host_os in
9869 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9870 library_names_spec='$libname.dll.a'
9871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872 postinstall_cmds='base_file=`basename \${file}`~
9873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9874 dldir=$destdir/`dirname \$dlpath`~
9875 test -d \$dldir || mkdir -p \$dldir~
9876 $install_prog $dir/$dlname \$dldir/$dlname~
9877 chmod a+x \$dldir/$dlname~
9878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9880 fi'
9881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9882 dlpath=$dir/\$dldll~
9883 $RM \$dlpath'
9884 shlibpath_overrides_runpath=yes
9885
9886 case $host_os in
9887 cygwin*)
9888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9891 ;;
9892 mingw* | cegcc*)
9893 # MinGW DLLs use traditional 'lib' prefix
9894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9895 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9896 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9897 # It is most probably a Windows format PATH printed by
9898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9899 # path with ; separators, and with drive letters. We can handle the
9900 # drive letters (cygwin fileutils understands them), so leave them,
9901 # especially as we might pass files found there to a mingw objdump,
9902 # which wouldn't understand a cygwinified path. Ahh.
9903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9904 else
9905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9906 fi
9907 ;;
9908 pw32*)
9909 # pw32 DLLs use 'pw' prefix rather than 'lib'
9910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9911 ;;
9912 esac
9913 ;;
9914
9915 *)
9916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9917 ;;
9918 esac
9919 dynamic_linker='Win32 ld.exe'
9920 # FIXME: first we should search . and the directory the executable is in
9921 shlibpath_var=PATH
9922 ;;
9923
9924 darwin* | rhapsody*)
9925 dynamic_linker="$host_os dyld"
9926 version_type=darwin
9927 need_lib_prefix=no
9928 need_version=no
9929 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9930 soname_spec='${libname}${release}${major}$shared_ext'
9931 shlibpath_overrides_runpath=yes
9932 shlibpath_var=DYLD_LIBRARY_PATH
9933 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9934
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9937 ;;
9938
9939 dgux*)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 ;;
9947
9948 freebsd1*)
9949 dynamic_linker=no
9950 ;;
9951
9952 freebsd* | dragonfly*)
9953 # DragonFly does not have aout. When/if they implement a new
9954 # versioning mechanism, adjust this.
9955 if test -x /usr/bin/objformat; then
9956 objformat=`/usr/bin/objformat`
9957 else
9958 case $host_os in
9959 freebsd[123]*) objformat=aout ;;
9960 *) objformat=elf ;;
9961 esac
9962 fi
9963 version_type=freebsd-$objformat
9964 case $version_type in
9965 freebsd-elf*)
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 need_version=no
9968 need_lib_prefix=no
9969 ;;
9970 freebsd-*)
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9972 need_version=yes
9973 ;;
9974 esac
9975 shlibpath_var=LD_LIBRARY_PATH
9976 case $host_os in
9977 freebsd2*)
9978 shlibpath_overrides_runpath=yes
9979 ;;
9980 freebsd3.[01]* | freebsdelf3.[01]*)
9981 shlibpath_overrides_runpath=yes
9982 hardcode_into_libs=yes
9983 ;;
9984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9986 shlibpath_overrides_runpath=no
9987 hardcode_into_libs=yes
9988 ;;
9989 *) # from 4.6 on, and DragonFly
9990 shlibpath_overrides_runpath=yes
9991 hardcode_into_libs=yes
9992 ;;
9993 esac
9994 ;;
9995
9996 gnu*)
9997 version_type=linux
9998 need_lib_prefix=no
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 hardcode_into_libs=yes
10004 ;;
10005
10006 hpux9* | hpux10* | hpux11*)
10007 # Give a soname corresponding to the major version so that dld.sl refuses to
10008 # link against other versions.
10009 version_type=sunos
10010 need_lib_prefix=no
10011 need_version=no
10012 case $host_cpu in
10013 ia64*)
10014 shrext_cmds='.so'
10015 hardcode_into_libs=yes
10016 dynamic_linker="$host_os dld.so"
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 if test "X$HPUX_IA64_MODE" = X32; then
10022 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10023 else
10024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10025 fi
10026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10027 ;;
10028 hppa*64*)
10029 shrext_cmds='.sl'
10030 hardcode_into_libs=yes
10031 dynamic_linker="$host_os dld.sl"
10032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 ;;
10039 *)
10040 shrext_cmds='.sl'
10041 dynamic_linker="$host_os dld.sl"
10042 shlibpath_var=SHLIB_PATH
10043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 ;;
10047 esac
10048 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10049 postinstall_cmds='chmod 555 $lib'
10050 ;;
10051
10052 interix[3-9]*)
10053 version_type=linux
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10062 ;;
10063
10064 irix5* | irix6* | nonstopux*)
10065 case $host_os in
10066 nonstopux*) version_type=nonstopux ;;
10067 *)
10068 if test "$lt_cv_prog_gnu_ld" = yes; then
10069 version_type=linux
10070 else
10071 version_type=irix
10072 fi ;;
10073 esac
10074 need_lib_prefix=no
10075 need_version=no
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 case $host_os in
10079 irix5* | nonstopux*)
10080 libsuff= shlibsuff=
10081 ;;
10082 *)
10083 case $LD in # libtool.m4 will add one of these switches to LD
10084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10085 libsuff= shlibsuff= libmagic=32-bit;;
10086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10087 libsuff=32 shlibsuff=N32 libmagic=N32;;
10088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10090 *) libsuff= shlibsuff= libmagic=never-match;;
10091 esac
10092 ;;
10093 esac
10094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10095 shlibpath_overrides_runpath=no
10096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10098 hardcode_into_libs=yes
10099 ;;
10100
10101 # No shared lib support for Linux oldld, aout, or coff.
10102 linux*oldld* | linux*aout* | linux*coff*)
10103 dynamic_linker=no
10104 ;;
10105
10106 # This must be Linux ELF.
10107 linux* | k*bsd*-gnu)
10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=no
10116 # Some binutils ld are patched to set DT_RUNPATH
10117 save_LDFLAGS=$LDFLAGS
10118 save_libdir=$libdir
10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h. */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h. */
10127
10128 int
10129 main ()
10130 {
10131
10132 ;
10133 return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141 esac
10142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10143 $as_echo "$ac_try_echo") >&5
10144 (eval "$ac_link") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest$ac_exeext && {
10154 test "$cross_compiling" = yes ||
10155 $as_test_x conftest$ac_exeext
10156 }; then
10157 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10158 shlibpath_overrides_runpath=yes
10159 fi
10160
10161 else
10162 $as_echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10164
10165
10166 fi
10167
10168 rm -rf conftest.dSYM
10169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LDFLAGS=$save_LDFLAGS
10172 libdir=$save_libdir
10173
10174 # This implies no fast_install, which is unacceptable.
10175 # Some rework will be needed to allow for fast_install
10176 # before this can be enabled.
10177 hardcode_into_libs=yes
10178
10179 # Add ABI-specific directories to the system library path.
10180 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10181
10182 # Append ld.so.conf contents to the search path
10183 if test -f /etc/ld.so.conf; then
10184 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' ' '`
10185 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10186 fi
10187
10188 # We used to test for /lib/ld.so.1 and disable shared libraries on
10189 # powerpc, because MkLinux only supported shared libraries with the
10190 # GNU dynamic linker. Since this was broken with cross compilers,
10191 # most powerpc-linux boxes support dynamic linking these days and
10192 # people can always --disable-shared, the test was removed, and we
10193 # assume the GNU/Linux dynamic linker is in use.
10194 dynamic_linker='GNU/Linux ld.so'
10195 ;;
10196
10197 netbsd*)
10198 version_type=sunos
10199 need_lib_prefix=no
10200 need_version=no
10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 dynamic_linker='NetBSD (a.out) ld.so'
10205 else
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 dynamic_linker='NetBSD ld.elf_so'
10209 fi
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10212 hardcode_into_libs=yes
10213 ;;
10214
10215 newsos6)
10216 version_type=linux
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=yes
10220 ;;
10221
10222 *nto* | *qnx*)
10223 version_type=qnx
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LD_LIBRARY_PATH
10229 shlibpath_overrides_runpath=no
10230 hardcode_into_libs=yes
10231 dynamic_linker='ldqnx.so'
10232 ;;
10233
10234 openbsd*)
10235 version_type=sunos
10236 sys_lib_dlsearch_path_spec="/usr/lib"
10237 need_lib_prefix=no
10238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239 case $host_os in
10240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241 *) need_version=no ;;
10242 esac
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10247 case $host_os in
10248 openbsd2.[89] | openbsd2.[89].*)
10249 shlibpath_overrides_runpath=no
10250 ;;
10251 *)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 esac
10255 else
10256 shlibpath_overrides_runpath=yes
10257 fi
10258 ;;
10259
10260 os2*)
10261 libname_spec='$name'
10262 shrext_cmds=".dll"
10263 need_lib_prefix=no
10264 library_names_spec='$libname${shared_ext} $libname.a'
10265 dynamic_linker='OS/2 ld.exe'
10266 shlibpath_var=LIBPATH
10267 ;;
10268
10269 osf3* | osf4* | osf5*)
10270 version_type=osf
10271 need_lib_prefix=no
10272 need_version=no
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278 ;;
10279
10280 rdos*)
10281 dynamic_linker=no
10282 ;;
10283
10284 solaris*)
10285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 # ldd complains unless libraries are executable
10294 postinstall_cmds='chmod +x $lib'
10295 ;;
10296
10297 sunos4*)
10298 version_type=sunos
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 if test "$with_gnu_ld" = yes; then
10304 need_lib_prefix=no
10305 fi
10306 need_version=yes
10307 ;;
10308
10309 sysv4 | sysv4.3*)
10310 version_type=linux
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 case $host_vendor in
10315 sni)
10316 shlibpath_overrides_runpath=no
10317 need_lib_prefix=no
10318 runpath_var=LD_RUN_PATH
10319 ;;
10320 siemens)
10321 need_lib_prefix=no
10322 ;;
10323 motorola)
10324 need_lib_prefix=no
10325 need_version=no
10326 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10328 ;;
10329 esac
10330 ;;
10331
10332 sysv4*MP*)
10333 if test -d /usr/nec ;then
10334 version_type=linux
10335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10336 soname_spec='$libname${shared_ext}.$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 fi
10339 ;;
10340
10341 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10342 version_type=freebsd-elf
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10349 hardcode_into_libs=yes
10350 if test "$with_gnu_ld" = yes; then
10351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10352 else
10353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10354 case $host_os in
10355 sco3.2v5*)
10356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10357 ;;
10358 esac
10359 fi
10360 sys_lib_dlsearch_path_spec='/usr/lib'
10361 ;;
10362
10363 tpf*)
10364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10372 ;;
10373
10374 uts4*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 ;;
10380
10381 *)
10382 dynamic_linker=no
10383 ;;
10384 esac
10385 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10386 $as_echo "$dynamic_linker" >&6; }
10387 test "$dynamic_linker" = no && can_build_shared=no
10388
10389 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10390 if test "$GCC" = yes; then
10391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10392 fi
10393
10394 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10396 fi
10397 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10399 fi
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10488 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10489 hardcode_action=
10490 if test -n "$hardcode_libdir_flag_spec" ||
10491 test -n "$runpath_var" ||
10492 test "X$hardcode_automatic" = "Xyes" ; then
10493
10494 # We can hardcode non-existent directories.
10495 if test "$hardcode_direct" != no &&
10496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10497 # have to relink, otherwise we might link with an installed library
10498 # when we should be linking with a yet-to-be-installed one
10499 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10500 test "$hardcode_minus_L" != no; then
10501 # Linking always hardcodes the temporary library directory.
10502 hardcode_action=relink
10503 else
10504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10505 hardcode_action=immediate
10506 fi
10507 else
10508 # We cannot hardcode anything, or else we can only hardcode existing
10509 # directories.
10510 hardcode_action=unsupported
10511 fi
10512 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10513 $as_echo "$hardcode_action" >&6; }
10514
10515 if test "$hardcode_action" = relink ||
10516 test "$inherit_rpath" = yes; then
10517 # Fast installation is not supported
10518 enable_fast_install=no
10519 elif test "$shlibpath_overrides_runpath" = yes ||
10520 test "$enable_shared" = no; then
10521 # Fast installation is not necessary
10522 enable_fast_install=needless
10523 fi
10524
10525
10526
10527
10528
10529
10530 if test "x$enable_dlopen" != xyes; then
10531 enable_dlopen=unknown
10532 enable_dlopen_self=unknown
10533 enable_dlopen_self_static=unknown
10534 else
10535 lt_cv_dlopen=no
10536 lt_cv_dlopen_libs=
10537
10538 case $host_os in
10539 beos*)
10540 lt_cv_dlopen="load_add_on"
10541 lt_cv_dlopen_libs=
10542 lt_cv_dlopen_self=yes
10543 ;;
10544
10545 mingw* | pw32* | cegcc*)
10546 lt_cv_dlopen="LoadLibrary"
10547 lt_cv_dlopen_libs=
10548 ;;
10549
10550 cygwin*)
10551 lt_cv_dlopen="dlopen"
10552 lt_cv_dlopen_libs=
10553 ;;
10554
10555 darwin*)
10556 # if libdl is installed we need to link against it
10557 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10559 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10560 $as_echo_n "(cached) " >&6
10561 else
10562 ac_check_lib_save_LIBS=$LIBS
10563 LIBS="-ldl $LIBS"
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char dlopen ();
10578 int
10579 main ()
10580 {
10581 return dlopen ();
10582 ;
10583 return 0;
10584 }
10585 _ACEOF
10586 rm -f conftest.$ac_objext conftest$ac_exeext
10587 if { (ac_try="$ac_link"
10588 case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591 esac
10592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest$ac_exeext && {
10604 test "$cross_compiling" = yes ||
10605 $as_test_x conftest$ac_exeext
10606 }; then
10607 ac_cv_lib_dl_dlopen=yes
10608 else
10609 $as_echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_lib_dl_dlopen=no
10613 fi
10614
10615 rm -rf conftest.dSYM
10616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10618 LIBS=$ac_check_lib_save_LIBS
10619 fi
10620 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10621 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10622 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10624 else
10625
10626 lt_cv_dlopen="dyld"
10627 lt_cv_dlopen_libs=
10628 lt_cv_dlopen_self=yes
10629
10630 fi
10631
10632 ;;
10633
10634 *)
10635 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10636 $as_echo_n "checking for shl_load... " >&6; }
10637 if test "${ac_cv_func_shl_load+set}" = set; then
10638 $as_echo_n "(cached) " >&6
10639 else
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h. */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10648 #define shl_load innocuous_shl_load
10649
10650 /* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char shl_load (); below.
10652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 <limits.h> exists even on freestanding compilers. */
10654
10655 #ifdef __STDC__
10656 # include <limits.h>
10657 #else
10658 # include <assert.h>
10659 #endif
10660
10661 #undef shl_load
10662
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char shl_load ();
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined __stub_shl_load || defined __stub___shl_load
10674 choke me
10675 #endif
10676
10677 int
10678 main ()
10679 {
10680 return shl_load ();
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest$ac_exeext
10705 }; then
10706 ac_cv_func_shl_load=yes
10707 else
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 ac_cv_func_shl_load=no
10712 fi
10713
10714 rm -rf conftest.dSYM
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 fi
10718 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10719 $as_echo "$ac_cv_func_shl_load" >&6; }
10720 if test "x$ac_cv_func_shl_load" = x""yes; then
10721 lt_cv_dlopen="shl_load"
10722 else
10723 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10724 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10725 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-ldld $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h. */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h. */
10736
10737 /* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740 #ifdef __cplusplus
10741 extern "C"
10742 #endif
10743 char shl_load ();
10744 int
10745 main ()
10746 {
10747 return shl_load ();
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 rm -f conftest.$ac_objext conftest$ac_exeext
10753 if { (ac_try="$ac_link"
10754 case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757 esac
10758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759 $as_echo "$ac_try_echo") >&5
10760 (eval "$ac_link") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest$ac_exeext && {
10770 test "$cross_compiling" = yes ||
10771 $as_test_x conftest$ac_exeext
10772 }; then
10773 ac_cv_lib_dld_shl_load=yes
10774 else
10775 $as_echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10777
10778 ac_cv_lib_dld_shl_load=no
10779 fi
10780
10781 rm -rf conftest.dSYM
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10785 fi
10786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10787 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10788 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10789 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10790 else
10791 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10792 $as_echo_n "checking for dlopen... " >&6; }
10793 if test "${ac_cv_func_dlopen+set}" = set; then
10794 $as_echo_n "(cached) " >&6
10795 else
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804 #define dlopen innocuous_dlopen
10805
10806 /* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char dlopen (); below.
10808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809 <limits.h> exists even on freestanding compilers. */
10810
10811 #ifdef __STDC__
10812 # include <limits.h>
10813 #else
10814 # include <assert.h>
10815 #endif
10816
10817 #undef dlopen
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char dlopen ();
10826 /* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829 #if defined __stub_dlopen || defined __stub___dlopen
10830 choke me
10831 #endif
10832
10833 int
10834 main ()
10835 {
10836 return dlopen ();
10837 ;
10838 return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846 esac
10847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848 $as_echo "$ac_try_echo") >&5
10849 (eval "$ac_link") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext && {
10859 test "$cross_compiling" = yes ||
10860 $as_test_x conftest$ac_exeext
10861 }; then
10862 ac_cv_func_dlopen=yes
10863 else
10864 $as_echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ac_cv_func_dlopen=no
10868 fi
10869
10870 rm -rf conftest.dSYM
10871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10872 conftest$ac_exeext conftest.$ac_ext
10873 fi
10874 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10875 $as_echo "$ac_cv_func_dlopen" >&6; }
10876 if test "x$ac_cv_func_dlopen" = x""yes; then
10877 lt_cv_dlopen="dlopen"
10878 else
10879 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldl $LIBS"
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char dlopen ();
10900 int
10901 main ()
10902 {
10903 return dlopen ();
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (ac_try="$ac_link"
10910 case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913 esac
10914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915 $as_echo "$ac_try_echo") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext && {
10926 test "$cross_compiling" = yes ||
10927 $as_test_x conftest$ac_exeext
10928 }; then
10929 ac_cv_lib_dl_dlopen=yes
10930 else
10931 $as_echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 ac_cv_lib_dl_dlopen=no
10935 fi
10936
10937 rm -rf conftest.dSYM
10938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LIBS=$ac_check_lib_save_LIBS
10941 fi
10942 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10943 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10944 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946 else
10947 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10948 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10949 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10950 $as_echo_n "(cached) " >&6
10951 else
10952 ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-lsvld $LIBS"
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h. */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h. */
10960
10961 /* Override any GCC internal prototype to avoid an error.
10962 Use char because int might match the return type of a GCC
10963 builtin and then its argument prototype would still apply. */
10964 #ifdef __cplusplus
10965 extern "C"
10966 #endif
10967 char dlopen ();
10968 int
10969 main ()
10970 {
10971 return dlopen ();
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 rm -f conftest.$ac_objext conftest$ac_exeext
10977 if { (ac_try="$ac_link"
10978 case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981 esac
10982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983 $as_echo "$ac_try_echo") >&5
10984 (eval "$ac_link") 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext && {
10994 test "$cross_compiling" = yes ||
10995 $as_test_x conftest$ac_exeext
10996 }; then
10997 ac_cv_lib_svld_dlopen=yes
10998 else
10999 $as_echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ac_cv_lib_svld_dlopen=no
11003 fi
11004
11005 rm -rf conftest.dSYM
11006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11009 fi
11010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11011 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11012 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11014 else
11015 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11016 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11017 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11018 $as_echo_n "(cached) " >&6
11019 else
11020 ac_check_lib_save_LIBS=$LIBS
11021 LIBS="-ldld $LIBS"
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char dld_link ();
11036 int
11037 main ()
11038 {
11039 return dld_link ();
11040 ;
11041 return 0;
11042 }
11043 _ACEOF
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049 esac
11050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051 $as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest$ac_exeext
11064 }; then
11065 ac_cv_lib_dld_dld_link=yes
11066 else
11067 $as_echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 ac_cv_lib_dld_dld_link=no
11071 fi
11072
11073 rm -rf conftest.dSYM
11074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076 LIBS=$ac_check_lib_save_LIBS
11077 fi
11078 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11079 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11080 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11082 fi
11083
11084
11085 fi
11086
11087
11088 fi
11089
11090
11091 fi
11092
11093
11094 fi
11095
11096
11097 fi
11098
11099 ;;
11100 esac
11101
11102 if test "x$lt_cv_dlopen" != xno; then
11103 enable_dlopen=yes
11104 else
11105 enable_dlopen=no
11106 fi
11107
11108 case $lt_cv_dlopen in
11109 dlopen)
11110 save_CPPFLAGS="$CPPFLAGS"
11111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11112
11113 save_LDFLAGS="$LDFLAGS"
11114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11115
11116 save_LIBS="$LIBS"
11117 LIBS="$lt_cv_dlopen_libs $LIBS"
11118
11119 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11120 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11121 if test "${lt_cv_dlopen_self+set}" = set; then
11122 $as_echo_n "(cached) " >&6
11123 else
11124 if test "$cross_compiling" = yes; then :
11125 lt_cv_dlopen_self=cross
11126 else
11127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128 lt_status=$lt_dlunknown
11129 cat > conftest.$ac_ext <<_LT_EOF
11130 #line 11130 "configure"
11131 #include "confdefs.h"
11132
11133 #if HAVE_DLFCN_H
11134 #include <dlfcn.h>
11135 #endif
11136
11137 #include <stdio.h>
11138
11139 #ifdef RTLD_GLOBAL
11140 # define LT_DLGLOBAL RTLD_GLOBAL
11141 #else
11142 # ifdef DL_GLOBAL
11143 # define LT_DLGLOBAL DL_GLOBAL
11144 # else
11145 # define LT_DLGLOBAL 0
11146 # endif
11147 #endif
11148
11149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150 find out it does not work in some platform. */
11151 #ifndef LT_DLLAZY_OR_NOW
11152 # ifdef RTLD_LAZY
11153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11154 # else
11155 # ifdef DL_LAZY
11156 # define LT_DLLAZY_OR_NOW DL_LAZY
11157 # else
11158 # ifdef RTLD_NOW
11159 # define LT_DLLAZY_OR_NOW RTLD_NOW
11160 # else
11161 # ifdef DL_NOW
11162 # define LT_DLLAZY_OR_NOW DL_NOW
11163 # else
11164 # define LT_DLLAZY_OR_NOW 0
11165 # endif
11166 # endif
11167 # endif
11168 # endif
11169 #endif
11170
11171 void fnord() { int i=42;}
11172 int main ()
11173 {
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
11176
11177 if (self)
11178 {
11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11181 /* dlclose (self); */
11182 }
11183 else
11184 puts (dlerror ());
11185
11186 return status;
11187 }
11188 _LT_EOF
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>&5
11191 ac_status=$?
11192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11194 (./conftest; exit; ) >&5 2>/dev/null
11195 lt_status=$?
11196 case x$lt_status in
11197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11200 esac
11201 else :
11202 # compilation failed
11203 lt_cv_dlopen_self=no
11204 fi
11205 fi
11206 rm -fr conftest*
11207
11208
11209 fi
11210 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11211 $as_echo "$lt_cv_dlopen_self" >&6; }
11212
11213 if test "x$lt_cv_dlopen_self" = xyes; then
11214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11215 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11216 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11217 if test "${lt_cv_dlopen_self_static+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219 else
11220 if test "$cross_compiling" = yes; then :
11221 lt_cv_dlopen_self_static=cross
11222 else
11223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11224 lt_status=$lt_dlunknown
11225 cat > conftest.$ac_ext <<_LT_EOF
11226 #line 11226 "configure"
11227 #include "confdefs.h"
11228
11229 #if HAVE_DLFCN_H
11230 #include <dlfcn.h>
11231 #endif
11232
11233 #include <stdio.h>
11234
11235 #ifdef RTLD_GLOBAL
11236 # define LT_DLGLOBAL RTLD_GLOBAL
11237 #else
11238 # ifdef DL_GLOBAL
11239 # define LT_DLGLOBAL DL_GLOBAL
11240 # else
11241 # define LT_DLGLOBAL 0
11242 # endif
11243 #endif
11244
11245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11246 find out it does not work in some platform. */
11247 #ifndef LT_DLLAZY_OR_NOW
11248 # ifdef RTLD_LAZY
11249 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11250 # else
11251 # ifdef DL_LAZY
11252 # define LT_DLLAZY_OR_NOW DL_LAZY
11253 # else
11254 # ifdef RTLD_NOW
11255 # define LT_DLLAZY_OR_NOW RTLD_NOW
11256 # else
11257 # ifdef DL_NOW
11258 # define LT_DLLAZY_OR_NOW DL_NOW
11259 # else
11260 # define LT_DLLAZY_OR_NOW 0
11261 # endif
11262 # endif
11263 # endif
11264 # endif
11265 #endif
11266
11267 void fnord() { int i=42;}
11268 int main ()
11269 {
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11272
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11277 /* dlclose (self); */
11278 }
11279 else
11280 puts (dlerror ());
11281
11282 return status;
11283 }
11284 _LT_EOF
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11287 ac_status=$?
11288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11290 (./conftest; exit; ) >&5 2>/dev/null
11291 lt_status=$?
11292 case x$lt_status in
11293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11296 esac
11297 else :
11298 # compilation failed
11299 lt_cv_dlopen_self_static=no
11300 fi
11301 fi
11302 rm -fr conftest*
11303
11304
11305 fi
11306 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11308 fi
11309
11310 CPPFLAGS="$save_CPPFLAGS"
11311 LDFLAGS="$save_LDFLAGS"
11312 LIBS="$save_LIBS"
11313 ;;
11314 esac
11315
11316 case $lt_cv_dlopen_self in
11317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11318 *) enable_dlopen_self=unknown ;;
11319 esac
11320
11321 case $lt_cv_dlopen_self_static in
11322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11323 *) enable_dlopen_self_static=unknown ;;
11324 esac
11325 fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 striplib=
11344 old_striplib=
11345 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11350 { $as_echo "$as_me:$LINENO: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352 else
11353 # FIXME - insert some real tests, host_os isn't really good enough
11354 case $host_os in
11355 darwin*)
11356 if test -n "$STRIP" ; then
11357 striplib="$STRIP -x"
11358 old_striplib="$STRIP -S"
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 else
11362 { $as_echo "$as_me:$LINENO: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365 ;;
11366 *)
11367 { $as_echo "$as_me:$LINENO: result: no" >&5
11368 $as_echo "no" >&6; }
11369 ;;
11370 esac
11371 fi
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384 # Report which library types will actually be built
11385 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11387 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11388 $as_echo "$can_build_shared" >&6; }
11389
11390 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11391 $as_echo_n "checking whether to build shared libraries... " >&6; }
11392 test "$can_build_shared" = "no" && enable_shared=no
11393
11394 # On AIX, shared libraries and static libraries use the same namespace, and
11395 # are all built from PIC.
11396 case $host_os in
11397 aix3*)
11398 test "$enable_shared" = yes && enable_static=no
11399 if test -n "$RANLIB"; then
11400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11401 postinstall_cmds='$RANLIB $lib'
11402 fi
11403 ;;
11404
11405 aix[4-9]*)
11406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11407 test "$enable_shared" = yes && enable_static=no
11408 fi
11409 ;;
11410 esac
11411 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11412 $as_echo "$enable_shared" >&6; }
11413
11414 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11415 $as_echo_n "checking whether to build static libraries... " >&6; }
11416 # Make sure either enable_shared or enable_static is yes.
11417 test "$enable_shared" = yes || enable_static=yes
11418 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11419 $as_echo "$enable_static" >&6; }
11420
11421
11422
11423
11424 fi
11425 ac_ext=c
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
11431 CC="$lt_save_CC"
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 ac_config_commands="$ac_config_commands libtool"
11446
11447
11448
11449
11450 # Only expand once:
11451
11452
11453
11454
11455 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11456 $as_echo_n "checking spl license... " >&6; }
11457 LICENSE=GPL
11458 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11459 $as_echo "$LICENSE" >&6; }
11460 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11461
11462
11463
11464 SPL_CONFIG=all
11465
11466 # Check whether --with-config was given.
11467 if test "${with_config+set}" = set; then
11468 withval=$with_config; SPL_CONFIG="$withval"
11469 fi
11470
11471
11472 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11473 $as_echo_n "checking spl config... " >&6; }
11474 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11475 $as_echo "$SPL_CONFIG" >&6; };
11476
11477
11478 case "$SPL_CONFIG" in
11479 kernel)
11480
11481
11482 # Check whether --with-linux was given.
11483 if test "${with_linux+set}" = set; then
11484 withval=$with_linux; kernelsrc="$withval"
11485 fi
11486
11487
11488
11489 # Check whether --with-linux-obj was given.
11490 if test "${with_linux_obj+set}" = set; then
11491 withval=$with_linux_obj; kernelbuild="$withval"
11492 fi
11493
11494
11495 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11496 $as_echo_n "checking kernel source directory... " >&6; }
11497 if test -z "$kernelsrc"; then
11498 headersdir="/lib/modules/$(uname -r)/build"
11499 if test -e "$headersdir"; then
11500 sourcelink=$(readlink -f "$headersdir")
11501 else
11502 sourcelink=$(ls -1d /usr/src/kernels/* \
11503 /usr/src/linux-* \
11504 2>/dev/null | grep -v obj | tail -1)
11505 fi
11506
11507 if test -e ${sourcelink}; then
11508 kernelsrc=`readlink -f ${sourcelink}`
11509 else
11510 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11511 $as_echo "Not found" >&6; }
11512 { { $as_echo "$as_me:$LINENO: error:
11513 *** Please specify the location of the kernel source
11514 *** with the '--with-linux=PATH' option" >&5
11515 $as_echo "$as_me: error:
11516 *** Please specify the location of the kernel source
11517 *** with the '--with-linux=PATH' option" >&2;}
11518 { (exit 1); exit 1; }; }
11519 fi
11520 else
11521 if test "$kernelsrc" = "NONE"; then
11522 kernsrcver=NONE
11523 fi
11524 fi
11525
11526 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11527 $as_echo "$kernelsrc" >&6; }
11528 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11529 $as_echo_n "checking kernel build directory... " >&6; }
11530 if test -z "$kernelbuild"; then
11531 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
11532 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
11533 elif test -d ${kernelsrc}-obj/`arch`/default; then
11534 kernelbuild=${kernelsrc}-obj/`arch`/default
11535 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
11536 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
11537 else
11538 kernelbuild=${kernelsrc}
11539 fi
11540 fi
11541 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11542 $as_echo "$kernelbuild" >&6; }
11543
11544 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11545 $as_echo_n "checking kernel source version... " >&6; }
11546 utsrelease1=$kernelbuild/include/linux/version.h
11547 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11548 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11549 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11550 utsrelease=linux/version.h
11551 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11552 utsrelease=linux/utsrelease.h
11553 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11554 utsrelease=generated/utsrelease.h
11555 fi
11556
11557 if test "$utsrelease"; then
11558 kernsrcver=`(echo "#include <$utsrelease>";
11559 echo "kernsrcver=UTS_RELEASE") |
11560 cpp -I $kernelbuild/include |
11561 grep "^kernsrcver=" | cut -d \" -f 2`
11562
11563 if test -z "$kernsrcver"; then
11564 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11565 $as_echo "Not found" >&6; }
11566 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11567 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11568 { (exit 1); exit 1; }; }
11569 fi
11570 else
11571 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11572 $as_echo "Not found" >&6; }
11573 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11574 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11575 { (exit 1); exit 1; }; }
11576 fi
11577
11578 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11579 $as_echo "$kernsrcver" >&6; }
11580
11581 LINUX=${kernelsrc}
11582 LINUX_OBJ=${kernelbuild}
11583 LINUX_VERSION=${kernsrcver}
11584
11585
11586
11587
11588
11589
11590 modpost=$LINUX/scripts/Makefile.modpost
11591 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11592 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11593 if test -f "$modpost"; then
11594 if grep -q Modules.symvers $modpost; then
11595 LINUX_SYMBOLS=Modules.symvers
11596 else
11597 LINUX_SYMBOLS=Module.symvers
11598 fi
11599 else
11600 LINUX_SYMBOLS=NONE
11601 fi
11602 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11603 $as_echo "$LINUX_SYMBOLS" >&6; }
11604
11605
11606
11607
11608 abs_srcdir=`readlink -f ${srcdir}`
11609 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11610 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
11611 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
11612
11613 if test "${LINUX_OBJ}" != "${LINUX}"; then
11614 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11615 fi
11616
11617
11618
11619
11620
11621 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11622 $as_echo_n "checking whether debugging is enabled... " >&6; }
11623 # Check whether --enable-debug was given.
11624 if test "${enable_debug+set}" = set; then
11625 enableval=$enable_debug;
11626 else
11627 enable_debug=no
11628 fi
11629
11630
11631 if test "x$enable_debug" = xyes; then
11632
11633 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11634 DEBUG_CFLAGS="-DDEBUG -Werror"
11635
11636 else
11637
11638 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11639 DEBUG_CFLAGS="-DNDEBUG"
11640
11641 fi
11642
11643
11644
11645 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11646 $as_echo "$enable_debug" >&6; }
11647
11648
11649 # Check whether --enable-debug-kmem was given.
11650 if test "${enable_debug_kmem+set}" = set; then
11651 enableval=$enable_debug_kmem;
11652 else
11653 enable_debug_kmem=yes
11654 fi
11655
11656
11657 if test "x$enable_debug_kmem" = xyes; then
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define DEBUG_KMEM 1
11661 _ACEOF
11662
11663 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11664 fi
11665
11666
11667 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11668 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11669 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11670 $as_echo "$enable_debug_kmem" >&6; }
11671
11672
11673 # Check whether --enable-debug-kmem-tracking was given.
11674 if test "${enable_debug_kmem_tracking+set}" = set; then
11675 enableval=$enable_debug_kmem_tracking;
11676 else
11677 enable_debug_kmem_tracking=no
11678 fi
11679
11680
11681 if test "x$enable_debug_kmem_tracking" = xyes; then
11682
11683 cat >>confdefs.h <<\_ACEOF
11684 #define DEBUG_KMEM_TRACKING 1
11685 _ACEOF
11686
11687 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11688 fi
11689
11690
11691 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11692 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11693 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11694 $as_echo "$enable_debug_kmem_tracking" >&6; }
11695
11696
11697 # Check whether --enable-atomic-spinlocks was given.
11698 if test "${enable_atomic_spinlocks+set}" = set; then
11699 enableval=$enable_atomic_spinlocks;
11700 else
11701 enable_atomic_spinlocks=check
11702 fi
11703
11704
11705
11706
11707 cat >conftest.c <<_ACEOF
11708 /* confdefs.h. */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h. */
11713
11714
11715 #include <asm/atomic.h>
11716
11717 int
11718 main (void)
11719 {
11720
11721 atomic64_t *ptr;
11722
11723 ;
11724 return 0;
11725 }
11726
11727 _ACEOF
11728
11729
11730 rm -Rf build && mkdir -p build
11731 echo "obj-m := conftest.o" >build/Makefile
11732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11740 ac_status=$?
11741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743
11744 have_atomic64_t=yes
11745
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_ATOMIC64_T 1
11748 _ACEOF
11749
11750
11751 else
11752 $as_echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 have_atomic64_t=no
11756
11757
11758
11759 fi
11760
11761 rm -Rf build
11762
11763
11764
11765 if test "x$enable_atomic_spinlocks" = xcheck; then
11766
11767 if test "x$have_atomic64_t" = xyes; then
11768
11769 enable_atomic_spinlocks=no
11770
11771 else
11772
11773 enable_atomic_spinlocks=yes
11774
11775 fi
11776
11777
11778 fi
11779
11780
11781 if test "x$enable_atomic_spinlocks" = xyes; then
11782
11783
11784 cat >>confdefs.h <<\_ACEOF
11785 #define ATOMIC_SPINLOCK 1
11786 _ACEOF
11787
11788
11789 else
11790
11791 if test "x$have_atomic64_t" = xno; then
11792
11793 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11795 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11796 See \`config.log' for more details." >&5
11797 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
11798 See \`config.log' for more details." >&2;}
11799 { (exit 1); exit 1; }; }; }
11800
11801 fi
11802
11803
11804 fi
11805
11806
11807 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11808 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11809 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11810 $as_echo "$enable_atomic_spinlocks" >&6; }
11811
11812 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11813 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11814 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11815 $as_echo "$have_atomic64_t" >&6; }
11816
11817 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11818 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
11819
11820
11821 cat >conftest.c <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827
11828
11829 #include <asm/atomic.h>
11830
11831 int
11832 main (void)
11833 {
11834
11835 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
11836
11837 ;
11838 return 0;
11839 }
11840
11841 _ACEOF
11842
11843
11844 rm -Rf build && mkdir -p build
11845 echo "obj-m := conftest.o" >build/Makefile
11846 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857
11858 { $as_echo "$as_me:$LINENO: result: yes" >&5
11859 $as_echo "yes" >&6; }
11860
11861 cat >>confdefs.h <<\_ACEOF
11862 #define HAVE_ATOMIC64_CMPXCHG 1
11863 _ACEOF
11864
11865
11866 else
11867 $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870 { $as_echo "$as_me:$LINENO: result: no" >&5
11871 $as_echo "no" >&6; }
11872
11873
11874
11875 fi
11876
11877 rm -Rf build
11878
11879
11880
11881 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
11882 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
11883
11884
11885 cat >conftest.c <<_ACEOF
11886 /* confdefs.h. */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891
11892
11893 #include <asm/atomic.h>
11894
11895 int
11896 main (void)
11897 {
11898
11899 atomic64_xchg((atomic64_t *)NULL, 0);
11900
11901 ;
11902 return 0;
11903 }
11904
11905 _ACEOF
11906
11907
11908 rm -Rf build && mkdir -p build
11909 echo "obj-m := conftest.o" >build/Makefile
11910 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921
11922 { $as_echo "$as_me:$LINENO: result: yes" >&5
11923 $as_echo "yes" >&6; }
11924
11925 cat >>confdefs.h <<\_ACEOF
11926 #define HAVE_ATOMIC64_XCHG 1
11927 _ACEOF
11928
11929
11930 else
11931 $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 { $as_echo "$as_me:$LINENO: result: no" >&5
11935 $as_echo "no" >&6; }
11936
11937
11938
11939 fi
11940
11941 rm -Rf build
11942
11943
11944
11945 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
11946 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
11947
11948
11949 cat >conftest.c <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11955
11956
11957 #include <linux/types.h>
11958
11959 int
11960 main (void)
11961 {
11962
11963 uintptr_t *ptr;
11964
11965 ;
11966 return 0;
11967 }
11968
11969 _ACEOF
11970
11971
11972 rm -Rf build && mkdir -p build
11973 echo "obj-m := conftest.o" >build/Makefile
11974 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985
11986 { $as_echo "$as_me:$LINENO: result: yes" >&5
11987 $as_echo "yes" >&6; }
11988
11989 cat >>confdefs.h <<\_ACEOF
11990 #define HAVE_UINTPTR_T 1
11991 _ACEOF
11992
11993
11994 else
11995 $as_echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 { $as_echo "$as_me:$LINENO: result: no" >&5
11999 $as_echo "no" >&6; }
12000
12001
12002
12003 fi
12004
12005 rm -Rf build
12006
12007
12008
12009 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12010 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12011
12012
12013 cat >conftest.c <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019
12020
12021 #include <linux/workqueue.h>
12022
12023 int
12024 main (void)
12025 {
12026
12027 struct work_struct work;
12028 INIT_WORK(&work, NULL, NULL);
12029
12030 ;
12031 return 0;
12032 }
12033
12034 _ACEOF
12035
12036
12037 rm -Rf build && mkdir -p build
12038 echo "obj-m := conftest.o" >build/Makefile
12039 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
12050
12051 { $as_echo "$as_me:$LINENO: result: yes" >&5
12052 $as_echo "yes" >&6; }
12053
12054 cat >>confdefs.h <<\_ACEOF
12055 #define HAVE_3ARGS_INIT_WORK 1
12056 _ACEOF
12057
12058
12059 else
12060 $as_echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 { $as_echo "$as_me:$LINENO: result: no" >&5
12064 $as_echo "no" >&6; }
12065
12066
12067
12068 fi
12069
12070 rm -Rf build
12071
12072
12073
12074 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12075 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12076
12077
12078 cat >conftest.c <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084
12085
12086 #include <linux/sysctl.h>
12087
12088 int
12089 main (void)
12090 {
12091
12092 return register_sysctl_table(NULL,0);
12093
12094 ;
12095 return 0;
12096 }
12097
12098 _ACEOF
12099
12100
12101 rm -Rf build && mkdir -p build
12102 echo "obj-m := conftest.o" >build/Makefile
12103 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
12114
12115 { $as_echo "$as_me:$LINENO: result: yes" >&5
12116 $as_echo "yes" >&6; }
12117
12118 cat >>confdefs.h <<\_ACEOF
12119 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12120 _ACEOF
12121
12122
12123 else
12124 $as_echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 { $as_echo "$as_me:$LINENO: result: no" >&5
12128 $as_echo "no" >&6; }
12129
12130
12131
12132 fi
12133
12134 rm -Rf build
12135
12136
12137
12138
12139 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12140 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12141
12142
12143 cat >conftest.c <<_ACEOF
12144 /* confdefs.h. */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149
12150
12151 #include <linux/mm.h>
12152
12153 int
12154 main (void)
12155 {
12156
12157 return set_shrinker(DEFAULT_SEEKS, NULL);
12158
12159 ;
12160 return 0;
12161 }
12162
12163 _ACEOF
12164
12165
12166 rm -Rf build && mkdir -p build
12167 echo "obj-m := conftest.o" >build/Makefile
12168 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179
12180 { $as_echo "$as_me:$LINENO: result: yes" >&5
12181 $as_echo "yes" >&6; }
12182
12183 cat >>confdefs.h <<\_ACEOF
12184 #define HAVE_SET_SHRINKER 1
12185 _ACEOF
12186
12187
12188 else
12189 $as_echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192 { $as_echo "$as_me:$LINENO: result: no" >&5
12193 $as_echo "no" >&6; }
12194
12195
12196
12197 fi
12198
12199 rm -Rf build
12200
12201
12202
12203 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12204 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12205
12206
12207 cat >conftest.c <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213
12214
12215 #include <linux/namei.h>
12216
12217 int
12218 main (void)
12219 {
12220
12221 struct nameidata nd;
12222
12223 nd.path.mnt = NULL;
12224 nd.path.dentry = NULL;
12225
12226 ;
12227 return 0;
12228 }
12229
12230 _ACEOF
12231
12232
12233 rm -Rf build && mkdir -p build
12234 echo "obj-m := conftest.o" >build/Makefile
12235 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246
12247 { $as_echo "$as_me:$LINENO: result: yes" >&5
12248 $as_echo "yes" >&6; }
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_PATH_IN_NAMEIDATA 1
12252 _ACEOF
12253
12254
12255 else
12256 $as_echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 { $as_echo "$as_me:$LINENO: result: no" >&5
12260 $as_echo "no" >&6; }
12261
12262
12263
12264 fi
12265
12266 rm -Rf build
12267
12268
12269
12270
12271 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12272 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12273 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12274 $LINUX_OBJ/Module*.symvers 2>/dev/null
12275 rc=$?
12276 if test $rc -ne 0; then
12277 export=0
12278 for file in kernel/sched.c; do
12279 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12280 "$LINUX_OBJ/$file" 2>/dev/null
12281 rc=$?
12282 if test $rc -eq 0; then
12283 export=1
12284 break;
12285 fi
12286 done
12287 if test $export -eq 0; then
12288 { $as_echo "$as_me:$LINENO: result: no" >&5
12289 $as_echo "no" >&6; }
12290
12291 else
12292 { $as_echo "$as_me:$LINENO: result: yes" >&5
12293 $as_echo "yes" >&6; }
12294
12295 cat >>confdefs.h <<\_ACEOF
12296 #define HAVE_TASK_CURR 1
12297 _ACEOF
12298
12299 fi
12300 else
12301 { $as_echo "$as_me:$LINENO: result: yes" >&5
12302 $as_echo "yes" >&6; }
12303
12304 cat >>confdefs.h <<\_ACEOF
12305 #define HAVE_TASK_CURR 1
12306 _ACEOF
12307
12308 fi
12309
12310
12311 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12312 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12313
12314
12315 cat >conftest.c <<_ACEOF
12316 /* confdefs.h. */
12317 _ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321
12322
12323 #include <linux/sysctl.h>
12324
12325 int
12326 main (void)
12327 {
12328
12329 #ifndef CTL_UNNUMBERED
12330 #error CTL_UNNUMBERED undefined
12331 #endif
12332
12333 ;
12334 return 0;
12335 }
12336
12337 _ACEOF
12338
12339
12340 rm -Rf build && mkdir -p build
12341 echo "obj-m := conftest.o" >build/Makefile
12342 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353
12354 { $as_echo "$as_me:$LINENO: result: yes" >&5
12355 $as_echo "yes" >&6; }
12356
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_CTL_UNNUMBERED 1
12359 _ACEOF
12360
12361
12362 else
12363 $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366 { $as_echo "$as_me:$LINENO: result: no" >&5
12367 $as_echo "no" >&6; }
12368
12369
12370
12371 fi
12372
12373 rm -Rf build
12374
12375
12376
12377
12378 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12379 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12380
12381
12382 cat >conftest.c <<_ACEOF
12383 /* confdefs.h. */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388
12389
12390 #include <linux/sysctl.h>
12391
12392 int
12393 main (void)
12394 {
12395
12396 struct ctl_table ctl;
12397 ctl.ctl_name = 0;
12398
12399 ;
12400 return 0;
12401 }
12402
12403 _ACEOF
12404
12405
12406 rm -Rf build && mkdir -p build
12407 echo "obj-m := conftest.o" >build/Makefile
12408 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12416 ac_status=$?
12417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; }; then
12419
12420 { $as_echo "$as_me:$LINENO: result: yes" >&5
12421 $as_echo "yes" >&6; }
12422
12423 cat >>confdefs.h <<\_ACEOF
12424 #define HAVE_CTL_NAME 1
12425 _ACEOF
12426
12427
12428 else
12429 $as_echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12431
12432 { $as_echo "$as_me:$LINENO: result: no" >&5
12433 $as_echo "no" >&6; }
12434
12435
12436
12437 fi
12438
12439 rm -Rf build
12440
12441
12442
12443 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12444 $as_echo_n "checking whether fls64() is available... " >&6; }
12445
12446
12447 cat >conftest.c <<_ACEOF
12448 /* confdefs.h. */
12449 _ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453
12454
12455 #include <linux/bitops.h>
12456
12457 int
12458 main (void)
12459 {
12460
12461 return fls64(0);
12462
12463 ;
12464 return 0;
12465 }
12466
12467 _ACEOF
12468
12469
12470 rm -Rf build && mkdir -p build
12471 echo "obj-m := conftest.o" >build/Makefile
12472 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483
12484 { $as_echo "$as_me:$LINENO: result: yes" >&5
12485 $as_echo "yes" >&6; }
12486
12487 cat >>confdefs.h <<\_ACEOF
12488 #define HAVE_FLS64 1
12489 _ACEOF
12490
12491
12492 else
12493 $as_echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 { $as_echo "$as_me:$LINENO: result: no" >&5
12497 $as_echo "no" >&6; }
12498
12499
12500
12501 fi
12502
12503 rm -Rf build
12504
12505
12506
12507
12508 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12509 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12510 grep -q -E '[[:space:]]device_create[[:space:]]' \
12511 $LINUX_OBJ/Module*.symvers 2>/dev/null
12512 rc=$?
12513 if test $rc -ne 0; then
12514 export=0
12515 for file in drivers/base/core.c; do
12516 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12517 "$LINUX_OBJ/$file" 2>/dev/null
12518 rc=$?
12519 if test $rc -eq 0; then
12520 export=1
12521 break;
12522 fi
12523 done
12524 if test $export -eq 0; then
12525 { $as_echo "$as_me:$LINENO: result: no" >&5
12526 $as_echo "no" >&6; }
12527
12528 else
12529 { $as_echo "$as_me:$LINENO: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531
12532 cat >>confdefs.h <<\_ACEOF
12533 #define HAVE_DEVICE_CREATE 1
12534 _ACEOF
12535
12536 fi
12537 else
12538 { $as_echo "$as_me:$LINENO: result: yes" >&5
12539 $as_echo "yes" >&6; }
12540
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_DEVICE_CREATE 1
12543 _ACEOF
12544
12545 fi
12546
12547
12548
12549 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12550 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12551 tmp_flags="$EXTRA_KCFLAGS"
12552 EXTRA_KCFLAGS="-Werror"
12553
12554
12555 cat >conftest.c <<_ACEOF
12556 /* confdefs.h. */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561
12562
12563 #include <linux/device.h>
12564
12565 int
12566 main (void)
12567 {
12568
12569 device_create(NULL, NULL, 0, NULL, "%d", 1);
12570
12571 ;
12572 return 0;
12573 }
12574
12575 _ACEOF
12576
12577
12578 rm -Rf build && mkdir -p build
12579 echo "obj-m := conftest.o" >build/Makefile
12580 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591
12592 { $as_echo "$as_me:$LINENO: result: yes" >&5
12593 $as_echo "yes" >&6; }
12594
12595 cat >>confdefs.h <<\_ACEOF
12596 #define HAVE_5ARGS_DEVICE_CREATE 1
12597 _ACEOF
12598
12599
12600 else
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12606
12607
12608
12609 fi
12610
12611 rm -Rf build
12612
12613
12614 EXTRA_KCFLAGS="$tmp_flags"
12615
12616
12617 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12618 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
12619 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12620 $LINUX_OBJ/Module*.symvers 2>/dev/null
12621 rc=$?
12622 if test $rc -ne 0; then
12623 export=0
12624 for file in drivers/base/class.c; do
12625 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12626 "$LINUX_OBJ/$file" 2>/dev/null
12627 rc=$?
12628 if test $rc -eq 0; then
12629 export=1
12630 break;
12631 fi
12632 done
12633 if test $export -eq 0; then
12634 { $as_echo "$as_me:$LINENO: result: no" >&5
12635 $as_echo "no" >&6; }
12636
12637 else
12638 { $as_echo "$as_me:$LINENO: result: yes" >&5
12639 $as_echo "yes" >&6; }
12640
12641 cat >>confdefs.h <<\_ACEOF
12642 #define HAVE_CLASS_DEVICE_CREATE 1
12643 _ACEOF
12644
12645 fi
12646 else
12647 { $as_echo "$as_me:$LINENO: result: yes" >&5
12648 $as_echo "yes" >&6; }
12649
12650 cat >>confdefs.h <<\_ACEOF
12651 #define HAVE_CLASS_DEVICE_CREATE 1
12652 _ACEOF
12653
12654 fi
12655
12656
12657
12658 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12659 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
12660 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12661 $LINUX_OBJ/Module*.symvers 2>/dev/null
12662 rc=$?
12663 if test $rc -ne 0; then
12664 export=0
12665 for file in kernel/time.c; do
12666 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12667 "$LINUX_OBJ/$file" 2>/dev/null
12668 rc=$?
12669 if test $rc -eq 0; then
12670 export=1
12671 break;
12672 fi
12673 done
12674 if test $export -eq 0; then
12675 { $as_echo "$as_me:$LINENO: result: no" >&5
12676 $as_echo "no" >&6; }
12677
12678 else
12679 { $as_echo "$as_me:$LINENO: result: yes" >&5
12680 $as_echo "yes" >&6; }
12681
12682 cat >>confdefs.h <<\_ACEOF
12683 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12684 _ACEOF
12685
12686 fi
12687 else
12688 { $as_echo "$as_me:$LINENO: result: yes" >&5
12689 $as_echo "yes" >&6; }
12690
12691 cat >>confdefs.h <<\_ACEOF
12692 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12693 _ACEOF
12694
12695 fi
12696
12697
12698
12699 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12700 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
12701
12702
12703 cat >conftest.c <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709
12710
12711 #include <linux/time.h>
12712 void set_normalized_timespec(struct timespec *ts,
12713 time_t sec, long nsec) { }
12714
12715 int
12716 main (void)
12717 {
12718
12719 ;
12720 return 0;
12721 }
12722
12723 _ACEOF
12724
12725
12726 rm -Rf build && mkdir -p build
12727 echo "obj-m := conftest.o" >build/Makefile
12728 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12731 ac_status=$?
12732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739
12740 { $as_echo "$as_me:$LINENO: result: no" >&5
12741 $as_echo "no" >&6; }
12742
12743 else
12744 $as_echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 { $as_echo "$as_me:$LINENO: result: yes" >&5
12748 $as_echo "yes" >&6; }
12749
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
12752 _ACEOF
12753
12754
12755
12756
12757 fi
12758
12759 rm -Rf build
12760
12761
12762
12763
12764 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
12765 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
12766
12767
12768 cat >conftest.c <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774
12775
12776 #include <linux/time.h>
12777
12778 int
12779 main (void)
12780 {
12781
12782 struct timespec a, b, c = { 0 };
12783 c = timespec_sub(a, b);
12784
12785 ;
12786 return 0;
12787 }
12788
12789 _ACEOF
12790
12791
12792 rm -Rf build && mkdir -p build
12793 echo "obj-m := conftest.o" >build/Makefile
12794 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805
12806 { $as_echo "$as_me:$LINENO: result: yes" >&5
12807 $as_echo "yes" >&6; }
12808
12809 cat >>confdefs.h <<\_ACEOF
12810 #define HAVE_TIMESPEC_SUB 1
12811 _ACEOF
12812
12813
12814 else
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 { $as_echo "$as_me:$LINENO: result: no" >&5
12819 $as_echo "no" >&6; }
12820
12821
12822
12823 fi
12824
12825 rm -Rf build
12826
12827
12828
12829
12830 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
12831 $as_echo_n "checking whether init_utsname() is available... " >&6; }
12832
12833
12834 cat >conftest.c <<_ACEOF
12835 /* confdefs.h. */
12836 _ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840
12841
12842 #include <linux/utsname.h>
12843
12844 int
12845 main (void)
12846 {
12847
12848 struct new_utsname *a = init_utsname();
12849
12850 ;
12851 return 0;
12852 }
12853
12854 _ACEOF
12855
12856
12857 rm -Rf build && mkdir -p build
12858 echo "obj-m := conftest.o" >build/Makefile
12859 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870
12871 { $as_echo "$as_me:$LINENO: result: yes" >&5
12872 $as_echo "yes" >&6; }
12873
12874 cat >>confdefs.h <<\_ACEOF
12875 #define HAVE_INIT_UTSNAME 1
12876 _ACEOF
12877
12878
12879 else
12880 $as_echo "$as_me: failed program was:" >&5
12881 sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 { $as_echo "$as_me:$LINENO: result: no" >&5
12884 $as_echo "no" >&6; }
12885
12886
12887
12888 fi
12889
12890 rm -Rf build
12891
12892
12893
12894
12895 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
12896 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
12897
12898
12899 cat >conftest.c <<_ACEOF
12900 /* confdefs.h. */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905
12906
12907 #include <linux/fdtable.h>
12908
12909 int
12910 main (void)
12911 {
12912
12913 return 0;
12914
12915 ;
12916 return 0;
12917 }
12918
12919 _ACEOF
12920
12921
12922 rm -Rf build && mkdir -p build
12923 echo "obj-m := conftest.o" >build/Makefile
12924 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12935
12936
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_FDTABLE_HEADER 1
12939 _ACEOF
12940
12941 { $as_echo "$as_me:$LINENO: result: yes" >&5
12942 $as_echo "yes" >&6; }
12943
12944
12945 else
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 { $as_echo "$as_me:$LINENO: result: no" >&5
12950 $as_echo "no" >&6; }
12951
12952
12953
12954
12955 fi
12956
12957 rm -Rf build
12958
12959
12960
12961
12962
12963 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
12964 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
12965
12966
12967 cat >conftest.c <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973
12974
12975 #include <linux/sched.h>
12976 #include <linux/file.h>
12977 #ifdef HAVE_FDTABLE_HEADER
12978 #include <linux/fdtable.h>
12979 #endif
12980
12981 int
12982 main (void)
12983 {
12984
12985 struct files_struct *files = current->files;
12986 struct fdtable *fdt = files_fdtable(files);
12987
12988 ;
12989 return 0;
12990 }
12991
12992 _ACEOF
12993
12994
12995 rm -Rf build && mkdir -p build
12996 echo "obj-m := conftest.o" >build/Makefile
12997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008
13009 { $as_echo "$as_me:$LINENO: result: yes" >&5
13010 $as_echo "yes" >&6; }
13011
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_FILES_FDTABLE 1
13014 _ACEOF
13015
13016
13017 else
13018 $as_echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021 { $as_echo "$as_me:$LINENO: result: no" >&5
13022 $as_echo "no" >&6; }
13023
13024
13025
13026 fi
13027
13028 rm -Rf build
13029
13030
13031
13032
13033 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13034 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13035
13036
13037 cat >conftest.c <<_ACEOF
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043
13044
13045 #include <linux/uaccess.h>
13046
13047 int
13048 main (void)
13049 {
13050
13051 return 0;
13052
13053 ;
13054 return 0;
13055 }
13056
13057 _ACEOF
13058
13059
13060 rm -Rf build && mkdir -p build
13061 echo "obj-m := conftest.o" >build/Makefile
13062 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13070 ac_status=$?
13071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13073
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_UACCESS_HEADER 1
13077 _ACEOF
13078
13079 { $as_echo "$as_me:$LINENO: result: yes" >&5
13080 $as_echo "yes" >&6; }
13081
13082
13083 else
13084 $as_echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 { $as_echo "$as_me:$LINENO: result: no" >&5
13088 $as_echo "no" >&6; }
13089
13090
13091
13092
13093 fi
13094
13095 rm -Rf build
13096
13097
13098
13099
13100
13101 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13102 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13103
13104
13105 cat >conftest.c <<_ACEOF
13106 /* confdefs.h. */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13111
13112
13113 #include <linux/slab.h>
13114
13115 int
13116 main (void)
13117 {
13118
13119 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13120
13121 ;
13122 return 0;
13123 }
13124
13125 _ACEOF
13126
13127
13128 rm -Rf build && mkdir -p build
13129 echo "obj-m := conftest.o" >build/Makefile
13130 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141
13142 { $as_echo "$as_me:$LINENO: result: yes" >&5
13143 $as_echo "yes" >&6; }
13144
13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_KMALLOC_NODE 1
13147 _ACEOF
13148
13149
13150 else
13151 $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154 { $as_echo "$as_me:$LINENO: result: no" >&5
13155 $as_echo "no" >&6; }
13156
13157
13158
13159 fi
13160
13161 rm -Rf build
13162
13163
13164
13165
13166 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13167 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13168 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13169 $LINUX_OBJ/Module*.symvers 2>/dev/null
13170 rc=$?
13171 if test $rc -ne 0; then
13172 export=0
13173 for file in ; do
13174 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13175 "$LINUX_OBJ/$file" 2>/dev/null
13176 rc=$?
13177 if test $rc -eq 0; then
13178 export=1
13179 break;
13180 fi
13181 done
13182 if test $export -eq 0; then
13183 { $as_echo "$as_me:$LINENO: result: no" >&5
13184 $as_echo "no" >&6; }
13185
13186 else
13187 { $as_echo "$as_me:$LINENO: result: yes" >&5
13188 $as_echo "yes" >&6; }
13189
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_MONOTONIC_CLOCK 1
13192 _ACEOF
13193
13194 fi
13195 else
13196 { $as_echo "$as_me:$LINENO: result: yes" >&5
13197 $as_echo "yes" >&6; }
13198
13199 cat >>confdefs.h <<\_ACEOF
13200 #define HAVE_MONOTONIC_CLOCK 1
13201 _ACEOF
13202
13203 fi
13204
13205
13206
13207 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13208 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13209
13210
13211 cat >conftest.c <<_ACEOF
13212 /* confdefs.h. */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217
13218
13219 #include <linux/fs.h>
13220 #include <linux/mutex.h>
13221
13222 int
13223 main (void)
13224 {
13225
13226 struct inode i;
13227 mutex_init(&i.i_mutex);
13228
13229 ;
13230 return 0;
13231 }
13232
13233 _ACEOF
13234
13235
13236 rm -Rf build && mkdir -p build
13237 echo "obj-m := conftest.o" >build/Makefile
13238 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240 (eval $ac_try) 2>&5
13241 ac_status=$?
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13249
13250 { $as_echo "$as_me:$LINENO: result: yes" >&5
13251 $as_echo "yes" >&6; }
13252
13253 cat >>confdefs.h <<\_ACEOF
13254 #define HAVE_INODE_I_MUTEX 1
13255 _ACEOF
13256
13257
13258 else
13259 $as_echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262 { $as_echo "$as_me:$LINENO: result: no" >&5
13263 $as_echo "no" >&6; }
13264
13265
13266
13267 fi
13268
13269 rm -Rf build
13270
13271
13272
13273
13274 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13275 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13276
13277
13278 cat >conftest.c <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284
13285
13286 #include <linux/mutex.h>
13287
13288 int
13289 main (void)
13290 {
13291
13292 struct mutex mtx;
13293 mtx.owner = NULL;
13294
13295 ;
13296 return 0;
13297 }
13298
13299 _ACEOF
13300
13301
13302 rm -Rf build && mkdir -p build
13303 echo "obj-m := conftest.o" >build/Makefile
13304 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315
13316 { $as_echo "$as_me:$LINENO: result: yes" >&5
13317 $as_echo "yes" >&6; }
13318
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_MUTEX_OWNER 1
13321 _ACEOF
13322
13323
13324 else
13325 $as_echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 { $as_echo "$as_me:$LINENO: result: no" >&5
13329 $as_echo "no" >&6; }
13330
13331
13332
13333 fi
13334
13335 rm -Rf build
13336
13337
13338
13339
13340 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13341 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13342
13343
13344 cat >conftest.c <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13350
13351
13352 #include <linux/mutex.h>
13353
13354 int
13355 main (void)
13356 {
13357
13358 struct mutex mutex;
13359 mutex_init(&mutex);
13360 mutex_lock_nested(&mutex, 0);
13361
13362 ;
13363 return 0;
13364 }
13365
13366 _ACEOF
13367
13368
13369 rm -Rf build && mkdir -p build
13370 echo "obj-m := conftest.o" >build/Makefile
13371 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382
13383 { $as_echo "$as_me:$LINENO: result: yes" >&5
13384 $as_echo "yes" >&6; }
13385
13386 cat >>confdefs.h <<\_ACEOF
13387 #define HAVE_MUTEX_LOCK_NESTED 1
13388 _ACEOF
13389
13390
13391 else
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395 { $as_echo "$as_me:$LINENO: result: no" >&5
13396 $as_echo "no" >&6; }
13397
13398
13399
13400 fi
13401
13402 rm -Rf build
13403
13404
13405
13406
13407 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
13408 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
13409 grep -q -E '[[:space:]]div64_64[[:space:]]' \
13410 $LINUX_OBJ/Module*.symvers 2>/dev/null
13411 rc=$?
13412 if test $rc -ne 0; then
13413 export=0
13414 for file in ; do
13415 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
13416 "$LINUX_OBJ/$file" 2>/dev/null
13417 rc=$?
13418 if test $rc -eq 0; then
13419 export=1
13420 break;
13421 fi
13422 done
13423 if test $export -eq 0; then
13424 { $as_echo "$as_me:$LINENO: result: no" >&5
13425 $as_echo "no" >&6; }
13426
13427 else
13428 { $as_echo "$as_me:$LINENO: result: yes" >&5
13429 $as_echo "yes" >&6; }
13430
13431 cat >>confdefs.h <<\_ACEOF
13432 #define HAVE_DIV64_64 1
13433 _ACEOF
13434
13435 fi
13436 else
13437 { $as_echo "$as_me:$LINENO: result: yes" >&5
13438 $as_echo "yes" >&6; }
13439
13440 cat >>confdefs.h <<\_ACEOF
13441 #define HAVE_DIV64_64 1
13442 _ACEOF
13443
13444 fi
13445
13446
13447
13448 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
13449 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
13450 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
13451 $LINUX_OBJ/Module*.symvers 2>/dev/null
13452 rc=$?
13453 if test $rc -ne 0; then
13454 export=0
13455 for file in ; do
13456 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
13457 "$LINUX_OBJ/$file" 2>/dev/null
13458 rc=$?
13459 if test $rc -eq 0; then
13460 export=1
13461 break;
13462 fi
13463 done
13464 if test $export -eq 0; then
13465 { $as_echo "$as_me:$LINENO: result: no" >&5
13466 $as_echo "no" >&6; }
13467
13468 else
13469 { $as_echo "$as_me:$LINENO: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_DIV64_U64 1
13474 _ACEOF
13475
13476 fi
13477 else
13478 { $as_echo "$as_me:$LINENO: result: yes" >&5
13479 $as_echo "yes" >&6; }
13480
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_DIV64_U64 1
13483 _ACEOF
13484
13485 fi
13486
13487
13488
13489 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13490 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13491
13492
13493 cat >conftest.c <<_ACEOF
13494 /* confdefs.h. */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499
13500
13501 #include <linux/smp.h>
13502
13503 int
13504 main (void)
13505 {
13506
13507 on_each_cpu(NULL, NULL, 0);
13508
13509 ;
13510 return 0;
13511 }
13512
13513 _ACEOF
13514
13515
13516 rm -Rf build && mkdir -p build
13517 echo "obj-m := conftest.o" >build/Makefile
13518 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529
13530 { $as_echo "$as_me:$LINENO: result: yes" >&5
13531 $as_echo "yes" >&6; }
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_3ARGS_ON_EACH_CPU 1
13535 _ACEOF
13536
13537
13538 else
13539 $as_echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13541
13542 { $as_echo "$as_me:$LINENO: result: no" >&5
13543 $as_echo "no" >&6; }
13544
13545
13546
13547 fi
13548
13549 rm -Rf build
13550
13551
13552
13553
13554 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13555 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13556 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13557 $LINUX_OBJ/Module*.symvers 2>/dev/null
13558 rc=$?
13559 if test $rc -ne 0; then
13560 export=0
13561 for file in ; do
13562 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13563 "$LINUX_OBJ/$file" 2>/dev/null
13564 rc=$?
13565 if test $rc -eq 0; then
13566 export=1
13567 break;
13568 fi
13569 done
13570 if test $export -eq 0; then
13571 { $as_echo "$as_me:$LINENO: result: no" >&5
13572 $as_echo "no" >&6; }
13573
13574 else
13575 { $as_echo "$as_me:$LINENO: result: yes" >&5
13576 $as_echo "yes" >&6; }
13577
13578 cat >>confdefs.h <<\_ACEOF
13579 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13580 _ACEOF
13581
13582 fi
13583 else
13584 { $as_echo "$as_me:$LINENO: result: yes" >&5
13585 $as_echo "yes" >&6; }
13586
13587 cat >>confdefs.h <<\_ACEOF
13588 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13589 _ACEOF
13590
13591 fi
13592
13593
13594
13595 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13596 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13597 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13598 $LINUX_OBJ/Module*.symvers 2>/dev/null
13599 rc=$?
13600 if test $rc -ne 0; then
13601 export=0
13602 for file in ; do
13603 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13604 "$LINUX_OBJ/$file" 2>/dev/null
13605 rc=$?
13606 if test $rc -eq 0; then
13607 export=1
13608 break;
13609 fi
13610 done
13611 if test $export -eq 0; then
13612 { $as_echo "$as_me:$LINENO: result: no" >&5
13613 $as_echo "no" >&6; }
13614
13615 else
13616 { $as_echo "$as_me:$LINENO: result: yes" >&5
13617 $as_echo "yes" >&6; }
13618
13619 cat >>confdefs.h <<\_ACEOF
13620 #define HAVE_GET_VMALLOC_INFO 1
13621 _ACEOF
13622
13623 fi
13624 else
13625 { $as_echo "$as_me:$LINENO: result: yes" >&5
13626 $as_echo "yes" >&6; }
13627
13628 cat >>confdefs.h <<\_ACEOF
13629 #define HAVE_GET_VMALLOC_INFO 1
13630 _ACEOF
13631
13632 fi
13633
13634
13635
13636 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13637 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13638 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13639 rc=$?
13640 if test $rc -eq 0; then
13641 { $as_echo "$as_me:$LINENO: result: yes" >&5
13642 $as_echo "yes" >&6; }
13643
13644 cat >>confdefs.h <<\_ACEOF
13645 #define HAVE_PGDAT_HELPERS 1
13646 _ACEOF
13647
13648 else
13649 { $as_echo "$as_me:$LINENO: result: no" >&5
13650 $as_echo "no" >&6; }
13651 fi
13652
13653
13654 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13655 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
13656 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13657 $LINUX_OBJ/Module*.symvers 2>/dev/null
13658 rc=$?
13659 if test $rc -ne 0; then
13660 export=0
13661 for file in ; do
13662 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13663 "$LINUX_OBJ/$file" 2>/dev/null
13664 rc=$?
13665 if test $rc -eq 0; then
13666 export=1
13667 break;
13668 fi
13669 done
13670 if test $export -eq 0; then
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672 $as_echo "no" >&6; }
13673
13674 else
13675 { $as_echo "$as_me:$LINENO: result: yes" >&5
13676 $as_echo "yes" >&6; }
13677
13678 cat >>confdefs.h <<\_ACEOF
13679 #define HAVE_FIRST_ONLINE_PGDAT 1
13680 _ACEOF
13681
13682 fi
13683 else
13684 { $as_echo "$as_me:$LINENO: result: yes" >&5
13685 $as_echo "yes" >&6; }
13686
13687 cat >>confdefs.h <<\_ACEOF
13688 #define HAVE_FIRST_ONLINE_PGDAT 1
13689 _ACEOF
13690
13691 fi
13692
13693
13694
13695 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13696 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
13697 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13698 $LINUX_OBJ/Module*.symvers 2>/dev/null
13699 rc=$?
13700 if test $rc -ne 0; then
13701 export=0
13702 for file in ; do
13703 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13704 "$LINUX_OBJ/$file" 2>/dev/null
13705 rc=$?
13706 if test $rc -eq 0; then
13707 export=1
13708 break;
13709 fi
13710 done
13711 if test $export -eq 0; then
13712 { $as_echo "$as_me:$LINENO: result: no" >&5
13713 $as_echo "no" >&6; }
13714
13715 else
13716 { $as_echo "$as_me:$LINENO: result: yes" >&5
13717 $as_echo "yes" >&6; }
13718
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_NEXT_ONLINE_PGDAT 1
13721 _ACEOF
13722
13723 fi
13724 else
13725 { $as_echo "$as_me:$LINENO: result: yes" >&5
13726 $as_echo "yes" >&6; }
13727
13728 cat >>confdefs.h <<\_ACEOF
13729 #define HAVE_NEXT_ONLINE_PGDAT 1
13730 _ACEOF
13731
13732 fi
13733
13734
13735
13736 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13737 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
13738 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13739 $LINUX_OBJ/Module*.symvers 2>/dev/null
13740 rc=$?
13741 if test $rc -ne 0; then
13742 export=0
13743 for file in ; do
13744 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13745 "$LINUX_OBJ/$file" 2>/dev/null
13746 rc=$?
13747 if test $rc -eq 0; then
13748 export=1
13749 break;
13750 fi
13751 done
13752 if test $export -eq 0; then
13753 { $as_echo "$as_me:$LINENO: result: no" >&5
13754 $as_echo "no" >&6; }
13755
13756 else
13757 { $as_echo "$as_me:$LINENO: result: yes" >&5
13758 $as_echo "yes" >&6; }
13759
13760 cat >>confdefs.h <<\_ACEOF
13761 #define HAVE_NEXT_ZONE 1
13762 _ACEOF
13763
13764 fi
13765 else
13766 { $as_echo "$as_me:$LINENO: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768
13769 cat >>confdefs.h <<\_ACEOF
13770 #define HAVE_NEXT_ZONE 1
13771 _ACEOF
13772
13773 fi
13774
13775
13776
13777 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13778 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
13779 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13780 $LINUX_OBJ/Module*.symvers 2>/dev/null
13781 rc=$?
13782 if test $rc -ne 0; then
13783 export=0
13784 for file in ; do
13785 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13786 "$LINUX_OBJ/$file" 2>/dev/null
13787 rc=$?
13788 if test $rc -eq 0; then
13789 export=1
13790 break;
13791 fi
13792 done
13793 if test $export -eq 0; then
13794 { $as_echo "$as_me:$LINENO: result: no" >&5
13795 $as_echo "no" >&6; }
13796
13797 else
13798 { $as_echo "$as_me:$LINENO: result: yes" >&5
13799 $as_echo "yes" >&6; }
13800
13801 cat >>confdefs.h <<\_ACEOF
13802 #define HAVE_PGDAT_LIST 1
13803 _ACEOF
13804
13805 fi
13806 else
13807 { $as_echo "$as_me:$LINENO: result: yes" >&5
13808 $as_echo "yes" >&6; }
13809
13810 cat >>confdefs.h <<\_ACEOF
13811 #define HAVE_PGDAT_LIST 1
13812 _ACEOF
13813
13814 fi
13815
13816
13817
13818 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13819 $as_echo_n "checking whether global_page_state() is available... " >&6; }
13820
13821
13822 cat >conftest.c <<_ACEOF
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828
13829
13830 #include <linux/mm.h>
13831
13832 int
13833 main (void)
13834 {
13835
13836 unsigned long state;
13837 state = global_page_state(0);
13838
13839 ;
13840 return 0;
13841 }
13842
13843 _ACEOF
13844
13845
13846 rm -Rf build && mkdir -p build
13847 echo "obj-m := conftest.o" >build/Makefile
13848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13851 ac_status=$?
13852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
13859
13860 { $as_echo "$as_me:$LINENO: result: yes" >&5
13861 $as_echo "yes" >&6; }
13862
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_GLOBAL_PAGE_STATE 1
13865 _ACEOF
13866
13867
13868 else
13869 $as_echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872 { $as_echo "$as_me:$LINENO: result: no" >&5
13873 $as_echo "no" >&6; }
13874
13875
13876
13877 fi
13878
13879 rm -Rf build
13880
13881
13882
13883
13884 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
13885 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
13886
13887
13888 cat >conftest.c <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894
13895
13896 #include <linux/mm.h>
13897
13898 int
13899 main (void)
13900 {
13901
13902 enum zone_stat_item zsi;
13903 zsi = NR_FREE_PAGES;
13904
13905 ;
13906 return 0;
13907 }
13908
13909 _ACEOF
13910
13911
13912 rm -Rf build && mkdir -p build
13913 echo "obj-m := conftest.o" >build/Makefile
13914 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925
13926 { $as_echo "$as_me:$LINENO: result: yes" >&5
13927 $as_echo "yes" >&6; }
13928
13929 cat >>confdefs.h <<\_ACEOF
13930 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
13931 _ACEOF
13932
13933
13934 else
13935 $as_echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 { $as_echo "$as_me:$LINENO: result: no" >&5
13939 $as_echo "no" >&6; }
13940
13941
13942
13943 fi
13944
13945 rm -Rf build
13946
13947
13948
13949
13950 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
13951 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
13952
13953
13954 cat >conftest.c <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960
13961
13962 #include <linux/mm.h>
13963
13964 int
13965 main (void)
13966 {
13967
13968 enum zone_stat_item zsi;
13969 zsi = NR_INACTIVE;
13970
13971 ;
13972 return 0;
13973 }
13974
13975 _ACEOF
13976
13977
13978 rm -Rf build && mkdir -p build
13979 echo "obj-m := conftest.o" >build/Makefile
13980 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13988 ac_status=$?
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991
13992 { $as_echo "$as_me:$LINENO: result: yes" >&5
13993 $as_echo "yes" >&6; }
13994
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
13997 _ACEOF
13998
13999
14000 else
14001 $as_echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004 { $as_echo "$as_me:$LINENO: result: no" >&5
14005 $as_echo "no" >&6; }
14006
14007
14008
14009 fi
14010
14011 rm -Rf build
14012
14013
14014
14015 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14016 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14017
14018
14019 cat >conftest.c <<_ACEOF
14020 /* confdefs.h. */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h. */
14025
14026
14027 #include <linux/mm.h>
14028
14029 int
14030 main (void)
14031 {
14032
14033 enum zone_stat_item zsi;
14034 zsi = NR_INACTIVE_ANON;
14035
14036 ;
14037 return 0;
14038 }
14039
14040 _ACEOF
14041
14042
14043 rm -Rf build && mkdir -p build
14044 echo "obj-m := conftest.o" >build/Makefile
14045 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056
14057 { $as_echo "$as_me:$LINENO: result: yes" >&5
14058 $as_echo "yes" >&6; }
14059
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14062 _ACEOF
14063
14064
14065 else
14066 $as_echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14068
14069 { $as_echo "$as_me:$LINENO: result: no" >&5
14070 $as_echo "no" >&6; }
14071
14072
14073
14074 fi
14075
14076 rm -Rf build
14077
14078
14079
14080 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14081 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14082
14083
14084 cat >conftest.c <<_ACEOF
14085 /* confdefs.h. */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090
14091
14092 #include <linux/mm.h>
14093
14094 int
14095 main (void)
14096 {
14097
14098 enum zone_stat_item zsi;
14099 zsi = NR_INACTIVE_FILE;
14100
14101 ;
14102 return 0;
14103 }
14104
14105 _ACEOF
14106
14107
14108 rm -Rf build && mkdir -p build
14109 echo "obj-m := conftest.o" >build/Makefile
14110 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14118 ac_status=$?
14119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121
14122 { $as_echo "$as_me:$LINENO: result: yes" >&5
14123 $as_echo "yes" >&6; }
14124
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14127 _ACEOF
14128
14129
14130 else
14131 $as_echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 { $as_echo "$as_me:$LINENO: result: no" >&5
14135 $as_echo "no" >&6; }
14136
14137
14138
14139 fi
14140
14141 rm -Rf build
14142
14143
14144
14145
14146 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14147 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14148
14149
14150 cat >conftest.c <<_ACEOF
14151 /* confdefs.h. */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156
14157
14158 #include <linux/mm.h>
14159
14160 int
14161 main (void)
14162 {
14163
14164 enum zone_stat_item zsi;
14165 zsi = NR_ACTIVE;
14166
14167 ;
14168 return 0;
14169 }
14170
14171 _ACEOF
14172
14173
14174 rm -Rf build && mkdir -p build
14175 echo "obj-m := conftest.o" >build/Makefile
14176 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187
14188 { $as_echo "$as_me:$LINENO: result: yes" >&5
14189 $as_echo "yes" >&6; }
14190
14191 cat >>confdefs.h <<\_ACEOF
14192 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14193 _ACEOF
14194
14195
14196 else
14197 $as_echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 { $as_echo "$as_me:$LINENO: result: no" >&5
14201 $as_echo "no" >&6; }
14202
14203
14204
14205 fi
14206
14207 rm -Rf build
14208
14209
14210
14211 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14212 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14213
14214
14215 cat >conftest.c <<_ACEOF
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221
14222
14223 #include <linux/mm.h>
14224
14225 int
14226 main (void)
14227 {
14228
14229 enum zone_stat_item zsi;
14230 zsi = NR_ACTIVE_ANON;
14231
14232 ;
14233 return 0;
14234 }
14235
14236 _ACEOF
14237
14238
14239 rm -Rf build && mkdir -p build
14240 echo "obj-m := conftest.o" >build/Makefile
14241 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252
14253 { $as_echo "$as_me:$LINENO: result: yes" >&5
14254 $as_echo "yes" >&6; }
14255
14256 cat >>confdefs.h <<\_ACEOF
14257 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14258 _ACEOF
14259
14260
14261 else
14262 $as_echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14264
14265 { $as_echo "$as_me:$LINENO: result: no" >&5
14266 $as_echo "no" >&6; }
14267
14268
14269
14270 fi
14271
14272 rm -Rf build
14273
14274
14275
14276 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14277 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14278
14279
14280 cat >conftest.c <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286
14287
14288 #include <linux/mm.h>
14289
14290 int
14291 main (void)
14292 {
14293
14294 enum zone_stat_item zsi;
14295 zsi = NR_ACTIVE_FILE;
14296
14297 ;
14298 return 0;
14299 }
14300
14301 _ACEOF
14302
14303
14304 rm -Rf build && mkdir -p build
14305 echo "obj-m := conftest.o" >build/Makefile
14306 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308 (eval $ac_try) 2>&5
14309 ac_status=$?
14310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14314 ac_status=$?
14315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317
14318 { $as_echo "$as_me:$LINENO: result: yes" >&5
14319 $as_echo "yes" >&6; }
14320
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14323 _ACEOF
14324
14325
14326 else
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 { $as_echo "$as_me:$LINENO: result: no" >&5
14331 $as_echo "no" >&6; }
14332
14333
14334
14335 fi
14336
14337 rm -Rf build
14338
14339
14340
14341
14342 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14343 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14344
14345
14346 cat >conftest.c <<_ACEOF
14347 /* confdefs.h. */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14352
14353
14354
14355 int
14356 main (void)
14357 {
14358
14359 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14360 #error "global_page_state needs NR_FREE_PAGES"
14361 #endif
14362
14363 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14364 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14365 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14366 #error "global_page_state needs NR_ACTIVE*"
14367 #endif
14368
14369 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14370 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14371 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14372 #error "global_page_state needs NR_INACTIVE*"
14373 #endif
14374
14375 ;
14376 return 0;
14377 }
14378
14379 _ACEOF
14380
14381
14382 rm -Rf build && mkdir -p build
14383 echo "obj-m := conftest.o" >build/Makefile
14384 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14392 ac_status=$?
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395
14396 { $as_echo "$as_me:$LINENO: result: no" >&5
14397 $as_echo "no" >&6; }
14398
14399 else
14400 $as_echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 { $as_echo "$as_me:$LINENO: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405
14406 cat >>confdefs.h <<\_ACEOF
14407 #define NEED_GET_ZONE_COUNTS 1
14408 _ACEOF
14409
14410
14411 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14412 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14413 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14414 $LINUX_OBJ/Module*.symvers 2>/dev/null
14415 rc=$?
14416 if test $rc -ne 0; then
14417 export=0
14418 for file in ; do
14419 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14420 "$LINUX_OBJ/$file" 2>/dev/null
14421 rc=$?
14422 if test $rc -eq 0; then
14423 export=1
14424 break;
14425 fi
14426 done
14427 if test $export -eq 0; then
14428 { $as_echo "$as_me:$LINENO: result: no" >&5
14429 $as_echo "no" >&6; }
14430
14431 else
14432 { $as_echo "$as_me:$LINENO: result: yes" >&5
14433 $as_echo "yes" >&6; }
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_GET_ZONE_COUNTS 1
14437 _ACEOF
14438
14439 fi
14440 else
14441 { $as_echo "$as_me:$LINENO: result: yes" >&5
14442 $as_echo "yes" >&6; }
14443
14444 cat >>confdefs.h <<\_ACEOF
14445 #define HAVE_GET_ZONE_COUNTS 1
14446 _ACEOF
14447
14448 fi
14449
14450
14451
14452
14453 fi
14454
14455 rm -Rf build
14456
14457
14458
14459
14460 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14461 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14462 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14463 $LINUX_OBJ/Module*.symvers 2>/dev/null
14464 rc=$?
14465 if test $rc -ne 0; then
14466 export=0
14467 for file in ; do
14468 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14469 "$LINUX_OBJ/$file" 2>/dev/null
14470 rc=$?
14471 if test $rc -eq 0; then
14472 export=1
14473 break;
14474 fi
14475 done
14476 if test $export -eq 0; then
14477 { $as_echo "$as_me:$LINENO: result: no" >&5
14478 $as_echo "no" >&6; }
14479
14480 else
14481 { $as_echo "$as_me:$LINENO: result: yes" >&5
14482 $as_echo "yes" >&6; }
14483
14484 cat >>confdefs.h <<\_ACEOF
14485 #define HAVE_SET_FS_PWD 1
14486 _ACEOF
14487
14488 fi
14489 else
14490 { $as_echo "$as_me:$LINENO: result: yes" >&5
14491 $as_echo "yes" >&6; }
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_SET_FS_PWD 1
14495 _ACEOF
14496
14497 fi
14498
14499
14500 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14501 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14502
14503
14504 cat >conftest.c <<_ACEOF
14505 /* confdefs.h. */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510
14511
14512 #include <linux/sched.h>
14513 #include <linux/fs_struct.h>
14514
14515 int
14516 main (void)
14517 {
14518
14519 set_fs_pwd(NULL, NULL);
14520
14521 ;
14522 return 0;
14523 }
14524
14525 _ACEOF
14526
14527
14528 rm -Rf build && mkdir -p build
14529 echo "obj-m := conftest.o" >build/Makefile
14530 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
14534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
14539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
14541
14542 { $as_echo "$as_me:$LINENO: result: yes" >&5
14543 $as_echo "yes" >&6; }
14544
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_2ARGS_SET_FS_PWD 1
14547 _ACEOF
14548
14549
14550 else
14551 $as_echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554 { $as_echo "$as_me:$LINENO: result: no" >&5
14555 $as_echo "no" >&6; }
14556
14557
14558
14559 fi
14560
14561 rm -Rf build
14562
14563
14564
14565 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14566 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14567
14568
14569 cat >conftest.c <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575
14576
14577 #include <linux/fs.h>
14578
14579 int
14580 main (void)
14581 {
14582
14583 vfs_unlink(NULL, NULL);
14584
14585 ;
14586 return 0;
14587 }
14588
14589 _ACEOF
14590
14591
14592 rm -Rf build && mkdir -p build
14593 echo "obj-m := conftest.o" >build/Makefile
14594 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605
14606 { $as_echo "$as_me:$LINENO: result: yes" >&5
14607 $as_echo "yes" >&6; }
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_2ARGS_VFS_UNLINK 1
14611 _ACEOF
14612
14613
14614 else
14615 $as_echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 { $as_echo "$as_me:$LINENO: result: no" >&5
14619 $as_echo "no" >&6; }
14620
14621
14622
14623 fi
14624
14625 rm -Rf build
14626
14627
14628
14629 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14630 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
14631
14632
14633 cat >conftest.c <<_ACEOF
14634 /* confdefs.h. */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14639
14640
14641 #include <linux/fs.h>
14642
14643 int
14644 main (void)
14645 {
14646
14647 vfs_rename(NULL, NULL, NULL, NULL);
14648
14649 ;
14650 return 0;
14651 }
14652
14653 _ACEOF
14654
14655
14656 rm -Rf build && mkdir -p build
14657 echo "obj-m := conftest.o" >build/Makefile
14658 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14669
14670 { $as_echo "$as_me:$LINENO: result: yes" >&5
14671 $as_echo "yes" >&6; }
14672
14673 cat >>confdefs.h <<\_ACEOF
14674 #define HAVE_4ARGS_VFS_RENAME 1
14675 _ACEOF
14676
14677
14678 else
14679 $as_echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 { $as_echo "$as_me:$LINENO: result: no" >&5
14683 $as_echo "no" >&6; }
14684
14685
14686
14687 fi
14688
14689 rm -Rf build
14690
14691
14692
14693
14694 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14695 $as_echo_n "checking whether struct cred exists... " >&6; }
14696
14697
14698 cat >conftest.c <<_ACEOF
14699 /* confdefs.h. */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704
14705
14706 #include <linux/cred.h>
14707
14708 int
14709 main (void)
14710 {
14711
14712 struct cred *cr;
14713 cr = NULL;
14714
14715 ;
14716 return 0;
14717 }
14718
14719 _ACEOF
14720
14721
14722 rm -Rf build && mkdir -p build
14723 echo "obj-m := conftest.o" >build/Makefile
14724 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14732 ac_status=$?
14733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735
14736 { $as_echo "$as_me:$LINENO: result: yes" >&5
14737 $as_echo "yes" >&6; }
14738
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_CRED_STRUCT 1
14741 _ACEOF
14742
14743
14744 else
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 { $as_echo "$as_me:$LINENO: result: no" >&5
14749 $as_echo "no" >&6; }
14750
14751
14752
14753 fi
14754
14755 rm -Rf build
14756
14757
14758
14759
14760 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14761 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
14762 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14763 $LINUX_OBJ/Module*.symvers 2>/dev/null
14764 rc=$?
14765 if test $rc -ne 0; then
14766 export=0
14767 for file in ; do
14768 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14769 "$LINUX_OBJ/$file" 2>/dev/null
14770 rc=$?
14771 if test $rc -eq 0; then
14772 export=1
14773 break;
14774 fi
14775 done
14776 if test $export -eq 0; then
14777 { $as_echo "$as_me:$LINENO: result: no" >&5
14778 $as_echo "no" >&6; }
14779
14780 else
14781 { $as_echo "$as_me:$LINENO: result: yes" >&5
14782 $as_echo "yes" >&6; }
14783
14784 cat >>confdefs.h <<\_ACEOF
14785 #define HAVE_GROUPS_SEARCH 1
14786 _ACEOF
14787
14788 fi
14789 else
14790 { $as_echo "$as_me:$LINENO: result: yes" >&5
14791 $as_echo "yes" >&6; }
14792
14793 cat >>confdefs.h <<\_ACEOF
14794 #define HAVE_GROUPS_SEARCH 1
14795 _ACEOF
14796
14797 fi
14798
14799
14800
14801 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
14802 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
14803 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14804 $LINUX_OBJ/Module*.symvers 2>/dev/null
14805 rc=$?
14806 if test $rc -ne 0; then
14807 export=0
14808 for file in ; do
14809 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14810 "$LINUX_OBJ/$file" 2>/dev/null
14811 rc=$?
14812 if test $rc -eq 0; then
14813 export=1
14814 break;
14815 fi
14816 done
14817 if test $export -eq 0; then
14818 { $as_echo "$as_me:$LINENO: result: no" >&5
14819 $as_echo "no" >&6; }
14820
14821 else
14822 { $as_echo "$as_me:$LINENO: result: yes" >&5
14823 $as_echo "yes" >&6; }
14824
14825 cat >>confdefs.h <<\_ACEOF
14826 #define HAVE_PUT_TASK_STRUCT 1
14827 _ACEOF
14828
14829 fi
14830 else
14831 { $as_echo "$as_me:$LINENO: result: yes" >&5
14832 $as_echo "yes" >&6; }
14833
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_PUT_TASK_STRUCT 1
14836 _ACEOF
14837
14838 fi
14839
14840
14841
14842 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
14843 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
14844
14845
14846 cat >conftest.c <<_ACEOF
14847 /* confdefs.h. */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852
14853
14854 #include <linux/sysctl.h>
14855
14856 int
14857 main (void)
14858 {
14859
14860 proc_dostring(NULL, 0, NULL, NULL, NULL);
14861
14862 ;
14863 return 0;
14864 }
14865
14866 _ACEOF
14867
14868
14869 rm -Rf build && mkdir -p build
14870 echo "obj-m := conftest.o" >build/Makefile
14871 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14874 ac_status=$?
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882
14883 { $as_echo "$as_me:$LINENO: result: yes" >&5
14884 $as_echo "yes" >&6; }
14885
14886 cat >>confdefs.h <<\_ACEOF
14887 #define HAVE_5ARGS_PROC_HANDLER 1
14888 _ACEOF
14889
14890
14891 else
14892 $as_echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895 { $as_echo "$as_me:$LINENO: result: no" >&5
14896 $as_echo "no" >&6; }
14897
14898
14899
14900 fi
14901
14902 rm -Rf build
14903
14904
14905
14906
14907 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
14908 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
14909 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
14910 $LINUX_OBJ/Module*.symvers 2>/dev/null
14911 rc=$?
14912 if test $rc -ne 0; then
14913 export=0
14914 for file in ; do
14915 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
14916 "$LINUX_OBJ/$file" 2>/dev/null
14917 rc=$?
14918 if test $rc -eq 0; then
14919 export=1
14920 break;
14921 fi
14922 done
14923 if test $export -eq 0; then
14924 { $as_echo "$as_me:$LINENO: result: no" >&5
14925 $as_echo "no" >&6; }
14926
14927 else
14928 { $as_echo "$as_me:$LINENO: result: yes" >&5
14929 $as_echo "yes" >&6; }
14930
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_KVASPRINTF 1
14933 _ACEOF
14934
14935 fi
14936 else
14937 { $as_echo "$as_me:$LINENO: result: yes" >&5
14938 $as_echo "yes" >&6; }
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_KVASPRINTF 1
14942 _ACEOF
14943
14944 fi
14945
14946
14947 ;;
14948 user) ;;
14949 all)
14950
14951
14952 # Check whether --with-linux was given.
14953 if test "${with_linux+set}" = set; then
14954 withval=$with_linux; kernelsrc="$withval"
14955 fi
14956
14957
14958
14959 # Check whether --with-linux-obj was given.
14960 if test "${with_linux_obj+set}" = set; then
14961 withval=$with_linux_obj; kernelbuild="$withval"
14962 fi
14963
14964
14965 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
14966 $as_echo_n "checking kernel source directory... " >&6; }
14967 if test -z "$kernelsrc"; then
14968 headersdir="/lib/modules/$(uname -r)/build"
14969 if test -e "$headersdir"; then
14970 sourcelink=$(readlink -f "$headersdir")
14971 else
14972 sourcelink=$(ls -1d /usr/src/kernels/* \
14973 /usr/src/linux-* \
14974 2>/dev/null | grep -v obj | tail -1)
14975 fi
14976
14977 if test -e ${sourcelink}; then
14978 kernelsrc=`readlink -f ${sourcelink}`
14979 else
14980 { $as_echo "$as_me:$LINENO: result: Not found" >&5
14981 $as_echo "Not found" >&6; }
14982 { { $as_echo "$as_me:$LINENO: error:
14983 *** Please specify the location of the kernel source
14984 *** with the '--with-linux=PATH' option" >&5
14985 $as_echo "$as_me: error:
14986 *** Please specify the location of the kernel source
14987 *** with the '--with-linux=PATH' option" >&2;}
14988 { (exit 1); exit 1; }; }
14989 fi
14990 else
14991 if test "$kernelsrc" = "NONE"; then
14992 kernsrcver=NONE
14993 fi
14994 fi
14995
14996 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
14997 $as_echo "$kernelsrc" >&6; }
14998 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
14999 $as_echo_n "checking kernel build directory... " >&6; }
15000 if test -z "$kernelbuild"; then
15001 if test -d ${kernelsrc}-obj/`arch`/`arch`; then
15002 kernelbuild=${kernelsrc}-obj/`arch`/`arch`
15003 elif test -d ${kernelsrc}-obj/`arch`/default; then
15004 kernelbuild=${kernelsrc}-obj/`arch`/default
15005 elif test -d `dirname ${kernelsrc}`/build-`arch`; then
15006 kernelbuild=`dirname ${kernelsrc}`/build-`arch`
15007 else
15008 kernelbuild=${kernelsrc}
15009 fi
15010 fi
15011 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15012 $as_echo "$kernelbuild" >&6; }
15013
15014 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15015 $as_echo_n "checking kernel source version... " >&6; }
15016 utsrelease1=$kernelbuild/include/linux/version.h
15017 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15018 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15019 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15020 utsrelease=linux/version.h
15021 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15022 utsrelease=linux/utsrelease.h
15023 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15024 utsrelease=generated/utsrelease.h
15025 fi
15026
15027 if test "$utsrelease"; then
15028 kernsrcver=`(echo "#include <$utsrelease>";
15029 echo "kernsrcver=UTS_RELEASE") |
15030 cpp -I $kernelbuild/include |
15031 grep "^kernsrcver=" | cut -d \" -f 2`
15032
15033 if test -z "$kernsrcver"; then
15034 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15035 $as_echo "Not found" >&6; }
15036 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15037 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15038 { (exit 1); exit 1; }; }
15039 fi
15040 else
15041 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15042 $as_echo "Not found" >&6; }
15043 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15044 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15045 { (exit 1); exit 1; }; }
15046 fi
15047
15048 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15049 $as_echo "$kernsrcver" >&6; }
15050
15051 LINUX=${kernelsrc}
15052 LINUX_OBJ=${kernelbuild}
15053 LINUX_VERSION=${kernsrcver}
15054
15055
15056
15057
15058
15059
15060 modpost=$LINUX/scripts/Makefile.modpost
15061 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15062 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15063 if test -f "$modpost"; then
15064 if grep -q Modules.symvers $modpost; then
15065 LINUX_SYMBOLS=Modules.symvers
15066 else
15067 LINUX_SYMBOLS=Module.symvers
15068 fi
15069 else
15070 LINUX_SYMBOLS=NONE
15071 fi
15072 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15073 $as_echo "$LINUX_SYMBOLS" >&6; }
15074
15075
15076
15077
15078 abs_srcdir=`readlink -f ${srcdir}`
15079 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
15080 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
15081 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
15082
15083 if test "${LINUX_OBJ}" != "${LINUX}"; then
15084 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15085 fi
15086
15087
15088
15089
15090
15091 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15092 $as_echo_n "checking whether debugging is enabled... " >&6; }
15093 # Check whether --enable-debug was given.
15094 if test "${enable_debug+set}" = set; then
15095 enableval=$enable_debug;
15096 else
15097 enable_debug=no
15098 fi
15099
15100
15101 if test "x$enable_debug" = xyes; then
15102
15103 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15104 DEBUG_CFLAGS="-DDEBUG -Werror"
15105
15106 else
15107
15108 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15109 DEBUG_CFLAGS="-DNDEBUG"
15110
15111 fi
15112
15113
15114
15115 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15116 $as_echo "$enable_debug" >&6; }
15117
15118
15119 # Check whether --enable-debug-kmem was given.
15120 if test "${enable_debug_kmem+set}" = set; then
15121 enableval=$enable_debug_kmem;
15122 else
15123 enable_debug_kmem=yes
15124 fi
15125
15126
15127 if test "x$enable_debug_kmem" = xyes; then
15128
15129 cat >>confdefs.h <<\_ACEOF
15130 #define DEBUG_KMEM 1
15131 _ACEOF
15132
15133 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15134 fi
15135
15136
15137 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15138 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15139 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15140 $as_echo "$enable_debug_kmem" >&6; }
15141
15142
15143 # Check whether --enable-debug-kmem-tracking was given.
15144 if test "${enable_debug_kmem_tracking+set}" = set; then
15145 enableval=$enable_debug_kmem_tracking;
15146 else
15147 enable_debug_kmem_tracking=no
15148 fi
15149
15150
15151 if test "x$enable_debug_kmem_tracking" = xyes; then
15152
15153 cat >>confdefs.h <<\_ACEOF
15154 #define DEBUG_KMEM_TRACKING 1
15155 _ACEOF
15156
15157 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15158 fi
15159
15160
15161 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15162 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15163 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15164 $as_echo "$enable_debug_kmem_tracking" >&6; }
15165
15166
15167 # Check whether --enable-atomic-spinlocks was given.
15168 if test "${enable_atomic_spinlocks+set}" = set; then
15169 enableval=$enable_atomic_spinlocks;
15170 else
15171 enable_atomic_spinlocks=check
15172 fi
15173
15174
15175
15176
15177 cat >conftest.c <<_ACEOF
15178 /* confdefs.h. */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15183
15184
15185 #include <asm/atomic.h>
15186
15187 int
15188 main (void)
15189 {
15190
15191 atomic64_t *ptr;
15192
15193 ;
15194 return 0;
15195 }
15196
15197 _ACEOF
15198
15199
15200 rm -Rf build && mkdir -p build
15201 echo "obj-m := conftest.o" >build/Makefile
15202 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then
15213
15214 have_atomic64_t=yes
15215
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_ATOMIC64_T 1
15218 _ACEOF
15219
15220
15221 else
15222 $as_echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 have_atomic64_t=no
15226
15227
15228
15229 fi
15230
15231 rm -Rf build
15232
15233
15234
15235 if test "x$enable_atomic_spinlocks" = xcheck; then
15236
15237 if test "x$have_atomic64_t" = xyes; then
15238
15239 enable_atomic_spinlocks=no
15240
15241 else
15242
15243 enable_atomic_spinlocks=yes
15244
15245 fi
15246
15247
15248 fi
15249
15250
15251 if test "x$enable_atomic_spinlocks" = xyes; then
15252
15253
15254 cat >>confdefs.h <<\_ACEOF
15255 #define ATOMIC_SPINLOCK 1
15256 _ACEOF
15257
15258
15259 else
15260
15261 if test "x$have_atomic64_t" = xno; then
15262
15263 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15265 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15266 See \`config.log' for more details." >&5
15267 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15268 See \`config.log' for more details." >&2;}
15269 { (exit 1); exit 1; }; }; }
15270
15271 fi
15272
15273
15274 fi
15275
15276
15277 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15278 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15279 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15280 $as_echo "$enable_atomic_spinlocks" >&6; }
15281
15282 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15283 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15284 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15285 $as_echo "$have_atomic64_t" >&6; }
15286
15287 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15288 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
15289
15290
15291 cat >conftest.c <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297
15298
15299 #include <asm/atomic.h>
15300
15301 int
15302 main (void)
15303 {
15304
15305 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
15306
15307 ;
15308 return 0;
15309 }
15310
15311 _ACEOF
15312
15313
15314 rm -Rf build && mkdir -p build
15315 echo "obj-m := conftest.o" >build/Makefile
15316 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327
15328 { $as_echo "$as_me:$LINENO: result: yes" >&5
15329 $as_echo "yes" >&6; }
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_ATOMIC64_CMPXCHG 1
15333 _ACEOF
15334
15335
15336 else
15337 $as_echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 { $as_echo "$as_me:$LINENO: result: no" >&5
15341 $as_echo "no" >&6; }
15342
15343
15344
15345 fi
15346
15347 rm -Rf build
15348
15349
15350
15351 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15352 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
15353
15354
15355 cat >conftest.c <<_ACEOF
15356 /* confdefs.h. */
15357 _ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361
15362
15363 #include <asm/atomic.h>
15364
15365 int
15366 main (void)
15367 {
15368
15369 atomic64_xchg((atomic64_t *)NULL, 0);
15370
15371 ;
15372 return 0;
15373 }
15374
15375 _ACEOF
15376
15377
15378 rm -Rf build && mkdir -p build
15379 echo "obj-m := conftest.o" >build/Makefile
15380 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; }; then
15391
15392 { $as_echo "$as_me:$LINENO: result: yes" >&5
15393 $as_echo "yes" >&6; }
15394
15395 cat >>confdefs.h <<\_ACEOF
15396 #define HAVE_ATOMIC64_XCHG 1
15397 _ACEOF
15398
15399
15400 else
15401 $as_echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 { $as_echo "$as_me:$LINENO: result: no" >&5
15405 $as_echo "no" >&6; }
15406
15407
15408
15409 fi
15410
15411 rm -Rf build
15412
15413
15414
15415 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15416 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
15417
15418
15419 cat >conftest.c <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425
15426
15427 #include <linux/types.h>
15428
15429 int
15430 main (void)
15431 {
15432
15433 uintptr_t *ptr;
15434
15435 ;
15436 return 0;
15437 }
15438
15439 _ACEOF
15440
15441
15442 rm -Rf build && mkdir -p build
15443 echo "obj-m := conftest.o" >build/Makefile
15444 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455
15456 { $as_echo "$as_me:$LINENO: result: yes" >&5
15457 $as_echo "yes" >&6; }
15458
15459 cat >>confdefs.h <<\_ACEOF
15460 #define HAVE_UINTPTR_T 1
15461 _ACEOF
15462
15463
15464 else
15465 $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 { $as_echo "$as_me:$LINENO: result: no" >&5
15469 $as_echo "no" >&6; }
15470
15471
15472
15473 fi
15474
15475 rm -Rf build
15476
15477
15478
15479 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15480 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
15481
15482
15483 cat >conftest.c <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489
15490
15491 #include <linux/workqueue.h>
15492
15493 int
15494 main (void)
15495 {
15496
15497 struct work_struct work;
15498 INIT_WORK(&work, NULL, NULL);
15499
15500 ;
15501 return 0;
15502 }
15503
15504 _ACEOF
15505
15506
15507 rm -Rf build && mkdir -p build
15508 echo "obj-m := conftest.o" >build/Makefile
15509 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
15518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520
15521 { $as_echo "$as_me:$LINENO: result: yes" >&5
15522 $as_echo "yes" >&6; }
15523
15524 cat >>confdefs.h <<\_ACEOF
15525 #define HAVE_3ARGS_INIT_WORK 1
15526 _ACEOF
15527
15528
15529 else
15530 $as_echo "$as_me: failed program was:" >&5
15531 sed 's/^/| /' conftest.$ac_ext >&5
15532
15533 { $as_echo "$as_me:$LINENO: result: no" >&5
15534 $as_echo "no" >&6; }
15535
15536
15537
15538 fi
15539
15540 rm -Rf build
15541
15542
15543
15544 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15545 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
15546
15547
15548 cat >conftest.c <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554
15555
15556 #include <linux/sysctl.h>
15557
15558 int
15559 main (void)
15560 {
15561
15562 return register_sysctl_table(NULL,0);
15563
15564 ;
15565 return 0;
15566 }
15567
15568 _ACEOF
15569
15570
15571 rm -Rf build && mkdir -p build
15572 echo "obj-m := conftest.o" >build/Makefile
15573 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15576 ac_status=$?
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15581 ac_status=$?
15582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584
15585 { $as_echo "$as_me:$LINENO: result: yes" >&5
15586 $as_echo "yes" >&6; }
15587
15588 cat >>confdefs.h <<\_ACEOF
15589 #define HAVE_2ARGS_REGISTER_SYSCTL 1
15590 _ACEOF
15591
15592
15593 else
15594 $as_echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 { $as_echo "$as_me:$LINENO: result: no" >&5
15598 $as_echo "no" >&6; }
15599
15600
15601
15602 fi
15603
15604 rm -Rf build
15605
15606
15607
15608
15609 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15610 $as_echo_n "checking whether set_shrinker() available... " >&6; }
15611
15612
15613 cat >conftest.c <<_ACEOF
15614 /* confdefs.h. */
15615 _ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619
15620
15621 #include <linux/mm.h>
15622
15623 int
15624 main (void)
15625 {
15626
15627 return set_shrinker(DEFAULT_SEEKS, NULL);
15628
15629 ;
15630 return 0;
15631 }
15632
15633 _ACEOF
15634
15635
15636 rm -Rf build && mkdir -p build
15637 echo "obj-m := conftest.o" >build/Makefile
15638 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649
15650 { $as_echo "$as_me:$LINENO: result: yes" >&5
15651 $as_echo "yes" >&6; }
15652
15653 cat >>confdefs.h <<\_ACEOF
15654 #define HAVE_SET_SHRINKER 1
15655 _ACEOF
15656
15657
15658 else
15659 $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662 { $as_echo "$as_me:$LINENO: result: no" >&5
15663 $as_echo "no" >&6; }
15664
15665
15666
15667 fi
15668
15669 rm -Rf build
15670
15671
15672
15673 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
15674 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
15675
15676
15677 cat >conftest.c <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683
15684
15685 #include <linux/namei.h>
15686
15687 int
15688 main (void)
15689 {
15690
15691 struct nameidata nd;
15692
15693 nd.path.mnt = NULL;
15694 nd.path.dentry = NULL;
15695
15696 ;
15697 return 0;
15698 }
15699
15700 _ACEOF
15701
15702
15703 rm -Rf build && mkdir -p build
15704 echo "obj-m := conftest.o" >build/Makefile
15705 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716
15717 { $as_echo "$as_me:$LINENO: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719
15720 cat >>confdefs.h <<\_ACEOF
15721 #define HAVE_PATH_IN_NAMEIDATA 1
15722 _ACEOF
15723
15724
15725 else
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 { $as_echo "$as_me:$LINENO: result: no" >&5
15730 $as_echo "no" >&6; }
15731
15732
15733
15734 fi
15735
15736 rm -Rf build
15737
15738
15739
15740
15741 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
15742 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
15743 grep -q -E '[[:space:]]task_curr[[:space:]]' \
15744 $LINUX_OBJ/Module*.symvers 2>/dev/null
15745 rc=$?
15746 if test $rc -ne 0; then
15747 export=0
15748 for file in kernel/sched.c; do
15749 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
15750 "$LINUX_OBJ/$file" 2>/dev/null
15751 rc=$?
15752 if test $rc -eq 0; then
15753 export=1
15754 break;
15755 fi
15756 done
15757 if test $export -eq 0; then
15758 { $as_echo "$as_me:$LINENO: result: no" >&5
15759 $as_echo "no" >&6; }
15760
15761 else
15762 { $as_echo "$as_me:$LINENO: result: yes" >&5
15763 $as_echo "yes" >&6; }
15764
15765 cat >>confdefs.h <<\_ACEOF
15766 #define HAVE_TASK_CURR 1
15767 _ACEOF
15768
15769 fi
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_TASK_CURR 1
15776 _ACEOF
15777
15778 fi
15779
15780
15781 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
15782 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
15783
15784
15785 cat >conftest.c <<_ACEOF
15786 /* confdefs.h. */
15787 _ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791
15792
15793 #include <linux/sysctl.h>
15794
15795 int
15796 main (void)
15797 {
15798
15799 #ifndef CTL_UNNUMBERED
15800 #error CTL_UNNUMBERED undefined
15801 #endif
15802
15803 ;
15804 return 0;
15805 }
15806
15807 _ACEOF
15808
15809
15810 rm -Rf build && mkdir -p build
15811 echo "obj-m := conftest.o" >build/Makefile
15812 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15823
15824 { $as_echo "$as_me:$LINENO: result: yes" >&5
15825 $as_echo "yes" >&6; }
15826
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE_CTL_UNNUMBERED 1
15829 _ACEOF
15830
15831
15832 else
15833 $as_echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15835
15836 { $as_echo "$as_me:$LINENO: result: no" >&5
15837 $as_echo "no" >&6; }
15838
15839
15840
15841 fi
15842
15843 rm -Rf build
15844
15845
15846
15847
15848 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
15849 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15850
15851
15852 cat >conftest.c <<_ACEOF
15853 /* confdefs.h. */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858
15859
15860 #include <linux/sysctl.h>
15861
15862 int
15863 main (void)
15864 {
15865
15866 struct ctl_table ctl;
15867 ctl.ctl_name = 0;
15868
15869 ;
15870 return 0;
15871 }
15872
15873 _ACEOF
15874
15875
15876 rm -Rf build && mkdir -p build
15877 echo "obj-m := conftest.o" >build/Makefile
15878 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889
15890 { $as_echo "$as_me:$LINENO: result: yes" >&5
15891 $as_echo "yes" >&6; }
15892
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE_CTL_NAME 1
15895 _ACEOF
15896
15897
15898 else
15899 $as_echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 { $as_echo "$as_me:$LINENO: result: no" >&5
15903 $as_echo "no" >&6; }
15904
15905
15906
15907 fi
15908
15909 rm -Rf build
15910
15911
15912
15913 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
15914 $as_echo_n "checking whether fls64() is available... " >&6; }
15915
15916
15917 cat >conftest.c <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923
15924
15925 #include <linux/bitops.h>
15926
15927 int
15928 main (void)
15929 {
15930
15931 return fls64(0);
15932
15933 ;
15934 return 0;
15935 }
15936
15937 _ACEOF
15938
15939
15940 rm -Rf build && mkdir -p build
15941 echo "obj-m := conftest.o" >build/Makefile
15942 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953
15954 { $as_echo "$as_me:$LINENO: result: yes" >&5
15955 $as_echo "yes" >&6; }
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_FLS64 1
15959 _ACEOF
15960
15961
15962 else
15963 $as_echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 { $as_echo "$as_me:$LINENO: result: no" >&5
15967 $as_echo "no" >&6; }
15968
15969
15970
15971 fi
15972
15973 rm -Rf build
15974
15975
15976
15977
15978 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
15979 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
15980 grep -q -E '[[:space:]]device_create[[:space:]]' \
15981 $LINUX_OBJ/Module*.symvers 2>/dev/null
15982 rc=$?
15983 if test $rc -ne 0; then
15984 export=0
15985 for file in drivers/base/core.c; do
15986 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
15987 "$LINUX_OBJ/$file" 2>/dev/null
15988 rc=$?
15989 if test $rc -eq 0; then
15990 export=1
15991 break;
15992 fi
15993 done
15994 if test $export -eq 0; then
15995 { $as_echo "$as_me:$LINENO: result: no" >&5
15996 $as_echo "no" >&6; }
15997
15998 else
15999 { $as_echo "$as_me:$LINENO: result: yes" >&5
16000 $as_echo "yes" >&6; }
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_DEVICE_CREATE 1
16004 _ACEOF
16005
16006 fi
16007 else
16008 { $as_echo "$as_me:$LINENO: result: yes" >&5
16009 $as_echo "yes" >&6; }
16010
16011 cat >>confdefs.h <<\_ACEOF
16012 #define HAVE_DEVICE_CREATE 1
16013 _ACEOF
16014
16015 fi
16016
16017
16018
16019 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
16020 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
16021 tmp_flags="$EXTRA_KCFLAGS"
16022 EXTRA_KCFLAGS="-Werror"
16023
16024
16025 cat >conftest.c <<_ACEOF
16026 /* confdefs.h. */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031
16032
16033 #include <linux/device.h>
16034
16035 int
16036 main (void)
16037 {
16038
16039 device_create(NULL, NULL, 0, NULL, "%d", 1);
16040
16041 ;
16042 return 0;
16043 }
16044
16045 _ACEOF
16046
16047
16048 rm -Rf build && mkdir -p build
16049 echo "obj-m := conftest.o" >build/Makefile
16050 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061
16062 { $as_echo "$as_me:$LINENO: result: yes" >&5
16063 $as_echo "yes" >&6; }
16064
16065 cat >>confdefs.h <<\_ACEOF
16066 #define HAVE_5ARGS_DEVICE_CREATE 1
16067 _ACEOF
16068
16069
16070 else
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 { $as_echo "$as_me:$LINENO: result: no" >&5
16075 $as_echo "no" >&6; }
16076
16077
16078
16079 fi
16080
16081 rm -Rf build
16082
16083
16084 EXTRA_KCFLAGS="$tmp_flags"
16085
16086
16087 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
16088 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
16089 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
16090 $LINUX_OBJ/Module*.symvers 2>/dev/null
16091 rc=$?
16092 if test $rc -ne 0; then
16093 export=0
16094 for file in drivers/base/class.c; do
16095 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
16096 "$LINUX_OBJ/$file" 2>/dev/null
16097 rc=$?
16098 if test $rc -eq 0; then
16099 export=1
16100 break;
16101 fi
16102 done
16103 if test $export -eq 0; then
16104 { $as_echo "$as_me:$LINENO: result: no" >&5
16105 $as_echo "no" >&6; }
16106
16107 else
16108 { $as_echo "$as_me:$LINENO: result: yes" >&5
16109 $as_echo "yes" >&6; }
16110
16111 cat >>confdefs.h <<\_ACEOF
16112 #define HAVE_CLASS_DEVICE_CREATE 1
16113 _ACEOF
16114
16115 fi
16116 else
16117 { $as_echo "$as_me:$LINENO: result: yes" >&5
16118 $as_echo "yes" >&6; }
16119
16120 cat >>confdefs.h <<\_ACEOF
16121 #define HAVE_CLASS_DEVICE_CREATE 1
16122 _ACEOF
16123
16124 fi
16125
16126
16127
16128 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
16129 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
16130 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
16131 $LINUX_OBJ/Module*.symvers 2>/dev/null
16132 rc=$?
16133 if test $rc -ne 0; then
16134 export=0
16135 for file in kernel/time.c; do
16136 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
16137 "$LINUX_OBJ/$file" 2>/dev/null
16138 rc=$?
16139 if test $rc -eq 0; then
16140 export=1
16141 break;
16142 fi
16143 done
16144 if test $export -eq 0; then
16145 { $as_echo "$as_me:$LINENO: result: no" >&5
16146 $as_echo "no" >&6; }
16147
16148 else
16149 { $as_echo "$as_me:$LINENO: result: yes" >&5
16150 $as_echo "yes" >&6; }
16151
16152 cat >>confdefs.h <<\_ACEOF
16153 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16154 _ACEOF
16155
16156 fi
16157 else
16158 { $as_echo "$as_me:$LINENO: result: yes" >&5
16159 $as_echo "yes" >&6; }
16160
16161 cat >>confdefs.h <<\_ACEOF
16162 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16163 _ACEOF
16164
16165 fi
16166
16167
16168
16169 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
16170 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
16171
16172
16173 cat >conftest.c <<_ACEOF
16174 /* confdefs.h. */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179
16180
16181 #include <linux/time.h>
16182 void set_normalized_timespec(struct timespec *ts,
16183 time_t sec, long nsec) { }
16184
16185 int
16186 main (void)
16187 {
16188
16189 ;
16190 return 0;
16191 }
16192
16193 _ACEOF
16194
16195
16196 rm -Rf build && mkdir -p build
16197 echo "obj-m := conftest.o" >build/Makefile
16198 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16209
16210 { $as_echo "$as_me:$LINENO: result: no" >&5
16211 $as_echo "no" >&6; }
16212
16213 else
16214 $as_echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 { $as_echo "$as_me:$LINENO: result: yes" >&5
16218 $as_echo "yes" >&6; }
16219
16220 cat >>confdefs.h <<\_ACEOF
16221 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16222 _ACEOF
16223
16224
16225
16226
16227 fi
16228
16229 rm -Rf build
16230
16231
16232
16233
16234 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16235 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
16236
16237
16238 cat >conftest.c <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244
16245
16246 #include <linux/time.h>
16247
16248 int
16249 main (void)
16250 {
16251
16252 struct timespec a, b, c = { 0 };
16253 c = timespec_sub(a, b);
16254
16255 ;
16256 return 0;
16257 }
16258
16259 _ACEOF
16260
16261
16262 rm -Rf build && mkdir -p build
16263 echo "obj-m := conftest.o" >build/Makefile
16264 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275
16276 { $as_echo "$as_me:$LINENO: result: yes" >&5
16277 $as_echo "yes" >&6; }
16278
16279 cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_TIMESPEC_SUB 1
16281 _ACEOF
16282
16283
16284 else
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 { $as_echo "$as_me:$LINENO: result: no" >&5
16289 $as_echo "no" >&6; }
16290
16291
16292
16293 fi
16294
16295 rm -Rf build
16296
16297
16298
16299
16300 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16301 $as_echo_n "checking whether init_utsname() is available... " >&6; }
16302
16303
16304 cat >conftest.c <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310
16311
16312 #include <linux/utsname.h>
16313
16314 int
16315 main (void)
16316 {
16317
16318 struct new_utsname *a = init_utsname();
16319
16320 ;
16321 return 0;
16322 }
16323
16324 _ACEOF
16325
16326
16327 rm -Rf build && mkdir -p build
16328 echo "obj-m := conftest.o" >build/Makefile
16329 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16337 ac_status=$?
16338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340
16341 { $as_echo "$as_me:$LINENO: result: yes" >&5
16342 $as_echo "yes" >&6; }
16343
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_INIT_UTSNAME 1
16346 _ACEOF
16347
16348
16349 else
16350 $as_echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 { $as_echo "$as_me:$LINENO: result: no" >&5
16354 $as_echo "no" >&6; }
16355
16356
16357
16358 fi
16359
16360 rm -Rf build
16361
16362
16363
16364
16365 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16366 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
16367
16368
16369 cat >conftest.c <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375
16376
16377 #include <linux/fdtable.h>
16378
16379 int
16380 main (void)
16381 {
16382
16383 return 0;
16384
16385 ;
16386 return 0;
16387 }
16388
16389 _ACEOF
16390
16391
16392 rm -Rf build && mkdir -p build
16393 echo "obj-m := conftest.o" >build/Makefile
16394 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16396 (eval $ac_try) 2>&5
16397 ac_status=$?
16398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405
16406
16407 cat >>confdefs.h <<\_ACEOF
16408 #define HAVE_FDTABLE_HEADER 1
16409 _ACEOF
16410
16411 { $as_echo "$as_me:$LINENO: result: yes" >&5
16412 $as_echo "yes" >&6; }
16413
16414
16415 else
16416 $as_echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 { $as_echo "$as_me:$LINENO: result: no" >&5
16420 $as_echo "no" >&6; }
16421
16422
16423
16424
16425 fi
16426
16427 rm -Rf build
16428
16429
16430
16431
16432
16433 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16434 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
16435
16436
16437 cat >conftest.c <<_ACEOF
16438 /* confdefs.h. */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443
16444
16445 #include <linux/sched.h>
16446 #include <linux/file.h>
16447 #ifdef HAVE_FDTABLE_HEADER
16448 #include <linux/fdtable.h>
16449 #endif
16450
16451 int
16452 main (void)
16453 {
16454
16455 struct files_struct *files = current->files;
16456 struct fdtable *fdt = files_fdtable(files);
16457
16458 ;
16459 return 0;
16460 }
16461
16462 _ACEOF
16463
16464
16465 rm -Rf build && mkdir -p build
16466 echo "obj-m := conftest.o" >build/Makefile
16467 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478
16479 { $as_echo "$as_me:$LINENO: result: yes" >&5
16480 $as_echo "yes" >&6; }
16481
16482 cat >>confdefs.h <<\_ACEOF
16483 #define HAVE_FILES_FDTABLE 1
16484 _ACEOF
16485
16486
16487 else
16488 $as_echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 { $as_echo "$as_me:$LINENO: result: no" >&5
16492 $as_echo "no" >&6; }
16493
16494
16495
16496 fi
16497
16498 rm -Rf build
16499
16500
16501
16502
16503 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16504 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
16505
16506
16507 cat >conftest.c <<_ACEOF
16508 /* confdefs.h. */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16513
16514
16515 #include <linux/uaccess.h>
16516
16517 int
16518 main (void)
16519 {
16520
16521 return 0;
16522
16523 ;
16524 return 0;
16525 }
16526
16527 _ACEOF
16528
16529
16530 rm -Rf build && mkdir -p build
16531 echo "obj-m := conftest.o" >build/Makefile
16532 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16539 (eval $ac_try) 2>&5
16540 ac_status=$?
16541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); }; }; then
16543
16544
16545 cat >>confdefs.h <<\_ACEOF
16546 #define HAVE_UACCESS_HEADER 1
16547 _ACEOF
16548
16549 { $as_echo "$as_me:$LINENO: result: yes" >&5
16550 $as_echo "yes" >&6; }
16551
16552
16553 else
16554 $as_echo "$as_me: failed program was:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16556
16557 { $as_echo "$as_me:$LINENO: result: no" >&5
16558 $as_echo "no" >&6; }
16559
16560
16561
16562
16563 fi
16564
16565 rm -Rf build
16566
16567
16568
16569
16570
16571 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16572 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
16573
16574
16575 cat >conftest.c <<_ACEOF
16576 /* confdefs.h. */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581
16582
16583 #include <linux/slab.h>
16584
16585 int
16586 main (void)
16587 {
16588
16589 void *a = kmalloc_node(1, GFP_KERNEL, 0);
16590
16591 ;
16592 return 0;
16593 }
16594
16595 _ACEOF
16596
16597
16598 rm -Rf build && mkdir -p build
16599 echo "obj-m := conftest.o" >build/Makefile
16600 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611
16612 { $as_echo "$as_me:$LINENO: result: yes" >&5
16613 $as_echo "yes" >&6; }
16614
16615 cat >>confdefs.h <<\_ACEOF
16616 #define HAVE_KMALLOC_NODE 1
16617 _ACEOF
16618
16619
16620 else
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 { $as_echo "$as_me:$LINENO: result: no" >&5
16625 $as_echo "no" >&6; }
16626
16627
16628
16629 fi
16630
16631 rm -Rf build
16632
16633
16634
16635
16636 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
16637 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
16638 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
16639 $LINUX_OBJ/Module*.symvers 2>/dev/null
16640 rc=$?
16641 if test $rc -ne 0; then
16642 export=0
16643 for file in ; do
16644 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
16645 "$LINUX_OBJ/$file" 2>/dev/null
16646 rc=$?
16647 if test $rc -eq 0; then
16648 export=1
16649 break;
16650 fi
16651 done
16652 if test $export -eq 0; then
16653 { $as_echo "$as_me:$LINENO: result: no" >&5
16654 $as_echo "no" >&6; }
16655
16656 else
16657 { $as_echo "$as_me:$LINENO: result: yes" >&5
16658 $as_echo "yes" >&6; }
16659
16660 cat >>confdefs.h <<\_ACEOF
16661 #define HAVE_MONOTONIC_CLOCK 1
16662 _ACEOF
16663
16664 fi
16665 else
16666 { $as_echo "$as_me:$LINENO: result: yes" >&5
16667 $as_echo "yes" >&6; }
16668
16669 cat >>confdefs.h <<\_ACEOF
16670 #define HAVE_MONOTONIC_CLOCK 1
16671 _ACEOF
16672
16673 fi
16674
16675
16676
16677 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
16678 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
16679
16680
16681 cat >conftest.c <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687
16688
16689 #include <linux/fs.h>
16690 #include <linux/mutex.h>
16691
16692 int
16693 main (void)
16694 {
16695
16696 struct inode i;
16697 mutex_init(&i.i_mutex);
16698
16699 ;
16700 return 0;
16701 }
16702
16703 _ACEOF
16704
16705
16706 rm -Rf build && mkdir -p build
16707 echo "obj-m := conftest.o" >build/Makefile
16708 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16716 ac_status=$?
16717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719
16720 { $as_echo "$as_me:$LINENO: result: yes" >&5
16721 $as_echo "yes" >&6; }
16722
16723 cat >>confdefs.h <<\_ACEOF
16724 #define HAVE_INODE_I_MUTEX 1
16725 _ACEOF
16726
16727
16728 else
16729 $as_echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 { $as_echo "$as_me:$LINENO: result: no" >&5
16733 $as_echo "no" >&6; }
16734
16735
16736
16737 fi
16738
16739 rm -Rf build
16740
16741
16742
16743
16744 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
16745 $as_echo_n "checking whether struct mutex has owner... " >&6; }
16746
16747
16748 cat >conftest.c <<_ACEOF
16749 /* confdefs.h. */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16754
16755
16756 #include <linux/mutex.h>
16757
16758 int
16759 main (void)
16760 {
16761
16762 struct mutex mtx;
16763 mtx.owner = NULL;
16764
16765 ;
16766 return 0;
16767 }
16768
16769 _ACEOF
16770
16771
16772 rm -Rf build && mkdir -p build
16773 echo "obj-m := conftest.o" >build/Makefile
16774 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16785
16786 { $as_echo "$as_me:$LINENO: result: yes" >&5
16787 $as_echo "yes" >&6; }
16788
16789 cat >>confdefs.h <<\_ACEOF
16790 #define HAVE_MUTEX_OWNER 1
16791 _ACEOF
16792
16793
16794 else
16795 $as_echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.$ac_ext >&5
16797
16798 { $as_echo "$as_me:$LINENO: result: no" >&5
16799 $as_echo "no" >&6; }
16800
16801
16802
16803 fi
16804
16805 rm -Rf build
16806
16807
16808
16809
16810 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
16811 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
16812
16813
16814 cat >conftest.c <<_ACEOF
16815 /* confdefs.h. */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820
16821
16822 #include <linux/mutex.h>
16823
16824 int
16825 main (void)
16826 {
16827
16828 struct mutex mutex;
16829 mutex_init(&mutex);
16830 mutex_lock_nested(&mutex, 0);
16831
16832 ;
16833 return 0;
16834 }
16835
16836 _ACEOF
16837
16838
16839 rm -Rf build && mkdir -p build
16840 echo "obj-m := conftest.o" >build/Makefile
16841 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852
16853 { $as_echo "$as_me:$LINENO: result: yes" >&5
16854 $as_echo "yes" >&6; }
16855
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE_MUTEX_LOCK_NESTED 1
16858 _ACEOF
16859
16860
16861 else
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 { $as_echo "$as_me:$LINENO: result: no" >&5
16866 $as_echo "no" >&6; }
16867
16868
16869
16870 fi
16871
16872 rm -Rf build
16873
16874
16875
16876
16877 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
16878 $as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
16879 grep -q -E '[[:space:]]div64_64[[:space:]]' \
16880 $LINUX_OBJ/Module*.symvers 2>/dev/null
16881 rc=$?
16882 if test $rc -ne 0; then
16883 export=0
16884 for file in ; do
16885 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
16886 "$LINUX_OBJ/$file" 2>/dev/null
16887 rc=$?
16888 if test $rc -eq 0; then
16889 export=1
16890 break;
16891 fi
16892 done
16893 if test $export -eq 0; then
16894 { $as_echo "$as_me:$LINENO: result: no" >&5
16895 $as_echo "no" >&6; }
16896
16897 else
16898 { $as_echo "$as_me:$LINENO: result: yes" >&5
16899 $as_echo "yes" >&6; }
16900
16901 cat >>confdefs.h <<\_ACEOF
16902 #define HAVE_DIV64_64 1
16903 _ACEOF
16904
16905 fi
16906 else
16907 { $as_echo "$as_me:$LINENO: result: yes" >&5
16908 $as_echo "yes" >&6; }
16909
16910 cat >>confdefs.h <<\_ACEOF
16911 #define HAVE_DIV64_64 1
16912 _ACEOF
16913
16914 fi
16915
16916
16917
16918 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
16919 $as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
16920 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
16921 $LINUX_OBJ/Module*.symvers 2>/dev/null
16922 rc=$?
16923 if test $rc -ne 0; then
16924 export=0
16925 for file in ; do
16926 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
16927 "$LINUX_OBJ/$file" 2>/dev/null
16928 rc=$?
16929 if test $rc -eq 0; then
16930 export=1
16931 break;
16932 fi
16933 done
16934 if test $export -eq 0; then
16935 { $as_echo "$as_me:$LINENO: result: no" >&5
16936 $as_echo "no" >&6; }
16937
16938 else
16939 { $as_echo "$as_me:$LINENO: result: yes" >&5
16940 $as_echo "yes" >&6; }
16941
16942 cat >>confdefs.h <<\_ACEOF
16943 #define HAVE_DIV64_U64 1
16944 _ACEOF
16945
16946 fi
16947 else
16948 { $as_echo "$as_me:$LINENO: result: yes" >&5
16949 $as_echo "yes" >&6; }
16950
16951 cat >>confdefs.h <<\_ACEOF
16952 #define HAVE_DIV64_U64 1
16953 _ACEOF
16954
16955 fi
16956
16957
16958
16959 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
16960 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
16961
16962
16963 cat >conftest.c <<_ACEOF
16964 /* confdefs.h. */
16965 _ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969
16970
16971 #include <linux/smp.h>
16972
16973 int
16974 main (void)
16975 {
16976
16977 on_each_cpu(NULL, NULL, 0);
16978
16979 ;
16980 return 0;
16981 }
16982
16983 _ACEOF
16984
16985
16986 rm -Rf build && mkdir -p build
16987 echo "obj-m := conftest.o" >build/Makefile
16988 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999
17000 { $as_echo "$as_me:$LINENO: result: yes" >&5
17001 $as_echo "yes" >&6; }
17002
17003 cat >>confdefs.h <<\_ACEOF
17004 #define HAVE_3ARGS_ON_EACH_CPU 1
17005 _ACEOF
17006
17007
17008 else
17009 $as_echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012 { $as_echo "$as_me:$LINENO: result: no" >&5
17013 $as_echo "no" >&6; }
17014
17015
17016
17017 fi
17018
17019 rm -Rf build
17020
17021
17022
17023
17024 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
17025 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
17026 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
17027 $LINUX_OBJ/Module*.symvers 2>/dev/null
17028 rc=$?
17029 if test $rc -ne 0; then
17030 export=0
17031 for file in ; do
17032 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
17033 "$LINUX_OBJ/$file" 2>/dev/null
17034 rc=$?
17035 if test $rc -eq 0; then
17036 export=1
17037 break;
17038 fi
17039 done
17040 if test $export -eq 0; then
17041 { $as_echo "$as_me:$LINENO: result: no" >&5
17042 $as_echo "no" >&6; }
17043
17044 else
17045 { $as_echo "$as_me:$LINENO: result: yes" >&5
17046 $as_echo "yes" >&6; }
17047
17048 cat >>confdefs.h <<\_ACEOF
17049 #define HAVE_KALLSYMS_LOOKUP_NAME 1
17050 _ACEOF
17051
17052 fi
17053 else
17054 { $as_echo "$as_me:$LINENO: result: yes" >&5
17055 $as_echo "yes" >&6; }
17056
17057 cat >>confdefs.h <<\_ACEOF
17058 #define HAVE_KALLSYMS_LOOKUP_NAME 1
17059 _ACEOF
17060
17061 fi
17062
17063
17064
17065 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
17066 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
17067 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
17068 $LINUX_OBJ/Module*.symvers 2>/dev/null
17069 rc=$?
17070 if test $rc -ne 0; then
17071 export=0
17072 for file in ; do
17073 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
17074 "$LINUX_OBJ/$file" 2>/dev/null
17075 rc=$?
17076 if test $rc -eq 0; then
17077 export=1
17078 break;
17079 fi
17080 done
17081 if test $export -eq 0; then
17082 { $as_echo "$as_me:$LINENO: result: no" >&5
17083 $as_echo "no" >&6; }
17084
17085 else
17086 { $as_echo "$as_me:$LINENO: result: yes" >&5
17087 $as_echo "yes" >&6; }
17088
17089 cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_GET_VMALLOC_INFO 1
17091 _ACEOF
17092
17093 fi
17094 else
17095 { $as_echo "$as_me:$LINENO: result: yes" >&5
17096 $as_echo "yes" >&6; }
17097
17098 cat >>confdefs.h <<\_ACEOF
17099 #define HAVE_GET_VMALLOC_INFO 1
17100 _ACEOF
17101
17102 fi
17103
17104
17105
17106 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
17107 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
17108 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
17109 rc=$?
17110 if test $rc -eq 0; then
17111 { $as_echo "$as_me:$LINENO: result: yes" >&5
17112 $as_echo "yes" >&6; }
17113
17114 cat >>confdefs.h <<\_ACEOF
17115 #define HAVE_PGDAT_HELPERS 1
17116 _ACEOF
17117
17118 else
17119 { $as_echo "$as_me:$LINENO: result: no" >&5
17120 $as_echo "no" >&6; }
17121 fi
17122
17123
17124 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
17125 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
17126 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
17127 $LINUX_OBJ/Module*.symvers 2>/dev/null
17128 rc=$?
17129 if test $rc -ne 0; then
17130 export=0
17131 for file in ; do
17132 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
17133 "$LINUX_OBJ/$file" 2>/dev/null
17134 rc=$?
17135 if test $rc -eq 0; then
17136 export=1
17137 break;
17138 fi
17139 done
17140 if test $export -eq 0; then
17141 { $as_echo "$as_me:$LINENO: result: no" >&5
17142 $as_echo "no" >&6; }
17143
17144 else
17145 { $as_echo "$as_me:$LINENO: result: yes" >&5
17146 $as_echo "yes" >&6; }
17147
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_FIRST_ONLINE_PGDAT 1
17150 _ACEOF
17151
17152 fi
17153 else
17154 { $as_echo "$as_me:$LINENO: result: yes" >&5
17155 $as_echo "yes" >&6; }
17156
17157 cat >>confdefs.h <<\_ACEOF
17158 #define HAVE_FIRST_ONLINE_PGDAT 1
17159 _ACEOF
17160
17161 fi
17162
17163
17164
17165 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
17166 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
17167 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
17168 $LINUX_OBJ/Module*.symvers 2>/dev/null
17169 rc=$?
17170 if test $rc -ne 0; then
17171 export=0
17172 for file in ; do
17173 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
17174 "$LINUX_OBJ/$file" 2>/dev/null
17175 rc=$?
17176 if test $rc -eq 0; then
17177 export=1
17178 break;
17179 fi
17180 done
17181 if test $export -eq 0; then
17182 { $as_echo "$as_me:$LINENO: result: no" >&5
17183 $as_echo "no" >&6; }
17184
17185 else
17186 { $as_echo "$as_me:$LINENO: result: yes" >&5
17187 $as_echo "yes" >&6; }
17188
17189 cat >>confdefs.h <<\_ACEOF
17190 #define HAVE_NEXT_ONLINE_PGDAT 1
17191 _ACEOF
17192
17193 fi
17194 else
17195 { $as_echo "$as_me:$LINENO: result: yes" >&5
17196 $as_echo "yes" >&6; }
17197
17198 cat >>confdefs.h <<\_ACEOF
17199 #define HAVE_NEXT_ONLINE_PGDAT 1
17200 _ACEOF
17201
17202 fi
17203
17204
17205
17206 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17207 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17208 grep -q -E '[[:space:]]next_zone[[:space:]]' \
17209 $LINUX_OBJ/Module*.symvers 2>/dev/null
17210 rc=$?
17211 if test $rc -ne 0; then
17212 export=0
17213 for file in ; do
17214 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
17215 "$LINUX_OBJ/$file" 2>/dev/null
17216 rc=$?
17217 if test $rc -eq 0; then
17218 export=1
17219 break;
17220 fi
17221 done
17222 if test $export -eq 0; then
17223 { $as_echo "$as_me:$LINENO: result: no" >&5
17224 $as_echo "no" >&6; }
17225
17226 else
17227 { $as_echo "$as_me:$LINENO: result: yes" >&5
17228 $as_echo "yes" >&6; }
17229
17230 cat >>confdefs.h <<\_ACEOF
17231 #define HAVE_NEXT_ZONE 1
17232 _ACEOF
17233
17234 fi
17235 else
17236 { $as_echo "$as_me:$LINENO: result: yes" >&5
17237 $as_echo "yes" >&6; }
17238
17239 cat >>confdefs.h <<\_ACEOF
17240 #define HAVE_NEXT_ZONE 1
17241 _ACEOF
17242
17243 fi
17244
17245
17246
17247 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17248 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17249 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
17250 $LINUX_OBJ/Module*.symvers 2>/dev/null
17251 rc=$?
17252 if test $rc -ne 0; then
17253 export=0
17254 for file in ; do
17255 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
17256 "$LINUX_OBJ/$file" 2>/dev/null
17257 rc=$?
17258 if test $rc -eq 0; then
17259 export=1
17260 break;
17261 fi
17262 done
17263 if test $export -eq 0; then
17264 { $as_echo "$as_me:$LINENO: result: no" >&5
17265 $as_echo "no" >&6; }
17266
17267 else
17268 { $as_echo "$as_me:$LINENO: result: yes" >&5
17269 $as_echo "yes" >&6; }
17270
17271 cat >>confdefs.h <<\_ACEOF
17272 #define HAVE_PGDAT_LIST 1
17273 _ACEOF
17274
17275 fi
17276 else
17277 { $as_echo "$as_me:$LINENO: result: yes" >&5
17278 $as_echo "yes" >&6; }
17279
17280 cat >>confdefs.h <<\_ACEOF
17281 #define HAVE_PGDAT_LIST 1
17282 _ACEOF
17283
17284 fi
17285
17286
17287
17288 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17289 $as_echo_n "checking whether global_page_state() is available... " >&6; }
17290
17291
17292 cat >conftest.c <<_ACEOF
17293 /* confdefs.h. */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298
17299
17300 #include <linux/mm.h>
17301
17302 int
17303 main (void)
17304 {
17305
17306 unsigned long state;
17307 state = global_page_state(0);
17308
17309 ;
17310 return 0;
17311 }
17312
17313 _ACEOF
17314
17315
17316 rm -Rf build && mkdir -p build
17317 echo "obj-m := conftest.o" >build/Makefile
17318 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17321 ac_status=$?
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329
17330 { $as_echo "$as_me:$LINENO: result: yes" >&5
17331 $as_echo "yes" >&6; }
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define HAVE_GLOBAL_PAGE_STATE 1
17335 _ACEOF
17336
17337
17338 else
17339 $as_echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 { $as_echo "$as_me:$LINENO: result: no" >&5
17343 $as_echo "no" >&6; }
17344
17345
17346
17347 fi
17348
17349 rm -Rf build
17350
17351
17352
17353
17354 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17355 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
17356
17357
17358 cat >conftest.c <<_ACEOF
17359 /* confdefs.h. */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h. */
17364
17365
17366 #include <linux/mm.h>
17367
17368 int
17369 main (void)
17370 {
17371
17372 enum zone_stat_item zsi;
17373 zsi = NR_FREE_PAGES;
17374
17375 ;
17376 return 0;
17377 }
17378
17379 _ACEOF
17380
17381
17382 rm -Rf build && mkdir -p build
17383 echo "obj-m := conftest.o" >build/Makefile
17384 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17387 ac_status=$?
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395
17396 { $as_echo "$as_me:$LINENO: result: yes" >&5
17397 $as_echo "yes" >&6; }
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
17401 _ACEOF
17402
17403
17404 else
17405 $as_echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 { $as_echo "$as_me:$LINENO: result: no" >&5
17409 $as_echo "no" >&6; }
17410
17411
17412
17413 fi
17414
17415 rm -Rf build
17416
17417
17418
17419
17420 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17421 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
17422
17423
17424 cat >conftest.c <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430
17431
17432 #include <linux/mm.h>
17433
17434 int
17435 main (void)
17436 {
17437
17438 enum zone_stat_item zsi;
17439 zsi = NR_INACTIVE;
17440
17441 ;
17442 return 0;
17443 }
17444
17445 _ACEOF
17446
17447
17448 rm -Rf build && mkdir -p build
17449 echo "obj-m := conftest.o" >build/Makefile
17450 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17458 ac_status=$?
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461
17462 { $as_echo "$as_me:$LINENO: result: yes" >&5
17463 $as_echo "yes" >&6; }
17464
17465 cat >>confdefs.h <<\_ACEOF
17466 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
17467 _ACEOF
17468
17469
17470 else
17471 $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474 { $as_echo "$as_me:$LINENO: result: no" >&5
17475 $as_echo "no" >&6; }
17476
17477
17478
17479 fi
17480
17481 rm -Rf build
17482
17483
17484
17485 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17486 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17487
17488
17489 cat >conftest.c <<_ACEOF
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495
17496
17497 #include <linux/mm.h>
17498
17499 int
17500 main (void)
17501 {
17502
17503 enum zone_stat_item zsi;
17504 zsi = NR_INACTIVE_ANON;
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: yes" >&5
17528 $as_echo "yes" >&6; }
17529
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
17532 _ACEOF
17533
17534
17535 else
17536 $as_echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539 { $as_echo "$as_me:$LINENO: result: no" >&5
17540 $as_echo "no" >&6; }
17541
17542
17543
17544 fi
17545
17546 rm -Rf build
17547
17548
17549
17550 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17551 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17552
17553
17554 cat >conftest.c <<_ACEOF
17555 /* confdefs.h. */
17556 _ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17560
17561
17562 #include <linux/mm.h>
17563
17564 int
17565 main (void)
17566 {
17567
17568 enum zone_stat_item zsi;
17569 zsi = NR_INACTIVE_FILE;
17570
17571 ;
17572 return 0;
17573 }
17574
17575 _ACEOF
17576
17577
17578 rm -Rf build && mkdir -p build
17579 echo "obj-m := conftest.o" >build/Makefile
17580 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17588 ac_status=$?
17589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591
17592 { $as_echo "$as_me:$LINENO: result: yes" >&5
17593 $as_echo "yes" >&6; }
17594
17595 cat >>confdefs.h <<\_ACEOF
17596 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
17597 _ACEOF
17598
17599
17600 else
17601 $as_echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 { $as_echo "$as_me:$LINENO: result: no" >&5
17605 $as_echo "no" >&6; }
17606
17607
17608
17609 fi
17610
17611 rm -Rf build
17612
17613
17614
17615
17616 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17617 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
17618
17619
17620 cat >conftest.c <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626
17627
17628 #include <linux/mm.h>
17629
17630 int
17631 main (void)
17632 {
17633
17634 enum zone_stat_item zsi;
17635 zsi = NR_ACTIVE;
17636
17637 ;
17638 return 0;
17639 }
17640
17641 _ACEOF
17642
17643
17644 rm -Rf build && mkdir -p build
17645 echo "obj-m := conftest.o" >build/Makefile
17646 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; }; then
17657
17658 { $as_echo "$as_me:$LINENO: result: yes" >&5
17659 $as_echo "yes" >&6; }
17660
17661 cat >>confdefs.h <<\_ACEOF
17662 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
17663 _ACEOF
17664
17665
17666 else
17667 $as_echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17669
17670 { $as_echo "$as_me:$LINENO: result: no" >&5
17671 $as_echo "no" >&6; }
17672
17673
17674
17675 fi
17676
17677 rm -Rf build
17678
17679
17680
17681 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
17682 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
17683
17684
17685 cat >conftest.c <<_ACEOF
17686 /* confdefs.h. */
17687 _ACEOF
17688 cat confdefs.h >>conftest.$ac_ext
17689 cat >>conftest.$ac_ext <<_ACEOF
17690 /* end confdefs.h. */
17691
17692
17693 #include <linux/mm.h>
17694
17695 int
17696 main (void)
17697 {
17698
17699 enum zone_stat_item zsi;
17700 zsi = NR_ACTIVE_ANON;
17701
17702 ;
17703 return 0;
17704 }
17705
17706 _ACEOF
17707
17708
17709 rm -Rf build && mkdir -p build
17710 echo "obj-m := conftest.o" >build/Makefile
17711 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718 (eval $ac_try) 2>&5
17719 ac_status=$?
17720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722
17723 { $as_echo "$as_me:$LINENO: result: yes" >&5
17724 $as_echo "yes" >&6; }
17725
17726 cat >>confdefs.h <<\_ACEOF
17727 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
17728 _ACEOF
17729
17730
17731 else
17732 $as_echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 { $as_echo "$as_me:$LINENO: result: no" >&5
17736 $as_echo "no" >&6; }
17737
17738
17739
17740 fi
17741
17742 rm -Rf build
17743
17744
17745
17746 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
17747 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
17748
17749
17750 cat >conftest.c <<_ACEOF
17751 /* confdefs.h. */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756
17757
17758 #include <linux/mm.h>
17759
17760 int
17761 main (void)
17762 {
17763
17764 enum zone_stat_item zsi;
17765 zsi = NR_ACTIVE_FILE;
17766
17767 ;
17768 return 0;
17769 }
17770
17771 _ACEOF
17772
17773
17774 rm -Rf build && mkdir -p build
17775 echo "obj-m := conftest.o" >build/Makefile
17776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17783 (eval $ac_try) 2>&5
17784 ac_status=$?
17785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787
17788 { $as_echo "$as_me:$LINENO: result: yes" >&5
17789 $as_echo "yes" >&6; }
17790
17791 cat >>confdefs.h <<\_ACEOF
17792 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
17793 _ACEOF
17794
17795
17796 else
17797 $as_echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 { $as_echo "$as_me:$LINENO: result: no" >&5
17801 $as_echo "no" >&6; }
17802
17803
17804
17805 fi
17806
17807 rm -Rf build
17808
17809
17810
17811
17812 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
17813 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
17814
17815
17816 cat >conftest.c <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822
17823
17824
17825 int
17826 main (void)
17827 {
17828
17829 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
17830 #error "global_page_state needs NR_FREE_PAGES"
17831 #endif
17832
17833 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
17834 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
17835 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
17836 #error "global_page_state needs NR_ACTIVE*"
17837 #endif
17838
17839 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
17840 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
17841 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
17842 #error "global_page_state needs NR_INACTIVE*"
17843 #endif
17844
17845 ;
17846 return 0;
17847 }
17848
17849 _ACEOF
17850
17851
17852 rm -Rf build && mkdir -p build
17853 echo "obj-m := conftest.o" >build/Makefile
17854 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 (eval $ac_try) 2>&5
17857 ac_status=$?
17858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865
17866 { $as_echo "$as_me:$LINENO: result: no" >&5
17867 $as_echo "no" >&6; }
17868
17869 else
17870 $as_echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873 { $as_echo "$as_me:$LINENO: result: yes" >&5
17874 $as_echo "yes" >&6; }
17875
17876 cat >>confdefs.h <<\_ACEOF
17877 #define NEED_GET_ZONE_COUNTS 1
17878 _ACEOF
17879
17880
17881 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
17882 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
17883 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
17884 $LINUX_OBJ/Module*.symvers 2>/dev/null
17885 rc=$?
17886 if test $rc -ne 0; then
17887 export=0
17888 for file in ; do
17889 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
17890 "$LINUX_OBJ/$file" 2>/dev/null
17891 rc=$?
17892 if test $rc -eq 0; then
17893 export=1
17894 break;
17895 fi
17896 done
17897 if test $export -eq 0; then
17898 { $as_echo "$as_me:$LINENO: result: no" >&5
17899 $as_echo "no" >&6; }
17900
17901 else
17902 { $as_echo "$as_me:$LINENO: result: yes" >&5
17903 $as_echo "yes" >&6; }
17904
17905 cat >>confdefs.h <<\_ACEOF
17906 #define HAVE_GET_ZONE_COUNTS 1
17907 _ACEOF
17908
17909 fi
17910 else
17911 { $as_echo "$as_me:$LINENO: result: yes" >&5
17912 $as_echo "yes" >&6; }
17913
17914 cat >>confdefs.h <<\_ACEOF
17915 #define HAVE_GET_ZONE_COUNTS 1
17916 _ACEOF
17917
17918 fi
17919
17920
17921
17922
17923 fi
17924
17925 rm -Rf build
17926
17927
17928
17929
17930 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
17931 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
17932 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
17933 $LINUX_OBJ/Module*.symvers 2>/dev/null
17934 rc=$?
17935 if test $rc -ne 0; then
17936 export=0
17937 for file in ; do
17938 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
17939 "$LINUX_OBJ/$file" 2>/dev/null
17940 rc=$?
17941 if test $rc -eq 0; then
17942 export=1
17943 break;
17944 fi
17945 done
17946 if test $export -eq 0; then
17947 { $as_echo "$as_me:$LINENO: result: no" >&5
17948 $as_echo "no" >&6; }
17949
17950 else
17951 { $as_echo "$as_me:$LINENO: result: yes" >&5
17952 $as_echo "yes" >&6; }
17953
17954 cat >>confdefs.h <<\_ACEOF
17955 #define HAVE_SET_FS_PWD 1
17956 _ACEOF
17957
17958 fi
17959 else
17960 { $as_echo "$as_me:$LINENO: result: yes" >&5
17961 $as_echo "yes" >&6; }
17962
17963 cat >>confdefs.h <<\_ACEOF
17964 #define HAVE_SET_FS_PWD 1
17965 _ACEOF
17966
17967 fi
17968
17969
17970 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
17971 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
17972
17973
17974 cat >conftest.c <<_ACEOF
17975 /* confdefs.h. */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980
17981
17982 #include <linux/sched.h>
17983 #include <linux/fs_struct.h>
17984
17985 int
17986 main (void)
17987 {
17988
17989 set_fs_pwd(NULL, NULL);
17990
17991 ;
17992 return 0;
17993 }
17994
17995 _ACEOF
17996
17997
17998 rm -Rf build && mkdir -p build
17999 echo "obj-m := conftest.o" >build/Makefile
18000 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18003 ac_status=$?
18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011
18012 { $as_echo "$as_me:$LINENO: result: yes" >&5
18013 $as_echo "yes" >&6; }
18014
18015 cat >>confdefs.h <<\_ACEOF
18016 #define HAVE_2ARGS_SET_FS_PWD 1
18017 _ACEOF
18018
18019
18020 else
18021 $as_echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 { $as_echo "$as_me:$LINENO: result: no" >&5
18025 $as_echo "no" >&6; }
18026
18027
18028
18029 fi
18030
18031 rm -Rf build
18032
18033
18034
18035 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
18036 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
18037
18038
18039 cat >conftest.c <<_ACEOF
18040 /* confdefs.h. */
18041 _ACEOF
18042 cat confdefs.h >>conftest.$ac_ext
18043 cat >>conftest.$ac_ext <<_ACEOF
18044 /* end confdefs.h. */
18045
18046
18047 #include <linux/fs.h>
18048
18049 int
18050 main (void)
18051 {
18052
18053 vfs_unlink(NULL, NULL);
18054
18055 ;
18056 return 0;
18057 }
18058
18059 _ACEOF
18060
18061
18062 rm -Rf build && mkdir -p build
18063 echo "obj-m := conftest.o" >build/Makefile
18064 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18071 (eval $ac_try) 2>&5
18072 ac_status=$?
18073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; }; then
18075
18076 { $as_echo "$as_me:$LINENO: result: yes" >&5
18077 $as_echo "yes" >&6; }
18078
18079 cat >>confdefs.h <<\_ACEOF
18080 #define HAVE_2ARGS_VFS_UNLINK 1
18081 _ACEOF
18082
18083
18084 else
18085 $as_echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088 { $as_echo "$as_me:$LINENO: result: no" >&5
18089 $as_echo "no" >&6; }
18090
18091
18092
18093 fi
18094
18095 rm -Rf build
18096
18097
18098
18099 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
18100 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
18101
18102
18103 cat >conftest.c <<_ACEOF
18104 /* confdefs.h. */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h. */
18109
18110
18111 #include <linux/fs.h>
18112
18113 int
18114 main (void)
18115 {
18116
18117 vfs_rename(NULL, NULL, NULL, NULL);
18118
18119 ;
18120 return 0;
18121 }
18122
18123 _ACEOF
18124
18125
18126 rm -Rf build && mkdir -p build
18127 echo "obj-m := conftest.o" >build/Makefile
18128 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130 (eval $ac_try) 2>&5
18131 ac_status=$?
18132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139
18140 { $as_echo "$as_me:$LINENO: result: yes" >&5
18141 $as_echo "yes" >&6; }
18142
18143 cat >>confdefs.h <<\_ACEOF
18144 #define HAVE_4ARGS_VFS_RENAME 1
18145 _ACEOF
18146
18147
18148 else
18149 $as_echo "$as_me: failed program was:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18151
18152 { $as_echo "$as_me:$LINENO: result: no" >&5
18153 $as_echo "no" >&6; }
18154
18155
18156
18157 fi
18158
18159 rm -Rf build
18160
18161
18162
18163
18164 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
18165 $as_echo_n "checking whether struct cred exists... " >&6; }
18166
18167
18168 cat >conftest.c <<_ACEOF
18169 /* confdefs.h. */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174
18175
18176 #include <linux/cred.h>
18177
18178 int
18179 main (void)
18180 {
18181
18182 struct cred *cr;
18183 cr = NULL;
18184
18185 ;
18186 return 0;
18187 }
18188
18189 _ACEOF
18190
18191
18192 rm -Rf build && mkdir -p build
18193 echo "obj-m := conftest.o" >build/Makefile
18194 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18197 ac_status=$?
18198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205
18206 { $as_echo "$as_me:$LINENO: result: yes" >&5
18207 $as_echo "yes" >&6; }
18208
18209 cat >>confdefs.h <<\_ACEOF
18210 #define HAVE_CRED_STRUCT 1
18211 _ACEOF
18212
18213
18214 else
18215 $as_echo "$as_me: failed program was:" >&5
18216 sed 's/^/| /' conftest.$ac_ext >&5
18217
18218 { $as_echo "$as_me:$LINENO: result: no" >&5
18219 $as_echo "no" >&6; }
18220
18221
18222
18223 fi
18224
18225 rm -Rf build
18226
18227
18228
18229
18230 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18231 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18232 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18233 $LINUX_OBJ/Module*.symvers 2>/dev/null
18234 rc=$?
18235 if test $rc -ne 0; then
18236 export=0
18237 for file in ; do
18238 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18239 "$LINUX_OBJ/$file" 2>/dev/null
18240 rc=$?
18241 if test $rc -eq 0; then
18242 export=1
18243 break;
18244 fi
18245 done
18246 if test $export -eq 0; then
18247 { $as_echo "$as_me:$LINENO: result: no" >&5
18248 $as_echo "no" >&6; }
18249
18250 else
18251 { $as_echo "$as_me:$LINENO: result: yes" >&5
18252 $as_echo "yes" >&6; }
18253
18254 cat >>confdefs.h <<\_ACEOF
18255 #define HAVE_GROUPS_SEARCH 1
18256 _ACEOF
18257
18258 fi
18259 else
18260 { $as_echo "$as_me:$LINENO: result: yes" >&5
18261 $as_echo "yes" >&6; }
18262
18263 cat >>confdefs.h <<\_ACEOF
18264 #define HAVE_GROUPS_SEARCH 1
18265 _ACEOF
18266
18267 fi
18268
18269
18270
18271 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18272 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18273 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18274 $LINUX_OBJ/Module*.symvers 2>/dev/null
18275 rc=$?
18276 if test $rc -ne 0; then
18277 export=0
18278 for file in ; do
18279 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18280 "$LINUX_OBJ/$file" 2>/dev/null
18281 rc=$?
18282 if test $rc -eq 0; then
18283 export=1
18284 break;
18285 fi
18286 done
18287 if test $export -eq 0; then
18288 { $as_echo "$as_me:$LINENO: result: no" >&5
18289 $as_echo "no" >&6; }
18290
18291 else
18292 { $as_echo "$as_me:$LINENO: result: yes" >&5
18293 $as_echo "yes" >&6; }
18294
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_PUT_TASK_STRUCT 1
18297 _ACEOF
18298
18299 fi
18300 else
18301 { $as_echo "$as_me:$LINENO: result: yes" >&5
18302 $as_echo "yes" >&6; }
18303
18304 cat >>confdefs.h <<\_ACEOF
18305 #define HAVE_PUT_TASK_STRUCT 1
18306 _ACEOF
18307
18308 fi
18309
18310
18311
18312 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18313 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
18314
18315
18316 cat >conftest.c <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322
18323
18324 #include <linux/sysctl.h>
18325
18326 int
18327 main (void)
18328 {
18329
18330 proc_dostring(NULL, 0, NULL, NULL, NULL);
18331
18332 ;
18333 return 0;
18334 }
18335
18336 _ACEOF
18337
18338
18339 rm -Rf build && mkdir -p build
18340 echo "obj-m := conftest.o" >build/Makefile
18341 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352
18353 { $as_echo "$as_me:$LINENO: result: yes" >&5
18354 $as_echo "yes" >&6; }
18355
18356 cat >>confdefs.h <<\_ACEOF
18357 #define HAVE_5ARGS_PROC_HANDLER 1
18358 _ACEOF
18359
18360
18361 else
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18364
18365 { $as_echo "$as_me:$LINENO: result: no" >&5
18366 $as_echo "no" >&6; }
18367
18368
18369
18370 fi
18371
18372 rm -Rf build
18373
18374
18375
18376
18377 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
18378 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
18379 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
18380 $LINUX_OBJ/Module*.symvers 2>/dev/null
18381 rc=$?
18382 if test $rc -ne 0; then
18383 export=0
18384 for file in ; do
18385 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
18386 "$LINUX_OBJ/$file" 2>/dev/null
18387 rc=$?
18388 if test $rc -eq 0; then
18389 export=1
18390 break;
18391 fi
18392 done
18393 if test $export -eq 0; then
18394 { $as_echo "$as_me:$LINENO: result: no" >&5
18395 $as_echo "no" >&6; }
18396
18397 else
18398 { $as_echo "$as_me:$LINENO: result: yes" >&5
18399 $as_echo "yes" >&6; }
18400
18401 cat >>confdefs.h <<\_ACEOF
18402 #define HAVE_KVASPRINTF 1
18403 _ACEOF
18404
18405 fi
18406 else
18407 { $as_echo "$as_me:$LINENO: result: yes" >&5
18408 $as_echo "yes" >&6; }
18409
18410 cat >>confdefs.h <<\_ACEOF
18411 #define HAVE_KVASPRINTF 1
18412 _ACEOF
18413
18414 fi
18415
18416
18417
18418 ;;
18419 srpm) ;;
18420 *)
18421 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18422 $as_echo "Error!" >&6; }
18423 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18424 user kernel|user|all|srpm" >&5
18425 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18426 user kernel|user|all|srpm" >&2;}
18427 { (exit 1); exit 1; }; } ;;
18428 esac
18429
18430 if test "$SPL_CONFIG" = user ||
18431 test "$SPL_CONFIG" = all; then
18432 CONFIG_USER_TRUE=
18433 CONFIG_USER_FALSE='#'
18434 else
18435 CONFIG_USER_TRUE='#'
18436 CONFIG_USER_FALSE=
18437 fi
18438
18439 if test "$SPL_CONFIG" = kernel ||
18440 test "$SPL_CONFIG" = all; then
18441 CONFIG_KERNEL_TRUE=
18442 CONFIG_KERNEL_FALSE='#'
18443 else
18444 CONFIG_KERNEL_TRUE='#'
18445 CONFIG_KERNEL_FALSE=
18446 fi
18447
18448
18449
18450 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"
18451
18452
18453 cat >confcache <<\_ACEOF
18454 # This file is a shell script that caches the results of configure
18455 # tests run on this system so they can be shared between configure
18456 # scripts and configure runs, see configure's option --config-cache.
18457 # It is not useful on other systems. If it contains results you don't
18458 # want to keep, you may remove or edit it.
18459 #
18460 # config.status only pays attention to the cache file if you give it
18461 # the --recheck option to rerun configure.
18462 #
18463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18465 # following values.
18466
18467 _ACEOF
18468
18469 # The following way of writing the cache mishandles newlines in values,
18470 # but we know of no workaround that is simple, portable, and efficient.
18471 # So, we kill variables containing newlines.
18472 # Ultrix sh set writes to stderr and can't be redirected directly,
18473 # and sets the high bit in the cache file unless we assign to the vars.
18474 (
18475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18476 eval ac_val=\$$ac_var
18477 case $ac_val in #(
18478 *${as_nl}*)
18479 case $ac_var in #(
18480 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18482 esac
18483 case $ac_var in #(
18484 _ | IFS | as_nl) ;; #(
18485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18486 *) $as_unset $ac_var ;;
18487 esac ;;
18488 esac
18489 done
18490
18491 (set) 2>&1 |
18492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18493 *${as_nl}ac_space=\ *)
18494 # `set' does not quote correctly, so add quotes (double-quote
18495 # substitution turns \\\\ into \\, and sed turns \\ into \).
18496 sed -n \
18497 "s/'/'\\\\''/g;
18498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18499 ;; #(
18500 *)
18501 # `set' quotes correctly as required by POSIX, so do not add quotes.
18502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18503 ;;
18504 esac |
18505 sort
18506 ) |
18507 sed '
18508 /^ac_cv_env_/b end
18509 t clear
18510 :clear
18511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18512 t end
18513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18514 :end' >>confcache
18515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18516 if test -w "$cache_file"; then
18517 test "x$cache_file" != "x/dev/null" &&
18518 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18519 $as_echo "$as_me: updating cache $cache_file" >&6;}
18520 cat confcache >$cache_file
18521 else
18522 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18524 fi
18525 fi
18526 rm -f confcache
18527
18528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18529 # Let make expand exec_prefix.
18530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18531
18532 DEFS=-DHAVE_CONFIG_H
18533
18534 ac_libobjs=
18535 ac_ltlibobjs=
18536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18537 # 1. Remove the extension, and $U if already installed.
18538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18541 # will be set to the directory where LIBOBJS objects are built.
18542 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18543 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18544 done
18545 LIBOBJS=$ac_libobjs
18546
18547 LTLIBOBJS=$ac_ltlibobjs
18548
18549
18550 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18551 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18552 Usually this means the macro was only invoked conditionally." >&5
18553 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18554 Usually this means the macro was only invoked conditionally." >&2;}
18555 { (exit 1); exit 1; }; }
18556 fi
18557 if test -n "$EXEEXT"; then
18558 am__EXEEXT_TRUE=
18559 am__EXEEXT_FALSE='#'
18560 else
18561 am__EXEEXT_TRUE='#'
18562 am__EXEEXT_FALSE=
18563 fi
18564
18565 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18566 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18567 Usually this means the macro was only invoked conditionally." >&5
18568 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18569 Usually this means the macro was only invoked conditionally." >&2;}
18570 { (exit 1); exit 1; }; }
18571 fi
18572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18573 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18574 Usually this means the macro was only invoked conditionally." >&5
18575 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18576 Usually this means the macro was only invoked conditionally." >&2;}
18577 { (exit 1); exit 1; }; }
18578 fi
18579 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18580 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18581 Usually this means the macro was only invoked conditionally." >&5
18582 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18583 Usually this means the macro was only invoked conditionally." >&2;}
18584 { (exit 1); exit 1; }; }
18585 fi
18586 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18587 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18588 Usually this means the macro was only invoked conditionally." >&5
18589 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18590 Usually this means the macro was only invoked conditionally." >&2;}
18591 { (exit 1); exit 1; }; }
18592 fi
18593
18594 : ${CONFIG_STATUS=./config.status}
18595 ac_write_fail=0
18596 ac_clean_files_save=$ac_clean_files
18597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18598 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18599 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18600 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18601 #! $SHELL
18602 # Generated by $as_me.
18603 # Run this file to recreate the current configuration.
18604 # Compiler output produced by configure, useful for debugging
18605 # configure, is in config.log if it exists.
18606
18607 debug=false
18608 ac_cs_recheck=false
18609 ac_cs_silent=false
18610 SHELL=\${CONFIG_SHELL-$SHELL}
18611 _ACEOF
18612
18613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18614 ## --------------------- ##
18615 ## M4sh Initialization. ##
18616 ## --------------------- ##
18617
18618 # Be more Bourne compatible
18619 DUALCASE=1; export DUALCASE # for MKS sh
18620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18621 emulate sh
18622 NULLCMD=:
18623 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18624 # is contrary to our usage. Disable this feature.
18625 alias -g '${1+"$@"}'='"$@"'
18626 setopt NO_GLOB_SUBST
18627 else
18628 case `(set -o) 2>/dev/null` in
18629 *posix*) set -o posix ;;
18630 esac
18631
18632 fi
18633
18634
18635
18636
18637 # PATH needs CR
18638 # Avoid depending upon Character Ranges.
18639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18642 as_cr_digits='0123456789'
18643 as_cr_alnum=$as_cr_Letters$as_cr_digits
18644
18645 as_nl='
18646 '
18647 export as_nl
18648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18652 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18653 as_echo='printf %s\n'
18654 as_echo_n='printf %s'
18655 else
18656 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18657 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18658 as_echo_n='/usr/ucb/echo -n'
18659 else
18660 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18661 as_echo_n_body='eval
18662 arg=$1;
18663 case $arg in
18664 *"$as_nl"*)
18665 expr "X$arg" : "X\\(.*\\)$as_nl";
18666 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18667 esac;
18668 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18669 '
18670 export as_echo_n_body
18671 as_echo_n='sh -c $as_echo_n_body as_echo'
18672 fi
18673 export as_echo_body
18674 as_echo='sh -c $as_echo_body as_echo'
18675 fi
18676
18677 # The user is always right.
18678 if test "${PATH_SEPARATOR+set}" != set; then
18679 PATH_SEPARATOR=:
18680 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18681 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18682 PATH_SEPARATOR=';'
18683 }
18684 fi
18685
18686 # Support unset when possible.
18687 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18688 as_unset=unset
18689 else
18690 as_unset=false
18691 fi
18692
18693
18694 # IFS
18695 # We need space, tab and new line, in precisely that order. Quoting is
18696 # there to prevent editors from complaining about space-tab.
18697 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18698 # splitting by setting IFS to empty value.)
18699 IFS=" "" $as_nl"
18700
18701 # Find who we are. Look in the path if we contain no directory separator.
18702 case $0 in
18703 *[\\/]* ) as_myself=$0 ;;
18704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18705 for as_dir in $PATH
18706 do
18707 IFS=$as_save_IFS
18708 test -z "$as_dir" && as_dir=.
18709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18710 done
18711 IFS=$as_save_IFS
18712
18713 ;;
18714 esac
18715 # We did not find ourselves, most probably we were run as `sh COMMAND'
18716 # in which case we are not to be found in the path.
18717 if test "x$as_myself" = x; then
18718 as_myself=$0
18719 fi
18720 if test ! -f "$as_myself"; then
18721 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18722 { (exit 1); exit 1; }
18723 fi
18724
18725 # Work around bugs in pre-3.0 UWIN ksh.
18726 for as_var in ENV MAIL MAILPATH
18727 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18728 done
18729 PS1='$ '
18730 PS2='> '
18731 PS4='+ '
18732
18733 # NLS nuisances.
18734 LC_ALL=C
18735 export LC_ALL
18736 LANGUAGE=C
18737 export LANGUAGE
18738
18739 # Required to use basename.
18740 if expr a : '\(a\)' >/dev/null 2>&1 &&
18741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18742 as_expr=expr
18743 else
18744 as_expr=false
18745 fi
18746
18747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18748 as_basename=basename
18749 else
18750 as_basename=false
18751 fi
18752
18753
18754 # Name of the executable.
18755 as_me=`$as_basename -- "$0" ||
18756 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18757 X"$0" : 'X\(//\)$' \| \
18758 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18759 $as_echo X/"$0" |
18760 sed '/^.*\/\([^/][^/]*\)\/*$/{
18761 s//\1/
18762 q
18763 }
18764 /^X\/\(\/\/\)$/{
18765 s//\1/
18766 q
18767 }
18768 /^X\/\(\/\).*/{
18769 s//\1/
18770 q
18771 }
18772 s/.*/./; q'`
18773
18774 # CDPATH.
18775 $as_unset CDPATH
18776
18777
18778
18779 as_lineno_1=$LINENO
18780 as_lineno_2=$LINENO
18781 test "x$as_lineno_1" != "x$as_lineno_2" &&
18782 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18783
18784 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18785 # uniformly replaced by the line number. The first 'sed' inserts a
18786 # line-number line after each line using $LINENO; the second 'sed'
18787 # does the real work. The second script uses 'N' to pair each
18788 # line-number line with the line containing $LINENO, and appends
18789 # trailing '-' during substitution so that $LINENO is not a special
18790 # case at line end.
18791 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18792 # scripts with optimization help from Paolo Bonzini. Blame Lee
18793 # E. McMahon (1931-1989) for sed's syntax. :-)
18794 sed -n '
18795 p
18796 /[$]LINENO/=
18797 ' <$as_myself |
18798 sed '
18799 s/[$]LINENO.*/&-/
18800 t lineno
18801 b
18802 :lineno
18803 N
18804 :loop
18805 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18806 t loop
18807 s/-\n.*//
18808 ' >$as_me.lineno &&
18809 chmod +x "$as_me.lineno" ||
18810 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18811 { (exit 1); exit 1; }; }
18812
18813 # Don't try to exec as it changes $[0], causing all sort of problems
18814 # (the dirname of $[0] is not the place where we might find the
18815 # original and so on. Autoconf is especially sensitive to this).
18816 . "./$as_me.lineno"
18817 # Exit status is that of the last command.
18818 exit
18819 }
18820
18821
18822 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18823 as_dirname=dirname
18824 else
18825 as_dirname=false
18826 fi
18827
18828 ECHO_C= ECHO_N= ECHO_T=
18829 case `echo -n x` in
18830 -n*)
18831 case `echo 'x\c'` in
18832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18833 *) ECHO_C='\c';;
18834 esac;;
18835 *)
18836 ECHO_N='-n';;
18837 esac
18838 if expr a : '\(a\)' >/dev/null 2>&1 &&
18839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18840 as_expr=expr
18841 else
18842 as_expr=false
18843 fi
18844
18845 rm -f conf$$ conf$$.exe conf$$.file
18846 if test -d conf$$.dir; then
18847 rm -f conf$$.dir/conf$$.file
18848 else
18849 rm -f conf$$.dir
18850 mkdir conf$$.dir 2>/dev/null
18851 fi
18852 if (echo >conf$$.file) 2>/dev/null; then
18853 if ln -s conf$$.file conf$$ 2>/dev/null; then
18854 as_ln_s='ln -s'
18855 # ... but there are two gotchas:
18856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18858 # In both cases, we have to default to `cp -p'.
18859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18860 as_ln_s='cp -p'
18861 elif ln conf$$.file conf$$ 2>/dev/null; then
18862 as_ln_s=ln
18863 else
18864 as_ln_s='cp -p'
18865 fi
18866 else
18867 as_ln_s='cp -p'
18868 fi
18869 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18870 rmdir conf$$.dir 2>/dev/null
18871
18872 if mkdir -p . 2>/dev/null; then
18873 as_mkdir_p=:
18874 else
18875 test -d ./-p && rmdir ./-p
18876 as_mkdir_p=false
18877 fi
18878
18879 if test -x / >/dev/null 2>&1; then
18880 as_test_x='test -x'
18881 else
18882 if ls -dL / >/dev/null 2>&1; then
18883 as_ls_L_option=L
18884 else
18885 as_ls_L_option=
18886 fi
18887 as_test_x='
18888 eval sh -c '\''
18889 if test -d "$1"; then
18890 test -d "$1/.";
18891 else
18892 case $1 in
18893 -*)set "./$1";;
18894 esac;
18895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18896 ???[sx]*):;;*)false;;esac;fi
18897 '\'' sh
18898 '
18899 fi
18900 as_executable_p=$as_test_x
18901
18902 # Sed expression to map a string onto a valid CPP name.
18903 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18904
18905 # Sed expression to map a string onto a valid variable name.
18906 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18907
18908
18909 exec 6>&1
18910
18911 # Save the log message, to keep $[0] and so on meaningful, and to
18912 # report actual input values of CONFIG_FILES etc. instead of their
18913 # values after options handling.
18914 ac_log="
18915 This file was extended by $as_me, which was
18916 generated by GNU Autoconf 2.63. Invocation command line was
18917
18918 CONFIG_FILES = $CONFIG_FILES
18919 CONFIG_HEADERS = $CONFIG_HEADERS
18920 CONFIG_LINKS = $CONFIG_LINKS
18921 CONFIG_COMMANDS = $CONFIG_COMMANDS
18922 $ $0 $@
18923
18924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18925 "
18926
18927 _ACEOF
18928
18929 case $ac_config_files in *"
18930 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18931 esac
18932
18933 case $ac_config_headers in *"
18934 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18935 esac
18936
18937
18938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18939 # Files that config.status was made for.
18940 config_files="$ac_config_files"
18941 config_headers="$ac_config_headers"
18942 config_commands="$ac_config_commands"
18943
18944 _ACEOF
18945
18946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18947 ac_cs_usage="\
18948 \`$as_me' instantiates files from templates according to the
18949 current configuration.
18950
18951 Usage: $0 [OPTION]... [FILE]...
18952
18953 -h, --help print this help, then exit
18954 -V, --version print version number and configuration settings, then exit
18955 -q, --quiet, --silent
18956 do not print progress messages
18957 -d, --debug don't remove temporary files
18958 --recheck update $as_me by reconfiguring in the same conditions
18959 --file=FILE[:TEMPLATE]
18960 instantiate the configuration file FILE
18961 --header=FILE[:TEMPLATE]
18962 instantiate the configuration header FILE
18963
18964 Configuration files:
18965 $config_files
18966
18967 Configuration headers:
18968 $config_headers
18969
18970 Configuration commands:
18971 $config_commands
18972
18973 Report bugs to <bug-autoconf@gnu.org>."
18974
18975 _ACEOF
18976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18977 ac_cs_version="\\
18978 config.status
18979 configured by $0, generated by GNU Autoconf 2.63,
18980 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18981
18982 Copyright (C) 2008 Free Software Foundation, Inc.
18983 This config.status script is free software; the Free Software Foundation
18984 gives unlimited permission to copy, distribute and modify it."
18985
18986 ac_pwd='$ac_pwd'
18987 srcdir='$srcdir'
18988 INSTALL='$INSTALL'
18989 MKDIR_P='$MKDIR_P'
18990 AWK='$AWK'
18991 test -n "\$AWK" || AWK=awk
18992 _ACEOF
18993
18994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18995 # The default lists apply if the user does not specify any file.
18996 ac_need_defaults=:
18997 while test $# != 0
18998 do
18999 case $1 in
19000 --*=*)
19001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19002 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19003 ac_shift=:
19004 ;;
19005 *)
19006 ac_option=$1
19007 ac_optarg=$2
19008 ac_shift=shift
19009 ;;
19010 esac
19011
19012 case $ac_option in
19013 # Handling of the options.
19014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19015 ac_cs_recheck=: ;;
19016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19017 $as_echo "$ac_cs_version"; exit ;;
19018 --debug | --debu | --deb | --de | --d | -d )
19019 debug=: ;;
19020 --file | --fil | --fi | --f )
19021 $ac_shift
19022 case $ac_optarg in
19023 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19024 esac
19025 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19026 ac_need_defaults=false;;
19027 --header | --heade | --head | --hea )
19028 $ac_shift
19029 case $ac_optarg in
19030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19031 esac
19032 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19033 ac_need_defaults=false;;
19034 --he | --h)
19035 # Conflict between --help and --header
19036 { $as_echo "$as_me: error: ambiguous option: $1
19037 Try \`$0 --help' for more information." >&2
19038 { (exit 1); exit 1; }; };;
19039 --help | --hel | -h )
19040 $as_echo "$ac_cs_usage"; exit ;;
19041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19042 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19043 ac_cs_silent=: ;;
19044
19045 # This is an error.
19046 -*) { $as_echo "$as_me: error: unrecognized option: $1
19047 Try \`$0 --help' for more information." >&2
19048 { (exit 1); exit 1; }; } ;;
19049
19050 *) ac_config_targets="$ac_config_targets $1"
19051 ac_need_defaults=false ;;
19052
19053 esac
19054 shift
19055 done
19056
19057 ac_configure_extra_args=
19058
19059 if $ac_cs_silent; then
19060 exec 6>/dev/null
19061 ac_configure_extra_args="$ac_configure_extra_args --silent"
19062 fi
19063
19064 _ACEOF
19065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19066 if \$ac_cs_recheck; then
19067 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19068 shift
19069 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19070 CONFIG_SHELL='$SHELL'
19071 export CONFIG_SHELL
19072 exec "\$@"
19073 fi
19074
19075 _ACEOF
19076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19077 exec 5>>config.log
19078 {
19079 echo
19080 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19081 ## Running $as_me. ##
19082 _ASBOX
19083 $as_echo "$ac_log"
19084 } >&5
19085
19086 _ACEOF
19087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19088 #
19089 # INIT-COMMANDS
19090 #
19091 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19092
19093
19094 # The HP-UX ksh and POSIX shell print the target directory to stdout
19095 # if CDPATH is set.
19096 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19097
19098 sed_quote_subst='$sed_quote_subst'
19099 double_quote_subst='$double_quote_subst'
19100 delay_variable_subst='$delay_variable_subst'
19101 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19102 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19103 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19104 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19105 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19106 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19107 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19108 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19109 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19110 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19111 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19112 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19113 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19114 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19115 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19116 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19117 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19118 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19119 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19120 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19121 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19122 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19123 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19124 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19125 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19126 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19127 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19128 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19129 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19130 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19131 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19132 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19133 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19134 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19135 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19136 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19137 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19138 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19139 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19140 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19141 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19142 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19143 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19144 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19145 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"`'
19146 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"`'
19147 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19148 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19149 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19150 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19151 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19152 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19153 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19154 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19155 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19156 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19157 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19158 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19159 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19160 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19161 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19162 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19163 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19164 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19165 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19166 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19167 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19168 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19169 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19170 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19171 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19172 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19173 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19174 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19175 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19176 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19177 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19178 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19179 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19180 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19181 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19182 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19183 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19184 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19185 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19186 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19187 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19188 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19189 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19190 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19191 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19192 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19193 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19194 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19195 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19196 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19197 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19198 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19199 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19200 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19201 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19202 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19203 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19204 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19205 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19206 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19207 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19208 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19209 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19210 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19211 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19212 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19213 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19214 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19215 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19216 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19217 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19218 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19219
19220 LTCC='$LTCC'
19221 LTCFLAGS='$LTCFLAGS'
19222 compiler='$compiler_DEFAULT'
19223
19224 # Quote evaled strings.
19225 for var in SED \
19226 GREP \
19227 EGREP \
19228 FGREP \
19229 LD \
19230 NM \
19231 LN_S \
19232 lt_SP2NL \
19233 lt_NL2SP \
19234 reload_flag \
19235 OBJDUMP \
19236 deplibs_check_method \
19237 file_magic_cmd \
19238 AR \
19239 AR_FLAGS \
19240 STRIP \
19241 RANLIB \
19242 CC \
19243 CFLAGS \
19244 compiler \
19245 lt_cv_sys_global_symbol_pipe \
19246 lt_cv_sys_global_symbol_to_cdecl \
19247 lt_cv_sys_global_symbol_to_c_name_address \
19248 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19249 SHELL \
19250 ECHO \
19251 lt_prog_compiler_no_builtin_flag \
19252 lt_prog_compiler_wl \
19253 lt_prog_compiler_pic \
19254 lt_prog_compiler_static \
19255 lt_cv_prog_compiler_c_o \
19256 need_locks \
19257 DSYMUTIL \
19258 NMEDIT \
19259 LIPO \
19260 OTOOL \
19261 OTOOL64 \
19262 shrext_cmds \
19263 export_dynamic_flag_spec \
19264 whole_archive_flag_spec \
19265 compiler_needs_object \
19266 with_gnu_ld \
19267 allow_undefined_flag \
19268 no_undefined_flag \
19269 hardcode_libdir_flag_spec \
19270 hardcode_libdir_flag_spec_ld \
19271 hardcode_libdir_separator \
19272 fix_srcfile_path \
19273 exclude_expsyms \
19274 include_expsyms \
19275 file_list_spec \
19276 variables_saved_for_relink \
19277 libname_spec \
19278 library_names_spec \
19279 soname_spec \
19280 finish_eval \
19281 old_striplib \
19282 striplib; do
19283 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19284 *[\\\\\\\`\\"\\\$]*)
19285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19286 ;;
19287 *)
19288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19289 ;;
19290 esac
19291 done
19292
19293 # Double-quote double-evaled strings.
19294 for var in reload_cmds \
19295 old_postinstall_cmds \
19296 old_postuninstall_cmds \
19297 old_archive_cmds \
19298 extract_expsyms_cmds \
19299 old_archive_from_new_cmds \
19300 old_archive_from_expsyms_cmds \
19301 archive_cmds \
19302 archive_expsym_cmds \
19303 module_cmds \
19304 module_expsym_cmds \
19305 export_symbols_cmds \
19306 prelink_cmds \
19307 postinstall_cmds \
19308 postuninstall_cmds \
19309 finish_cmds \
19310 sys_lib_search_path_spec \
19311 sys_lib_dlsearch_path_spec; do
19312 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19313 *[\\\\\\\`\\"\\\$]*)
19314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19315 ;;
19316 *)
19317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19318 ;;
19319 esac
19320 done
19321
19322 # Fix-up fallback echo if it was mangled by the above quoting rules.
19323 case \$lt_ECHO in
19324 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19325 ;;
19326 esac
19327
19328 ac_aux_dir='$ac_aux_dir'
19329 xsi_shell='$xsi_shell'
19330 lt_shell_append='$lt_shell_append'
19331
19332 # See if we are running on zsh, and set the options which allow our
19333 # commands through without removal of \ escapes INIT.
19334 if test -n "\${ZSH_VERSION+set}" ; then
19335 setopt NO_GLOB_SUBST
19336 fi
19337
19338
19339 PACKAGE='$PACKAGE'
19340 VERSION='$VERSION'
19341 TIMESTAMP='$TIMESTAMP'
19342 RM='$RM'
19343 ofile='$ofile'
19344
19345
19346
19347
19348 _ACEOF
19349
19350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19351
19352 # Handling of arguments.
19353 for ac_config_target in $ac_config_targets
19354 do
19355 case $ac_config_target in
19356 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19358 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19360 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19361 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19362 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19363 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19364 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19365 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19366 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19367 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19368 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19369
19370 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19371 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19372 { (exit 1); exit 1; }; };;
19373 esac
19374 done
19375
19376
19377 # If the user did not use the arguments to specify the items to instantiate,
19378 # then the envvar interface is used. Set only those that are not.
19379 # We use the long form for the default assignment because of an extremely
19380 # bizarre bug on SunOS 4.1.3.
19381 if $ac_need_defaults; then
19382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19384 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19385 fi
19386
19387 # Have a temporary directory for convenience. Make it in the build tree
19388 # simply because there is no reason against having it here, and in addition,
19389 # creating and moving files from /tmp can sometimes cause problems.
19390 # Hook for its removal unless debugging.
19391 # Note that there is a small window in which the directory will not be cleaned:
19392 # after its creation but before its name has been assigned to `$tmp'.
19393 $debug ||
19394 {
19395 tmp=
19396 trap 'exit_status=$?
19397 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19398 ' 0
19399 trap '{ (exit 1); exit 1; }' 1 2 13 15
19400 }
19401 # Create a (secure) tmp directory for tmp files.
19402
19403 {
19404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19405 test -n "$tmp" && test -d "$tmp"
19406 } ||
19407 {
19408 tmp=./conf$$-$RANDOM
19409 (umask 077 && mkdir "$tmp")
19410 } ||
19411 {
19412 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19413 { (exit 1); exit 1; }
19414 }
19415
19416 # Set up the scripts for CONFIG_FILES section.
19417 # No need to generate them if there are no CONFIG_FILES.
19418 # This happens for instance with `./config.status config.h'.
19419 if test -n "$CONFIG_FILES"; then
19420
19421
19422 ac_cr=' '
19423 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19424 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19425 ac_cs_awk_cr='\\r'
19426 else
19427 ac_cs_awk_cr=$ac_cr
19428 fi
19429
19430 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19431 _ACEOF
19432
19433
19434 {
19435 echo "cat >conf$$subs.awk <<_ACEOF" &&
19436 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19437 echo "_ACEOF"
19438 } >conf$$subs.sh ||
19439 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19440 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19441 { (exit 1); exit 1; }; }
19442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19443 ac_delim='%!_!# '
19444 for ac_last_try in false false false false false :; do
19445 . ./conf$$subs.sh ||
19446 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19447 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19448 { (exit 1); exit 1; }; }
19449
19450 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19451 if test $ac_delim_n = $ac_delim_num; then
19452 break
19453 elif $ac_last_try; then
19454 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19455 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19456 { (exit 1); exit 1; }; }
19457 else
19458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19459 fi
19460 done
19461 rm -f conf$$subs.sh
19462
19463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19464 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19465 _ACEOF
19466 sed -n '
19467 h
19468 s/^/S["/; s/!.*/"]=/
19469 p
19470 g
19471 s/^[^!]*!//
19472 :repl
19473 t repl
19474 s/'"$ac_delim"'$//
19475 t delim
19476 :nl
19477 h
19478 s/\(.\{148\}\).*/\1/
19479 t more1
19480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19481 p
19482 n
19483 b repl
19484 :more1
19485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19486 p
19487 g
19488 s/.\{148\}//
19489 t nl
19490 :delim
19491 h
19492 s/\(.\{148\}\).*/\1/
19493 t more2
19494 s/["\\]/\\&/g; s/^/"/; s/$/"/
19495 p
19496 b
19497 :more2
19498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19499 p
19500 g
19501 s/.\{148\}//
19502 t delim
19503 ' <conf$$subs.awk | sed '
19504 /^[^""]/{
19505 N
19506 s/\n//
19507 }
19508 ' >>$CONFIG_STATUS || ac_write_fail=1
19509 rm -f conf$$subs.awk
19510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19511 _ACAWK
19512 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19513 for (key in S) S_is_set[key] = 1
19514 FS = "\a"
19515
19516 }
19517 {
19518 line = $ 0
19519 nfields = split(line, field, "@")
19520 substed = 0
19521 len = length(field[1])
19522 for (i = 2; i < nfields; i++) {
19523 key = field[i]
19524 keylen = length(key)
19525 if (S_is_set[key]) {
19526 value = S[key]
19527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19528 len += length(value) + length(field[++i])
19529 substed = 1
19530 } else
19531 len += 1 + keylen
19532 }
19533
19534 print line
19535 }
19536
19537 _ACAWK
19538 _ACEOF
19539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19542 else
19543 cat
19544 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19545 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19546 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
19547 { (exit 1); exit 1; }; }
19548 _ACEOF
19549
19550 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19551 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19552 # trailing colons and then remove the whole line if VPATH becomes empty
19553 # (actually we leave an empty line to preserve line numbers).
19554 if test "x$srcdir" = x.; then
19555 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19556 s/:*\$(srcdir):*/:/
19557 s/:*\${srcdir}:*/:/
19558 s/:*@srcdir@:*/:/
19559 s/^\([^=]*=[ ]*\):*/\1/
19560 s/:*$//
19561 s/^[^=]*=[ ]*$//
19562 }'
19563 fi
19564
19565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19566 fi # test -n "$CONFIG_FILES"
19567
19568 # Set up the scripts for CONFIG_HEADERS section.
19569 # No need to generate them if there are no CONFIG_HEADERS.
19570 # This happens for instance with `./config.status Makefile'.
19571 if test -n "$CONFIG_HEADERS"; then
19572 cat >"$tmp/defines.awk" <<\_ACAWK ||
19573 BEGIN {
19574 _ACEOF
19575
19576 # Transform confdefs.h into an awk script `defines.awk', embedded as
19577 # here-document in config.status, that substitutes the proper values into
19578 # config.h.in to produce config.h.
19579
19580 # Create a delimiter string that does not exist in confdefs.h, to ease
19581 # handling of long lines.
19582 ac_delim='%!_!# '
19583 for ac_last_try in false false :; do
19584 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19585 if test -z "$ac_t"; then
19586 break
19587 elif $ac_last_try; then
19588 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19589 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19590 { (exit 1); exit 1; }; }
19591 else
19592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19593 fi
19594 done
19595
19596 # For the awk script, D is an array of macro values keyed by name,
19597 # likewise P contains macro parameters if any. Preserve backslash
19598 # newline sequences.
19599
19600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19601 sed -n '
19602 s/.\{148\}/&'"$ac_delim"'/g
19603 t rset
19604 :rset
19605 s/^[ ]*#[ ]*define[ ][ ]*/ /
19606 t def
19607 d
19608 :def
19609 s/\\$//
19610 t bsnl
19611 s/["\\]/\\&/g
19612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19613 D["\1"]=" \3"/p
19614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19615 d
19616 :bsnl
19617 s/["\\]/\\&/g
19618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19619 D["\1"]=" \3\\\\\\n"\\/p
19620 t cont
19621 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19622 t cont
19623 d
19624 :cont
19625 n
19626 s/.\{148\}/&'"$ac_delim"'/g
19627 t clear
19628 :clear
19629 s/\\$//
19630 t bsnlc
19631 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19632 d
19633 :bsnlc
19634 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19635 b cont
19636 ' <confdefs.h | sed '
19637 s/'"$ac_delim"'/"\\\
19638 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19639
19640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19641 for (key in D) D_is_set[key] = 1
19642 FS = "\a"
19643 }
19644 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19645 line = \$ 0
19646 split(line, arg, " ")
19647 if (arg[1] == "#") {
19648 defundef = arg[2]
19649 mac1 = arg[3]
19650 } else {
19651 defundef = substr(arg[1], 2)
19652 mac1 = arg[2]
19653 }
19654 split(mac1, mac2, "(") #)
19655 macro = mac2[1]
19656 prefix = substr(line, 1, index(line, defundef) - 1)
19657 if (D_is_set[macro]) {
19658 # Preserve the white space surrounding the "#".
19659 print prefix "define", macro P[macro] D[macro]
19660 next
19661 } else {
19662 # Replace #undef with comments. This is necessary, for example,
19663 # in the case of _POSIX_SOURCE, which is predefined and required
19664 # on some systems where configure will not decide to define it.
19665 if (defundef == "undef") {
19666 print "/*", prefix defundef, macro, "*/"
19667 next
19668 }
19669 }
19670 }
19671 { print }
19672 _ACAWK
19673 _ACEOF
19674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19675 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19676 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19677 { (exit 1); exit 1; }; }
19678 fi # test -n "$CONFIG_HEADERS"
19679
19680
19681 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19682 shift
19683 for ac_tag
19684 do
19685 case $ac_tag in
19686 :[FHLC]) ac_mode=$ac_tag; continue;;
19687 esac
19688 case $ac_mode$ac_tag in
19689 :[FHL]*:*);;
19690 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19691 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19692 { (exit 1); exit 1; }; };;
19693 :[FH]-) ac_tag=-:-;;
19694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19695 esac
19696 ac_save_IFS=$IFS
19697 IFS=:
19698 set x $ac_tag
19699 IFS=$ac_save_IFS
19700 shift
19701 ac_file=$1
19702 shift
19703
19704 case $ac_mode in
19705 :L) ac_source=$1;;
19706 :[FH])
19707 ac_file_inputs=
19708 for ac_f
19709 do
19710 case $ac_f in
19711 -) ac_f="$tmp/stdin";;
19712 *) # Look for the file first in the build tree, then in the source tree
19713 # (if the path is not absolute). The absolute path cannot be DOS-style,
19714 # because $ac_f cannot contain `:'.
19715 test -f "$ac_f" ||
19716 case $ac_f in
19717 [\\/$]*) false;;
19718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19719 esac ||
19720 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19721 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19722 { (exit 1); exit 1; }; };;
19723 esac
19724 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19725 ac_file_inputs="$ac_file_inputs '$ac_f'"
19726 done
19727
19728 # Let's still pretend it is `configure' which instantiates (i.e., don't
19729 # use $as_me), people would be surprised to read:
19730 # /* config.h. Generated by config.status. */
19731 configure_input='Generated from '`
19732 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19733 `' by configure.'
19734 if test x"$ac_file" != x-; then
19735 configure_input="$ac_file. $configure_input"
19736 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19737 $as_echo "$as_me: creating $ac_file" >&6;}
19738 fi
19739 # Neutralize special characters interpreted by sed in replacement strings.
19740 case $configure_input in #(
19741 *\&* | *\|* | *\\* )
19742 ac_sed_conf_input=`$as_echo "$configure_input" |
19743 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19744 *) ac_sed_conf_input=$configure_input;;
19745 esac
19746
19747 case $ac_tag in
19748 *:-:* | *:-) cat >"$tmp/stdin" \
19749 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19750 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19751 { (exit 1); exit 1; }; } ;;
19752 esac
19753 ;;
19754 esac
19755
19756 ac_dir=`$as_dirname -- "$ac_file" ||
19757 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19758 X"$ac_file" : 'X\(//\)[^/]' \| \
19759 X"$ac_file" : 'X\(//\)$' \| \
19760 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19761 $as_echo X"$ac_file" |
19762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19763 s//\1/
19764 q
19765 }
19766 /^X\(\/\/\)[^/].*/{
19767 s//\1/
19768 q
19769 }
19770 /^X\(\/\/\)$/{
19771 s//\1/
19772 q
19773 }
19774 /^X\(\/\).*/{
19775 s//\1/
19776 q
19777 }
19778 s/.*/./; q'`
19779 { as_dir="$ac_dir"
19780 case $as_dir in #(
19781 -*) as_dir=./$as_dir;;
19782 esac
19783 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19784 as_dirs=
19785 while :; do
19786 case $as_dir in #(
19787 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19788 *) as_qdir=$as_dir;;
19789 esac
19790 as_dirs="'$as_qdir' $as_dirs"
19791 as_dir=`$as_dirname -- "$as_dir" ||
19792 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19793 X"$as_dir" : 'X\(//\)[^/]' \| \
19794 X"$as_dir" : 'X\(//\)$' \| \
19795 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19796 $as_echo X"$as_dir" |
19797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19798 s//\1/
19799 q
19800 }
19801 /^X\(\/\/\)[^/].*/{
19802 s//\1/
19803 q
19804 }
19805 /^X\(\/\/\)$/{
19806 s//\1/
19807 q
19808 }
19809 /^X\(\/\).*/{
19810 s//\1/
19811 q
19812 }
19813 s/.*/./; q'`
19814 test -d "$as_dir" && break
19815 done
19816 test -z "$as_dirs" || eval "mkdir $as_dirs"
19817 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19818 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19819 { (exit 1); exit 1; }; }; }
19820 ac_builddir=.
19821
19822 case "$ac_dir" in
19823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19824 *)
19825 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19826 # A ".." for each directory in $ac_dir_suffix.
19827 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19828 case $ac_top_builddir_sub in
19829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19831 esac ;;
19832 esac
19833 ac_abs_top_builddir=$ac_pwd
19834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19835 # for backward compatibility:
19836 ac_top_builddir=$ac_top_build_prefix
19837
19838 case $srcdir in
19839 .) # We are building in place.
19840 ac_srcdir=.
19841 ac_top_srcdir=$ac_top_builddir_sub
19842 ac_abs_top_srcdir=$ac_pwd ;;
19843 [\\/]* | ?:[\\/]* ) # Absolute name.
19844 ac_srcdir=$srcdir$ac_dir_suffix;
19845 ac_top_srcdir=$srcdir
19846 ac_abs_top_srcdir=$srcdir ;;
19847 *) # Relative name.
19848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19849 ac_top_srcdir=$ac_top_build_prefix$srcdir
19850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19851 esac
19852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19853
19854
19855 case $ac_mode in
19856 :F)
19857 #
19858 # CONFIG_FILE
19859 #
19860
19861 case $INSTALL in
19862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19863 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19864 esac
19865 ac_MKDIR_P=$MKDIR_P
19866 case $MKDIR_P in
19867 [\\/$]* | ?:[\\/]* ) ;;
19868 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19869 esac
19870 _ACEOF
19871
19872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19873 # If the template does not know about datarootdir, expand it.
19874 # FIXME: This hack should be removed a few years after 2.60.
19875 ac_datarootdir_hack=; ac_datarootdir_seen=
19876
19877 ac_sed_dataroot='
19878 /datarootdir/ {
19879 p
19880 q
19881 }
19882 /@datadir@/p
19883 /@docdir@/p
19884 /@infodir@/p
19885 /@localedir@/p
19886 /@mandir@/p
19887 '
19888 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19889 *datarootdir*) ac_datarootdir_seen=yes;;
19890 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19891 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19892 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19893 _ACEOF
19894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19895 ac_datarootdir_hack='
19896 s&@datadir@&$datadir&g
19897 s&@docdir@&$docdir&g
19898 s&@infodir@&$infodir&g
19899 s&@localedir@&$localedir&g
19900 s&@mandir@&$mandir&g
19901 s&\\\${datarootdir}&$datarootdir&g' ;;
19902 esac
19903 _ACEOF
19904
19905 # Neutralize VPATH when `$srcdir' = `.'.
19906 # Shell code in configure.ac might set extrasub.
19907 # FIXME: do we really want to maintain this feature?
19908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19909 ac_sed_extra="$ac_vpsub
19910 $extrasub
19911 _ACEOF
19912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19913 :t
19914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19915 s|@configure_input@|$ac_sed_conf_input|;t t
19916 s&@top_builddir@&$ac_top_builddir_sub&;t t
19917 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19918 s&@srcdir@&$ac_srcdir&;t t
19919 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19920 s&@top_srcdir@&$ac_top_srcdir&;t t
19921 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19922 s&@builddir@&$ac_builddir&;t t
19923 s&@abs_builddir@&$ac_abs_builddir&;t t
19924 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19925 s&@INSTALL@&$ac_INSTALL&;t t
19926 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19927 $ac_datarootdir_hack
19928 "
19929 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19930 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19931 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19932 { (exit 1); exit 1; }; }
19933
19934 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19935 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19936 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19937 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19938 which seems to be undefined. Please make sure it is defined." >&5
19939 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19940 which seems to be undefined. Please make sure it is defined." >&2;}
19941
19942 rm -f "$tmp/stdin"
19943 case $ac_file in
19944 -) cat "$tmp/out" && rm -f "$tmp/out";;
19945 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19946 esac \
19947 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19948 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19949 { (exit 1); exit 1; }; }
19950 ;;
19951 :H)
19952 #
19953 # CONFIG_HEADER
19954 #
19955 if test x"$ac_file" != x-; then
19956 {
19957 $as_echo "/* $configure_input */" \
19958 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19959 } >"$tmp/config.h" \
19960 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19961 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19962 { (exit 1); exit 1; }; }
19963 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19964 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19965 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19966 else
19967 rm -f "$ac_file"
19968 mv "$tmp/config.h" "$ac_file" \
19969 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19970 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19971 { (exit 1); exit 1; }; }
19972 fi
19973 else
19974 $as_echo "/* $configure_input */" \
19975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19976 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19977 $as_echo "$as_me: error: could not create -" >&2;}
19978 { (exit 1); exit 1; }; }
19979 fi
19980 # Compute "$ac_file"'s index in $config_headers.
19981 _am_arg="$ac_file"
19982 _am_stamp_count=1
19983 for _am_header in $config_headers :; do
19984 case $_am_header in
19985 $_am_arg | $_am_arg:* )
19986 break ;;
19987 * )
19988 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19989 esac
19990 done
19991 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19992 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993 X"$_am_arg" : 'X\(//\)[^/]' \| \
19994 X"$_am_arg" : 'X\(//\)$' \| \
19995 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19996 $as_echo X"$_am_arg" |
19997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19998 s//\1/
19999 q
20000 }
20001 /^X\(\/\/\)[^/].*/{
20002 s//\1/
20003 q
20004 }
20005 /^X\(\/\/\)$/{
20006 s//\1/
20007 q
20008 }
20009 /^X\(\/\).*/{
20010 s//\1/
20011 q
20012 }
20013 s/.*/./; q'`/stamp-h$_am_stamp_count
20014 ;;
20015
20016 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20017 $as_echo "$as_me: executing $ac_file commands" >&6;}
20018 ;;
20019 esac
20020
20021
20022 case $ac_file$ac_mode in
20023 "spl_config.h":H)
20024 (mv spl_config.h spl_config.h.tmp &&
20025 awk -f config/config.awk spl_config.h.tmp >spl_config.h &&
20026 rm spl_config.h.tmp) || exit 1 ;;
20027 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20028 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20029 # are listed without --file. Let's play safe and only enable the eval
20030 # if we detect the quoting.
20031 case $CONFIG_FILES in
20032 *\'*) eval set x "$CONFIG_FILES" ;;
20033 *) set x $CONFIG_FILES ;;
20034 esac
20035 shift
20036 for mf
20037 do
20038 # Strip MF so we end up with the name of the file.
20039 mf=`echo "$mf" | sed -e 's/:.*$//'`
20040 # Check whether this is an Automake generated Makefile or not.
20041 # We used to match only the files named `Makefile.in', but
20042 # some people rename them; so instead we look at the file content.
20043 # Grep'ing the first line is not enough: some people post-process
20044 # each Makefile.in and add a new line on top of each file to say so.
20045 # Grep'ing the whole file is not good either: AIX grep has a line
20046 # limit of 2048, but all sed's we know have understand at least 4000.
20047 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20048 dirpart=`$as_dirname -- "$mf" ||
20049 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20050 X"$mf" : 'X\(//\)[^/]' \| \
20051 X"$mf" : 'X\(//\)$' \| \
20052 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20053 $as_echo X"$mf" |
20054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20055 s//\1/
20056 q
20057 }
20058 /^X\(\/\/\)[^/].*/{
20059 s//\1/
20060 q
20061 }
20062 /^X\(\/\/\)$/{
20063 s//\1/
20064 q
20065 }
20066 /^X\(\/\).*/{
20067 s//\1/
20068 q
20069 }
20070 s/.*/./; q'`
20071 else
20072 continue
20073 fi
20074 # Extract the definition of DEPDIR, am__include, and am__quote
20075 # from the Makefile without running `make'.
20076 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20077 test -z "$DEPDIR" && continue
20078 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20079 test -z "am__include" && continue
20080 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20081 # When using ansi2knr, U may be empty or an underscore; expand it
20082 U=`sed -n 's/^U = //p' < "$mf"`
20083 # Find all dependency output files, they are included files with
20084 # $(DEPDIR) in their names. We invoke sed twice because it is the
20085 # simplest approach to changing $(DEPDIR) to its actual value in the
20086 # expansion.
20087 for file in `sed -n "
20088 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20089 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20090 # Make sure the directory exists.
20091 test -f "$dirpart/$file" && continue
20092 fdir=`$as_dirname -- "$file" ||
20093 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20094 X"$file" : 'X\(//\)[^/]' \| \
20095 X"$file" : 'X\(//\)$' \| \
20096 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20097 $as_echo X"$file" |
20098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20099 s//\1/
20100 q
20101 }
20102 /^X\(\/\/\)[^/].*/{
20103 s//\1/
20104 q
20105 }
20106 /^X\(\/\/\)$/{
20107 s//\1/
20108 q
20109 }
20110 /^X\(\/\).*/{
20111 s//\1/
20112 q
20113 }
20114 s/.*/./; q'`
20115 { as_dir=$dirpart/$fdir
20116 case $as_dir in #(
20117 -*) as_dir=./$as_dir;;
20118 esac
20119 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20120 as_dirs=
20121 while :; do
20122 case $as_dir in #(
20123 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20124 *) as_qdir=$as_dir;;
20125 esac
20126 as_dirs="'$as_qdir' $as_dirs"
20127 as_dir=`$as_dirname -- "$as_dir" ||
20128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20129 X"$as_dir" : 'X\(//\)[^/]' \| \
20130 X"$as_dir" : 'X\(//\)$' \| \
20131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20132 $as_echo X"$as_dir" |
20133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20134 s//\1/
20135 q
20136 }
20137 /^X\(\/\/\)[^/].*/{
20138 s//\1/
20139 q
20140 }
20141 /^X\(\/\/\)$/{
20142 s//\1/
20143 q
20144 }
20145 /^X\(\/\).*/{
20146 s//\1/
20147 q
20148 }
20149 s/.*/./; q'`
20150 test -d "$as_dir" && break
20151 done
20152 test -z "$as_dirs" || eval "mkdir $as_dirs"
20153 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20154 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20155 { (exit 1); exit 1; }; }; }
20156 # echo "creating $dirpart/$file"
20157 echo '# dummy' > "$dirpart/$file"
20158 done
20159 done
20160 }
20161 ;;
20162 "libtool":C)
20163
20164 # See if we are running on zsh, and set the options which allow our
20165 # commands through without removal of \ escapes.
20166 if test -n "${ZSH_VERSION+set}" ; then
20167 setopt NO_GLOB_SUBST
20168 fi
20169
20170 cfgfile="${ofile}T"
20171 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20172 $RM "$cfgfile"
20173
20174 cat <<_LT_EOF >> "$cfgfile"
20175 #! $SHELL
20176
20177 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20178 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20179 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20180 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20181 #
20182 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20183 # 2006, 2007, 2008 Free Software Foundation, Inc.
20184 # Written by Gordon Matzigkeit, 1996
20185 #
20186 # This file is part of GNU Libtool.
20187 #
20188 # GNU Libtool is free software; you can redistribute it and/or
20189 # modify it under the terms of the GNU General Public License as
20190 # published by the Free Software Foundation; either version 2 of
20191 # the License, or (at your option) any later version.
20192 #
20193 # As a special exception to the GNU General Public License,
20194 # if you distribute this file as part of a program or library that
20195 # is built using GNU Libtool, you may include this file under the
20196 # same distribution terms that you use for the rest of that program.
20197 #
20198 # GNU Libtool is distributed in the hope that it will be useful,
20199 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20200 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20201 # GNU General Public License for more details.
20202 #
20203 # You should have received a copy of the GNU General Public License
20204 # along with GNU Libtool; see the file COPYING. If not, a copy
20205 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20206 # obtained by writing to the Free Software Foundation, Inc.,
20207 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20208
20209
20210 # The names of the tagged configurations supported by this script.
20211 available_tags=""
20212
20213 # ### BEGIN LIBTOOL CONFIG
20214
20215 # Which release of libtool.m4 was used?
20216 macro_version=$macro_version
20217 macro_revision=$macro_revision
20218
20219 # Whether or not to build shared libraries.
20220 build_libtool_libs=$enable_shared
20221
20222 # Whether or not to build static libraries.
20223 build_old_libs=$enable_static
20224
20225 # What type of objects to build.
20226 pic_mode=$pic_mode
20227
20228 # Whether or not to optimize for fast installation.
20229 fast_install=$enable_fast_install
20230
20231 # The host system.
20232 host_alias=$host_alias
20233 host=$host
20234 host_os=$host_os
20235
20236 # The build system.
20237 build_alias=$build_alias
20238 build=$build
20239 build_os=$build_os
20240
20241 # A sed program that does not truncate output.
20242 SED=$lt_SED
20243
20244 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20245 Xsed="\$SED -e 1s/^X//"
20246
20247 # A grep program that handles long lines.
20248 GREP=$lt_GREP
20249
20250 # An ERE matcher.
20251 EGREP=$lt_EGREP
20252
20253 # A literal string matcher.
20254 FGREP=$lt_FGREP
20255
20256 # A BSD- or MS-compatible name lister.
20257 NM=$lt_NM
20258
20259 # Whether we need soft or hard links.
20260 LN_S=$lt_LN_S
20261
20262 # What is the maximum length of a command?
20263 max_cmd_len=$max_cmd_len
20264
20265 # Object file suffix (normally "o").
20266 objext=$ac_objext
20267
20268 # Executable file suffix (normally "").
20269 exeext=$exeext
20270
20271 # whether the shell understands "unset".
20272 lt_unset=$lt_unset
20273
20274 # turn spaces into newlines.
20275 SP2NL=$lt_lt_SP2NL
20276
20277 # turn newlines into spaces.
20278 NL2SP=$lt_lt_NL2SP
20279
20280 # How to create reloadable object files.
20281 reload_flag=$lt_reload_flag
20282 reload_cmds=$lt_reload_cmds
20283
20284 # An object symbol dumper.
20285 OBJDUMP=$lt_OBJDUMP
20286
20287 # Method to check whether dependent libraries are shared objects.
20288 deplibs_check_method=$lt_deplibs_check_method
20289
20290 # Command to use when deplibs_check_method == "file_magic".
20291 file_magic_cmd=$lt_file_magic_cmd
20292
20293 # The archiver.
20294 AR=$lt_AR
20295 AR_FLAGS=$lt_AR_FLAGS
20296
20297 # A symbol stripping program.
20298 STRIP=$lt_STRIP
20299
20300 # Commands used to install an old-style archive.
20301 RANLIB=$lt_RANLIB
20302 old_postinstall_cmds=$lt_old_postinstall_cmds
20303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20304
20305 # A C compiler.
20306 LTCC=$lt_CC
20307
20308 # LTCC compiler flags.
20309 LTCFLAGS=$lt_CFLAGS
20310
20311 # Take the output of nm and produce a listing of raw symbols and C names.
20312 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20313
20314 # Transform the output of nm in a proper C declaration.
20315 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20316
20317 # Transform the output of nm in a C name address pair.
20318 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20319
20320 # Transform the output of nm in a C name address pair when lib prefix is needed.
20321 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20322
20323 # The name of the directory that contains temporary libtool files.
20324 objdir=$objdir
20325
20326 # Shell to use when invoking shell scripts.
20327 SHELL=$lt_SHELL
20328
20329 # An echo program that does not interpret backslashes.
20330 ECHO=$lt_ECHO
20331
20332 # Used to examine libraries when file_magic_cmd begins with "file".
20333 MAGIC_CMD=$MAGIC_CMD
20334
20335 # Must we lock files when doing compilation?
20336 need_locks=$lt_need_locks
20337
20338 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20339 DSYMUTIL=$lt_DSYMUTIL
20340
20341 # Tool to change global to local symbols on Mac OS X.
20342 NMEDIT=$lt_NMEDIT
20343
20344 # Tool to manipulate fat objects and archives on Mac OS X.
20345 LIPO=$lt_LIPO
20346
20347 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20348 OTOOL=$lt_OTOOL
20349
20350 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20351 OTOOL64=$lt_OTOOL64
20352
20353 # Old archive suffix (normally "a").
20354 libext=$libext
20355
20356 # Shared library suffix (normally ".so").
20357 shrext_cmds=$lt_shrext_cmds
20358
20359 # The commands to extract the exported symbol list from a shared archive.
20360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20361
20362 # Variables whose values should be saved in libtool wrapper scripts and
20363 # restored at link time.
20364 variables_saved_for_relink=$lt_variables_saved_for_relink
20365
20366 # Do we need the "lib" prefix for modules?
20367 need_lib_prefix=$need_lib_prefix
20368
20369 # Do we need a version for libraries?
20370 need_version=$need_version
20371
20372 # Library versioning type.
20373 version_type=$version_type
20374
20375 # Shared library runtime path variable.
20376 runpath_var=$runpath_var
20377
20378 # Shared library path variable.
20379 shlibpath_var=$shlibpath_var
20380
20381 # Is shlibpath searched before the hard-coded library search path?
20382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20383
20384 # Format of library name prefix.
20385 libname_spec=$lt_libname_spec
20386
20387 # List of archive names. First name is the real one, the rest are links.
20388 # The last name is the one that the linker finds with -lNAME
20389 library_names_spec=$lt_library_names_spec
20390
20391 # The coded name of the library, if different from the real name.
20392 soname_spec=$lt_soname_spec
20393
20394 # Command to use after installation of a shared archive.
20395 postinstall_cmds=$lt_postinstall_cmds
20396
20397 # Command to use after uninstallation of a shared archive.
20398 postuninstall_cmds=$lt_postuninstall_cmds
20399
20400 # Commands used to finish a libtool library installation in a directory.
20401 finish_cmds=$lt_finish_cmds
20402
20403 # As "finish_cmds", except a single script fragment to be evaled but
20404 # not shown.
20405 finish_eval=$lt_finish_eval
20406
20407 # Whether we should hardcode library paths into libraries.
20408 hardcode_into_libs=$hardcode_into_libs
20409
20410 # Compile-time system search path for libraries.
20411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20412
20413 # Run-time system search path for libraries.
20414 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20415
20416 # Whether dlopen is supported.
20417 dlopen_support=$enable_dlopen
20418
20419 # Whether dlopen of programs is supported.
20420 dlopen_self=$enable_dlopen_self
20421
20422 # Whether dlopen of statically linked programs is supported.
20423 dlopen_self_static=$enable_dlopen_self_static
20424
20425 # Commands to strip libraries.
20426 old_striplib=$lt_old_striplib
20427 striplib=$lt_striplib
20428
20429
20430 # The linker used to build libraries.
20431 LD=$lt_LD
20432
20433 # Commands used to build an old-style archive.
20434 old_archive_cmds=$lt_old_archive_cmds
20435
20436 # A language specific compiler.
20437 CC=$lt_compiler
20438
20439 # Is the compiler the GNU compiler?
20440 with_gcc=$GCC
20441
20442 # Compiler flag to turn off builtin functions.
20443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20444
20445 # How to pass a linker flag through the compiler.
20446 wl=$lt_lt_prog_compiler_wl
20447
20448 # Additional compiler flags for building library objects.
20449 pic_flag=$lt_lt_prog_compiler_pic
20450
20451 # Compiler flag to prevent dynamic linking.
20452 link_static_flag=$lt_lt_prog_compiler_static
20453
20454 # Does compiler simultaneously support -c and -o options?
20455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20456
20457 # Whether or not to add -lc for building shared libraries.
20458 build_libtool_need_lc=$archive_cmds_need_lc
20459
20460 # Whether or not to disallow shared libs when runtime libs are static.
20461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20462
20463 # Compiler flag to allow reflexive dlopens.
20464 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20465
20466 # Compiler flag to generate shared objects directly from archives.
20467 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20468
20469 # Whether the compiler copes with passing no objects directly.
20470 compiler_needs_object=$lt_compiler_needs_object
20471
20472 # Create an old-style archive from a shared archive.
20473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20474
20475 # Create a temporary old-style archive to link instead of a shared archive.
20476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20477
20478 # Commands used to build a shared archive.
20479 archive_cmds=$lt_archive_cmds
20480 archive_expsym_cmds=$lt_archive_expsym_cmds
20481
20482 # Commands used to build a loadable module if different from building
20483 # a shared archive.
20484 module_cmds=$lt_module_cmds
20485 module_expsym_cmds=$lt_module_expsym_cmds
20486
20487 # Whether we are building with GNU ld or not.
20488 with_gnu_ld=$lt_with_gnu_ld
20489
20490 # Flag that allows shared libraries with undefined symbols to be built.
20491 allow_undefined_flag=$lt_allow_undefined_flag
20492
20493 # Flag that enforces no undefined symbols.
20494 no_undefined_flag=$lt_no_undefined_flag
20495
20496 # Flag to hardcode \$libdir into a binary during linking.
20497 # This must work even if \$libdir does not exist
20498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20499
20500 # If ld is used when linking, flag to hardcode \$libdir into a binary
20501 # during linking. This must work even if \$libdir does not exist.
20502 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20503
20504 # Whether we need a single "-rpath" flag with a separated argument.
20505 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20506
20507 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20508 # DIR into the resulting binary.
20509 hardcode_direct=$hardcode_direct
20510
20511 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20512 # DIR into the resulting binary and the resulting library dependency is
20513 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20514 # library is relocated.
20515 hardcode_direct_absolute=$hardcode_direct_absolute
20516
20517 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20518 # into the resulting binary.
20519 hardcode_minus_L=$hardcode_minus_L
20520
20521 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20522 # into the resulting binary.
20523 hardcode_shlibpath_var=$hardcode_shlibpath_var
20524
20525 # Set to "yes" if building a shared library automatically hardcodes DIR
20526 # into the library and all subsequent libraries and executables linked
20527 # against it.
20528 hardcode_automatic=$hardcode_automatic
20529
20530 # Set to yes if linker adds runtime paths of dependent libraries
20531 # to runtime path list.
20532 inherit_rpath=$inherit_rpath
20533
20534 # Whether libtool must link a program against all its dependency libraries.
20535 link_all_deplibs=$link_all_deplibs
20536
20537 # Fix the shell variable \$srcfile for the compiler.
20538 fix_srcfile_path=$lt_fix_srcfile_path
20539
20540 # Set to "yes" if exported symbols are required.
20541 always_export_symbols=$always_export_symbols
20542
20543 # The commands to list exported symbols.
20544 export_symbols_cmds=$lt_export_symbols_cmds
20545
20546 # Symbols that should not be listed in the preloaded symbols.
20547 exclude_expsyms=$lt_exclude_expsyms
20548
20549 # Symbols that must always be exported.
20550 include_expsyms=$lt_include_expsyms
20551
20552 # Commands necessary for linking programs (against libraries) with templates.
20553 prelink_cmds=$lt_prelink_cmds
20554
20555 # Specify filename containing input files.
20556 file_list_spec=$lt_file_list_spec
20557
20558 # How to hardcode a shared library path into an executable.
20559 hardcode_action=$hardcode_action
20560
20561 # ### END LIBTOOL CONFIG
20562
20563 _LT_EOF
20564
20565 case $host_os in
20566 aix3*)
20567 cat <<\_LT_EOF >> "$cfgfile"
20568 # AIX sometimes has problems with the GCC collect2 program. For some
20569 # reason, if we set the COLLECT_NAMES environment variable, the problems
20570 # vanish in a puff of smoke.
20571 if test "X${COLLECT_NAMES+set}" != Xset; then
20572 COLLECT_NAMES=
20573 export COLLECT_NAMES
20574 fi
20575 _LT_EOF
20576 ;;
20577 esac
20578
20579
20580 ltmain="$ac_aux_dir/ltmain.sh"
20581
20582
20583 # We use sed instead of cat because bash on DJGPP gets confused if
20584 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20585 # text mode, it properly converts lines to CR/LF. This bash problem
20586 # is reportedly fixed, but why not run on old versions too?
20587 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20588 || (rm -f "$cfgfile"; exit 1)
20589
20590 case $xsi_shell in
20591 yes)
20592 cat << \_LT_EOF >> "$cfgfile"
20593
20594 # func_dirname file append nondir_replacement
20595 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20596 # otherwise set result to NONDIR_REPLACEMENT.
20597 func_dirname ()
20598 {
20599 case ${1} in
20600 */*) func_dirname_result="${1%/*}${2}" ;;
20601 * ) func_dirname_result="${3}" ;;
20602 esac
20603 }
20604
20605 # func_basename file
20606 func_basename ()
20607 {
20608 func_basename_result="${1##*/}"
20609 }
20610
20611 # func_dirname_and_basename file append nondir_replacement
20612 # perform func_basename and func_dirname in a single function
20613 # call:
20614 # dirname: Compute the dirname of FILE. If nonempty,
20615 # add APPEND to the result, otherwise set result
20616 # to NONDIR_REPLACEMENT.
20617 # value returned in "$func_dirname_result"
20618 # basename: Compute filename of FILE.
20619 # value retuned in "$func_basename_result"
20620 # Implementation must be kept synchronized with func_dirname
20621 # and func_basename. For efficiency, we do not delegate to
20622 # those functions but instead duplicate the functionality here.
20623 func_dirname_and_basename ()
20624 {
20625 case ${1} in
20626 */*) func_dirname_result="${1%/*}${2}" ;;
20627 * ) func_dirname_result="${3}" ;;
20628 esac
20629 func_basename_result="${1##*/}"
20630 }
20631
20632 # func_stripname prefix suffix name
20633 # strip PREFIX and SUFFIX off of NAME.
20634 # PREFIX and SUFFIX must not contain globbing or regex special
20635 # characters, hashes, percent signs, but SUFFIX may contain a leading
20636 # dot (in which case that matches only a dot).
20637 func_stripname ()
20638 {
20639 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20640 # positional parameters, so assign one to ordinary parameter first.
20641 func_stripname_result=${3}
20642 func_stripname_result=${func_stripname_result#"${1}"}
20643 func_stripname_result=${func_stripname_result%"${2}"}
20644 }
20645
20646 # func_opt_split
20647 func_opt_split ()
20648 {
20649 func_opt_split_opt=${1%%=*}
20650 func_opt_split_arg=${1#*=}
20651 }
20652
20653 # func_lo2o object
20654 func_lo2o ()
20655 {
20656 case ${1} in
20657 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20658 *) func_lo2o_result=${1} ;;
20659 esac
20660 }
20661
20662 # func_xform libobj-or-source
20663 func_xform ()
20664 {
20665 func_xform_result=${1%.*}.lo
20666 }
20667
20668 # func_arith arithmetic-term...
20669 func_arith ()
20670 {
20671 func_arith_result=$(( $* ))
20672 }
20673
20674 # func_len string
20675 # STRING may not start with a hyphen.
20676 func_len ()
20677 {
20678 func_len_result=${#1}
20679 }
20680
20681 _LT_EOF
20682 ;;
20683 *) # Bourne compatible functions.
20684 cat << \_LT_EOF >> "$cfgfile"
20685
20686 # func_dirname file append nondir_replacement
20687 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20688 # otherwise set result to NONDIR_REPLACEMENT.
20689 func_dirname ()
20690 {
20691 # Extract subdirectory from the argument.
20692 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20693 if test "X$func_dirname_result" = "X${1}"; then
20694 func_dirname_result="${3}"
20695 else
20696 func_dirname_result="$func_dirname_result${2}"
20697 fi
20698 }
20699
20700 # func_basename file
20701 func_basename ()
20702 {
20703 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20704 }
20705
20706
20707 # func_stripname prefix suffix name
20708 # strip PREFIX and SUFFIX off of NAME.
20709 # PREFIX and SUFFIX must not contain globbing or regex special
20710 # characters, hashes, percent signs, but SUFFIX may contain a leading
20711 # dot (in which case that matches only a dot).
20712 # func_strip_suffix prefix name
20713 func_stripname ()
20714 {
20715 case ${2} in
20716 .*) func_stripname_result=`$ECHO "X${3}" \
20717 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20718 *) func_stripname_result=`$ECHO "X${3}" \
20719 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20720 esac
20721 }
20722
20723 # sed scripts:
20724 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20725 my_sed_long_arg='1s/^-[^=]*=//'
20726
20727 # func_opt_split
20728 func_opt_split ()
20729 {
20730 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20731 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20732 }
20733
20734 # func_lo2o object
20735 func_lo2o ()
20736 {
20737 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20738 }
20739
20740 # func_xform libobj-or-source
20741 func_xform ()
20742 {
20743 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20744 }
20745
20746 # func_arith arithmetic-term...
20747 func_arith ()
20748 {
20749 func_arith_result=`expr "$@"`
20750 }
20751
20752 # func_len string
20753 # STRING may not start with a hyphen.
20754 func_len ()
20755 {
20756 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20757 }
20758
20759 _LT_EOF
20760 esac
20761
20762 case $lt_shell_append in
20763 yes)
20764 cat << \_LT_EOF >> "$cfgfile"
20765
20766 # func_append var value
20767 # Append VALUE to the end of shell variable VAR.
20768 func_append ()
20769 {
20770 eval "$1+=\$2"
20771 }
20772 _LT_EOF
20773 ;;
20774 *)
20775 cat << \_LT_EOF >> "$cfgfile"
20776
20777 # func_append var value
20778 # Append VALUE to the end of shell variable VAR.
20779 func_append ()
20780 {
20781 eval "$1=\$$1\$2"
20782 }
20783
20784 _LT_EOF
20785 ;;
20786 esac
20787
20788
20789 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20790 || (rm -f "$cfgfile"; exit 1)
20791
20792 mv -f "$cfgfile" "$ofile" ||
20793 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20794 chmod +x "$ofile"
20795
20796 ;;
20797
20798 esac
20799 done # for ac_tag
20800
20801
20802 { (exit 0); exit 0; }
20803 _ACEOF
20804 chmod +x $CONFIG_STATUS
20805 ac_clean_files=$ac_clean_files_save
20806
20807 test $ac_write_fail = 0 ||
20808 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20809 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20810 { (exit 1); exit 1; }; }
20811
20812
20813 # configure is writing to config.log, and then calls config.status.
20814 # config.status does its own redirection, appending to config.log.
20815 # Unfortunately, on DOS this fails, as config.log is still kept open
20816 # by configure, so config.status won't be able to write to it; its
20817 # output is simply discarded. So we exec the FD to /dev/null,
20818 # effectively closing config.log, so it can be properly (re)opened and
20819 # appended to by config.status. When coming back to configure, we
20820 # need to make the FD available again.
20821 if test "$no_create" != yes; then
20822 ac_cs_success=:
20823 ac_config_status_args=
20824 test "$silent" = yes &&
20825 ac_config_status_args="$ac_config_status_args --quiet"
20826 exec 5>/dev/null
20827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20828 exec 5>>config.log
20829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20830 # would make configure fail if this is the last instruction.
20831 $ac_cs_success || { (exit 1); exit 1; }
20832 fi
20833 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20834 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20835 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20836 fi
20837