]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Linux 3.1 compat, vfs_fsync()
[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 DEFAULT_PACKAGE
803 VENDOR
804 ALIEN_VERSION
805 ALIEN
806 HAVE_ALIEN
807 DPKGBUILD_VERSION
808 DPKGBUILD
809 HAVE_DPKGBUILD
810 DPKG_VERSION
811 DPKG
812 HAVE_DPKG
813 RPMBUILD_VERSION
814 RPMBUILD
815 HAVE_RPMBUILD
816 RPM_VERSION
817 RPM
818 HAVE_RPM
819 LICENSE
820 CPP
821 OTOOL64
822 OTOOL
823 LIPO
824 NMEDIT
825 DSYMUTIL
826 lt_ECHO
827 RANLIB
828 AR
829 OBJDUMP
830 LN_S
831 NM
832 ac_ct_DUMPBIN
833 DUMPBIN
834 LD
835 FGREP
836 EGREP
837 GREP
838 SED
839 LIBTOOL
840 am__fastdepCC_FALSE
841 am__fastdepCC_TRUE
842 CCDEPMODE
843 AMDEPBACKSLASH
844 AMDEP_FALSE
845 AMDEP_TRUE
846 am__quote
847 am__include
848 DEPDIR
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 am__untar
857 am__tar
858 AMTAR
859 am__leading_dot
860 SET_MAKE
861 AWK
862 mkdir_p
863 MKDIR_P
864 INSTALL_STRIP_PROGRAM
865 STRIP
866 install_sh
867 MAKEINFO
868 AUTOHEADER
869 AUTOMAKE
870 AUTOCONF
871 ACLOCAL
872 VERSION
873 PACKAGE
874 CYGPATH_W
875 am__isrc
876 INSTALL_DATA
877 INSTALL_SCRIPT
878 INSTALL_PROGRAM
879 AM_BACKSLASH
880 AM_DEFAULT_VERBOSITY
881 MAINT
882 MAINTAINER_MODE_FALSE
883 MAINTAINER_MODE_TRUE
884 target_os
885 target_vendor
886 target_cpu
887 target
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 SPL_META_LT_AGE
897 SPL_META_LT_REVISION
898 SPL_META_LT_CURRENT
899 SPL_META_AUTHOR
900 SPL_META_DATA
901 SPL_META_ALIAS
902 SPL_META_RELEASE
903 SPL_META_VERSION
904 SPL_META_NAME
905 target_alias
906 host_alias
907 build_alias
908 LIBS
909 ECHO_T
910 ECHO_N
911 ECHO_C
912 DEFS
913 mandir
914 localedir
915 libdir
916 psdir
917 pdfdir
918 dvidir
919 htmldir
920 infodir
921 docdir
922 oldincludedir
923 includedir
924 localstatedir
925 sharedstatedir
926 sysconfdir
927 datadir
928 datarootdir
929 libexecdir
930 sbindir
931 bindir
932 program_transform_name
933 prefix
934 exec_prefix
935 PACKAGE_BUGREPORT
936 PACKAGE_STRING
937 PACKAGE_VERSION
938 PACKAGE_TARNAME
939 PACKAGE_NAME
940 PATH_SEPARATOR
941 SHELL'
942 ac_subst_files=''
943 ac_user_opts='
944 enable_option_checking
945 enable_maintainer_mode
946 enable_silent_rules
947 enable_dependency_tracking
948 enable_shared
949 enable_static
950 with_pic
951 enable_fast_install
952 with_gnu_ld
953 enable_libtool_lock
954 with_config
955 with_linux
956 with_linux_obj
957 enable_debug
958 enable_debug_kmem
959 enable_debug_kmem_tracking
960 enable_atomic_spinlocks
961 '
962 ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 CPP'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 ac_unrecognized_opts=
977 ac_unrecognized_sep=
978 # The variables have the same names as the options, with
979 # dashes changed to underlines.
980 cache_file=/dev/null
981 exec_prefix=NONE
982 no_create=
983 no_recursion=
984 prefix=NONE
985 program_prefix=NONE
986 program_suffix=NONE
987 program_transform_name=s,x,x,
988 silent=
989 site=
990 srcdir=
991 verbose=
992 x_includes=NONE
993 x_libraries=NONE
994
995 # Installation directory options.
996 # These are left unexpanded so users can "make install exec_prefix=/foo"
997 # and all the variables that are supposed to be based on exec_prefix
998 # by default will actually change.
999 # Use braces instead of parens because sh, perl, etc. also accept them.
1000 # (The list follows the same order as the GNU Coding Standards.)
1001 bindir='${exec_prefix}/bin'
1002 sbindir='${exec_prefix}/sbin'
1003 libexecdir='${exec_prefix}/libexec'
1004 datarootdir='${prefix}/share'
1005 datadir='${datarootdir}'
1006 sysconfdir='${prefix}/etc'
1007 sharedstatedir='${prefix}/com'
1008 localstatedir='${prefix}/var'
1009 includedir='${prefix}/include'
1010 oldincludedir='/usr/include'
1011 docdir='${datarootdir}/doc/${PACKAGE}'
1012 infodir='${datarootdir}/info'
1013 htmldir='${docdir}'
1014 dvidir='${docdir}'
1015 pdfdir='${docdir}'
1016 psdir='${docdir}'
1017 libdir='${exec_prefix}/lib'
1018 localedir='${datarootdir}/locale'
1019 mandir='${datarootdir}/man'
1020
1021 ac_prev=
1022 ac_dashdash=
1023 for ac_option
1024 do
1025 # If the previous option needs an argument, assign it.
1026 if test -n "$ac_prev"; then
1027 eval $ac_prev=\$ac_option
1028 ac_prev=
1029 continue
1030 fi
1031
1032 case $ac_option in
1033 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 *) ac_optarg=yes ;;
1035 esac
1036
1037 # Accept the important Cygnus configure options, so we can diagnose typos.
1038
1039 case $ac_dashdash$ac_option in
1040 --)
1041 ac_dashdash=yes ;;
1042
1043 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1044 ac_prev=bindir ;;
1045 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1046 bindir=$ac_optarg ;;
1047
1048 -build | --build | --buil | --bui | --bu)
1049 ac_prev=build_alias ;;
1050 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1051 build_alias=$ac_optarg ;;
1052
1053 -cache-file | --cache-file | --cache-fil | --cache-fi \
1054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1055 ac_prev=cache_file ;;
1056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1058 cache_file=$ac_optarg ;;
1059
1060 --config-cache | -C)
1061 cache_file=config.cache ;;
1062
1063 -datadir | --datadir | --datadi | --datad)
1064 ac_prev=datadir ;;
1065 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1066 datadir=$ac_optarg ;;
1067
1068 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1069 | --dataroo | --dataro | --datar)
1070 ac_prev=datarootdir ;;
1071 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1072 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1073 datarootdir=$ac_optarg ;;
1074
1075 -disable-* | --disable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=no ;;
1091
1092 -docdir | --docdir | --docdi | --doc | --do)
1093 ac_prev=docdir ;;
1094 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1095 docdir=$ac_optarg ;;
1096
1097 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 ac_prev=dvidir ;;
1099 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1100 dvidir=$ac_optarg ;;
1101
1102 -enable-* | --enable-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112 "enable_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
1323
1324 -without-* | --without-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1329 { (exit 1); exit 1; }; }
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1340
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1344
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1351
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1358
1359 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1360 Try \`$0 --help' for more information." >&2
1361 { (exit 1); exit 1; }; }
1362 ;;
1363
1364 *=*)
1365 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1366 # Reject names that are not valid shell variable names.
1367 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1368 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1369 { (exit 1); exit 1; }; }
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1372
1373 *)
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1379 ;;
1380
1381 esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1387 { (exit 1); exit 1; }; }
1388 fi
1389
1390 if test -n "$ac_unrecognized_opts"; then
1391 case $enable_option_checking in
1392 no) ;;
1393 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1394 { (exit 1); exit 1; }; } ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1397 fi
1398
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1404 do
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1418 { (exit 1); exit 1; }; }
1419 done
1420
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1427
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1436 fi
1437 fi
1438
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441
1442 test "$silent" = yes && exec 6>/dev/null
1443
1444
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1449 { (exit 1); exit 1; }; }
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1452 { (exit 1); exit 1; }; }
1453
1454
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1485 fi
1486 else
1487 ac_srcdir_defaulted=no
1488 fi
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1492 { (exit 1); exit 1; }; }
1493 fi
1494 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1495 ac_abs_confdir=`(
1496 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1497 { (exit 1); exit 1; }; }
1498 pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501 srcdir=.
1502 fi
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_env_${ac_var}_value=\$${ac_var}
1512 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1515
1516 #
1517 # Report the --help message.
1518 #
1519 if test "$ac_init_help" = "long"; then
1520 # Omit some internal or obsolete options to make the list less imposing.
1521 # This message is too long to be a string in the A/UX 3.1 sh.
1522 cat <<_ACEOF
1523 \`configure' configures this package to adapt to many kinds of systems.
1524
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE. See below for descriptions of some of the useful variables.
1529
1530 Defaults for the options are specified in brackets.
1531
1532 Configuration:
1533 -h, --help display this help and exit
1534 --help=short display options specific to this package
1535 --help=recursive display the short help of all the included packages
1536 -V, --version display version information and exit
1537 -q, --quiet, --silent do not print \`checking...' messages
1538 --cache-file=FILE cache test results in FILE [disabled]
1539 -C, --config-cache alias for \`--cache-file=config.cache'
1540 -n, --no-create do not create output files
1541 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1542
1543 Installation directories:
1544 --prefix=PREFIX install architecture-independent files in PREFIX
1545 [$ac_default_prefix]
1546 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1547 [PREFIX]
1548
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1553
1554 For better control, use the options below.
1555
1556 Fine tuning of the installation directories:
1557 --bindir=DIR user executables [EPREFIX/bin]
1558 --sbindir=DIR system admin executables [EPREFIX/sbin]
1559 --libexecdir=DIR program executables [EPREFIX/libexec]
1560 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1561 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1562 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
1576 _ACEOF
1577
1578 cat <<\_ACEOF
1579
1580 Program names:
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1584
1585 System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1589 _ACEOF
1590 fi
1591
1592 if test -n "$ac_init_help"; then
1593
1594 cat <<\_ACEOF
1595
1596 Optional Features:
1597 --disable-option-checking ignore unrecognized --enable/--with options
1598 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1599 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1600 --enable-maintainer-mode enable make rules and dependencies not useful
1601 (and sometimes confusing) to the casual installer
1602 --enable-silent-rules less verbose build output (undo: `make V=1')
1603 --disable-silent-rules verbose build output (undo: `make V=0')
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --enable-shared[=PKGS] build shared libraries [default=yes]
1607 --enable-static[=PKGS] build static libraries [default=yes]
1608 --enable-fast-install[=PKGS]
1609 optimize for fast installation [default=yes]
1610 --disable-libtool-lock avoid locking (might break parallel builds)
1611 --enable-debug Enable generic debug support [default=no]
1612 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1613 --enable-debug-kmem-tracking
1614 Enable detailed kmem tracking [default=no]
1615 --enable-atomic-spinlocks
1616 Atomic types use spinlocks [default=check]
1617
1618 Optional Packages:
1619 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1620 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1621 --with-pic try to use only PIC/non-PIC objects [default=use
1622 both]
1623 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1624 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1625 --with-linux=PATH Path to kernel source
1626 --with-linux-obj=PATH Path to kernel build objects
1627
1628 Some influential environment variables:
1629 CC C compiler command
1630 CFLAGS C compiler flags
1631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1632 nonstandard directory <lib dir>
1633 LIBS libraries to pass to the linker, e.g. -l<library>
1634 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1635 you have headers in a nonstandard directory <include dir>
1636 CPP C preprocessor
1637
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1640
1641 _ACEOF
1642 ac_status=$?
1643 fi
1644
1645 if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
1651 ac_builddir=.
1652
1653 case "$ac_dir" in
1654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *)
1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1657 # A ".." for each directory in $ac_dir_suffix.
1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663 esac
1664 ac_abs_top_builddir=$ac_pwd
1665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666 # for backward compatibility:
1667 ac_top_builddir=$ac_top_build_prefix
1668
1669 case $srcdir in
1670 .) # We are building in place.
1671 ac_srcdir=.
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
1675 ac_srcdir=$srcdir$ac_dir_suffix;
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 esac
1683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
1693 else
1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
1697 done
1698 fi
1699
1700 test -n "$ac_init_help" && exit $ac_status
1701 if $ac_init_version; then
1702 cat <<\_ACEOF
1703 configure
1704 generated by GNU Autoconf 2.63
1705
1706 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1707 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1710 _ACEOF
1711 exit
1712 fi
1713 cat >config.log <<_ACEOF
1714 This file contains any messages produced by compilers while
1715 running configure, to aid debugging if configure makes a mistake.
1716
1717 It was created by $as_me, which was
1718 generated by GNU Autoconf 2.63. Invocation command line was
1719
1720 $ $0 $@
1721
1722 _ACEOF
1723 exec 5>>config.log
1724 {
1725 cat <<_ASUNAME
1726 ## --------- ##
1727 ## Platform. ##
1728 ## --------- ##
1729
1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738
1739 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1743 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746
1747 _ASUNAME
1748
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 $as_echo "PATH: $as_dir"
1755 done
1756 IFS=$as_save_IFS
1757
1758 } >&5
1759
1760 cat >&5 <<_ACEOF
1761
1762
1763 ## ----------- ##
1764 ## Core tests. ##
1765 ## ----------- ##
1766
1767 _ACEOF
1768
1769
1770 # Keep a trace of the command line.
1771 # Strip out --no-create and --no-recursion so they do not pile up.
1772 # Strip out --silent because we don't want to record it for future runs.
1773 # Also quote any args containing shell meta-characters.
1774 # Make two passes to allow for proper duplicate-argument suppression.
1775 ac_configure_args=
1776 ac_configure_args0=
1777 ac_configure_args1=
1778 ac_must_keep_next=false
1779 for ac_pass in 1 2
1780 do
1781 for ac_arg
1782 do
1783 case $ac_arg in
1784 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786 | -silent | --silent | --silen | --sile | --sil)
1787 continue ;;
1788 *\'*)
1789 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1790 esac
1791 case $ac_pass in
1792 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 2)
1794 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1795 if test $ac_must_keep_next = true; then
1796 ac_must_keep_next=false # Got value, back to normal.
1797 else
1798 case $ac_arg in
1799 *=* | --config-cache | -C | -disable-* | --disable-* \
1800 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1801 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1802 | -with-* | --with-* | -without-* | --without-* | --x)
1803 case "$ac_configure_args0 " in
1804 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1805 esac
1806 ;;
1807 -* ) ac_must_keep_next=true ;;
1808 esac
1809 fi
1810 ac_configure_args="$ac_configure_args '$ac_arg'"
1811 ;;
1812 esac
1813 done
1814 done
1815 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1816 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817
1818 # When interrupted or exit'd, cleanup temporary files, and complete
1819 # config.log. We remove comments because anyway the quotes in there
1820 # would cause problems or look ugly.
1821 # WARNING: Use '\'' to represent an apostrophe within the trap.
1822 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1823 trap 'exit_status=$?
1824 # Save into config.log some information that might help in debugging.
1825 {
1826 echo
1827
1828 cat <<\_ASBOX
1829 ## ---------------- ##
1830 ## Cache variables. ##
1831 ## ---------------- ##
1832 _ASBOX
1833 echo
1834 # The following way of writing the cache mishandles newlines in values,
1835 (
1836 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1837 eval ac_val=\$$ac_var
1838 case $ac_val in #(
1839 *${as_nl}*)
1840 case $ac_var in #(
1841 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1842 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1843 esac
1844 case $ac_var in #(
1845 _ | IFS | as_nl) ;; #(
1846 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1847 *) $as_unset $ac_var ;;
1848 esac ;;
1849 esac
1850 done
1851 (set) 2>&1 |
1852 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1853 *${as_nl}ac_space=\ *)
1854 sed -n \
1855 "s/'\''/'\''\\\\'\'''\''/g;
1856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857 ;; #(
1858 *)
1859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1860 ;;
1861 esac |
1862 sort
1863 )
1864 echo
1865
1866 cat <<\_ASBOX
1867 ## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##
1870 _ASBOX
1871 echo
1872 for ac_var in $ac_subst_vars
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
1882 if test -n "$ac_subst_files"; then
1883 cat <<\_ASBOX
1884 ## ------------------- ##
1885 ## File substitutions. ##
1886 ## ------------------- ##
1887 _ASBOX
1888 echo
1889 for ac_var in $ac_subst_files
1890 do
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 $as_echo "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1898 fi
1899
1900 if test -s confdefs.h; then
1901 cat <<\_ASBOX
1902 ## ----------- ##
1903 ## confdefs.h. ##
1904 ## ----------- ##
1905 _ASBOX
1906 echo
1907 cat confdefs.h
1908 echo
1909 fi
1910 test "$ac_signal" != 0 &&
1911 $as_echo "$as_me: caught signal $ac_signal"
1912 $as_echo "$as_me: exit $exit_status"
1913 } >&5
1914 rm -f core *.core core.conftest.* &&
1915 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1916 exit $exit_status
1917 ' 0
1918 for ac_signal in 1 2 13 15; do
1919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1920 done
1921 ac_signal=0
1922
1923 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1924 rm -f -r conftest* confdefs.h
1925
1926 # Predefined preprocessor variables.
1927
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_NAME "$PACKAGE_NAME"
1930 _ACEOF
1931
1932
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935 _ACEOF
1936
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_STRING "$PACKAGE_STRING"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1950 _ACEOF
1951
1952
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer an explicitly selected file to automatically selected ones.
1955 ac_site_file1=NONE
1956 ac_site_file2=NONE
1957 if test -n "$CONFIG_SITE"; then
1958 ac_site_file1=$CONFIG_SITE
1959 elif test "x$prefix" != xNONE; then
1960 ac_site_file1=$prefix/share/config.site
1961 ac_site_file2=$prefix/etc/config.site
1962 else
1963 ac_site_file1=$ac_default_prefix/share/config.site
1964 ac_site_file2=$ac_default_prefix/etc/config.site
1965 fi
1966 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967 do
1968 test "x$ac_site_file" = xNONE && continue
1969 if test -r "$ac_site_file"; then
1970 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1971 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1972 sed 's/^/| /' "$ac_site_file" >&5
1973 . "$ac_site_file"
1974 fi
1975 done
1976
1977 if test -r "$cache_file"; then
1978 # Some versions of bash will fail to source /dev/null (special
1979 # files actually), so we avoid doing that.
1980 if test -f "$cache_file"; then
1981 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1982 $as_echo "$as_me: loading cache $cache_file" >&6;}
1983 case $cache_file in
1984 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1985 *) . "./$cache_file";;
1986 esac
1987 fi
1988 else
1989 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1990 $as_echo "$as_me: creating cache $cache_file" >&6;}
1991 >$cache_file
1992 fi
1993
1994 # Check that the precious variables saved in the cache have kept the same
1995 # value.
1996 ac_cache_corrupted=false
1997 for ac_var in $ac_precious_vars; do
1998 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1999 eval ac_new_set=\$ac_env_${ac_var}_set
2000 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2001 eval ac_new_val=\$ac_env_${ac_var}_value
2002 case $ac_old_set,$ac_new_set in
2003 set,)
2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2007 ,set)
2008 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2009 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2010 ac_cache_corrupted=: ;;
2011 ,);;
2012 *)
2013 if test "x$ac_old_val" != "x$ac_new_val"; then
2014 # differences in whitespace do not lead to failure.
2015 ac_old_val_w=`echo x $ac_old_val`
2016 ac_new_val_w=`echo x $ac_new_val`
2017 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2018 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2019 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2020 ac_cache_corrupted=:
2021 else
2022 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2023 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2024 eval $ac_var=\$ac_old_val
2025 fi
2026 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2027 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2028 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2029 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2030 fi;;
2031 esac
2032 # Pass precious variables to config.status.
2033 if test "$ac_new_set" = set; then
2034 case $ac_new_val in
2035 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 *) ac_arg=$ac_var=$ac_new_val ;;
2037 esac
2038 case " $ac_configure_args " in
2039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2040 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2041 esac
2042 fi
2043 done
2044 if $ac_cache_corrupted; then
2045 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2048 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2049 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2050 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070 ac_ext=c
2071 ac_cpp='$CPP $CPPFLAGS'
2072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2075
2076
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
2084 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2085 $as_echo_n "checking metadata... " >&6; }
2086
2087 META="$srcdir/META"
2088 _spl_ac_meta_got_file=no
2089 if test -f "$META"; then
2090 _spl_ac_meta_got_file=yes
2091
2092 SPL_META_NAME=`perl -n\
2093 -e "BEGIN { \\$key=shift @ARGV; }"\
2094 -e "next unless s/^\s*\\$key[:=]//i;"\
2095 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2096 -e "s/^\s+//;"\
2097 -e "s/\s+$//;"\
2098 -e "s/^(['\"])(.*)\1/\\$2/;"\
2099 -e "\\$val=\\$_;"\
2100 -e "END { print \\$val if defined \\$val; }"\
2101 '(?:NAME|PROJECT|PACKAGE)' $META`;
2102 if test -n "$SPL_META_NAME"; then
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define SPL_META_NAME "$SPL_META_NAME"
2106 _ACEOF
2107
2108
2109 fi
2110
2111 SPL_META_VERSION=`perl -n\
2112 -e "BEGIN { \\$key=shift @ARGV; }"\
2113 -e "next unless s/^\s*\\$key[:=]//i;"\
2114 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2115 -e "s/^\s+//;"\
2116 -e "s/\s+$//;"\
2117 -e "s/^(['\"])(.*)\1/\\$2/;"\
2118 -e "\\$val=\\$_;"\
2119 -e "END { print \\$val if defined \\$val; }"\
2120 'VERSION' $META`;
2121 if test -n "$SPL_META_VERSION"; then
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define SPL_META_VERSION "$SPL_META_VERSION"
2125 _ACEOF
2126
2127
2128 fi
2129
2130 SPL_META_RELEASE=`perl -n\
2131 -e "BEGIN { \\$key=shift @ARGV; }"\
2132 -e "next unless s/^\s*\\$key[:=]//i;"\
2133 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2134 -e "s/^\s+//;"\
2135 -e "s/\s+$//;"\
2136 -e "s/^(['\"])(.*)\1/\\$2/;"\
2137 -e "\\$val=\\$_;"\
2138 -e "END { print \\$val if defined \\$val; }"\
2139 'RELEASE' $META`;
2140 if test -n "$SPL_META_RELEASE"; then
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2144 _ACEOF
2145
2146
2147 fi
2148
2149 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2150 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2151 test -n "$SPL_META_RELEASE" &&
2152 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2156 _ACEOF
2157
2158
2159 fi
2160
2161 SPL_META_DATA=`perl -n\
2162 -e "BEGIN { \\$key=shift @ARGV; }"\
2163 -e "next unless s/^\s*\\$key[:=]//i;"\
2164 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2165 -e "s/^\s+//;"\
2166 -e "s/\s+$//;"\
2167 -e "s/^(['\"])(.*)\1/\\$2/;"\
2168 -e "\\$val=\\$_;"\
2169 -e "END { print \\$val if defined \\$val; }"\
2170 'DATE' $META`;
2171 if test -n "$SPL_META_DATA"; then
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define SPL_META_DATA "$SPL_META_DATA"
2175 _ACEOF
2176
2177
2178 fi
2179
2180 SPL_META_AUTHOR=`perl -n\
2181 -e "BEGIN { \\$key=shift @ARGV; }"\
2182 -e "next unless s/^\s*\\$key[:=]//i;"\
2183 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2184 -e "s/^\s+//;"\
2185 -e "s/\s+$//;"\
2186 -e "s/^(['\"])(.*)\1/\\$2/;"\
2187 -e "\\$val=\\$_;"\
2188 -e "END { print \\$val if defined \\$val; }"\
2189 'AUTHOR' $META`;
2190 if test -n "$SPL_META_AUTHOR"; then
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2194 _ACEOF
2195
2196
2197 fi
2198
2199
2200 SPL_META_LT_CURRENT=`perl -n\
2201 -e "BEGIN { \\$key=shift @ARGV; }"\
2202 -e "next unless s/^\s*\\$key[:=]//i;"\
2203 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2204 -e "s/^\s+//;"\
2205 -e "s/\s+$//;"\
2206 -e "s/^(['\"])(.*)\1/\\$2/;"\
2207 -e "\\$val=\\$_;"\
2208 -e "END { print \\$val if defined \\$val; }"\
2209 'LT_CURRENT' $META`;
2210 SPL_META_LT_REVISION=`perl -n\
2211 -e "BEGIN { \\$key=shift @ARGV; }"\
2212 -e "next unless s/^\s*\\$key[:=]//i;"\
2213 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2214 -e "s/^\s+//;"\
2215 -e "s/\s+$//;"\
2216 -e "s/^(['\"])(.*)\1/\\$2/;"\
2217 -e "\\$val=\\$_;"\
2218 -e "END { print \\$val if defined \\$val; }"\
2219 'LT_REVISION' $META`;
2220 SPL_META_LT_AGE=`perl -n\
2221 -e "BEGIN { \\$key=shift @ARGV; }"\
2222 -e "next unless s/^\s*\\$key[:=]//i;"\
2223 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2224 -e "s/^\s+//;"\
2225 -e "s/\s+$//;"\
2226 -e "s/^(['\"])(.*)\1/\\$2/;"\
2227 -e "\\$val=\\$_;"\
2228 -e "END { print \\$val if defined \\$val; }"\
2229 'LT_AGE' $META`;
2230 if test -n "$SPL_META_LT_CURRENT" \
2231 -o -n "$SPL_META_LT_REVISION" \
2232 -o -n "$SPL_META_LT_AGE"; then
2233 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2234 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2235 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2239 _ACEOF
2240
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2244 _ACEOF
2245
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2249 _ACEOF
2250
2251
2252
2253
2254 fi
2255 fi
2256
2257 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2258 $as_echo "$_spl_ac_meta_got_file" >&6; }
2259
2260
2261 ac_aux_dir=
2262 for ac_dir in config "$srcdir"/config; do
2263 if test -f "$ac_dir/install-sh"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/install-sh -c"
2266 break
2267 elif test -f "$ac_dir/install.sh"; then
2268 ac_aux_dir=$ac_dir
2269 ac_install_sh="$ac_aux_dir/install.sh -c"
2270 break
2271 elif test -f "$ac_dir/shtool"; then
2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/shtool install -c"
2274 break
2275 fi
2276 done
2277 if test -z "$ac_aux_dir"; then
2278 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2279 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2280 { (exit 1); exit 1; }; }
2281 fi
2282
2283 # These three variables are undocumented and unsupported,
2284 # and are intended to be withdrawn in a future Autoconf release.
2285 # They can cause serious problems if a builder's source tree is in a directory
2286 # whose full name contains unusual characters.
2287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
2291
2292 # Make sure we can run config.sub.
2293 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2294 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2295 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2296 { (exit 1); exit 1; }; }
2297
2298 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2299 $as_echo_n "checking build system type... " >&6; }
2300 if test "${ac_cv_build+set}" = set; then
2301 $as_echo_n "(cached) " >&6
2302 else
2303 ac_build_alias=$build_alias
2304 test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306 test "x$ac_build_alias" = x &&
2307 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2308 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2309 { (exit 1); exit 1; }; }
2310 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2311 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2312 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2313 { (exit 1); exit 1; }; }
2314
2315 fi
2316 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2317 $as_echo "$ac_cv_build" >&6; }
2318 case $ac_cv_build in
2319 *-*-*) ;;
2320 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2321 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2322 { (exit 1); exit 1; }; };;
2323 esac
2324 build=$ac_cv_build
2325 ac_save_IFS=$IFS; IFS='-'
2326 set x $ac_cv_build
2327 shift
2328 build_cpu=$1
2329 build_vendor=$2
2330 shift; shift
2331 # Remember, the first character of IFS is used to create $*,
2332 # except with old shells:
2333 build_os=$*
2334 IFS=$ac_save_IFS
2335 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2336
2337
2338 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2339 $as_echo_n "checking host system type... " >&6; }
2340 if test "${ac_cv_host+set}" = set; then
2341 $as_echo_n "(cached) " >&6
2342 else
2343 if test "x$host_alias" = x; then
2344 ac_cv_host=$ac_cv_build
2345 else
2346 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2347 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2348 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2349 { (exit 1); exit 1; }; }
2350 fi
2351
2352 fi
2353 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2354 $as_echo "$ac_cv_host" >&6; }
2355 case $ac_cv_host in
2356 *-*-*) ;;
2357 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2358 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2359 { (exit 1); exit 1; }; };;
2360 esac
2361 host=$ac_cv_host
2362 ac_save_IFS=$IFS; IFS='-'
2363 set x $ac_cv_host
2364 shift
2365 host_cpu=$1
2366 host_vendor=$2
2367 shift; shift
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2370 host_os=$*
2371 IFS=$ac_save_IFS
2372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2373
2374
2375 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2376 $as_echo_n "checking target system type... " >&6; }
2377 if test "${ac_cv_target+set}" = set; then
2378 $as_echo_n "(cached) " >&6
2379 else
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
2382 else
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2385 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2386 { (exit 1); exit 1; }; }
2387 fi
2388
2389 fi
2390 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2391 $as_echo "$ac_cv_target" >&6; }
2392 case $ac_cv_target in
2393 *-*-*) ;;
2394 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2395 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2396 { (exit 1); exit 1; }; };;
2397 esac
2398 target=$ac_cv_target
2399 ac_save_IFS=$IFS; IFS='-'
2400 set x $ac_cv_target
2401 shift
2402 target_cpu=$1
2403 target_vendor=$2
2404 shift; shift
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2407 target_os=$*
2408 IFS=$ac_save_IFS
2409 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2410
2411
2412 # The aliases save the names the user supplied, while $host etc.
2413 # will get canonicalized.
2414 test -n "$target_alias" &&
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
2417 program_prefix=${target_alias}-
2418
2419 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2420 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2421 # Check whether --enable-maintainer-mode was given.
2422 if test "${enable_maintainer_mode+set}" = set; then
2423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2424 else
2425 USE_MAINTAINER_MODE=no
2426 fi
2427
2428 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2429 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2430 if test $USE_MAINTAINER_MODE = yes; then
2431 MAINTAINER_MODE_TRUE=
2432 MAINTAINER_MODE_FALSE='#'
2433 else
2434 MAINTAINER_MODE_TRUE='#'
2435 MAINTAINER_MODE_FALSE=
2436 fi
2437
2438 MAINT=$MAINTAINER_MODE_TRUE
2439
2440
2441 # Check whether --enable-silent-rules was given.
2442 if test "${enable_silent_rules+set}" = set; then
2443 enableval=$enable_silent_rules;
2444 fi
2445
2446 case $enable_silent_rules in
2447 yes) AM_DEFAULT_VERBOSITY=0;;
2448 no) AM_DEFAULT_VERBOSITY=1;;
2449 *) AM_DEFAULT_VERBOSITY=1;;
2450 esac
2451 AM_BACKSLASH='\'
2452
2453 am__api_version='1.11'
2454
2455 # Find a good install program. We prefer a C program (faster),
2456 # so one script is as good as another. But avoid the broken or
2457 # incompatible versions:
2458 # SysV /etc/install, /usr/sbin/install
2459 # SunOS /usr/etc/install
2460 # IRIX /sbin/install
2461 # AIX /bin/install
2462 # AmigaOS /C/install, which installs bootblocks on floppy discs
2463 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2464 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2465 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2466 # OS/2's system install, which has a completely different semantic
2467 # ./install, which can be erroneously created by make from ./install.sh.
2468 # Reject install programs that cannot install multiple files.
2469 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2470 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2471 if test -z "$INSTALL"; then
2472 if test "${ac_cv_path_install+set}" = set; then
2473 $as_echo_n "(cached) " >&6
2474 else
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 for as_dir in $PATH
2477 do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 # Account for people who put trailing slashes in PATH elements.
2481 case $as_dir/ in
2482 ./ | .// | /cC/* | \
2483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2485 /usr/ucb/* ) ;;
2486 *)
2487 # OSF1 and SCO ODT 3.0 have their own names for install.
2488 # Don't use installbsd from OSF since it installs stuff as root
2489 # by default.
2490 for ac_prog in ginstall scoinst install; do
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2493 if test $ac_prog = install &&
2494 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2495 # AIX install. It has an incompatible calling convention.
2496 :
2497 elif test $ac_prog = install &&
2498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2499 # program-specific install script used by HP pwplus--don't use.
2500 :
2501 else
2502 rm -rf conftest.one conftest.two conftest.dir
2503 echo one > conftest.one
2504 echo two > conftest.two
2505 mkdir conftest.dir
2506 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2507 test -s conftest.one && test -s conftest.two &&
2508 test -s conftest.dir/conftest.one &&
2509 test -s conftest.dir/conftest.two
2510 then
2511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2512 break 3
2513 fi
2514 fi
2515 fi
2516 done
2517 done
2518 ;;
2519 esac
2520
2521 done
2522 IFS=$as_save_IFS
2523
2524 rm -rf conftest.one conftest.two conftest.dir
2525
2526 fi
2527 if test "${ac_cv_path_install+set}" = set; then
2528 INSTALL=$ac_cv_path_install
2529 else
2530 # As a last resort, use the slow shell script. Don't cache a
2531 # value for INSTALL within a source directory, because that will
2532 # break other packages using the cache if that directory is
2533 # removed, or if the value is a relative name.
2534 INSTALL=$ac_install_sh
2535 fi
2536 fi
2537 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2538 $as_echo "$INSTALL" >&6; }
2539
2540 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2541 # It thinks the first close brace ends the variable substitution.
2542 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2543
2544 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2545
2546 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2547
2548 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2549 $as_echo_n "checking whether build environment is sane... " >&6; }
2550 # Just in case
2551 sleep 1
2552 echo timestamp > conftest.file
2553 # Reject unsafe characters in $srcdir or the absolute working directory
2554 # name. Accept space and tab only in the latter.
2555 am_lf='
2556 '
2557 case `pwd` in
2558 *[\\\"\#\$\&\'\`$am_lf]*)
2559 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2560 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2561 { (exit 1); exit 1; }; };;
2562 esac
2563 case $srcdir in
2564 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2566 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2567 { (exit 1); exit 1; }; };;
2568 esac
2569
2570 # Do `set' in a subshell so we don't clobber the current shell's
2571 # arguments. Must try -L first in case configure is actually a
2572 # symlink; some systems play weird games with the mod time of symlinks
2573 # (eg FreeBSD returns the mod time of the symlink's containing
2574 # directory).
2575 if (
2576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2577 if test "$*" = "X"; then
2578 # -L didn't work.
2579 set X `ls -t "$srcdir/configure" conftest.file`
2580 fi
2581 rm -f conftest.file
2582 if test "$*" != "X $srcdir/configure conftest.file" \
2583 && test "$*" != "X conftest.file $srcdir/configure"; then
2584
2585 # If neither matched, then we have a broken ls. This can happen
2586 # if, for instance, CONFIG_SHELL is bash and it inherits a
2587 # broken ls alias from the environment. This has actually
2588 # happened. Such a system could not be considered "sane".
2589 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2590 alias in your environment" >&5
2591 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2592 alias in your environment" >&2;}
2593 { (exit 1); exit 1; }; }
2594 fi
2595
2596 test "$2" = conftest.file
2597 )
2598 then
2599 # Ok.
2600 :
2601 else
2602 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2603 Check your system clock" >&5
2604 $as_echo "$as_me: error: newly created file is older than distributed files!
2605 Check your system clock" >&2;}
2606 { (exit 1); exit 1; }; }
2607 fi
2608 { $as_echo "$as_me:$LINENO: result: yes" >&5
2609 $as_echo "yes" >&6; }
2610 test "$program_prefix" != NONE &&
2611 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2612 # Use a double $ so make ignores it.
2613 test "$program_suffix" != NONE &&
2614 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2615 # Double any \ or $.
2616 # By default was `s,x,x', remove it if useless.
2617 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2618 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2619
2620 # expand $ac_aux_dir to an absolute path
2621 am_aux_dir=`cd $ac_aux_dir && pwd`
2622
2623 if test x"${MISSING+set}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2627 *)
2628 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2629 esac
2630 fi
2631 # Use eval to expand $SHELL
2632 if eval "$MISSING --run true"; then
2633 am_missing_run="$MISSING --run "
2634 else
2635 am_missing_run=
2636 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2637 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2638 fi
2639
2640 if test x"${install_sh}" != xset; then
2641 case $am_aux_dir in
2642 *\ * | *\ *)
2643 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2644 *)
2645 install_sh="\${SHELL} $am_aux_dir/install-sh"
2646 esac
2647 fi
2648
2649 # Installed binaries are usually stripped using `strip' when the user
2650 # run `make install-strip'. However `strip' might not be the right
2651 # tool to use in cross-compilation environments, therefore Automake
2652 # will honor the `STRIP' environment variable to overrule this program.
2653 if test "$cross_compiling" != no; then
2654 if test -n "$ac_tool_prefix"; then
2655 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}strip; ac_word=$2
2657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if test "${ac_cv_prog_STRIP+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$STRIP"; then
2663 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 STRIP=$ac_cv_prog_STRIP
2683 if test -n "$STRIP"; then
2684 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2685 $as_echo "$STRIP" >&6; }
2686 else
2687 { $as_echo "$as_me:$LINENO: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$ac_cv_prog_STRIP"; then
2694 ac_ct_STRIP=$STRIP
2695 # Extract the first word of "strip", so it can be a program name with args.
2696 set dummy strip; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_STRIP"; then
2703 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 ac_cv_prog_ac_ct_STRIP="strip"
2713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723 if test -n "$ac_ct_STRIP"; then
2724 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2725 $as_echo "$ac_ct_STRIP" >&6; }
2726 else
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731 if test "x$ac_ct_STRIP" = x; then
2732 STRIP=":"
2733 else
2734 case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2738 ac_tool_warned=yes ;;
2739 esac
2740 STRIP=$ac_ct_STRIP
2741 fi
2742 else
2743 STRIP="$ac_cv_prog_STRIP"
2744 fi
2745
2746 fi
2747 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2748
2749 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2750 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2751 if test -z "$MKDIR_P"; then
2752 if test "${ac_cv_path_mkdir+set}" = set; then
2753 $as_echo_n "(cached) " >&6
2754 else
2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2757 do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
2760 for ac_prog in mkdir gmkdir; do
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2763 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2764 'mkdir (GNU coreutils) '* | \
2765 'mkdir (coreutils) '* | \
2766 'mkdir (fileutils) '4.1*)
2767 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2768 break 3;;
2769 esac
2770 done
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776
2777 if test "${ac_cv_path_mkdir+set}" = set; then
2778 MKDIR_P="$ac_cv_path_mkdir -p"
2779 else
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for MKDIR_P within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 test -d ./--version && rmdir ./--version
2785 MKDIR_P="$ac_install_sh -d"
2786 fi
2787 fi
2788 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2789 $as_echo "$MKDIR_P" >&6; }
2790
2791 mkdir_p="$MKDIR_P"
2792 case $mkdir_p in
2793 [\\/$]* | ?:[\\/]*) ;;
2794 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2795 esac
2796
2797 for ac_prog in gawk mawk nawk awk
2798 do
2799 # Extract the first word of "$ac_prog", so it can be a program name with args.
2800 set dummy $ac_prog; ac_word=$2
2801 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_AWK+set}" = set; then
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$AWK"; then
2807 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_AWK="$ac_prog"
2817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 AWK=$ac_cv_prog_AWK
2827 if test -n "$AWK"; then
2828 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2829 $as_echo "$AWK" >&6; }
2830 else
2831 { $as_echo "$as_me:$LINENO: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 test -n "$AWK" && break
2837 done
2838
2839 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2840 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2841 set x ${MAKE-make}
2842 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2843 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2844 $as_echo_n "(cached) " >&6
2845 else
2846 cat >conftest.make <<\_ACEOF
2847 SHELL = /bin/sh
2848 all:
2849 @echo '@@@%%%=$(MAKE)=@@@%%%'
2850 _ACEOF
2851 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2852 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2853 *@@@%%%=?*=@@@%%%*)
2854 eval ac_cv_prog_make_${ac_make}_set=yes;;
2855 *)
2856 eval ac_cv_prog_make_${ac_make}_set=no;;
2857 esac
2858 rm -f conftest.make
2859 fi
2860 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2861 { $as_echo "$as_me:$LINENO: result: yes" >&5
2862 $as_echo "yes" >&6; }
2863 SET_MAKE=
2864 else
2865 { $as_echo "$as_me:$LINENO: result: no" >&5
2866 $as_echo "no" >&6; }
2867 SET_MAKE="MAKE=${MAKE-make}"
2868 fi
2869
2870 rm -rf .tst 2>/dev/null
2871 mkdir .tst 2>/dev/null
2872 if test -d .tst; then
2873 am__leading_dot=.
2874 else
2875 am__leading_dot=_
2876 fi
2877 rmdir .tst 2>/dev/null
2878
2879 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2880 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2881 # is not polluted with repeated "-I."
2882 am__isrc=' -I$(srcdir)'
2883 # test to see if srcdir already configured
2884 if test -f $srcdir/config.status; then
2885 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2886 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889 fi
2890
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893 if (cygpath --version) >/dev/null 2>/dev/null; then
2894 CYGPATH_W='cygpath -w'
2895 else
2896 CYGPATH_W=echo
2897 fi
2898 fi
2899
2900
2901 # Define the identity of the package.
2902 PACKAGE=$SPL_META_NAME
2903 VERSION=$SPL_META_VERSION
2904
2905
2906 cat >>confdefs.h <<_ACEOF
2907 #define PACKAGE "$PACKAGE"
2908 _ACEOF
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define VERSION "$VERSION"
2913 _ACEOF
2914
2915 # Some tools Automake needs.
2916
2917 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2918
2919
2920 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2921
2922
2923 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2924
2925
2926 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2927
2928
2929 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2930
2931 # We need awk for the "check" target. The system "awk" is bad on
2932 # some platforms.
2933 # Always define AMTAR for backward compatibility.
2934
2935 AMTAR=${AMTAR-"${am_missing_run}tar"}
2936
2937 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2938
2939
2940
2941
2942
2943 ac_config_headers="$ac_config_headers spl_config.h"
2944
2945
2946 # Find a good install program. We prefer a C program (faster),
2947 # so one script is as good as another. But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2952 # AIX /bin/install
2953 # AmigaOS /C/install, which installs bootblocks on floppy discs
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # OS/2's system install, which has a completely different semantic
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 # Reject install programs that cannot install multiple files.
2960 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2962 if test -z "$INSTALL"; then
2963 if test "${ac_cv_path_install+set}" = set; then
2964 $as_echo_n "(cached) " >&6
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 # Account for people who put trailing slashes in PATH elements.
2972 case $as_dir/ in
2973 ./ | .// | /cC/* | \
2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2975 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2976 /usr/ucb/* ) ;;
2977 *)
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2987 :
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2991 :
2992 else
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3004 fi
3005 fi
3006 fi
3007 done
3008 done
3009 ;;
3010 esac
3011
3012 done
3013 IFS=$as_save_IFS
3014
3015 rm -rf conftest.one conftest.two conftest.dir
3016
3017 fi
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for INSTALL within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 INSTALL=$ac_install_sh
3026 fi
3027 fi
3028 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3029 $as_echo "$INSTALL" >&6; }
3030
3031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032 # It thinks the first close brace ends the variable substitution.
3033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3034
3035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3036
3037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3038
3039 ac_ext=c
3040 ac_cpp='$CPP $CPPFLAGS'
3041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:$LINENO: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 fi
3083 if test -z "$ac_cv_prog_CC"; then
3084 ac_ct_CC=$CC
3085 # Extract the first word of "gcc", so it can be a program name with args.
3086 set dummy gcc; ac_word=$2
3087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_CC"; then
3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_CC="gcc"
3103 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3113 if test -n "$ac_ct_CC"; then
3114 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3115 $as_echo "$ac_ct_CC" >&6; }
3116 else
3117 { $as_echo "$as_me:$LINENO: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 else
3133 CC="$ac_cv_prog_CC"
3134 fi
3135
3136 if test -z "$CC"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}cc; ac_word=$2
3140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}cc"
3156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:$LINENO: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 fi
3177 if test -z "$CC"; then
3178 # Extract the first word of "cc", so it can be a program name with args.
3179 set dummy cc; ac_word=$2
3180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_CC+set}" = set; then
3183 $as_echo_n "(cached) " >&6
3184 else
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3187 else
3188 ac_prog_rejected=no
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3197 ac_prog_rejected=yes
3198 continue
3199 fi
3200 ac_cv_prog_CC="cc"
3201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204 done
3205 done
3206 IFS=$as_save_IFS
3207
3208 if test $ac_prog_rejected = yes; then
3209 # We found a bogon in the path, so make sure we never use it.
3210 set dummy $ac_cv_prog_CC
3211 shift
3212 if test $# != 0; then
3213 # We chose a different compiler from the bogus one.
3214 # However, it has the same basename, so the bogon will be chosen
3215 # first if we set CC to just the basename; use the full file name.
3216 shift
3217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3218 fi
3219 fi
3220 fi
3221 fi
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:$LINENO: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231
3232 fi
3233 if test -z "$CC"; then
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in cl.exe
3236 do
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3257 fi
3258 done
3259 done
3260 IFS=$as_save_IFS
3261
3262 fi
3263 fi
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:$LINENO: result: no" >&5
3270 $as_echo "no" >&6; }
3271 fi
3272
3273
3274 test -n "$CC" && break
3275 done
3276 fi
3277 if test -z "$CC"; then
3278 ac_ct_CC=$CC
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CC"; then
3289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CC="$ac_prog"
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3309 if test -n "$ac_ct_CC"; then
3310 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3311 $as_echo "$ac_ct_CC" >&6; }
3312 else
3313 { $as_echo "$as_me:$LINENO: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$ac_ct_CC" && break
3319 done
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CC=$ac_ct_CC
3331 fi
3332 fi
3333
3334 fi
3335
3336
3337 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3339 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." >&5
3341 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }; }
3344
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3347 set X $ac_compile
3348 ac_compiler=$2
3349 { (ac_try="$ac_compiler --version >&5"
3350 case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355 $as_echo "$ac_try_echo") >&5
3356 (eval "$ac_compiler --version >&5") 2>&5
3357 ac_status=$?
3358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360 { (ac_try="$ac_compiler -v >&5"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compiler -v >&5") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }
3371 { (ac_try="$ac_compiler -V >&5"
3372 case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377 $as_echo "$ac_try_echo") >&5
3378 (eval "$ac_compiler -V >&5") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382
3383 cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3402 # of exeext.
3403 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3406
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409
3410 ac_rmfiles=
3411 for ac_file in $ac_files
3412 do
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3416 esac
3417 done
3418 rm -f $ac_rmfiles
3419
3420 if { (ac_try="$ac_link_default"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3426 $as_echo "$ac_try_echo") >&5
3427 (eval "$ac_link_default") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; then
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3435 # Autoconf.
3436 for ac_file in $ac_files ''
3437 do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3441 ;;
3442 [ab].out )
3443 # We found the default executable, but exeext='' is most
3444 # certainly right.
3445 break;;
3446 *.* )
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3448 then :; else
3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 fi
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3455 # actually working.
3456 break;;
3457 * )
3458 break;;
3459 esac
3460 done
3461 test "$ac_cv_exeext" = no && ac_cv_exeext=
3462
3463 else
3464 ac_file=''
3465 fi
3466
3467 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 if test -z "$ac_file"; then
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3476 See \`config.log' for more details." >&5
3477 $as_echo "$as_me: error: C compiler cannot create executables
3478 See \`config.log' for more details." >&2;}
3479 { (exit 77); exit 77; }; }; }
3480 fi
3481
3482 ac_exeext=$ac_cv_exeext
3483
3484 # Check that the compiler produces executables we can run. If not, either
3485 # the compiler is broken, or we cross compile.
3486 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3487 $as_echo_n "checking whether the C compiler works... " >&6; }
3488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3489 # If not cross compiling, check that we can run a simple program.
3490 if test "$cross_compiling" != yes; then
3491 if { ac_try='./$ac_file'
3492 { (case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_try") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 cross_compiling=no
3503 else
3504 if test "$cross_compiling" = maybe; then
3505 cross_compiling=yes
3506 else
3507 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3510 If you meant to cross compile, use \`--host'.
3511 See \`config.log' for more details." >&5
3512 $as_echo "$as_me: error: cannot run C compiled programs.
3513 If you meant to cross compile, use \`--host'.
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }; }
3516 fi
3517 fi
3518 fi
3519 { $as_echo "$as_me:$LINENO: result: yes" >&5
3520 $as_echo "yes" >&6; }
3521
3522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523 ac_clean_files=$ac_clean_files_save
3524 # Check that the compiler produces executables we can run. If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3527 $as_echo_n "checking whether we are cross compiling... " >&6; }
3528 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3529 $as_echo "$cross_compiling" >&6; }
3530
3531 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3532 $as_echo_n "checking for suffix of executables... " >&6; }
3533 if { (ac_try="$ac_link"
3534 case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3539 $as_echo "$ac_try_echo") >&5
3540 (eval "$ac_link") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; then
3544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3545 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3546 # work properly (i.e., refer to `conftest.exe'), while it won't with
3547 # `rm'.
3548 for ac_file in conftest.exe conftest conftest.*; do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3553 break;;
3554 * ) break;;
3555 esac
3556 done
3557 else
3558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3561 See \`config.log' for more details." >&5
3562 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3563 See \`config.log' for more details." >&2;}
3564 { (exit 1); exit 1; }; }; }
3565 fi
3566
3567 rm -f conftest$ac_cv_exeext
3568 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3569 $as_echo "$ac_cv_exeext" >&6; }
3570
3571 rm -f conftest.$ac_ext
3572 EXEEXT=$ac_cv_exeext
3573 ac_exeext=$EXEEXT
3574 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3575 $as_echo_n "checking for suffix of object files... " >&6; }
3576 if test "${ac_cv_objext+set}" = set; then
3577 $as_echo_n "(cached) " >&6
3578 else
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585
3586 int
3587 main ()
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 rm -f conftest.o conftest.obj
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601 $as_echo "$ac_try_echo") >&5
3602 (eval "$ac_compile") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 for ac_file in conftest.o conftest.obj conftest.*; do
3607 test -f "$ac_file" || continue;
3608 case $ac_file in
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3610 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3611 break;;
3612 esac
3613 done
3614 else
3615 $as_echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3621 See \`config.log' for more details." >&5
3622 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }; }
3625 fi
3626
3627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3628 fi
3629 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3630 $as_echo "$ac_cv_objext" >&6; }
3631 OBJEXT=$ac_cv_objext
3632 ac_objext=$OBJEXT
3633 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3634 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648 #ifndef __GNUC__
3649 choke me
3650 #endif
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>conftest.er1
3665 ac_status=$?
3666 grep -v '^ *+' conftest.er1 >conftest.err
3667 rm -f conftest.er1
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest.$ac_objext; then
3674 ac_compiler_gnu=yes
3675 else
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 ac_compiler_gnu=no
3680 fi
3681
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3684
3685 fi
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3687 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3688 if test $ac_compiler_gnu = yes; then
3689 GCC=yes
3690 else
3691 GCC=
3692 fi
3693 ac_test_CFLAGS=${CFLAGS+set}
3694 ac_save_CFLAGS=$CFLAGS
3695 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3696 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3697 if test "${ac_cv_prog_cc_g+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3699 else
3700 ac_save_c_werror_flag=$ac_c_werror_flag
3701 ac_c_werror_flag=yes
3702 ac_cv_prog_cc_g=no
3703 CFLAGS="-g"
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (ac_try="$ac_compile"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3726 $as_echo "$ac_try_echo") >&5
3727 (eval "$ac_compile") 2>conftest.er1
3728 ac_status=$?
3729 grep -v '^ *+' conftest.er1 >conftest.err
3730 rm -f conftest.er1
3731 cat conftest.err >&5
3732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } && {
3734 test -z "$ac_c_werror_flag" ||
3735 test ! -s conftest.err
3736 } && test -s conftest.$ac_objext; then
3737 ac_cv_prog_cc_g=yes
3738 else
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 CFLAGS=""
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3749
3750 int
3751 main ()
3752 {
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 rm -f conftest.$ac_objext
3759 if { (ac_try="$ac_compile"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3765 $as_echo "$ac_try_echo") >&5
3766 (eval "$ac_compile") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_c_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest.$ac_objext; then
3776 :
3777 else
3778 $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 ac_c_werror_flag=$ac_save_c_werror_flag
3782 CFLAGS="-g"
3783 cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h. */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3807 ac_status=$?
3808 grep -v '^ *+' conftest.er1 >conftest.err
3809 rm -f conftest.er1
3810 cat conftest.err >&5
3811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 ac_cv_prog_cc_g=yes
3817 else
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821
3822 fi
3823
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826
3827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_c_werror_flag=$ac_save_c_werror_flag
3832 fi
3833 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3834 $as_echo "$ac_cv_prog_cc_g" >&6; }
3835 if test "$ac_test_CFLAGS" = set; then
3836 CFLAGS=$ac_save_CFLAGS
3837 elif test $ac_cv_prog_cc_g = yes; then
3838 if test "$GCC" = yes; then
3839 CFLAGS="-g -O2"
3840 else
3841 CFLAGS="-g"
3842 fi
3843 else
3844 if test "$GCC" = yes; then
3845 CFLAGS="-O2"
3846 else
3847 CFLAGS=
3848 fi
3849 fi
3850 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3851 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3852 if test "${ac_cv_prog_cc_c89+set}" = set; then
3853 $as_echo_n "(cached) " >&6
3854 else
3855 ac_cv_prog_cc_c89=no
3856 ac_save_CC=$CC
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #include <stdarg.h>
3864 #include <stdio.h>
3865 #include <sys/types.h>
3866 #include <sys/stat.h>
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3871 char **p;
3872 int i;
3873 {
3874 return p[i];
3875 }
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3877 {
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884 }
3885
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897 #define FOO(x) 'x'
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904 int argc;
3905 char **argv;
3906 int
3907 main ()
3908 {
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916 do
3917 CC="$ac_save_CC $ac_arg"
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3925 $as_echo "$ac_try_echo") >&5
3926 (eval "$ac_compile") 2>conftest.er1
3927 ac_status=$?
3928 grep -v '^ *+' conftest.er1 >conftest.err
3929 rm -f conftest.er1
3930 cat conftest.err >&5
3931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && {
3933 test -z "$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3935 } && test -s conftest.$ac_objext; then
3936 ac_cv_prog_cc_c89=$ac_arg
3937 else
3938 $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941
3942 fi
3943
3944 rm -f core conftest.err conftest.$ac_objext
3945 test "x$ac_cv_prog_cc_c89" != "xno" && break
3946 done
3947 rm -f conftest.$ac_ext
3948 CC=$ac_save_CC
3949
3950 fi
3951 # AC_CACHE_VAL
3952 case "x$ac_cv_prog_cc_c89" in
3953 x)
3954 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3955 $as_echo "none needed" >&6; } ;;
3956 xno)
3957 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3958 $as_echo "unsupported" >&6; } ;;
3959 *)
3960 CC="$CC $ac_cv_prog_cc_c89"
3961 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3962 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3963 esac
3964
3965
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 DEPDIR="${am__leading_dot}deps"
3972
3973 ac_config_commands="$ac_config_commands depfiles"
3974
3975
3976 am_make=${MAKE-make}
3977 cat > confinc << 'END'
3978 am__doit:
3979 @echo this is the am__doit target
3980 .PHONY: am__doit
3981 END
3982 # If we don't find an include directive, just comment out the code.
3983 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3984 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3985 am__include="#"
3986 am__quote=
3987 _am_result=none
3988 # First try GNU make style include.
3989 echo "include confinc" > confmf
3990 # Ignore all kinds of additional output from `make'.
3991 case `$am_make -s -f confmf 2> /dev/null` in #(
3992 *the\ am__doit\ target*)
3993 am__include=include
3994 am__quote=
3995 _am_result=GNU
3996 ;;
3997 esac
3998 # Now try BSD make style include.
3999 if test "$am__include" = "#"; then
4000 echo '.include "confinc"' > confmf
4001 case `$am_make -s -f confmf 2> /dev/null` in #(
4002 *the\ am__doit\ target*)
4003 am__include=.include
4004 am__quote="\""
4005 _am_result=BSD
4006 ;;
4007 esac
4008 fi
4009
4010
4011 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4012 $as_echo "$_am_result" >&6; }
4013 rm -f confinc confmf
4014
4015 # Check whether --enable-dependency-tracking was given.
4016 if test "${enable_dependency_tracking+set}" = set; then
4017 enableval=$enable_dependency_tracking;
4018 fi
4019
4020 if test "x$enable_dependency_tracking" != xno; then
4021 am_depcomp="$ac_aux_dir/depcomp"
4022 AMDEPBACKSLASH='\'
4023 fi
4024 if test "x$enable_dependency_tracking" != xno; then
4025 AMDEP_TRUE=
4026 AMDEP_FALSE='#'
4027 else
4028 AMDEP_TRUE='#'
4029 AMDEP_FALSE=
4030 fi
4031
4032
4033
4034 depcc="$CC" am_compiler_list=
4035
4036 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4037 $as_echo_n "checking dependency style of $depcc... " >&6; }
4038 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4042 # We make a subdir and do the tests there. Otherwise we can end up
4043 # making bogus files that we don't know about and never remove. For
4044 # instance it was reported that on HP-UX the gcc test will end up
4045 # making a dummy file named `D' -- because `-MD' means `put the output
4046 # in D'.
4047 mkdir conftest.dir
4048 # Copy depcomp to subdir because otherwise we won't find it if we're
4049 # using a relative directory.
4050 cp "$am_depcomp" conftest.dir
4051 cd conftest.dir
4052 # We will build objects and dependencies in a subdirectory because
4053 # it helps to detect inapplicable dependency modes. For instance
4054 # both Tru64's cc and ICC support -MD to output dependencies as a
4055 # side effect of compilation, but ICC will put the dependencies in
4056 # the current directory while Tru64 will put them in the object
4057 # directory.
4058 mkdir sub
4059
4060 am_cv_CC_dependencies_compiler_type=none
4061 if test "$am_compiler_list" = ""; then
4062 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4063 fi
4064 am__universal=false
4065 case " $depcc " in #(
4066 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4067 esac
4068
4069 for depmode in $am_compiler_list; do
4070 # Setup a source with many dependencies, because some compilers
4071 # like to wrap large dependency lists on column 80 (with \), and
4072 # we should not choose a depcomp mode which is confused by this.
4073 #
4074 # We need to recreate these files for each test, as the compiler may
4075 # overwrite some of them when testing with obscure command lines.
4076 # This happens at least with the AIX C compiler.
4077 : > sub/conftest.c
4078 for i in 1 2 3 4 5 6; do
4079 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4080 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4081 # Solaris 8's {/usr,}/bin/sh.
4082 touch sub/conftst$i.h
4083 done
4084 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4085
4086 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4087 # mode. It turns out that the SunPro C++ compiler does not properly
4088 # handle `-M -o', and we need to detect this. Also, some Intel
4089 # versions had trouble with output in subdirs
4090 am__obj=sub/conftest.${OBJEXT-o}
4091 am__minus_obj="-o $am__obj"
4092 case $depmode in
4093 gcc)
4094 # This depmode causes a compiler race in universal mode.
4095 test "$am__universal" = false || continue
4096 ;;
4097 nosideeffect)
4098 # after this tag, mechanisms are not by side-effect, so they'll
4099 # only be used when explicitly requested
4100 if test "x$enable_dependency_tracking" = xyes; then
4101 continue
4102 else
4103 break
4104 fi
4105 ;;
4106 msvisualcpp | msvcmsys)
4107 # This compiler won't grok `-c -o', but also, the minuso test has
4108 # not run yet. These depmodes are late enough in the game, and
4109 # so weak that their functioning should not be impacted.
4110 am__obj=conftest.${OBJEXT-o}
4111 am__minus_obj=
4112 ;;
4113 none) break ;;
4114 esac
4115 if depmode=$depmode \
4116 source=sub/conftest.c object=$am__obj \
4117 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4118 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4119 >/dev/null 2>conftest.err &&
4120 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4122 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4123 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4124 # icc doesn't choke on unknown options, it will just issue warnings
4125 # or remarks (even with -Werror). So we grep stderr for any message
4126 # that says an option was ignored or not supported.
4127 # When given -MP, icc 7.0 and 7.1 complain thusly:
4128 # icc: Command line warning: ignoring option '-M'; no argument required
4129 # The diagnosis changed in icc 8.0:
4130 # icc: Command line remark: option '-MP' not supported
4131 if (grep 'ignoring option' conftest.err ||
4132 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4133 am_cv_CC_dependencies_compiler_type=$depmode
4134 break
4135 fi
4136 fi
4137 done
4138
4139 cd ..
4140 rm -rf conftest.dir
4141 else
4142 am_cv_CC_dependencies_compiler_type=none
4143 fi
4144
4145 fi
4146 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4147 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4148 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4149
4150 if
4151 test "x$enable_dependency_tracking" != xno \
4152 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4153 am__fastdepCC_TRUE=
4154 am__fastdepCC_FALSE='#'
4155 else
4156 am__fastdepCC_TRUE='#'
4157 am__fastdepCC_FALSE=
4158 fi
4159
4160
4161 case `pwd` in
4162 *\ * | *\ *)
4163 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4164 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4165 esac
4166
4167
4168
4169 macro_version='2.2.6b'
4170 macro_revision='1.3017'
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184 ltmain="$ac_aux_dir/ltmain.sh"
4185
4186 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4187 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4188 if test "${ac_cv_path_SED+set}" = set; then
4189 $as_echo_n "(cached) " >&6
4190 else
4191 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4192 for ac_i in 1 2 3 4 5 6 7; do
4193 ac_script="$ac_script$as_nl$ac_script"
4194 done
4195 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4196 $as_unset ac_script || ac_script=
4197 if test -z "$SED"; then
4198 ac_path_SED_found=false
4199 # Loop through the user's path and test for each of PROGNAME-LIST
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
4205 for ac_prog in sed gsed; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4208 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4209 # Check for GNU ac_path_SED and select it if it is found.
4210 # Check for GNU $ac_path_SED
4211 case `"$ac_path_SED" --version 2>&1` in
4212 *GNU*)
4213 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4214 *)
4215 ac_count=0
4216 $as_echo_n 0123456789 >"conftest.in"
4217 while :
4218 do
4219 cat "conftest.in" "conftest.in" >"conftest.tmp"
4220 mv "conftest.tmp" "conftest.in"
4221 cp "conftest.in" "conftest.nl"
4222 $as_echo '' >> "conftest.nl"
4223 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225 ac_count=`expr $ac_count + 1`
4226 if test $ac_count -gt ${ac_path_SED_max-0}; then
4227 # Best one so far, save it but keep looking for a better one
4228 ac_cv_path_SED="$ac_path_SED"
4229 ac_path_SED_max=$ac_count
4230 fi
4231 # 10*(2^10) chars as input seems more than enough
4232 test $ac_count -gt 10 && break
4233 done
4234 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237 $ac_path_SED_found && break 3
4238 done
4239 done
4240 done
4241 IFS=$as_save_IFS
4242 if test -z "$ac_cv_path_SED"; then
4243 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4244 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4245 { (exit 1); exit 1; }; }
4246 fi
4247 else
4248 ac_cv_path_SED=$SED
4249 fi
4250
4251 fi
4252 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4253 $as_echo "$ac_cv_path_SED" >&6; }
4254 SED="$ac_cv_path_SED"
4255 rm -f conftest.sed
4256
4257 test -z "$SED" && SED=sed
4258 Xsed="$SED -e 1s/^X//"
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if test "${ac_cv_path_GREP+set}" = set; then
4273 $as_echo_n "(cached) " >&6
4274 else
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4290 *GNU*)
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4292 *)
4293 ac_count=0
4294 $as_echo_n 0123456789 >"conftest.in"
4295 while :
4296 do
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 ac_count=`expr $ac_count + 1`
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
4308 fi
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4311 done
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315 $ac_path_GREP_found && break 3
4316 done
4317 done
4318 done
4319 IFS=$as_save_IFS
4320 if test -z "$ac_cv_path_GREP"; then
4321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4323 { (exit 1); exit 1; }; }
4324 fi
4325 else
4326 ac_cv_path_GREP=$GREP
4327 fi
4328
4329 fi
4330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4331 $as_echo "$ac_cv_path_GREP" >&6; }
4332 GREP="$ac_cv_path_GREP"
4333
4334
4335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4336 $as_echo_n "checking for egrep... " >&6; }
4337 if test "${ac_cv_path_EGREP+set}" = set; then
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4341 then ac_cv_path_EGREP="$GREP -E"
4342 else
4343 if test -z "$EGREP"; then
4344 ac_path_EGREP_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4348 do
4349 IFS=$as_save_IFS
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in egrep; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4355 # Check for GNU ac_path_EGREP and select it if it is found.
4356 # Check for GNU $ac_path_EGREP
4357 case `"$ac_path_EGREP" --version 2>&1` in
4358 *GNU*)
4359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4360 *)
4361 ac_count=0
4362 $as_echo_n 0123456789 >"conftest.in"
4363 while :
4364 do
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'EGREP' >> "conftest.nl"
4369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 ac_count=`expr $ac_count + 1`
4372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_EGREP="$ac_path_EGREP"
4375 ac_path_EGREP_max=$ac_count
4376 fi
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4379 done
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 esac
4382
4383 $ac_path_EGREP_found && break 3
4384 done
4385 done
4386 done
4387 IFS=$as_save_IFS
4388 if test -z "$ac_cv_path_EGREP"; then
4389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4391 { (exit 1); exit 1; }; }
4392 fi
4393 else
4394 ac_cv_path_EGREP=$EGREP
4395 fi
4396
4397 fi
4398 fi
4399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4400 $as_echo "$ac_cv_path_EGREP" >&6; }
4401 EGREP="$ac_cv_path_EGREP"
4402
4403
4404 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4405 $as_echo_n "checking for fgrep... " >&6; }
4406 if test "${ac_cv_path_FGREP+set}" = set; then
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4410 then ac_cv_path_FGREP="$GREP -F"
4411 else
4412 if test -z "$FGREP"; then
4413 ac_path_FGREP_found=false
4414 # Loop through the user's path and test for each of PROGNAME-LIST
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_prog in fgrep; do
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4423 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4424 # Check for GNU ac_path_FGREP and select it if it is found.
4425 # Check for GNU $ac_path_FGREP
4426 case `"$ac_path_FGREP" --version 2>&1` in
4427 *GNU*)
4428 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4429 *)
4430 ac_count=0
4431 $as_echo_n 0123456789 >"conftest.in"
4432 while :
4433 do
4434 cat "conftest.in" "conftest.in" >"conftest.tmp"
4435 mv "conftest.tmp" "conftest.in"
4436 cp "conftest.in" "conftest.nl"
4437 $as_echo 'FGREP' >> "conftest.nl"
4438 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440 ac_count=`expr $ac_count + 1`
4441 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4442 # Best one so far, save it but keep looking for a better one
4443 ac_cv_path_FGREP="$ac_path_FGREP"
4444 ac_path_FGREP_max=$ac_count
4445 fi
4446 # 10*(2^10) chars as input seems more than enough
4447 test $ac_count -gt 10 && break
4448 done
4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450 esac
4451
4452 $ac_path_FGREP_found && break 3
4453 done
4454 done
4455 done
4456 IFS=$as_save_IFS
4457 if test -z "$ac_cv_path_FGREP"; then
4458 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4459 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4460 { (exit 1); exit 1; }; }
4461 fi
4462 else
4463 ac_cv_path_FGREP=$FGREP
4464 fi
4465
4466 fi
4467 fi
4468 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4469 $as_echo "$ac_cv_path_FGREP" >&6; }
4470 FGREP="$ac_cv_path_FGREP"
4471
4472
4473 test -z "$GREP" && GREP=grep
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493 # Check whether --with-gnu-ld was given.
4494 if test "${with_gnu_ld+set}" = set; then
4495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4496 else
4497 with_gnu_ld=no
4498 fi
4499
4500 ac_prog=ld
4501 if test "$GCC" = yes; then
4502 # Check if gcc -print-prog-name=ld gives a path.
4503 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4504 $as_echo_n "checking for ld used by $CC... " >&6; }
4505 case $host in
4506 *-*-mingw*)
4507 # gcc leaves a trailing carriage return which upsets mingw
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509 *)
4510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 esac
4512 case $ac_prog in
4513 # Accept absolute paths.
4514 [\\/]* | ?:[\\/]*)
4515 re_direlt='/[^/][^/]*/\.\./'
4516 # Canonicalize the pathname of ld
4517 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4518 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4519 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4520 done
4521 test -z "$LD" && LD="$ac_prog"
4522 ;;
4523 "")
4524 # If it fails, then pretend we aren't using GCC.
4525 ac_prog=ld
4526 ;;
4527 *)
4528 # If it is relative, then search for the first ld in PATH.
4529 with_gnu_ld=unknown
4530 ;;
4531 esac
4532 elif test "$with_gnu_ld" = yes; then
4533 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4534 $as_echo_n "checking for GNU ld... " >&6; }
4535 else
4536 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4537 $as_echo_n "checking for non-GNU ld... " >&6; }
4538 fi
4539 if test "${lt_cv_path_LD+set}" = set; then
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -z "$LD"; then
4543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4544 for ac_dir in $PATH; do
4545 IFS="$lt_save_ifs"
4546 test -z "$ac_dir" && ac_dir=.
4547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4548 lt_cv_path_LD="$ac_dir/$ac_prog"
4549 # Check to see if the program is GNU ld. I'd rather use --version,
4550 # but apparently some variants of GNU ld only accept -v.
4551 # Break only if it was the GNU/non-GNU ld that we prefer.
4552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4553 *GNU* | *'with BFD'*)
4554 test "$with_gnu_ld" != no && break
4555 ;;
4556 *)
4557 test "$with_gnu_ld" != yes && break
4558 ;;
4559 esac
4560 fi
4561 done
4562 IFS="$lt_save_ifs"
4563 else
4564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4565 fi
4566 fi
4567
4568 LD="$lt_cv_path_LD"
4569 if test -n "$LD"; then
4570 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4571 $as_echo "$LD" >&6; }
4572 else
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4575 fi
4576 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4577 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4578 { (exit 1); exit 1; }; }
4579 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4581 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4582 $as_echo_n "(cached) " >&6
4583 else
4584 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4585 case `$LD -v 2>&1 </dev/null` in
4586 *GNU* | *'with BFD'*)
4587 lt_cv_prog_gnu_ld=yes
4588 ;;
4589 *)
4590 lt_cv_prog_gnu_ld=no
4591 ;;
4592 esac
4593 fi
4594 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4595 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4596 with_gnu_ld=$lt_cv_prog_gnu_ld
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4607 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4608 if test "${lt_cv_path_NM+set}" = set; then
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$NM"; then
4612 # Let the user override the test.
4613 lt_cv_path_NM="$NM"
4614 else
4615 lt_nm_to_check="${ac_tool_prefix}nm"
4616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4617 lt_nm_to_check="$lt_nm_to_check nm"
4618 fi
4619 for lt_tmp_nm in $lt_nm_to_check; do
4620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4622 IFS="$lt_save_ifs"
4623 test -z "$ac_dir" && ac_dir=.
4624 tmp_nm="$ac_dir/$lt_tmp_nm"
4625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4626 # Check to see if the nm accepts a BSD-compat flag.
4627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4628 # nm: unknown option "B" ignored
4629 # Tru64's nm complains that /dev/null is an invalid object file
4630 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4631 */dev/null* | *'Invalid file or object type'*)
4632 lt_cv_path_NM="$tmp_nm -B"
4633 break
4634 ;;
4635 *)
4636 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4637 */dev/null*)
4638 lt_cv_path_NM="$tmp_nm -p"
4639 break
4640 ;;
4641 *)
4642 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4643 continue # so that we can try to find one that supports BSD flags
4644 ;;
4645 esac
4646 ;;
4647 esac
4648 fi
4649 done
4650 IFS="$lt_save_ifs"
4651 done
4652 : ${lt_cv_path_NM=no}
4653 fi
4654 fi
4655 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4656 $as_echo "$lt_cv_path_NM" >&6; }
4657 if test "$lt_cv_path_NM" != "no"; then
4658 NM="$lt_cv_path_NM"
4659 else
4660 # Didn't find any BSD compatible name lister, look for dumpbin.
4661 if test -n "$ac_tool_prefix"; then
4662 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4663 do
4664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$DUMPBIN"; then
4672 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 DUMPBIN=$ac_cv_prog_DUMPBIN
4692 if test -n "$DUMPBIN"; then
4693 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4694 $as_echo "$DUMPBIN" >&6; }
4695 else
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700
4701 test -n "$DUMPBIN" && break
4702 done
4703 fi
4704 if test -z "$DUMPBIN"; then
4705 ac_ct_DUMPBIN=$DUMPBIN
4706 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4707 do
4708 # Extract the first word of "$ac_prog", so it can be a program name with args.
4709 set dummy $ac_prog; ac_word=$2
4710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$ac_ct_DUMPBIN"; then
4716 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4738 $as_echo "$ac_ct_DUMPBIN" >&6; }
4739 else
4740 { $as_echo "$as_me:$LINENO: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 test -n "$ac_ct_DUMPBIN" && break
4746 done
4747
4748 if test "x$ac_ct_DUMPBIN" = x; then
4749 DUMPBIN=":"
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755 ac_tool_warned=yes ;;
4756 esac
4757 DUMPBIN=$ac_ct_DUMPBIN
4758 fi
4759 fi
4760
4761
4762 if test "$DUMPBIN" != ":"; then
4763 NM="$DUMPBIN"
4764 fi
4765 fi
4766 test -z "$NM" && NM=nm
4767
4768
4769
4770
4771
4772
4773 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4774 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4775 if test "${lt_cv_nm_interface+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777 else
4778 lt_cv_nm_interface="BSD nm"
4779 echo "int some_variable = 0;" > conftest.$ac_ext
4780 (eval echo "\"\$as_me:4780: $ac_compile\"" >&5)
4781 (eval "$ac_compile" 2>conftest.err)
4782 cat conftest.err >&5
4783 (eval echo "\"\$as_me:4783: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4784 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4785 cat conftest.err >&5
4786 (eval echo "\"\$as_me:4786: output\"" >&5)
4787 cat conftest.out >&5
4788 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4789 lt_cv_nm_interface="MS dumpbin"
4790 fi
4791 rm -f conftest*
4792 fi
4793 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4794 $as_echo "$lt_cv_nm_interface" >&6; }
4795
4796 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4797 $as_echo_n "checking whether ln -s works... " >&6; }
4798 LN_S=$as_ln_s
4799 if test "$LN_S" = "ln -s"; then
4800 { $as_echo "$as_me:$LINENO: result: yes" >&5
4801 $as_echo "yes" >&6; }
4802 else
4803 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4804 $as_echo "no, using $LN_S" >&6; }
4805 fi
4806
4807 # find the maximum length of command line arguments
4808 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4809 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4810 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4812 else
4813 i=0
4814 teststring="ABCD"
4815
4816 case $build_os in
4817 msdosdjgpp*)
4818 # On DJGPP, this test can blow up pretty badly due to problems in libc
4819 # (any single argument exceeding 2000 bytes causes a buffer overrun
4820 # during glob expansion). Even if it were fixed, the result of this
4821 # check would be larger than it should be.
4822 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4823 ;;
4824
4825 gnu*)
4826 # Under GNU Hurd, this test is not required because there is
4827 # no limit to the length of command line arguments.
4828 # Libtool will interpret -1 as no limit whatsoever
4829 lt_cv_sys_max_cmd_len=-1;
4830 ;;
4831
4832 cygwin* | mingw* | cegcc*)
4833 # On Win9x/ME, this test blows up -- it succeeds, but takes
4834 # about 5 minutes as the teststring grows exponentially.
4835 # Worse, since 9x/ME are not pre-emptively multitasking,
4836 # you end up with a "frozen" computer, even though with patience
4837 # the test eventually succeeds (with a max line length of 256k).
4838 # Instead, let's just punt: use the minimum linelength reported by
4839 # all of the supported platforms: 8192 (on NT/2K/XP).
4840 lt_cv_sys_max_cmd_len=8192;
4841 ;;
4842
4843 amigaos*)
4844 # On AmigaOS with pdksh, this test takes hours, literally.
4845 # So we just punt and use a minimum line length of 8192.
4846 lt_cv_sys_max_cmd_len=8192;
4847 ;;
4848
4849 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4850 # This has been around since 386BSD, at least. Likely further.
4851 if test -x /sbin/sysctl; then
4852 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4853 elif test -x /usr/sbin/sysctl; then
4854 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4855 else
4856 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4857 fi
4858 # And add a safety zone
4859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4861 ;;
4862
4863 interix*)
4864 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4865 lt_cv_sys_max_cmd_len=196608
4866 ;;
4867
4868 osf*)
4869 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4870 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4871 # nice to cause kernel panics so lets avoid the loop below.
4872 # First set a reasonable default.
4873 lt_cv_sys_max_cmd_len=16384
4874 #
4875 if test -x /sbin/sysconfig; then
4876 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4877 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4878 esac
4879 fi
4880 ;;
4881 sco3.2v5*)
4882 lt_cv_sys_max_cmd_len=102400
4883 ;;
4884 sysv5* | sco5v6* | sysv4.2uw2*)
4885 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4886 if test -n "$kargmax"; then
4887 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4888 else
4889 lt_cv_sys_max_cmd_len=32768
4890 fi
4891 ;;
4892 *)
4893 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4894 if test -n "$lt_cv_sys_max_cmd_len"; then
4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4897 else
4898 # Make teststring a little bigger before we do anything with it.
4899 # a 1K string should be a reasonable start.
4900 for i in 1 2 3 4 5 6 7 8 ; do
4901 teststring=$teststring$teststring
4902 done
4903 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4904 # If test is not a shell built-in, we'll probably end up computing a
4905 # maximum length that is only half of the actual maximum length, but
4906 # we can't tell.
4907 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4908 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4909 test $i != 17 # 1/2 MB should be enough
4910 do
4911 i=`expr $i + 1`
4912 teststring=$teststring$teststring
4913 done
4914 # Only check the string length outside the loop.
4915 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4916 teststring=
4917 # Add a significant safety factor because C++ compilers can tack on
4918 # massive amounts of additional arguments before passing them to the
4919 # linker. It appears as though 1/2 is a usable value.
4920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4921 fi
4922 ;;
4923 esac
4924
4925 fi
4926
4927 if test -n $lt_cv_sys_max_cmd_len ; then
4928 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4929 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4930 else
4931 { $as_echo "$as_me:$LINENO: result: none" >&5
4932 $as_echo "none" >&6; }
4933 fi
4934 max_cmd_len=$lt_cv_sys_max_cmd_len
4935
4936
4937
4938
4939
4940
4941 : ${CP="cp -f"}
4942 : ${MV="mv -f"}
4943 : ${RM="rm -f"}
4944
4945 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4946 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4947 # Try some XSI features
4948 xsi_shell=no
4949 ( _lt_dummy="a/b/c"
4950 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4951 = c,a/b,, \
4952 && eval 'test $(( 1 + 1 )) -eq 2 \
4953 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4954 && xsi_shell=yes
4955 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4956 $as_echo "$xsi_shell" >&6; }
4957
4958
4959 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4960 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4961 lt_shell_append=no
4962 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4963 >/dev/null 2>&1 \
4964 && lt_shell_append=yes
4965 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4966 $as_echo "$lt_shell_append" >&6; }
4967
4968
4969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4970 lt_unset=unset
4971 else
4972 lt_unset=false
4973 fi
4974
4975
4976
4977
4978
4979 # test EBCDIC or ASCII
4980 case `echo X|tr X '\101'` in
4981 A) # ASCII based system
4982 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4983 lt_SP2NL='tr \040 \012'
4984 lt_NL2SP='tr \015\012 \040\040'
4985 ;;
4986 *) # EBCDIC based system
4987 lt_SP2NL='tr \100 \n'
4988 lt_NL2SP='tr \r\n \100\100'
4989 ;;
4990 esac
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5001 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5002 if test "${lt_cv_ld_reload_flag+set}" = set; then
5003 $as_echo_n "(cached) " >&6
5004 else
5005 lt_cv_ld_reload_flag='-r'
5006 fi
5007 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5008 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5009 reload_flag=$lt_cv_ld_reload_flag
5010 case $reload_flag in
5011 "" | " "*) ;;
5012 *) reload_flag=" $reload_flag" ;;
5013 esac
5014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5015 case $host_os in
5016 darwin*)
5017 if test "$GCC" = yes; then
5018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5019 else
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 fi
5022 ;;
5023 esac
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 if test -n "$ac_tool_prefix"; then
5034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -n "$OBJDUMP"; then
5042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053 break 2
5054 fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 OBJDUMP=$ac_cv_prog_OBJDUMP
5062 if test -n "$OBJDUMP"; then
5063 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5064 $as_echo "$OBJDUMP" >&6; }
5065 else
5066 { $as_echo "$as_me:$LINENO: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070
5071 fi
5072 if test -z "$ac_cv_prog_OBJDUMP"; then
5073 ac_ct_OBJDUMP=$OBJDUMP
5074 # Extract the first word of "objdump", so it can be a program name with args.
5075 set dummy objdump; ac_word=$2
5076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$ac_ct_OBJDUMP"; then
5082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095 done
5096 done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5102 if test -n "$ac_ct_OBJDUMP"; then
5103 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5104 $as_echo "$ac_ct_OBJDUMP" >&6; }
5105 else
5106 { $as_echo "$as_me:$LINENO: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110 if test "x$ac_ct_OBJDUMP" = x; then
5111 OBJDUMP="false"
5112 else
5113 case $cross_compiling:$ac_tool_warned in
5114 yes:)
5115 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117 ac_tool_warned=yes ;;
5118 esac
5119 OBJDUMP=$ac_ct_OBJDUMP
5120 fi
5121 else
5122 OBJDUMP="$ac_cv_prog_OBJDUMP"
5123 fi
5124
5125 test -z "$OBJDUMP" && OBJDUMP=objdump
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5136 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5137 if test "${lt_cv_deplibs_check_method+set}" = set; then
5138 $as_echo_n "(cached) " >&6
5139 else
5140 lt_cv_file_magic_cmd='$MAGIC_CMD'
5141 lt_cv_file_magic_test_file=
5142 lt_cv_deplibs_check_method='unknown'
5143 # Need to set the preceding variable on all platforms that support
5144 # interlibrary dependencies.
5145 # 'none' -- dependencies not supported.
5146 # `unknown' -- same as none, but documents that we really don't know.
5147 # 'pass_all' -- all dependencies passed with no checks.
5148 # 'test_compile' -- check by making test program.
5149 # 'file_magic [[regex]]' -- check by looking for files in library path
5150 # which responds to the $file_magic_cmd with a given extended regex.
5151 # If you have `file' or equivalent on your system and you're not sure
5152 # whether `pass_all' will *always* work, you probably want this one.
5153
5154 case $host_os in
5155 aix[4-9]*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158
5159 beos*)
5160 lt_cv_deplibs_check_method=pass_all
5161 ;;
5162
5163 bsdi[45]*)
5164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5165 lt_cv_file_magic_cmd='/usr/bin/file -L'
5166 lt_cv_file_magic_test_file=/shlib/libc.so
5167 ;;
5168
5169 cygwin*)
5170 # func_win32_libid is a shell function defined in ltmain.sh
5171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5172 lt_cv_file_magic_cmd='func_win32_libid'
5173 ;;
5174
5175 mingw* | pw32*)
5176 # Base MSYS/MinGW do not provide the 'file' command needed by
5177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5178 # unless we find 'file', for example because we are cross-compiling.
5179 if ( file / ) >/dev/null 2>&1; then
5180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5181 lt_cv_file_magic_cmd='func_win32_libid'
5182 else
5183 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5184 lt_cv_file_magic_cmd='$OBJDUMP -f'
5185 fi
5186 ;;
5187
5188 cegcc)
5189 # use the weaker test based on 'objdump'. See mingw*.
5190 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5191 lt_cv_file_magic_cmd='$OBJDUMP -f'
5192 ;;
5193
5194 darwin* | rhapsody*)
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
5197
5198 freebsd* | dragonfly*)
5199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5200 case $host_cpu in
5201 i*86 )
5202 # Not sure whether the presence of OpenBSD here was a mistake.
5203 # Let's accept both of them until this is cleared up.
5204 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5205 lt_cv_file_magic_cmd=/usr/bin/file
5206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207 ;;
5208 esac
5209 else
5210 lt_cv_deplibs_check_method=pass_all
5211 fi
5212 ;;
5213
5214 gnu*)
5215 lt_cv_deplibs_check_method=pass_all
5216 ;;
5217
5218 hpux10.20* | hpux11*)
5219 lt_cv_file_magic_cmd=/usr/bin/file
5220 case $host_cpu in
5221 ia64*)
5222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5223 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5224 ;;
5225 hppa*64*)
5226 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]'
5227 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5228 ;;
5229 *)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5231 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5232 ;;
5233 esac
5234 ;;
5235
5236 interix[3-9]*)
5237 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5239 ;;
5240
5241 irix5* | irix6* | nonstopux*)
5242 case $LD in
5243 *-32|*"-32 ") libmagic=32-bit;;
5244 *-n32|*"-n32 ") libmagic=N32;;
5245 *-64|*"-64 ") libmagic=64-bit;;
5246 *) libmagic=never-match;;
5247 esac
5248 lt_cv_deplibs_check_method=pass_all
5249 ;;
5250
5251 # This must be Linux ELF.
5252 linux* | k*bsd*-gnu)
5253 lt_cv_deplibs_check_method=pass_all
5254 ;;
5255
5256 netbsd*)
5257 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259 else
5260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5261 fi
5262 ;;
5263
5264 newos6*)
5265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5266 lt_cv_file_magic_cmd=/usr/bin/file
5267 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5268 ;;
5269
5270 *nto* | *qnx*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274 openbsd*)
5275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5277 else
5278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279 fi
5280 ;;
5281
5282 osf3* | osf4* | osf5*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 rdos*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 solaris*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 sysv4 | sysv4.3*)
5299 case $host_vendor in
5300 motorola)
5301 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]'
5302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5303 ;;
5304 ncr)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307 sequent)
5308 lt_cv_file_magic_cmd='/bin/file'
5309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5310 ;;
5311 sni)
5312 lt_cv_file_magic_cmd='/bin/file'
5313 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5314 lt_cv_file_magic_test_file=/lib/libc.so
5315 ;;
5316 siemens)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319 pc)
5320 lt_cv_deplibs_check_method=pass_all
5321 ;;
5322 esac
5323 ;;
5324
5325 tpf*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328 esac
5329
5330 fi
5331 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5332 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5333 file_magic_cmd=$lt_cv_file_magic_cmd
5334 deplibs_check_method=$lt_cv_deplibs_check_method
5335 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}ar; ac_word=$2
5351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_AR+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$AR"; then
5357 ac_cv_prog_AR="$AR" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_AR="${ac_tool_prefix}ar"
5367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 AR=$ac_cv_prog_AR
5377 if test -n "$AR"; then
5378 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5379 $as_echo "$AR" >&6; }
5380 else
5381 { $as_echo "$as_me:$LINENO: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385
5386 fi
5387 if test -z "$ac_cv_prog_AR"; then
5388 ac_ct_AR=$AR
5389 # Extract the first word of "ar", so it can be a program name with args.
5390 set dummy ar; ac_word=$2
5391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_ac_ct_AR="ar"
5407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417 if test -n "$ac_ct_AR"; then
5418 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5419 $as_echo "$ac_ct_AR" >&6; }
5420 else
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425 if test "x$ac_ct_AR" = x; then
5426 AR="false"
5427 else
5428 case $cross_compiling:$ac_tool_warned in
5429 yes:)
5430 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5432 ac_tool_warned=yes ;;
5433 esac
5434 AR=$ac_ct_AR
5435 fi
5436 else
5437 AR="$ac_cv_prog_AR"
5438 fi
5439
5440 test -z "$AR" && AR=ar
5441 test -z "$AR_FLAGS" && AR_FLAGS=cru
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}strip; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_STRIP+set}" = set; then
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$STRIP"; then
5462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 STRIP=$ac_cv_prog_STRIP
5482 if test -n "$STRIP"; then
5483 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5484 $as_echo "$STRIP" >&6; }
5485 else
5486 { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 fi
5492 if test -z "$ac_cv_prog_STRIP"; then
5493 ac_ct_STRIP=$STRIP
5494 # Extract the first word of "strip", so it can be a program name with args.
5495 set dummy strip; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$ac_ct_STRIP"; then
5502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_ac_ct_STRIP="strip"
5512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5522 if test -n "$ac_ct_STRIP"; then
5523 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5524 $as_echo "$ac_ct_STRIP" >&6; }
5525 else
5526 { $as_echo "$as_me:$LINENO: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530 if test "x$ac_ct_STRIP" = x; then
5531 STRIP=":"
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534 yes:)
5535 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537 ac_tool_warned=yes ;;
5538 esac
5539 STRIP=$ac_ct_STRIP
5540 fi
5541 else
5542 STRIP="$ac_cv_prog_STRIP"
5543 fi
5544
5545 test -z "$STRIP" && STRIP=:
5546
5547
5548
5549
5550
5551
5552 if test -n "$ac_tool_prefix"; then
5553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_RANLIB+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$RANLIB"; then
5561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 RANLIB=$ac_cv_prog_RANLIB
5581 if test -n "$RANLIB"; then
5582 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5583 $as_echo "$RANLIB" >&6; }
5584 else
5585 { $as_echo "$as_me:$LINENO: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 fi
5591 if test -z "$ac_cv_prog_RANLIB"; then
5592 ac_ct_RANLIB=$RANLIB
5593 # Extract the first word of "ranlib", so it can be a program name with args.
5594 set dummy ranlib; ac_word=$2
5595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5596 $as_echo_n "checking for $ac_word... " >&6; }
5597 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5598 $as_echo_n "(cached) " >&6
5599 else
5600 if test -n "$ac_ct_RANLIB"; then
5601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5602 else
5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 for as_dir in $PATH
5605 do
5606 IFS=$as_save_IFS
5607 test -z "$as_dir" && as_dir=.
5608 for ac_exec_ext in '' $ac_executable_extensions; do
5609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5610 ac_cv_prog_ac_ct_RANLIB="ranlib"
5611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5612 break 2
5613 fi
5614 done
5615 done
5616 IFS=$as_save_IFS
5617
5618 fi
5619 fi
5620 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5621 if test -n "$ac_ct_RANLIB"; then
5622 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5623 $as_echo "$ac_ct_RANLIB" >&6; }
5624 else
5625 { $as_echo "$as_me:$LINENO: result: no" >&5
5626 $as_echo "no" >&6; }
5627 fi
5628
5629 if test "x$ac_ct_RANLIB" = x; then
5630 RANLIB=":"
5631 else
5632 case $cross_compiling:$ac_tool_warned in
5633 yes:)
5634 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5636 ac_tool_warned=yes ;;
5637 esac
5638 RANLIB=$ac_ct_RANLIB
5639 fi
5640 else
5641 RANLIB="$ac_cv_prog_RANLIB"
5642 fi
5643
5644 test -z "$RANLIB" && RANLIB=:
5645
5646
5647
5648
5649
5650
5651 # Determine commands to create old-style static archives.
5652 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5653 old_postinstall_cmds='chmod 644 $oldlib'
5654 old_postuninstall_cmds=
5655
5656 if test -n "$RANLIB"; then
5657 case $host_os in
5658 openbsd*)
5659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5660 ;;
5661 *)
5662 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5663 ;;
5664 esac
5665 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5666 fi
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 # If no C compiler was specified, use CC.
5702 LTCC=${LTCC-"$CC"}
5703
5704 # If no C compiler flags were specified, use CFLAGS.
5705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5706
5707 # Allow CC to be a program name with arguments.
5708 compiler=$CC
5709
5710
5711 # Check for command to grab the raw symbol name followed by C symbol from nm.
5712 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5713 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5715 $as_echo_n "(cached) " >&6
5716 else
5717
5718 # These are sane defaults that work on at least a few old systems.
5719 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5720
5721 # Character class describing NM global symbol codes.
5722 symcode='[BCDEGRST]'
5723
5724 # Regexp to match symbols that can be accessed directly from C.
5725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5726
5727 # Define system-specific variables.
5728 case $host_os in
5729 aix*)
5730 symcode='[BCDT]'
5731 ;;
5732 cygwin* | mingw* | pw32* | cegcc*)
5733 symcode='[ABCDGISTW]'
5734 ;;
5735 hpux*)
5736 if test "$host_cpu" = ia64; then
5737 symcode='[ABCDEGRST]'
5738 fi
5739 ;;
5740 irix* | nonstopux*)
5741 symcode='[BCDEGRST]'
5742 ;;
5743 osf*)
5744 symcode='[BCDEGQRST]'
5745 ;;
5746 solaris*)
5747 symcode='[BDRT]'
5748 ;;
5749 sco3.2v5*)
5750 symcode='[DT]'
5751 ;;
5752 sysv4.2uw2*)
5753 symcode='[DT]'
5754 ;;
5755 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5756 symcode='[ABDT]'
5757 ;;
5758 sysv4)
5759 symcode='[DFNSTU]'
5760 ;;
5761 esac
5762
5763 # If we're using GNU nm, then use its standard symbol codes.
5764 case `$NM -V 2>&1` in
5765 *GNU* | *'with BFD'*)
5766 symcode='[ABCDGIRSTW]' ;;
5767 esac
5768
5769 # Transform an extracted symbol line into a proper C declaration.
5770 # Some systems (esp. on ia64) link data and code symbols differently,
5771 # so use this general approach.
5772 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5773
5774 # Transform an extracted symbol line into symbol name and symbol address
5775 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5776 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'"
5777
5778 # Handle CRLF in mingw tool chain
5779 opt_cr=
5780 case $build_os in
5781 mingw*)
5782 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5783 ;;
5784 esac
5785
5786 # Try without a prefix underscore, then with it.
5787 for ac_symprfx in "" "_"; do
5788
5789 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5790 symxfrm="\\1 $ac_symprfx\\2 \\2"
5791
5792 # Write the raw and C identifiers.
5793 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5794 # Fake it for dumpbin and say T for any non-static function
5795 # and D for any global variable.
5796 # Also find C++ and __fastcall symbols from MSVC++,
5797 # which start with @ or ?.
5798 lt_cv_sys_global_symbol_pipe="$AWK '"\
5799 " {last_section=section; section=\$ 3};"\
5800 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5801 " \$ 0!~/External *\|/{next};"\
5802 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5803 " {if(hide[section]) next};"\
5804 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5805 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5806 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5807 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5808 " ' prfx=^$ac_symprfx"
5809 else
5810 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5811 fi
5812
5813 # Check to see that the pipe works correctly.
5814 pipe_works=no
5815
5816 rm -f conftest*
5817 cat > conftest.$ac_ext <<_LT_EOF
5818 #ifdef __cplusplus
5819 extern "C" {
5820 #endif
5821 char nm_test_var;
5822 void nm_test_func(void);
5823 void nm_test_func(void){}
5824 #ifdef __cplusplus
5825 }
5826 #endif
5827 int main(){nm_test_var='a';nm_test_func();return(0);}
5828 _LT_EOF
5829
5830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5832 ac_status=$?
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; then
5835 # Now try to grab the symbols.
5836 nlist=conftest.nm
5837 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5838 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5839 ac_status=$?
5840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && test -s "$nlist"; then
5842 # Try sorting and uniquifying the output.
5843 if sort "$nlist" | uniq > "$nlist"T; then
5844 mv -f "$nlist"T "$nlist"
5845 else
5846 rm -f "$nlist"T
5847 fi
5848
5849 # Make sure that we snagged all the symbols we need.
5850 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5851 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5852 cat <<_LT_EOF > conftest.$ac_ext
5853 #ifdef __cplusplus
5854 extern "C" {
5855 #endif
5856
5857 _LT_EOF
5858 # Now generate the symbol file.
5859 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5860
5861 cat <<_LT_EOF >> conftest.$ac_ext
5862
5863 /* The mapping between symbol names and symbols. */
5864 const struct {
5865 const char *name;
5866 void *address;
5867 }
5868 lt__PROGRAM__LTX_preloaded_symbols[] =
5869 {
5870 { "@PROGRAM@", (void *) 0 },
5871 _LT_EOF
5872 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5873 cat <<\_LT_EOF >> conftest.$ac_ext
5874 {0, (void *) 0}
5875 };
5876
5877 /* This works around a problem in FreeBSD linker */
5878 #ifdef FREEBSD_WORKAROUND
5879 static const void *lt_preloaded_setup() {
5880 return lt__PROGRAM__LTX_preloaded_symbols;
5881 }
5882 #endif
5883
5884 #ifdef __cplusplus
5885 }
5886 #endif
5887 _LT_EOF
5888 # Now try linking the two files.
5889 mv conftest.$ac_objext conftstm.$ac_objext
5890 lt_save_LIBS="$LIBS"
5891 lt_save_CFLAGS="$CFLAGS"
5892 LIBS="conftstm.$ac_objext"
5893 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5895 (eval $ac_link) 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5899 pipe_works=yes
5900 fi
5901 LIBS="$lt_save_LIBS"
5902 CFLAGS="$lt_save_CFLAGS"
5903 else
5904 echo "cannot find nm_test_func in $nlist" >&5
5905 fi
5906 else
5907 echo "cannot find nm_test_var in $nlist" >&5
5908 fi
5909 else
5910 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5911 fi
5912 else
5913 echo "$progname: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5915 fi
5916 rm -rf conftest* conftst*
5917
5918 # Do not use the global_symbol_pipe unless it works.
5919 if test "$pipe_works" = yes; then
5920 break
5921 else
5922 lt_cv_sys_global_symbol_pipe=
5923 fi
5924 done
5925
5926 fi
5927
5928 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5929 lt_cv_sys_global_symbol_to_cdecl=
5930 fi
5931 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5932 { $as_echo "$as_me:$LINENO: result: failed" >&5
5933 $as_echo "failed" >&6; }
5934 else
5935 { $as_echo "$as_me:$LINENO: result: ok" >&5
5936 $as_echo "ok" >&6; }
5937 fi
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 # Check whether --enable-libtool-lock was given.
5962 if test "${enable_libtool_lock+set}" = set; then
5963 enableval=$enable_libtool_lock;
5964 fi
5965
5966 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5967
5968 # Some flags need to be propagated to the compiler or linker for good
5969 # libtool support.
5970 case $host in
5971 ia64-*-hpux*)
5972 # Find out which ABI we are using.
5973 echo 'int i;' > conftest.$ac_ext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>&5
5976 ac_status=$?
5977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; then
5979 case `/usr/bin/file conftest.$ac_objext` in
5980 *ELF-32*)
5981 HPUX_IA64_MODE="32"
5982 ;;
5983 *ELF-64*)
5984 HPUX_IA64_MODE="64"
5985 ;;
5986 esac
5987 fi
5988 rm -rf conftest*
5989 ;;
5990 *-*-irix6*)
5991 # Find out which ABI we are using.
5992 echo '#line 5992 "configure"' > conftest.$ac_ext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994 (eval $ac_compile) 2>&5
5995 ac_status=$?
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; then
5998 if test "$lt_cv_prog_gnu_ld" = yes; then
5999 case `/usr/bin/file conftest.$ac_objext` in
6000 *32-bit*)
6001 LD="${LD-ld} -melf32bsmip"
6002 ;;
6003 *N32*)
6004 LD="${LD-ld} -melf32bmipn32"
6005 ;;
6006 *64-bit*)
6007 LD="${LD-ld} -melf64bmip"
6008 ;;
6009 esac
6010 else
6011 case `/usr/bin/file conftest.$ac_objext` in
6012 *32-bit*)
6013 LD="${LD-ld} -32"
6014 ;;
6015 *N32*)
6016 LD="${LD-ld} -n32"
6017 ;;
6018 *64-bit*)
6019 LD="${LD-ld} -64"
6020 ;;
6021 esac
6022 fi
6023 fi
6024 rm -rf conftest*
6025 ;;
6026
6027 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6028 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6029 # Find out which ABI we are using.
6030 echo 'int i;' > conftest.$ac_ext
6031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>&5
6033 ac_status=$?
6034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; then
6036 case `/usr/bin/file conftest.o` in
6037 *32-bit*)
6038 case $host in
6039 x86_64-*kfreebsd*-gnu)
6040 LD="${LD-ld} -m elf_i386_fbsd"
6041 ;;
6042 x86_64-*linux*)
6043 LD="${LD-ld} -m elf_i386"
6044 ;;
6045 ppc64-*linux*|powerpc64-*linux*)
6046 LD="${LD-ld} -m elf32ppclinux"
6047 ;;
6048 s390x-*linux*)
6049 LD="${LD-ld} -m elf_s390"
6050 ;;
6051 sparc64-*linux*)
6052 LD="${LD-ld} -m elf32_sparc"
6053 ;;
6054 esac
6055 ;;
6056 *64-bit*)
6057 case $host in
6058 x86_64-*kfreebsd*-gnu)
6059 LD="${LD-ld} -m elf_x86_64_fbsd"
6060 ;;
6061 x86_64-*linux*)
6062 LD="${LD-ld} -m elf_x86_64"
6063 ;;
6064 ppc*-*linux*|powerpc*-*linux*)
6065 LD="${LD-ld} -m elf64ppc"
6066 ;;
6067 s390*-*linux*|s390*-*tpf*)
6068 LD="${LD-ld} -m elf64_s390"
6069 ;;
6070 sparc*-*linux*)
6071 LD="${LD-ld} -m elf64_sparc"
6072 ;;
6073 esac
6074 ;;
6075 esac
6076 fi
6077 rm -rf conftest*
6078 ;;
6079
6080 *-*-sco3.2v5*)
6081 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6082 SAVE_CFLAGS="$CFLAGS"
6083 CFLAGS="$CFLAGS -belf"
6084 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6085 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6086 if test "${lt_cv_cc_needs_belf+set}" = set; then
6087 $as_echo_n "(cached) " >&6
6088 else
6089 ac_ext=c
6090 ac_cpp='$CPP $CPPFLAGS'
6091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101
6102 int
6103 main ()
6104 {
6105
6106 ;
6107 return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext conftest$ac_exeext
6111 if { (ac_try="$ac_link"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6117 $as_echo "$ac_try_echo") >&5
6118 (eval "$ac_link") 2>conftest.er1
6119 ac_status=$?
6120 grep -v '^ *+' conftest.er1 >conftest.err
6121 rm -f conftest.er1
6122 cat conftest.err >&5
6123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } && {
6125 test -z "$ac_c_werror_flag" ||
6126 test ! -s conftest.err
6127 } && test -s conftest$ac_exeext && {
6128 test "$cross_compiling" = yes ||
6129 $as_test_x conftest$ac_exeext
6130 }; then
6131 lt_cv_cc_needs_belf=yes
6132 else
6133 $as_echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 lt_cv_cc_needs_belf=no
6137 fi
6138
6139 rm -rf conftest.dSYM
6140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148 fi
6149 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6150 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6153 CFLAGS="$SAVE_CFLAGS"
6154 fi
6155 ;;
6156 sparc*-*solaris*)
6157 # Find out which ABI we are using.
6158 echo 'int i;' > conftest.$ac_ext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>&5
6161 ac_status=$?
6162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; then
6164 case `/usr/bin/file conftest.o` in
6165 *64-bit*)
6166 case $lt_cv_prog_gnu_ld in
6167 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6168 *)
6169 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6170 LD="${LD-ld} -64"
6171 fi
6172 ;;
6173 esac
6174 ;;
6175 esac
6176 fi
6177 rm -rf conftest*
6178 ;;
6179 esac
6180
6181 need_locks="$enable_libtool_lock"
6182
6183
6184 case $host_os in
6185 rhapsody* | darwin*)
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$DSYMUTIL"; then
6195 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6215 if test -n "$DSYMUTIL"; then
6216 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6217 $as_echo "$DSYMUTIL" >&6; }
6218 else
6219 { $as_echo "$as_me:$LINENO: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 fi
6225 if test -z "$ac_cv_prog_DSYMUTIL"; then
6226 ac_ct_DSYMUTIL=$DSYMUTIL
6227 # Extract the first word of "dsymutil", so it can be a program name with args.
6228 set dummy dsymutil; ac_word=$2
6229 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$ac_ct_DSYMUTIL"; then
6235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6255 if test -n "$ac_ct_DSYMUTIL"; then
6256 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6257 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6258 else
6259 { $as_echo "$as_me:$LINENO: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263 if test "x$ac_ct_DSYMUTIL" = x; then
6264 DSYMUTIL=":"
6265 else
6266 case $cross_compiling:$ac_tool_warned in
6267 yes:)
6268 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6271 esac
6272 DSYMUTIL=$ac_ct_DSYMUTIL
6273 fi
6274 else
6275 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6276 fi
6277
6278 if test -n "$ac_tool_prefix"; then
6279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6280 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 $as_echo_n "checking for $ac_word... " >&6; }
6283 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6284 $as_echo_n "(cached) " >&6
6285 else
6286 if test -n "$NMEDIT"; then
6287 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6288 else
6289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 for as_dir in $PATH
6291 do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300 done
6301 done
6302 IFS=$as_save_IFS
6303
6304 fi
6305 fi
6306 NMEDIT=$ac_cv_prog_NMEDIT
6307 if test -n "$NMEDIT"; then
6308 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6309 $as_echo "$NMEDIT" >&6; }
6310 else
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312 $as_echo "no" >&6; }
6313 fi
6314
6315
6316 fi
6317 if test -z "$ac_cv_prog_NMEDIT"; then
6318 ac_ct_NMEDIT=$NMEDIT
6319 # Extract the first word of "nmedit", so it can be a program name with args.
6320 set dummy nmedit; ac_word=$2
6321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6322 $as_echo_n "checking for $ac_word... " >&6; }
6323 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 if test -n "$ac_ct_NMEDIT"; then
6327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6328 else
6329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332 IFS=$as_save_IFS
6333 test -z "$as_dir" && as_dir=.
6334 for ac_exec_ext in '' $ac_executable_extensions; do
6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6336 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 break 2
6339 fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344 fi
6345 fi
6346 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6347 if test -n "$ac_ct_NMEDIT"; then
6348 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6349 $as_echo "$ac_ct_NMEDIT" >&6; }
6350 else
6351 { $as_echo "$as_me:$LINENO: result: no" >&5
6352 $as_echo "no" >&6; }
6353 fi
6354
6355 if test "x$ac_ct_NMEDIT" = x; then
6356 NMEDIT=":"
6357 else
6358 case $cross_compiling:$ac_tool_warned in
6359 yes:)
6360 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6362 ac_tool_warned=yes ;;
6363 esac
6364 NMEDIT=$ac_ct_NMEDIT
6365 fi
6366 else
6367 NMEDIT="$ac_cv_prog_NMEDIT"
6368 fi
6369
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_LIPO+set}" = set; then
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$LIPO"; then
6379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 LIPO=$ac_cv_prog_LIPO
6399 if test -n "$LIPO"; then
6400 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6401 $as_echo "$LIPO" >&6; }
6402 else
6403 { $as_echo "$as_me:$LINENO: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_LIPO"; then
6410 ac_ct_LIPO=$LIPO
6411 # Extract the first word of "lipo", so it can be a program name with args.
6412 set dummy lipo; ac_word=$2
6413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6416 $as_echo_n "(cached) " >&6
6417 else
6418 if test -n "$ac_ct_LIPO"; then
6419 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424 IFS=$as_save_IFS
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_prog_ac_ct_LIPO="lipo"
6429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 break 2
6431 fi
6432 done
6433 done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6439 if test -n "$ac_ct_LIPO"; then
6440 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6441 $as_echo "$ac_ct_LIPO" >&6; }
6442 else
6443 { $as_echo "$as_me:$LINENO: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447 if test "x$ac_ct_LIPO" = x; then
6448 LIPO=":"
6449 else
6450 case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456 LIPO=$ac_ct_LIPO
6457 fi
6458 else
6459 LIPO="$ac_cv_prog_LIPO"
6460 fi
6461
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}otool; ac_word=$2
6465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_OTOOL+set}" = set; then
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$OTOOL"; then
6471 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488 fi
6489 fi
6490 OTOOL=$ac_cv_prog_OTOOL
6491 if test -n "$OTOOL"; then
6492 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6493 $as_echo "$OTOOL" >&6; }
6494 else
6495 { $as_echo "$as_me:$LINENO: result: no" >&5
6496 $as_echo "no" >&6; }
6497 fi
6498
6499
6500 fi
6501 if test -z "$ac_cv_prog_OTOOL"; then
6502 ac_ct_OTOOL=$OTOOL
6503 # Extract the first word of "otool", so it can be a program name with args.
6504 set dummy otool; ac_word=$2
6505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$ac_ct_OTOOL"; then
6511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_OTOOL="otool"
6521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6523 fi
6524 done
6525 done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6531 if test -n "$ac_ct_OTOOL"; then
6532 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6533 $as_echo "$ac_ct_OTOOL" >&6; }
6534 else
6535 { $as_echo "$as_me:$LINENO: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539 if test "x$ac_ct_OTOOL" = x; then
6540 OTOOL=":"
6541 else
6542 case $cross_compiling:$ac_tool_warned in
6543 yes:)
6544 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6546 ac_tool_warned=yes ;;
6547 esac
6548 OTOOL=$ac_ct_OTOOL
6549 fi
6550 else
6551 OTOOL="$ac_cv_prog_OTOOL"
6552 fi
6553
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6557 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$OTOOL64"; then
6563 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 OTOOL64=$ac_cv_prog_OTOOL64
6583 if test -n "$OTOOL64"; then
6584 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6585 $as_echo "$OTOOL64" >&6; }
6586 else
6587 { $as_echo "$as_me:$LINENO: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591
6592 fi
6593 if test -z "$ac_cv_prog_OTOOL64"; then
6594 ac_ct_OTOOL64=$OTOOL64
6595 # Extract the first word of "otool64", so it can be a program name with args.
6596 set dummy otool64; ac_word=$2
6597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_OTOOL64"; then
6603 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_ac_ct_OTOOL64="otool64"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6615 fi
6616 done
6617 done
6618 IFS=$as_save_IFS
6619
6620 fi
6621 fi
6622 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6623 if test -n "$ac_ct_OTOOL64"; then
6624 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6625 $as_echo "$ac_ct_OTOOL64" >&6; }
6626 else
6627 { $as_echo "$as_me:$LINENO: result: no" >&5
6628 $as_echo "no" >&6; }
6629 fi
6630
6631 if test "x$ac_ct_OTOOL64" = x; then
6632 OTOOL64=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 OTOOL64=$ac_ct_OTOOL64
6641 fi
6642 else
6643 OTOOL64="$ac_cv_prog_OTOOL64"
6644 fi
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6673 $as_echo_n "checking for -single_module linker flag... " >&6; }
6674 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6675 $as_echo_n "(cached) " >&6
6676 else
6677 lt_cv_apple_cc_single_mod=no
6678 if test -z "${LT_MULTI_MODULE}"; then
6679 # By default we will add the -single_module flag. You can override
6680 # by either setting the environment variable LT_MULTI_MODULE
6681 # non-empty at configure time, or by adding -multi_module to the
6682 # link flags.
6683 rm -rf libconftest.dylib*
6684 echo "int foo(void){return 1;}" > conftest.c
6685 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6686 -dynamiclib -Wl,-single_module conftest.c" >&5
6687 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6688 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6689 _lt_result=$?
6690 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6691 lt_cv_apple_cc_single_mod=yes
6692 else
6693 cat conftest.err >&5
6694 fi
6695 rm -rf libconftest.dylib*
6696 rm -f conftest.*
6697 fi
6698 fi
6699 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6700 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6701 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6702 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6703 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6704 $as_echo_n "(cached) " >&6
6705 else
6706 lt_cv_ld_exported_symbols_list=no
6707 save_LDFLAGS=$LDFLAGS
6708 echo "_main" > conftest.sym
6709 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716
6717 int
6718 main ()
6719 {
6720
6721 ;
6722 return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (ac_try="$ac_link"
6727 case "(($ac_try" in
6728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729 *) ac_try_echo=$ac_try;;
6730 esac
6731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6732 $as_echo "$ac_try_echo") >&5
6733 (eval "$ac_link") 2>conftest.er1
6734 ac_status=$?
6735 grep -v '^ *+' conftest.er1 >conftest.err
6736 rm -f conftest.er1
6737 cat conftest.err >&5
6738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest$ac_exeext && {
6743 test "$cross_compiling" = yes ||
6744 $as_test_x conftest$ac_exeext
6745 }; then
6746 lt_cv_ld_exported_symbols_list=yes
6747 else
6748 $as_echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751 lt_cv_ld_exported_symbols_list=no
6752 fi
6753
6754 rm -rf conftest.dSYM
6755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LDFLAGS="$save_LDFLAGS"
6758
6759 fi
6760 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6761 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6762 case $host_os in
6763 rhapsody* | darwin1.[012])
6764 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6765 darwin1.*)
6766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6767 darwin*) # darwin 5.x on
6768 # if running on 10.5 or later, the deployment target defaults
6769 # to the OS version, if on x86, and 10.4, the deployment
6770 # target defaults to 10.4. Don't you love it?
6771 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6772 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6774 10.[012]*)
6775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776 10.*)
6777 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6778 esac
6779 ;;
6780 esac
6781 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6782 _lt_dar_single_mod='$single_module'
6783 fi
6784 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6785 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6786 else
6787 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6788 fi
6789 if test "$DSYMUTIL" != ":"; then
6790 _lt_dsymutil='~$DSYMUTIL $lib || :'
6791 else
6792 _lt_dsymutil=
6793 fi
6794 ;;
6795 esac
6796
6797 ac_ext=c
6798 ac_cpp='$CPP $CPPFLAGS'
6799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6803 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6804 # On Suns, sometimes $CPP names a directory.
6805 if test -n "$CPP" && test -d "$CPP"; then
6806 CPP=
6807 fi
6808 if test -z "$CPP"; then
6809 if test "${ac_cv_prog_CPP+set}" = set; then
6810 $as_echo_n "(cached) " >&6
6811 else
6812 # Double quotes because CPP needs to be expanded
6813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6814 do
6815 ac_preproc_ok=false
6816 for ac_c_preproc_warn_flag in '' yes
6817 do
6818 # Use a header file that comes with gcc, so configuring glibc
6819 # with a fresh cross-compiler works.
6820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6821 # <limits.h> exists even on freestanding compilers.
6822 # On the NeXT, cc -E runs the code through the compiler's parser,
6823 # not just through cpp. "Syntax error" is here to catch this case.
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #ifdef __STDC__
6831 # include <limits.h>
6832 #else
6833 # include <assert.h>
6834 #endif
6835 Syntax error
6836 _ACEOF
6837 if { (ac_try="$ac_cpp conftest.$ac_ext"
6838 case "(($ac_try" in
6839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6840 *) ac_try_echo=$ac_try;;
6841 esac
6842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6843 $as_echo "$ac_try_echo") >&5
6844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } >/dev/null && {
6851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6852 test ! -s conftest.err
6853 }; then
6854 :
6855 else
6856 $as_echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 # Broken: fails on valid input.
6860 continue
6861 fi
6862
6863 rm -f conftest.err conftest.$ac_ext
6864
6865 # OK, works on sane cases. Now check whether nonexistent headers
6866 # can be detected and how.
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h. */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <ac_nonexistent.h>
6874 _ACEOF
6875 if { (ac_try="$ac_cpp conftest.$ac_ext"
6876 case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879 esac
6880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881 $as_echo "$ac_try_echo") >&5
6882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } >/dev/null && {
6889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 }; then
6892 # Broken: success on invalid input.
6893 continue
6894 else
6895 $as_echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 # Passes both tests.
6899 ac_preproc_ok=:
6900 break
6901 fi
6902
6903 rm -f conftest.err conftest.$ac_ext
6904
6905 done
6906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6907 rm -f conftest.err conftest.$ac_ext
6908 if $ac_preproc_ok; then
6909 break
6910 fi
6911
6912 done
6913 ac_cv_prog_CPP=$CPP
6914
6915 fi
6916 CPP=$ac_cv_prog_CPP
6917 else
6918 ac_cv_prog_CPP=$CPP
6919 fi
6920 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6921 $as_echo "$CPP" >&6; }
6922 ac_preproc_ok=false
6923 for ac_c_preproc_warn_flag in '' yes
6924 do
6925 # Use a header file that comes with gcc, so configuring glibc
6926 # with a fresh cross-compiler works.
6927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6928 # <limits.h> exists even on freestanding compilers.
6929 # On the NeXT, cc -E runs the code through the compiler's parser,
6930 # not just through cpp. "Syntax error" is here to catch this case.
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #ifdef __STDC__
6938 # include <limits.h>
6939 #else
6940 # include <assert.h>
6941 #endif
6942 Syntax error
6943 _ACEOF
6944 if { (ac_try="$ac_cpp conftest.$ac_ext"
6945 case "(($ac_try" in
6946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6948 esac
6949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6950 $as_echo "$ac_try_echo") >&5
6951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6952 ac_status=$?
6953 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1
6955 cat conftest.err >&5
6956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } >/dev/null && {
6958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 }; then
6961 :
6962 else
6963 $as_echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966 # Broken: fails on valid input.
6967 continue
6968 fi
6969
6970 rm -f conftest.err conftest.$ac_ext
6971
6972 # OK, works on sane cases. Now check whether nonexistent headers
6973 # can be detected and how.
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 #include <ac_nonexistent.h>
6981 _ACEOF
6982 if { (ac_try="$ac_cpp conftest.$ac_ext"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 }; then
6999 # Broken: success on invalid input.
7000 continue
7001 else
7002 $as_echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 # Passes both tests.
7006 ac_preproc_ok=:
7007 break
7008 fi
7009
7010 rm -f conftest.err conftest.$ac_ext
7011
7012 done
7013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014 rm -f conftest.err conftest.$ac_ext
7015 if $ac_preproc_ok; then
7016 :
7017 else
7018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7020 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7021 See \`config.log' for more details." >&5
7022 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7023 See \`config.log' for more details." >&2;}
7024 { (exit 1); exit 1; }; }; }
7025 fi
7026
7027 ac_ext=c
7028 ac_cpp='$CPP $CPPFLAGS'
7029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
7033
7034 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7035 $as_echo_n "checking for ANSI C header files... " >&6; }
7036 if test "${ac_cv_header_stdc+set}" = set; then
7037 $as_echo_n "(cached) " >&6
7038 else
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <stdlib.h>
7046 #include <stdarg.h>
7047 #include <string.h>
7048 #include <float.h>
7049
7050 int
7051 main ()
7052 {
7053
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 rm -f conftest.$ac_objext
7059 if { (ac_try="$ac_compile"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7065 $as_echo "$ac_try_echo") >&5
7066 (eval "$ac_compile") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest.$ac_objext; then
7076 ac_cv_header_stdc=yes
7077 else
7078 $as_echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_cv_header_stdc=no
7082 fi
7083
7084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085
7086 if test $ac_cv_header_stdc = yes; then
7087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7088 cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h. */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 #include <string.h>
7095
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "memchr" >/dev/null 2>&1; then
7099 :
7100 else
7101 ac_cv_header_stdc=no
7102 fi
7103 rm -f conftest*
7104
7105 fi
7106
7107 if test $ac_cv_header_stdc = yes; then
7108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <stdlib.h>
7116
7117 _ACEOF
7118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119 $EGREP "free" >/dev/null 2>&1; then
7120 :
7121 else
7122 ac_cv_header_stdc=no
7123 fi
7124 rm -f conftest*
7125
7126 fi
7127
7128 if test $ac_cv_header_stdc = yes; then
7129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7130 if test "$cross_compiling" = yes; then
7131 :
7132 else
7133 cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h. */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 #include <ctype.h>
7140 #include <stdlib.h>
7141 #if ((' ' & 0x0FF) == 0x020)
7142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7144 #else
7145 # define ISLOWER(c) \
7146 (('a' <= (c) && (c) <= 'i') \
7147 || ('j' <= (c) && (c) <= 'r') \
7148 || ('s' <= (c) && (c) <= 'z'))
7149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7150 #endif
7151
7152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7153 int
7154 main ()
7155 {
7156 int i;
7157 for (i = 0; i < 256; i++)
7158 if (XOR (islower (i), ISLOWER (i))
7159 || toupper (i) != TOUPPER (i))
7160 return 2;
7161 return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest$ac_exeext
7165 if { (ac_try="$ac_link"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_link") 2>&5
7173 ac_status=$?
7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7176 { (case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179 esac
7180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7181 $as_echo "$ac_try_echo") >&5
7182 (eval "$ac_try") 2>&5
7183 ac_status=$?
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 :
7187 else
7188 $as_echo "$as_me: program exited with status $ac_status" >&5
7189 $as_echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ( exit $ac_status )
7193 ac_cv_header_stdc=no
7194 fi
7195 rm -rf conftest.dSYM
7196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7197 fi
7198
7199
7200 fi
7201 fi
7202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7203 $as_echo "$ac_cv_header_stdc" >&6; }
7204 if test $ac_cv_header_stdc = yes; then
7205
7206 cat >>confdefs.h <<\_ACEOF
7207 #define STDC_HEADERS 1
7208 _ACEOF
7209
7210 fi
7211
7212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7223 inttypes.h stdint.h unistd.h
7224 do
7225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7227 $as_echo_n "checking for $ac_header... " >&6; }
7228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7229 $as_echo_n "(cached) " >&6
7230 else
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 $ac_includes_default
7238
7239 #include <$ac_header>
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 eval "$as_ac_Header=yes"
7260 else
7261 $as_echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 eval "$as_ac_Header=no"
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 ac_res=`eval 'as_val=${'$as_ac_Header'}
7270 $as_echo "$as_val"'`
7271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7272 $as_echo "$ac_res" >&6; }
7273 as_val=`eval 'as_val=${'$as_ac_Header'}
7274 $as_echo "$as_val"'`
7275 if test "x$as_val" = x""yes; then
7276 cat >>confdefs.h <<_ACEOF
7277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 _ACEOF
7279
7280 fi
7281
7282 done
7283
7284
7285
7286 for ac_header in dlfcn.h
7287 do
7288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7290 $as_echo_n "checking for $ac_header... " >&6; }
7291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7292 $as_echo_n "(cached) " >&6
7293 else
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 $ac_includes_default
7301
7302 #include <$ac_header>
7303 _ACEOF
7304 rm -f conftest.$ac_objext
7305 if { (ac_try="$ac_compile"
7306 case "(($ac_try" in
7307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308 *) ac_try_echo=$ac_try;;
7309 esac
7310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7311 $as_echo "$ac_try_echo") >&5
7312 (eval "$ac_compile") 2>conftest.er1
7313 ac_status=$?
7314 grep -v '^ *+' conftest.er1 >conftest.err
7315 rm -f conftest.er1
7316 cat conftest.err >&5
7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_c_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest.$ac_objext; then
7322 eval "$as_ac_Header=yes"
7323 else
7324 $as_echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 eval "$as_ac_Header=no"
7328 fi
7329
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 fi
7332 ac_res=`eval 'as_val=${'$as_ac_Header'}
7333 $as_echo "$as_val"'`
7334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7335 $as_echo "$ac_res" >&6; }
7336 as_val=`eval 'as_val=${'$as_ac_Header'}
7337 $as_echo "$as_val"'`
7338 if test "x$as_val" = x""yes; then
7339 cat >>confdefs.h <<_ACEOF
7340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347
7348
7349 # Set options
7350
7351
7352
7353 enable_dlopen=no
7354
7355
7356 enable_win32_dll=no
7357
7358
7359 # Check whether --enable-shared was given.
7360 if test "${enable_shared+set}" = set; then
7361 enableval=$enable_shared; p=${PACKAGE-default}
7362 case $enableval in
7363 yes) enable_shared=yes ;;
7364 no) enable_shared=no ;;
7365 *)
7366 enable_shared=no
7367 # Look at the argument we got. We use all the common list separators.
7368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7369 for pkg in $enableval; do
7370 IFS="$lt_save_ifs"
7371 if test "X$pkg" = "X$p"; then
7372 enable_shared=yes
7373 fi
7374 done
7375 IFS="$lt_save_ifs"
7376 ;;
7377 esac
7378 else
7379 enable_shared=yes
7380 fi
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390 # Check whether --enable-static was given.
7391 if test "${enable_static+set}" = set; then
7392 enableval=$enable_static; p=${PACKAGE-default}
7393 case $enableval in
7394 yes) enable_static=yes ;;
7395 no) enable_static=no ;;
7396 *)
7397 enable_static=no
7398 # Look at the argument we got. We use all the common list separators.
7399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7400 for pkg in $enableval; do
7401 IFS="$lt_save_ifs"
7402 if test "X$pkg" = "X$p"; then
7403 enable_static=yes
7404 fi
7405 done
7406 IFS="$lt_save_ifs"
7407 ;;
7408 esac
7409 else
7410 enable_static=yes
7411 fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422 # Check whether --with-pic was given.
7423 if test "${with_pic+set}" = set; then
7424 withval=$with_pic; pic_mode="$withval"
7425 else
7426 pic_mode=default
7427 fi
7428
7429
7430 test -z "$pic_mode" && pic_mode=default
7431
7432
7433
7434
7435
7436
7437
7438 # Check whether --enable-fast-install was given.
7439 if test "${enable_fast_install+set}" = set; then
7440 enableval=$enable_fast_install; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_fast_install=yes ;;
7443 no) enable_fast_install=no ;;
7444 *)
7445 enable_fast_install=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_fast_install=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
7455 ;;
7456 esac
7457 else
7458 enable_fast_install=yes
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471 # This can be used to rebuild libtool when needed
7472 LIBTOOL_DEPS="$ltmain"
7473
7474 # Always use our own libtool.
7475 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 test -z "$LN_S" && LN_S="ln -s"
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 if test -n "${ZSH_VERSION+set}" ; then
7517 setopt NO_GLOB_SUBST
7518 fi
7519
7520 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7521 $as_echo_n "checking for objdir... " >&6; }
7522 if test "${lt_cv_objdir+set}" = set; then
7523 $as_echo_n "(cached) " >&6
7524 else
7525 rm -f .libs 2>/dev/null
7526 mkdir .libs 2>/dev/null
7527 if test -d .libs; then
7528 lt_cv_objdir=.libs
7529 else
7530 # MS-DOS does not allow filenames that begin with a dot.
7531 lt_cv_objdir=_libs
7532 fi
7533 rmdir .libs 2>/dev/null
7534 fi
7535 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7536 $as_echo "$lt_cv_objdir" >&6; }
7537 objdir=$lt_cv_objdir
7538
7539
7540
7541
7542
7543 cat >>confdefs.h <<_ACEOF
7544 #define LT_OBJDIR "$lt_cv_objdir/"
7545 _ACEOF
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 case $host_os in
7564 aix3*)
7565 # AIX sometimes has problems with the GCC collect2 program. For some
7566 # reason, if we set the COLLECT_NAMES environment variable, the problems
7567 # vanish in a puff of smoke.
7568 if test "X${COLLECT_NAMES+set}" != Xset; then
7569 COLLECT_NAMES=
7570 export COLLECT_NAMES
7571 fi
7572 ;;
7573 esac
7574
7575 # Sed substitution that helps us do robust quoting. It backslashifies
7576 # metacharacters that are still active within double-quoted strings.
7577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7578
7579 # Same as above, but do not quote variable references.
7580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7581
7582 # Sed substitution to delay expansion of an escaped shell variable in a
7583 # double_quote_subst'ed string.
7584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7585
7586 # Sed substitution to delay expansion of an escaped single quote.
7587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7588
7589 # Sed substitution to avoid accidental globbing in evaled expressions
7590 no_glob_subst='s/\*/\\\*/g'
7591
7592 # Global variables:
7593 ofile=libtool
7594 can_build_shared=yes
7595
7596 # All known linkers require a `.a' archive for static linking (except MSVC,
7597 # which needs '.lib').
7598 libext=a
7599
7600 with_gnu_ld="$lt_cv_prog_gnu_ld"
7601
7602 old_CC="$CC"
7603 old_CFLAGS="$CFLAGS"
7604
7605 # Set sane defaults for various variables
7606 test -z "$CC" && CC=cc
7607 test -z "$LTCC" && LTCC=$CC
7608 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7609 test -z "$LD" && LD=ld
7610 test -z "$ac_objext" && ac_objext=o
7611
7612 for cc_temp in $compiler""; do
7613 case $cc_temp in
7614 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7615 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7616 \-*) ;;
7617 *) break;;
7618 esac
7619 done
7620 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7621
7622
7623 # Only perform the check for file, if the check method requires it
7624 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7625 case $deplibs_check_method in
7626 file_magic*)
7627 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7628 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7629 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7630 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7631 $as_echo_n "(cached) " >&6
7632 else
7633 case $MAGIC_CMD in
7634 [\\/*] | ?:[\\/]*)
7635 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7636 ;;
7637 *)
7638 lt_save_MAGIC_CMD="$MAGIC_CMD"
7639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7640 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7641 for ac_dir in $ac_dummy; do
7642 IFS="$lt_save_ifs"
7643 test -z "$ac_dir" && ac_dir=.
7644 if test -f $ac_dir/${ac_tool_prefix}file; then
7645 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7646 if test -n "$file_magic_test_file"; then
7647 case $deplibs_check_method in
7648 "file_magic "*)
7649 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7651 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7652 $EGREP "$file_magic_regex" > /dev/null; then
7653 :
7654 else
7655 cat <<_LT_EOF 1>&2
7656
7657 *** Warning: the command libtool uses to detect shared libraries,
7658 *** $file_magic_cmd, produces output that libtool cannot recognize.
7659 *** The result is that libtool may fail to recognize shared libraries
7660 *** as such. This will affect the creation of libtool libraries that
7661 *** depend on shared libraries, but programs linked with such libtool
7662 *** libraries will work regardless of this problem. Nevertheless, you
7663 *** may want to report the problem to your system manager and/or to
7664 *** bug-libtool@gnu.org
7665
7666 _LT_EOF
7667 fi ;;
7668 esac
7669 fi
7670 break
7671 fi
7672 done
7673 IFS="$lt_save_ifs"
7674 MAGIC_CMD="$lt_save_MAGIC_CMD"
7675 ;;
7676 esac
7677 fi
7678
7679 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7680 if test -n "$MAGIC_CMD"; then
7681 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7682 $as_echo "$MAGIC_CMD" >&6; }
7683 else
7684 { $as_echo "$as_me:$LINENO: result: no" >&5
7685 $as_echo "no" >&6; }
7686 fi
7687
7688
7689
7690
7691
7692 if test -z "$lt_cv_path_MAGIC_CMD"; then
7693 if test -n "$ac_tool_prefix"; then
7694 { $as_echo "$as_me:$LINENO: checking for file" >&5
7695 $as_echo_n "checking for file... " >&6; }
7696 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7698 else
7699 case $MAGIC_CMD in
7700 [\\/*] | ?:[\\/]*)
7701 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7702 ;;
7703 *)
7704 lt_save_MAGIC_CMD="$MAGIC_CMD"
7705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7706 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7707 for ac_dir in $ac_dummy; do
7708 IFS="$lt_save_ifs"
7709 test -z "$ac_dir" && ac_dir=.
7710 if test -f $ac_dir/file; then
7711 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7712 if test -n "$file_magic_test_file"; then
7713 case $deplibs_check_method in
7714 "file_magic "*)
7715 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7718 $EGREP "$file_magic_regex" > /dev/null; then
7719 :
7720 else
7721 cat <<_LT_EOF 1>&2
7722
7723 *** Warning: the command libtool uses to detect shared libraries,
7724 *** $file_magic_cmd, produces output that libtool cannot recognize.
7725 *** The result is that libtool may fail to recognize shared libraries
7726 *** as such. This will affect the creation of libtool libraries that
7727 *** depend on shared libraries, but programs linked with such libtool
7728 *** libraries will work regardless of this problem. Nevertheless, you
7729 *** may want to report the problem to your system manager and/or to
7730 *** bug-libtool@gnu.org
7731
7732 _LT_EOF
7733 fi ;;
7734 esac
7735 fi
7736 break
7737 fi
7738 done
7739 IFS="$lt_save_ifs"
7740 MAGIC_CMD="$lt_save_MAGIC_CMD"
7741 ;;
7742 esac
7743 fi
7744
7745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7746 if test -n "$MAGIC_CMD"; then
7747 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7748 $as_echo "$MAGIC_CMD" >&6; }
7749 else
7750 { $as_echo "$as_me:$LINENO: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755 else
7756 MAGIC_CMD=:
7757 fi
7758 fi
7759
7760 fi
7761 ;;
7762 esac
7763
7764 # Use C for the default configuration in the libtool script
7765
7766 lt_save_CC="$CC"
7767 ac_ext=c
7768 ac_cpp='$CPP $CPPFLAGS'
7769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
7773
7774 # Source file extension for C test sources.
7775 ac_ext=c
7776
7777 # Object file extension for compiled C test sources.
7778 objext=o
7779 objext=$objext
7780
7781 # Code to be used in simple compile tests
7782 lt_simple_compile_test_code="int some_variable = 0;"
7783
7784 # Code to be used in simple link tests
7785 lt_simple_link_test_code='int main(){return(0);}'
7786
7787
7788
7789
7790
7791
7792
7793 # If no C compiler was specified, use CC.
7794 LTCC=${LTCC-"$CC"}
7795
7796 # If no C compiler flags were specified, use CFLAGS.
7797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7798
7799 # Allow CC to be a program name with arguments.
7800 compiler=$CC
7801
7802 # Save the default compiler, since it gets overwritten when the other
7803 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7804 compiler_DEFAULT=$CC
7805
7806 # save warnings/boilerplate of simple test code
7807 ac_outfile=conftest.$ac_objext
7808 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7809 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7810 _lt_compiler_boilerplate=`cat conftest.err`
7811 $RM conftest*
7812
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7815 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816 _lt_linker_boilerplate=`cat conftest.err`
7817 $RM -r conftest*
7818
7819
7820 if test -n "$compiler"; then
7821
7822 lt_prog_compiler_no_builtin_flag=
7823
7824 if test "$GCC" = yes; then
7825 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7826
7827 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7829 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7830 $as_echo_n "(cached) " >&6
7831 else
7832 lt_cv_prog_compiler_rtti_exceptions=no
7833 ac_outfile=conftest.$ac_objext
7834 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835 lt_compiler_flag="-fno-rtti -fno-exceptions"
7836 # Insert the option either (1) after the last *FLAGS variable, or
7837 # (2) before a word containing "conftest.", or (3) at the end.
7838 # Note that $ac_compile itself does not contain backslashes and begins
7839 # with a dollar sign (not a hyphen), so the echo should work correctly.
7840 # The option is referenced via a variable to avoid confusing sed.
7841 lt_compile=`echo "$ac_compile" | $SED \
7842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844 -e 's:$: $lt_compiler_flag:'`
7845 (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846 (eval "$lt_compile" 2>conftest.err)
7847 ac_status=$?
7848 cat conftest.err >&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 if (exit $ac_status) && test -s "$ac_outfile"; then
7851 # The compiler can only warn and ignore the option if not recognized
7852 # So say no if there are warnings other than the usual output.
7853 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856 lt_cv_prog_compiler_rtti_exceptions=yes
7857 fi
7858 fi
7859 $RM conftest*
7860
7861 fi
7862 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7864
7865 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7867 else
7868 :
7869 fi
7870
7871 fi
7872
7873
7874
7875
7876
7877
7878 lt_prog_compiler_wl=
7879 lt_prog_compiler_pic=
7880 lt_prog_compiler_static=
7881
7882 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7883 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7884
7885 if test "$GCC" = yes; then
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_static='-static'
7888
7889 case $host_os in
7890 aix*)
7891 # All AIX code is PIC.
7892 if test "$host_cpu" = ia64; then
7893 # AIX 5 now supports IA64 processor
7894 lt_prog_compiler_static='-Bstatic'
7895 fi
7896 ;;
7897
7898 amigaos*)
7899 case $host_cpu in
7900 powerpc)
7901 # see comment about AmigaOS4 .so support
7902 lt_prog_compiler_pic='-fPIC'
7903 ;;
7904 m68k)
7905 # FIXME: we need at least 68020 code to build shared libraries, but
7906 # adding the `-m68020' flag to GCC prevents building anything better,
7907 # like `-m68040'.
7908 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7909 ;;
7910 esac
7911 ;;
7912
7913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7914 # PIC is the default for these OSes.
7915 ;;
7916
7917 mingw* | cygwin* | pw32* | os2* | cegcc*)
7918 # This hack is so that the source file can tell whether it is being
7919 # built for inclusion in a dll (and should export symbols for example).
7920 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7921 # (--disable-auto-import) libraries
7922 lt_prog_compiler_pic='-DDLL_EXPORT'
7923 ;;
7924
7925 darwin* | rhapsody*)
7926 # PIC is the default on this platform
7927 # Common symbols not allowed in MH_DYLIB files
7928 lt_prog_compiler_pic='-fno-common'
7929 ;;
7930
7931 hpux*)
7932 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7933 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7934 # sets the default TLS model and affects inlining.
7935 case $host_cpu in
7936 hppa*64*)
7937 # +Z the default
7938 ;;
7939 *)
7940 lt_prog_compiler_pic='-fPIC'
7941 ;;
7942 esac
7943 ;;
7944
7945 interix[3-9]*)
7946 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7947 # Instead, we relocate shared libraries at runtime.
7948 ;;
7949
7950 msdosdjgpp*)
7951 # Just because we use GCC doesn't mean we suddenly get shared libraries
7952 # on systems that don't support them.
7953 lt_prog_compiler_can_build_shared=no
7954 enable_shared=no
7955 ;;
7956
7957 *nto* | *qnx*)
7958 # QNX uses GNU C++, but need to define -shared option too, otherwise
7959 # it will coredump.
7960 lt_prog_compiler_pic='-fPIC -shared'
7961 ;;
7962
7963 sysv4*MP*)
7964 if test -d /usr/nec; then
7965 lt_prog_compiler_pic=-Kconform_pic
7966 fi
7967 ;;
7968
7969 *)
7970 lt_prog_compiler_pic='-fPIC'
7971 ;;
7972 esac
7973 else
7974 # PORTME Check for flag to pass linker flags through the system compiler.
7975 case $host_os in
7976 aix*)
7977 lt_prog_compiler_wl='-Wl,'
7978 if test "$host_cpu" = ia64; then
7979 # AIX 5 now supports IA64 processor
7980 lt_prog_compiler_static='-Bstatic'
7981 else
7982 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7983 fi
7984 ;;
7985
7986 mingw* | cygwin* | pw32* | os2* | cegcc*)
7987 # This hack is so that the source file can tell whether it is being
7988 # built for inclusion in a dll (and should export symbols for example).
7989 lt_prog_compiler_pic='-DDLL_EXPORT'
7990 ;;
7991
7992 hpux9* | hpux10* | hpux11*)
7993 lt_prog_compiler_wl='-Wl,'
7994 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7995 # not for PA HP-UX.
7996 case $host_cpu in
7997 hppa*64*|ia64*)
7998 # +Z the default
7999 ;;
8000 *)
8001 lt_prog_compiler_pic='+Z'
8002 ;;
8003 esac
8004 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8005 lt_prog_compiler_static='${wl}-a ${wl}archive'
8006 ;;
8007
8008 irix5* | irix6* | nonstopux*)
8009 lt_prog_compiler_wl='-Wl,'
8010 # PIC (with -KPIC) is the default.
8011 lt_prog_compiler_static='-non_shared'
8012 ;;
8013
8014 linux* | k*bsd*-gnu)
8015 case $cc_basename in
8016 # old Intel for x86_64 which still supported -KPIC.
8017 ecc*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-static'
8021 ;;
8022 # icc used to be incompatible with GCC.
8023 # ICC 10 doesn't accept -KPIC any more.
8024 icc* | ifort*)
8025 lt_prog_compiler_wl='-Wl,'
8026 lt_prog_compiler_pic='-fPIC'
8027 lt_prog_compiler_static='-static'
8028 ;;
8029 # Lahey Fortran 8.1.
8030 lf95*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='--shared'
8033 lt_prog_compiler_static='--static'
8034 ;;
8035 pgcc* | pgf77* | pgf90* | pgf95*)
8036 # Portland Group compilers (*not* the Pentium gcc compiler,
8037 # which looks to be a dead project)
8038 lt_prog_compiler_wl='-Wl,'
8039 lt_prog_compiler_pic='-fpic'
8040 lt_prog_compiler_static='-Bstatic'
8041 ;;
8042 ccc*)
8043 lt_prog_compiler_wl='-Wl,'
8044 # All Alpha code is PIC.
8045 lt_prog_compiler_static='-non_shared'
8046 ;;
8047 xl*)
8048 # IBM XL C 8.0/Fortran 10.1 on PPC
8049 lt_prog_compiler_wl='-Wl,'
8050 lt_prog_compiler_pic='-qpic'
8051 lt_prog_compiler_static='-qstaticlink'
8052 ;;
8053 *)
8054 case `$CC -V 2>&1 | sed 5q` in
8055 *Sun\ C*)
8056 # Sun C 5.9
8057 lt_prog_compiler_pic='-KPIC'
8058 lt_prog_compiler_static='-Bstatic'
8059 lt_prog_compiler_wl='-Wl,'
8060 ;;
8061 *Sun\ F*)
8062 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl=''
8066 ;;
8067 esac
8068 ;;
8069 esac
8070 ;;
8071
8072 newsos6)
8073 lt_prog_compiler_pic='-KPIC'
8074 lt_prog_compiler_static='-Bstatic'
8075 ;;
8076
8077 *nto* | *qnx*)
8078 # QNX uses GNU C++, but need to define -shared option too, otherwise
8079 # it will coredump.
8080 lt_prog_compiler_pic='-fPIC -shared'
8081 ;;
8082
8083 osf3* | osf4* | osf5*)
8084 lt_prog_compiler_wl='-Wl,'
8085 # All OSF/1 code is PIC.
8086 lt_prog_compiler_static='-non_shared'
8087 ;;
8088
8089 rdos*)
8090 lt_prog_compiler_static='-non_shared'
8091 ;;
8092
8093 solaris*)
8094 lt_prog_compiler_pic='-KPIC'
8095 lt_prog_compiler_static='-Bstatic'
8096 case $cc_basename in
8097 f77* | f90* | f95*)
8098 lt_prog_compiler_wl='-Qoption ld ';;
8099 *)
8100 lt_prog_compiler_wl='-Wl,';;
8101 esac
8102 ;;
8103
8104 sunos4*)
8105 lt_prog_compiler_wl='-Qoption ld '
8106 lt_prog_compiler_pic='-PIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 ;;
8109
8110 sysv4 | sysv4.2uw2* | sysv4.3*)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-KPIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115
8116 sysv4*MP*)
8117 if test -d /usr/nec ;then
8118 lt_prog_compiler_pic='-Kconform_pic'
8119 lt_prog_compiler_static='-Bstatic'
8120 fi
8121 ;;
8122
8123 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8124 lt_prog_compiler_wl='-Wl,'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 unicos*)
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_can_build_shared=no
8132 ;;
8133
8134 uts4*)
8135 lt_prog_compiler_pic='-pic'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138
8139 *)
8140 lt_prog_compiler_can_build_shared=no
8141 ;;
8142 esac
8143 fi
8144
8145 case $host_os in
8146 # For platforms which do not support PIC, -DPIC is meaningless:
8147 *djgpp*)
8148 lt_prog_compiler_pic=
8149 ;;
8150 *)
8151 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8152 ;;
8153 esac
8154 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8155 $as_echo "$lt_prog_compiler_pic" >&6; }
8156
8157
8158
8159
8160
8161
8162 #
8163 # Check to make sure the PIC flag actually works.
8164 #
8165 if test -n "$lt_prog_compiler_pic"; then
8166 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8167 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8168 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_prog_compiler_pic_works=no
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 # The option is referenced via a variable to avoid confusing sed.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
8184 (eval echo "\"\$as_me:8184: $lt_compile\"" >&5)
8185 (eval "$lt_compile" 2>conftest.err)
8186 ac_status=$?
8187 cat conftest.err >&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 if (exit $ac_status) && test -s "$ac_outfile"; then
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings other than the usual output.
8192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_pic_works=yes
8196 fi
8197 fi
8198 $RM conftest*
8199
8200 fi
8201 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8202 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8203
8204 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8205 case $lt_prog_compiler_pic in
8206 "" | " "*) ;;
8207 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8208 esac
8209 else
8210 lt_prog_compiler_pic=
8211 lt_prog_compiler_can_build_shared=no
8212 fi
8213
8214 fi
8215
8216
8217
8218
8219
8220
8221 #
8222 # Check to make sure the static flag actually works.
8223 #
8224 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8225 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8226 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8227 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8228 $as_echo_n "(cached) " >&6
8229 else
8230 lt_cv_prog_compiler_static_works=no
8231 save_LDFLAGS="$LDFLAGS"
8232 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8233 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8235 # The linker can only warn and ignore the option if not recognized
8236 # So say no if there are warnings
8237 if test -s conftest.err; then
8238 # Append any errors to the config.log.
8239 cat conftest.err 1>&5
8240 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242 if diff conftest.exp conftest.er2 >/dev/null; then
8243 lt_cv_prog_compiler_static_works=yes
8244 fi
8245 else
8246 lt_cv_prog_compiler_static_works=yes
8247 fi
8248 fi
8249 $RM -r conftest*
8250 LDFLAGS="$save_LDFLAGS"
8251
8252 fi
8253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8254 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8255
8256 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8257 :
8258 else
8259 lt_prog_compiler_static=
8260 fi
8261
8262
8263
8264
8265
8266
8267
8268 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8269 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8270 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_prog_compiler_c_o=no
8274 $RM -r conftest 2>/dev/null
8275 mkdir conftest
8276 cd conftest
8277 mkdir out
8278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8279
8280 lt_compiler_flag="-o out/conftest2.$ac_objext"
8281 # Insert the option either (1) after the last *FLAGS variable, or
8282 # (2) before a word containing "conftest.", or (3) at the end.
8283 # Note that $ac_compile itself does not contain backslashes and begins
8284 # with a dollar sign (not a hyphen), so the echo should work correctly.
8285 lt_compile=`echo "$ac_compile" | $SED \
8286 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8287 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8288 -e 's:$: $lt_compiler_flag:'`
8289 (eval echo "\"\$as_me:8289: $lt_compile\"" >&5)
8290 (eval "$lt_compile" 2>out/conftest.err)
8291 ac_status=$?
8292 cat out/conftest.err >&5
8293 echo "$as_me:8293: \$? = $ac_status" >&5
8294 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8295 then
8296 # The compiler can only warn and ignore the option if not recognized
8297 # So say no if there are warnings
8298 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8299 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8300 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8301 lt_cv_prog_compiler_c_o=yes
8302 fi
8303 fi
8304 chmod u+w . 2>&5
8305 $RM conftest*
8306 # SGI C++ compiler will create directory out/ii_files/ for
8307 # template instantiation
8308 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8309 $RM out/* && rmdir out
8310 cd ..
8311 $RM -r conftest
8312 $RM conftest*
8313
8314 fi
8315 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8316 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8317
8318
8319
8320
8321
8322
8323 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8324 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8325 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8326 $as_echo_n "(cached) " >&6
8327 else
8328 lt_cv_prog_compiler_c_o=no
8329 $RM -r conftest 2>/dev/null
8330 mkdir conftest
8331 cd conftest
8332 mkdir out
8333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8334
8335 lt_compiler_flag="-o out/conftest2.$ac_objext"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 lt_compile=`echo "$ac_compile" | $SED \
8341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8343 -e 's:$: $lt_compiler_flag:'`
8344 (eval echo "\"\$as_me:8344: $lt_compile\"" >&5)
8345 (eval "$lt_compile" 2>out/conftest.err)
8346 ac_status=$?
8347 cat out/conftest.err >&5
8348 echo "$as_me:8348: \$? = $ac_status" >&5
8349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8350 then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings
8353 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8356 lt_cv_prog_compiler_c_o=yes
8357 fi
8358 fi
8359 chmod u+w . 2>&5
8360 $RM conftest*
8361 # SGI C++ compiler will create directory out/ii_files/ for
8362 # template instantiation
8363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8364 $RM out/* && rmdir out
8365 cd ..
8366 $RM -r conftest
8367 $RM conftest*
8368
8369 fi
8370 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8371 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8372
8373
8374
8375
8376 hard_links="nottested"
8377 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8378 # do not overwrite the value of need_locks provided by the user
8379 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8380 $as_echo_n "checking if we can lock with hard links... " >&6; }
8381 hard_links=yes
8382 $RM conftest*
8383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8384 touch conftest.a
8385 ln conftest.a conftest.b 2>&5 || hard_links=no
8386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8387 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8388 $as_echo "$hard_links" >&6; }
8389 if test "$hard_links" = no; then
8390 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8391 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8392 need_locks=warn
8393 fi
8394 else
8395 need_locks=no
8396 fi
8397
8398
8399
8400
8401
8402
8403 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8405
8406 runpath_var=
8407 allow_undefined_flag=
8408 always_export_symbols=no
8409 archive_cmds=
8410 archive_expsym_cmds=
8411 compiler_needs_object=no
8412 enable_shared_with_static_runtimes=no
8413 export_dynamic_flag_spec=
8414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8415 hardcode_automatic=no
8416 hardcode_direct=no
8417 hardcode_direct_absolute=no
8418 hardcode_libdir_flag_spec=
8419 hardcode_libdir_flag_spec_ld=
8420 hardcode_libdir_separator=
8421 hardcode_minus_L=no
8422 hardcode_shlibpath_var=unsupported
8423 inherit_rpath=no
8424 link_all_deplibs=unknown
8425 module_cmds=
8426 module_expsym_cmds=
8427 old_archive_from_new_cmds=
8428 old_archive_from_expsyms_cmds=
8429 thread_safe_flag_spec=
8430 whole_archive_flag_spec=
8431 # include_expsyms should be a list of space-separated symbols to be *always*
8432 # included in the symbol list
8433 include_expsyms=
8434 # exclude_expsyms can be an extended regexp of symbols to exclude
8435 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8436 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8437 # as well as any symbol that contains `d'.
8438 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8439 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8440 # platforms (ab)use it in PIC code, but their linkers get confused if
8441 # the symbol is explicitly referenced. Since portable code cannot
8442 # rely on this symbol name, it's probably fine to never include it in
8443 # preloaded symbol tables.
8444 # Exclude shared library initialization/finalization symbols.
8445 extract_expsyms_cmds=
8446
8447 case $host_os in
8448 cygwin* | mingw* | pw32* | cegcc*)
8449 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8450 # When not using gcc, we currently assume that we are using
8451 # Microsoft Visual C++.
8452 if test "$GCC" != yes; then
8453 with_gnu_ld=no
8454 fi
8455 ;;
8456 interix*)
8457 # we just hope/assume this is gcc and not c89 (= MSVC++)
8458 with_gnu_ld=yes
8459 ;;
8460 openbsd*)
8461 with_gnu_ld=no
8462 ;;
8463 esac
8464
8465 ld_shlibs=yes
8466 if test "$with_gnu_ld" = yes; then
8467 # If archive_cmds runs LD, not CC, wlarc should be empty
8468 wlarc='${wl}'
8469
8470 # Set some defaults for GNU ld with shared library support. These
8471 # are reset later if shared libraries are not supported. Putting them
8472 # here allows them to be overridden if necessary.
8473 runpath_var=LD_RUN_PATH
8474 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8475 export_dynamic_flag_spec='${wl}--export-dynamic'
8476 # ancient GNU ld didn't support --whole-archive et. al.
8477 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8478 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8479 else
8480 whole_archive_flag_spec=
8481 fi
8482 supports_anon_versioning=no
8483 case `$LD -v 2>&1` in
8484 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8487 *\ 2.11.*) ;; # other 2.11 versions
8488 *) supports_anon_versioning=yes ;;
8489 esac
8490
8491 # See if GNU ld supports shared libraries.
8492 case $host_os in
8493 aix[3-9]*)
8494 # On AIX/PPC, the GNU linker is very broken
8495 if test "$host_cpu" != ia64; then
8496 ld_shlibs=no
8497 cat <<_LT_EOF 1>&2
8498
8499 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8500 *** to be unable to reliably create shared libraries on AIX.
8501 *** Therefore, libtool is disabling shared libraries support. If you
8502 *** really care for shared libraries, you may want to modify your PATH
8503 *** so that a non-GNU linker is found, and then restart.
8504
8505 _LT_EOF
8506 fi
8507 ;;
8508
8509 amigaos*)
8510 case $host_cpu in
8511 powerpc)
8512 # see comment about AmigaOS4 .so support
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8514 archive_expsym_cmds=''
8515 ;;
8516 m68k)
8517 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)'
8518 hardcode_libdir_flag_spec='-L$libdir'
8519 hardcode_minus_L=yes
8520 ;;
8521 esac
8522 ;;
8523
8524 beos*)
8525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8526 allow_undefined_flag=unsupported
8527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8528 # support --undefined. This deserves some investigation. FIXME
8529 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 else
8531 ld_shlibs=no
8532 fi
8533 ;;
8534
8535 cygwin* | mingw* | pw32* | cegcc*)
8536 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8537 # as there is no search path for DLLs.
8538 hardcode_libdir_flag_spec='-L$libdir'
8539 allow_undefined_flag=unsupported
8540 always_export_symbols=no
8541 enable_shared_with_static_runtimes=yes
8542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8543
8544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8546 # If the export-symbols file already is a .def file (1st line
8547 # is EXPORTS), use it as is; otherwise, prepend...
8548 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8549 cp $export_symbols $output_objdir/$soname.def;
8550 else
8551 echo EXPORTS > $output_objdir/$soname.def;
8552 cat $export_symbols >> $output_objdir/$soname.def;
8553 fi~
8554 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555 else
8556 ld_shlibs=no
8557 fi
8558 ;;
8559
8560 interix[3-9]*)
8561 hardcode_direct=no
8562 hardcode_shlibpath_var=no
8563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8564 export_dynamic_flag_spec='${wl}-E'
8565 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8566 # Instead, shared libraries are loaded at an image base (0x10000000 by
8567 # default) and relocated if they conflict, which is a slow very memory
8568 # consuming and fragmenting process. To avoid this, we pick a random,
8569 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8570 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8571 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8572 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'
8573 ;;
8574
8575 gnu* | linux* | tpf* | k*bsd*-gnu)
8576 tmp_diet=no
8577 if test "$host_os" = linux-dietlibc; then
8578 case $cc_basename in
8579 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8580 esac
8581 fi
8582 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8583 && test "$tmp_diet" = no
8584 then
8585 tmp_addflag=
8586 tmp_sharedflag='-shared'
8587 case $cc_basename,$host_cpu in
8588 pgcc*) # Portland Group C compiler
8589 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'
8590 tmp_addflag=' $pic_flag'
8591 ;;
8592 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8593 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'
8594 tmp_addflag=' $pic_flag -Mnomain' ;;
8595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8596 tmp_addflag=' -i_dynamic' ;;
8597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8598 tmp_addflag=' -i_dynamic -nofor_main' ;;
8599 ifc* | ifort*) # Intel Fortran compiler
8600 tmp_addflag=' -nofor_main' ;;
8601 lf95*) # Lahey Fortran 8.1
8602 whole_archive_flag_spec=
8603 tmp_sharedflag='--shared' ;;
8604 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8605 tmp_sharedflag='-qmkshrobj'
8606 tmp_addflag= ;;
8607 esac
8608 case `$CC -V 2>&1 | sed 5q` in
8609 *Sun\ C*) # Sun C 5.9
8610 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'
8611 compiler_needs_object=yes
8612 tmp_sharedflag='-G' ;;
8613 *Sun\ F*) # Sun Fortran 8.3
8614 tmp_sharedflag='-G' ;;
8615 esac
8616 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8617
8618 if test "x$supports_anon_versioning" = xyes; then
8619 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8621 echo "local: *; };" >> $output_objdir/$libname.ver~
8622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8623 fi
8624
8625 case $cc_basename in
8626 xlf*)
8627 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8628 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8629 hardcode_libdir_flag_spec=
8630 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8631 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8637 fi
8638 ;;
8639 esac
8640 else
8641 ld_shlibs=no
8642 fi
8643 ;;
8644
8645 netbsd*)
8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8647 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8648 wlarc=
8649 else
8650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8652 fi
8653 ;;
8654
8655 solaris*)
8656 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8657 ld_shlibs=no
8658 cat <<_LT_EOF 1>&2
8659
8660 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8661 *** create shared libraries on Solaris systems. Therefore, libtool
8662 *** is disabling shared libraries support. We urge you to upgrade GNU
8663 *** binutils to release 2.9.1 or newer. Another option is to modify
8664 *** your PATH or compiler configuration so that the native linker is
8665 *** used, and then restart.
8666
8667 _LT_EOF
8668 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8671 else
8672 ld_shlibs=no
8673 fi
8674 ;;
8675
8676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8677 case `$LD -v 2>&1` in
8678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8679 ld_shlibs=no
8680 cat <<_LT_EOF 1>&2
8681
8682 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8683 *** reliably create shared libraries on SCO systems. Therefore, libtool
8684 *** is disabling shared libraries support. We urge you to upgrade GNU
8685 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8686 *** your PATH or compiler configuration so that the native linker is
8687 *** used, and then restart.
8688
8689 _LT_EOF
8690 ;;
8691 *)
8692 # For security reasons, it is highly recommended that you always
8693 # use absolute paths for naming shared libraries, and exclude the
8694 # DT_RUNPATH tag from executables and libraries. But doing so
8695 # requires that you compile everything twice, which is a pain.
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704 esac
8705 ;;
8706
8707 sunos4*)
8708 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8709 wlarc=
8710 hardcode_direct=yes
8711 hardcode_shlibpath_var=no
8712 ;;
8713
8714 *)
8715 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8718 else
8719 ld_shlibs=no
8720 fi
8721 ;;
8722 esac
8723
8724 if test "$ld_shlibs" = no; then
8725 runpath_var=
8726 hardcode_libdir_flag_spec=
8727 export_dynamic_flag_spec=
8728 whole_archive_flag_spec=
8729 fi
8730 else
8731 # PORTME fill in a description of your system's linker (not GNU ld)
8732 case $host_os in
8733 aix3*)
8734 allow_undefined_flag=unsupported
8735 always_export_symbols=yes
8736 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'
8737 # Note: this linker hardcodes the directories in LIBPATH if there
8738 # are no directories specified by -L.
8739 hardcode_minus_L=yes
8740 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8741 # Neither direct hardcoding nor static linking is supported with a
8742 # broken collect2.
8743 hardcode_direct=unsupported
8744 fi
8745 ;;
8746
8747 aix[4-9]*)
8748 if test "$host_cpu" = ia64; then
8749 # On IA64, the linker does run time linking by default, so we don't
8750 # have to do anything special.
8751 aix_use_runtimelinking=no
8752 exp_sym_flag='-Bexport'
8753 no_entry_flag=""
8754 else
8755 # If we're using GNU nm, then we don't want the "-C" option.
8756 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8757 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8758 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'
8759 else
8760 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'
8761 fi
8762 aix_use_runtimelinking=no
8763
8764 # Test if we are trying to use run time linking or normal
8765 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8766 # need to do runtime linking.
8767 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8768 for ld_flag in $LDFLAGS; do
8769 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8770 aix_use_runtimelinking=yes
8771 break
8772 fi
8773 done
8774 ;;
8775 esac
8776
8777 exp_sym_flag='-bexport'
8778 no_entry_flag='-bnoentry'
8779 fi
8780
8781 # When large executables or shared objects are built, AIX ld can
8782 # have problems creating the table of contents. If linking a library
8783 # or program results in "error TOC overflow" add -mminimal-toc to
8784 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8785 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8786
8787 archive_cmds=''
8788 hardcode_direct=yes
8789 hardcode_direct_absolute=yes
8790 hardcode_libdir_separator=':'
8791 link_all_deplibs=yes
8792 file_list_spec='${wl}-f,'
8793
8794 if test "$GCC" = yes; then
8795 case $host_os in aix4.[012]|aix4.[012].*)
8796 # We only want to do this on AIX 4.2 and lower, the check
8797 # below for broken collect2 doesn't work under 4.3+
8798 collect2name=`${CC} -print-prog-name=collect2`
8799 if test -f "$collect2name" &&
8800 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8801 then
8802 # We have reworked collect2
8803 :
8804 else
8805 # We have old collect2
8806 hardcode_direct=unsupported
8807 # It fails to find uninstalled libraries when the uninstalled
8808 # path is not listed in the libpath. Setting hardcode_minus_L
8809 # to unsupported forces relinking
8810 hardcode_minus_L=yes
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_libdir_separator=
8813 fi
8814 ;;
8815 esac
8816 shared_flag='-shared'
8817 if test "$aix_use_runtimelinking" = yes; then
8818 shared_flag="$shared_flag "'${wl}-G'
8819 fi
8820 else
8821 # not using gcc
8822 if test "$host_cpu" = ia64; then
8823 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8824 # chokes on -Wl,-G. The following line is correct:
8825 shared_flag='-G'
8826 else
8827 if test "$aix_use_runtimelinking" = yes; then
8828 shared_flag='${wl}-G'
8829 else
8830 shared_flag='${wl}-bM:SRE'
8831 fi
8832 fi
8833 fi
8834
8835 export_dynamic_flag_spec='${wl}-bexpall'
8836 # It seems that -bexpall does not export symbols beginning with
8837 # underscore (_), so it is better to generate a list of symbols to export.
8838 always_export_symbols=yes
8839 if test "$aix_use_runtimelinking" = yes; then
8840 # Warning - without using the other runtime loading flags (-brtl),
8841 # -berok will link without error, but may produce a broken library.
8842 allow_undefined_flag='-berok'
8843 # Determine the default libpath from the value encoded in an
8844 # empty executable.
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851
8852 int
8853 main ()
8854 {
8855
8856 ;
8857 return 0;
8858 }
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (ac_try="$ac_link"
8862 case "(($ac_try" in
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8865 esac
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868 (eval "$ac_link") 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest$ac_exeext && {
8878 test "$cross_compiling" = yes ||
8879 $as_test_x conftest$ac_exeext
8880 }; then
8881
8882 lt_aix_libpath_sed='
8883 /Import File Strings/,/^$/ {
8884 /^0/ {
8885 s/^0 *\(.*\)$/\1/
8886 p
8887 }
8888 }'
8889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8890 # Check for a 64-bit object if we didn't find anything.
8891 if test -z "$aix_libpath"; then
8892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8893 fi
8894 else
8895 $as_echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8897
8898
8899 fi
8900
8901 rm -rf conftest.dSYM
8902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8903 conftest$ac_exeext conftest.$ac_ext
8904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 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"
8908 else
8909 if test "$host_cpu" = ia64; then
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 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"
8913 else
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922
8923 int
8924 main ()
8925 {
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (ac_try="$ac_link"
8933 case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936 esac
8937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8938 $as_echo "$ac_try_echo") >&5
8939 (eval "$ac_link") 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest$ac_exeext && {
8949 test "$cross_compiling" = yes ||
8950 $as_test_x conftest$ac_exeext
8951 }; then
8952
8953 lt_aix_libpath_sed='
8954 /Import File Strings/,/^$/ {
8955 /^0/ {
8956 s/^0 *\(.*\)$/\1/
8957 p
8958 }
8959 }'
8960 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8961 # Check for a 64-bit object if we didn't find anything.
8962 if test -z "$aix_libpath"; then
8963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8964 fi
8965 else
8966 $as_echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969
8970 fi
8971
8972 rm -rf conftest.dSYM
8973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8974 conftest$ac_exeext conftest.$ac_ext
8975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8976
8977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8978 # Warning - without using the other run time loading flags,
8979 # -berok will link without error, but may produce a broken library.
8980 no_undefined_flag=' ${wl}-bernotok'
8981 allow_undefined_flag=' ${wl}-berok'
8982 # Exported symbols can be pulled into shared objects from archives
8983 whole_archive_flag_spec='$convenience'
8984 archive_cmds_need_lc=yes
8985 # This is similar to how AIX traditionally builds its shared libraries.
8986 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'
8987 fi
8988 fi
8989 ;;
8990
8991 amigaos*)
8992 case $host_cpu in
8993 powerpc)
8994 # see comment about AmigaOS4 .so support
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds=''
8997 ;;
8998 m68k)
8999 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)'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_minus_L=yes
9002 ;;
9003 esac
9004 ;;
9005
9006 bsdi[45]*)
9007 export_dynamic_flag_spec=-rdynamic
9008 ;;
9009
9010 cygwin* | mingw* | pw32* | cegcc*)
9011 # When not using gcc, we currently assume that we are using
9012 # Microsoft Visual C++.
9013 # hardcode_libdir_flag_spec is actually meaningless, as there is
9014 # no search path for DLLs.
9015 hardcode_libdir_flag_spec=' '
9016 allow_undefined_flag=unsupported
9017 # Tell ltmain to make .lib files, not .a files.
9018 libext=lib
9019 # Tell ltmain to make .dll files, not .so files.
9020 shrext_cmds=".dll"
9021 # FIXME: Setting linknames here is a bad hack.
9022 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9023 # The linker will automatically build a .lib file if we build a DLL.
9024 old_archive_from_new_cmds='true'
9025 # FIXME: Should let the user specify the lib program.
9026 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9027 fix_srcfile_path='`cygpath -w "$srcfile"`'
9028 enable_shared_with_static_runtimes=yes
9029 ;;
9030
9031 darwin* | rhapsody*)
9032
9033
9034 archive_cmds_need_lc=no
9035 hardcode_direct=no
9036 hardcode_automatic=yes
9037 hardcode_shlibpath_var=unsupported
9038 whole_archive_flag_spec=''
9039 link_all_deplibs=yes
9040 allow_undefined_flag="$_lt_dar_allow_undefined"
9041 case $cc_basename in
9042 ifort*) _lt_dar_can_shared=yes ;;
9043 *) _lt_dar_can_shared=$GCC ;;
9044 esac
9045 if test "$_lt_dar_can_shared" = "yes"; then
9046 output_verbose_link_cmd=echo
9047 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9048 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9049 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}"
9050 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}"
9051
9052 else
9053 ld_shlibs=no
9054 fi
9055
9056 ;;
9057
9058 dgux*)
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_shlibpath_var=no
9062 ;;
9063
9064 freebsd1*)
9065 ld_shlibs=no
9066 ;;
9067
9068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9069 # support. Future versions do this automatically, but an explicit c++rt0.o
9070 # does not break anything, and helps significantly (at the cost of a little
9071 # extra space).
9072 freebsd2.2*)
9073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9074 hardcode_libdir_flag_spec='-R$libdir'
9075 hardcode_direct=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9080 freebsd2*)
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9082 hardcode_direct=yes
9083 hardcode_minus_L=yes
9084 hardcode_shlibpath_var=no
9085 ;;
9086
9087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9088 freebsd* | dragonfly*)
9089 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9090 hardcode_libdir_flag_spec='-R$libdir'
9091 hardcode_direct=yes
9092 hardcode_shlibpath_var=no
9093 ;;
9094
9095 hpux9*)
9096 if test "$GCC" = yes; then
9097 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'
9098 else
9099 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'
9100 fi
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_separator=:
9103 hardcode_direct=yes
9104
9105 # hardcode_minus_L: Not really in the search PATH,
9106 # but as the default location of the library.
9107 hardcode_minus_L=yes
9108 export_dynamic_flag_spec='${wl}-E'
9109 ;;
9110
9111 hpux10*)
9112 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9113 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9114 else
9115 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9116 fi
9117 if test "$with_gnu_ld" = no; then
9118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119 hardcode_libdir_flag_spec_ld='+b $libdir'
9120 hardcode_libdir_separator=:
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 export_dynamic_flag_spec='${wl}-E'
9124 # hardcode_minus_L: Not really in the search PATH,
9125 # but as the default location of the library.
9126 hardcode_minus_L=yes
9127 fi
9128 ;;
9129
9130 hpux11*)
9131 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9132 case $host_cpu in
9133 hppa*64*)
9134 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135 ;;
9136 ia64*)
9137 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9138 ;;
9139 *)
9140 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 esac
9143 else
9144 case $host_cpu in
9145 hppa*64*)
9146 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147 ;;
9148 ia64*)
9149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9150 ;;
9151 *)
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153 ;;
9154 esac
9155 fi
9156 if test "$with_gnu_ld" = no; then
9157 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9158 hardcode_libdir_separator=:
9159
9160 case $host_cpu in
9161 hppa*64*|ia64*)
9162 hardcode_direct=no
9163 hardcode_shlibpath_var=no
9164 ;;
9165 *)
9166 hardcode_direct=yes
9167 hardcode_direct_absolute=yes
9168 export_dynamic_flag_spec='${wl}-E'
9169
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L=yes
9173 ;;
9174 esac
9175 fi
9176 ;;
9177
9178 irix5* | irix6* | nonstopux*)
9179 if test "$GCC" = yes; then
9180 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'
9181 # Try to use the -exported_symbol ld option, if it does not
9182 # work, assume that -exports_file does not work either and
9183 # implicitly export all symbols.
9184 save_LDFLAGS="$LDFLAGS"
9185 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 int foo(void) {}
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9191 case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194 esac
9195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9196 $as_echo "$ac_try_echo") >&5
9197 (eval "$ac_link") 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest$ac_exeext && {
9207 test "$cross_compiling" = yes ||
9208 $as_test_x conftest$ac_exeext
9209 }; then
9210 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'
9211
9212 else
9213 $as_echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216
9217 fi
9218
9219 rm -rf conftest.dSYM
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 conftest$ac_exeext conftest.$ac_ext
9222 LDFLAGS="$save_LDFLAGS"
9223 else
9224 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'
9225 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'
9226 fi
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 inherit_rpath=yes
9231 link_all_deplibs=yes
9232 ;;
9233
9234 netbsd*)
9235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9237 else
9238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9239 fi
9240 hardcode_libdir_flag_spec='-R$libdir'
9241 hardcode_direct=yes
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 newsos6)
9246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 hardcode_direct=yes
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249 hardcode_libdir_separator=:
9250 hardcode_shlibpath_var=no
9251 ;;
9252
9253 *nto* | *qnx*)
9254 ;;
9255
9256 openbsd*)
9257 if test -f /usr/libexec/ld.so; then
9258 hardcode_direct=yes
9259 hardcode_shlibpath_var=no
9260 hardcode_direct_absolute=yes
9261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9266 else
9267 case $host_os in
9268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-R$libdir'
9271 ;;
9272 *)
9273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9275 ;;
9276 esac
9277 fi
9278 else
9279 ld_shlibs=no
9280 fi
9281 ;;
9282
9283 os2*)
9284 hardcode_libdir_flag_spec='-L$libdir'
9285 hardcode_minus_L=yes
9286 allow_undefined_flag=unsupported
9287 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'
9288 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9289 ;;
9290
9291 osf3*)
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9295 else
9296 allow_undefined_flag=' -expect_unresolved \*'
9297 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'
9298 fi
9299 archive_cmds_need_lc='no'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9302 ;;
9303
9304 osf4* | osf5*) # as osf3* with the addition of -msym flag
9305 if test "$GCC" = yes; then
9306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9307 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'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 else
9310 allow_undefined_flag=' -expect_unresolved \*'
9311 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'
9312 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~
9313 $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'
9314
9315 # Both c and cxx compiler support -rpath directly
9316 hardcode_libdir_flag_spec='-rpath $libdir'
9317 fi
9318 archive_cmds_need_lc='no'
9319 hardcode_libdir_separator=:
9320 ;;
9321
9322 solaris*)
9323 no_undefined_flag=' -z defs'
9324 if test "$GCC" = yes; then
9325 wlarc='${wl}'
9326 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 else
9330 case `$CC -V 2>&1` in
9331 *"Compilers 5.0"*)
9332 wlarc=''
9333 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9336 ;;
9337 *)
9338 wlarc='${wl}'
9339 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9342 ;;
9343 esac
9344 fi
9345 hardcode_libdir_flag_spec='-R$libdir'
9346 hardcode_shlibpath_var=no
9347 case $host_os in
9348 solaris2.[0-5] | solaris2.[0-5].*) ;;
9349 *)
9350 # The compiler driver will combine and reorder linker options,
9351 # but understands `-z linker_flag'. GCC discards it without `$wl',
9352 # but is careful enough not to reorder.
9353 # Supported since Solaris 2.6 (maybe 2.5.1?)
9354 if test "$GCC" = yes; then
9355 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9356 else
9357 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9358 fi
9359 ;;
9360 esac
9361 link_all_deplibs=yes
9362 ;;
9363
9364 sunos4*)
9365 if test "x$host_vendor" = xsequent; then
9366 # Use $CC to link under sequent, because it throws in some extra .o
9367 # files that make .init and .fini sections work.
9368 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9369 else
9370 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9371 fi
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_direct=yes
9374 hardcode_minus_L=yes
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 sysv4)
9379 case $host_vendor in
9380 sni)
9381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382 hardcode_direct=yes # is this really true???
9383 ;;
9384 siemens)
9385 ## LD is ld it makes a PLAMLIB
9386 ## CC just makes a GrossModule.
9387 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9388 reload_cmds='$CC -r -o $output$reload_objs'
9389 hardcode_direct=no
9390 ;;
9391 motorola)
9392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9394 ;;
9395 esac
9396 runpath_var='LD_RUN_PATH'
9397 hardcode_shlibpath_var=no
9398 ;;
9399
9400 sysv4.3*)
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_shlibpath_var=no
9403 export_dynamic_flag_spec='-Bexport'
9404 ;;
9405
9406 sysv4*MP*)
9407 if test -d /usr/nec; then
9408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_shlibpath_var=no
9410 runpath_var=LD_RUN_PATH
9411 hardcode_runpath_var=yes
9412 ld_shlibs=yes
9413 fi
9414 ;;
9415
9416 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9417 no_undefined_flag='${wl}-z,text'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
9420 runpath_var='LD_RUN_PATH'
9421
9422 if test "$GCC" = yes; then
9423 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9424 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 else
9426 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9427 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 fi
9429 ;;
9430
9431 sysv5* | sco3.2v5* | sco5v6*)
9432 # Note: We can NOT use -z defs as we might desire, because we do not
9433 # link with -lc, and that would cause any symbols used from libc to
9434 # always be unresolved, which means just about no library would
9435 # ever link correctly. If we're not using GNU ld we use -z text
9436 # though, which does catch some bad symbols but isn't as heavy-handed
9437 # as -z defs.
9438 no_undefined_flag='${wl}-z,text'
9439 allow_undefined_flag='${wl}-z,nodefs'
9440 archive_cmds_need_lc=no
9441 hardcode_shlibpath_var=no
9442 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9443 hardcode_libdir_separator=':'
9444 link_all_deplibs=yes
9445 export_dynamic_flag_spec='${wl}-Bexport'
9446 runpath_var='LD_RUN_PATH'
9447
9448 if test "$GCC" = yes; then
9449 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 else
9452 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454 fi
9455 ;;
9456
9457 uts4*)
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_libdir_flag_spec='-L$libdir'
9460 hardcode_shlibpath_var=no
9461 ;;
9462
9463 *)
9464 ld_shlibs=no
9465 ;;
9466 esac
9467
9468 if test x$host_vendor = xsni; then
9469 case $host in
9470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9471 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 ;;
9473 esac
9474 fi
9475 fi
9476
9477 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9478 $as_echo "$ld_shlibs" >&6; }
9479 test "$ld_shlibs" = no && can_build_shared=no
9480
9481 with_gnu_ld=$with_gnu_ld
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 #
9498 # Do we need to explicitly link libc?
9499 #
9500 case "x$archive_cmds_need_lc" in
9501 x|xyes)
9502 # Assume -lc should be added
9503 archive_cmds_need_lc=yes
9504
9505 if test "$enable_shared" = yes && test "$GCC" = yes; then
9506 case $archive_cmds in
9507 *'~'*)
9508 # FIXME: we may have to deal with multi-command sequences.
9509 ;;
9510 '$CC '*)
9511 # Test whether the compiler implicitly links with -lc since on some
9512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9513 # to ld, don't add -lc before -lgcc.
9514 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9516 $RM conftest*
9517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9518
9519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520 (eval $ac_compile) 2>&5
9521 ac_status=$?
9522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } 2>conftest.err; then
9524 soname=conftest
9525 lib=conftest
9526 libobjs=conftest.$ac_objext
9527 deplibs=
9528 wl=$lt_prog_compiler_wl
9529 pic_flag=$lt_prog_compiler_pic
9530 compiler_flags=-v
9531 linker_flags=-v
9532 verstring=
9533 output_objdir=.
9534 libname=conftest
9535 lt_save_allow_undefined_flag=$allow_undefined_flag
9536 allow_undefined_flag=
9537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9538 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }
9542 then
9543 archive_cmds_need_lc=no
9544 else
9545 archive_cmds_need_lc=yes
9546 fi
9547 allow_undefined_flag=$lt_save_allow_undefined_flag
9548 else
9549 cat conftest.err 1>&5
9550 fi
9551 $RM conftest*
9552 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9553 $as_echo "$archive_cmds_need_lc" >&6; }
9554 ;;
9555 esac
9556 fi
9557 ;;
9558 esac
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
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9717 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9718
9719 if test "$GCC" = yes; then
9720 case $host_os in
9721 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9722 *) lt_awk_arg="/^libraries:/" ;;
9723 esac
9724 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9725 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9726 # if the path contains ";" then we assume it to be the separator
9727 # otherwise default to the standard path separator (i.e. ":") - it is
9728 # assumed that no part of a normal pathname contains ";" but that should
9729 # okay in the real world where ";" in dirpaths is itself problematic.
9730 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9731 else
9732 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9733 fi
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec=
9737 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9741 else
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9744 fi
9745 done
9746 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9747 BEGIN {RS=" "; FS="/|\n";} {
9748 lt_foo="";
9749 lt_count=0;
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9753 lt_count++;
9754 } else {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9757 } else {
9758 lt_count--;
9759 }
9760 }
9761 }
9762 }
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9765 }'`
9766 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9767 else
9768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9769 fi
9770 library_names_spec=
9771 libname_spec='lib$name'
9772 soname_spec=
9773 shrext_cmds=".so"
9774 postinstall_cmds=
9775 postuninstall_cmds=
9776 finish_cmds=
9777 finish_eval=
9778 shlibpath_var=
9779 shlibpath_overrides_runpath=unknown
9780 version_type=none
9781 dynamic_linker="$host_os ld.so"
9782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9783 need_lib_prefix=unknown
9784 hardcode_into_libs=no
9785
9786 # when you set need_version to no, make sure it does not cause -set_version
9787 # flags to be left without arguments
9788 need_version=unknown
9789
9790 case $host_os in
9791 aix3*)
9792 version_type=linux
9793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9794 shlibpath_var=LIBPATH
9795
9796 # AIX 3 has no versioning support, so we append a major version to the name.
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 ;;
9799
9800 aix[4-9]*)
9801 version_type=linux
9802 need_lib_prefix=no
9803 need_version=no
9804 hardcode_into_libs=yes
9805 if test "$host_cpu" = ia64; then
9806 # AIX 5 supports IA64
9807 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9808 shlibpath_var=LD_LIBRARY_PATH
9809 else
9810 # With GCC up to 2.95.x, collect2 would create an import file
9811 # for dependence libraries. The import file would start with
9812 # the line `#! .'. This would cause the generated library to
9813 # depend on `.', always an invalid library. This was fixed in
9814 # development snapshots of GCC prior to 3.0.
9815 case $host_os in
9816 aix4 | aix4.[01] | aix4.[01].*)
9817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9818 echo ' yes '
9819 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9820 :
9821 else
9822 can_build_shared=no
9823 fi
9824 ;;
9825 esac
9826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9827 # soname into executable. Probably we can add versioning support to
9828 # collect2, so additional links can be useful in future.
9829 if test "$aix_use_runtimelinking" = yes; then
9830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9831 # instead of lib<name>.a to let people know that these are not
9832 # typical AIX shared libraries.
9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9834 else
9835 # We preserve .a as extension for shared libraries through AIX4.2
9836 # and later when we are not doing run time linking.
9837 library_names_spec='${libname}${release}.a $libname.a'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 fi
9840 shlibpath_var=LIBPATH
9841 fi
9842 ;;
9843
9844 amigaos*)
9845 case $host_cpu in
9846 powerpc)
9847 # Since July 2007 AmigaOS4 officially supports .so libraries.
9848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9850 ;;
9851 m68k)
9852 library_names_spec='$libname.ixlibrary $libname.a'
9853 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9854 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'
9855 ;;
9856 esac
9857 ;;
9858
9859 beos*)
9860 library_names_spec='${libname}${shared_ext}'
9861 dynamic_linker="$host_os ld.so"
9862 shlibpath_var=LIBRARY_PATH
9863 ;;
9864
9865 bsdi[45]*)
9866 version_type=linux
9867 need_version=no
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 soname_spec='${libname}${release}${shared_ext}$major'
9870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9874 # the default ld.so.conf also contains /usr/contrib/lib and
9875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9876 # libtool to hard-code these into programs
9877 ;;
9878
9879 cygwin* | mingw* | pw32* | cegcc*)
9880 version_type=windows
9881 shrext_cmds=".dll"
9882 need_version=no
9883 need_lib_prefix=no
9884
9885 case $GCC,$host_os in
9886 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9887 library_names_spec='$libname.dll.a'
9888 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9889 postinstall_cmds='base_file=`basename \${file}`~
9890 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9891 dldir=$destdir/`dirname \$dlpath`~
9892 test -d \$dldir || mkdir -p \$dldir~
9893 $install_prog $dir/$dlname \$dldir/$dlname~
9894 chmod a+x \$dldir/$dlname~
9895 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9896 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9897 fi'
9898 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9899 dlpath=$dir/\$dldll~
9900 $RM \$dlpath'
9901 shlibpath_overrides_runpath=yes
9902
9903 case $host_os in
9904 cygwin*)
9905 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9906 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9907 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9908 ;;
9909 mingw* | cegcc*)
9910 # MinGW DLLs use traditional 'lib' prefix
9911 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9912 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9913 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9914 # It is most probably a Windows format PATH printed by
9915 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9916 # path with ; separators, and with drive letters. We can handle the
9917 # drive letters (cygwin fileutils understands them), so leave them,
9918 # especially as we might pass files found there to a mingw objdump,
9919 # which wouldn't understand a cygwinified path. Ahh.
9920 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9921 else
9922 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9923 fi
9924 ;;
9925 pw32*)
9926 # pw32 DLLs use 'pw' prefix rather than 'lib'
9927 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 ;;
9929 esac
9930 ;;
9931
9932 *)
9933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9934 ;;
9935 esac
9936 dynamic_linker='Win32 ld.exe'
9937 # FIXME: first we should search . and the directory the executable is in
9938 shlibpath_var=PATH
9939 ;;
9940
9941 darwin* | rhapsody*)
9942 dynamic_linker="$host_os dyld"
9943 version_type=darwin
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9947 soname_spec='${libname}${release}${major}$shared_ext'
9948 shlibpath_overrides_runpath=yes
9949 shlibpath_var=DYLD_LIBRARY_PATH
9950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9951
9952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9954 ;;
9955
9956 dgux*)
9957 version_type=linux
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 ;;
9964
9965 freebsd1*)
9966 dynamic_linker=no
9967 ;;
9968
9969 freebsd* | dragonfly*)
9970 # DragonFly does not have aout. When/if they implement a new
9971 # versioning mechanism, adjust this.
9972 if test -x /usr/bin/objformat; then
9973 objformat=`/usr/bin/objformat`
9974 else
9975 case $host_os in
9976 freebsd[123]*) objformat=aout ;;
9977 *) objformat=elf ;;
9978 esac
9979 fi
9980 version_type=freebsd-$objformat
9981 case $version_type in
9982 freebsd-elf*)
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 need_version=no
9985 need_lib_prefix=no
9986 ;;
9987 freebsd-*)
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9989 need_version=yes
9990 ;;
9991 esac
9992 shlibpath_var=LD_LIBRARY_PATH
9993 case $host_os in
9994 freebsd2*)
9995 shlibpath_overrides_runpath=yes
9996 ;;
9997 freebsd3.[01]* | freebsdelf3.[01]*)
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10000 ;;
10001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10003 shlibpath_overrides_runpath=no
10004 hardcode_into_libs=yes
10005 ;;
10006 *) # from 4.6 on, and DragonFly
10007 shlibpath_overrides_runpath=yes
10008 hardcode_into_libs=yes
10009 ;;
10010 esac
10011 ;;
10012
10013 gnu*)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 hardcode_into_libs=yes
10021 ;;
10022
10023 hpux9* | hpux10* | hpux11*)
10024 # Give a soname corresponding to the major version so that dld.sl refuses to
10025 # link against other versions.
10026 version_type=sunos
10027 need_lib_prefix=no
10028 need_version=no
10029 case $host_cpu in
10030 ia64*)
10031 shrext_cmds='.so'
10032 hardcode_into_libs=yes
10033 dynamic_linker="$host_os dld.so"
10034 shlibpath_var=LD_LIBRARY_PATH
10035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 if test "X$HPUX_IA64_MODE" = X32; then
10039 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10040 else
10041 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10042 fi
10043 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044 ;;
10045 hppa*64*)
10046 shrext_cmds='.sl'
10047 hardcode_into_libs=yes
10048 dynamic_linker="$host_os dld.sl"
10049 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10050 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10052 soname_spec='${libname}${release}${shared_ext}$major'
10053 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055 ;;
10056 *)
10057 shrext_cmds='.sl'
10058 dynamic_linker="$host_os dld.sl"
10059 shlibpath_var=SHLIB_PATH
10060 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 ;;
10064 esac
10065 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10066 postinstall_cmds='chmod 555 $lib'
10067 ;;
10068
10069 interix[3-9]*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10076 shlibpath_var=LD_LIBRARY_PATH
10077 shlibpath_overrides_runpath=no
10078 hardcode_into_libs=yes
10079 ;;
10080
10081 irix5* | irix6* | nonstopux*)
10082 case $host_os in
10083 nonstopux*) version_type=nonstopux ;;
10084 *)
10085 if test "$lt_cv_prog_gnu_ld" = yes; then
10086 version_type=linux
10087 else
10088 version_type=irix
10089 fi ;;
10090 esac
10091 need_lib_prefix=no
10092 need_version=no
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10095 case $host_os in
10096 irix5* | nonstopux*)
10097 libsuff= shlibsuff=
10098 ;;
10099 *)
10100 case $LD in # libtool.m4 will add one of these switches to LD
10101 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10102 libsuff= shlibsuff= libmagic=32-bit;;
10103 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10104 libsuff=32 shlibsuff=N32 libmagic=N32;;
10105 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10106 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10107 *) libsuff= shlibsuff= libmagic=never-match;;
10108 esac
10109 ;;
10110 esac
10111 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10112 shlibpath_overrides_runpath=no
10113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10115 hardcode_into_libs=yes
10116 ;;
10117
10118 # No shared lib support for Linux oldld, aout, or coff.
10119 linux*oldld* | linux*aout* | linux*coff*)
10120 dynamic_linker=no
10121 ;;
10122
10123 # This must be Linux ELF.
10124 linux* | k*bsd*-gnu)
10125 version_type=linux
10126 need_lib_prefix=no
10127 need_version=no
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10131 shlibpath_var=LD_LIBRARY_PATH
10132 shlibpath_overrides_runpath=no
10133 # Some binutils ld are patched to set DT_RUNPATH
10134 save_LDFLAGS=$LDFLAGS
10135 save_libdir=$libdir
10136 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10137 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144
10145 int
10146 main ()
10147 {
10148
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 rm -f conftest.$ac_objext conftest$ac_exeext
10154 if { (ac_try="$ac_link"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10158 esac
10159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160 $as_echo "$ac_try_echo") >&5
10161 (eval "$ac_link") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext && {
10171 test "$cross_compiling" = yes ||
10172 $as_test_x conftest$ac_exeext
10173 }; then
10174 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10175 shlibpath_overrides_runpath=yes
10176 fi
10177
10178 else
10179 $as_echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
10183 fi
10184
10185 rm -rf conftest.dSYM
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LDFLAGS=$save_LDFLAGS
10189 libdir=$save_libdir
10190
10191 # This implies no fast_install, which is unacceptable.
10192 # Some rework will be needed to allow for fast_install
10193 # before this can be enabled.
10194 hardcode_into_libs=yes
10195
10196 # Add ABI-specific directories to the system library path.
10197 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10198
10199 # Append ld.so.conf contents to the search path
10200 if test -f /etc/ld.so.conf; then
10201 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' ' '`
10202 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10203 fi
10204
10205 # We used to test for /lib/ld.so.1 and disable shared libraries on
10206 # powerpc, because MkLinux only supported shared libraries with the
10207 # GNU dynamic linker. Since this was broken with cross compilers,
10208 # most powerpc-linux boxes support dynamic linking these days and
10209 # people can always --disable-shared, the test was removed, and we
10210 # assume the GNU/Linux dynamic linker is in use.
10211 dynamic_linker='GNU/Linux ld.so'
10212 ;;
10213
10214 netbsd*)
10215 version_type=sunos
10216 need_lib_prefix=no
10217 need_version=no
10218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10221 dynamic_linker='NetBSD (a.out) ld.so'
10222 else
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10225 dynamic_linker='NetBSD ld.elf_so'
10226 fi
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 hardcode_into_libs=yes
10230 ;;
10231
10232 newsos6)
10233 version_type=linux
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 ;;
10238
10239 *nto* | *qnx*)
10240 version_type=qnx
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=no
10247 hardcode_into_libs=yes
10248 dynamic_linker='ldqnx.so'
10249 ;;
10250
10251 openbsd*)
10252 version_type=sunos
10253 sys_lib_dlsearch_path_spec="/usr/lib"
10254 need_lib_prefix=no
10255 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10256 case $host_os in
10257 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10258 *) need_version=no ;;
10259 esac
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10264 case $host_os in
10265 openbsd2.[89] | openbsd2.[89].*)
10266 shlibpath_overrides_runpath=no
10267 ;;
10268 *)
10269 shlibpath_overrides_runpath=yes
10270 ;;
10271 esac
10272 else
10273 shlibpath_overrides_runpath=yes
10274 fi
10275 ;;
10276
10277 os2*)
10278 libname_spec='$name'
10279 shrext_cmds=".dll"
10280 need_lib_prefix=no
10281 library_names_spec='$libname${shared_ext} $libname.a'
10282 dynamic_linker='OS/2 ld.exe'
10283 shlibpath_var=LIBPATH
10284 ;;
10285
10286 osf3* | osf4* | osf5*)
10287 version_type=osf
10288 need_lib_prefix=no
10289 need_version=no
10290 soname_spec='${libname}${release}${shared_ext}$major'
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 shlibpath_var=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10294 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10295 ;;
10296
10297 rdos*)
10298 dynamic_linker=no
10299 ;;
10300
10301 solaris*)
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10310 # ldd complains unless libraries are executable
10311 postinstall_cmds='chmod +x $lib'
10312 ;;
10313
10314 sunos4*)
10315 version_type=sunos
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 shlibpath_overrides_runpath=yes
10320 if test "$with_gnu_ld" = yes; then
10321 need_lib_prefix=no
10322 fi
10323 need_version=yes
10324 ;;
10325
10326 sysv4 | sysv4.3*)
10327 version_type=linux
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 case $host_vendor in
10332 sni)
10333 shlibpath_overrides_runpath=no
10334 need_lib_prefix=no
10335 runpath_var=LD_RUN_PATH
10336 ;;
10337 siemens)
10338 need_lib_prefix=no
10339 ;;
10340 motorola)
10341 need_lib_prefix=no
10342 need_version=no
10343 shlibpath_overrides_runpath=no
10344 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10345 ;;
10346 esac
10347 ;;
10348
10349 sysv4*MP*)
10350 if test -d /usr/nec ;then
10351 version_type=linux
10352 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10353 soname_spec='$libname${shared_ext}.$major'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 fi
10356 ;;
10357
10358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10359 version_type=freebsd-elf
10360 need_lib_prefix=no
10361 need_version=no
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10367 if test "$with_gnu_ld" = yes; then
10368 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10369 else
10370 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10371 case $host_os in
10372 sco3.2v5*)
10373 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374 ;;
10375 esac
10376 fi
10377 sys_lib_dlsearch_path_spec='/usr/lib'
10378 ;;
10379
10380 tpf*)
10381 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10382 version_type=linux
10383 need_lib_prefix=no
10384 need_version=no
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=no
10388 hardcode_into_libs=yes
10389 ;;
10390
10391 uts4*)
10392 version_type=linux
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 ;;
10397
10398 *)
10399 dynamic_linker=no
10400 ;;
10401 esac
10402 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10403 $as_echo "$dynamic_linker" >&6; }
10404 test "$dynamic_linker" = no && can_build_shared=no
10405
10406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10407 if test "$GCC" = yes; then
10408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10409 fi
10410
10411 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10412 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10413 fi
10414 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10415 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10416 fi
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
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10506 hardcode_action=
10507 if test -n "$hardcode_libdir_flag_spec" ||
10508 test -n "$runpath_var" ||
10509 test "X$hardcode_automatic" = "Xyes" ; then
10510
10511 # We can hardcode non-existent directories.
10512 if test "$hardcode_direct" != no &&
10513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10514 # have to relink, otherwise we might link with an installed library
10515 # when we should be linking with a yet-to-be-installed one
10516 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10517 test "$hardcode_minus_L" != no; then
10518 # Linking always hardcodes the temporary library directory.
10519 hardcode_action=relink
10520 else
10521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10522 hardcode_action=immediate
10523 fi
10524 else
10525 # We cannot hardcode anything, or else we can only hardcode existing
10526 # directories.
10527 hardcode_action=unsupported
10528 fi
10529 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10530 $as_echo "$hardcode_action" >&6; }
10531
10532 if test "$hardcode_action" = relink ||
10533 test "$inherit_rpath" = yes; then
10534 # Fast installation is not supported
10535 enable_fast_install=no
10536 elif test "$shlibpath_overrides_runpath" = yes ||
10537 test "$enable_shared" = no; then
10538 # Fast installation is not necessary
10539 enable_fast_install=needless
10540 fi
10541
10542
10543
10544
10545
10546
10547 if test "x$enable_dlopen" != xyes; then
10548 enable_dlopen=unknown
10549 enable_dlopen_self=unknown
10550 enable_dlopen_self_static=unknown
10551 else
10552 lt_cv_dlopen=no
10553 lt_cv_dlopen_libs=
10554
10555 case $host_os in
10556 beos*)
10557 lt_cv_dlopen="load_add_on"
10558 lt_cv_dlopen_libs=
10559 lt_cv_dlopen_self=yes
10560 ;;
10561
10562 mingw* | pw32* | cegcc*)
10563 lt_cv_dlopen="LoadLibrary"
10564 lt_cv_dlopen_libs=
10565 ;;
10566
10567 cygwin*)
10568 lt_cv_dlopen="dlopen"
10569 lt_cv_dlopen_libs=
10570 ;;
10571
10572 darwin*)
10573 # if libdl is installed we need to link against it
10574 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10575 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10576 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_lib_save_LIBS=$LIBS
10580 LIBS="-ldl $LIBS"
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char dlopen ();
10595 int
10596 main ()
10597 {
10598 return dlopen ();
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10608 esac
10609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10610 $as_echo "$ac_try_echo") >&5
10611 (eval "$ac_link") 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } && {
10618 test -z "$ac_c_werror_flag" ||
10619 test ! -s conftest.err
10620 } && test -s conftest$ac_exeext && {
10621 test "$cross_compiling" = yes ||
10622 $as_test_x conftest$ac_exeext
10623 }; then
10624 ac_cv_lib_dl_dlopen=yes
10625 else
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 ac_cv_lib_dl_dlopen=no
10630 fi
10631
10632 rm -rf conftest.dSYM
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10636 fi
10637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10639 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10641 else
10642
10643 lt_cv_dlopen="dyld"
10644 lt_cv_dlopen_libs=
10645 lt_cv_dlopen_self=yes
10646
10647 fi
10648
10649 ;;
10650
10651 *)
10652 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10653 $as_echo_n "checking for shl_load... " >&6; }
10654 if test "${ac_cv_func_shl_load+set}" = set; then
10655 $as_echo_n "(cached) " >&6
10656 else
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h. */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10665 #define shl_load innocuous_shl_load
10666
10667 /* System header to define __stub macros and hopefully few prototypes,
10668 which can conflict with char shl_load (); below.
10669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670 <limits.h> exists even on freestanding compilers. */
10671
10672 #ifdef __STDC__
10673 # include <limits.h>
10674 #else
10675 # include <assert.h>
10676 #endif
10677
10678 #undef shl_load
10679
10680 /* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 char shl_load ();
10687 /* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690 #if defined __stub_shl_load || defined __stub___shl_load
10691 choke me
10692 #endif
10693
10694 int
10695 main ()
10696 {
10697 return shl_load ();
10698 ;
10699 return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707 esac
10708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10709 $as_echo "$ac_try_echo") >&5
10710 (eval "$ac_link") 2>conftest.er1
10711 ac_status=$?
10712 grep -v '^ *+' conftest.er1 >conftest.err
10713 rm -f conftest.er1
10714 cat conftest.err >&5
10715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest$ac_exeext && {
10720 test "$cross_compiling" = yes ||
10721 $as_test_x conftest$ac_exeext
10722 }; then
10723 ac_cv_func_shl_load=yes
10724 else
10725 $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ac_cv_func_shl_load=no
10729 fi
10730
10731 rm -rf conftest.dSYM
10732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10733 conftest$ac_exeext conftest.$ac_ext
10734 fi
10735 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10736 $as_echo "$ac_cv_func_shl_load" >&6; }
10737 if test "x$ac_cv_func_shl_load" = x""yes; then
10738 lt_cv_dlopen="shl_load"
10739 else
10740 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10741 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10742 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldld $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753
10754 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */
10757 #ifdef __cplusplus
10758 extern "C"
10759 #endif
10760 char shl_load ();
10761 int
10762 main ()
10763 {
10764 return shl_load ();
10765 ;
10766 return 0;
10767 }
10768 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 ac_cv_lib_dld_shl_load=yes
10791 else
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 ac_cv_lib_dld_shl_load=no
10796 fi
10797
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10802 fi
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10804 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10805 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10807 else
10808 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10809 $as_echo_n "checking for dlopen... " >&6; }
10810 if test "${ac_cv_func_dlopen+set}" = set; then
10811 $as_echo_n "(cached) " >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10821 #define dlopen innocuous_dlopen
10822
10823 /* System header to define __stub macros and hopefully few prototypes,
10824 which can conflict with char dlopen (); below.
10825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10826 <limits.h> exists even on freestanding compilers. */
10827
10828 #ifdef __STDC__
10829 # include <limits.h>
10830 #else
10831 # include <assert.h>
10832 #endif
10833
10834 #undef dlopen
10835
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char dlopen ();
10843 /* The GNU C library defines this for functions which it implements
10844 to always fail with ENOSYS. Some functions are actually named
10845 something starting with __ and the normal name is an alias. */
10846 #if defined __stub_dlopen || defined __stub___dlopen
10847 choke me
10848 #endif
10849
10850 int
10851 main ()
10852 {
10853 return dlopen ();
10854 ;
10855 return 0;
10856 }
10857 _ACEOF
10858 rm -f conftest.$ac_objext conftest$ac_exeext
10859 if { (ac_try="$ac_link"
10860 case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10863 esac
10864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10865 $as_echo "$ac_try_echo") >&5
10866 (eval "$ac_link") 2>conftest.er1
10867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest$ac_exeext && {
10876 test "$cross_compiling" = yes ||
10877 $as_test_x conftest$ac_exeext
10878 }; then
10879 ac_cv_func_dlopen=yes
10880 else
10881 $as_echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884 ac_cv_func_dlopen=no
10885 fi
10886
10887 rm -rf conftest.dSYM
10888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10889 conftest$ac_exeext conftest.$ac_ext
10890 fi
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10892 $as_echo "$ac_cv_func_dlopen" >&6; }
10893 if test "x$ac_cv_func_dlopen" = x""yes; then
10894 lt_cv_dlopen="dlopen"
10895 else
10896 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10899 $as_echo_n "(cached) " >&6
10900 else
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-ldl $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h. */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10930 esac
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933 (eval "$ac_link") 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest$ac_exeext && {
10943 test "$cross_compiling" = yes ||
10944 $as_test_x conftest$ac_exeext
10945 }; then
10946 ac_cv_lib_dl_dlopen=yes
10947 else
10948 $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_lib_dl_dlopen=no
10952 fi
10953
10954 rm -rf conftest.dSYM
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10957 LIBS=$ac_check_lib_save_LIBS
10958 fi
10959 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10960 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10961 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10963 else
10964 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10965 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10966 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10967 $as_echo_n "(cached) " >&6
10968 else
10969 ac_check_lib_save_LIBS=$LIBS
10970 LIBS="-lsvld $LIBS"
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10985 int
10986 main ()
10987 {
10988 return dlopen ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000 $as_echo "$ac_try_echo") >&5
11001 (eval "$ac_link") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext && {
11011 test "$cross_compiling" = yes ||
11012 $as_test_x conftest$ac_exeext
11013 }; then
11014 ac_cv_lib_svld_dlopen=yes
11015 else
11016 $as_echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ac_cv_lib_svld_dlopen=no
11020 fi
11021
11022 rm -rf conftest.dSYM
11023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11026 fi
11027 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11028 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11029 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11031 else
11032 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11033 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11034 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11035 $as_echo_n "(cached) " >&6
11036 else
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-ldld $LIBS"
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char dld_link ();
11053 int
11054 main ()
11055 {
11056 return dld_link ();
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066 esac
11067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11068 $as_echo "$ac_try_echo") >&5
11069 (eval "$ac_link") 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } && {
11076 test -z "$ac_c_werror_flag" ||
11077 test ! -s conftest.err
11078 } && test -s conftest$ac_exeext && {
11079 test "$cross_compiling" = yes ||
11080 $as_test_x conftest$ac_exeext
11081 }; then
11082 ac_cv_lib_dld_dld_link=yes
11083 else
11084 $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_cv_lib_dld_dld_link=no
11088 fi
11089
11090 rm -rf conftest.dSYM
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LIBS=$ac_check_lib_save_LIBS
11094 fi
11095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11096 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11097 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11098 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11099 fi
11100
11101
11102 fi
11103
11104
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116 ;;
11117 esac
11118
11119 if test "x$lt_cv_dlopen" != xno; then
11120 enable_dlopen=yes
11121 else
11122 enable_dlopen=no
11123 fi
11124
11125 case $lt_cv_dlopen in
11126 dlopen)
11127 save_CPPFLAGS="$CPPFLAGS"
11128 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11129
11130 save_LDFLAGS="$LDFLAGS"
11131 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11132
11133 save_LIBS="$LIBS"
11134 LIBS="$lt_cv_dlopen_libs $LIBS"
11135
11136 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11137 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11138 if test "${lt_cv_dlopen_self+set}" = set; then
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test "$cross_compiling" = yes; then :
11142 lt_cv_dlopen_self=cross
11143 else
11144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145 lt_status=$lt_dlunknown
11146 cat > conftest.$ac_ext <<_LT_EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11149
11150 #if HAVE_DLFCN_H
11151 #include <dlfcn.h>
11152 #endif
11153
11154 #include <stdio.h>
11155
11156 #ifdef RTLD_GLOBAL
11157 # define LT_DLGLOBAL RTLD_GLOBAL
11158 #else
11159 # ifdef DL_GLOBAL
11160 # define LT_DLGLOBAL DL_GLOBAL
11161 # else
11162 # define LT_DLGLOBAL 0
11163 # endif
11164 #endif
11165
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167 find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11169 # ifdef RTLD_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11171 # else
11172 # ifdef DL_LAZY
11173 # define LT_DLLAZY_OR_NOW DL_LAZY
11174 # else
11175 # ifdef RTLD_NOW
11176 # define LT_DLLAZY_OR_NOW RTLD_NOW
11177 # else
11178 # ifdef DL_NOW
11179 # define LT_DLLAZY_OR_NOW DL_NOW
11180 # else
11181 # define LT_DLLAZY_OR_NOW 0
11182 # endif
11183 # endif
11184 # endif
11185 # endif
11186 #endif
11187
11188 void fnord() { int i=42;}
11189 int main ()
11190 {
11191 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11192 int status = $lt_dlunknown;
11193
11194 if (self)
11195 {
11196 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11197 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 /* dlclose (self); */
11199 }
11200 else
11201 puts (dlerror ());
11202
11203 return status;
11204 }
11205 _LT_EOF
11206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11207 (eval $ac_link) 2>&5
11208 ac_status=$?
11209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11211 (./conftest; exit; ) >&5 2>/dev/null
11212 lt_status=$?
11213 case x$lt_status in
11214 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11215 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11216 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11217 esac
11218 else :
11219 # compilation failed
11220 lt_cv_dlopen_self=no
11221 fi
11222 fi
11223 rm -fr conftest*
11224
11225
11226 fi
11227 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11228 $as_echo "$lt_cv_dlopen_self" >&6; }
11229
11230 if test "x$lt_cv_dlopen_self" = xyes; then
11231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11232 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11233 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11234 if test "${lt_cv_dlopen_self_static+set}" = set; then
11235 $as_echo_n "(cached) " >&6
11236 else
11237 if test "$cross_compiling" = yes; then :
11238 lt_cv_dlopen_self_static=cross
11239 else
11240 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11241 lt_status=$lt_dlunknown
11242 cat > conftest.$ac_ext <<_LT_EOF
11243 #line 11243 "configure"
11244 #include "confdefs.h"
11245
11246 #if HAVE_DLFCN_H
11247 #include <dlfcn.h>
11248 #endif
11249
11250 #include <stdio.h>
11251
11252 #ifdef RTLD_GLOBAL
11253 # define LT_DLGLOBAL RTLD_GLOBAL
11254 #else
11255 # ifdef DL_GLOBAL
11256 # define LT_DLGLOBAL DL_GLOBAL
11257 # else
11258 # define LT_DLGLOBAL 0
11259 # endif
11260 #endif
11261
11262 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11263 find out it does not work in some platform. */
11264 #ifndef LT_DLLAZY_OR_NOW
11265 # ifdef RTLD_LAZY
11266 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11267 # else
11268 # ifdef DL_LAZY
11269 # define LT_DLLAZY_OR_NOW DL_LAZY
11270 # else
11271 # ifdef RTLD_NOW
11272 # define LT_DLLAZY_OR_NOW RTLD_NOW
11273 # else
11274 # ifdef DL_NOW
11275 # define LT_DLLAZY_OR_NOW DL_NOW
11276 # else
11277 # define LT_DLLAZY_OR_NOW 0
11278 # endif
11279 # endif
11280 # endif
11281 # endif
11282 #endif
11283
11284 void fnord() { int i=42;}
11285 int main ()
11286 {
11287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11288 int status = $lt_dlunknown;
11289
11290 if (self)
11291 {
11292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11294 /* dlclose (self); */
11295 }
11296 else
11297 puts (dlerror ());
11298
11299 return status;
11300 }
11301 _LT_EOF
11302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11303 (eval $ac_link) 2>&5
11304 ac_status=$?
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11307 (./conftest; exit; ) >&5 2>/dev/null
11308 lt_status=$?
11309 case x$lt_status in
11310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11313 esac
11314 else :
11315 # compilation failed
11316 lt_cv_dlopen_self_static=no
11317 fi
11318 fi
11319 rm -fr conftest*
11320
11321
11322 fi
11323 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11324 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11325 fi
11326
11327 CPPFLAGS="$save_CPPFLAGS"
11328 LDFLAGS="$save_LDFLAGS"
11329 LIBS="$save_LIBS"
11330 ;;
11331 esac
11332
11333 case $lt_cv_dlopen_self in
11334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11335 *) enable_dlopen_self=unknown ;;
11336 esac
11337
11338 case $lt_cv_dlopen_self_static in
11339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11340 *) enable_dlopen_self_static=unknown ;;
11341 esac
11342 fi
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360 striplib=
11361 old_striplib=
11362 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11363 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11364 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11365 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11366 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11367 { $as_echo "$as_me:$LINENO: result: yes" >&5
11368 $as_echo "yes" >&6; }
11369 else
11370 # FIXME - insert some real tests, host_os isn't really good enough
11371 case $host_os in
11372 darwin*)
11373 if test -n "$STRIP" ; then
11374 striplib="$STRIP -x"
11375 old_striplib="$STRIP -S"
11376 { $as_echo "$as_me:$LINENO: result: yes" >&5
11377 $as_echo "yes" >&6; }
11378 else
11379 { $as_echo "$as_me:$LINENO: result: no" >&5
11380 $as_echo "no" >&6; }
11381 fi
11382 ;;
11383 *)
11384 { $as_echo "$as_me:$LINENO: result: no" >&5
11385 $as_echo "no" >&6; }
11386 ;;
11387 esac
11388 fi
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401 # Report which library types will actually be built
11402 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11403 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11404 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11405 $as_echo "$can_build_shared" >&6; }
11406
11407 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11408 $as_echo_n "checking whether to build shared libraries... " >&6; }
11409 test "$can_build_shared" = "no" && enable_shared=no
11410
11411 # On AIX, shared libraries and static libraries use the same namespace, and
11412 # are all built from PIC.
11413 case $host_os in
11414 aix3*)
11415 test "$enable_shared" = yes && enable_static=no
11416 if test -n "$RANLIB"; then
11417 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11418 postinstall_cmds='$RANLIB $lib'
11419 fi
11420 ;;
11421
11422 aix[4-9]*)
11423 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11424 test "$enable_shared" = yes && enable_static=no
11425 fi
11426 ;;
11427 esac
11428 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11429 $as_echo "$enable_shared" >&6; }
11430
11431 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11432 $as_echo_n "checking whether to build static libraries... " >&6; }
11433 # Make sure either enable_shared or enable_static is yes.
11434 test "$enable_shared" = yes || enable_static=yes
11435 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11436 $as_echo "$enable_static" >&6; }
11437
11438
11439
11440
11441 fi
11442 ac_ext=c
11443 ac_cpp='$CPP $CPPFLAGS'
11444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11447
11448 CC="$lt_save_CC"
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 ac_config_commands="$ac_config_commands libtool"
11463
11464
11465
11466
11467 # Only expand once:
11468
11469
11470
11471
11472 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11473 $as_echo_n "checking spl license... " >&6; }
11474 LICENSE=GPL
11475 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11476 $as_echo "$LICENSE" >&6; }
11477 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11478
11479
11480
11481
11482 RPM=rpm
11483 RPMBUILD=rpmbuild
11484
11485 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11486 $as_echo_n "checking whether $RPM is available... " >&6; }
11487 if tmp=$($RPM --version 2>/dev/null); then
11488
11489 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11490 HAVE_RPM=yes
11491 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11492 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11493
11494 else
11495
11496 HAVE_RPM=no
11497 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11498 $as_echo "$HAVE_RPM" >&6; }
11499
11500 fi
11501
11502
11503 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11504 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11505 if tmp=$($RPMBUILD --version 2>/dev/null); then
11506
11507 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11508 HAVE_RPMBUILD=yes
11509 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11510 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11511
11512 else
11513
11514 HAVE_RPMBUILD=no
11515 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11516 $as_echo "$HAVE_RPMBUILD" >&6; }
11517
11518 fi
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530 DPKG=dpkg
11531 DPKGBUILD=dpkg-buildpackage
11532
11533 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11534 $as_echo_n "checking whether $DPKG is available... " >&6; }
11535 if tmp=$($DPKG --version 2>/dev/null); then
11536
11537 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11538 HAVE_DPKG=yes
11539 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11540 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11541
11542 else
11543
11544 HAVE_DPKG=no
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11546 $as_echo "$HAVE_DPKG" >&6; }
11547
11548 fi
11549
11550
11551 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11552 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11553 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11554
11555 DPKGBUILD_VERSION=$(echo $tmp | \
11556 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11557 HAVE_DPKGBUILD=yes
11558 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11559 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11560
11561 else
11562
11563 HAVE_DPKGBUILD=no
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11565 $as_echo "$HAVE_DPKGBUILD" >&6; }
11566
11567 fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579 ALIEN=alien
11580
11581 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11582 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11583 if tmp=$($ALIEN --version 2>/dev/null); then
11584
11585 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11586 HAVE_ALIEN=yes
11587 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11588 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11589
11590 else
11591
11592 HAVE_ALIEN=no
11593 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11594 $as_echo "$HAVE_ALIEN" >&6; }
11595
11596 fi
11597
11598
11599
11600
11601
11602
11603
11604 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11605 $as_echo_n "checking linux distribution... " >&6; }
11606 if test -f /etc/redhat-release ; then
11607 VENDOR=redhat ;
11608 elif test -f /etc/fedora-release ; then
11609 VENDOR=fedora ;
11610 elif test -f /etc/lsb-release ; then
11611 VENDOR=ubuntu ;
11612 elif test -f /etc/debian_version ; then
11613 VENDOR=debian ;
11614 elif test -f /etc/SuSE-release ; then
11615 VENDOR=sles ;
11616 elif test -f /etc/slackware-version ; then
11617 VENDOR=slackware ;
11618 elif test -f /etc/gentoo-release ; then
11619 VENDOR=gentoo ;
11620 else
11621 VENDOR= ;
11622 fi
11623 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11624 $as_echo "$VENDOR" >&6; }
11625
11626
11627 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11628 $as_echo_n "checking default package type... " >&6; }
11629 case "$VENDOR" in
11630 fedora) DEFAULT_PACKAGE=rpm ;;
11631 redhat) DEFAULT_PACKAGE=rpm ;;
11632 sles) DEFAULT_PACKAGE=rpm ;;
11633 ubuntu) DEFAULT_PACKAGE=deb ;;
11634 debian) DEFAULT_PACKAGE=deb ;;
11635 slackware) DEFAULT_PACKAGE=tgz ;;
11636 *) DEFAULT_PACKAGE=rpm ;;
11637 esac
11638
11639 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11640 $as_echo "$DEFAULT_PACKAGE" >&6; }
11641
11642
11643
11644
11645 SPL_CONFIG=all
11646
11647 # Check whether --with-config was given.
11648 if test "${with_config+set}" = set; then
11649 withval=$with_config; SPL_CONFIG="$withval"
11650 fi
11651
11652
11653 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11654 $as_echo_n "checking spl config... " >&6; }
11655 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11656 $as_echo "$SPL_CONFIG" >&6; };
11657
11658
11659 case "$SPL_CONFIG" in
11660 kernel)
11661
11662
11663 # Check whether --with-linux was given.
11664 if test "${with_linux+set}" = set; then
11665 withval=$with_linux; kernelsrc="$withval"
11666 fi
11667
11668
11669
11670 # Check whether --with-linux-obj was given.
11671 if test "${with_linux_obj+set}" = set; then
11672 withval=$with_linux_obj; kernelbuild="$withval"
11673 fi
11674
11675
11676 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11677 $as_echo_n "checking kernel source directory... " >&6; }
11678 if test -z "$kernelsrc"; then
11679 if test -e "/lib/modules/$(uname -r)/source"; then
11680 headersdir="/lib/modules/$(uname -r)/source"
11681 sourcelink=$(readlink -f "$headersdir")
11682 elif test -e "/lib/modules/$(uname -r)/build"; then
11683 headersdir="/lib/modules/$(uname -r)/build"
11684 sourcelink=$(readlink -f "$headersdir")
11685 else
11686 sourcelink=$(ls -1d /usr/src/kernels/* \
11687 /usr/src/linux-* \
11688 2>/dev/null | grep -v obj | tail -1)
11689 fi
11690
11691 if test -n "$sourcelink" && test -e ${sourcelink}; then
11692 kernelsrc=`readlink -f ${sourcelink}`
11693 else
11694 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11695 $as_echo "Not found" >&6; }
11696 { { $as_echo "$as_me:$LINENO: error:
11697 *** Please make sure the kernel devel package for your distribution
11698 *** is installed then try again. If that fails you can specify the
11699 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11700 $as_echo "$as_me: error:
11701 *** Please make sure the kernel devel package for your distribution
11702 *** is installed then try again. If that fails you can specify the
11703 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11704 { (exit 1); exit 1; }; }
11705 fi
11706 else
11707 if test "$kernelsrc" = "NONE"; then
11708 kernsrcver=NONE
11709 fi
11710 fi
11711
11712 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11713 $as_echo "$kernelsrc" >&6; }
11714 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11715 $as_echo_n "checking kernel build directory... " >&6; }
11716 if test -z "$kernelbuild"; then
11717 if test -e "/lib/modules/$(uname -r)/build"; then
11718 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11719 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11720 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11721 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11722 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11723 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11724 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11725 else
11726 kernelbuild=${kernelsrc}
11727 fi
11728 fi
11729 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11730 $as_echo "$kernelbuild" >&6; }
11731
11732 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11733 $as_echo_n "checking kernel source version... " >&6; }
11734 utsrelease1=$kernelbuild/include/linux/version.h
11735 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11736 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11737 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11738 utsrelease=linux/version.h
11739 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11740 utsrelease=linux/utsrelease.h
11741 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11742 utsrelease=generated/utsrelease.h
11743 fi
11744
11745 if test "$utsrelease"; then
11746 kernsrcver=`(echo "#include <$utsrelease>";
11747 echo "kernsrcver=UTS_RELEASE") |
11748 cpp -I $kernelbuild/include |
11749 grep "^kernsrcver=" | cut -d \" -f 2`
11750
11751 if test -z "$kernsrcver"; then
11752 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11753 $as_echo "Not found" >&6; }
11754 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11755 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11756 { (exit 1); exit 1; }; }
11757 fi
11758 else
11759 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11760 $as_echo "Not found" >&6; }
11761 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11762 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11763 { (exit 1); exit 1; }; }
11764 fi
11765
11766 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11767 $as_echo "$kernsrcver" >&6; }
11768
11769 LINUX=${kernelsrc}
11770 LINUX_OBJ=${kernelbuild}
11771 LINUX_VERSION=${kernsrcver}
11772
11773
11774
11775
11776
11777
11778 modpost=$LINUX/scripts/Makefile.modpost
11779 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11780 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11781 if test -f "$modpost"; then
11782 if grep -q Modules.symvers $modpost; then
11783 LINUX_SYMBOLS=Modules.symvers
11784 else
11785 LINUX_SYMBOLS=Module.symvers
11786 fi
11787
11788 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11789 { { $as_echo "$as_me:$LINENO: error:
11790 *** Please make sure the kernel devel package for your distribution
11791 *** is installed. If your building with a custom kernel make sure the
11792 *** kernel is configured, built, and the '--with-linux=PATH' configure
11793 *** option refers to the location of the kernel source." >&5
11794 $as_echo "$as_me: error:
11795 *** Please make sure the kernel devel package for your distribution
11796 *** is installed. If your building with a custom kernel make sure the
11797 *** kernel is configured, built, and the '--with-linux=PATH' configure
11798 *** option refers to the location of the kernel source." >&2;}
11799 { (exit 1); exit 1; }; }
11800 fi
11801 else
11802 LINUX_SYMBOLS=NONE
11803 fi
11804 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11805 $as_echo "$LINUX_SYMBOLS" >&6; }
11806
11807
11808
11809
11810 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11811 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11812
11813
11814 cat confdefs.h - <<_ACEOF >conftest.c
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820
11821
11822 #include <linux/module.h>
11823
11824 int
11825 main (void)
11826 {
11827
11828 #ifndef CONFIG_PREEMPT
11829 #error CONFIG_PREEMPT not #defined
11830 #endif
11831
11832 ;
11833 return 0;
11834 }
11835
11836 _ACEOF
11837
11838
11839 rm -Rf build && mkdir -p build
11840 echo "obj-m := conftest.o" >build/Makefile
11841 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11843 (eval $ac_try) 2>&5
11844 ac_status=$?
11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
11852
11853 { $as_echo "$as_me:$LINENO: result: yes" >&5
11854 $as_echo "yes" >&6; }
11855 { { $as_echo "$as_me:$LINENO: error:
11856 *** Kernel built with CONFIG_PREEMPT which is not supported.
11857 ** You must rebuild your kernel without this option." >&5
11858 $as_echo "$as_me: error:
11859 *** Kernel built with CONFIG_PREEMPT which is not supported.
11860 ** You must rebuild your kernel without this option." >&2;}
11861 { (exit 1); exit 1; }; }
11862
11863 else
11864 $as_echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 { $as_echo "$as_me:$LINENO: result: no" >&5
11868 $as_echo "no" >&6; }
11869
11870
11871
11872
11873 fi
11874
11875 rm -Rf build
11876
11877
11878
11879
11880
11881 if test "${LINUX_OBJ}" != "${LINUX}"; then
11882 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11883 fi
11884
11885
11886 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11887
11888
11889
11890 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11891 $as_echo_n "checking whether debugging is enabled... " >&6; }
11892 # Check whether --enable-debug was given.
11893 if test "${enable_debug+set}" = set; then
11894 enableval=$enable_debug;
11895 else
11896 enable_debug=no
11897 fi
11898
11899
11900 if test "x$enable_debug" = xyes; then
11901
11902 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11903 DEBUG_CFLAGS="-DDEBUG -Werror"
11904
11905 else
11906
11907 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11908 DEBUG_CFLAGS="-DNDEBUG"
11909
11910 fi
11911
11912
11913
11914 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11915 $as_echo "$enable_debug" >&6; }
11916
11917
11918 # Check whether --enable-debug-kmem was given.
11919 if test "${enable_debug_kmem+set}" = set; then
11920 enableval=$enable_debug_kmem;
11921 else
11922 enable_debug_kmem=yes
11923 fi
11924
11925
11926 if test "x$enable_debug_kmem" = xyes; then
11927
11928 cat >>confdefs.h <<\_ACEOF
11929 #define DEBUG_KMEM 1
11930 _ACEOF
11931
11932 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11933 fi
11934
11935
11936 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11937 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11938 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11939 $as_echo "$enable_debug_kmem" >&6; }
11940
11941
11942 # Check whether --enable-debug-kmem-tracking was given.
11943 if test "${enable_debug_kmem_tracking+set}" = set; then
11944 enableval=$enable_debug_kmem_tracking;
11945 else
11946 enable_debug_kmem_tracking=no
11947 fi
11948
11949
11950 if test "x$enable_debug_kmem_tracking" = xyes; then
11951
11952 cat >>confdefs.h <<\_ACEOF
11953 #define DEBUG_KMEM_TRACKING 1
11954 _ACEOF
11955
11956 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11957 fi
11958
11959
11960 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11961 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11962 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11963 $as_echo "$enable_debug_kmem_tracking" >&6; }
11964
11965
11966 # Check whether --enable-atomic-spinlocks was given.
11967 if test "${enable_atomic_spinlocks+set}" = set; then
11968 enableval=$enable_atomic_spinlocks;
11969 else
11970 enable_atomic_spinlocks=check
11971 fi
11972
11973
11974
11975
11976 cat confdefs.h - <<_ACEOF >conftest.c
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11982
11983
11984 #include <asm/atomic.h>
11985
11986 int
11987 main (void)
11988 {
11989
11990 atomic64_t *ptr __attribute__ ((unused));
11991
11992 ;
11993 return 0;
11994 }
11995
11996 _ACEOF
11997
11998
11999 rm -Rf build && mkdir -p build
12000 echo "obj-m := conftest.o" >build/Makefile
12001 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12009 ac_status=$?
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012
12013 have_atomic64_t=yes
12014
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_ATOMIC64_T 1
12017 _ACEOF
12018
12019
12020 else
12021 $as_echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 have_atomic64_t=no
12025
12026
12027
12028 fi
12029
12030 rm -Rf build
12031
12032
12033
12034 if test "x$enable_atomic_spinlocks" = xcheck; then
12035
12036 if test "x$have_atomic64_t" = xyes; then
12037
12038 enable_atomic_spinlocks=no
12039
12040 else
12041
12042 enable_atomic_spinlocks=yes
12043
12044 fi
12045
12046
12047 fi
12048
12049
12050 if test "x$enable_atomic_spinlocks" = xyes; then
12051
12052
12053 cat >>confdefs.h <<\_ACEOF
12054 #define ATOMIC_SPINLOCK 1
12055 _ACEOF
12056
12057
12058 else
12059
12060 if test "x$have_atomic64_t" = xno; then
12061
12062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12064 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12065 See \`config.log' for more details." >&5
12066 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12067 See \`config.log' for more details." >&2;}
12068 { (exit 1); exit 1; }; }; }
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12077 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12078 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12079 $as_echo "$enable_atomic_spinlocks" >&6; }
12080
12081 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12082 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12083 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12084 $as_echo "$have_atomic64_t" >&6; }
12085
12086 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12087 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12088
12089
12090 cat confdefs.h - <<_ACEOF >conftest.c
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096
12097
12098 #include <asm/atomic.h>
12099 #include <asm/system.h>
12100
12101 int
12102 main (void)
12103 {
12104
12105 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12106
12107 ;
12108 return 0;
12109 }
12110
12111 _ACEOF
12112
12113
12114 rm -Rf build && mkdir -p build
12115 echo "obj-m := conftest.o" >build/Makefile
12116 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
12125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; }; then
12127
12128 { $as_echo "$as_me:$LINENO: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_ATOMIC64_CMPXCHG 1
12133 _ACEOF
12134
12135
12136 else
12137 $as_echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 { $as_echo "$as_me:$LINENO: result: no" >&5
12141 $as_echo "no" >&6; }
12142
12143
12144
12145 fi
12146
12147 rm -Rf build
12148
12149
12150
12151 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12152 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12153
12154
12155 cat confdefs.h - <<_ACEOF >conftest.c
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161
12162
12163 #include <asm/atomic.h>
12164
12165 int
12166 main (void)
12167 {
12168
12169 atomic64_xchg((atomic64_t *)NULL, 0);
12170
12171 ;
12172 return 0;
12173 }
12174
12175 _ACEOF
12176
12177
12178 rm -Rf build && mkdir -p build
12179 echo "obj-m := conftest.o" >build/Makefile
12180 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191
12192 { $as_echo "$as_me:$LINENO: result: yes" >&5
12193 $as_echo "yes" >&6; }
12194
12195 cat >>confdefs.h <<\_ACEOF
12196 #define HAVE_ATOMIC64_XCHG 1
12197 _ACEOF
12198
12199
12200 else
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12203
12204 { $as_echo "$as_me:$LINENO: result: no" >&5
12205 $as_echo "no" >&6; }
12206
12207
12208
12209 fi
12210
12211 rm -Rf build
12212
12213
12214
12215 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12216 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12217
12218
12219 cat confdefs.h - <<_ACEOF >conftest.c
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225
12226
12227 #include <linux/types.h>
12228
12229 int
12230 main (void)
12231 {
12232
12233 uintptr_t *ptr __attribute__ ((unused));
12234
12235 ;
12236 return 0;
12237 }
12238
12239 _ACEOF
12240
12241
12242 rm -Rf build && mkdir -p build
12243 echo "obj-m := conftest.o" >build/Makefile
12244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255
12256 { $as_echo "$as_me:$LINENO: result: yes" >&5
12257 $as_echo "yes" >&6; }
12258
12259 cat >>confdefs.h <<\_ACEOF
12260 #define HAVE_UINTPTR_T 1
12261 _ACEOF
12262
12263
12264 else
12265 $as_echo "$as_me: failed program was:" >&5
12266 sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 { $as_echo "$as_me:$LINENO: result: no" >&5
12269 $as_echo "no" >&6; }
12270
12271
12272
12273 fi
12274
12275 rm -Rf build
12276
12277
12278
12279 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12280 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12281
12282
12283 cat confdefs.h - <<_ACEOF >conftest.c
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289
12290
12291 #include <linux/workqueue.h>
12292
12293 int
12294 main (void)
12295 {
12296
12297 struct work_struct work __attribute__ ((unused));
12298 INIT_WORK(&work, NULL, NULL);
12299
12300 ;
12301 return 0;
12302 }
12303
12304 _ACEOF
12305
12306
12307 rm -Rf build && mkdir -p build
12308 echo "obj-m := conftest.o" >build/Makefile
12309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
12313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; }; then
12320
12321 { $as_echo "$as_me:$LINENO: result: yes" >&5
12322 $as_echo "yes" >&6; }
12323
12324 cat >>confdefs.h <<\_ACEOF
12325 #define HAVE_3ARGS_INIT_WORK 1
12326 _ACEOF
12327
12328
12329 else
12330 $as_echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12332
12333 { $as_echo "$as_me:$LINENO: result: no" >&5
12334 $as_echo "no" >&6; }
12335
12336
12337
12338 fi
12339
12340 rm -Rf build
12341
12342
12343
12344 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12345 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12346
12347
12348 cat confdefs.h - <<_ACEOF >conftest.c
12349 /* confdefs.h. */
12350 _ACEOF
12351 cat confdefs.h >>conftest.$ac_ext
12352 cat >>conftest.$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354
12355
12356 #include <linux/sysctl.h>
12357
12358 int
12359 main (void)
12360 {
12361
12362 (void) register_sysctl_table(NULL, 0);
12363
12364 ;
12365 return 0;
12366 }
12367
12368 _ACEOF
12369
12370
12371 rm -Rf build && mkdir -p build
12372 echo "obj-m := conftest.o" >build/Makefile
12373 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384
12385 { $as_echo "$as_me:$LINENO: result: yes" >&5
12386 $as_echo "yes" >&6; }
12387
12388 cat >>confdefs.h <<\_ACEOF
12389 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12390 _ACEOF
12391
12392
12393 else
12394 $as_echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 { $as_echo "$as_me:$LINENO: result: no" >&5
12398 $as_echo "no" >&6; }
12399
12400
12401
12402 fi
12403
12404 rm -Rf build
12405
12406
12407
12408
12409 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12410 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12411
12412
12413 cat confdefs.h - <<_ACEOF >conftest.c
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419
12420
12421 #include <linux/mm.h>
12422
12423 int
12424 main (void)
12425 {
12426
12427 return set_shrinker(DEFAULT_SEEKS, NULL);
12428
12429 ;
12430 return 0;
12431 }
12432
12433 _ACEOF
12434
12435
12436 rm -Rf build && mkdir -p build
12437 echo "obj-m := conftest.o" >build/Makefile
12438 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449
12450 { $as_echo "$as_me:$LINENO: result: yes" >&5
12451 $as_echo "yes" >&6; }
12452
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_SET_SHRINKER 1
12455 _ACEOF
12456
12457
12458 else
12459 $as_echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 { $as_echo "$as_me:$LINENO: result: no" >&5
12463 $as_echo "no" >&6; }
12464
12465
12466
12467 fi
12468
12469 rm -Rf build
12470
12471
12472
12473 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12474 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12475 tmp_flags="$EXTRA_KCFLAGS"
12476 EXTRA_KCFLAGS="-Werror"
12477
12478
12479 cat confdefs.h - <<_ACEOF >conftest.c
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485
12486
12487 #include <linux/mm.h>
12488
12489 int shrinker_cb(struct shrinker *, int, unsigned int);
12490
12491 int
12492 main (void)
12493 {
12494
12495 struct shrinker cache_shrinker = {
12496 .shrink = shrinker_cb,
12497 .seeks = DEFAULT_SEEKS,
12498 };
12499 register_shrinker(&cache_shrinker);
12500
12501 ;
12502 return 0;
12503 }
12504
12505 _ACEOF
12506
12507
12508 rm -Rf build && mkdir -p build
12509 echo "obj-m := conftest.o" >build/Makefile
12510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521
12522 { $as_echo "$as_me:$LINENO: result: yes" >&5
12523 $as_echo "yes" >&6; }
12524
12525 cat >>confdefs.h <<\_ACEOF
12526 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12527 _ACEOF
12528
12529
12530 else
12531 $as_echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 { $as_echo "$as_me:$LINENO: result: no" >&5
12535 $as_echo "no" >&6; }
12536
12537
12538
12539 fi
12540
12541 rm -Rf build
12542
12543
12544 EXTRA_KCFLAGS="$tmp_flags"
12545
12546 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12547 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12548
12549
12550 cat confdefs.h - <<_ACEOF >conftest.c
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12556
12557
12558 #include <linux/namei.h>
12559
12560 int
12561 main (void)
12562 {
12563
12564 struct nameidata nd __attribute__ ((unused));
12565
12566 nd.path.mnt = NULL;
12567 nd.path.dentry = NULL;
12568
12569 ;
12570 return 0;
12571 }
12572
12573 _ACEOF
12574
12575
12576 rm -Rf build && mkdir -p build
12577 echo "obj-m := conftest.o" >build/Makefile
12578 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591 $as_echo "yes" >&6; }
12592
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_PATH_IN_NAMEIDATA 1
12595 _ACEOF
12596
12597
12598 else
12599 $as_echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602 { $as_echo "$as_me:$LINENO: result: no" >&5
12603 $as_echo "no" >&6; }
12604
12605
12606
12607 fi
12608
12609 rm -Rf build
12610
12611
12612
12613
12614 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12615 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12616 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12617 $LINUX_OBJ/Module*.symvers 2>/dev/null
12618 rc=$?
12619 if test $rc -ne 0; then
12620 export=0
12621 for file in kernel/sched.c; do
12622 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12623 "$LINUX_OBJ/$file" 2>/dev/null
12624 rc=$?
12625 if test $rc -eq 0; then
12626 export=1
12627 break;
12628 fi
12629 done
12630 if test $export -eq 0; then
12631 { $as_echo "$as_me:$LINENO: result: no" >&5
12632 $as_echo "no" >&6; }
12633
12634 else
12635 { $as_echo "$as_me:$LINENO: result: yes" >&5
12636 $as_echo "yes" >&6; }
12637
12638 cat >>confdefs.h <<\_ACEOF
12639 #define HAVE_TASK_CURR 1
12640 _ACEOF
12641
12642 fi
12643 else
12644 { $as_echo "$as_me:$LINENO: result: yes" >&5
12645 $as_echo "yes" >&6; }
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_TASK_CURR 1
12649 _ACEOF
12650
12651 fi
12652
12653
12654 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12655 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12656
12657
12658 cat confdefs.h - <<_ACEOF >conftest.c
12659 /* confdefs.h. */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664
12665
12666 #include <linux/sysctl.h>
12667
12668 int
12669 main (void)
12670 {
12671
12672 #ifndef CTL_UNNUMBERED
12673 #error CTL_UNNUMBERED undefined
12674 #endif
12675
12676 ;
12677 return 0;
12678 }
12679
12680 _ACEOF
12681
12682
12683 rm -Rf build && mkdir -p build
12684 echo "obj-m := conftest.o" >build/Makefile
12685 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696
12697 { $as_echo "$as_me:$LINENO: result: yes" >&5
12698 $as_echo "yes" >&6; }
12699
12700 cat >>confdefs.h <<\_ACEOF
12701 #define HAVE_CTL_UNNUMBERED 1
12702 _ACEOF
12703
12704
12705 else
12706 $as_echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 { $as_echo "$as_me:$LINENO: result: no" >&5
12710 $as_echo "no" >&6; }
12711
12712
12713
12714 fi
12715
12716 rm -Rf build
12717
12718
12719
12720
12721 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12722 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12723
12724
12725 cat confdefs.h - <<_ACEOF >conftest.c
12726 /* confdefs.h. */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12731
12732
12733 #include <linux/sysctl.h>
12734
12735 int
12736 main (void)
12737 {
12738
12739 struct ctl_table ctl __attribute__ ((unused));
12740 ctl.ctl_name = 0;
12741
12742 ;
12743 return 0;
12744 }
12745
12746 _ACEOF
12747
12748
12749 rm -Rf build && mkdir -p build
12750 echo "obj-m := conftest.o" >build/Makefile
12751 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762
12763 { $as_echo "$as_me:$LINENO: result: yes" >&5
12764 $as_echo "yes" >&6; }
12765
12766 cat >>confdefs.h <<\_ACEOF
12767 #define HAVE_CTL_NAME 1
12768 _ACEOF
12769
12770
12771 else
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 { $as_echo "$as_me:$LINENO: result: no" >&5
12776 $as_echo "no" >&6; }
12777
12778
12779
12780 fi
12781
12782 rm -Rf build
12783
12784
12785
12786 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12787 $as_echo_n "checking whether fls64() is available... " >&6; }
12788
12789
12790 cat confdefs.h - <<_ACEOF >conftest.c
12791 /* confdefs.h. */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796
12797
12798 #include <linux/bitops.h>
12799
12800 int
12801 main (void)
12802 {
12803
12804 return fls64(0);
12805
12806 ;
12807 return 0;
12808 }
12809
12810 _ACEOF
12811
12812
12813 rm -Rf build && mkdir -p build
12814 echo "obj-m := conftest.o" >build/Makefile
12815 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12818 ac_status=$?
12819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826
12827 { $as_echo "$as_me:$LINENO: result: yes" >&5
12828 $as_echo "yes" >&6; }
12829
12830 cat >>confdefs.h <<\_ACEOF
12831 #define HAVE_FLS64 1
12832 _ACEOF
12833
12834
12835 else
12836 $as_echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839 { $as_echo "$as_me:$LINENO: result: no" >&5
12840 $as_echo "no" >&6; }
12841
12842
12843
12844 fi
12845
12846 rm -Rf build
12847
12848
12849
12850
12851 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12852 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12853 grep -q -E '[[:space:]]device_create[[:space:]]' \
12854 $LINUX_OBJ/Module*.symvers 2>/dev/null
12855 rc=$?
12856 if test $rc -ne 0; then
12857 export=0
12858 for file in drivers/base/core.c; do
12859 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12860 "$LINUX_OBJ/$file" 2>/dev/null
12861 rc=$?
12862 if test $rc -eq 0; then
12863 export=1
12864 break;
12865 fi
12866 done
12867 if test $export -eq 0; then
12868 { $as_echo "$as_me:$LINENO: result: no" >&5
12869 $as_echo "no" >&6; }
12870
12871 else
12872 { $as_echo "$as_me:$LINENO: result: yes" >&5
12873 $as_echo "yes" >&6; }
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_DEVICE_CREATE 1
12877 _ACEOF
12878
12879 fi
12880 else
12881 { $as_echo "$as_me:$LINENO: result: yes" >&5
12882 $as_echo "yes" >&6; }
12883
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_DEVICE_CREATE 1
12886 _ACEOF
12887
12888 fi
12889
12890
12891
12892 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12893 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12894 tmp_flags="$EXTRA_KCFLAGS"
12895 EXTRA_KCFLAGS="-Werror"
12896
12897
12898 cat confdefs.h - <<_ACEOF >conftest.c
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904
12905
12906 #include <linux/device.h>
12907
12908 int
12909 main (void)
12910 {
12911
12912 device_create(NULL, NULL, 0, NULL, "%d", 1);
12913
12914 ;
12915 return 0;
12916 }
12917
12918 _ACEOF
12919
12920
12921 rm -Rf build && mkdir -p build
12922 echo "obj-m := conftest.o" >build/Makefile
12923 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12925 (eval $ac_try) 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934
12935 { $as_echo "$as_me:$LINENO: result: yes" >&5
12936 $as_echo "yes" >&6; }
12937
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_5ARGS_DEVICE_CREATE 1
12940 _ACEOF
12941
12942
12943 else
12944 $as_echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 { $as_echo "$as_me:$LINENO: result: no" >&5
12948 $as_echo "no" >&6; }
12949
12950
12951
12952 fi
12953
12954 rm -Rf build
12955
12956
12957 EXTRA_KCFLAGS="$tmp_flags"
12958
12959
12960 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12961 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
12962 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12963 $LINUX_OBJ/Module*.symvers 2>/dev/null
12964 rc=$?
12965 if test $rc -ne 0; then
12966 export=0
12967 for file in drivers/base/class.c; do
12968 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12969 "$LINUX_OBJ/$file" 2>/dev/null
12970 rc=$?
12971 if test $rc -eq 0; then
12972 export=1
12973 break;
12974 fi
12975 done
12976 if test $export -eq 0; then
12977 { $as_echo "$as_me:$LINENO: result: no" >&5
12978 $as_echo "no" >&6; }
12979
12980 else
12981 { $as_echo "$as_me:$LINENO: result: yes" >&5
12982 $as_echo "yes" >&6; }
12983
12984 cat >>confdefs.h <<\_ACEOF
12985 #define HAVE_CLASS_DEVICE_CREATE 1
12986 _ACEOF
12987
12988 fi
12989 else
12990 { $as_echo "$as_me:$LINENO: result: yes" >&5
12991 $as_echo "yes" >&6; }
12992
12993 cat >>confdefs.h <<\_ACEOF
12994 #define HAVE_CLASS_DEVICE_CREATE 1
12995 _ACEOF
12996
12997 fi
12998
12999
13000
13001 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13002 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13003 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13004 $LINUX_OBJ/Module*.symvers 2>/dev/null
13005 rc=$?
13006 if test $rc -ne 0; then
13007 export=0
13008 for file in kernel/time.c; do
13009 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13010 "$LINUX_OBJ/$file" 2>/dev/null
13011 rc=$?
13012 if test $rc -eq 0; then
13013 export=1
13014 break;
13015 fi
13016 done
13017 if test $export -eq 0; then
13018 { $as_echo "$as_me:$LINENO: result: no" >&5
13019 $as_echo "no" >&6; }
13020
13021 else
13022 { $as_echo "$as_me:$LINENO: result: yes" >&5
13023 $as_echo "yes" >&6; }
13024
13025 cat >>confdefs.h <<\_ACEOF
13026 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13027 _ACEOF
13028
13029 fi
13030 else
13031 { $as_echo "$as_me:$LINENO: result: yes" >&5
13032 $as_echo "yes" >&6; }
13033
13034 cat >>confdefs.h <<\_ACEOF
13035 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13036 _ACEOF
13037
13038 fi
13039
13040
13041
13042 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13043 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13044
13045
13046 cat confdefs.h - <<_ACEOF >conftest.c
13047 /* confdefs.h. */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052
13053
13054 #include <linux/time.h>
13055 void set_normalized_timespec(struct timespec *ts,
13056 time_t sec, long nsec) { }
13057
13058 int
13059 main (void)
13060 {
13061
13062 ;
13063 return 0;
13064 }
13065
13066 _ACEOF
13067
13068
13069 rm -Rf build && mkdir -p build
13070 echo "obj-m := conftest.o" >build/Makefile
13071 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082
13083 { $as_echo "$as_me:$LINENO: result: no" >&5
13084 $as_echo "no" >&6; }
13085
13086 else
13087 $as_echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090 { $as_echo "$as_me:$LINENO: result: yes" >&5
13091 $as_echo "yes" >&6; }
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13095 _ACEOF
13096
13097
13098
13099
13100 fi
13101
13102 rm -Rf build
13103
13104
13105
13106
13107 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13108 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
13109
13110
13111 cat confdefs.h - <<_ACEOF >conftest.c
13112 /* confdefs.h. */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13117
13118
13119 #include <linux/time.h>
13120
13121 int
13122 main (void)
13123 {
13124
13125 struct timespec a = { 0 };
13126 struct timespec b = { 0 };
13127 struct timespec c __attribute__ ((unused));
13128 c = timespec_sub(a, b);
13129
13130 ;
13131 return 0;
13132 }
13133
13134 _ACEOF
13135
13136
13137 rm -Rf build && mkdir -p build
13138 echo "obj-m := conftest.o" >build/Makefile
13139 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13142 ac_status=$?
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13146 (eval $ac_try) 2>&5
13147 ac_status=$?
13148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; }; then
13150
13151 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_TIMESPEC_SUB 1
13156 _ACEOF
13157
13158
13159 else
13160 $as_echo "$as_me: failed program was:" >&5
13161 sed 's/^/| /' conftest.$ac_ext >&5
13162
13163 { $as_echo "$as_me:$LINENO: result: no" >&5
13164 $as_echo "no" >&6; }
13165
13166
13167
13168 fi
13169
13170 rm -Rf build
13171
13172
13173
13174
13175 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13176 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13177
13178
13179 cat confdefs.h - <<_ACEOF >conftest.c
13180 /* confdefs.h. */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185
13186
13187 #include <linux/utsname.h>
13188
13189 int
13190 main (void)
13191 {
13192
13193 struct new_utsname *a __attribute__ ((unused));
13194 a = init_utsname();
13195
13196 ;
13197 return 0;
13198 }
13199
13200 _ACEOF
13201
13202
13203 rm -Rf build && mkdir -p build
13204 echo "obj-m := conftest.o" >build/Makefile
13205 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13213 ac_status=$?
13214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216
13217 { $as_echo "$as_me:$LINENO: result: yes" >&5
13218 $as_echo "yes" >&6; }
13219
13220 cat >>confdefs.h <<\_ACEOF
13221 #define HAVE_INIT_UTSNAME 1
13222 _ACEOF
13223
13224
13225 else
13226 $as_echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 { $as_echo "$as_me:$LINENO: result: no" >&5
13230 $as_echo "no" >&6; }
13231
13232
13233
13234 fi
13235
13236 rm -Rf build
13237
13238
13239
13240
13241 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13242 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13243
13244
13245 cat confdefs.h - <<_ACEOF >conftest.c
13246 /* confdefs.h. */
13247 _ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251
13252
13253 #include <linux/fdtable.h>
13254
13255 int
13256 main (void)
13257 {
13258
13259 return 0;
13260
13261 ;
13262 return 0;
13263 }
13264
13265 _ACEOF
13266
13267
13268 rm -Rf build && mkdir -p build
13269 echo "obj-m := conftest.o" >build/Makefile
13270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281
13282
13283 cat >>confdefs.h <<\_ACEOF
13284 #define HAVE_FDTABLE_HEADER 1
13285 _ACEOF
13286
13287 { $as_echo "$as_me:$LINENO: result: yes" >&5
13288 $as_echo "yes" >&6; }
13289
13290
13291 else
13292 $as_echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13294
13295 { $as_echo "$as_me:$LINENO: result: no" >&5
13296 $as_echo "no" >&6; }
13297
13298
13299
13300
13301 fi
13302
13303 rm -Rf build
13304
13305
13306
13307
13308
13309 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13310 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13311
13312
13313 cat confdefs.h - <<_ACEOF >conftest.c
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319
13320
13321 #include <linux/sched.h>
13322 #include <linux/file.h>
13323 #ifdef HAVE_FDTABLE_HEADER
13324 #include <linux/fdtable.h>
13325 #endif
13326
13327 int
13328 main (void)
13329 {
13330
13331 struct files_struct *files = current->files;
13332 struct fdtable *fdt __attribute__ ((unused));
13333 fdt = files_fdtable(files);
13334
13335 ;
13336 return 0;
13337 }
13338
13339 _ACEOF
13340
13341
13342 rm -Rf build && mkdir -p build
13343 echo "obj-m := conftest.o" >build/Makefile
13344 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355
13356 { $as_echo "$as_me:$LINENO: result: yes" >&5
13357 $as_echo "yes" >&6; }
13358
13359 cat >>confdefs.h <<\_ACEOF
13360 #define HAVE_FILES_FDTABLE 1
13361 _ACEOF
13362
13363
13364 else
13365 $as_echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 { $as_echo "$as_me:$LINENO: result: no" >&5
13369 $as_echo "no" >&6; }
13370
13371
13372
13373 fi
13374
13375 rm -Rf build
13376
13377
13378
13379
13380 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13381 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13382
13383
13384 cat confdefs.h - <<_ACEOF >conftest.c
13385 /* confdefs.h. */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390
13391
13392 #include <linux/uaccess.h>
13393
13394 int
13395 main (void)
13396 {
13397
13398 return 0;
13399
13400 ;
13401 return 0;
13402 }
13403
13404 _ACEOF
13405
13406
13407 rm -Rf build && mkdir -p build
13408 echo "obj-m := conftest.o" >build/Makefile
13409 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420
13421
13422 cat >>confdefs.h <<\_ACEOF
13423 #define HAVE_UACCESS_HEADER 1
13424 _ACEOF
13425
13426 { $as_echo "$as_me:$LINENO: result: yes" >&5
13427 $as_echo "yes" >&6; }
13428
13429
13430 else
13431 $as_echo "$as_me: failed program was:" >&5
13432 sed 's/^/| /' conftest.$ac_ext >&5
13433
13434 { $as_echo "$as_me:$LINENO: result: no" >&5
13435 $as_echo "no" >&6; }
13436
13437
13438
13439
13440 fi
13441
13442 rm -Rf build
13443
13444
13445
13446
13447
13448 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13449 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13450
13451
13452 cat confdefs.h - <<_ACEOF >conftest.c
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458
13459
13460 #include <linux/slab.h>
13461
13462 int
13463 main (void)
13464 {
13465
13466 void *a __attribute__ ((unused));
13467 a = kmalloc_node(1, GFP_KERNEL, 0);
13468
13469 ;
13470 return 0;
13471 }
13472
13473 _ACEOF
13474
13475
13476 rm -Rf build && mkdir -p build
13477 echo "obj-m := conftest.o" >build/Makefile
13478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485 (eval $ac_try) 2>&5
13486 ac_status=$?
13487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; }; then
13489
13490 { $as_echo "$as_me:$LINENO: result: yes" >&5
13491 $as_echo "yes" >&6; }
13492
13493 cat >>confdefs.h <<\_ACEOF
13494 #define HAVE_KMALLOC_NODE 1
13495 _ACEOF
13496
13497
13498 else
13499 $as_echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13501
13502 { $as_echo "$as_me:$LINENO: result: no" >&5
13503 $as_echo "no" >&6; }
13504
13505
13506
13507 fi
13508
13509 rm -Rf build
13510
13511
13512
13513
13514 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13515 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13516 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13517 $LINUX_OBJ/Module*.symvers 2>/dev/null
13518 rc=$?
13519 if test $rc -ne 0; then
13520 export=0
13521 for file in ; do
13522 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13523 "$LINUX_OBJ/$file" 2>/dev/null
13524 rc=$?
13525 if test $rc -eq 0; then
13526 export=1
13527 break;
13528 fi
13529 done
13530 if test $export -eq 0; then
13531 { $as_echo "$as_me:$LINENO: result: no" >&5
13532 $as_echo "no" >&6; }
13533
13534 else
13535 { $as_echo "$as_me:$LINENO: result: yes" >&5
13536 $as_echo "yes" >&6; }
13537
13538 cat >>confdefs.h <<\_ACEOF
13539 #define HAVE_MONOTONIC_CLOCK 1
13540 _ACEOF
13541
13542 fi
13543 else
13544 { $as_echo "$as_me:$LINENO: result: yes" >&5
13545 $as_echo "yes" >&6; }
13546
13547 cat >>confdefs.h <<\_ACEOF
13548 #define HAVE_MONOTONIC_CLOCK 1
13549 _ACEOF
13550
13551 fi
13552
13553
13554
13555 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13556 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13557
13558
13559 cat confdefs.h - <<_ACEOF >conftest.c
13560 /* confdefs.h. */
13561 _ACEOF
13562 cat confdefs.h >>conftest.$ac_ext
13563 cat >>conftest.$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565
13566
13567 #include <linux/fs.h>
13568 #include <linux/mutex.h>
13569
13570 int
13571 main (void)
13572 {
13573
13574 struct inode i;
13575 mutex_init(&i.i_mutex);
13576
13577 ;
13578 return 0;
13579 }
13580
13581 _ACEOF
13582
13583
13584 rm -Rf build && mkdir -p build
13585 echo "obj-m := conftest.o" >build/Makefile
13586 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597
13598 { $as_echo "$as_me:$LINENO: result: yes" >&5
13599 $as_echo "yes" >&6; }
13600
13601 cat >>confdefs.h <<\_ACEOF
13602 #define HAVE_INODE_I_MUTEX 1
13603 _ACEOF
13604
13605
13606 else
13607 $as_echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13609
13610 { $as_echo "$as_me:$LINENO: result: no" >&5
13611 $as_echo "no" >&6; }
13612
13613
13614
13615 fi
13616
13617 rm -Rf build
13618
13619
13620
13621
13622 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13623 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13624
13625
13626 cat confdefs.h - <<_ACEOF >conftest.c
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632
13633
13634 #include <linux/mutex.h>
13635
13636 int
13637 main (void)
13638 {
13639
13640 struct mutex mtx __attribute__ ((unused));
13641 mtx.owner = NULL;
13642
13643 ;
13644 return 0;
13645 }
13646
13647 _ACEOF
13648
13649
13650 rm -Rf build && mkdir -p build
13651 echo "obj-m := conftest.o" >build/Makefile
13652 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13660 ac_status=$?
13661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13663
13664 { $as_echo "$as_me:$LINENO: result: yes" >&5
13665 $as_echo "yes" >&6; }
13666
13667 cat >>confdefs.h <<\_ACEOF
13668 #define HAVE_MUTEX_OWNER 1
13669 _ACEOF
13670
13671
13672 else
13673 $as_echo "$as_me: failed program was:" >&5
13674 sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 { $as_echo "$as_me:$LINENO: result: no" >&5
13677 $as_echo "no" >&6; }
13678
13679
13680
13681 fi
13682
13683 rm -Rf build
13684
13685
13686
13687
13688 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13689 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13690 tmp_flags="$EXTRA_KCFLAGS"
13691 EXTRA_KCFLAGS="-Werror"
13692
13693
13694 cat confdefs.h - <<_ACEOF >conftest.c
13695 /* confdefs.h. */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700
13701
13702 #include <linux/mutex.h>
13703
13704 int
13705 main (void)
13706 {
13707
13708 struct mutex mtx __attribute__ ((unused));
13709 mtx.owner = current;
13710
13711 ;
13712 return 0;
13713 }
13714
13715 _ACEOF
13716
13717
13718 rm -Rf build && mkdir -p build
13719 echo "obj-m := conftest.o" >build/Makefile
13720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13728 ac_status=$?
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731
13732 { $as_echo "$as_me:$LINENO: result: yes" >&5
13733 $as_echo "yes" >&6; }
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13737 _ACEOF
13738
13739
13740 else
13741 $as_echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744 { $as_echo "$as_me:$LINENO: result: no" >&5
13745 $as_echo "no" >&6; }
13746
13747
13748
13749 fi
13750
13751 rm -Rf build
13752
13753
13754 EXTRA_KCFLAGS="$tmp_flags"
13755
13756
13757 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13758 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13759
13760
13761 cat confdefs.h - <<_ACEOF >conftest.c
13762 /* confdefs.h. */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767
13768
13769 #include <linux/mutex.h>
13770
13771 int
13772 main (void)
13773 {
13774
13775 struct mutex mutex;
13776 mutex_init(&mutex);
13777 mutex_lock_nested(&mutex, 0);
13778
13779 ;
13780 return 0;
13781 }
13782
13783 _ACEOF
13784
13785
13786 rm -Rf build && mkdir -p build
13787 echo "obj-m := conftest.o" >build/Makefile
13788 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799
13800 { $as_echo "$as_me:$LINENO: result: yes" >&5
13801 $as_echo "yes" >&6; }
13802
13803 cat >>confdefs.h <<\_ACEOF
13804 #define HAVE_MUTEX_LOCK_NESTED 1
13805 _ACEOF
13806
13807
13808 else
13809 $as_echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 { $as_echo "$as_me:$LINENO: result: no" >&5
13813 $as_echo "no" >&6; }
13814
13815
13816
13817 fi
13818
13819 rm -Rf build
13820
13821
13822
13823
13824 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13825 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13826
13827
13828 cat confdefs.h - <<_ACEOF >conftest.c
13829 /* confdefs.h. */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h. */
13834
13835
13836 #include <linux/smp.h>
13837
13838 int
13839 main (void)
13840 {
13841
13842 on_each_cpu(NULL, NULL, 0);
13843
13844 ;
13845 return 0;
13846 }
13847
13848 _ACEOF
13849
13850
13851 rm -Rf build && mkdir -p build
13852 echo "obj-m := conftest.o" >build/Makefile
13853 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864
13865 { $as_echo "$as_me:$LINENO: result: yes" >&5
13866 $as_echo "yes" >&6; }
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_3ARGS_ON_EACH_CPU 1
13870 _ACEOF
13871
13872
13873 else
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13876
13877 { $as_echo "$as_me:$LINENO: result: no" >&5
13878 $as_echo "no" >&6; }
13879
13880
13881
13882 fi
13883
13884 rm -Rf build
13885
13886
13887
13888
13889 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13890 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13891 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13892 $LINUX_OBJ/Module*.symvers 2>/dev/null
13893 rc=$?
13894 if test $rc -ne 0; then
13895 export=0
13896 for file in ; do
13897 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13898 "$LINUX_OBJ/$file" 2>/dev/null
13899 rc=$?
13900 if test $rc -eq 0; then
13901 export=1
13902 break;
13903 fi
13904 done
13905 if test $export -eq 0; then
13906 { $as_echo "$as_me:$LINENO: result: no" >&5
13907 $as_echo "no" >&6; }
13908
13909 else
13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
13911 $as_echo "yes" >&6; }
13912
13913 cat >>confdefs.h <<\_ACEOF
13914 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13915 _ACEOF
13916
13917 fi
13918 else
13919 { $as_echo "$as_me:$LINENO: result: yes" >&5
13920 $as_echo "yes" >&6; }
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13924 _ACEOF
13925
13926 fi
13927
13928
13929
13930 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13931 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13932 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13933 $LINUX_OBJ/Module*.symvers 2>/dev/null
13934 rc=$?
13935 if test $rc -ne 0; then
13936 export=0
13937 for file in ; do
13938 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13939 "$LINUX_OBJ/$file" 2>/dev/null
13940 rc=$?
13941 if test $rc -eq 0; then
13942 export=1
13943 break;
13944 fi
13945 done
13946 if test $export -eq 0; then
13947 { $as_echo "$as_me:$LINENO: result: no" >&5
13948 $as_echo "no" >&6; }
13949
13950 else
13951 { $as_echo "$as_me:$LINENO: result: yes" >&5
13952 $as_echo "yes" >&6; }
13953
13954 cat >>confdefs.h <<\_ACEOF
13955 #define HAVE_GET_VMALLOC_INFO 1
13956 _ACEOF
13957
13958 fi
13959 else
13960 { $as_echo "$as_me:$LINENO: result: yes" >&5
13961 $as_echo "yes" >&6; }
13962
13963 cat >>confdefs.h <<\_ACEOF
13964 #define HAVE_GET_VMALLOC_INFO 1
13965 _ACEOF
13966
13967 fi
13968
13969
13970
13971 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13972 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
13973 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13974 rc=$?
13975 if test $rc -eq 0; then
13976 { $as_echo "$as_me:$LINENO: result: yes" >&5
13977 $as_echo "yes" >&6; }
13978
13979 cat >>confdefs.h <<\_ACEOF
13980 #define HAVE_PGDAT_HELPERS 1
13981 _ACEOF
13982
13983 else
13984 { $as_echo "$as_me:$LINENO: result: no" >&5
13985 $as_echo "no" >&6; }
13986 fi
13987
13988
13989 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13990 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
13991 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13992 $LINUX_OBJ/Module*.symvers 2>/dev/null
13993 rc=$?
13994 if test $rc -ne 0; then
13995 export=0
13996 for file in ; do
13997 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13998 "$LINUX_OBJ/$file" 2>/dev/null
13999 rc=$?
14000 if test $rc -eq 0; then
14001 export=1
14002 break;
14003 fi
14004 done
14005 if test $export -eq 0; then
14006 { $as_echo "$as_me:$LINENO: result: no" >&5
14007 $as_echo "no" >&6; }
14008
14009 else
14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
14011 $as_echo "yes" >&6; }
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_FIRST_ONLINE_PGDAT 1
14015 _ACEOF
14016
14017 fi
14018 else
14019 { $as_echo "$as_me:$LINENO: result: yes" >&5
14020 $as_echo "yes" >&6; }
14021
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_FIRST_ONLINE_PGDAT 1
14024 _ACEOF
14025
14026 fi
14027
14028
14029
14030 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14031 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14032 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14033 $LINUX_OBJ/Module*.symvers 2>/dev/null
14034 rc=$?
14035 if test $rc -ne 0; then
14036 export=0
14037 for file in ; do
14038 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14039 "$LINUX_OBJ/$file" 2>/dev/null
14040 rc=$?
14041 if test $rc -eq 0; then
14042 export=1
14043 break;
14044 fi
14045 done
14046 if test $export -eq 0; then
14047 { $as_echo "$as_me:$LINENO: result: no" >&5
14048 $as_echo "no" >&6; }
14049
14050 else
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052 $as_echo "yes" >&6; }
14053
14054 cat >>confdefs.h <<\_ACEOF
14055 #define HAVE_NEXT_ONLINE_PGDAT 1
14056 _ACEOF
14057
14058 fi
14059 else
14060 { $as_echo "$as_me:$LINENO: result: yes" >&5
14061 $as_echo "yes" >&6; }
14062
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_NEXT_ONLINE_PGDAT 1
14065 _ACEOF
14066
14067 fi
14068
14069
14070
14071 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14072 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14073 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14074 $LINUX_OBJ/Module*.symvers 2>/dev/null
14075 rc=$?
14076 if test $rc -ne 0; then
14077 export=0
14078 for file in ; do
14079 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14080 "$LINUX_OBJ/$file" 2>/dev/null
14081 rc=$?
14082 if test $rc -eq 0; then
14083 export=1
14084 break;
14085 fi
14086 done
14087 if test $export -eq 0; then
14088 { $as_echo "$as_me:$LINENO: result: no" >&5
14089 $as_echo "no" >&6; }
14090
14091 else
14092 { $as_echo "$as_me:$LINENO: result: yes" >&5
14093 $as_echo "yes" >&6; }
14094
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_NEXT_ZONE 1
14097 _ACEOF
14098
14099 fi
14100 else
14101 { $as_echo "$as_me:$LINENO: result: yes" >&5
14102 $as_echo "yes" >&6; }
14103
14104 cat >>confdefs.h <<\_ACEOF
14105 #define HAVE_NEXT_ZONE 1
14106 _ACEOF
14107
14108 fi
14109
14110
14111
14112 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14113 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14114 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14115 $LINUX_OBJ/Module*.symvers 2>/dev/null
14116 rc=$?
14117 if test $rc -ne 0; then
14118 export=0
14119 for file in ; do
14120 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14121 "$LINUX_OBJ/$file" 2>/dev/null
14122 rc=$?
14123 if test $rc -eq 0; then
14124 export=1
14125 break;
14126 fi
14127 done
14128 if test $export -eq 0; then
14129 { $as_echo "$as_me:$LINENO: result: no" >&5
14130 $as_echo "no" >&6; }
14131
14132 else
14133 { $as_echo "$as_me:$LINENO: result: yes" >&5
14134 $as_echo "yes" >&6; }
14135
14136 cat >>confdefs.h <<\_ACEOF
14137 #define HAVE_PGDAT_LIST 1
14138 _ACEOF
14139
14140 fi
14141 else
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143 $as_echo "yes" >&6; }
14144
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_PGDAT_LIST 1
14147 _ACEOF
14148
14149 fi
14150
14151
14152
14153 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14154 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14155
14156
14157 cat confdefs.h - <<_ACEOF >conftest.c
14158 /* confdefs.h. */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163
14164
14165 #include <linux/mm.h>
14166
14167 int
14168 main (void)
14169 {
14170
14171 unsigned long state __attribute__ ((unused));
14172 state = global_page_state(0);
14173
14174 ;
14175 return 0;
14176 }
14177
14178 _ACEOF
14179
14180
14181 rm -Rf build && mkdir -p build
14182 echo "obj-m := conftest.o" >build/Makefile
14183 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14194
14195 { $as_echo "$as_me:$LINENO: result: yes" >&5
14196 $as_echo "yes" >&6; }
14197
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_GLOBAL_PAGE_STATE 1
14200 _ACEOF
14201
14202
14203 else
14204 $as_echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 { $as_echo "$as_me:$LINENO: result: no" >&5
14208 $as_echo "no" >&6; }
14209
14210
14211
14212 fi
14213
14214 rm -Rf build
14215
14216
14217
14218
14219 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14220 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14221
14222
14223 cat confdefs.h - <<_ACEOF >conftest.c
14224 /* confdefs.h. */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229
14230
14231 #include <linux/mm.h>
14232
14233 int
14234 main (void)
14235 {
14236
14237 enum zone_stat_item zsi __attribute__ ((unused));
14238 zsi = NR_FREE_PAGES;
14239
14240 ;
14241 return 0;
14242 }
14243
14244 _ACEOF
14245
14246
14247 rm -Rf build && mkdir -p build
14248 echo "obj-m := conftest.o" >build/Makefile
14249 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; }; then
14260
14261 { $as_echo "$as_me:$LINENO: result: yes" >&5
14262 $as_echo "yes" >&6; }
14263
14264 cat >>confdefs.h <<\_ACEOF
14265 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14266 _ACEOF
14267
14268
14269 else
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 { $as_echo "$as_me:$LINENO: result: no" >&5
14274 $as_echo "no" >&6; }
14275
14276
14277
14278 fi
14279
14280 rm -Rf build
14281
14282
14283
14284
14285 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14286 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14287
14288
14289 cat confdefs.h - <<_ACEOF >conftest.c
14290 /* confdefs.h. */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h. */
14295
14296
14297 #include <linux/mm.h>
14298
14299 int
14300 main (void)
14301 {
14302
14303 enum zone_stat_item zsi __attribute__ ((unused));
14304 zsi = NR_INACTIVE;
14305
14306 ;
14307 return 0;
14308 }
14309
14310 _ACEOF
14311
14312
14313 rm -Rf build && mkdir -p build
14314 echo "obj-m := conftest.o" >build/Makefile
14315 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14323 ac_status=$?
14324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326
14327 { $as_echo "$as_me:$LINENO: result: yes" >&5
14328 $as_echo "yes" >&6; }
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14332 _ACEOF
14333
14334
14335 else
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339 { $as_echo "$as_me:$LINENO: result: no" >&5
14340 $as_echo "no" >&6; }
14341
14342
14343
14344 fi
14345
14346 rm -Rf build
14347
14348
14349
14350 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14351 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14352
14353
14354 cat confdefs.h - <<_ACEOF >conftest.c
14355 /* confdefs.h. */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360
14361
14362 #include <linux/mm.h>
14363
14364 int
14365 main (void)
14366 {
14367
14368 enum zone_stat_item zsi __attribute__ ((unused));
14369 zsi = NR_INACTIVE_ANON;
14370
14371 ;
14372 return 0;
14373 }
14374
14375 _ACEOF
14376
14377
14378 rm -Rf build && mkdir -p build
14379 echo "obj-m := conftest.o" >build/Makefile
14380 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391
14392 { $as_echo "$as_me:$LINENO: result: yes" >&5
14393 $as_echo "yes" >&6; }
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14397 _ACEOF
14398
14399
14400 else
14401 $as_echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14403
14404 { $as_echo "$as_me:$LINENO: result: no" >&5
14405 $as_echo "no" >&6; }
14406
14407
14408
14409 fi
14410
14411 rm -Rf build
14412
14413
14414
14415 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14416 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14417
14418
14419 cat confdefs.h - <<_ACEOF >conftest.c
14420 /* confdefs.h. */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425
14426
14427 #include <linux/mm.h>
14428
14429 int
14430 main (void)
14431 {
14432
14433 enum zone_stat_item zsi __attribute__ ((unused));
14434 zsi = NR_INACTIVE_FILE;
14435
14436 ;
14437 return 0;
14438 }
14439
14440 _ACEOF
14441
14442
14443 rm -Rf build && mkdir -p build
14444 echo "obj-m := conftest.o" >build/Makefile
14445 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456
14457 { $as_echo "$as_me:$LINENO: result: yes" >&5
14458 $as_echo "yes" >&6; }
14459
14460 cat >>confdefs.h <<\_ACEOF
14461 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14462 _ACEOF
14463
14464
14465 else
14466 $as_echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 { $as_echo "$as_me:$LINENO: result: no" >&5
14470 $as_echo "no" >&6; }
14471
14472
14473
14474 fi
14475
14476 rm -Rf build
14477
14478
14479
14480
14481 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14482 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14483
14484
14485 cat confdefs.h - <<_ACEOF >conftest.c
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491
14492
14493 #include <linux/mm.h>
14494
14495 int
14496 main (void)
14497 {
14498
14499 enum zone_stat_item zsi __attribute__ ((unused));
14500 zsi = NR_ACTIVE;
14501
14502 ;
14503 return 0;
14504 }
14505
14506 _ACEOF
14507
14508
14509 rm -Rf build && mkdir -p build
14510 echo "obj-m := conftest.o" >build/Makefile
14511 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
14515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522
14523 { $as_echo "$as_me:$LINENO: result: yes" >&5
14524 $as_echo "yes" >&6; }
14525
14526 cat >>confdefs.h <<\_ACEOF
14527 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14528 _ACEOF
14529
14530
14531 else
14532 $as_echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 { $as_echo "$as_me:$LINENO: result: no" >&5
14536 $as_echo "no" >&6; }
14537
14538
14539
14540 fi
14541
14542 rm -Rf build
14543
14544
14545
14546 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14547 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14548
14549
14550 cat confdefs.h - <<_ACEOF >conftest.c
14551 /* confdefs.h. */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h. */
14556
14557
14558 #include <linux/mm.h>
14559
14560 int
14561 main (void)
14562 {
14563
14564 enum zone_stat_item zsi __attribute__ ((unused));
14565 zsi = NR_ACTIVE_ANON;
14566
14567 ;
14568 return 0;
14569 }
14570
14571 _ACEOF
14572
14573
14574 rm -Rf build && mkdir -p build
14575 echo "obj-m := conftest.o" >build/Makefile
14576 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587
14588 { $as_echo "$as_me:$LINENO: result: yes" >&5
14589 $as_echo "yes" >&6; }
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14593 _ACEOF
14594
14595
14596 else
14597 $as_echo "$as_me: failed program was:" >&5
14598 sed 's/^/| /' conftest.$ac_ext >&5
14599
14600 { $as_echo "$as_me:$LINENO: result: no" >&5
14601 $as_echo "no" >&6; }
14602
14603
14604
14605 fi
14606
14607 rm -Rf build
14608
14609
14610
14611 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14612 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14613
14614
14615 cat confdefs.h - <<_ACEOF >conftest.c
14616 /* confdefs.h. */
14617 _ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621
14622
14623 #include <linux/mm.h>
14624
14625 int
14626 main (void)
14627 {
14628
14629 enum zone_stat_item zsi __attribute__ ((unused));
14630 zsi = NR_ACTIVE_FILE;
14631
14632 ;
14633 return 0;
14634 }
14635
14636 _ACEOF
14637
14638
14639 rm -Rf build && mkdir -p build
14640 echo "obj-m := conftest.o" >build/Makefile
14641 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14643 (eval $ac_try) 2>&5
14644 ac_status=$?
14645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; }; then
14652
14653 { $as_echo "$as_me:$LINENO: result: yes" >&5
14654 $as_echo "yes" >&6; }
14655
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14658 _ACEOF
14659
14660
14661 else
14662 $as_echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14667
14668
14669
14670 fi
14671
14672 rm -Rf build
14673
14674
14675
14676
14677 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14678 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14679
14680
14681 cat confdefs.h - <<_ACEOF >conftest.c
14682 /* confdefs.h. */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687
14688
14689
14690 int
14691 main (void)
14692 {
14693
14694 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14695 #error "global_page_state needs NR_FREE_PAGES"
14696 #endif
14697
14698 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14699 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14700 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14701 #error "global_page_state needs NR_ACTIVE*"
14702 #endif
14703
14704 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14705 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14706 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14707 #error "global_page_state needs NR_INACTIVE*"
14708 #endif
14709
14710 ;
14711 return 0;
14712 }
14713
14714 _ACEOF
14715
14716
14717 rm -Rf build && mkdir -p build
14718 echo "obj-m := conftest.o" >build/Makefile
14719 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14730
14731 { $as_echo "$as_me:$LINENO: result: no" >&5
14732 $as_echo "no" >&6; }
14733
14734 else
14735 $as_echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738 { $as_echo "$as_me:$LINENO: result: yes" >&5
14739 $as_echo "yes" >&6; }
14740
14741 cat >>confdefs.h <<\_ACEOF
14742 #define NEED_GET_ZONE_COUNTS 1
14743 _ACEOF
14744
14745
14746 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14747 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14748 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14749 $LINUX_OBJ/Module*.symvers 2>/dev/null
14750 rc=$?
14751 if test $rc -ne 0; then
14752 export=0
14753 for file in ; do
14754 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14755 "$LINUX_OBJ/$file" 2>/dev/null
14756 rc=$?
14757 if test $rc -eq 0; then
14758 export=1
14759 break;
14760 fi
14761 done
14762 if test $export -eq 0; then
14763 { $as_echo "$as_me:$LINENO: result: no" >&5
14764 $as_echo "no" >&6; }
14765
14766 else
14767 { $as_echo "$as_me:$LINENO: result: yes" >&5
14768 $as_echo "yes" >&6; }
14769
14770 cat >>confdefs.h <<\_ACEOF
14771 #define HAVE_GET_ZONE_COUNTS 1
14772 _ACEOF
14773
14774 fi
14775 else
14776 { $as_echo "$as_me:$LINENO: result: yes" >&5
14777 $as_echo "yes" >&6; }
14778
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_GET_ZONE_COUNTS 1
14781 _ACEOF
14782
14783 fi
14784
14785
14786
14787
14788 fi
14789
14790 rm -Rf build
14791
14792
14793
14794
14795 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14796 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14797 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14798 $LINUX_OBJ/Module*.symvers 2>/dev/null
14799 rc=$?
14800 if test $rc -ne 0; then
14801 export=0
14802 for file in ; do
14803 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14804 "$LINUX_OBJ/$file" 2>/dev/null
14805 rc=$?
14806 if test $rc -eq 0; then
14807 export=1
14808 break;
14809 fi
14810 done
14811 if test $export -eq 0; then
14812 { $as_echo "$as_me:$LINENO: result: no" >&5
14813 $as_echo "no" >&6; }
14814
14815 else
14816 { $as_echo "$as_me:$LINENO: result: yes" >&5
14817 $as_echo "yes" >&6; }
14818
14819 cat >>confdefs.h <<\_ACEOF
14820 #define HAVE_USER_PATH_DIR 1
14821 _ACEOF
14822
14823 fi
14824 else
14825 { $as_echo "$as_me:$LINENO: result: yes" >&5
14826 $as_echo "yes" >&6; }
14827
14828 cat >>confdefs.h <<\_ACEOF
14829 #define HAVE_USER_PATH_DIR 1
14830 _ACEOF
14831
14832 fi
14833
14834
14835
14836 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14837 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14838 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14839 $LINUX_OBJ/Module*.symvers 2>/dev/null
14840 rc=$?
14841 if test $rc -ne 0; then
14842 export=0
14843 for file in ; do
14844 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14845 "$LINUX_OBJ/$file" 2>/dev/null
14846 rc=$?
14847 if test $rc -eq 0; then
14848 export=1
14849 break;
14850 fi
14851 done
14852 if test $export -eq 0; then
14853 { $as_echo "$as_me:$LINENO: result: no" >&5
14854 $as_echo "no" >&6; }
14855
14856 else
14857 { $as_echo "$as_me:$LINENO: result: yes" >&5
14858 $as_echo "yes" >&6; }
14859
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_SET_FS_PWD 1
14862 _ACEOF
14863
14864 fi
14865 else
14866 { $as_echo "$as_me:$LINENO: result: yes" >&5
14867 $as_echo "yes" >&6; }
14868
14869 cat >>confdefs.h <<\_ACEOF
14870 #define HAVE_SET_FS_PWD 1
14871 _ACEOF
14872
14873 fi
14874
14875
14876 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14877 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14878
14879
14880 cat confdefs.h - <<_ACEOF >conftest.c
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886
14887
14888 #include <linux/sched.h>
14889 #include <linux/fs_struct.h>
14890
14891 int
14892 main (void)
14893 {
14894
14895 set_fs_pwd(NULL, NULL);
14896
14897 ;
14898 return 0;
14899 }
14900
14901 _ACEOF
14902
14903
14904 rm -Rf build && mkdir -p build
14905 echo "obj-m := conftest.o" >build/Makefile
14906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908 (eval $ac_try) 2>&5
14909 ac_status=$?
14910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917
14918 { $as_echo "$as_me:$LINENO: result: yes" >&5
14919 $as_echo "yes" >&6; }
14920
14921 cat >>confdefs.h <<\_ACEOF
14922 #define HAVE_2ARGS_SET_FS_PWD 1
14923 _ACEOF
14924
14925
14926 else
14927 $as_echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.$ac_ext >&5
14929
14930 { $as_echo "$as_me:$LINENO: result: no" >&5
14931 $as_echo "no" >&6; }
14932
14933
14934
14935 fi
14936
14937 rm -Rf build
14938
14939
14940
14941 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14942 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
14943
14944
14945 cat confdefs.h - <<_ACEOF >conftest.c
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951
14952
14953 #include <linux/fs.h>
14954
14955 int
14956 main (void)
14957 {
14958
14959 vfs_unlink(NULL, NULL);
14960
14961 ;
14962 return 0;
14963 }
14964
14965 _ACEOF
14966
14967
14968 rm -Rf build && mkdir -p build
14969 echo "obj-m := conftest.o" >build/Makefile
14970 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14978 ac_status=$?
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14981
14982 { $as_echo "$as_me:$LINENO: result: yes" >&5
14983 $as_echo "yes" >&6; }
14984
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_2ARGS_VFS_UNLINK 1
14987 _ACEOF
14988
14989
14990 else
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 { $as_echo "$as_me:$LINENO: result: no" >&5
14995 $as_echo "no" >&6; }
14996
14997
14998
14999 fi
15000
15001 rm -Rf build
15002
15003
15004
15005 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15006 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15007
15008
15009 cat confdefs.h - <<_ACEOF >conftest.c
15010 /* confdefs.h. */
15011 _ACEOF
15012 cat confdefs.h >>conftest.$ac_ext
15013 cat >>conftest.$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015
15016
15017 #include <linux/fs.h>
15018
15019 int
15020 main (void)
15021 {
15022
15023 vfs_rename(NULL, NULL, NULL, NULL);
15024
15025 ;
15026 return 0;
15027 }
15028
15029 _ACEOF
15030
15031
15032 rm -Rf build && mkdir -p build
15033 echo "obj-m := conftest.o" >build/Makefile
15034 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045
15046 { $as_echo "$as_me:$LINENO: result: yes" >&5
15047 $as_echo "yes" >&6; }
15048
15049 cat >>confdefs.h <<\_ACEOF
15050 #define HAVE_4ARGS_VFS_RENAME 1
15051 _ACEOF
15052
15053
15054 else
15055 $as_echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058 { $as_echo "$as_me:$LINENO: result: no" >&5
15059 $as_echo "no" >&6; }
15060
15061
15062
15063 fi
15064
15065 rm -Rf build
15066
15067
15068
15069
15070 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15071 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15072 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15073 $LINUX_OBJ/Module*.symvers 2>/dev/null
15074 rc=$?
15075 if test $rc -ne 0; then
15076 export=0
15077 for file in fs/sync.c; do
15078 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15079 "$LINUX_OBJ/$file" 2>/dev/null
15080 rc=$?
15081 if test $rc -eq 0; then
15082 export=1
15083 break;
15084 fi
15085 done
15086 if test $export -eq 0; then
15087 { $as_echo "$as_me:$LINENO: result: no" >&5
15088 $as_echo "no" >&6; }
15089
15090 else
15091 { $as_echo "$as_me:$LINENO: result: yes" >&5
15092 $as_echo "yes" >&6; }
15093
15094 cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_VFS_FSYNC 1
15096 _ACEOF
15097
15098 fi
15099 else
15100 { $as_echo "$as_me:$LINENO: result: yes" >&5
15101 $as_echo "yes" >&6; }
15102
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_VFS_FSYNC 1
15105 _ACEOF
15106
15107 fi
15108
15109
15110
15111 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15112 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15113
15114
15115 cat confdefs.h - <<_ACEOF >conftest.c
15116 /* confdefs.h. */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121
15122
15123 #include <linux/fs.h>
15124
15125 int
15126 main (void)
15127 {
15128
15129 vfs_fsync(NULL, 0);
15130
15131 ;
15132 return 0;
15133 }
15134
15135 _ACEOF
15136
15137
15138 rm -Rf build && mkdir -p build
15139 echo "obj-m := conftest.o" >build/Makefile
15140 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15143 ac_status=$?
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147 (eval $ac_try) 2>&5
15148 ac_status=$?
15149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); }; }; then
15151
15152 { $as_echo "$as_me:$LINENO: result: yes" >&5
15153 $as_echo "yes" >&6; }
15154
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_2ARGS_VFS_FSYNC 1
15157 _ACEOF
15158
15159
15160 else
15161 $as_echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 { $as_echo "$as_me:$LINENO: result: no" >&5
15165 $as_echo "no" >&6; }
15166
15167
15168
15169 fi
15170
15171 rm -Rf build
15172
15173
15174
15175
15176 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15177 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15178 tmp_flags="$EXTRA_KCFLAGS"
15179 EXTRA_KCFLAGS="-Werror"
15180
15181
15182 cat confdefs.h - <<_ACEOF >conftest.c
15183 /* confdefs.h. */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188
15189
15190 #include <linux/sched.h>
15191 #include <linux/fs_struct.h>
15192
15193 int
15194 main (void)
15195 {
15196
15197 struct fs_struct fs;
15198 spin_lock_init(&fs.lock);
15199
15200 ;
15201 return 0;
15202 }
15203
15204 _ACEOF
15205
15206
15207 rm -Rf build && mkdir -p build
15208 echo "obj-m := conftest.o" >build/Makefile
15209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15212 ac_status=$?
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15217 ac_status=$?
15218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220
15221 { $as_echo "$as_me:$LINENO: result: yes" >&5
15222 $as_echo "yes" >&6; }
15223
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_FS_STRUCT_SPINLOCK 1
15226 _ACEOF
15227
15228
15229 else
15230 $as_echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233 { $as_echo "$as_me:$LINENO: result: no" >&5
15234 $as_echo "no" >&6; }
15235
15236
15237
15238 fi
15239
15240 rm -Rf build
15241
15242
15243 EXTRA_KCFLAGS="$tmp_flags"
15244
15245
15246 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15247 $as_echo_n "checking whether struct cred exists... " >&6; }
15248
15249
15250 cat confdefs.h - <<_ACEOF >conftest.c
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256
15257
15258 #include <linux/cred.h>
15259
15260 int
15261 main (void)
15262 {
15263
15264 struct cred *cr __attribute__ ((unused));
15265 cr = NULL;
15266
15267 ;
15268 return 0;
15269 }
15270
15271 _ACEOF
15272
15273
15274 rm -Rf build && mkdir -p build
15275 echo "obj-m := conftest.o" >build/Makefile
15276 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287
15288 { $as_echo "$as_me:$LINENO: result: yes" >&5
15289 $as_echo "yes" >&6; }
15290
15291 cat >>confdefs.h <<\_ACEOF
15292 #define HAVE_CRED_STRUCT 1
15293 _ACEOF
15294
15295
15296 else
15297 $as_echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 { $as_echo "$as_me:$LINENO: result: no" >&5
15301 $as_echo "no" >&6; }
15302
15303
15304
15305 fi
15306
15307 rm -Rf build
15308
15309
15310
15311
15312 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15313 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15314 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15315 $LINUX_OBJ/Module*.symvers 2>/dev/null
15316 rc=$?
15317 if test $rc -ne 0; then
15318 export=0
15319 for file in ; do
15320 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15321 "$LINUX_OBJ/$file" 2>/dev/null
15322 rc=$?
15323 if test $rc -eq 0; then
15324 export=1
15325 break;
15326 fi
15327 done
15328 if test $export -eq 0; then
15329 { $as_echo "$as_me:$LINENO: result: no" >&5
15330 $as_echo "no" >&6; }
15331
15332 else
15333 { $as_echo "$as_me:$LINENO: result: yes" >&5
15334 $as_echo "yes" >&6; }
15335
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAVE_GROUPS_SEARCH 1
15338 _ACEOF
15339
15340 fi
15341 else
15342 { $as_echo "$as_me:$LINENO: result: yes" >&5
15343 $as_echo "yes" >&6; }
15344
15345 cat >>confdefs.h <<\_ACEOF
15346 #define HAVE_GROUPS_SEARCH 1
15347 _ACEOF
15348
15349 fi
15350
15351
15352
15353 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15354 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15355 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15356 $LINUX_OBJ/Module*.symvers 2>/dev/null
15357 rc=$?
15358 if test $rc -ne 0; then
15359 export=0
15360 for file in ; do
15361 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15362 "$LINUX_OBJ/$file" 2>/dev/null
15363 rc=$?
15364 if test $rc -eq 0; then
15365 export=1
15366 break;
15367 fi
15368 done
15369 if test $export -eq 0; then
15370 { $as_echo "$as_me:$LINENO: result: no" >&5
15371 $as_echo "no" >&6; }
15372
15373 else
15374 { $as_echo "$as_me:$LINENO: result: yes" >&5
15375 $as_echo "yes" >&6; }
15376
15377 cat >>confdefs.h <<\_ACEOF
15378 #define HAVE_PUT_TASK_STRUCT 1
15379 _ACEOF
15380
15381 fi
15382 else
15383 { $as_echo "$as_me:$LINENO: result: yes" >&5
15384 $as_echo "yes" >&6; }
15385
15386 cat >>confdefs.h <<\_ACEOF
15387 #define HAVE_PUT_TASK_STRUCT 1
15388 _ACEOF
15389
15390 fi
15391
15392
15393
15394 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15395 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15396
15397
15398 cat confdefs.h - <<_ACEOF >conftest.c
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404
15405
15406 #include <linux/sysctl.h>
15407
15408 int
15409 main (void)
15410 {
15411
15412 proc_dostring(NULL, 0, NULL, NULL, NULL);
15413
15414 ;
15415 return 0;
15416 }
15417
15418 _ACEOF
15419
15420
15421 rm -Rf build && mkdir -p build
15422 echo "obj-m := conftest.o" >build/Makefile
15423 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15431 ac_status=$?
15432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434
15435 { $as_echo "$as_me:$LINENO: result: yes" >&5
15436 $as_echo "yes" >&6; }
15437
15438 cat >>confdefs.h <<\_ACEOF
15439 #define HAVE_5ARGS_PROC_HANDLER 1
15440 _ACEOF
15441
15442
15443 else
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447 { $as_echo "$as_me:$LINENO: result: no" >&5
15448 $as_echo "no" >&6; }
15449
15450
15451
15452 fi
15453
15454 rm -Rf build
15455
15456
15457
15458
15459 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15460 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15461 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15462 $LINUX_OBJ/Module*.symvers 2>/dev/null
15463 rc=$?
15464 if test $rc -ne 0; then
15465 export=0
15466 for file in ; do
15467 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15468 "$LINUX_OBJ/$file" 2>/dev/null
15469 rc=$?
15470 if test $rc -eq 0; then
15471 export=1
15472 break;
15473 fi
15474 done
15475 if test $export -eq 0; then
15476 { $as_echo "$as_me:$LINENO: result: no" >&5
15477 $as_echo "no" >&6; }
15478
15479 else
15480 { $as_echo "$as_me:$LINENO: result: yes" >&5
15481 $as_echo "yes" >&6; }
15482
15483 cat >>confdefs.h <<\_ACEOF
15484 #define HAVE_KVASPRINTF 1
15485 _ACEOF
15486
15487 fi
15488 else
15489 { $as_echo "$as_me:$LINENO: result: yes" >&5
15490 $as_echo "yes" >&6; }
15491
15492 cat >>confdefs.h <<\_ACEOF
15493 #define HAVE_KVASPRINTF 1
15494 _ACEOF
15495
15496 fi
15497
15498
15499
15500 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15501 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15502 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15503 $LINUX_OBJ/Module*.symvers 2>/dev/null
15504 rc=$?
15505 if test $rc -ne 0; then
15506 export=0
15507 for file in lib/rwsem-spinlock.c; do
15508 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15509 "$LINUX_OBJ/$file" 2>/dev/null
15510 rc=$?
15511 if test $rc -eq 0; then
15512 export=1
15513 break;
15514 fi
15515 done
15516 if test $export -eq 0; then
15517 { $as_echo "$as_me:$LINENO: result: no" >&5
15518 $as_echo "no" >&6; }
15519
15520 else
15521 { $as_echo "$as_me:$LINENO: result: yes" >&5
15522 $as_echo "yes" >&6; }
15523
15524 cat >>confdefs.h <<\_ACEOF
15525 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15526 _ACEOF
15527
15528 fi
15529 else
15530 { $as_echo "$as_me:$LINENO: result: yes" >&5
15531 $as_echo "yes" >&6; }
15532
15533 cat >>confdefs.h <<\_ACEOF
15534 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15535 _ACEOF
15536
15537 fi
15538
15539
15540
15541 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15542 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15543 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15544 $LINUX_OBJ/Module*.symvers 2>/dev/null
15545 rc=$?
15546 if test $rc -ne 0; then
15547 export=0
15548 for file in ; do
15549 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15550 "$LINUX_OBJ/$file" 2>/dev/null
15551 rc=$?
15552 if test $rc -eq 0; then
15553 export=1
15554 break;
15555 fi
15556 done
15557 if test $export -eq 0; then
15558 { $as_echo "$as_me:$LINENO: result: no" >&5
15559 $as_echo "no" >&6; }
15560
15561 else
15562 { $as_echo "$as_me:$LINENO: result: yes" >&5
15563 $as_echo "yes" >&6; }
15564
15565 cat >>confdefs.h <<\_ACEOF
15566 #define HAVE_INVALIDATE_INODES 1
15567 _ACEOF
15568
15569 fi
15570 else
15571 { $as_echo "$as_me:$LINENO: result: yes" >&5
15572 $as_echo "yes" >&6; }
15573
15574 cat >>confdefs.h <<\_ACEOF
15575 #define HAVE_INVALIDATE_INODES 1
15576 _ACEOF
15577
15578 fi
15579
15580
15581 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15582 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15583
15584
15585 cat confdefs.h - <<_ACEOF >conftest.c
15586 /* confdefs.h. */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591
15592
15593 #include <linux/fs.h>
15594
15595 int
15596 main (void)
15597 {
15598
15599 return __invalidate_device(NULL, 0);
15600
15601 ;
15602 return 0;
15603 }
15604
15605 _ACEOF
15606
15607
15608 rm -Rf build && mkdir -p build
15609 echo "obj-m := conftest.o" >build/Makefile
15610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15613 ac_status=$?
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621
15622 { $as_echo "$as_me:$LINENO: result: yes" >&5
15623 $as_echo "yes" >&6; }
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE_2ARGS_INVALIDATE_INODES 1
15627 _ACEOF
15628
15629
15630 else
15631 $as_echo "$as_me: failed program was:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15633
15634 { $as_echo "$as_me:$LINENO: result: no" >&5
15635 $as_echo "no" >&6; }
15636
15637
15638
15639 fi
15640
15641 rm -Rf build
15642
15643
15644
15645
15646 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15647 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15648 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15649 $LINUX_OBJ/Module*.symvers 2>/dev/null
15650 rc=$?
15651 if test $rc -ne 0; then
15652 export=0
15653 for file in fs/dcache.c; do
15654 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15655 "$LINUX_OBJ/$file" 2>/dev/null
15656 rc=$?
15657 if test $rc -eq 0; then
15658 export=1
15659 break;
15660 fi
15661 done
15662 if test $export -eq 0; then
15663 { $as_echo "$as_me:$LINENO: result: no" >&5
15664 $as_echo "no" >&6; }
15665
15666 else
15667 { $as_echo "$as_me:$LINENO: result: yes" >&5
15668 $as_echo "yes" >&6; }
15669
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE_SHRINK_DCACHE_MEMORY 1
15672 _ACEOF
15673
15674 fi
15675 else
15676 { $as_echo "$as_me:$LINENO: result: yes" >&5
15677 $as_echo "yes" >&6; }
15678
15679 cat >>confdefs.h <<\_ACEOF
15680 #define HAVE_SHRINK_DCACHE_MEMORY 1
15681 _ACEOF
15682
15683 fi
15684
15685
15686
15687 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15688 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15689 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15690 $LINUX_OBJ/Module*.symvers 2>/dev/null
15691 rc=$?
15692 if test $rc -ne 0; then
15693 export=0
15694 for file in fs/inode.c; do
15695 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15696 "$LINUX_OBJ/$file" 2>/dev/null
15697 rc=$?
15698 if test $rc -eq 0; then
15699 export=1
15700 break;
15701 fi
15702 done
15703 if test $export -eq 0; then
15704 { $as_echo "$as_me:$LINENO: result: no" >&5
15705 $as_echo "no" >&6; }
15706
15707 else
15708 { $as_echo "$as_me:$LINENO: result: yes" >&5
15709 $as_echo "yes" >&6; }
15710
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_SHRINK_ICACHE_MEMORY 1
15713 _ACEOF
15714
15715 fi
15716 else
15717 { $as_echo "$as_me:$LINENO: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719
15720 cat >>confdefs.h <<\_ACEOF
15721 #define HAVE_SHRINK_ICACHE_MEMORY 1
15722 _ACEOF
15723
15724 fi
15725
15726
15727
15728
15729 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15730 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15731 header=0
15732 for file in include/linux/namei.h; do
15733 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15734 rc=$?
15735 if test $rc -eq 0; then
15736 header=1
15737 break;
15738 fi
15739 done
15740 if test $header -eq 0; then
15741 { $as_echo "$as_me:$LINENO: result: no" >&5
15742 $as_echo "no" >&6; }
15743
15744 else
15745 { $as_echo "$as_me:$LINENO: result: yes" >&5
15746 $as_echo "yes" >&6; }
15747
15748 cat >>confdefs.h <<\_ACEOF
15749 #define HAVE_KERN_PATH_PARENT_HEADER 1
15750 _ACEOF
15751
15752 fi
15753
15754
15755
15756 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15757 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15758 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15759 $LINUX_OBJ/Module*.symvers 2>/dev/null
15760 rc=$?
15761 if test $rc -ne 0; then
15762 export=0
15763 for file in fs/namei.c; do
15764 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15765 "$LINUX_OBJ/$file" 2>/dev/null
15766 rc=$?
15767 if test $rc -eq 0; then
15768 export=1
15769 break;
15770 fi
15771 done
15772 if test $export -eq 0; then
15773 { $as_echo "$as_me:$LINENO: result: no" >&5
15774 $as_echo "no" >&6; }
15775
15776 else
15777 { $as_echo "$as_me:$LINENO: result: yes" >&5
15778 $as_echo "yes" >&6; }
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15782 _ACEOF
15783
15784 fi
15785 else
15786 { $as_echo "$as_me:$LINENO: result: yes" >&5
15787 $as_echo "yes" >&6; }
15788
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15791 _ACEOF
15792
15793 fi
15794
15795
15796 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15797 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15798
15799
15800 cat confdefs.h - <<_ACEOF >conftest.c
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806
15807
15808 #include <linux/zlib.h>
15809
15810 int
15811 main (void)
15812 {
15813
15814 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15815
15816 ;
15817 return 0;
15818 }
15819
15820 _ACEOF
15821
15822
15823 rm -Rf build && mkdir -p build
15824 echo "obj-m := conftest.o" >build/Makefile
15825 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15827 (eval $ac_try) 2>&5
15828 ac_status=$?
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836
15837 { $as_echo "$as_me:$LINENO: result: yes" >&5
15838 $as_echo "yes" >&6; }
15839
15840 cat >>confdefs.h <<\_ACEOF
15841 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15842 _ACEOF
15843
15844
15845 else
15846 $as_echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15848
15849 { $as_echo "$as_me:$LINENO: result: no" >&5
15850 $as_echo "no" >&6; }
15851
15852
15853
15854 fi
15855
15856 rm -Rf build
15857
15858
15859
15860
15861 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15862 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15863
15864
15865 cat confdefs.h - <<_ACEOF >conftest.c
15866 /* confdefs.h. */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871
15872
15873 #include <linux/mm.h>
15874
15875 int
15876 main (void)
15877 {
15878
15879 struct shrink_control sc __attribute__ ((unused));
15880
15881 sc.nr_to_scan = 0;
15882 sc.gfp_mask = GFP_KERNEL;
15883
15884 ;
15885 return 0;
15886 }
15887
15888 _ACEOF
15889
15890
15891 rm -Rf build && mkdir -p build
15892 echo "obj-m := conftest.o" >build/Makefile
15893 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904
15905 { $as_echo "$as_me:$LINENO: result: yes" >&5
15906 $as_echo "yes" >&6; }
15907
15908 cat >>confdefs.h <<\_ACEOF
15909 #define HAVE_SHRINK_CONTROL_STRUCT 1
15910 _ACEOF
15911
15912
15913 else
15914 $as_echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15916
15917 { $as_echo "$as_me:$LINENO: result: no" >&5
15918 $as_echo "no" >&6; }
15919
15920
15921
15922 fi
15923
15924 rm -Rf build
15925
15926
15927
15928 ;;
15929 user) ;;
15930 all)
15931
15932
15933 # Check whether --with-linux was given.
15934 if test "${with_linux+set}" = set; then
15935 withval=$with_linux; kernelsrc="$withval"
15936 fi
15937
15938
15939
15940 # Check whether --with-linux-obj was given.
15941 if test "${with_linux_obj+set}" = set; then
15942 withval=$with_linux_obj; kernelbuild="$withval"
15943 fi
15944
15945
15946 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15947 $as_echo_n "checking kernel source directory... " >&6; }
15948 if test -z "$kernelsrc"; then
15949 if test -e "/lib/modules/$(uname -r)/source"; then
15950 headersdir="/lib/modules/$(uname -r)/source"
15951 sourcelink=$(readlink -f "$headersdir")
15952 elif test -e "/lib/modules/$(uname -r)/build"; then
15953 headersdir="/lib/modules/$(uname -r)/build"
15954 sourcelink=$(readlink -f "$headersdir")
15955 else
15956 sourcelink=$(ls -1d /usr/src/kernels/* \
15957 /usr/src/linux-* \
15958 2>/dev/null | grep -v obj | tail -1)
15959 fi
15960
15961 if test -n "$sourcelink" && test -e ${sourcelink}; then
15962 kernelsrc=`readlink -f ${sourcelink}`
15963 else
15964 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15965 $as_echo "Not found" >&6; }
15966 { { $as_echo "$as_me:$LINENO: error:
15967 *** Please make sure the kernel devel package for your distribution
15968 *** is installed then try again. If that fails you can specify the
15969 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15970 $as_echo "$as_me: error:
15971 *** Please make sure the kernel devel package for your distribution
15972 *** is installed then try again. If that fails you can specify the
15973 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15974 { (exit 1); exit 1; }; }
15975 fi
15976 else
15977 if test "$kernelsrc" = "NONE"; then
15978 kernsrcver=NONE
15979 fi
15980 fi
15981
15982 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15983 $as_echo "$kernelsrc" >&6; }
15984 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15985 $as_echo_n "checking kernel build directory... " >&6; }
15986 if test -z "$kernelbuild"; then
15987 if test -e "/lib/modules/$(uname -r)/build"; then
15988 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15989 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15990 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15991 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15992 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15993 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15994 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15995 else
15996 kernelbuild=${kernelsrc}
15997 fi
15998 fi
15999 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16000 $as_echo "$kernelbuild" >&6; }
16001
16002 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16003 $as_echo_n "checking kernel source version... " >&6; }
16004 utsrelease1=$kernelbuild/include/linux/version.h
16005 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16006 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16007 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16008 utsrelease=linux/version.h
16009 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16010 utsrelease=linux/utsrelease.h
16011 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16012 utsrelease=generated/utsrelease.h
16013 fi
16014
16015 if test "$utsrelease"; then
16016 kernsrcver=`(echo "#include <$utsrelease>";
16017 echo "kernsrcver=UTS_RELEASE") |
16018 cpp -I $kernelbuild/include |
16019 grep "^kernsrcver=" | cut -d \" -f 2`
16020
16021 if test -z "$kernsrcver"; then
16022 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16023 $as_echo "Not found" >&6; }
16024 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16025 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16026 { (exit 1); exit 1; }; }
16027 fi
16028 else
16029 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16030 $as_echo "Not found" >&6; }
16031 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16032 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16033 { (exit 1); exit 1; }; }
16034 fi
16035
16036 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16037 $as_echo "$kernsrcver" >&6; }
16038
16039 LINUX=${kernelsrc}
16040 LINUX_OBJ=${kernelbuild}
16041 LINUX_VERSION=${kernsrcver}
16042
16043
16044
16045
16046
16047
16048 modpost=$LINUX/scripts/Makefile.modpost
16049 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16050 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16051 if test -f "$modpost"; then
16052 if grep -q Modules.symvers $modpost; then
16053 LINUX_SYMBOLS=Modules.symvers
16054 else
16055 LINUX_SYMBOLS=Module.symvers
16056 fi
16057
16058 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16059 { { $as_echo "$as_me:$LINENO: error:
16060 *** Please make sure the kernel devel package for your distribution
16061 *** is installed. If your building with a custom kernel make sure the
16062 *** kernel is configured, built, and the '--with-linux=PATH' configure
16063 *** option refers to the location of the kernel source." >&5
16064 $as_echo "$as_me: error:
16065 *** Please make sure the kernel devel package for your distribution
16066 *** is installed. If your building with a custom kernel make sure the
16067 *** kernel is configured, built, and the '--with-linux=PATH' configure
16068 *** option refers to the location of the kernel source." >&2;}
16069 { (exit 1); exit 1; }; }
16070 fi
16071 else
16072 LINUX_SYMBOLS=NONE
16073 fi
16074 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16075 $as_echo "$LINUX_SYMBOLS" >&6; }
16076
16077
16078
16079
16080 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16081 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16082
16083
16084 cat confdefs.h - <<_ACEOF >conftest.c
16085 /* confdefs.h. */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090
16091
16092 #include <linux/module.h>
16093
16094 int
16095 main (void)
16096 {
16097
16098 #ifndef CONFIG_PREEMPT
16099 #error CONFIG_PREEMPT not #defined
16100 #endif
16101
16102 ;
16103 return 0;
16104 }
16105
16106 _ACEOF
16107
16108
16109 rm -Rf build && mkdir -p build
16110 echo "obj-m := conftest.o" >build/Makefile
16111 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113 (eval $ac_try) 2>&5
16114 ac_status=$?
16115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122
16123 { $as_echo "$as_me:$LINENO: result: yes" >&5
16124 $as_echo "yes" >&6; }
16125 { { $as_echo "$as_me:$LINENO: error:
16126 *** Kernel built with CONFIG_PREEMPT which is not supported.
16127 ** You must rebuild your kernel without this option." >&5
16128 $as_echo "$as_me: error:
16129 *** Kernel built with CONFIG_PREEMPT which is not supported.
16130 ** You must rebuild your kernel without this option." >&2;}
16131 { (exit 1); exit 1; }; }
16132
16133 else
16134 $as_echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 { $as_echo "$as_me:$LINENO: result: no" >&5
16138 $as_echo "no" >&6; }
16139
16140
16141
16142
16143 fi
16144
16145 rm -Rf build
16146
16147
16148
16149
16150
16151 if test "${LINUX_OBJ}" != "${LINUX}"; then
16152 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16153 fi
16154
16155
16156 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16157
16158
16159
16160 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16161 $as_echo_n "checking whether debugging is enabled... " >&6; }
16162 # Check whether --enable-debug was given.
16163 if test "${enable_debug+set}" = set; then
16164 enableval=$enable_debug;
16165 else
16166 enable_debug=no
16167 fi
16168
16169
16170 if test "x$enable_debug" = xyes; then
16171
16172 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16173 DEBUG_CFLAGS="-DDEBUG -Werror"
16174
16175 else
16176
16177 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16178 DEBUG_CFLAGS="-DNDEBUG"
16179
16180 fi
16181
16182
16183
16184 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16185 $as_echo "$enable_debug" >&6; }
16186
16187
16188 # Check whether --enable-debug-kmem was given.
16189 if test "${enable_debug_kmem+set}" = set; then
16190 enableval=$enable_debug_kmem;
16191 else
16192 enable_debug_kmem=yes
16193 fi
16194
16195
16196 if test "x$enable_debug_kmem" = xyes; then
16197
16198 cat >>confdefs.h <<\_ACEOF
16199 #define DEBUG_KMEM 1
16200 _ACEOF
16201
16202 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16203 fi
16204
16205
16206 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16207 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16208 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16209 $as_echo "$enable_debug_kmem" >&6; }
16210
16211
16212 # Check whether --enable-debug-kmem-tracking was given.
16213 if test "${enable_debug_kmem_tracking+set}" = set; then
16214 enableval=$enable_debug_kmem_tracking;
16215 else
16216 enable_debug_kmem_tracking=no
16217 fi
16218
16219
16220 if test "x$enable_debug_kmem_tracking" = xyes; then
16221
16222 cat >>confdefs.h <<\_ACEOF
16223 #define DEBUG_KMEM_TRACKING 1
16224 _ACEOF
16225
16226 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16227 fi
16228
16229
16230 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16231 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16232 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16233 $as_echo "$enable_debug_kmem_tracking" >&6; }
16234
16235
16236 # Check whether --enable-atomic-spinlocks was given.
16237 if test "${enable_atomic_spinlocks+set}" = set; then
16238 enableval=$enable_atomic_spinlocks;
16239 else
16240 enable_atomic_spinlocks=check
16241 fi
16242
16243
16244
16245
16246 cat confdefs.h - <<_ACEOF >conftest.c
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252
16253
16254 #include <asm/atomic.h>
16255
16256 int
16257 main (void)
16258 {
16259
16260 atomic64_t *ptr __attribute__ ((unused));
16261
16262 ;
16263 return 0;
16264 }
16265
16266 _ACEOF
16267
16268
16269 rm -Rf build && mkdir -p build
16270 echo "obj-m := conftest.o" >build/Makefile
16271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16279 ac_status=$?
16280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282
16283 have_atomic64_t=yes
16284
16285 cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_ATOMIC64_T 1
16287 _ACEOF
16288
16289
16290 else
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 have_atomic64_t=no
16295
16296
16297
16298 fi
16299
16300 rm -Rf build
16301
16302
16303
16304 if test "x$enable_atomic_spinlocks" = xcheck; then
16305
16306 if test "x$have_atomic64_t" = xyes; then
16307
16308 enable_atomic_spinlocks=no
16309
16310 else
16311
16312 enable_atomic_spinlocks=yes
16313
16314 fi
16315
16316
16317 fi
16318
16319
16320 if test "x$enable_atomic_spinlocks" = xyes; then
16321
16322
16323 cat >>confdefs.h <<\_ACEOF
16324 #define ATOMIC_SPINLOCK 1
16325 _ACEOF
16326
16327
16328 else
16329
16330 if test "x$have_atomic64_t" = xno; then
16331
16332 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16334 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16335 See \`config.log' for more details." >&5
16336 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16337 See \`config.log' for more details." >&2;}
16338 { (exit 1); exit 1; }; }; }
16339
16340 fi
16341
16342
16343 fi
16344
16345
16346 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16347 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16348 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16349 $as_echo "$enable_atomic_spinlocks" >&6; }
16350
16351 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16352 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16353 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16354 $as_echo "$have_atomic64_t" >&6; }
16355
16356 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16357 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16358
16359
16360 cat confdefs.h - <<_ACEOF >conftest.c
16361 /* confdefs.h. */
16362 _ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366
16367
16368 #include <asm/atomic.h>
16369 #include <asm/system.h>
16370
16371 int
16372 main (void)
16373 {
16374
16375 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16376
16377 ;
16378 return 0;
16379 }
16380
16381 _ACEOF
16382
16383
16384 rm -Rf build && mkdir -p build
16385 echo "obj-m := conftest.o" >build/Makefile
16386 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388 (eval $ac_try) 2>&5
16389 ac_status=$?
16390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16394 ac_status=$?
16395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16397
16398 { $as_echo "$as_me:$LINENO: result: yes" >&5
16399 $as_echo "yes" >&6; }
16400
16401 cat >>confdefs.h <<\_ACEOF
16402 #define HAVE_ATOMIC64_CMPXCHG 1
16403 _ACEOF
16404
16405
16406 else
16407 $as_echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16409
16410 { $as_echo "$as_me:$LINENO: result: no" >&5
16411 $as_echo "no" >&6; }
16412
16413
16414
16415 fi
16416
16417 rm -Rf build
16418
16419
16420
16421 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16422 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16423
16424
16425 cat confdefs.h - <<_ACEOF >conftest.c
16426 /* confdefs.h. */
16427 _ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431
16432
16433 #include <asm/atomic.h>
16434
16435 int
16436 main (void)
16437 {
16438
16439 atomic64_xchg((atomic64_t *)NULL, 0);
16440
16441 ;
16442 return 0;
16443 }
16444
16445 _ACEOF
16446
16447
16448 rm -Rf build && mkdir -p build
16449 echo "obj-m := conftest.o" >build/Makefile
16450 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461
16462 { $as_echo "$as_me:$LINENO: result: yes" >&5
16463 $as_echo "yes" >&6; }
16464
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_ATOMIC64_XCHG 1
16467 _ACEOF
16468
16469
16470 else
16471 $as_echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16473
16474 { $as_echo "$as_me:$LINENO: result: no" >&5
16475 $as_echo "no" >&6; }
16476
16477
16478
16479 fi
16480
16481 rm -Rf build
16482
16483
16484
16485 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16486 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16487
16488
16489 cat confdefs.h - <<_ACEOF >conftest.c
16490 /* confdefs.h. */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16495
16496
16497 #include <linux/types.h>
16498
16499 int
16500 main (void)
16501 {
16502
16503 uintptr_t *ptr __attribute__ ((unused));
16504
16505 ;
16506 return 0;
16507 }
16508
16509 _ACEOF
16510
16511
16512 rm -Rf build && mkdir -p build
16513 echo "obj-m := conftest.o" >build/Makefile
16514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525
16526 { $as_echo "$as_me:$LINENO: result: yes" >&5
16527 $as_echo "yes" >&6; }
16528
16529 cat >>confdefs.h <<\_ACEOF
16530 #define HAVE_UINTPTR_T 1
16531 _ACEOF
16532
16533
16534 else
16535 $as_echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 { $as_echo "$as_me:$LINENO: result: no" >&5
16539 $as_echo "no" >&6; }
16540
16541
16542
16543 fi
16544
16545 rm -Rf build
16546
16547
16548
16549 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16550 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16551
16552
16553 cat confdefs.h - <<_ACEOF >conftest.c
16554 /* confdefs.h. */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559
16560
16561 #include <linux/workqueue.h>
16562
16563 int
16564 main (void)
16565 {
16566
16567 struct work_struct work __attribute__ ((unused));
16568 INIT_WORK(&work, NULL, NULL);
16569
16570 ;
16571 return 0;
16572 }
16573
16574 _ACEOF
16575
16576
16577 rm -Rf build && mkdir -p build
16578 echo "obj-m := conftest.o" >build/Makefile
16579 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16582 ac_status=$?
16583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590
16591 { $as_echo "$as_me:$LINENO: result: yes" >&5
16592 $as_echo "yes" >&6; }
16593
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_3ARGS_INIT_WORK 1
16596 _ACEOF
16597
16598
16599 else
16600 $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603 { $as_echo "$as_me:$LINENO: result: no" >&5
16604 $as_echo "no" >&6; }
16605
16606
16607
16608 fi
16609
16610 rm -Rf build
16611
16612
16613
16614 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16615 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16616
16617
16618 cat confdefs.h - <<_ACEOF >conftest.c
16619 /* confdefs.h. */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624
16625
16626 #include <linux/sysctl.h>
16627
16628 int
16629 main (void)
16630 {
16631
16632 (void) register_sysctl_table(NULL, 0);
16633
16634 ;
16635 return 0;
16636 }
16637
16638 _ACEOF
16639
16640
16641 rm -Rf build && mkdir -p build
16642 echo "obj-m := conftest.o" >build/Makefile
16643 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 (eval $ac_try) 2>&5
16651 ac_status=$?
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
16654
16655 { $as_echo "$as_me:$LINENO: result: yes" >&5
16656 $as_echo "yes" >&6; }
16657
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16660 _ACEOF
16661
16662
16663 else
16664 $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 { $as_echo "$as_me:$LINENO: result: no" >&5
16668 $as_echo "no" >&6; }
16669
16670
16671
16672 fi
16673
16674 rm -Rf build
16675
16676
16677
16678
16679 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16680 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16681
16682
16683 cat confdefs.h - <<_ACEOF >conftest.c
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689
16690
16691 #include <linux/mm.h>
16692
16693 int
16694 main (void)
16695 {
16696
16697 return set_shrinker(DEFAULT_SEEKS, NULL);
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_SET_SHRINKER 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 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16744 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16745 tmp_flags="$EXTRA_KCFLAGS"
16746 EXTRA_KCFLAGS="-Werror"
16747
16748
16749 cat confdefs.h - <<_ACEOF >conftest.c
16750 /* confdefs.h. */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755
16756
16757 #include <linux/mm.h>
16758
16759 int shrinker_cb(struct shrinker *, int, unsigned int);
16760
16761 int
16762 main (void)
16763 {
16764
16765 struct shrinker cache_shrinker = {
16766 .shrink = shrinker_cb,
16767 .seeks = DEFAULT_SEEKS,
16768 };
16769 register_shrinker(&cache_shrinker);
16770
16771 ;
16772 return 0;
16773 }
16774
16775 _ACEOF
16776
16777
16778 rm -Rf build && mkdir -p build
16779 echo "obj-m := conftest.o" >build/Makefile
16780 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791
16792 { $as_echo "$as_me:$LINENO: result: yes" >&5
16793 $as_echo "yes" >&6; }
16794
16795 cat >>confdefs.h <<\_ACEOF
16796 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
16797 _ACEOF
16798
16799
16800 else
16801 $as_echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 { $as_echo "$as_me:$LINENO: result: no" >&5
16805 $as_echo "no" >&6; }
16806
16807
16808
16809 fi
16810
16811 rm -Rf build
16812
16813
16814 EXTRA_KCFLAGS="$tmp_flags"
16815
16816 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16817 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
16818
16819
16820 cat confdefs.h - <<_ACEOF >conftest.c
16821 /* confdefs.h. */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16826
16827
16828 #include <linux/namei.h>
16829
16830 int
16831 main (void)
16832 {
16833
16834 struct nameidata nd __attribute__ ((unused));
16835
16836 nd.path.mnt = NULL;
16837 nd.path.dentry = NULL;
16838
16839 ;
16840 return 0;
16841 }
16842
16843 _ACEOF
16844
16845
16846 rm -Rf build && mkdir -p build
16847 echo "obj-m := conftest.o" >build/Makefile
16848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859
16860 { $as_echo "$as_me:$LINENO: result: yes" >&5
16861 $as_echo "yes" >&6; }
16862
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_PATH_IN_NAMEIDATA 1
16865 _ACEOF
16866
16867
16868 else
16869 $as_echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872 { $as_echo "$as_me:$LINENO: result: no" >&5
16873 $as_echo "no" >&6; }
16874
16875
16876
16877 fi
16878
16879 rm -Rf build
16880
16881
16882
16883
16884 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
16885 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
16886 grep -q -E '[[:space:]]task_curr[[:space:]]' \
16887 $LINUX_OBJ/Module*.symvers 2>/dev/null
16888 rc=$?
16889 if test $rc -ne 0; then
16890 export=0
16891 for file in kernel/sched.c; do
16892 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
16893 "$LINUX_OBJ/$file" 2>/dev/null
16894 rc=$?
16895 if test $rc -eq 0; then
16896 export=1
16897 break;
16898 fi
16899 done
16900 if test $export -eq 0; then
16901 { $as_echo "$as_me:$LINENO: result: no" >&5
16902 $as_echo "no" >&6; }
16903
16904 else
16905 { $as_echo "$as_me:$LINENO: result: yes" >&5
16906 $as_echo "yes" >&6; }
16907
16908 cat >>confdefs.h <<\_ACEOF
16909 #define HAVE_TASK_CURR 1
16910 _ACEOF
16911
16912 fi
16913 else
16914 { $as_echo "$as_me:$LINENO: result: yes" >&5
16915 $as_echo "yes" >&6; }
16916
16917 cat >>confdefs.h <<\_ACEOF
16918 #define HAVE_TASK_CURR 1
16919 _ACEOF
16920
16921 fi
16922
16923
16924 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
16925 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
16926
16927
16928 cat confdefs.h - <<_ACEOF >conftest.c
16929 /* confdefs.h. */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h. */
16934
16935
16936 #include <linux/sysctl.h>
16937
16938 int
16939 main (void)
16940 {
16941
16942 #ifndef CTL_UNNUMBERED
16943 #error CTL_UNNUMBERED undefined
16944 #endif
16945
16946 ;
16947 return 0;
16948 }
16949
16950 _ACEOF
16951
16952
16953 rm -Rf build && mkdir -p build
16954 echo "obj-m := conftest.o" >build/Makefile
16955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966
16967 { $as_echo "$as_me:$LINENO: result: yes" >&5
16968 $as_echo "yes" >&6; }
16969
16970 cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_CTL_UNNUMBERED 1
16972 _ACEOF
16973
16974
16975 else
16976 $as_echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16978
16979 { $as_echo "$as_me:$LINENO: result: no" >&5
16980 $as_echo "no" >&6; }
16981
16982
16983
16984 fi
16985
16986 rm -Rf build
16987
16988
16989
16990
16991 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
16992 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
16993
16994
16995 cat confdefs.h - <<_ACEOF >conftest.c
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001
17002
17003 #include <linux/sysctl.h>
17004
17005 int
17006 main (void)
17007 {
17008
17009 struct ctl_table ctl __attribute__ ((unused));
17010 ctl.ctl_name = 0;
17011
17012 ;
17013 return 0;
17014 }
17015
17016 _ACEOF
17017
17018
17019 rm -Rf build && mkdir -p build
17020 echo "obj-m := conftest.o" >build/Makefile
17021 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17029 ac_status=$?
17030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17032
17033 { $as_echo "$as_me:$LINENO: result: yes" >&5
17034 $as_echo "yes" >&6; }
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_CTL_NAME 1
17038 _ACEOF
17039
17040
17041 else
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 { $as_echo "$as_me:$LINENO: result: no" >&5
17046 $as_echo "no" >&6; }
17047
17048
17049
17050 fi
17051
17052 rm -Rf build
17053
17054
17055
17056 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17057 $as_echo_n "checking whether fls64() is available... " >&6; }
17058
17059
17060 cat confdefs.h - <<_ACEOF >conftest.c
17061 /* confdefs.h. */
17062 _ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066
17067
17068 #include <linux/bitops.h>
17069
17070 int
17071 main (void)
17072 {
17073
17074 return fls64(0);
17075
17076 ;
17077 return 0;
17078 }
17079
17080 _ACEOF
17081
17082
17083 rm -Rf build && mkdir -p build
17084 echo "obj-m := conftest.o" >build/Makefile
17085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17093 ac_status=$?
17094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096
17097 { $as_echo "$as_me:$LINENO: result: yes" >&5
17098 $as_echo "yes" >&6; }
17099
17100 cat >>confdefs.h <<\_ACEOF
17101 #define HAVE_FLS64 1
17102 _ACEOF
17103
17104
17105 else
17106 $as_echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 { $as_echo "$as_me:$LINENO: result: no" >&5
17110 $as_echo "no" >&6; }
17111
17112
17113
17114 fi
17115
17116 rm -Rf build
17117
17118
17119
17120
17121 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17122 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17123 grep -q -E '[[:space:]]device_create[[:space:]]' \
17124 $LINUX_OBJ/Module*.symvers 2>/dev/null
17125 rc=$?
17126 if test $rc -ne 0; then
17127 export=0
17128 for file in drivers/base/core.c; do
17129 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17130 "$LINUX_OBJ/$file" 2>/dev/null
17131 rc=$?
17132 if test $rc -eq 0; then
17133 export=1
17134 break;
17135 fi
17136 done
17137 if test $export -eq 0; then
17138 { $as_echo "$as_me:$LINENO: result: no" >&5
17139 $as_echo "no" >&6; }
17140
17141 else
17142 { $as_echo "$as_me:$LINENO: result: yes" >&5
17143 $as_echo "yes" >&6; }
17144
17145 cat >>confdefs.h <<\_ACEOF
17146 #define HAVE_DEVICE_CREATE 1
17147 _ACEOF
17148
17149 fi
17150 else
17151 { $as_echo "$as_me:$LINENO: result: yes" >&5
17152 $as_echo "yes" >&6; }
17153
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_DEVICE_CREATE 1
17156 _ACEOF
17157
17158 fi
17159
17160
17161
17162 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17163 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17164 tmp_flags="$EXTRA_KCFLAGS"
17165 EXTRA_KCFLAGS="-Werror"
17166
17167
17168 cat confdefs.h - <<_ACEOF >conftest.c
17169 /* confdefs.h. */
17170 _ACEOF
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17174
17175
17176 #include <linux/device.h>
17177
17178 int
17179 main (void)
17180 {
17181
17182 device_create(NULL, NULL, 0, NULL, "%d", 1);
17183
17184 ;
17185 return 0;
17186 }
17187
17188 _ACEOF
17189
17190
17191 rm -Rf build && mkdir -p build
17192 echo "obj-m := conftest.o" >build/Makefile
17193 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; }; then
17204
17205 { $as_echo "$as_me:$LINENO: result: yes" >&5
17206 $as_echo "yes" >&6; }
17207
17208 cat >>confdefs.h <<\_ACEOF
17209 #define HAVE_5ARGS_DEVICE_CREATE 1
17210 _ACEOF
17211
17212
17213 else
17214 $as_echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 { $as_echo "$as_me:$LINENO: result: no" >&5
17218 $as_echo "no" >&6; }
17219
17220
17221
17222 fi
17223
17224 rm -Rf build
17225
17226
17227 EXTRA_KCFLAGS="$tmp_flags"
17228
17229
17230 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17231 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17232 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17233 $LINUX_OBJ/Module*.symvers 2>/dev/null
17234 rc=$?
17235 if test $rc -ne 0; then
17236 export=0
17237 for file in drivers/base/class.c; do
17238 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17239 "$LINUX_OBJ/$file" 2>/dev/null
17240 rc=$?
17241 if test $rc -eq 0; then
17242 export=1
17243 break;
17244 fi
17245 done
17246 if test $export -eq 0; then
17247 { $as_echo "$as_me:$LINENO: result: no" >&5
17248 $as_echo "no" >&6; }
17249
17250 else
17251 { $as_echo "$as_me:$LINENO: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253
17254 cat >>confdefs.h <<\_ACEOF
17255 #define HAVE_CLASS_DEVICE_CREATE 1
17256 _ACEOF
17257
17258 fi
17259 else
17260 { $as_echo "$as_me:$LINENO: result: yes" >&5
17261 $as_echo "yes" >&6; }
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_CLASS_DEVICE_CREATE 1
17265 _ACEOF
17266
17267 fi
17268
17269
17270
17271 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17272 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17273 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17274 $LINUX_OBJ/Module*.symvers 2>/dev/null
17275 rc=$?
17276 if test $rc -ne 0; then
17277 export=0
17278 for file in kernel/time.c; do
17279 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17280 "$LINUX_OBJ/$file" 2>/dev/null
17281 rc=$?
17282 if test $rc -eq 0; then
17283 export=1
17284 break;
17285 fi
17286 done
17287 if test $export -eq 0; then
17288 { $as_echo "$as_me:$LINENO: result: no" >&5
17289 $as_echo "no" >&6; }
17290
17291 else
17292 { $as_echo "$as_me:$LINENO: result: yes" >&5
17293 $as_echo "yes" >&6; }
17294
17295 cat >>confdefs.h <<\_ACEOF
17296 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17297 _ACEOF
17298
17299 fi
17300 else
17301 { $as_echo "$as_me:$LINENO: result: yes" >&5
17302 $as_echo "yes" >&6; }
17303
17304 cat >>confdefs.h <<\_ACEOF
17305 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17306 _ACEOF
17307
17308 fi
17309
17310
17311
17312 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17313 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17314
17315
17316 cat confdefs.h - <<_ACEOF >conftest.c
17317 /* confdefs.h. */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17322
17323
17324 #include <linux/time.h>
17325 void set_normalized_timespec(struct timespec *ts,
17326 time_t sec, long nsec) { }
17327
17328 int
17329 main (void)
17330 {
17331
17332 ;
17333 return 0;
17334 }
17335
17336 _ACEOF
17337
17338
17339 rm -Rf build && mkdir -p build
17340 echo "obj-m := conftest.o" >build/Makefile
17341 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17349 ac_status=$?
17350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17352
17353 { $as_echo "$as_me:$LINENO: result: no" >&5
17354 $as_echo "no" >&6; }
17355
17356 else
17357 $as_echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17359
17360 { $as_echo "$as_me:$LINENO: result: yes" >&5
17361 $as_echo "yes" >&6; }
17362
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17365 _ACEOF
17366
17367
17368
17369
17370 fi
17371
17372 rm -Rf build
17373
17374
17375
17376
17377 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17378 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17379
17380
17381 cat confdefs.h - <<_ACEOF >conftest.c
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387
17388
17389 #include <linux/time.h>
17390
17391 int
17392 main (void)
17393 {
17394
17395 struct timespec a = { 0 };
17396 struct timespec b = { 0 };
17397 struct timespec c __attribute__ ((unused));
17398 c = timespec_sub(a, b);
17399
17400 ;
17401 return 0;
17402 }
17403
17404 _ACEOF
17405
17406
17407 rm -Rf build && mkdir -p build
17408 echo "obj-m := conftest.o" >build/Makefile
17409 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17416 (eval $ac_try) 2>&5
17417 ac_status=$?
17418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420
17421 { $as_echo "$as_me:$LINENO: result: yes" >&5
17422 $as_echo "yes" >&6; }
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_TIMESPEC_SUB 1
17426 _ACEOF
17427
17428
17429 else
17430 $as_echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 { $as_echo "$as_me:$LINENO: result: no" >&5
17434 $as_echo "no" >&6; }
17435
17436
17437
17438 fi
17439
17440 rm -Rf build
17441
17442
17443
17444
17445 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17446 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17447
17448
17449 cat confdefs.h - <<_ACEOF >conftest.c
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455
17456
17457 #include <linux/utsname.h>
17458
17459 int
17460 main (void)
17461 {
17462
17463 struct new_utsname *a __attribute__ ((unused));
17464 a = init_utsname();
17465
17466 ;
17467 return 0;
17468 }
17469
17470 _ACEOF
17471
17472
17473 rm -Rf build && mkdir -p build
17474 echo "obj-m := conftest.o" >build/Makefile
17475 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17486
17487 { $as_echo "$as_me:$LINENO: result: yes" >&5
17488 $as_echo "yes" >&6; }
17489
17490 cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_INIT_UTSNAME 1
17492 _ACEOF
17493
17494
17495 else
17496 $as_echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 { $as_echo "$as_me:$LINENO: result: no" >&5
17500 $as_echo "no" >&6; }
17501
17502
17503
17504 fi
17505
17506 rm -Rf build
17507
17508
17509
17510
17511 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17512 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17513
17514
17515 cat confdefs.h - <<_ACEOF >conftest.c
17516 /* confdefs.h. */
17517 _ACEOF
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521
17522
17523 #include <linux/fdtable.h>
17524
17525 int
17526 main (void)
17527 {
17528
17529 return 0;
17530
17531 ;
17532 return 0;
17533 }
17534
17535 _ACEOF
17536
17537
17538 rm -Rf build && mkdir -p build
17539 echo "obj-m := conftest.o" >build/Makefile
17540 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17548 ac_status=$?
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551
17552
17553 cat >>confdefs.h <<\_ACEOF
17554 #define HAVE_FDTABLE_HEADER 1
17555 _ACEOF
17556
17557 { $as_echo "$as_me:$LINENO: result: yes" >&5
17558 $as_echo "yes" >&6; }
17559
17560
17561 else
17562 $as_echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565 { $as_echo "$as_me:$LINENO: result: no" >&5
17566 $as_echo "no" >&6; }
17567
17568
17569
17570
17571 fi
17572
17573 rm -Rf build
17574
17575
17576
17577
17578
17579 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17580 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17581
17582
17583 cat confdefs.h - <<_ACEOF >conftest.c
17584 /* confdefs.h. */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589
17590
17591 #include <linux/sched.h>
17592 #include <linux/file.h>
17593 #ifdef HAVE_FDTABLE_HEADER
17594 #include <linux/fdtable.h>
17595 #endif
17596
17597 int
17598 main (void)
17599 {
17600
17601 struct files_struct *files = current->files;
17602 struct fdtable *fdt __attribute__ ((unused));
17603 fdt = files_fdtable(files);
17604
17605 ;
17606 return 0;
17607 }
17608
17609 _ACEOF
17610
17611
17612 rm -Rf build && mkdir -p build
17613 echo "obj-m := conftest.o" >build/Makefile
17614 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616 (eval $ac_try) 2>&5
17617 ac_status=$?
17618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625
17626 { $as_echo "$as_me:$LINENO: result: yes" >&5
17627 $as_echo "yes" >&6; }
17628
17629 cat >>confdefs.h <<\_ACEOF
17630 #define HAVE_FILES_FDTABLE 1
17631 _ACEOF
17632
17633
17634 else
17635 $as_echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 { $as_echo "$as_me:$LINENO: result: no" >&5
17639 $as_echo "no" >&6; }
17640
17641
17642
17643 fi
17644
17645 rm -Rf build
17646
17647
17648
17649
17650 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17651 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17652
17653
17654 cat confdefs.h - <<_ACEOF >conftest.c
17655 /* confdefs.h. */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h. */
17660
17661
17662 #include <linux/uaccess.h>
17663
17664 int
17665 main (void)
17666 {
17667
17668 return 0;
17669
17670 ;
17671 return 0;
17672 }
17673
17674 _ACEOF
17675
17676
17677 rm -Rf build && mkdir -p build
17678 echo "obj-m := conftest.o" >build/Makefile
17679 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17681 (eval $ac_try) 2>&5
17682 ac_status=$?
17683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690
17691
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_UACCESS_HEADER 1
17694 _ACEOF
17695
17696 { $as_echo "$as_me:$LINENO: result: yes" >&5
17697 $as_echo "yes" >&6; }
17698
17699
17700 else
17701 $as_echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 { $as_echo "$as_me:$LINENO: result: no" >&5
17705 $as_echo "no" >&6; }
17706
17707
17708
17709
17710 fi
17711
17712 rm -Rf build
17713
17714
17715
17716
17717
17718 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17719 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17720
17721
17722 cat confdefs.h - <<_ACEOF >conftest.c
17723 /* confdefs.h. */
17724 _ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728
17729
17730 #include <linux/slab.h>
17731
17732 int
17733 main (void)
17734 {
17735
17736 void *a __attribute__ ((unused));
17737 a = kmalloc_node(1, GFP_KERNEL, 0);
17738
17739 ;
17740 return 0;
17741 }
17742
17743 _ACEOF
17744
17745
17746 rm -Rf build && mkdir -p build
17747 echo "obj-m := conftest.o" >build/Makefile
17748 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759
17760 { $as_echo "$as_me:$LINENO: result: yes" >&5
17761 $as_echo "yes" >&6; }
17762
17763 cat >>confdefs.h <<\_ACEOF
17764 #define HAVE_KMALLOC_NODE 1
17765 _ACEOF
17766
17767
17768 else
17769 $as_echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772 { $as_echo "$as_me:$LINENO: result: no" >&5
17773 $as_echo "no" >&6; }
17774
17775
17776
17777 fi
17778
17779 rm -Rf build
17780
17781
17782
17783
17784 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17785 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17786 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17787 $LINUX_OBJ/Module*.symvers 2>/dev/null
17788 rc=$?
17789 if test $rc -ne 0; then
17790 export=0
17791 for file in ; do
17792 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17793 "$LINUX_OBJ/$file" 2>/dev/null
17794 rc=$?
17795 if test $rc -eq 0; then
17796 export=1
17797 break;
17798 fi
17799 done
17800 if test $export -eq 0; then
17801 { $as_echo "$as_me:$LINENO: result: no" >&5
17802 $as_echo "no" >&6; }
17803
17804 else
17805 { $as_echo "$as_me:$LINENO: result: yes" >&5
17806 $as_echo "yes" >&6; }
17807
17808 cat >>confdefs.h <<\_ACEOF
17809 #define HAVE_MONOTONIC_CLOCK 1
17810 _ACEOF
17811
17812 fi
17813 else
17814 { $as_echo "$as_me:$LINENO: result: yes" >&5
17815 $as_echo "yes" >&6; }
17816
17817 cat >>confdefs.h <<\_ACEOF
17818 #define HAVE_MONOTONIC_CLOCK 1
17819 _ACEOF
17820
17821 fi
17822
17823
17824
17825 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
17826 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
17827
17828
17829 cat confdefs.h - <<_ACEOF >conftest.c
17830 /* confdefs.h. */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835
17836
17837 #include <linux/fs.h>
17838 #include <linux/mutex.h>
17839
17840 int
17841 main (void)
17842 {
17843
17844 struct inode i;
17845 mutex_init(&i.i_mutex);
17846
17847 ;
17848 return 0;
17849 }
17850
17851 _ACEOF
17852
17853
17854 rm -Rf build && mkdir -p build
17855 echo "obj-m := conftest.o" >build/Makefile
17856 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17867
17868 { $as_echo "$as_me:$LINENO: result: yes" >&5
17869 $as_echo "yes" >&6; }
17870
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HAVE_INODE_I_MUTEX 1
17873 _ACEOF
17874
17875
17876 else
17877 $as_echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 { $as_echo "$as_me:$LINENO: result: no" >&5
17881 $as_echo "no" >&6; }
17882
17883
17884
17885 fi
17886
17887 rm -Rf build
17888
17889
17890
17891
17892 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
17893 $as_echo_n "checking whether struct mutex has owner... " >&6; }
17894
17895
17896 cat confdefs.h - <<_ACEOF >conftest.c
17897 /* confdefs.h. */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h. */
17902
17903
17904 #include <linux/mutex.h>
17905
17906 int
17907 main (void)
17908 {
17909
17910 struct mutex mtx __attribute__ ((unused));
17911 mtx.owner = NULL;
17912
17913 ;
17914 return 0;
17915 }
17916
17917 _ACEOF
17918
17919
17920 rm -Rf build && mkdir -p build
17921 echo "obj-m := conftest.o" >build/Makefile
17922 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; }; then
17933
17934 { $as_echo "$as_me:$LINENO: result: yes" >&5
17935 $as_echo "yes" >&6; }
17936
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_MUTEX_OWNER 1
17939 _ACEOF
17940
17941
17942 else
17943 $as_echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 { $as_echo "$as_me:$LINENO: result: no" >&5
17947 $as_echo "no" >&6; }
17948
17949
17950
17951 fi
17952
17953 rm -Rf build
17954
17955
17956
17957
17958 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
17959 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
17960 tmp_flags="$EXTRA_KCFLAGS"
17961 EXTRA_KCFLAGS="-Werror"
17962
17963
17964 cat confdefs.h - <<_ACEOF >conftest.c
17965 /* confdefs.h. */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970
17971
17972 #include <linux/mutex.h>
17973
17974 int
17975 main (void)
17976 {
17977
17978 struct mutex mtx __attribute__ ((unused));
17979 mtx.owner = current;
17980
17981 ;
17982 return 0;
17983 }
17984
17985 _ACEOF
17986
17987
17988 rm -Rf build && mkdir -p build
17989 echo "obj-m := conftest.o" >build/Makefile
17990 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001
18002 { $as_echo "$as_me:$LINENO: result: yes" >&5
18003 $as_echo "yes" >&6; }
18004
18005 cat >>confdefs.h <<\_ACEOF
18006 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18007 _ACEOF
18008
18009
18010 else
18011 $as_echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18013
18014 { $as_echo "$as_me:$LINENO: result: no" >&5
18015 $as_echo "no" >&6; }
18016
18017
18018
18019 fi
18020
18021 rm -Rf build
18022
18023
18024 EXTRA_KCFLAGS="$tmp_flags"
18025
18026
18027 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18028 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18029
18030
18031 cat confdefs.h - <<_ACEOF >conftest.c
18032 /* confdefs.h. */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037
18038
18039 #include <linux/mutex.h>
18040
18041 int
18042 main (void)
18043 {
18044
18045 struct mutex mutex;
18046 mutex_init(&mutex);
18047 mutex_lock_nested(&mutex, 0);
18048
18049 ;
18050 return 0;
18051 }
18052
18053 _ACEOF
18054
18055
18056 rm -Rf build && mkdir -p build
18057 echo "obj-m := conftest.o" >build/Makefile
18058 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069
18070 { $as_echo "$as_me:$LINENO: result: yes" >&5
18071 $as_echo "yes" >&6; }
18072
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_MUTEX_LOCK_NESTED 1
18075 _ACEOF
18076
18077
18078 else
18079 $as_echo "$as_me: failed program was:" >&5
18080 sed 's/^/| /' conftest.$ac_ext >&5
18081
18082 { $as_echo "$as_me:$LINENO: result: no" >&5
18083 $as_echo "no" >&6; }
18084
18085
18086
18087 fi
18088
18089 rm -Rf build
18090
18091
18092
18093
18094 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18095 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18096
18097
18098 cat confdefs.h - <<_ACEOF >conftest.c
18099 /* confdefs.h. */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104
18105
18106 #include <linux/smp.h>
18107
18108 int
18109 main (void)
18110 {
18111
18112 on_each_cpu(NULL, NULL, 0);
18113
18114 ;
18115 return 0;
18116 }
18117
18118 _ACEOF
18119
18120
18121 rm -Rf build && mkdir -p build
18122 echo "obj-m := conftest.o" >build/Makefile
18123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
18134
18135 { $as_echo "$as_me:$LINENO: result: yes" >&5
18136 $as_echo "yes" >&6; }
18137
18138 cat >>confdefs.h <<\_ACEOF
18139 #define HAVE_3ARGS_ON_EACH_CPU 1
18140 _ACEOF
18141
18142
18143 else
18144 $as_echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18146
18147 { $as_echo "$as_me:$LINENO: result: no" >&5
18148 $as_echo "no" >&6; }
18149
18150
18151
18152 fi
18153
18154 rm -Rf build
18155
18156
18157
18158
18159 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18160 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18161 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18162 $LINUX_OBJ/Module*.symvers 2>/dev/null
18163 rc=$?
18164 if test $rc -ne 0; then
18165 export=0
18166 for file in ; do
18167 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18168 "$LINUX_OBJ/$file" 2>/dev/null
18169 rc=$?
18170 if test $rc -eq 0; then
18171 export=1
18172 break;
18173 fi
18174 done
18175 if test $export -eq 0; then
18176 { $as_echo "$as_me:$LINENO: result: no" >&5
18177 $as_echo "no" >&6; }
18178
18179 else
18180 { $as_echo "$as_me:$LINENO: result: yes" >&5
18181 $as_echo "yes" >&6; }
18182
18183 cat >>confdefs.h <<\_ACEOF
18184 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18185 _ACEOF
18186
18187 fi
18188 else
18189 { $as_echo "$as_me:$LINENO: result: yes" >&5
18190 $as_echo "yes" >&6; }
18191
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_KALLSYMS_LOOKUP_NAME 1
18194 _ACEOF
18195
18196 fi
18197
18198
18199
18200 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18201 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18202 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18203 $LINUX_OBJ/Module*.symvers 2>/dev/null
18204 rc=$?
18205 if test $rc -ne 0; then
18206 export=0
18207 for file in ; do
18208 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18209 "$LINUX_OBJ/$file" 2>/dev/null
18210 rc=$?
18211 if test $rc -eq 0; then
18212 export=1
18213 break;
18214 fi
18215 done
18216 if test $export -eq 0; then
18217 { $as_echo "$as_me:$LINENO: result: no" >&5
18218 $as_echo "no" >&6; }
18219
18220 else
18221 { $as_echo "$as_me:$LINENO: result: yes" >&5
18222 $as_echo "yes" >&6; }
18223
18224 cat >>confdefs.h <<\_ACEOF
18225 #define HAVE_GET_VMALLOC_INFO 1
18226 _ACEOF
18227
18228 fi
18229 else
18230 { $as_echo "$as_me:$LINENO: result: yes" >&5
18231 $as_echo "yes" >&6; }
18232
18233 cat >>confdefs.h <<\_ACEOF
18234 #define HAVE_GET_VMALLOC_INFO 1
18235 _ACEOF
18236
18237 fi
18238
18239
18240
18241 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18242 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18243 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18244 rc=$?
18245 if test $rc -eq 0; then
18246 { $as_echo "$as_me:$LINENO: result: yes" >&5
18247 $as_echo "yes" >&6; }
18248
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_PGDAT_HELPERS 1
18251 _ACEOF
18252
18253 else
18254 { $as_echo "$as_me:$LINENO: result: no" >&5
18255 $as_echo "no" >&6; }
18256 fi
18257
18258
18259 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18260 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18261 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18262 $LINUX_OBJ/Module*.symvers 2>/dev/null
18263 rc=$?
18264 if test $rc -ne 0; then
18265 export=0
18266 for file in ; do
18267 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18268 "$LINUX_OBJ/$file" 2>/dev/null
18269 rc=$?
18270 if test $rc -eq 0; then
18271 export=1
18272 break;
18273 fi
18274 done
18275 if test $export -eq 0; then
18276 { $as_echo "$as_me:$LINENO: result: no" >&5
18277 $as_echo "no" >&6; }
18278
18279 else
18280 { $as_echo "$as_me:$LINENO: result: yes" >&5
18281 $as_echo "yes" >&6; }
18282
18283 cat >>confdefs.h <<\_ACEOF
18284 #define HAVE_FIRST_ONLINE_PGDAT 1
18285 _ACEOF
18286
18287 fi
18288 else
18289 { $as_echo "$as_me:$LINENO: result: yes" >&5
18290 $as_echo "yes" >&6; }
18291
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_FIRST_ONLINE_PGDAT 1
18294 _ACEOF
18295
18296 fi
18297
18298
18299
18300 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18301 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18302 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18303 $LINUX_OBJ/Module*.symvers 2>/dev/null
18304 rc=$?
18305 if test $rc -ne 0; then
18306 export=0
18307 for file in ; do
18308 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18309 "$LINUX_OBJ/$file" 2>/dev/null
18310 rc=$?
18311 if test $rc -eq 0; then
18312 export=1
18313 break;
18314 fi
18315 done
18316 if test $export -eq 0; then
18317 { $as_echo "$as_me:$LINENO: result: no" >&5
18318 $as_echo "no" >&6; }
18319
18320 else
18321 { $as_echo "$as_me:$LINENO: result: yes" >&5
18322 $as_echo "yes" >&6; }
18323
18324 cat >>confdefs.h <<\_ACEOF
18325 #define HAVE_NEXT_ONLINE_PGDAT 1
18326 _ACEOF
18327
18328 fi
18329 else
18330 { $as_echo "$as_me:$LINENO: result: yes" >&5
18331 $as_echo "yes" >&6; }
18332
18333 cat >>confdefs.h <<\_ACEOF
18334 #define HAVE_NEXT_ONLINE_PGDAT 1
18335 _ACEOF
18336
18337 fi
18338
18339
18340
18341 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18342 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18343 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18344 $LINUX_OBJ/Module*.symvers 2>/dev/null
18345 rc=$?
18346 if test $rc -ne 0; then
18347 export=0
18348 for file in ; do
18349 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18350 "$LINUX_OBJ/$file" 2>/dev/null
18351 rc=$?
18352 if test $rc -eq 0; then
18353 export=1
18354 break;
18355 fi
18356 done
18357 if test $export -eq 0; then
18358 { $as_echo "$as_me:$LINENO: result: no" >&5
18359 $as_echo "no" >&6; }
18360
18361 else
18362 { $as_echo "$as_me:$LINENO: result: yes" >&5
18363 $as_echo "yes" >&6; }
18364
18365 cat >>confdefs.h <<\_ACEOF
18366 #define HAVE_NEXT_ZONE 1
18367 _ACEOF
18368
18369 fi
18370 else
18371 { $as_echo "$as_me:$LINENO: result: yes" >&5
18372 $as_echo "yes" >&6; }
18373
18374 cat >>confdefs.h <<\_ACEOF
18375 #define HAVE_NEXT_ZONE 1
18376 _ACEOF
18377
18378 fi
18379
18380
18381
18382 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18383 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18384 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18385 $LINUX_OBJ/Module*.symvers 2>/dev/null
18386 rc=$?
18387 if test $rc -ne 0; then
18388 export=0
18389 for file in ; do
18390 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18391 "$LINUX_OBJ/$file" 2>/dev/null
18392 rc=$?
18393 if test $rc -eq 0; then
18394 export=1
18395 break;
18396 fi
18397 done
18398 if test $export -eq 0; then
18399 { $as_echo "$as_me:$LINENO: result: no" >&5
18400 $as_echo "no" >&6; }
18401
18402 else
18403 { $as_echo "$as_me:$LINENO: result: yes" >&5
18404 $as_echo "yes" >&6; }
18405
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_PGDAT_LIST 1
18408 _ACEOF
18409
18410 fi
18411 else
18412 { $as_echo "$as_me:$LINENO: result: yes" >&5
18413 $as_echo "yes" >&6; }
18414
18415 cat >>confdefs.h <<\_ACEOF
18416 #define HAVE_PGDAT_LIST 1
18417 _ACEOF
18418
18419 fi
18420
18421
18422
18423 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18424 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18425
18426
18427 cat confdefs.h - <<_ACEOF >conftest.c
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433
18434
18435 #include <linux/mm.h>
18436
18437 int
18438 main (void)
18439 {
18440
18441 unsigned long state __attribute__ ((unused));
18442 state = global_page_state(0);
18443
18444 ;
18445 return 0;
18446 }
18447
18448 _ACEOF
18449
18450
18451 rm -Rf build && mkdir -p build
18452 echo "obj-m := conftest.o" >build/Makefile
18453 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464
18465 { $as_echo "$as_me:$LINENO: result: yes" >&5
18466 $as_echo "yes" >&6; }
18467
18468 cat >>confdefs.h <<\_ACEOF
18469 #define HAVE_GLOBAL_PAGE_STATE 1
18470 _ACEOF
18471
18472
18473 else
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 { $as_echo "$as_me:$LINENO: result: no" >&5
18478 $as_echo "no" >&6; }
18479
18480
18481
18482 fi
18483
18484 rm -Rf build
18485
18486
18487
18488
18489 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18490 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18491
18492
18493 cat confdefs.h - <<_ACEOF >conftest.c
18494 /* confdefs.h. */
18495 _ACEOF
18496 cat confdefs.h >>conftest.$ac_ext
18497 cat >>conftest.$ac_ext <<_ACEOF
18498 /* end confdefs.h. */
18499
18500
18501 #include <linux/mm.h>
18502
18503 int
18504 main (void)
18505 {
18506
18507 enum zone_stat_item zsi __attribute__ ((unused));
18508 zsi = NR_FREE_PAGES;
18509
18510 ;
18511 return 0;
18512 }
18513
18514 _ACEOF
18515
18516
18517 rm -Rf build && mkdir -p build
18518 echo "obj-m := conftest.o" >build/Makefile
18519 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530
18531 { $as_echo "$as_me:$LINENO: result: yes" >&5
18532 $as_echo "yes" >&6; }
18533
18534 cat >>confdefs.h <<\_ACEOF
18535 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18536 _ACEOF
18537
18538
18539 else
18540 $as_echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 { $as_echo "$as_me:$LINENO: result: no" >&5
18544 $as_echo "no" >&6; }
18545
18546
18547
18548 fi
18549
18550 rm -Rf build
18551
18552
18553
18554
18555 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18556 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18557
18558
18559 cat confdefs.h - <<_ACEOF >conftest.c
18560 /* confdefs.h. */
18561 _ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565
18566
18567 #include <linux/mm.h>
18568
18569 int
18570 main (void)
18571 {
18572
18573 enum zone_stat_item zsi __attribute__ ((unused));
18574 zsi = NR_INACTIVE;
18575
18576 ;
18577 return 0;
18578 }
18579
18580 _ACEOF
18581
18582
18583 rm -Rf build && mkdir -p build
18584 echo "obj-m := conftest.o" >build/Makefile
18585 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
18589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596
18597 { $as_echo "$as_me:$LINENO: result: yes" >&5
18598 $as_echo "yes" >&6; }
18599
18600 cat >>confdefs.h <<\_ACEOF
18601 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18602 _ACEOF
18603
18604
18605 else
18606 $as_echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609 { $as_echo "$as_me:$LINENO: result: no" >&5
18610 $as_echo "no" >&6; }
18611
18612
18613
18614 fi
18615
18616 rm -Rf build
18617
18618
18619
18620 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18621 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18622
18623
18624 cat confdefs.h - <<_ACEOF >conftest.c
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630
18631
18632 #include <linux/mm.h>
18633
18634 int
18635 main (void)
18636 {
18637
18638 enum zone_stat_item zsi __attribute__ ((unused));
18639 zsi = NR_INACTIVE_ANON;
18640
18641 ;
18642 return 0;
18643 }
18644
18645 _ACEOF
18646
18647
18648 rm -Rf build && mkdir -p build
18649 echo "obj-m := conftest.o" >build/Makefile
18650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; }; then
18661
18662 { $as_echo "$as_me:$LINENO: result: yes" >&5
18663 $as_echo "yes" >&6; }
18664
18665 cat >>confdefs.h <<\_ACEOF
18666 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
18667 _ACEOF
18668
18669
18670 else
18671 $as_echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.$ac_ext >&5
18673
18674 { $as_echo "$as_me:$LINENO: result: no" >&5
18675 $as_echo "no" >&6; }
18676
18677
18678
18679 fi
18680
18681 rm -Rf build
18682
18683
18684
18685 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18686 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18687
18688
18689 cat confdefs.h - <<_ACEOF >conftest.c
18690 /* confdefs.h. */
18691 _ACEOF
18692 cat confdefs.h >>conftest.$ac_ext
18693 cat >>conftest.$ac_ext <<_ACEOF
18694 /* end confdefs.h. */
18695
18696
18697 #include <linux/mm.h>
18698
18699 int
18700 main (void)
18701 {
18702
18703 enum zone_stat_item zsi __attribute__ ((unused));
18704 zsi = NR_INACTIVE_FILE;
18705
18706 ;
18707 return 0;
18708 }
18709
18710 _ACEOF
18711
18712
18713 rm -Rf build && mkdir -p build
18714 echo "obj-m := conftest.o" >build/Makefile
18715 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717 (eval $ac_try) 2>&5
18718 ac_status=$?
18719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726
18727 { $as_echo "$as_me:$LINENO: result: yes" >&5
18728 $as_echo "yes" >&6; }
18729
18730 cat >>confdefs.h <<\_ACEOF
18731 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18732 _ACEOF
18733
18734
18735 else
18736 $as_echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 { $as_echo "$as_me:$LINENO: result: no" >&5
18740 $as_echo "no" >&6; }
18741
18742
18743
18744 fi
18745
18746 rm -Rf build
18747
18748
18749
18750
18751 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18752 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18753
18754
18755 cat confdefs.h - <<_ACEOF >conftest.c
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761
18762
18763 #include <linux/mm.h>
18764
18765 int
18766 main (void)
18767 {
18768
18769 enum zone_stat_item zsi __attribute__ ((unused));
18770 zsi = NR_ACTIVE;
18771
18772 ;
18773 return 0;
18774 }
18775
18776 _ACEOF
18777
18778
18779 rm -Rf build && mkdir -p build
18780 echo "obj-m := conftest.o" >build/Makefile
18781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18788 (eval $ac_try) 2>&5
18789 ac_status=$?
18790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; }; then
18792
18793 { $as_echo "$as_me:$LINENO: result: yes" >&5
18794 $as_echo "yes" >&6; }
18795
18796 cat >>confdefs.h <<\_ACEOF
18797 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
18798 _ACEOF
18799
18800
18801 else
18802 $as_echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 { $as_echo "$as_me:$LINENO: result: no" >&5
18806 $as_echo "no" >&6; }
18807
18808
18809
18810 fi
18811
18812 rm -Rf build
18813
18814
18815
18816 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18817 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
18818
18819
18820 cat confdefs.h - <<_ACEOF >conftest.c
18821 /* confdefs.h. */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18826
18827
18828 #include <linux/mm.h>
18829
18830 int
18831 main (void)
18832 {
18833
18834 enum zone_stat_item zsi __attribute__ ((unused));
18835 zsi = NR_ACTIVE_ANON;
18836
18837 ;
18838 return 0;
18839 }
18840
18841 _ACEOF
18842
18843
18844 rm -Rf build && mkdir -p build
18845 echo "obj-m := conftest.o" >build/Makefile
18846 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18849 ac_status=$?
18850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857
18858 { $as_echo "$as_me:$LINENO: result: yes" >&5
18859 $as_echo "yes" >&6; }
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
18863 _ACEOF
18864
18865
18866 else
18867 $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 { $as_echo "$as_me:$LINENO: result: no" >&5
18871 $as_echo "no" >&6; }
18872
18873
18874
18875 fi
18876
18877 rm -Rf build
18878
18879
18880
18881 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
18882 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
18883
18884
18885 cat confdefs.h - <<_ACEOF >conftest.c
18886 /* confdefs.h. */
18887 _ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891
18892
18893 #include <linux/mm.h>
18894
18895 int
18896 main (void)
18897 {
18898
18899 enum zone_stat_item zsi __attribute__ ((unused));
18900 zsi = NR_ACTIVE_FILE;
18901
18902 ;
18903 return 0;
18904 }
18905
18906 _ACEOF
18907
18908
18909 rm -Rf build && mkdir -p build
18910 echo "obj-m := conftest.o" >build/Makefile
18911 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18914 ac_status=$?
18915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; }; then
18922
18923 { $as_echo "$as_me:$LINENO: result: yes" >&5
18924 $as_echo "yes" >&6; }
18925
18926 cat >>confdefs.h <<\_ACEOF
18927 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
18928 _ACEOF
18929
18930
18931 else
18932 $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 { $as_echo "$as_me:$LINENO: result: no" >&5
18936 $as_echo "no" >&6; }
18937
18938
18939
18940 fi
18941
18942 rm -Rf build
18943
18944
18945
18946
18947 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
18948 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
18949
18950
18951 cat confdefs.h - <<_ACEOF >conftest.c
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957
18958
18959
18960 int
18961 main (void)
18962 {
18963
18964 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
18965 #error "global_page_state needs NR_FREE_PAGES"
18966 #endif
18967
18968 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
18969 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
18970 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
18971 #error "global_page_state needs NR_ACTIVE*"
18972 #endif
18973
18974 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
18975 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
18976 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
18977 #error "global_page_state needs NR_INACTIVE*"
18978 #endif
18979
18980 ;
18981 return 0;
18982 }
18983
18984 _ACEOF
18985
18986
18987 rm -Rf build && mkdir -p build
18988 echo "obj-m := conftest.o" >build/Makefile
18989 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18991 (eval $ac_try) 2>&5
18992 ac_status=$?
18993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18996 (eval $ac_try) 2>&5
18997 ac_status=$?
18998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; }; then
19000
19001 { $as_echo "$as_me:$LINENO: result: no" >&5
19002 $as_echo "no" >&6; }
19003
19004 else
19005 $as_echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 { $as_echo "$as_me:$LINENO: result: yes" >&5
19009 $as_echo "yes" >&6; }
19010
19011 cat >>confdefs.h <<\_ACEOF
19012 #define NEED_GET_ZONE_COUNTS 1
19013 _ACEOF
19014
19015
19016 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19017 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19018 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19019 $LINUX_OBJ/Module*.symvers 2>/dev/null
19020 rc=$?
19021 if test $rc -ne 0; then
19022 export=0
19023 for file in ; do
19024 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19025 "$LINUX_OBJ/$file" 2>/dev/null
19026 rc=$?
19027 if test $rc -eq 0; then
19028 export=1
19029 break;
19030 fi
19031 done
19032 if test $export -eq 0; then
19033 { $as_echo "$as_me:$LINENO: result: no" >&5
19034 $as_echo "no" >&6; }
19035
19036 else
19037 { $as_echo "$as_me:$LINENO: result: yes" >&5
19038 $as_echo "yes" >&6; }
19039
19040 cat >>confdefs.h <<\_ACEOF
19041 #define HAVE_GET_ZONE_COUNTS 1
19042 _ACEOF
19043
19044 fi
19045 else
19046 { $as_echo "$as_me:$LINENO: result: yes" >&5
19047 $as_echo "yes" >&6; }
19048
19049 cat >>confdefs.h <<\_ACEOF
19050 #define HAVE_GET_ZONE_COUNTS 1
19051 _ACEOF
19052
19053 fi
19054
19055
19056
19057
19058 fi
19059
19060 rm -Rf build
19061
19062
19063
19064
19065 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19066 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19067 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19068 $LINUX_OBJ/Module*.symvers 2>/dev/null
19069 rc=$?
19070 if test $rc -ne 0; then
19071 export=0
19072 for file in ; do
19073 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19074 "$LINUX_OBJ/$file" 2>/dev/null
19075 rc=$?
19076 if test $rc -eq 0; then
19077 export=1
19078 break;
19079 fi
19080 done
19081 if test $export -eq 0; then
19082 { $as_echo "$as_me:$LINENO: result: no" >&5
19083 $as_echo "no" >&6; }
19084
19085 else
19086 { $as_echo "$as_me:$LINENO: result: yes" >&5
19087 $as_echo "yes" >&6; }
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define HAVE_USER_PATH_DIR 1
19091 _ACEOF
19092
19093 fi
19094 else
19095 { $as_echo "$as_me:$LINENO: result: yes" >&5
19096 $as_echo "yes" >&6; }
19097
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_USER_PATH_DIR 1
19100 _ACEOF
19101
19102 fi
19103
19104
19105
19106 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19107 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19108 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19109 $LINUX_OBJ/Module*.symvers 2>/dev/null
19110 rc=$?
19111 if test $rc -ne 0; then
19112 export=0
19113 for file in ; do
19114 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19115 "$LINUX_OBJ/$file" 2>/dev/null
19116 rc=$?
19117 if test $rc -eq 0; then
19118 export=1
19119 break;
19120 fi
19121 done
19122 if test $export -eq 0; then
19123 { $as_echo "$as_me:$LINENO: result: no" >&5
19124 $as_echo "no" >&6; }
19125
19126 else
19127 { $as_echo "$as_me:$LINENO: result: yes" >&5
19128 $as_echo "yes" >&6; }
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_SET_FS_PWD 1
19132 _ACEOF
19133
19134 fi
19135 else
19136 { $as_echo "$as_me:$LINENO: result: yes" >&5
19137 $as_echo "yes" >&6; }
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_SET_FS_PWD 1
19141 _ACEOF
19142
19143 fi
19144
19145
19146 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19147 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19148
19149
19150 cat confdefs.h - <<_ACEOF >conftest.c
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156
19157
19158 #include <linux/sched.h>
19159 #include <linux/fs_struct.h>
19160
19161 int
19162 main (void)
19163 {
19164
19165 set_fs_pwd(NULL, NULL);
19166
19167 ;
19168 return 0;
19169 }
19170
19171 _ACEOF
19172
19173
19174 rm -Rf build && mkdir -p build
19175 echo "obj-m := conftest.o" >build/Makefile
19176 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187
19188 { $as_echo "$as_me:$LINENO: result: yes" >&5
19189 $as_echo "yes" >&6; }
19190
19191 cat >>confdefs.h <<\_ACEOF
19192 #define HAVE_2ARGS_SET_FS_PWD 1
19193 _ACEOF
19194
19195
19196 else
19197 $as_echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 { $as_echo "$as_me:$LINENO: result: no" >&5
19201 $as_echo "no" >&6; }
19202
19203
19204
19205 fi
19206
19207 rm -Rf build
19208
19209
19210
19211 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19212 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
19213
19214
19215 cat confdefs.h - <<_ACEOF >conftest.c
19216 /* confdefs.h. */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221
19222
19223 #include <linux/fs.h>
19224
19225 int
19226 main (void)
19227 {
19228
19229 vfs_unlink(NULL, NULL);
19230
19231 ;
19232 return 0;
19233 }
19234
19235 _ACEOF
19236
19237
19238 rm -Rf build && mkdir -p build
19239 echo "obj-m := conftest.o" >build/Makefile
19240 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251
19252 { $as_echo "$as_me:$LINENO: result: yes" >&5
19253 $as_echo "yes" >&6; }
19254
19255 cat >>confdefs.h <<\_ACEOF
19256 #define HAVE_2ARGS_VFS_UNLINK 1
19257 _ACEOF
19258
19259
19260 else
19261 $as_echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 { $as_echo "$as_me:$LINENO: result: no" >&5
19265 $as_echo "no" >&6; }
19266
19267
19268
19269 fi
19270
19271 rm -Rf build
19272
19273
19274
19275 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19276 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19277
19278
19279 cat confdefs.h - <<_ACEOF >conftest.c
19280 /* confdefs.h. */
19281 _ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19285
19286
19287 #include <linux/fs.h>
19288
19289 int
19290 main (void)
19291 {
19292
19293 vfs_rename(NULL, NULL, NULL, NULL);
19294
19295 ;
19296 return 0;
19297 }
19298
19299 _ACEOF
19300
19301
19302 rm -Rf build && mkdir -p build
19303 echo "obj-m := conftest.o" >build/Makefile
19304 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315
19316 { $as_echo "$as_me:$LINENO: result: yes" >&5
19317 $as_echo "yes" >&6; }
19318
19319 cat >>confdefs.h <<\_ACEOF
19320 #define HAVE_4ARGS_VFS_RENAME 1
19321 _ACEOF
19322
19323
19324 else
19325 $as_echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19327
19328 { $as_echo "$as_me:$LINENO: result: no" >&5
19329 $as_echo "no" >&6; }
19330
19331
19332
19333 fi
19334
19335 rm -Rf build
19336
19337
19338
19339
19340 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19341 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19342 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19343 $LINUX_OBJ/Module*.symvers 2>/dev/null
19344 rc=$?
19345 if test $rc -ne 0; then
19346 export=0
19347 for file in fs/sync.c; do
19348 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19349 "$LINUX_OBJ/$file" 2>/dev/null
19350 rc=$?
19351 if test $rc -eq 0; then
19352 export=1
19353 break;
19354 fi
19355 done
19356 if test $export -eq 0; then
19357 { $as_echo "$as_me:$LINENO: result: no" >&5
19358 $as_echo "no" >&6; }
19359
19360 else
19361 { $as_echo "$as_me:$LINENO: result: yes" >&5
19362 $as_echo "yes" >&6; }
19363
19364 cat >>confdefs.h <<\_ACEOF
19365 #define HAVE_VFS_FSYNC 1
19366 _ACEOF
19367
19368 fi
19369 else
19370 { $as_echo "$as_me:$LINENO: result: yes" >&5
19371 $as_echo "yes" >&6; }
19372
19373 cat >>confdefs.h <<\_ACEOF
19374 #define HAVE_VFS_FSYNC 1
19375 _ACEOF
19376
19377 fi
19378
19379
19380
19381 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19382 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19383
19384
19385 cat confdefs.h - <<_ACEOF >conftest.c
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391
19392
19393 #include <linux/fs.h>
19394
19395 int
19396 main (void)
19397 {
19398
19399 vfs_fsync(NULL, 0);
19400
19401 ;
19402 return 0;
19403 }
19404
19405 _ACEOF
19406
19407
19408 rm -Rf build && mkdir -p build
19409 echo "obj-m := conftest.o" >build/Makefile
19410 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19417 (eval $ac_try) 2>&5
19418 ac_status=$?
19419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); }; }; then
19421
19422 { $as_echo "$as_me:$LINENO: result: yes" >&5
19423 $as_echo "yes" >&6; }
19424
19425 cat >>confdefs.h <<\_ACEOF
19426 #define HAVE_2ARGS_VFS_FSYNC 1
19427 _ACEOF
19428
19429
19430 else
19431 $as_echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 { $as_echo "$as_me:$LINENO: result: no" >&5
19435 $as_echo "no" >&6; }
19436
19437
19438
19439 fi
19440
19441 rm -Rf build
19442
19443
19444
19445
19446 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19447 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19448 tmp_flags="$EXTRA_KCFLAGS"
19449 EXTRA_KCFLAGS="-Werror"
19450
19451
19452 cat confdefs.h - <<_ACEOF >conftest.c
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458
19459
19460 #include <linux/sched.h>
19461 #include <linux/fs_struct.h>
19462
19463 int
19464 main (void)
19465 {
19466
19467 struct fs_struct fs;
19468 spin_lock_init(&fs.lock);
19469
19470 ;
19471 return 0;
19472 }
19473
19474 _ACEOF
19475
19476
19477 rm -Rf build && mkdir -p build
19478 echo "obj-m := conftest.o" >build/Makefile
19479 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; }; then
19490
19491 { $as_echo "$as_me:$LINENO: result: yes" >&5
19492 $as_echo "yes" >&6; }
19493
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_FS_STRUCT_SPINLOCK 1
19496 _ACEOF
19497
19498
19499 else
19500 $as_echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 { $as_echo "$as_me:$LINENO: result: no" >&5
19504 $as_echo "no" >&6; }
19505
19506
19507
19508 fi
19509
19510 rm -Rf build
19511
19512
19513 EXTRA_KCFLAGS="$tmp_flags"
19514
19515
19516 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19517 $as_echo_n "checking whether struct cred exists... " >&6; }
19518
19519
19520 cat confdefs.h - <<_ACEOF >conftest.c
19521 /* confdefs.h. */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19526
19527
19528 #include <linux/cred.h>
19529
19530 int
19531 main (void)
19532 {
19533
19534 struct cred *cr __attribute__ ((unused));
19535 cr = NULL;
19536
19537 ;
19538 return 0;
19539 }
19540
19541 _ACEOF
19542
19543
19544 rm -Rf build && mkdir -p build
19545 echo "obj-m := conftest.o" >build/Makefile
19546 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557
19558 { $as_echo "$as_me:$LINENO: result: yes" >&5
19559 $as_echo "yes" >&6; }
19560
19561 cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_CRED_STRUCT 1
19563 _ACEOF
19564
19565
19566 else
19567 $as_echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19569
19570 { $as_echo "$as_me:$LINENO: result: no" >&5
19571 $as_echo "no" >&6; }
19572
19573
19574
19575 fi
19576
19577 rm -Rf build
19578
19579
19580
19581
19582 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19583 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19584 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19585 $LINUX_OBJ/Module*.symvers 2>/dev/null
19586 rc=$?
19587 if test $rc -ne 0; then
19588 export=0
19589 for file in ; do
19590 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19591 "$LINUX_OBJ/$file" 2>/dev/null
19592 rc=$?
19593 if test $rc -eq 0; then
19594 export=1
19595 break;
19596 fi
19597 done
19598 if test $export -eq 0; then
19599 { $as_echo "$as_me:$LINENO: result: no" >&5
19600 $as_echo "no" >&6; }
19601
19602 else
19603 { $as_echo "$as_me:$LINENO: result: yes" >&5
19604 $as_echo "yes" >&6; }
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_GROUPS_SEARCH 1
19608 _ACEOF
19609
19610 fi
19611 else
19612 { $as_echo "$as_me:$LINENO: result: yes" >&5
19613 $as_echo "yes" >&6; }
19614
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_GROUPS_SEARCH 1
19617 _ACEOF
19618
19619 fi
19620
19621
19622
19623 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19624 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19625 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19626 $LINUX_OBJ/Module*.symvers 2>/dev/null
19627 rc=$?
19628 if test $rc -ne 0; then
19629 export=0
19630 for file in ; do
19631 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19632 "$LINUX_OBJ/$file" 2>/dev/null
19633 rc=$?
19634 if test $rc -eq 0; then
19635 export=1
19636 break;
19637 fi
19638 done
19639 if test $export -eq 0; then
19640 { $as_echo "$as_me:$LINENO: result: no" >&5
19641 $as_echo "no" >&6; }
19642
19643 else
19644 { $as_echo "$as_me:$LINENO: result: yes" >&5
19645 $as_echo "yes" >&6; }
19646
19647 cat >>confdefs.h <<\_ACEOF
19648 #define HAVE_PUT_TASK_STRUCT 1
19649 _ACEOF
19650
19651 fi
19652 else
19653 { $as_echo "$as_me:$LINENO: result: yes" >&5
19654 $as_echo "yes" >&6; }
19655
19656 cat >>confdefs.h <<\_ACEOF
19657 #define HAVE_PUT_TASK_STRUCT 1
19658 _ACEOF
19659
19660 fi
19661
19662
19663
19664 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19665 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19666
19667
19668 cat confdefs.h - <<_ACEOF >conftest.c
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674
19675
19676 #include <linux/sysctl.h>
19677
19678 int
19679 main (void)
19680 {
19681
19682 proc_dostring(NULL, 0, NULL, NULL, NULL);
19683
19684 ;
19685 return 0;
19686 }
19687
19688 _ACEOF
19689
19690
19691 rm -Rf build && mkdir -p build
19692 echo "obj-m := conftest.o" >build/Makefile
19693 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19696 ac_status=$?
19697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19700 (eval $ac_try) 2>&5
19701 ac_status=$?
19702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704
19705 { $as_echo "$as_me:$LINENO: result: yes" >&5
19706 $as_echo "yes" >&6; }
19707
19708 cat >>confdefs.h <<\_ACEOF
19709 #define HAVE_5ARGS_PROC_HANDLER 1
19710 _ACEOF
19711
19712
19713 else
19714 $as_echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 { $as_echo "$as_me:$LINENO: result: no" >&5
19718 $as_echo "no" >&6; }
19719
19720
19721
19722 fi
19723
19724 rm -Rf build
19725
19726
19727
19728
19729 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19730 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19731 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19732 $LINUX_OBJ/Module*.symvers 2>/dev/null
19733 rc=$?
19734 if test $rc -ne 0; then
19735 export=0
19736 for file in ; do
19737 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19738 "$LINUX_OBJ/$file" 2>/dev/null
19739 rc=$?
19740 if test $rc -eq 0; then
19741 export=1
19742 break;
19743 fi
19744 done
19745 if test $export -eq 0; then
19746 { $as_echo "$as_me:$LINENO: result: no" >&5
19747 $as_echo "no" >&6; }
19748
19749 else
19750 { $as_echo "$as_me:$LINENO: result: yes" >&5
19751 $as_echo "yes" >&6; }
19752
19753 cat >>confdefs.h <<\_ACEOF
19754 #define HAVE_KVASPRINTF 1
19755 _ACEOF
19756
19757 fi
19758 else
19759 { $as_echo "$as_me:$LINENO: result: yes" >&5
19760 $as_echo "yes" >&6; }
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_KVASPRINTF 1
19764 _ACEOF
19765
19766 fi
19767
19768
19769
19770 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19771 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19772 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19773 $LINUX_OBJ/Module*.symvers 2>/dev/null
19774 rc=$?
19775 if test $rc -ne 0; then
19776 export=0
19777 for file in lib/rwsem-spinlock.c; do
19778 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
19779 "$LINUX_OBJ/$file" 2>/dev/null
19780 rc=$?
19781 if test $rc -eq 0; then
19782 export=1
19783 break;
19784 fi
19785 done
19786 if test $export -eq 0; then
19787 { $as_echo "$as_me:$LINENO: result: no" >&5
19788 $as_echo "no" >&6; }
19789
19790 else
19791 { $as_echo "$as_me:$LINENO: result: yes" >&5
19792 $as_echo "yes" >&6; }
19793
19794 cat >>confdefs.h <<\_ACEOF
19795 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19796 _ACEOF
19797
19798 fi
19799 else
19800 { $as_echo "$as_me:$LINENO: result: yes" >&5
19801 $as_echo "yes" >&6; }
19802
19803 cat >>confdefs.h <<\_ACEOF
19804 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19805 _ACEOF
19806
19807 fi
19808
19809
19810
19811 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
19812 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
19813 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
19814 $LINUX_OBJ/Module*.symvers 2>/dev/null
19815 rc=$?
19816 if test $rc -ne 0; then
19817 export=0
19818 for file in ; do
19819 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
19820 "$LINUX_OBJ/$file" 2>/dev/null
19821 rc=$?
19822 if test $rc -eq 0; then
19823 export=1
19824 break;
19825 fi
19826 done
19827 if test $export -eq 0; then
19828 { $as_echo "$as_me:$LINENO: result: no" >&5
19829 $as_echo "no" >&6; }
19830
19831 else
19832 { $as_echo "$as_me:$LINENO: result: yes" >&5
19833 $as_echo "yes" >&6; }
19834
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_INVALIDATE_INODES 1
19837 _ACEOF
19838
19839 fi
19840 else
19841 { $as_echo "$as_me:$LINENO: result: yes" >&5
19842 $as_echo "yes" >&6; }
19843
19844 cat >>confdefs.h <<\_ACEOF
19845 #define HAVE_INVALIDATE_INODES 1
19846 _ACEOF
19847
19848 fi
19849
19850
19851 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
19852 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
19853
19854
19855 cat confdefs.h - <<_ACEOF >conftest.c
19856 /* confdefs.h. */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861
19862
19863 #include <linux/fs.h>
19864
19865 int
19866 main (void)
19867 {
19868
19869 return __invalidate_device(NULL, 0);
19870
19871 ;
19872 return 0;
19873 }
19874
19875 _ACEOF
19876
19877
19878 rm -Rf build && mkdir -p build
19879 echo "obj-m := conftest.o" >build/Makefile
19880 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19888 ac_status=$?
19889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; }; then
19891
19892 { $as_echo "$as_me:$LINENO: result: yes" >&5
19893 $as_echo "yes" >&6; }
19894
19895 cat >>confdefs.h <<\_ACEOF
19896 #define HAVE_2ARGS_INVALIDATE_INODES 1
19897 _ACEOF
19898
19899
19900 else
19901 $as_echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 { $as_echo "$as_me:$LINENO: result: no" >&5
19905 $as_echo "no" >&6; }
19906
19907
19908
19909 fi
19910
19911 rm -Rf build
19912
19913
19914
19915
19916 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
19917 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
19918 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
19919 $LINUX_OBJ/Module*.symvers 2>/dev/null
19920 rc=$?
19921 if test $rc -ne 0; then
19922 export=0
19923 for file in fs/dcache.c; do
19924 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
19925 "$LINUX_OBJ/$file" 2>/dev/null
19926 rc=$?
19927 if test $rc -eq 0; then
19928 export=1
19929 break;
19930 fi
19931 done
19932 if test $export -eq 0; then
19933 { $as_echo "$as_me:$LINENO: result: no" >&5
19934 $as_echo "no" >&6; }
19935
19936 else
19937 { $as_echo "$as_me:$LINENO: result: yes" >&5
19938 $as_echo "yes" >&6; }
19939
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_SHRINK_DCACHE_MEMORY 1
19942 _ACEOF
19943
19944 fi
19945 else
19946 { $as_echo "$as_me:$LINENO: result: yes" >&5
19947 $as_echo "yes" >&6; }
19948
19949 cat >>confdefs.h <<\_ACEOF
19950 #define HAVE_SHRINK_DCACHE_MEMORY 1
19951 _ACEOF
19952
19953 fi
19954
19955
19956
19957 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
19958 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
19959 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
19960 $LINUX_OBJ/Module*.symvers 2>/dev/null
19961 rc=$?
19962 if test $rc -ne 0; then
19963 export=0
19964 for file in fs/inode.c; do
19965 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
19966 "$LINUX_OBJ/$file" 2>/dev/null
19967 rc=$?
19968 if test $rc -eq 0; then
19969 export=1
19970 break;
19971 fi
19972 done
19973 if test $export -eq 0; then
19974 { $as_echo "$as_me:$LINENO: result: no" >&5
19975 $as_echo "no" >&6; }
19976
19977 else
19978 { $as_echo "$as_me:$LINENO: result: yes" >&5
19979 $as_echo "yes" >&6; }
19980
19981 cat >>confdefs.h <<\_ACEOF
19982 #define HAVE_SHRINK_ICACHE_MEMORY 1
19983 _ACEOF
19984
19985 fi
19986 else
19987 { $as_echo "$as_me:$LINENO: result: yes" >&5
19988 $as_echo "yes" >&6; }
19989
19990 cat >>confdefs.h <<\_ACEOF
19991 #define HAVE_SHRINK_ICACHE_MEMORY 1
19992 _ACEOF
19993
19994 fi
19995
19996
19997
19998
19999 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20000 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20001 header=0
20002 for file in include/linux/namei.h; do
20003 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20004 rc=$?
20005 if test $rc -eq 0; then
20006 header=1
20007 break;
20008 fi
20009 done
20010 if test $header -eq 0; then
20011 { $as_echo "$as_me:$LINENO: result: no" >&5
20012 $as_echo "no" >&6; }
20013
20014 else
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016 $as_echo "yes" >&6; }
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define HAVE_KERN_PATH_PARENT_HEADER 1
20020 _ACEOF
20021
20022 fi
20023
20024
20025
20026 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20027 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20028 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20029 $LINUX_OBJ/Module*.symvers 2>/dev/null
20030 rc=$?
20031 if test $rc -ne 0; then
20032 export=0
20033 for file in fs/namei.c; do
20034 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20035 "$LINUX_OBJ/$file" 2>/dev/null
20036 rc=$?
20037 if test $rc -eq 0; then
20038 export=1
20039 break;
20040 fi
20041 done
20042 if test $export -eq 0; then
20043 { $as_echo "$as_me:$LINENO: result: no" >&5
20044 $as_echo "no" >&6; }
20045
20046 else
20047 { $as_echo "$as_me:$LINENO: result: yes" >&5
20048 $as_echo "yes" >&6; }
20049
20050 cat >>confdefs.h <<\_ACEOF
20051 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20052 _ACEOF
20053
20054 fi
20055 else
20056 { $as_echo "$as_me:$LINENO: result: yes" >&5
20057 $as_echo "yes" >&6; }
20058
20059 cat >>confdefs.h <<\_ACEOF
20060 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20061 _ACEOF
20062
20063 fi
20064
20065
20066 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20067 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20068
20069
20070 cat confdefs.h - <<_ACEOF >conftest.c
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076
20077
20078 #include <linux/zlib.h>
20079
20080 int
20081 main (void)
20082 {
20083
20084 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20085
20086 ;
20087 return 0;
20088 }
20089
20090 _ACEOF
20091
20092
20093 rm -Rf build && mkdir -p build
20094 echo "obj-m := conftest.o" >build/Makefile
20095 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; }; then
20106
20107 { $as_echo "$as_me:$LINENO: result: yes" >&5
20108 $as_echo "yes" >&6; }
20109
20110 cat >>confdefs.h <<\_ACEOF
20111 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20112 _ACEOF
20113
20114
20115 else
20116 $as_echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 { $as_echo "$as_me:$LINENO: result: no" >&5
20120 $as_echo "no" >&6; }
20121
20122
20123
20124 fi
20125
20126 rm -Rf build
20127
20128
20129
20130
20131 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20132 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20133
20134
20135 cat confdefs.h - <<_ACEOF >conftest.c
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141
20142
20143 #include <linux/mm.h>
20144
20145 int
20146 main (void)
20147 {
20148
20149 struct shrink_control sc __attribute__ ((unused));
20150
20151 sc.nr_to_scan = 0;
20152 sc.gfp_mask = GFP_KERNEL;
20153
20154 ;
20155 return 0;
20156 }
20157
20158 _ACEOF
20159
20160
20161 rm -Rf build && mkdir -p build
20162 echo "obj-m := conftest.o" >build/Makefile
20163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165 (eval $ac_try) 2>&5
20166 ac_status=$?
20167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174
20175 { $as_echo "$as_me:$LINENO: result: yes" >&5
20176 $as_echo "yes" >&6; }
20177
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_SHRINK_CONTROL_STRUCT 1
20180 _ACEOF
20181
20182
20183 else
20184 $as_echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 { $as_echo "$as_me:$LINENO: result: no" >&5
20188 $as_echo "no" >&6; }
20189
20190
20191
20192 fi
20193
20194 rm -Rf build
20195
20196
20197
20198
20199 ;;
20200 srpm) ;;
20201 *)
20202 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20203 $as_echo "Error!" >&6; }
20204 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20205 user kernel|user|all|srpm" >&5
20206 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20207 user kernel|user|all|srpm" >&2;}
20208 { (exit 1); exit 1; }; } ;;
20209 esac
20210
20211 if test "$SPL_CONFIG" = user ||
20212 test "$SPL_CONFIG" = all; then
20213 CONFIG_USER_TRUE=
20214 CONFIG_USER_FALSE='#'
20215 else
20216 CONFIG_USER_TRUE='#'
20217 CONFIG_USER_FALSE=
20218 fi
20219
20220 if test "$SPL_CONFIG" = kernel ||
20221 test "$SPL_CONFIG" = all; then
20222 CONFIG_KERNEL_TRUE=
20223 CONFIG_KERNEL_FALSE='#'
20224 else
20225 CONFIG_KERNEL_TRUE='#'
20226 CONFIG_KERNEL_FALSE=
20227 fi
20228
20229
20230
20231 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"
20232
20233
20234 cat >confcache <<\_ACEOF
20235 # This file is a shell script that caches the results of configure
20236 # tests run on this system so they can be shared between configure
20237 # scripts and configure runs, see configure's option --config-cache.
20238 # It is not useful on other systems. If it contains results you don't
20239 # want to keep, you may remove or edit it.
20240 #
20241 # config.status only pays attention to the cache file if you give it
20242 # the --recheck option to rerun configure.
20243 #
20244 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20245 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20246 # following values.
20247
20248 _ACEOF
20249
20250 # The following way of writing the cache mishandles newlines in values,
20251 # but we know of no workaround that is simple, portable, and efficient.
20252 # So, we kill variables containing newlines.
20253 # Ultrix sh set writes to stderr and can't be redirected directly,
20254 # and sets the high bit in the cache file unless we assign to the vars.
20255 (
20256 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20257 eval ac_val=\$$ac_var
20258 case $ac_val in #(
20259 *${as_nl}*)
20260 case $ac_var in #(
20261 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20263 esac
20264 case $ac_var in #(
20265 _ | IFS | as_nl) ;; #(
20266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20267 *) $as_unset $ac_var ;;
20268 esac ;;
20269 esac
20270 done
20271
20272 (set) 2>&1 |
20273 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20274 *${as_nl}ac_space=\ *)
20275 # `set' does not quote correctly, so add quotes (double-quote
20276 # substitution turns \\\\ into \\, and sed turns \\ into \).
20277 sed -n \
20278 "s/'/'\\\\''/g;
20279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20280 ;; #(
20281 *)
20282 # `set' quotes correctly as required by POSIX, so do not add quotes.
20283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20284 ;;
20285 esac |
20286 sort
20287 ) |
20288 sed '
20289 /^ac_cv_env_/b end
20290 t clear
20291 :clear
20292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20293 t end
20294 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20295 :end' >>confcache
20296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20297 if test -w "$cache_file"; then
20298 test "x$cache_file" != "x/dev/null" &&
20299 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20300 $as_echo "$as_me: updating cache $cache_file" >&6;}
20301 cat confcache >$cache_file
20302 else
20303 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20304 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20305 fi
20306 fi
20307 rm -f confcache
20308
20309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20310 # Let make expand exec_prefix.
20311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20312
20313 DEFS=-DHAVE_CONFIG_H
20314
20315 ac_libobjs=
20316 ac_ltlibobjs=
20317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20318 # 1. Remove the extension, and $U if already installed.
20319 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20320 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20321 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20322 # will be set to the directory where LIBOBJS objects are built.
20323 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20324 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20325 done
20326 LIBOBJS=$ac_libobjs
20327
20328 LTLIBOBJS=$ac_ltlibobjs
20329
20330
20331 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20332 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20333 Usually this means the macro was only invoked conditionally." >&5
20334 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20335 Usually this means the macro was only invoked conditionally." >&2;}
20336 { (exit 1); exit 1; }; }
20337 fi
20338 if test -n "$EXEEXT"; then
20339 am__EXEEXT_TRUE=
20340 am__EXEEXT_FALSE='#'
20341 else
20342 am__EXEEXT_TRUE='#'
20343 am__EXEEXT_FALSE=
20344 fi
20345
20346 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20347 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20348 Usually this means the macro was only invoked conditionally." >&5
20349 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20350 Usually this means the macro was only invoked conditionally." >&2;}
20351 { (exit 1); exit 1; }; }
20352 fi
20353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20354 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20355 Usually this means the macro was only invoked conditionally." >&5
20356 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20357 Usually this means the macro was only invoked conditionally." >&2;}
20358 { (exit 1); exit 1; }; }
20359 fi
20360 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20361 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20362 Usually this means the macro was only invoked conditionally." >&5
20363 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20364 Usually this means the macro was only invoked conditionally." >&2;}
20365 { (exit 1); exit 1; }; }
20366 fi
20367 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20368 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20369 Usually this means the macro was only invoked conditionally." >&5
20370 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20371 Usually this means the macro was only invoked conditionally." >&2;}
20372 { (exit 1); exit 1; }; }
20373 fi
20374
20375 : ${CONFIG_STATUS=./config.status}
20376 ac_write_fail=0
20377 ac_clean_files_save=$ac_clean_files
20378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20379 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20380 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20381 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20382 #! $SHELL
20383 # Generated by $as_me.
20384 # Run this file to recreate the current configuration.
20385 # Compiler output produced by configure, useful for debugging
20386 # configure, is in config.log if it exists.
20387
20388 debug=false
20389 ac_cs_recheck=false
20390 ac_cs_silent=false
20391 SHELL=\${CONFIG_SHELL-$SHELL}
20392 _ACEOF
20393
20394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20395 ## --------------------- ##
20396 ## M4sh Initialization. ##
20397 ## --------------------- ##
20398
20399 # Be more Bourne compatible
20400 DUALCASE=1; export DUALCASE # for MKS sh
20401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20402 emulate sh
20403 NULLCMD=:
20404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20405 # is contrary to our usage. Disable this feature.
20406 alias -g '${1+"$@"}'='"$@"'
20407 setopt NO_GLOB_SUBST
20408 else
20409 case `(set -o) 2>/dev/null` in
20410 *posix*) set -o posix ;;
20411 esac
20412
20413 fi
20414
20415
20416
20417
20418 # PATH needs CR
20419 # Avoid depending upon Character Ranges.
20420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20423 as_cr_digits='0123456789'
20424 as_cr_alnum=$as_cr_Letters$as_cr_digits
20425
20426 as_nl='
20427 '
20428 export as_nl
20429 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20430 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20433 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20434 as_echo='printf %s\n'
20435 as_echo_n='printf %s'
20436 else
20437 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20438 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20439 as_echo_n='/usr/ucb/echo -n'
20440 else
20441 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20442 as_echo_n_body='eval
20443 arg=$1;
20444 case $arg in
20445 *"$as_nl"*)
20446 expr "X$arg" : "X\\(.*\\)$as_nl";
20447 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20448 esac;
20449 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20450 '
20451 export as_echo_n_body
20452 as_echo_n='sh -c $as_echo_n_body as_echo'
20453 fi
20454 export as_echo_body
20455 as_echo='sh -c $as_echo_body as_echo'
20456 fi
20457
20458 # The user is always right.
20459 if test "${PATH_SEPARATOR+set}" != set; then
20460 PATH_SEPARATOR=:
20461 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20462 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20463 PATH_SEPARATOR=';'
20464 }
20465 fi
20466
20467 # Support unset when possible.
20468 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20469 as_unset=unset
20470 else
20471 as_unset=false
20472 fi
20473
20474
20475 # IFS
20476 # We need space, tab and new line, in precisely that order. Quoting is
20477 # there to prevent editors from complaining about space-tab.
20478 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20479 # splitting by setting IFS to empty value.)
20480 IFS=" "" $as_nl"
20481
20482 # Find who we are. Look in the path if we contain no directory separator.
20483 case $0 in
20484 *[\\/]* ) as_myself=$0 ;;
20485 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20486 for as_dir in $PATH
20487 do
20488 IFS=$as_save_IFS
20489 test -z "$as_dir" && as_dir=.
20490 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20491 done
20492 IFS=$as_save_IFS
20493
20494 ;;
20495 esac
20496 # We did not find ourselves, most probably we were run as `sh COMMAND'
20497 # in which case we are not to be found in the path.
20498 if test "x$as_myself" = x; then
20499 as_myself=$0
20500 fi
20501 if test ! -f "$as_myself"; then
20502 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20503 { (exit 1); exit 1; }
20504 fi
20505
20506 # Work around bugs in pre-3.0 UWIN ksh.
20507 for as_var in ENV MAIL MAILPATH
20508 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20509 done
20510 PS1='$ '
20511 PS2='> '
20512 PS4='+ '
20513
20514 # NLS nuisances.
20515 LC_ALL=C
20516 export LC_ALL
20517 LANGUAGE=C
20518 export LANGUAGE
20519
20520 # Required to use basename.
20521 if expr a : '\(a\)' >/dev/null 2>&1 &&
20522 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20523 as_expr=expr
20524 else
20525 as_expr=false
20526 fi
20527
20528 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20529 as_basename=basename
20530 else
20531 as_basename=false
20532 fi
20533
20534
20535 # Name of the executable.
20536 as_me=`$as_basename -- "$0" ||
20537 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20538 X"$0" : 'X\(//\)$' \| \
20539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20540 $as_echo X/"$0" |
20541 sed '/^.*\/\([^/][^/]*\)\/*$/{
20542 s//\1/
20543 q
20544 }
20545 /^X\/\(\/\/\)$/{
20546 s//\1/
20547 q
20548 }
20549 /^X\/\(\/\).*/{
20550 s//\1/
20551 q
20552 }
20553 s/.*/./; q'`
20554
20555 # CDPATH.
20556 $as_unset CDPATH
20557
20558
20559
20560 as_lineno_1=$LINENO
20561 as_lineno_2=$LINENO
20562 test "x$as_lineno_1" != "x$as_lineno_2" &&
20563 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20564
20565 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20566 # uniformly replaced by the line number. The first 'sed' inserts a
20567 # line-number line after each line using $LINENO; the second 'sed'
20568 # does the real work. The second script uses 'N' to pair each
20569 # line-number line with the line containing $LINENO, and appends
20570 # trailing '-' during substitution so that $LINENO is not a special
20571 # case at line end.
20572 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20573 # scripts with optimization help from Paolo Bonzini. Blame Lee
20574 # E. McMahon (1931-1989) for sed's syntax. :-)
20575 sed -n '
20576 p
20577 /[$]LINENO/=
20578 ' <$as_myself |
20579 sed '
20580 s/[$]LINENO.*/&-/
20581 t lineno
20582 b
20583 :lineno
20584 N
20585 :loop
20586 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20587 t loop
20588 s/-\n.*//
20589 ' >$as_me.lineno &&
20590 chmod +x "$as_me.lineno" ||
20591 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20592 { (exit 1); exit 1; }; }
20593
20594 # Don't try to exec as it changes $[0], causing all sort of problems
20595 # (the dirname of $[0] is not the place where we might find the
20596 # original and so on. Autoconf is especially sensitive to this).
20597 . "./$as_me.lineno"
20598 # Exit status is that of the last command.
20599 exit
20600 }
20601
20602
20603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20604 as_dirname=dirname
20605 else
20606 as_dirname=false
20607 fi
20608
20609 ECHO_C= ECHO_N= ECHO_T=
20610 case `echo -n x` in
20611 -n*)
20612 case `echo 'x\c'` in
20613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20614 *) ECHO_C='\c';;
20615 esac;;
20616 *)
20617 ECHO_N='-n';;
20618 esac
20619 if expr a : '\(a\)' >/dev/null 2>&1 &&
20620 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20621 as_expr=expr
20622 else
20623 as_expr=false
20624 fi
20625
20626 rm -f conf$$ conf$$.exe conf$$.file
20627 if test -d conf$$.dir; then
20628 rm -f conf$$.dir/conf$$.file
20629 else
20630 rm -f conf$$.dir
20631 mkdir conf$$.dir 2>/dev/null
20632 fi
20633 if (echo >conf$$.file) 2>/dev/null; then
20634 if ln -s conf$$.file conf$$ 2>/dev/null; then
20635 as_ln_s='ln -s'
20636 # ... but there are two gotchas:
20637 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20638 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20639 # In both cases, we have to default to `cp -p'.
20640 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20641 as_ln_s='cp -p'
20642 elif ln conf$$.file conf$$ 2>/dev/null; then
20643 as_ln_s=ln
20644 else
20645 as_ln_s='cp -p'
20646 fi
20647 else
20648 as_ln_s='cp -p'
20649 fi
20650 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20651 rmdir conf$$.dir 2>/dev/null
20652
20653 if mkdir -p . 2>/dev/null; then
20654 as_mkdir_p=:
20655 else
20656 test -d ./-p && rmdir ./-p
20657 as_mkdir_p=false
20658 fi
20659
20660 if test -x / >/dev/null 2>&1; then
20661 as_test_x='test -x'
20662 else
20663 if ls -dL / >/dev/null 2>&1; then
20664 as_ls_L_option=L
20665 else
20666 as_ls_L_option=
20667 fi
20668 as_test_x='
20669 eval sh -c '\''
20670 if test -d "$1"; then
20671 test -d "$1/.";
20672 else
20673 case $1 in
20674 -*)set "./$1";;
20675 esac;
20676 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20677 ???[sx]*):;;*)false;;esac;fi
20678 '\'' sh
20679 '
20680 fi
20681 as_executable_p=$as_test_x
20682
20683 # Sed expression to map a string onto a valid CPP name.
20684 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20685
20686 # Sed expression to map a string onto a valid variable name.
20687 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20688
20689
20690 exec 6>&1
20691
20692 # Save the log message, to keep $[0] and so on meaningful, and to
20693 # report actual input values of CONFIG_FILES etc. instead of their
20694 # values after options handling.
20695 ac_log="
20696 This file was extended by $as_me, which was
20697 generated by GNU Autoconf 2.63. Invocation command line was
20698
20699 CONFIG_FILES = $CONFIG_FILES
20700 CONFIG_HEADERS = $CONFIG_HEADERS
20701 CONFIG_LINKS = $CONFIG_LINKS
20702 CONFIG_COMMANDS = $CONFIG_COMMANDS
20703 $ $0 $@
20704
20705 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20706 "
20707
20708 _ACEOF
20709
20710 case $ac_config_files in *"
20711 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20712 esac
20713
20714 case $ac_config_headers in *"
20715 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20716 esac
20717
20718
20719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20720 # Files that config.status was made for.
20721 config_files="$ac_config_files"
20722 config_headers="$ac_config_headers"
20723 config_commands="$ac_config_commands"
20724
20725 _ACEOF
20726
20727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728 ac_cs_usage="\
20729 \`$as_me' instantiates files from templates according to the
20730 current configuration.
20731
20732 Usage: $0 [OPTION]... [FILE]...
20733
20734 -h, --help print this help, then exit
20735 -V, --version print version number and configuration settings, then exit
20736 -q, --quiet, --silent
20737 do not print progress messages
20738 -d, --debug don't remove temporary files
20739 --recheck update $as_me by reconfiguring in the same conditions
20740 --file=FILE[:TEMPLATE]
20741 instantiate the configuration file FILE
20742 --header=FILE[:TEMPLATE]
20743 instantiate the configuration header FILE
20744
20745 Configuration files:
20746 $config_files
20747
20748 Configuration headers:
20749 $config_headers
20750
20751 Configuration commands:
20752 $config_commands
20753
20754 Report bugs to <bug-autoconf@gnu.org>."
20755
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20758 ac_cs_version="\\
20759 config.status
20760 configured by $0, generated by GNU Autoconf 2.63,
20761 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20762
20763 Copyright (C) 2008 Free Software Foundation, Inc.
20764 This config.status script is free software; the Free Software Foundation
20765 gives unlimited permission to copy, distribute and modify it."
20766
20767 ac_pwd='$ac_pwd'
20768 srcdir='$srcdir'
20769 INSTALL='$INSTALL'
20770 MKDIR_P='$MKDIR_P'
20771 AWK='$AWK'
20772 test -n "\$AWK" || AWK=awk
20773 _ACEOF
20774
20775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20776 # The default lists apply if the user does not specify any file.
20777 ac_need_defaults=:
20778 while test $# != 0
20779 do
20780 case $1 in
20781 --*=*)
20782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20784 ac_shift=:
20785 ;;
20786 *)
20787 ac_option=$1
20788 ac_optarg=$2
20789 ac_shift=shift
20790 ;;
20791 esac
20792
20793 case $ac_option in
20794 # Handling of the options.
20795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20796 ac_cs_recheck=: ;;
20797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20798 $as_echo "$ac_cs_version"; exit ;;
20799 --debug | --debu | --deb | --de | --d | -d )
20800 debug=: ;;
20801 --file | --fil | --fi | --f )
20802 $ac_shift
20803 case $ac_optarg in
20804 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20805 esac
20806 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20807 ac_need_defaults=false;;
20808 --header | --heade | --head | --hea )
20809 $ac_shift
20810 case $ac_optarg in
20811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20812 esac
20813 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20814 ac_need_defaults=false;;
20815 --he | --h)
20816 # Conflict between --help and --header
20817 { $as_echo "$as_me: error: ambiguous option: $1
20818 Try \`$0 --help' for more information." >&2
20819 { (exit 1); exit 1; }; };;
20820 --help | --hel | -h )
20821 $as_echo "$ac_cs_usage"; exit ;;
20822 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20823 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20824 ac_cs_silent=: ;;
20825
20826 # This is an error.
20827 -*) { $as_echo "$as_me: error: unrecognized option: $1
20828 Try \`$0 --help' for more information." >&2
20829 { (exit 1); exit 1; }; } ;;
20830
20831 *) ac_config_targets="$ac_config_targets $1"
20832 ac_need_defaults=false ;;
20833
20834 esac
20835 shift
20836 done
20837
20838 ac_configure_extra_args=
20839
20840 if $ac_cs_silent; then
20841 exec 6>/dev/null
20842 ac_configure_extra_args="$ac_configure_extra_args --silent"
20843 fi
20844
20845 _ACEOF
20846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20847 if \$ac_cs_recheck; then
20848 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20849 shift
20850 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20851 CONFIG_SHELL='$SHELL'
20852 export CONFIG_SHELL
20853 exec "\$@"
20854 fi
20855
20856 _ACEOF
20857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858 exec 5>>config.log
20859 {
20860 echo
20861 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20862 ## Running $as_me. ##
20863 _ASBOX
20864 $as_echo "$ac_log"
20865 } >&5
20866
20867 _ACEOF
20868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20869 #
20870 # INIT-COMMANDS
20871 #
20872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20873
20874
20875 # The HP-UX ksh and POSIX shell print the target directory to stdout
20876 # if CDPATH is set.
20877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20878
20879 sed_quote_subst='$sed_quote_subst'
20880 double_quote_subst='$double_quote_subst'
20881 delay_variable_subst='$delay_variable_subst'
20882 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20883 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20884 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20885 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20886 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20887 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20888 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20889 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20890 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20891 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20892 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20893 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20894 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20895 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20896 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20897 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20898 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20899 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20900 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20901 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20902 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20903 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20904 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20905 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20906 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20907 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20908 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20909 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20910 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20911 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20912 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20913 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20914 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20915 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20916 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20917 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20918 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20919 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20920 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20921 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20922 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20923 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20924 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20925 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20926 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"`'
20927 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"`'
20928 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20929 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20930 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20931 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20932 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20933 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20934 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20935 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20936 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20937 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20938 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20939 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20940 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20941 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20942 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20943 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20944 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20945 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20946 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20947 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20948 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20949 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20950 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20951 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20952 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20953 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20954 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20955 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20956 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20957 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20958 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20959 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20960 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20961 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20962 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20963 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20964 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20965 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20966 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20967 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20968 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20969 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20970 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20971 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20972 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20973 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20974 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20975 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20976 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20977 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20978 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20979 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20980 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20981 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20982 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20983 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20984 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20985 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20986 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20987 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20988 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20989 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20990 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20991 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20992 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20993 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20994 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20995 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20996 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20997 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20998 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20999 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21000
21001 LTCC='$LTCC'
21002 LTCFLAGS='$LTCFLAGS'
21003 compiler='$compiler_DEFAULT'
21004
21005 # Quote evaled strings.
21006 for var in SED \
21007 GREP \
21008 EGREP \
21009 FGREP \
21010 LD \
21011 NM \
21012 LN_S \
21013 lt_SP2NL \
21014 lt_NL2SP \
21015 reload_flag \
21016 OBJDUMP \
21017 deplibs_check_method \
21018 file_magic_cmd \
21019 AR \
21020 AR_FLAGS \
21021 STRIP \
21022 RANLIB \
21023 CC \
21024 CFLAGS \
21025 compiler \
21026 lt_cv_sys_global_symbol_pipe \
21027 lt_cv_sys_global_symbol_to_cdecl \
21028 lt_cv_sys_global_symbol_to_c_name_address \
21029 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21030 SHELL \
21031 ECHO \
21032 lt_prog_compiler_no_builtin_flag \
21033 lt_prog_compiler_wl \
21034 lt_prog_compiler_pic \
21035 lt_prog_compiler_static \
21036 lt_cv_prog_compiler_c_o \
21037 need_locks \
21038 DSYMUTIL \
21039 NMEDIT \
21040 LIPO \
21041 OTOOL \
21042 OTOOL64 \
21043 shrext_cmds \
21044 export_dynamic_flag_spec \
21045 whole_archive_flag_spec \
21046 compiler_needs_object \
21047 with_gnu_ld \
21048 allow_undefined_flag \
21049 no_undefined_flag \
21050 hardcode_libdir_flag_spec \
21051 hardcode_libdir_flag_spec_ld \
21052 hardcode_libdir_separator \
21053 fix_srcfile_path \
21054 exclude_expsyms \
21055 include_expsyms \
21056 file_list_spec \
21057 variables_saved_for_relink \
21058 libname_spec \
21059 library_names_spec \
21060 soname_spec \
21061 finish_eval \
21062 old_striplib \
21063 striplib; do
21064 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21065 *[\\\\\\\`\\"\\\$]*)
21066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21067 ;;
21068 *)
21069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21070 ;;
21071 esac
21072 done
21073
21074 # Double-quote double-evaled strings.
21075 for var in reload_cmds \
21076 old_postinstall_cmds \
21077 old_postuninstall_cmds \
21078 old_archive_cmds \
21079 extract_expsyms_cmds \
21080 old_archive_from_new_cmds \
21081 old_archive_from_expsyms_cmds \
21082 archive_cmds \
21083 archive_expsym_cmds \
21084 module_cmds \
21085 module_expsym_cmds \
21086 export_symbols_cmds \
21087 prelink_cmds \
21088 postinstall_cmds \
21089 postuninstall_cmds \
21090 finish_cmds \
21091 sys_lib_search_path_spec \
21092 sys_lib_dlsearch_path_spec; do
21093 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21094 *[\\\\\\\`\\"\\\$]*)
21095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21096 ;;
21097 *)
21098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21099 ;;
21100 esac
21101 done
21102
21103 # Fix-up fallback echo if it was mangled by the above quoting rules.
21104 case \$lt_ECHO in
21105 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21106 ;;
21107 esac
21108
21109 ac_aux_dir='$ac_aux_dir'
21110 xsi_shell='$xsi_shell'
21111 lt_shell_append='$lt_shell_append'
21112
21113 # See if we are running on zsh, and set the options which allow our
21114 # commands through without removal of \ escapes INIT.
21115 if test -n "\${ZSH_VERSION+set}" ; then
21116 setopt NO_GLOB_SUBST
21117 fi
21118
21119
21120 PACKAGE='$PACKAGE'
21121 VERSION='$VERSION'
21122 TIMESTAMP='$TIMESTAMP'
21123 RM='$RM'
21124 ofile='$ofile'
21125
21126
21127
21128
21129 _ACEOF
21130
21131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21132
21133 # Handling of arguments.
21134 for ac_config_target in $ac_config_targets
21135 do
21136 case $ac_config_target in
21137 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21139 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21140 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21141 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21142 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21143 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21144 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21145 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21146 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21147 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21148 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21149 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21150
21151 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21152 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21153 { (exit 1); exit 1; }; };;
21154 esac
21155 done
21156
21157
21158 # If the user did not use the arguments to specify the items to instantiate,
21159 # then the envvar interface is used. Set only those that are not.
21160 # We use the long form for the default assignment because of an extremely
21161 # bizarre bug on SunOS 4.1.3.
21162 if $ac_need_defaults; then
21163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21166 fi
21167
21168 # Have a temporary directory for convenience. Make it in the build tree
21169 # simply because there is no reason against having it here, and in addition,
21170 # creating and moving files from /tmp can sometimes cause problems.
21171 # Hook for its removal unless debugging.
21172 # Note that there is a small window in which the directory will not be cleaned:
21173 # after its creation but before its name has been assigned to `$tmp'.
21174 $debug ||
21175 {
21176 tmp=
21177 trap 'exit_status=$?
21178 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21179 ' 0
21180 trap '{ (exit 1); exit 1; }' 1 2 13 15
21181 }
21182 # Create a (secure) tmp directory for tmp files.
21183
21184 {
21185 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21186 test -n "$tmp" && test -d "$tmp"
21187 } ||
21188 {
21189 tmp=./conf$$-$RANDOM
21190 (umask 077 && mkdir "$tmp")
21191 } ||
21192 {
21193 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21194 { (exit 1); exit 1; }
21195 }
21196
21197 # Set up the scripts for CONFIG_FILES section.
21198 # No need to generate them if there are no CONFIG_FILES.
21199 # This happens for instance with `./config.status config.h'.
21200 if test -n "$CONFIG_FILES"; then
21201
21202
21203 ac_cr=' '
21204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21206 ac_cs_awk_cr='\\r'
21207 else
21208 ac_cs_awk_cr=$ac_cr
21209 fi
21210
21211 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21212 _ACEOF
21213
21214
21215 {
21216 echo "cat >conf$$subs.awk <<_ACEOF" &&
21217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21218 echo "_ACEOF"
21219 } >conf$$subs.sh ||
21220 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21221 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21222 { (exit 1); exit 1; }; }
21223 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21224 ac_delim='%!_!# '
21225 for ac_last_try in false false false false false :; do
21226 . ./conf$$subs.sh ||
21227 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21228 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21229 { (exit 1); exit 1; }; }
21230
21231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21232 if test $ac_delim_n = $ac_delim_num; then
21233 break
21234 elif $ac_last_try; then
21235 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21236 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21237 { (exit 1); exit 1; }; }
21238 else
21239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21240 fi
21241 done
21242 rm -f conf$$subs.sh
21243
21244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21245 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21246 _ACEOF
21247 sed -n '
21248 h
21249 s/^/S["/; s/!.*/"]=/
21250 p
21251 g
21252 s/^[^!]*!//
21253 :repl
21254 t repl
21255 s/'"$ac_delim"'$//
21256 t delim
21257 :nl
21258 h
21259 s/\(.\{148\}\).*/\1/
21260 t more1
21261 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21262 p
21263 n
21264 b repl
21265 :more1
21266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21267 p
21268 g
21269 s/.\{148\}//
21270 t nl
21271 :delim
21272 h
21273 s/\(.\{148\}\).*/\1/
21274 t more2
21275 s/["\\]/\\&/g; s/^/"/; s/$/"/
21276 p
21277 b
21278 :more2
21279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21280 p
21281 g
21282 s/.\{148\}//
21283 t delim
21284 ' <conf$$subs.awk | sed '
21285 /^[^""]/{
21286 N
21287 s/\n//
21288 }
21289 ' >>$CONFIG_STATUS || ac_write_fail=1
21290 rm -f conf$$subs.awk
21291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 _ACAWK
21293 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21294 for (key in S) S_is_set[key] = 1
21295 FS = "\a"
21296
21297 }
21298 {
21299 line = $ 0
21300 nfields = split(line, field, "@")
21301 substed = 0
21302 len = length(field[1])
21303 for (i = 2; i < nfields; i++) {
21304 key = field[i]
21305 keylen = length(key)
21306 if (S_is_set[key]) {
21307 value = S[key]
21308 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21309 len += length(value) + length(field[++i])
21310 substed = 1
21311 } else
21312 len += 1 + keylen
21313 }
21314
21315 print line
21316 }
21317
21318 _ACAWK
21319 _ACEOF
21320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21323 else
21324 cat
21325 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21326 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21327 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21328 { (exit 1); exit 1; }; }
21329 _ACEOF
21330
21331 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21332 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21333 # trailing colons and then remove the whole line if VPATH becomes empty
21334 # (actually we leave an empty line to preserve line numbers).
21335 if test "x$srcdir" = x.; then
21336 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21337 s/:*\$(srcdir):*/:/
21338 s/:*\${srcdir}:*/:/
21339 s/:*@srcdir@:*/:/
21340 s/^\([^=]*=[ ]*\):*/\1/
21341 s/:*$//
21342 s/^[^=]*=[ ]*$//
21343 }'
21344 fi
21345
21346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21347 fi # test -n "$CONFIG_FILES"
21348
21349 # Set up the scripts for CONFIG_HEADERS section.
21350 # No need to generate them if there are no CONFIG_HEADERS.
21351 # This happens for instance with `./config.status Makefile'.
21352 if test -n "$CONFIG_HEADERS"; then
21353 cat >"$tmp/defines.awk" <<\_ACAWK ||
21354 BEGIN {
21355 _ACEOF
21356
21357 # Transform confdefs.h into an awk script `defines.awk', embedded as
21358 # here-document in config.status, that substitutes the proper values into
21359 # config.h.in to produce config.h.
21360
21361 # Create a delimiter string that does not exist in confdefs.h, to ease
21362 # handling of long lines.
21363 ac_delim='%!_!# '
21364 for ac_last_try in false false :; do
21365 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21366 if test -z "$ac_t"; then
21367 break
21368 elif $ac_last_try; then
21369 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21370 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21371 { (exit 1); exit 1; }; }
21372 else
21373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21374 fi
21375 done
21376
21377 # For the awk script, D is an array of macro values keyed by name,
21378 # likewise P contains macro parameters if any. Preserve backslash
21379 # newline sequences.
21380
21381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21382 sed -n '
21383 s/.\{148\}/&'"$ac_delim"'/g
21384 t rset
21385 :rset
21386 s/^[ ]*#[ ]*define[ ][ ]*/ /
21387 t def
21388 d
21389 :def
21390 s/\\$//
21391 t bsnl
21392 s/["\\]/\\&/g
21393 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21394 D["\1"]=" \3"/p
21395 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21396 d
21397 :bsnl
21398 s/["\\]/\\&/g
21399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21400 D["\1"]=" \3\\\\\\n"\\/p
21401 t cont
21402 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21403 t cont
21404 d
21405 :cont
21406 n
21407 s/.\{148\}/&'"$ac_delim"'/g
21408 t clear
21409 :clear
21410 s/\\$//
21411 t bsnlc
21412 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21413 d
21414 :bsnlc
21415 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21416 b cont
21417 ' <confdefs.h | sed '
21418 s/'"$ac_delim"'/"\\\
21419 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21420
21421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21422 for (key in D) D_is_set[key] = 1
21423 FS = "\a"
21424 }
21425 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21426 line = \$ 0
21427 split(line, arg, " ")
21428 if (arg[1] == "#") {
21429 defundef = arg[2]
21430 mac1 = arg[3]
21431 } else {
21432 defundef = substr(arg[1], 2)
21433 mac1 = arg[2]
21434 }
21435 split(mac1, mac2, "(") #)
21436 macro = mac2[1]
21437 prefix = substr(line, 1, index(line, defundef) - 1)
21438 if (D_is_set[macro]) {
21439 # Preserve the white space surrounding the "#".
21440 print prefix "define", macro P[macro] D[macro]
21441 next
21442 } else {
21443 # Replace #undef with comments. This is necessary, for example,
21444 # in the case of _POSIX_SOURCE, which is predefined and required
21445 # on some systems where configure will not decide to define it.
21446 if (defundef == "undef") {
21447 print "/*", prefix defundef, macro, "*/"
21448 next
21449 }
21450 }
21451 }
21452 { print }
21453 _ACAWK
21454 _ACEOF
21455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21456 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21457 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21458 { (exit 1); exit 1; }; }
21459 fi # test -n "$CONFIG_HEADERS"
21460
21461
21462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21463 shift
21464 for ac_tag
21465 do
21466 case $ac_tag in
21467 :[FHLC]) ac_mode=$ac_tag; continue;;
21468 esac
21469 case $ac_mode$ac_tag in
21470 :[FHL]*:*);;
21471 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21472 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21473 { (exit 1); exit 1; }; };;
21474 :[FH]-) ac_tag=-:-;;
21475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21476 esac
21477 ac_save_IFS=$IFS
21478 IFS=:
21479 set x $ac_tag
21480 IFS=$ac_save_IFS
21481 shift
21482 ac_file=$1
21483 shift
21484
21485 case $ac_mode in
21486 :L) ac_source=$1;;
21487 :[FH])
21488 ac_file_inputs=
21489 for ac_f
21490 do
21491 case $ac_f in
21492 -) ac_f="$tmp/stdin";;
21493 *) # Look for the file first in the build tree, then in the source tree
21494 # (if the path is not absolute). The absolute path cannot be DOS-style,
21495 # because $ac_f cannot contain `:'.
21496 test -f "$ac_f" ||
21497 case $ac_f in
21498 [\\/$]*) false;;
21499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21500 esac ||
21501 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21502 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21503 { (exit 1); exit 1; }; };;
21504 esac
21505 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21506 ac_file_inputs="$ac_file_inputs '$ac_f'"
21507 done
21508
21509 # Let's still pretend it is `configure' which instantiates (i.e., don't
21510 # use $as_me), people would be surprised to read:
21511 # /* config.h. Generated by config.status. */
21512 configure_input='Generated from '`
21513 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21514 `' by configure.'
21515 if test x"$ac_file" != x-; then
21516 configure_input="$ac_file. $configure_input"
21517 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21518 $as_echo "$as_me: creating $ac_file" >&6;}
21519 fi
21520 # Neutralize special characters interpreted by sed in replacement strings.
21521 case $configure_input in #(
21522 *\&* | *\|* | *\\* )
21523 ac_sed_conf_input=`$as_echo "$configure_input" |
21524 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21525 *) ac_sed_conf_input=$configure_input;;
21526 esac
21527
21528 case $ac_tag in
21529 *:-:* | *:-) cat >"$tmp/stdin" \
21530 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21531 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21532 { (exit 1); exit 1; }; } ;;
21533 esac
21534 ;;
21535 esac
21536
21537 ac_dir=`$as_dirname -- "$ac_file" ||
21538 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21539 X"$ac_file" : 'X\(//\)[^/]' \| \
21540 X"$ac_file" : 'X\(//\)$' \| \
21541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21542 $as_echo X"$ac_file" |
21543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21544 s//\1/
21545 q
21546 }
21547 /^X\(\/\/\)[^/].*/{
21548 s//\1/
21549 q
21550 }
21551 /^X\(\/\/\)$/{
21552 s//\1/
21553 q
21554 }
21555 /^X\(\/\).*/{
21556 s//\1/
21557 q
21558 }
21559 s/.*/./; q'`
21560 { as_dir="$ac_dir"
21561 case $as_dir in #(
21562 -*) as_dir=./$as_dir;;
21563 esac
21564 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21565 as_dirs=
21566 while :; do
21567 case $as_dir in #(
21568 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21569 *) as_qdir=$as_dir;;
21570 esac
21571 as_dirs="'$as_qdir' $as_dirs"
21572 as_dir=`$as_dirname -- "$as_dir" ||
21573 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21574 X"$as_dir" : 'X\(//\)[^/]' \| \
21575 X"$as_dir" : 'X\(//\)$' \| \
21576 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21577 $as_echo X"$as_dir" |
21578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21579 s//\1/
21580 q
21581 }
21582 /^X\(\/\/\)[^/].*/{
21583 s//\1/
21584 q
21585 }
21586 /^X\(\/\/\)$/{
21587 s//\1/
21588 q
21589 }
21590 /^X\(\/\).*/{
21591 s//\1/
21592 q
21593 }
21594 s/.*/./; q'`
21595 test -d "$as_dir" && break
21596 done
21597 test -z "$as_dirs" || eval "mkdir $as_dirs"
21598 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21599 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21600 { (exit 1); exit 1; }; }; }
21601 ac_builddir=.
21602
21603 case "$ac_dir" in
21604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21605 *)
21606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21607 # A ".." for each directory in $ac_dir_suffix.
21608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21609 case $ac_top_builddir_sub in
21610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21612 esac ;;
21613 esac
21614 ac_abs_top_builddir=$ac_pwd
21615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21616 # for backward compatibility:
21617 ac_top_builddir=$ac_top_build_prefix
21618
21619 case $srcdir in
21620 .) # We are building in place.
21621 ac_srcdir=.
21622 ac_top_srcdir=$ac_top_builddir_sub
21623 ac_abs_top_srcdir=$ac_pwd ;;
21624 [\\/]* | ?:[\\/]* ) # Absolute name.
21625 ac_srcdir=$srcdir$ac_dir_suffix;
21626 ac_top_srcdir=$srcdir
21627 ac_abs_top_srcdir=$srcdir ;;
21628 *) # Relative name.
21629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21630 ac_top_srcdir=$ac_top_build_prefix$srcdir
21631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21632 esac
21633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21634
21635
21636 case $ac_mode in
21637 :F)
21638 #
21639 # CONFIG_FILE
21640 #
21641
21642 case $INSTALL in
21643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21645 esac
21646 ac_MKDIR_P=$MKDIR_P
21647 case $MKDIR_P in
21648 [\\/$]* | ?:[\\/]* ) ;;
21649 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21650 esac
21651 _ACEOF
21652
21653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21654 # If the template does not know about datarootdir, expand it.
21655 # FIXME: This hack should be removed a few years after 2.60.
21656 ac_datarootdir_hack=; ac_datarootdir_seen=
21657
21658 ac_sed_dataroot='
21659 /datarootdir/ {
21660 p
21661 q
21662 }
21663 /@datadir@/p
21664 /@docdir@/p
21665 /@infodir@/p
21666 /@localedir@/p
21667 /@mandir@/p
21668 '
21669 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21670 *datarootdir*) ac_datarootdir_seen=yes;;
21671 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21672 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21673 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21674 _ACEOF
21675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21676 ac_datarootdir_hack='
21677 s&@datadir@&$datadir&g
21678 s&@docdir@&$docdir&g
21679 s&@infodir@&$infodir&g
21680 s&@localedir@&$localedir&g
21681 s&@mandir@&$mandir&g
21682 s&\\\${datarootdir}&$datarootdir&g' ;;
21683 esac
21684 _ACEOF
21685
21686 # Neutralize VPATH when `$srcdir' = `.'.
21687 # Shell code in configure.ac might set extrasub.
21688 # FIXME: do we really want to maintain this feature?
21689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21690 ac_sed_extra="$ac_vpsub
21691 $extrasub
21692 _ACEOF
21693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21694 :t
21695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21696 s|@configure_input@|$ac_sed_conf_input|;t t
21697 s&@top_builddir@&$ac_top_builddir_sub&;t t
21698 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21699 s&@srcdir@&$ac_srcdir&;t t
21700 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21701 s&@top_srcdir@&$ac_top_srcdir&;t t
21702 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21703 s&@builddir@&$ac_builddir&;t t
21704 s&@abs_builddir@&$ac_abs_builddir&;t t
21705 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21706 s&@INSTALL@&$ac_INSTALL&;t t
21707 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21708 $ac_datarootdir_hack
21709 "
21710 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21711 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21712 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21713 { (exit 1); exit 1; }; }
21714
21715 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21716 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21717 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21718 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21719 which seems to be undefined. Please make sure it is defined." >&5
21720 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21721 which seems to be undefined. Please make sure it is defined." >&2;}
21722
21723 rm -f "$tmp/stdin"
21724 case $ac_file in
21725 -) cat "$tmp/out" && rm -f "$tmp/out";;
21726 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21727 esac \
21728 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21729 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21730 { (exit 1); exit 1; }; }
21731 ;;
21732 :H)
21733 #
21734 # CONFIG_HEADER
21735 #
21736 if test x"$ac_file" != x-; then
21737 {
21738 $as_echo "/* $configure_input */" \
21739 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21740 } >"$tmp/config.h" \
21741 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21742 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21743 { (exit 1); exit 1; }; }
21744 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21745 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21746 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21747 else
21748 rm -f "$ac_file"
21749 mv "$tmp/config.h" "$ac_file" \
21750 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21751 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21752 { (exit 1); exit 1; }; }
21753 fi
21754 else
21755 $as_echo "/* $configure_input */" \
21756 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21757 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21758 $as_echo "$as_me: error: could not create -" >&2;}
21759 { (exit 1); exit 1; }; }
21760 fi
21761 # Compute "$ac_file"'s index in $config_headers.
21762 _am_arg="$ac_file"
21763 _am_stamp_count=1
21764 for _am_header in $config_headers :; do
21765 case $_am_header in
21766 $_am_arg | $_am_arg:* )
21767 break ;;
21768 * )
21769 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21770 esac
21771 done
21772 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21773 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21774 X"$_am_arg" : 'X\(//\)[^/]' \| \
21775 X"$_am_arg" : 'X\(//\)$' \| \
21776 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21777 $as_echo X"$_am_arg" |
21778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21779 s//\1/
21780 q
21781 }
21782 /^X\(\/\/\)[^/].*/{
21783 s//\1/
21784 q
21785 }
21786 /^X\(\/\/\)$/{
21787 s//\1/
21788 q
21789 }
21790 /^X\(\/\).*/{
21791 s//\1/
21792 q
21793 }
21794 s/.*/./; q'`/stamp-h$_am_stamp_count
21795 ;;
21796
21797 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21798 $as_echo "$as_me: executing $ac_file commands" >&6;}
21799 ;;
21800 esac
21801
21802
21803 case $ac_file$ac_mode in
21804 "spl_config.h":H)
21805 (mv spl_config.h spl_config.h.tmp &&
21806 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
21807 rm spl_config.h.tmp) || exit 1 ;;
21808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21809 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21810 # are listed without --file. Let's play safe and only enable the eval
21811 # if we detect the quoting.
21812 case $CONFIG_FILES in
21813 *\'*) eval set x "$CONFIG_FILES" ;;
21814 *) set x $CONFIG_FILES ;;
21815 esac
21816 shift
21817 for mf
21818 do
21819 # Strip MF so we end up with the name of the file.
21820 mf=`echo "$mf" | sed -e 's/:.*$//'`
21821 # Check whether this is an Automake generated Makefile or not.
21822 # We used to match only the files named `Makefile.in', but
21823 # some people rename them; so instead we look at the file content.
21824 # Grep'ing the first line is not enough: some people post-process
21825 # each Makefile.in and add a new line on top of each file to say so.
21826 # Grep'ing the whole file is not good either: AIX grep has a line
21827 # limit of 2048, but all sed's we know have understand at least 4000.
21828 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21829 dirpart=`$as_dirname -- "$mf" ||
21830 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21831 X"$mf" : 'X\(//\)[^/]' \| \
21832 X"$mf" : 'X\(//\)$' \| \
21833 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21834 $as_echo X"$mf" |
21835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21836 s//\1/
21837 q
21838 }
21839 /^X\(\/\/\)[^/].*/{
21840 s//\1/
21841 q
21842 }
21843 /^X\(\/\/\)$/{
21844 s//\1/
21845 q
21846 }
21847 /^X\(\/\).*/{
21848 s//\1/
21849 q
21850 }
21851 s/.*/./; q'`
21852 else
21853 continue
21854 fi
21855 # Extract the definition of DEPDIR, am__include, and am__quote
21856 # from the Makefile without running `make'.
21857 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21858 test -z "$DEPDIR" && continue
21859 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21860 test -z "am__include" && continue
21861 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21862 # When using ansi2knr, U may be empty or an underscore; expand it
21863 U=`sed -n 's/^U = //p' < "$mf"`
21864 # Find all dependency output files, they are included files with
21865 # $(DEPDIR) in their names. We invoke sed twice because it is the
21866 # simplest approach to changing $(DEPDIR) to its actual value in the
21867 # expansion.
21868 for file in `sed -n "
21869 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21870 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21871 # Make sure the directory exists.
21872 test -f "$dirpart/$file" && continue
21873 fdir=`$as_dirname -- "$file" ||
21874 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21875 X"$file" : 'X\(//\)[^/]' \| \
21876 X"$file" : 'X\(//\)$' \| \
21877 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21878 $as_echo X"$file" |
21879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21880 s//\1/
21881 q
21882 }
21883 /^X\(\/\/\)[^/].*/{
21884 s//\1/
21885 q
21886 }
21887 /^X\(\/\/\)$/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\).*/{
21892 s//\1/
21893 q
21894 }
21895 s/.*/./; q'`
21896 { as_dir=$dirpart/$fdir
21897 case $as_dir in #(
21898 -*) as_dir=./$as_dir;;
21899 esac
21900 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21901 as_dirs=
21902 while :; do
21903 case $as_dir in #(
21904 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21905 *) as_qdir=$as_dir;;
21906 esac
21907 as_dirs="'$as_qdir' $as_dirs"
21908 as_dir=`$as_dirname -- "$as_dir" ||
21909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21910 X"$as_dir" : 'X\(//\)[^/]' \| \
21911 X"$as_dir" : 'X\(//\)$' \| \
21912 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21913 $as_echo X"$as_dir" |
21914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21915 s//\1/
21916 q
21917 }
21918 /^X\(\/\/\)[^/].*/{
21919 s//\1/
21920 q
21921 }
21922 /^X\(\/\/\)$/{
21923 s//\1/
21924 q
21925 }
21926 /^X\(\/\).*/{
21927 s//\1/
21928 q
21929 }
21930 s/.*/./; q'`
21931 test -d "$as_dir" && break
21932 done
21933 test -z "$as_dirs" || eval "mkdir $as_dirs"
21934 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21935 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21936 { (exit 1); exit 1; }; }; }
21937 # echo "creating $dirpart/$file"
21938 echo '# dummy' > "$dirpart/$file"
21939 done
21940 done
21941 }
21942 ;;
21943 "libtool":C)
21944
21945 # See if we are running on zsh, and set the options which allow our
21946 # commands through without removal of \ escapes.
21947 if test -n "${ZSH_VERSION+set}" ; then
21948 setopt NO_GLOB_SUBST
21949 fi
21950
21951 cfgfile="${ofile}T"
21952 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21953 $RM "$cfgfile"
21954
21955 cat <<_LT_EOF >> "$cfgfile"
21956 #! $SHELL
21957
21958 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21959 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21960 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21961 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21962 #
21963 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21964 # 2006, 2007, 2008 Free Software Foundation, Inc.
21965 # Written by Gordon Matzigkeit, 1996
21966 #
21967 # This file is part of GNU Libtool.
21968 #
21969 # GNU Libtool is free software; you can redistribute it and/or
21970 # modify it under the terms of the GNU General Public License as
21971 # published by the Free Software Foundation; either version 2 of
21972 # the License, or (at your option) any later version.
21973 #
21974 # As a special exception to the GNU General Public License,
21975 # if you distribute this file as part of a program or library that
21976 # is built using GNU Libtool, you may include this file under the
21977 # same distribution terms that you use for the rest of that program.
21978 #
21979 # GNU Libtool is distributed in the hope that it will be useful,
21980 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21982 # GNU General Public License for more details.
21983 #
21984 # You should have received a copy of the GNU General Public License
21985 # along with GNU Libtool; see the file COPYING. If not, a copy
21986 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21987 # obtained by writing to the Free Software Foundation, Inc.,
21988 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21989
21990
21991 # The names of the tagged configurations supported by this script.
21992 available_tags=""
21993
21994 # ### BEGIN LIBTOOL CONFIG
21995
21996 # Which release of libtool.m4 was used?
21997 macro_version=$macro_version
21998 macro_revision=$macro_revision
21999
22000 # Whether or not to build shared libraries.
22001 build_libtool_libs=$enable_shared
22002
22003 # Whether or not to build static libraries.
22004 build_old_libs=$enable_static
22005
22006 # What type of objects to build.
22007 pic_mode=$pic_mode
22008
22009 # Whether or not to optimize for fast installation.
22010 fast_install=$enable_fast_install
22011
22012 # The host system.
22013 host_alias=$host_alias
22014 host=$host
22015 host_os=$host_os
22016
22017 # The build system.
22018 build_alias=$build_alias
22019 build=$build
22020 build_os=$build_os
22021
22022 # A sed program that does not truncate output.
22023 SED=$lt_SED
22024
22025 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22026 Xsed="\$SED -e 1s/^X//"
22027
22028 # A grep program that handles long lines.
22029 GREP=$lt_GREP
22030
22031 # An ERE matcher.
22032 EGREP=$lt_EGREP
22033
22034 # A literal string matcher.
22035 FGREP=$lt_FGREP
22036
22037 # A BSD- or MS-compatible name lister.
22038 NM=$lt_NM
22039
22040 # Whether we need soft or hard links.
22041 LN_S=$lt_LN_S
22042
22043 # What is the maximum length of a command?
22044 max_cmd_len=$max_cmd_len
22045
22046 # Object file suffix (normally "o").
22047 objext=$ac_objext
22048
22049 # Executable file suffix (normally "").
22050 exeext=$exeext
22051
22052 # whether the shell understands "unset".
22053 lt_unset=$lt_unset
22054
22055 # turn spaces into newlines.
22056 SP2NL=$lt_lt_SP2NL
22057
22058 # turn newlines into spaces.
22059 NL2SP=$lt_lt_NL2SP
22060
22061 # How to create reloadable object files.
22062 reload_flag=$lt_reload_flag
22063 reload_cmds=$lt_reload_cmds
22064
22065 # An object symbol dumper.
22066 OBJDUMP=$lt_OBJDUMP
22067
22068 # Method to check whether dependent libraries are shared objects.
22069 deplibs_check_method=$lt_deplibs_check_method
22070
22071 # Command to use when deplibs_check_method == "file_magic".
22072 file_magic_cmd=$lt_file_magic_cmd
22073
22074 # The archiver.
22075 AR=$lt_AR
22076 AR_FLAGS=$lt_AR_FLAGS
22077
22078 # A symbol stripping program.
22079 STRIP=$lt_STRIP
22080
22081 # Commands used to install an old-style archive.
22082 RANLIB=$lt_RANLIB
22083 old_postinstall_cmds=$lt_old_postinstall_cmds
22084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22085
22086 # A C compiler.
22087 LTCC=$lt_CC
22088
22089 # LTCC compiler flags.
22090 LTCFLAGS=$lt_CFLAGS
22091
22092 # Take the output of nm and produce a listing of raw symbols and C names.
22093 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22094
22095 # Transform the output of nm in a proper C declaration.
22096 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22097
22098 # Transform the output of nm in a C name address pair.
22099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22100
22101 # Transform the output of nm in a C name address pair when lib prefix is needed.
22102 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22103
22104 # The name of the directory that contains temporary libtool files.
22105 objdir=$objdir
22106
22107 # Shell to use when invoking shell scripts.
22108 SHELL=$lt_SHELL
22109
22110 # An echo program that does not interpret backslashes.
22111 ECHO=$lt_ECHO
22112
22113 # Used to examine libraries when file_magic_cmd begins with "file".
22114 MAGIC_CMD=$MAGIC_CMD
22115
22116 # Must we lock files when doing compilation?
22117 need_locks=$lt_need_locks
22118
22119 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22120 DSYMUTIL=$lt_DSYMUTIL
22121
22122 # Tool to change global to local symbols on Mac OS X.
22123 NMEDIT=$lt_NMEDIT
22124
22125 # Tool to manipulate fat objects and archives on Mac OS X.
22126 LIPO=$lt_LIPO
22127
22128 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22129 OTOOL=$lt_OTOOL
22130
22131 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22132 OTOOL64=$lt_OTOOL64
22133
22134 # Old archive suffix (normally "a").
22135 libext=$libext
22136
22137 # Shared library suffix (normally ".so").
22138 shrext_cmds=$lt_shrext_cmds
22139
22140 # The commands to extract the exported symbol list from a shared archive.
22141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22142
22143 # Variables whose values should be saved in libtool wrapper scripts and
22144 # restored at link time.
22145 variables_saved_for_relink=$lt_variables_saved_for_relink
22146
22147 # Do we need the "lib" prefix for modules?
22148 need_lib_prefix=$need_lib_prefix
22149
22150 # Do we need a version for libraries?
22151 need_version=$need_version
22152
22153 # Library versioning type.
22154 version_type=$version_type
22155
22156 # Shared library runtime path variable.
22157 runpath_var=$runpath_var
22158
22159 # Shared library path variable.
22160 shlibpath_var=$shlibpath_var
22161
22162 # Is shlibpath searched before the hard-coded library search path?
22163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22164
22165 # Format of library name prefix.
22166 libname_spec=$lt_libname_spec
22167
22168 # List of archive names. First name is the real one, the rest are links.
22169 # The last name is the one that the linker finds with -lNAME
22170 library_names_spec=$lt_library_names_spec
22171
22172 # The coded name of the library, if different from the real name.
22173 soname_spec=$lt_soname_spec
22174
22175 # Command to use after installation of a shared archive.
22176 postinstall_cmds=$lt_postinstall_cmds
22177
22178 # Command to use after uninstallation of a shared archive.
22179 postuninstall_cmds=$lt_postuninstall_cmds
22180
22181 # Commands used to finish a libtool library installation in a directory.
22182 finish_cmds=$lt_finish_cmds
22183
22184 # As "finish_cmds", except a single script fragment to be evaled but
22185 # not shown.
22186 finish_eval=$lt_finish_eval
22187
22188 # Whether we should hardcode library paths into libraries.
22189 hardcode_into_libs=$hardcode_into_libs
22190
22191 # Compile-time system search path for libraries.
22192 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22193
22194 # Run-time system search path for libraries.
22195 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22196
22197 # Whether dlopen is supported.
22198 dlopen_support=$enable_dlopen
22199
22200 # Whether dlopen of programs is supported.
22201 dlopen_self=$enable_dlopen_self
22202
22203 # Whether dlopen of statically linked programs is supported.
22204 dlopen_self_static=$enable_dlopen_self_static
22205
22206 # Commands to strip libraries.
22207 old_striplib=$lt_old_striplib
22208 striplib=$lt_striplib
22209
22210
22211 # The linker used to build libraries.
22212 LD=$lt_LD
22213
22214 # Commands used to build an old-style archive.
22215 old_archive_cmds=$lt_old_archive_cmds
22216
22217 # A language specific compiler.
22218 CC=$lt_compiler
22219
22220 # Is the compiler the GNU compiler?
22221 with_gcc=$GCC
22222
22223 # Compiler flag to turn off builtin functions.
22224 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22225
22226 # How to pass a linker flag through the compiler.
22227 wl=$lt_lt_prog_compiler_wl
22228
22229 # Additional compiler flags for building library objects.
22230 pic_flag=$lt_lt_prog_compiler_pic
22231
22232 # Compiler flag to prevent dynamic linking.
22233 link_static_flag=$lt_lt_prog_compiler_static
22234
22235 # Does compiler simultaneously support -c and -o options?
22236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22237
22238 # Whether or not to add -lc for building shared libraries.
22239 build_libtool_need_lc=$archive_cmds_need_lc
22240
22241 # Whether or not to disallow shared libs when runtime libs are static.
22242 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22243
22244 # Compiler flag to allow reflexive dlopens.
22245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22246
22247 # Compiler flag to generate shared objects directly from archives.
22248 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22249
22250 # Whether the compiler copes with passing no objects directly.
22251 compiler_needs_object=$lt_compiler_needs_object
22252
22253 # Create an old-style archive from a shared archive.
22254 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22255
22256 # Create a temporary old-style archive to link instead of a shared archive.
22257 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22258
22259 # Commands used to build a shared archive.
22260 archive_cmds=$lt_archive_cmds
22261 archive_expsym_cmds=$lt_archive_expsym_cmds
22262
22263 # Commands used to build a loadable module if different from building
22264 # a shared archive.
22265 module_cmds=$lt_module_cmds
22266 module_expsym_cmds=$lt_module_expsym_cmds
22267
22268 # Whether we are building with GNU ld or not.
22269 with_gnu_ld=$lt_with_gnu_ld
22270
22271 # Flag that allows shared libraries with undefined symbols to be built.
22272 allow_undefined_flag=$lt_allow_undefined_flag
22273
22274 # Flag that enforces no undefined symbols.
22275 no_undefined_flag=$lt_no_undefined_flag
22276
22277 # Flag to hardcode \$libdir into a binary during linking.
22278 # This must work even if \$libdir does not exist
22279 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22280
22281 # If ld is used when linking, flag to hardcode \$libdir into a binary
22282 # during linking. This must work even if \$libdir does not exist.
22283 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22284
22285 # Whether we need a single "-rpath" flag with a separated argument.
22286 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22287
22288 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22289 # DIR into the resulting binary.
22290 hardcode_direct=$hardcode_direct
22291
22292 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22293 # DIR into the resulting binary and the resulting library dependency is
22294 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22295 # library is relocated.
22296 hardcode_direct_absolute=$hardcode_direct_absolute
22297
22298 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22299 # into the resulting binary.
22300 hardcode_minus_L=$hardcode_minus_L
22301
22302 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22303 # into the resulting binary.
22304 hardcode_shlibpath_var=$hardcode_shlibpath_var
22305
22306 # Set to "yes" if building a shared library automatically hardcodes DIR
22307 # into the library and all subsequent libraries and executables linked
22308 # against it.
22309 hardcode_automatic=$hardcode_automatic
22310
22311 # Set to yes if linker adds runtime paths of dependent libraries
22312 # to runtime path list.
22313 inherit_rpath=$inherit_rpath
22314
22315 # Whether libtool must link a program against all its dependency libraries.
22316 link_all_deplibs=$link_all_deplibs
22317
22318 # Fix the shell variable \$srcfile for the compiler.
22319 fix_srcfile_path=$lt_fix_srcfile_path
22320
22321 # Set to "yes" if exported symbols are required.
22322 always_export_symbols=$always_export_symbols
22323
22324 # The commands to list exported symbols.
22325 export_symbols_cmds=$lt_export_symbols_cmds
22326
22327 # Symbols that should not be listed in the preloaded symbols.
22328 exclude_expsyms=$lt_exclude_expsyms
22329
22330 # Symbols that must always be exported.
22331 include_expsyms=$lt_include_expsyms
22332
22333 # Commands necessary for linking programs (against libraries) with templates.
22334 prelink_cmds=$lt_prelink_cmds
22335
22336 # Specify filename containing input files.
22337 file_list_spec=$lt_file_list_spec
22338
22339 # How to hardcode a shared library path into an executable.
22340 hardcode_action=$hardcode_action
22341
22342 # ### END LIBTOOL CONFIG
22343
22344 _LT_EOF
22345
22346 case $host_os in
22347 aix3*)
22348 cat <<\_LT_EOF >> "$cfgfile"
22349 # AIX sometimes has problems with the GCC collect2 program. For some
22350 # reason, if we set the COLLECT_NAMES environment variable, the problems
22351 # vanish in a puff of smoke.
22352 if test "X${COLLECT_NAMES+set}" != Xset; then
22353 COLLECT_NAMES=
22354 export COLLECT_NAMES
22355 fi
22356 _LT_EOF
22357 ;;
22358 esac
22359
22360
22361 ltmain="$ac_aux_dir/ltmain.sh"
22362
22363
22364 # We use sed instead of cat because bash on DJGPP gets confused if
22365 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22366 # text mode, it properly converts lines to CR/LF. This bash problem
22367 # is reportedly fixed, but why not run on old versions too?
22368 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22369 || (rm -f "$cfgfile"; exit 1)
22370
22371 case $xsi_shell in
22372 yes)
22373 cat << \_LT_EOF >> "$cfgfile"
22374
22375 # func_dirname file append nondir_replacement
22376 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22377 # otherwise set result to NONDIR_REPLACEMENT.
22378 func_dirname ()
22379 {
22380 case ${1} in
22381 */*) func_dirname_result="${1%/*}${2}" ;;
22382 * ) func_dirname_result="${3}" ;;
22383 esac
22384 }
22385
22386 # func_basename file
22387 func_basename ()
22388 {
22389 func_basename_result="${1##*/}"
22390 }
22391
22392 # func_dirname_and_basename file append nondir_replacement
22393 # perform func_basename and func_dirname in a single function
22394 # call:
22395 # dirname: Compute the dirname of FILE. If nonempty,
22396 # add APPEND to the result, otherwise set result
22397 # to NONDIR_REPLACEMENT.
22398 # value returned in "$func_dirname_result"
22399 # basename: Compute filename of FILE.
22400 # value retuned in "$func_basename_result"
22401 # Implementation must be kept synchronized with func_dirname
22402 # and func_basename. For efficiency, we do not delegate to
22403 # those functions but instead duplicate the functionality here.
22404 func_dirname_and_basename ()
22405 {
22406 case ${1} in
22407 */*) func_dirname_result="${1%/*}${2}" ;;
22408 * ) func_dirname_result="${3}" ;;
22409 esac
22410 func_basename_result="${1##*/}"
22411 }
22412
22413 # func_stripname prefix suffix name
22414 # strip PREFIX and SUFFIX off of NAME.
22415 # PREFIX and SUFFIX must not contain globbing or regex special
22416 # characters, hashes, percent signs, but SUFFIX may contain a leading
22417 # dot (in which case that matches only a dot).
22418 func_stripname ()
22419 {
22420 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22421 # positional parameters, so assign one to ordinary parameter first.
22422 func_stripname_result=${3}
22423 func_stripname_result=${func_stripname_result#"${1}"}
22424 func_stripname_result=${func_stripname_result%"${2}"}
22425 }
22426
22427 # func_opt_split
22428 func_opt_split ()
22429 {
22430 func_opt_split_opt=${1%%=*}
22431 func_opt_split_arg=${1#*=}
22432 }
22433
22434 # func_lo2o object
22435 func_lo2o ()
22436 {
22437 case ${1} in
22438 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22439 *) func_lo2o_result=${1} ;;
22440 esac
22441 }
22442
22443 # func_xform libobj-or-source
22444 func_xform ()
22445 {
22446 func_xform_result=${1%.*}.lo
22447 }
22448
22449 # func_arith arithmetic-term...
22450 func_arith ()
22451 {
22452 func_arith_result=$(( $* ))
22453 }
22454
22455 # func_len string
22456 # STRING may not start with a hyphen.
22457 func_len ()
22458 {
22459 func_len_result=${#1}
22460 }
22461
22462 _LT_EOF
22463 ;;
22464 *) # Bourne compatible functions.
22465 cat << \_LT_EOF >> "$cfgfile"
22466
22467 # func_dirname file append nondir_replacement
22468 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22469 # otherwise set result to NONDIR_REPLACEMENT.
22470 func_dirname ()
22471 {
22472 # Extract subdirectory from the argument.
22473 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22474 if test "X$func_dirname_result" = "X${1}"; then
22475 func_dirname_result="${3}"
22476 else
22477 func_dirname_result="$func_dirname_result${2}"
22478 fi
22479 }
22480
22481 # func_basename file
22482 func_basename ()
22483 {
22484 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22485 }
22486
22487
22488 # func_stripname prefix suffix name
22489 # strip PREFIX and SUFFIX off of NAME.
22490 # PREFIX and SUFFIX must not contain globbing or regex special
22491 # characters, hashes, percent signs, but SUFFIX may contain a leading
22492 # dot (in which case that matches only a dot).
22493 # func_strip_suffix prefix name
22494 func_stripname ()
22495 {
22496 case ${2} in
22497 .*) func_stripname_result=`$ECHO "X${3}" \
22498 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22499 *) func_stripname_result=`$ECHO "X${3}" \
22500 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22501 esac
22502 }
22503
22504 # sed scripts:
22505 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22506 my_sed_long_arg='1s/^-[^=]*=//'
22507
22508 # func_opt_split
22509 func_opt_split ()
22510 {
22511 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22512 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22513 }
22514
22515 # func_lo2o object
22516 func_lo2o ()
22517 {
22518 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22519 }
22520
22521 # func_xform libobj-or-source
22522 func_xform ()
22523 {
22524 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22525 }
22526
22527 # func_arith arithmetic-term...
22528 func_arith ()
22529 {
22530 func_arith_result=`expr "$@"`
22531 }
22532
22533 # func_len string
22534 # STRING may not start with a hyphen.
22535 func_len ()
22536 {
22537 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22538 }
22539
22540 _LT_EOF
22541 esac
22542
22543 case $lt_shell_append in
22544 yes)
22545 cat << \_LT_EOF >> "$cfgfile"
22546
22547 # func_append var value
22548 # Append VALUE to the end of shell variable VAR.
22549 func_append ()
22550 {
22551 eval "$1+=\$2"
22552 }
22553 _LT_EOF
22554 ;;
22555 *)
22556 cat << \_LT_EOF >> "$cfgfile"
22557
22558 # func_append var value
22559 # Append VALUE to the end of shell variable VAR.
22560 func_append ()
22561 {
22562 eval "$1=\$$1\$2"
22563 }
22564
22565 _LT_EOF
22566 ;;
22567 esac
22568
22569
22570 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22571 || (rm -f "$cfgfile"; exit 1)
22572
22573 mv -f "$cfgfile" "$ofile" ||
22574 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22575 chmod +x "$ofile"
22576
22577 ;;
22578
22579 esac
22580 done # for ac_tag
22581
22582
22583 { (exit 0); exit 0; }
22584 _ACEOF
22585 chmod +x $CONFIG_STATUS
22586 ac_clean_files=$ac_clean_files_save
22587
22588 test $ac_write_fail = 0 ||
22589 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22590 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22591 { (exit 1); exit 1; }; }
22592
22593
22594 # configure is writing to config.log, and then calls config.status.
22595 # config.status does its own redirection, appending to config.log.
22596 # Unfortunately, on DOS this fails, as config.log is still kept open
22597 # by configure, so config.status won't be able to write to it; its
22598 # output is simply discarded. So we exec the FD to /dev/null,
22599 # effectively closing config.log, so it can be properly (re)opened and
22600 # appended to by config.status. When coming back to configure, we
22601 # need to make the FD available again.
22602 if test "$no_create" != yes; then
22603 ac_cs_success=:
22604 ac_config_status_args=
22605 test "$silent" = yes &&
22606 ac_config_status_args="$ac_config_status_args --quiet"
22607 exec 5>/dev/null
22608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22609 exec 5>>config.log
22610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22611 # would make configure fail if this is the last instruction.
22612 $ac_cs_success || { (exit 1); exit 1; }
22613 fi
22614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22615 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22617 fi
22618