]> git.proxmox.com Git - mirror_spl-debian.git/blob - configure
Proxmox VE kernel compat, invalidate_inodes()
[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 MAKEPKG_VERSION
805 MAKEPKG
806 HAVE_MAKEPKG
807 PACMAN_VERSION
808 PACMAN
809 HAVE_PACMAN
810 ALIEN_VERSION
811 ALIEN
812 HAVE_ALIEN
813 DPKGBUILD_VERSION
814 DPKGBUILD
815 HAVE_DPKGBUILD
816 DPKG_VERSION
817 DPKG
818 HAVE_DPKG
819 RPMBUILD_VERSION
820 RPMBUILD
821 HAVE_RPMBUILD
822 RPM_VERSION
823 RPM
824 HAVE_RPM
825 LICENSE
826 CPP
827 OTOOL64
828 OTOOL
829 LIPO
830 NMEDIT
831 DSYMUTIL
832 lt_ECHO
833 RANLIB
834 AR
835 OBJDUMP
836 LN_S
837 NM
838 ac_ct_DUMPBIN
839 DUMPBIN
840 LD
841 FGREP
842 EGREP
843 GREP
844 SED
845 LIBTOOL
846 am__fastdepCC_FALSE
847 am__fastdepCC_TRUE
848 CCDEPMODE
849 AMDEPBACKSLASH
850 AMDEP_FALSE
851 AMDEP_TRUE
852 am__quote
853 am__include
854 DEPDIR
855 OBJEXT
856 EXEEXT
857 ac_ct_CC
858 CPPFLAGS
859 LDFLAGS
860 CFLAGS
861 CC
862 am__untar
863 am__tar
864 AMTAR
865 am__leading_dot
866 SET_MAKE
867 AWK
868 mkdir_p
869 MKDIR_P
870 INSTALL_STRIP_PROGRAM
871 STRIP
872 install_sh
873 MAKEINFO
874 AUTOHEADER
875 AUTOMAKE
876 AUTOCONF
877 ACLOCAL
878 VERSION
879 PACKAGE
880 CYGPATH_W
881 am__isrc
882 INSTALL_DATA
883 INSTALL_SCRIPT
884 INSTALL_PROGRAM
885 AM_BACKSLASH
886 AM_DEFAULT_VERBOSITY
887 MAINT
888 MAINTAINER_MODE_FALSE
889 MAINTAINER_MODE_TRUE
890 target_os
891 target_vendor
892 target_cpu
893 target
894 host_os
895 host_vendor
896 host_cpu
897 host
898 build_os
899 build_vendor
900 build_cpu
901 build
902 SPL_META_LT_AGE
903 SPL_META_LT_REVISION
904 SPL_META_LT_CURRENT
905 SPL_META_AUTHOR
906 SPL_META_DATA
907 SPL_META_ALIAS
908 SPL_META_RELEASE
909 SPL_META_VERSION
910 SPL_META_NAME
911 target_alias
912 host_alias
913 build_alias
914 LIBS
915 ECHO_T
916 ECHO_N
917 ECHO_C
918 DEFS
919 mandir
920 localedir
921 libdir
922 psdir
923 pdfdir
924 dvidir
925 htmldir
926 infodir
927 docdir
928 oldincludedir
929 includedir
930 localstatedir
931 sharedstatedir
932 sysconfdir
933 datadir
934 datarootdir
935 libexecdir
936 sbindir
937 bindir
938 program_transform_name
939 prefix
940 exec_prefix
941 PACKAGE_BUGREPORT
942 PACKAGE_STRING
943 PACKAGE_VERSION
944 PACKAGE_TARNAME
945 PACKAGE_NAME
946 PATH_SEPARATOR
947 SHELL'
948 ac_subst_files=''
949 ac_user_opts='
950 enable_option_checking
951 enable_maintainer_mode
952 enable_silent_rules
953 enable_dependency_tracking
954 enable_shared
955 enable_static
956 with_pic
957 enable_fast_install
958 with_gnu_ld
959 enable_libtool_lock
960 with_config
961 with_linux
962 with_linux_obj
963 enable_debug
964 enable_debug_kmem
965 enable_debug_kmem_tracking
966 enable_atomic_spinlocks
967 '
968 ac_precious_vars='build_alias
969 host_alias
970 target_alias
971 CC
972 CFLAGS
973 LDFLAGS
974 LIBS
975 CPPFLAGS
976 CPP'
977
978
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1000
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1026
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1030 do
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1036 fi
1037
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1042
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1044
1045 case $ac_dashdash$ac_option in
1046 --)
1047 ac_dashdash=yes ;;
1048
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1053
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1058
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1065
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1068
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1073
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1080
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1086 { (exit 1); exit 1; }; }
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1097
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1102
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1107
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1124
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1133
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1137
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1144
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1149
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1155
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1162
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1167
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1172
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1179
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1184
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1191
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1196
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1200
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1204
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1208
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1217
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1222
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1229
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1236
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1253
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1258
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1263
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1267
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1273
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1284
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1289
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1294
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1301
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1306
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1309
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1312
1313 -with-* | --with-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1329
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1335 { (exit 1); exit 1; }; }
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1339 *"
1340 "with_$ac_useropt"
1341 "*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
1346
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1350
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1357
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1364
1365 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1366 Try \`$0 --help' for more information." >&2
1367 { (exit 1); exit 1; }; }
1368 ;;
1369
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375 { (exit 1); exit 1; }; }
1376 eval $ac_envvar=\$ac_optarg
1377 export $ac_envvar ;;
1378
1379 *)
1380 # FIXME: should be removed in autoconf 3.0.
1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385 ;;
1386
1387 esac
1388 done
1389
1390 if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1393 { (exit 1); exit 1; }; }
1394 fi
1395
1396 if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400 { (exit 1); exit 1; }; } ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 esac
1403 fi
1404
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1410 do
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1413 case $ac_val in
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1417 esac
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424 { (exit 1); exit 1; }; }
1425 done
1426
1427 # There might be people who depend on the old broken behavior: `$host'
1428 # used to hold the argument of --host etc.
1429 # FIXME: To remove some day.
1430 build=$build_alias
1431 host=$host_alias
1432 target=$target_alias
1433
1434 # FIXME: To remove some day.
1435 if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1441 cross_compiling=yes
1442 fi
1443 fi
1444
1445 ac_tool_prefix=
1446 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448 test "$silent" = yes && exec 6>/dev/null
1449
1450
1451 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452 ac_ls_di=`ls -di .` &&
1453 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455 { (exit 1); exit 1; }; }
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458 { (exit 1); exit 1; }; }
1459
1460
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 s//\1/
1473 q
1474 }
1475 /^X\(\/\/\)[^/].*/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\/\)$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\).*/{
1484 s//\1/
1485 q
1486 }
1487 s/.*/./; q'`
1488 srcdir=$ac_confdir
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 srcdir=..
1491 fi
1492 else
1493 ac_srcdir_defaulted=no
1494 fi
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1498 { (exit 1); exit 1; }; }
1499 fi
1500 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501 ac_abs_confdir=`(
1502 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1503 { (exit 1); exit 1; }; }
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508 fi
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1521
1522 #
1523 # Report the --help message.
1524 #
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures this package to adapt to many kinds of systems.
1530
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536 Defaults for the options are specified in brackets.
1537
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1554
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1559
1560 For better control, use the options below.
1561
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1583
1584 cat <<\_ACEOF
1585
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590
1591 System types:
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1595 _ACEOF
1596 fi
1597
1598 if test -n "$ac_init_help"; then
1599
1600 cat <<\_ACEOF
1601
1602 Optional Features:
1603 --disable-option-checking ignore unrecognized --enable/--with options
1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing) to the casual installer
1608 --enable-silent-rules less verbose build output (undo: `make V=1')
1609 --disable-silent-rules verbose build output (undo: `make V=0')
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-debug Enable generic debug support [default=no]
1618 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1619 --enable-debug-kmem-tracking
1620 Enable detailed kmem tracking [default=no]
1621 --enable-atomic-spinlocks
1622 Atomic types use spinlocks [default=check]
1623
1624 Optional Packages:
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1627 --with-pic try to use only PIC/non-PIC objects [default=use
1628 both]
1629 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1630 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1631 --with-linux=PATH Path to kernel source
1632 --with-linux-obj=PATH Path to kernel build objects
1633
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CPP C preprocessor
1643
1644 Use these variables to override the choices made by `configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1646
1647 _ACEOF
1648 ac_status=$?
1649 fi
1650
1651 if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
1657 ac_builddir=.
1658
1659 case "$ac_dir" in
1660 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *)
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669 esac
1670 ac_abs_top_builddir=$ac_pwd
1671 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672 # for backward compatibility:
1673 ac_top_builddir=$ac_top_build_prefix
1674
1675 case $srcdir in
1676 .) # We are building in place.
1677 ac_srcdir=.
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
1681 ac_srcdir=$srcdir$ac_dir_suffix;
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 esac
1689 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
1699 else
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
1703 done
1704 fi
1705
1706 test -n "$ac_init_help" && exit $ac_status
1707 if $ac_init_version; then
1708 cat <<\_ACEOF
1709 configure
1710 generated by GNU Autoconf 2.63
1711
1712 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1713 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1716 _ACEOF
1717 exit
1718 fi
1719 cat >config.log <<_ACEOF
1720 This file contains any messages produced by compilers while
1721 running configure, to aid debugging if configure makes a mistake.
1722
1723 It was created by $as_me, which was
1724 generated by GNU Autoconf 2.63. Invocation command line was
1725
1726 $ $0 $@
1727
1728 _ACEOF
1729 exec 5>>config.log
1730 {
1731 cat <<_ASUNAME
1732 ## --------- ##
1733 ## Platform. ##
1734 ## --------- ##
1735
1736 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1741
1742 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1744
1745 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1748 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1749 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752
1753 _ASUNAME
1754
1755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 for as_dir in $PATH
1757 do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
1760 $as_echo "PATH: $as_dir"
1761 done
1762 IFS=$as_save_IFS
1763
1764 } >&5
1765
1766 cat >&5 <<_ACEOF
1767
1768
1769 ## ----------- ##
1770 ## Core tests. ##
1771 ## ----------- ##
1772
1773 _ACEOF
1774
1775
1776 # Keep a trace of the command line.
1777 # Strip out --no-create and --no-recursion so they do not pile up.
1778 # Strip out --silent because we don't want to record it for future runs.
1779 # Also quote any args containing shell meta-characters.
1780 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_configure_args=
1782 ac_configure_args0=
1783 ac_configure_args1=
1784 ac_must_keep_next=false
1785 for ac_pass in 1 2
1786 do
1787 for ac_arg
1788 do
1789 case $ac_arg in
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1793 continue ;;
1794 *\'*)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 esac
1797 case $ac_pass in
1798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1799 2)
1800 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1803 else
1804 case $ac_arg in
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1811 esac
1812 ;;
1813 -* ) ac_must_keep_next=true ;;
1814 esac
1815 fi
1816 ac_configure_args="$ac_configure_args '$ac_arg'"
1817 ;;
1818 esac
1819 done
1820 done
1821 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1822 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1823
1824 # When interrupted or exit'd, cleanup temporary files, and complete
1825 # config.log. We remove comments because anyway the quotes in there
1826 # would cause problems or look ugly.
1827 # WARNING: Use '\'' to represent an apostrophe within the trap.
1828 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1829 trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 cat <<\_ASBOX
1835 ## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##
1838 _ASBOX
1839 echo
1840 # The following way of writing the cache mishandles newlines in values,
1841 (
1842 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in #(
1845 *${as_nl}*)
1846 case $ac_var in #(
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1849 esac
1850 case $ac_var in #(
1851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1853 *) $as_unset $ac_var ;;
1854 esac ;;
1855 esac
1856 done
1857 (set) 2>&1 |
1858 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1859 *${as_nl}ac_space=\ *)
1860 sed -n \
1861 "s/'\''/'\''\\\\'\'''\''/g;
1862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1863 ;; #(
1864 *)
1865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 ;;
1867 esac |
1868 sort
1869 )
1870 echo
1871
1872 cat <<\_ASBOX
1873 ## ----------------- ##
1874 ## Output variables. ##
1875 ## ----------------- ##
1876 _ASBOX
1877 echo
1878 for ac_var in $ac_subst_vars
1879 do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
1885 done | sort
1886 echo
1887
1888 if test -n "$ac_subst_files"; then
1889 cat <<\_ASBOX
1890 ## ------------------- ##
1891 ## File substitutions. ##
1892 ## ------------------- ##
1893 _ASBOX
1894 echo
1895 for ac_var in $ac_subst_files
1896 do
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
1902 done | sort
1903 echo
1904 fi
1905
1906 if test -s confdefs.h; then
1907 cat <<\_ASBOX
1908 ## ----------- ##
1909 ## confdefs.h. ##
1910 ## ----------- ##
1911 _ASBOX
1912 echo
1913 cat confdefs.h
1914 echo
1915 fi
1916 test "$ac_signal" != 0 &&
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
1919 } >&5
1920 rm -f core *.core core.conftest.* &&
1921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1922 exit $exit_status
1923 ' 0
1924 for ac_signal in 1 2 13 15; do
1925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1926 done
1927 ac_signal=0
1928
1929 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1930 rm -f -r conftest* confdefs.h
1931
1932 # Predefined preprocessor variables.
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_NAME "$PACKAGE_NAME"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941 _ACEOF
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_STRING "$PACKAGE_STRING"
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956 _ACEOF
1957
1958
1959 # Let the site file select an alternate cache file if it wants to.
1960 # Prefer an explicitly selected file to automatically selected ones.
1961 ac_site_file1=NONE
1962 ac_site_file2=NONE
1963 if test -n "$CONFIG_SITE"; then
1964 ac_site_file1=$CONFIG_SITE
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971 fi
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1973 do
1974 test "x$ac_site_file" = xNONE && continue
1975 if test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file"
1980 fi
1981 done
1982
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special
1985 # files actually), so we avoid doing that.
1986 if test -f "$cache_file"; then
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1989 case $cache_file in
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1992 esac
1993 fi
1994 else
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
1997 >$cache_file
1998 fi
1999
2000 # Check that the precious variables saved in the cache have kept the same
2001 # value.
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2009 set,)
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2013 ,set)
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2047 esac
2048 fi
2049 done
2050 if $ac_cache_corrupted; then
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057 { (exit 1); exit 1; }; }
2058 fi
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081
2082
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
2090 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2091 $as_echo_n "checking metadata... " >&6; }
2092
2093 META="$srcdir/META"
2094 _spl_ac_meta_got_file=no
2095 if test -f "$META"; then
2096 _spl_ac_meta_got_file=yes
2097
2098 SPL_META_NAME=`perl -n\
2099 -e "BEGIN { \\$key=shift @ARGV; }"\
2100 -e "next unless s/^\s*\\$key[:=]//i;"\
2101 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2102 -e "s/^\s+//;"\
2103 -e "s/\s+$//;"\
2104 -e "s/^(['\"])(.*)\1/\\$2/;"\
2105 -e "\\$val=\\$_;"\
2106 -e "END { print \\$val if defined \\$val; }"\
2107 '(?:NAME|PROJECT|PACKAGE)' $META`;
2108 if test -n "$SPL_META_NAME"; then
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define SPL_META_NAME "$SPL_META_NAME"
2112 _ACEOF
2113
2114
2115 fi
2116
2117 SPL_META_VERSION=`perl -n\
2118 -e "BEGIN { \\$key=shift @ARGV; }"\
2119 -e "next unless s/^\s*\\$key[:=]//i;"\
2120 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2121 -e "s/^\s+//;"\
2122 -e "s/\s+$//;"\
2123 -e "s/^(['\"])(.*)\1/\\$2/;"\
2124 -e "\\$val=\\$_;"\
2125 -e "END { print \\$val if defined \\$val; }"\
2126 'VERSION' $META`;
2127 if test -n "$SPL_META_VERSION"; then
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define SPL_META_VERSION "$SPL_META_VERSION"
2131 _ACEOF
2132
2133
2134 fi
2135
2136 SPL_META_RELEASE=`perl -n\
2137 -e "BEGIN { \\$key=shift @ARGV; }"\
2138 -e "next unless s/^\s*\\$key[:=]//i;"\
2139 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2140 -e "s/^\s+//;"\
2141 -e "s/\s+$//;"\
2142 -e "s/^(['\"])(.*)\1/\\$2/;"\
2143 -e "\\$val=\\$_;"\
2144 -e "END { print \\$val if defined \\$val; }"\
2145 'RELEASE' $META`;
2146 if test -n "$SPL_META_RELEASE"; then
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define SPL_META_RELEASE "$SPL_META_RELEASE"
2150 _ACEOF
2151
2152
2153 fi
2154
2155 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2156 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2157 test -n "$SPL_META_RELEASE" &&
2158 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define SPL_META_ALIAS "$SPL_META_ALIAS"
2162 _ACEOF
2163
2164
2165 fi
2166
2167 SPL_META_DATA=`perl -n\
2168 -e "BEGIN { \\$key=shift @ARGV; }"\
2169 -e "next unless s/^\s*\\$key[:=]//i;"\
2170 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2171 -e "s/^\s+//;"\
2172 -e "s/\s+$//;"\
2173 -e "s/^(['\"])(.*)\1/\\$2/;"\
2174 -e "\\$val=\\$_;"\
2175 -e "END { print \\$val if defined \\$val; }"\
2176 'DATE' $META`;
2177 if test -n "$SPL_META_DATA"; then
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define SPL_META_DATA "$SPL_META_DATA"
2181 _ACEOF
2182
2183
2184 fi
2185
2186 SPL_META_AUTHOR=`perl -n\
2187 -e "BEGIN { \\$key=shift @ARGV; }"\
2188 -e "next unless s/^\s*\\$key[:=]//i;"\
2189 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2190 -e "s/^\s+//;"\
2191 -e "s/\s+$//;"\
2192 -e "s/^(['\"])(.*)\1/\\$2/;"\
2193 -e "\\$val=\\$_;"\
2194 -e "END { print \\$val if defined \\$val; }"\
2195 'AUTHOR' $META`;
2196 if test -n "$SPL_META_AUTHOR"; then
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2200 _ACEOF
2201
2202
2203 fi
2204
2205
2206 SPL_META_LT_CURRENT=`perl -n\
2207 -e "BEGIN { \\$key=shift @ARGV; }"\
2208 -e "next unless s/^\s*\\$key[:=]//i;"\
2209 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2210 -e "s/^\s+//;"\
2211 -e "s/\s+$//;"\
2212 -e "s/^(['\"])(.*)\1/\\$2/;"\
2213 -e "\\$val=\\$_;"\
2214 -e "END { print \\$val if defined \\$val; }"\
2215 'LT_CURRENT' $META`;
2216 SPL_META_LT_REVISION=`perl -n\
2217 -e "BEGIN { \\$key=shift @ARGV; }"\
2218 -e "next unless s/^\s*\\$key[:=]//i;"\
2219 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2220 -e "s/^\s+//;"\
2221 -e "s/\s+$//;"\
2222 -e "s/^(['\"])(.*)\1/\\$2/;"\
2223 -e "\\$val=\\$_;"\
2224 -e "END { print \\$val if defined \\$val; }"\
2225 'LT_REVISION' $META`;
2226 SPL_META_LT_AGE=`perl -n\
2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2230 -e "s/^\s+//;"\
2231 -e "s/\s+$//;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2233 -e "\\$val=\\$_;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2235 'LT_AGE' $META`;
2236 if test -n "$SPL_META_LT_CURRENT" \
2237 -o -n "$SPL_META_LT_REVISION" \
2238 -o -n "$SPL_META_LT_AGE"; then
2239 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2240 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2241 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2255 _ACEOF
2256
2257
2258
2259
2260 fi
2261 fi
2262
2263 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2264 $as_echo "$_spl_ac_meta_got_file" >&6; }
2265
2266
2267 ac_aux_dir=
2268 for ac_dir in config "$srcdir"/config; do
2269 if test -f "$ac_dir/install-sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install-sh -c"
2272 break
2273 elif test -f "$ac_dir/install.sh"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/install.sh -c"
2276 break
2277 elif test -f "$ac_dir/shtool"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/shtool install -c"
2280 break
2281 fi
2282 done
2283 if test -z "$ac_aux_dir"; then
2284 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2285 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2286 { (exit 1); exit 1; }; }
2287 fi
2288
2289 # These three variables are undocumented and unsupported,
2290 # and are intended to be withdrawn in a future Autoconf release.
2291 # They can cause serious problems if a builder's source tree is in a directory
2292 # whose full name contains unusual characters.
2293 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2294 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2295 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296
2297
2298 # Make sure we can run config.sub.
2299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2300 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2301 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2302 { (exit 1); exit 1; }; }
2303
2304 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2305 $as_echo_n "checking build system type... " >&6; }
2306 if test "${ac_cv_build+set}" = set; then
2307 $as_echo_n "(cached) " >&6
2308 else
2309 ac_build_alias=$build_alias
2310 test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312 test "x$ac_build_alias" = x &&
2313 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2314 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2315 { (exit 1); exit 1; }; }
2316 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2318 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2319 { (exit 1); exit 1; }; }
2320
2321 fi
2322 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2325 *-*-*) ;;
2326 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2327 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2328 { (exit 1); exit 1; }; };;
2329 esac
2330 build=$ac_cv_build
2331 ac_save_IFS=$IFS; IFS='-'
2332 set x $ac_cv_build
2333 shift
2334 build_cpu=$1
2335 build_vendor=$2
2336 shift; shift
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2339 build_os=$*
2340 IFS=$ac_save_IFS
2341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if test "${ac_cv_host+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351 else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2354 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357
2358 fi
2359 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2360 $as_echo "$ac_cv_host" >&6; }
2361 case $ac_cv_host in
2362 *-*-*) ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2364 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2365 { (exit 1); exit 1; }; };;
2366 esac
2367 host=$ac_cv_host
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_host
2370 shift
2371 host_cpu=$1
2372 host_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 host_os=$*
2377 IFS=$ac_save_IFS
2378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2379
2380
2381 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2382 $as_echo_n "checking target system type... " >&6; }
2383 if test "${ac_cv_target+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2385 else
2386 if test "x$target_alias" = x; then
2387 ac_cv_target=$ac_cv_host
2388 else
2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2391 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2392 { (exit 1); exit 1; }; }
2393 fi
2394
2395 fi
2396 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2397 $as_echo "$ac_cv_target" >&6; }
2398 case $ac_cv_target in
2399 *-*-*) ;;
2400 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2401 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2402 { (exit 1); exit 1; }; };;
2403 esac
2404 target=$ac_cv_target
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_target
2407 shift
2408 target_cpu=$1
2409 target_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 target_os=$*
2414 IFS=$ac_save_IFS
2415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2416
2417
2418 # The aliases save the names the user supplied, while $host etc.
2419 # will get canonicalized.
2420 test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
2424
2425 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2426 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2427 # Check whether --enable-maintainer-mode was given.
2428 if test "${enable_maintainer_mode+set}" = set; then
2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2430 else
2431 USE_MAINTAINER_MODE=no
2432 fi
2433
2434 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2435 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2436 if test $USE_MAINTAINER_MODE = yes; then
2437 MAINTAINER_MODE_TRUE=
2438 MAINTAINER_MODE_FALSE='#'
2439 else
2440 MAINTAINER_MODE_TRUE='#'
2441 MAINTAINER_MODE_FALSE=
2442 fi
2443
2444 MAINT=$MAINTAINER_MODE_TRUE
2445
2446
2447 # Check whether --enable-silent-rules was given.
2448 if test "${enable_silent_rules+set}" = set; then
2449 enableval=$enable_silent_rules;
2450 fi
2451
2452 case $enable_silent_rules in
2453 yes) AM_DEFAULT_VERBOSITY=0;;
2454 no) AM_DEFAULT_VERBOSITY=1;;
2455 *) AM_DEFAULT_VERBOSITY=1;;
2456 esac
2457 AM_BACKSLASH='\'
2458
2459 am__api_version='1.11'
2460
2461 # Find a good install program. We prefer a C program (faster),
2462 # so one script is as good as another. But avoid the broken or
2463 # incompatible versions:
2464 # SysV /etc/install, /usr/sbin/install
2465 # SunOS /usr/etc/install
2466 # IRIX /sbin/install
2467 # AIX /bin/install
2468 # AmigaOS /C/install, which installs bootblocks on floppy discs
2469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472 # OS/2's system install, which has a completely different semantic
2473 # ./install, which can be erroneously created by make from ./install.sh.
2474 # Reject install programs that cannot install multiple files.
2475 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2476 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2477 if test -z "$INSTALL"; then
2478 if test "${ac_cv_path_install+set}" = set; then
2479 $as_echo_n "(cached) " >&6
2480 else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 for as_dir in $PATH
2483 do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487 case $as_dir/ in
2488 ./ | .// | /cC/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2491 /usr/ucb/* ) ;;
2492 *)
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2502 :
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2506 :
2507 else
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2519 fi
2520 fi
2521 fi
2522 done
2523 done
2524 ;;
2525 esac
2526
2527 done
2528 IFS=$as_save_IFS
2529
2530 rm -rf conftest.one conftest.two conftest.dir
2531
2532 fi
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
2538 # break other packages using the cache if that directory is
2539 # removed, or if the value is a relative name.
2540 INSTALL=$ac_install_sh
2541 fi
2542 fi
2543 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2544 $as_echo "$INSTALL" >&6; }
2545
2546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547 # It thinks the first close brace ends the variable substitution.
2548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2553
2554 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2555 $as_echo_n "checking whether build environment is sane... " >&6; }
2556 # Just in case
2557 sleep 1
2558 echo timestamp > conftest.file
2559 # Reject unsafe characters in $srcdir or the absolute working directory
2560 # name. Accept space and tab only in the latter.
2561 am_lf='
2562 '
2563 case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2566 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2567 { (exit 1); exit 1; }; };;
2568 esac
2569 case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2572 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2573 { (exit 1); exit 1; }; };;
2574 esac
2575
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments. Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2583 if test "$*" = "X"; then
2584 # -L didn't work.
2585 set X `ls -t "$srcdir/configure" conftest.file`
2586 fi
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&5
2597 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2600 fi
2601
2602 test "$2" = conftest.file
2603 )
2604 then
2605 # Ok.
2606 :
2607 else
2608 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 $as_echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2613 fi
2614 { $as_echo "$as_me:$LINENO: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2625
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629 if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2633 *)
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2636 fi
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 fi
2645
2646 if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2650 *)
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2653 fi
2654
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 fi
2699 if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2732 else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 STRIP=$ac_ct_STRIP
2747 fi
2748 else
2749 STRIP="$ac_cv_prog_STRIP"
2750 fi
2751
2752 fi
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2754
2755 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2792 fi
2793 fi
2794 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2796
2797 mkdir_p="$MKDIR_P"
2798 case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801 esac
2802
2803 for ac_prog in gawk mawk nawk awk
2804 do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 AWK=$ac_cv_prog_AWK
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2836 else
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 test -n "$AWK" && break
2843 done
2844
2845 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2861 *)
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2865 fi
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:$LINENO: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:$LINENO: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2874 fi
2875
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2879 am__leading_dot=.
2880 else
2881 am__leading_dot=_
2882 fi
2883 rmdir .tst 2>/dev/null
2884
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2892 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895 fi
2896
2897 # test whether we have cygpath
2898 if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904 fi
2905
2906
2907 # Define the identity of the package.
2908 PACKAGE=$SPL_META_NAME
2909 VERSION=$SPL_META_VERSION
2910
2911
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE "$PACKAGE"
2914 _ACEOF
2915
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define VERSION "$VERSION"
2919 _ACEOF
2920
2921 # Some tools Automake needs.
2922
2923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
2937 # We need awk for the "check" target. The system "awk" is bad on
2938 # some platforms.
2939 # Always define AMTAR for backward compatibility.
2940
2941 AMTAR=${AMTAR-"${am_missing_run}tar"}
2942
2943 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2944
2945
2946
2947
2948
2949 ac_config_headers="$ac_config_headers spl_config.h"
2950
2951
2952 # Find a good install program. We prefer a C program (faster),
2953 # so one script is as good as another. But avoid the broken or
2954 # incompatible versions:
2955 # SysV /etc/install, /usr/sbin/install
2956 # SunOS /usr/etc/install
2957 # IRIX /sbin/install
2958 # AIX /bin/install
2959 # AmigaOS /C/install, which installs bootblocks on floppy discs
2960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2963 # OS/2's system install, which has a completely different semantic
2964 # ./install, which can be erroneously created by make from ./install.sh.
2965 # Reject install programs that cannot install multiple files.
2966 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 $as_echo_n "(cached) " >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2983 *)
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2993 :
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2997 :
2998 else
2999 rm -rf conftest.one conftest.two conftest.dir
3000 echo one > conftest.one
3001 echo two > conftest.two
3002 mkdir conftest.dir
3003 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3004 test -s conftest.one && test -s conftest.two &&
3005 test -s conftest.dir/conftest.one &&
3006 test -s conftest.dir/conftest.two
3007 then
3008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3009 break 3
3010 fi
3011 fi
3012 fi
3013 done
3014 done
3015 ;;
3016 esac
3017
3018 done
3019 IFS=$as_save_IFS
3020
3021 rm -rf conftest.one conftest.two conftest.dir
3022
3023 fi
3024 if test "${ac_cv_path_install+set}" = set; then
3025 INSTALL=$ac_cv_path_install
3026 else
3027 # As a last resort, use the slow shell script. Don't cache a
3028 # value for INSTALL within a source directory, because that will
3029 # break other packages using the cache if that directory is
3030 # removed, or if the value is a relative name.
3031 INSTALL=$ac_install_sh
3032 fi
3033 fi
3034 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3035 $as_echo "$INSTALL" >&6; }
3036
3037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3038 # It thinks the first close brace ends the variable substitution.
3039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3040
3041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3042
3043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3044
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092 set dummy gcc; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3111 fi
3112 done
3113 done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136 CC=$ac_ct_CC
3137 fi
3138 else
3139 CC="$ac_cv_prog_CC"
3140 fi
3141
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}cc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3164 fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181 fi
3182 fi
3183 if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185 set dummy cc; ac_word=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 ac_prog_rejected=no
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected=yes
3204 continue
3205 fi
3206 ac_cv_prog_CC="cc"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210 done
3211 done
3212 IFS=$as_save_IFS
3213
3214 if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy $ac_cv_prog_CC
3217 shift
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3222 shift
3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3224 fi
3225 fi
3226 fi
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 for ac_prog in cl.exe
3242 do
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 test -n "$CC" && break
3281 done
3282 fi
3283 if test -z "$CC"; then
3284 ac_ct_CC=$CC
3285 for ac_prog in cl.exe
3286 do
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_CC="$ac_prog"
3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3307 fi
3308 done
3309 done
3310 IFS=$as_save_IFS
3311
3312 fi
3313 fi
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 $as_echo "$ac_ct_CC" >&6; }
3318 else
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320 $as_echo "no" >&6; }
3321 fi
3322
3323
3324 test -n "$ac_ct_CC" && break
3325 done
3326
3327 if test "x$ac_ct_CC" = x; then
3328 CC=""
3329 else
3330 case $cross_compiling:$ac_tool_warned in
3331 yes:)
3332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3335 esac
3336 CC=$ac_ct_CC
3337 fi
3338 fi
3339
3340 fi
3341
3342
3343 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }; }
3350
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 { (ac_try="$ac_compiler --version >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -v >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try="$ac_compiler -V >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3388
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395
3396 int
3397 main ()
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3418 do
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423 done
3424 rm -f $ac_rmfiles
3425
3426 if { (ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3443 do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3447 ;;
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 fi
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3463 * )
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
3469 else
3470 ac_file=''
3471 fi
3472
3473 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&2;}
3485 { (exit 77); exit 77; }; }; }
3486 fi
3487
3488 ac_exeext=$ac_cv_exeext
3489
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495 # If not cross compiling, check that we can run a simple program.
3496 if test "$cross_compiling" != yes; then
3497 if { ac_try='./$ac_file'
3498 { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details." >&5
3518 $as_echo "$as_me: error: cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3522 fi
3523 fi
3524 fi
3525 { $as_echo "$as_me:$LINENO: result: yes" >&5
3526 $as_echo "yes" >&6; }
3527
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3536
3537 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { (ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details." >&5
3568 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }; }
3571 fi
3572
3573 rm -f conftest$ac_cv_exeext
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3576
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3579 ac_exeext=$EXEEXT
3580 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if test "${ac_cv_objext+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 rm -f conftest.o conftest.obj
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; then
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619 done
3620 else
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details." >&5
3628 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }; }
3631 fi
3632
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3634 fi
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3638 ac_objext=$OBJEXT
3639 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __GNUC__
3655 choke me
3656 #endif
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_compiler_gnu=yes
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 ac_compiler_gnu=no
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3690
3691 fi
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696 else
3697 GCC=
3698 fi
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if test "${ac_cv_prog_cc_g+set}" = set; then
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716
3717 int
3718 main ()
3719 {
3720
3721 ;
3722 return 0;
3723 }
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_g=yes
3744 else
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 CFLAGS=""
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 :
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3822 ac_cv_prog_cc_g=yes
3823 else
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827
3828 fi
3829
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 fi
3832
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3838 fi
3839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855 fi
3856 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3869 #include <stdarg.h>
3870 #include <stdio.h>
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3877 char **p;
3878 int i;
3879 {
3880 return p[i];
3881 }
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3883 {
3884 char *s;
3885 va_list v;
3886 va_start (v,p);
3887 s = g (p, va_arg (v,int));
3888 va_end (v);
3889 return s;
3890 }
3891
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3903 #define FOO(x) 'x'
3904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3905
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3910 int argc;
3911 char **argv;
3912 int
3913 main ()
3914 {
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3922 do
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3943 else
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947
3948 fi
3949
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3952 done
3953 rm -f conftest.$ac_ext
3954 CC=$ac_save_CC
3955
3956 fi
3957 # AC_CACHE_VAL
3958 case "x$ac_cv_prog_cc_c89" in
3959 x)
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3962 xno)
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3965 *)
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969 esac
3970
3971
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 DEPDIR="${am__leading_dot}deps"
3978
3979 ac_config_commands="$ac_config_commands depfiles"
3980
3981
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3984 am__doit:
3985 @echo this is the am__doit target
3986 .PHONY: am__doit
3987 END
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 am__include="#"
3992 am__quote=
3993 _am_result=none
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from `make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
3999 am__include=include
4000 am__quote=
4001 _am_result=GNU
4002 ;;
4003 esac
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4010 am__quote="\""
4011 _am_result=BSD
4012 ;;
4013 esac
4014 fi
4015
4016
4017 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4020
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then
4023 enableval=$enable_dependency_tracking;
4024 fi
4025
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4028 AMDEPBACKSLASH='\'
4029 fi
4030 if test "x$enable_dependency_tracking" != xno; then
4031 AMDEP_TRUE=
4032 AMDEP_FALSE='#'
4033 else
4034 AMDEP_TRUE='#'
4035 AMDEP_FALSE=
4036 fi
4037
4038
4039
4040 depcc="$CC" am_compiler_list=
4041
4042 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 $as_echo_n "checking dependency style of $depcc... " >&6; }
4044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 esac
4074
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4087 # Solaris 8's {/usr,}/bin/sh.
4088 touch sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091
4092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle `-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4098 case $depmode in
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
4103 nosideeffect)
4104 # after this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
4110 fi
4111 ;;
4112 msvisualcpp | msvcmsys)
4113 # This compiler won't grok `-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
4119 none) break ;;
4120 esac
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
4143 done
4144
4145 cd ..
4146 rm -rf conftest.dir
4147 else
4148 am_cv_CC_dependencies_compiler_type=none
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155
4156 if
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_TRUE=
4160 am__fastdepCC_FALSE='#'
4161 else
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4164 fi
4165
4166
4167 case `pwd` in
4168 *\ * | *\ *)
4169 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4170 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4171 esac
4172
4173
4174
4175 macro_version='2.2.6b'
4176 macro_revision='1.3017'
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190 ltmain="$ac_aux_dir/ltmain.sh"
4191
4192 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4193 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194 if test "${ac_cv_path_SED+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4200 done
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 $as_unset ac_script || ac_script=
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_prog in sed gsed; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4215 # Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217 case `"$ac_path_SED" --version 2>&1` in
4218 *GNU*)
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4220 *)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 ac_count=`expr $ac_count + 1`
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241 esac
4242
4243 $ac_path_SED_found && break 3
4244 done
4245 done
4246 done
4247 IFS=$as_save_IFS
4248 if test -z "$ac_cv_path_SED"; then
4249 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4250 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4251 { (exit 1); exit 1; }; }
4252 fi
4253 else
4254 ac_cv_path_SED=$SED
4255 fi
4256
4257 fi
4258 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4259 $as_echo "$ac_cv_path_SED" >&6; }
4260 SED="$ac_cv_path_SED"
4261 rm -f conftest.sed
4262
4263 test -z "$SED" && SED=sed
4264 Xsed="$SED -e 1s/^X//"
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4278 if test "${ac_cv_path_GREP+set}" = set; then
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -z "$GREP"; then
4282 ac_path_GREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in grep ggrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4293 # Check for GNU ac_path_GREP and select it if it is found.
4294 # Check for GNU $ac_path_GREP
4295 case `"$ac_path_GREP" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4298 *)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'GREP' >> "conftest.nl"
4307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_GREP="$ac_path_GREP"
4313 ac_path_GREP_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321 $ac_path_GREP_found && break 3
4322 done
4323 done
4324 done
4325 IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_GREP"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331 else
4332 ac_cv_path_GREP=$GREP
4333 fi
4334
4335 fi
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4337 $as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
4339
4340
4341 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4342 $as_echo_n "checking for egrep... " >&6; }
4343 if test "${ac_cv_path_EGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354 do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361 # Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363 case `"$ac_path_EGREP" --version 2>&1` in
4364 *GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366 *)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387 esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392 done
4393 IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4398 fi
4399 else
4400 ac_cv_path_EGREP=$EGREP
4401 fi
4402
4403 fi
4404 fi
4405 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4406 $as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4408
4409
4410 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4411 $as_echo_n "checking for fgrep... " >&6; }
4412 if test "${ac_cv_path_FGREP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4416 then ac_cv_path_FGREP="$GREP -F"
4417 else
4418 if test -z "$FGREP"; then
4419 ac_path_FGREP_found=false
4420 # Loop through the user's path and test for each of PROGNAME-LIST
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_prog in fgrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4430 # Check for GNU ac_path_FGREP and select it if it is found.
4431 # Check for GNU $ac_path_FGREP
4432 case `"$ac_path_FGREP" --version 2>&1` in
4433 *GNU*)
4434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4435 *)
4436 ac_count=0
4437 $as_echo_n 0123456789 >"conftest.in"
4438 while :
4439 do
4440 cat "conftest.in" "conftest.in" >"conftest.tmp"
4441 mv "conftest.tmp" "conftest.in"
4442 cp "conftest.in" "conftest.nl"
4443 $as_echo 'FGREP' >> "conftest.nl"
4444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 ac_count=`expr $ac_count + 1`
4447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_FGREP="$ac_path_FGREP"
4450 ac_path_FGREP_max=$ac_count
4451 fi
4452 # 10*(2^10) chars as input seems more than enough
4453 test $ac_count -gt 10 && break
4454 done
4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456 esac
4457
4458 $ac_path_FGREP_found && break 3
4459 done
4460 done
4461 done
4462 IFS=$as_save_IFS
4463 if test -z "$ac_cv_path_FGREP"; then
4464 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4465 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4466 { (exit 1); exit 1; }; }
4467 fi
4468 else
4469 ac_cv_path_FGREP=$FGREP
4470 fi
4471
4472 fi
4473 fi
4474 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4475 $as_echo "$ac_cv_path_FGREP" >&6; }
4476 FGREP="$ac_cv_path_FGREP"
4477
4478
4479 test -z "$GREP" && GREP=grep
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 # Check whether --with-gnu-ld was given.
4500 if test "${with_gnu_ld+set}" = set; then
4501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4502 else
4503 with_gnu_ld=no
4504 fi
4505
4506 ac_prog=ld
4507 if test "$GCC" = yes; then
4508 # Check if gcc -print-prog-name=ld gives a path.
4509 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4510 $as_echo_n "checking for ld used by $CC... " >&6; }
4511 case $host in
4512 *-*-mingw*)
4513 # gcc leaves a trailing carriage return which upsets mingw
4514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515 *)
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4517 esac
4518 case $ac_prog in
4519 # Accept absolute paths.
4520 [\\/]* | ?:[\\/]*)
4521 re_direlt='/[^/][^/]*/\.\./'
4522 # Canonicalize the pathname of ld
4523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526 done
4527 test -z "$LD" && LD="$ac_prog"
4528 ;;
4529 "")
4530 # If it fails, then pretend we aren't using GCC.
4531 ac_prog=ld
4532 ;;
4533 *)
4534 # If it is relative, then search for the first ld in PATH.
4535 with_gnu_ld=unknown
4536 ;;
4537 esac
4538 elif test "$with_gnu_ld" = yes; then
4539 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4540 $as_echo_n "checking for GNU ld... " >&6; }
4541 else
4542 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4543 $as_echo_n "checking for non-GNU ld... " >&6; }
4544 fi
4545 if test "${lt_cv_path_LD+set}" = set; then
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -z "$LD"; then
4549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4550 for ac_dir in $PATH; do
4551 IFS="$lt_save_ifs"
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554 lt_cv_path_LD="$ac_dir/$ac_prog"
4555 # Check to see if the program is GNU ld. I'd rather use --version,
4556 # but apparently some variants of GNU ld only accept -v.
4557 # Break only if it was the GNU/non-GNU ld that we prefer.
4558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 test "$with_gnu_ld" != no && break
4561 ;;
4562 *)
4563 test "$with_gnu_ld" != yes && break
4564 ;;
4565 esac
4566 fi
4567 done
4568 IFS="$lt_save_ifs"
4569 else
4570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4571 fi
4572 fi
4573
4574 LD="$lt_cv_path_LD"
4575 if test -n "$LD"; then
4576 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4577 $as_echo "$LD" >&6; }
4578 else
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4583 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4584 { (exit 1); exit 1; }; }
4585 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4587 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4589 else
4590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4591 case `$LD -v 2>&1 </dev/null` in
4592 *GNU* | *'with BFD'*)
4593 lt_cv_prog_gnu_ld=yes
4594 ;;
4595 *)
4596 lt_cv_prog_gnu_ld=no
4597 ;;
4598 esac
4599 fi
4600 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4601 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4602 with_gnu_ld=$lt_cv_prog_gnu_ld
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4613 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4614 if test "${lt_cv_path_NM+set}" = set; then
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -n "$NM"; then
4618 # Let the user override the test.
4619 lt_cv_path_NM="$NM"
4620 else
4621 lt_nm_to_check="${ac_tool_prefix}nm"
4622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4623 lt_nm_to_check="$lt_nm_to_check nm"
4624 fi
4625 for lt_tmp_nm in $lt_nm_to_check; do
4626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628 IFS="$lt_save_ifs"
4629 test -z "$ac_dir" && ac_dir=.
4630 tmp_nm="$ac_dir/$lt_tmp_nm"
4631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4632 # Check to see if the nm accepts a BSD-compat flag.
4633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4634 # nm: unknown option "B" ignored
4635 # Tru64's nm complains that /dev/null is an invalid object file
4636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4637 */dev/null* | *'Invalid file or object type'*)
4638 lt_cv_path_NM="$tmp_nm -B"
4639 break
4640 ;;
4641 *)
4642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643 */dev/null*)
4644 lt_cv_path_NM="$tmp_nm -p"
4645 break
4646 ;;
4647 *)
4648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649 continue # so that we can try to find one that supports BSD flags
4650 ;;
4651 esac
4652 ;;
4653 esac
4654 fi
4655 done
4656 IFS="$lt_save_ifs"
4657 done
4658 : ${lt_cv_path_NM=no}
4659 fi
4660 fi
4661 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4662 $as_echo "$lt_cv_path_NM" >&6; }
4663 if test "$lt_cv_path_NM" != "no"; then
4664 NM="$lt_cv_path_NM"
4665 else
4666 # Didn't find any BSD compatible name lister, look for dumpbin.
4667 if test -n "$ac_tool_prefix"; then
4668 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4669 do
4670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 $as_echo_n "checking for $ac_word... " >&6; }
4674 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4676 else
4677 if test -n "$DUMPBIN"; then
4678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 DUMPBIN=$ac_cv_prog_DUMPBIN
4698 if test -n "$DUMPBIN"; then
4699 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4700 $as_echo "$DUMPBIN" >&6; }
4701 else
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703 $as_echo "no" >&6; }
4704 fi
4705
4706
4707 test -n "$DUMPBIN" && break
4708 done
4709 fi
4710 if test -z "$DUMPBIN"; then
4711 ac_ct_DUMPBIN=$DUMPBIN
4712 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713 do
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715 set dummy $ac_prog; ac_word=$2
4716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -n "$ac_ct_DUMPBIN"; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4742 if test -n "$ac_ct_DUMPBIN"; then
4743 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4744 $as_echo "$ac_ct_DUMPBIN" >&6; }
4745 else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751 test -n "$ac_ct_DUMPBIN" && break
4752 done
4753
4754 if test "x$ac_ct_DUMPBIN" = x; then
4755 DUMPBIN=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758 yes:)
4759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761 ac_tool_warned=yes ;;
4762 esac
4763 DUMPBIN=$ac_ct_DUMPBIN
4764 fi
4765 fi
4766
4767
4768 if test "$DUMPBIN" != ":"; then
4769 NM="$DUMPBIN"
4770 fi
4771 fi
4772 test -z "$NM" && NM=nm
4773
4774
4775
4776
4777
4778
4779 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4780 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4781 if test "${lt_cv_nm_interface+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783 else
4784 lt_cv_nm_interface="BSD nm"
4785 echo "int some_variable = 0;" > conftest.$ac_ext
4786 (eval echo "\"\$as_me:4786: $ac_compile\"" >&5)
4787 (eval "$ac_compile" 2>conftest.err)
4788 cat conftest.err >&5
4789 (eval echo "\"\$as_me:4789: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4791 cat conftest.err >&5
4792 (eval echo "\"\$as_me:4792: output\"" >&5)
4793 cat conftest.out >&5
4794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4795 lt_cv_nm_interface="MS dumpbin"
4796 fi
4797 rm -f conftest*
4798 fi
4799 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4800 $as_echo "$lt_cv_nm_interface" >&6; }
4801
4802 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4803 $as_echo_n "checking whether ln -s works... " >&6; }
4804 LN_S=$as_ln_s
4805 if test "$LN_S" = "ln -s"; then
4806 { $as_echo "$as_me:$LINENO: result: yes" >&5
4807 $as_echo "yes" >&6; }
4808 else
4809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4810 $as_echo "no, using $LN_S" >&6; }
4811 fi
4812
4813 # find the maximum length of command line arguments
4814 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4815 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4816 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818 else
4819 i=0
4820 teststring="ABCD"
4821
4822 case $build_os in
4823 msdosdjgpp*)
4824 # On DJGPP, this test can blow up pretty badly due to problems in libc
4825 # (any single argument exceeding 2000 bytes causes a buffer overrun
4826 # during glob expansion). Even if it were fixed, the result of this
4827 # check would be larger than it should be.
4828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4829 ;;
4830
4831 gnu*)
4832 # Under GNU Hurd, this test is not required because there is
4833 # no limit to the length of command line arguments.
4834 # Libtool will interpret -1 as no limit whatsoever
4835 lt_cv_sys_max_cmd_len=-1;
4836 ;;
4837
4838 cygwin* | mingw* | cegcc*)
4839 # On Win9x/ME, this test blows up -- it succeeds, but takes
4840 # about 5 minutes as the teststring grows exponentially.
4841 # Worse, since 9x/ME are not pre-emptively multitasking,
4842 # you end up with a "frozen" computer, even though with patience
4843 # the test eventually succeeds (with a max line length of 256k).
4844 # Instead, let's just punt: use the minimum linelength reported by
4845 # all of the supported platforms: 8192 (on NT/2K/XP).
4846 lt_cv_sys_max_cmd_len=8192;
4847 ;;
4848
4849 amigaos*)
4850 # On AmigaOS with pdksh, this test takes hours, literally.
4851 # So we just punt and use a minimum line length of 8192.
4852 lt_cv_sys_max_cmd_len=8192;
4853 ;;
4854
4855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4856 # This has been around since 386BSD, at least. Likely further.
4857 if test -x /sbin/sysctl; then
4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859 elif test -x /usr/sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861 else
4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4863 fi
4864 # And add a safety zone
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4867 ;;
4868
4869 interix*)
4870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871 lt_cv_sys_max_cmd_len=196608
4872 ;;
4873
4874 osf*)
4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877 # nice to cause kernel panics so lets avoid the loop below.
4878 # First set a reasonable default.
4879 lt_cv_sys_max_cmd_len=16384
4880 #
4881 if test -x /sbin/sysconfig; then
4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4884 esac
4885 fi
4886 ;;
4887 sco3.2v5*)
4888 lt_cv_sys_max_cmd_len=102400
4889 ;;
4890 sysv5* | sco5v6* | sysv4.2uw2*)
4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892 if test -n "$kargmax"; then
4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 else
4895 lt_cv_sys_max_cmd_len=32768
4896 fi
4897 ;;
4898 *)
4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900 if test -n "$lt_cv_sys_max_cmd_len"; then
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 else
4904 # Make teststring a little bigger before we do anything with it.
4905 # a 1K string should be a reasonable start.
4906 for i in 1 2 3 4 5 6 7 8 ; do
4907 teststring=$teststring$teststring
4908 done
4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910 # If test is not a shell built-in, we'll probably end up computing a
4911 # maximum length that is only half of the actual maximum length, but
4912 # we can't tell.
4913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4914 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4915 test $i != 17 # 1/2 MB should be enough
4916 do
4917 i=`expr $i + 1`
4918 teststring=$teststring$teststring
4919 done
4920 # Only check the string length outside the loop.
4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4922 teststring=
4923 # Add a significant safety factor because C++ compilers can tack on
4924 # massive amounts of additional arguments before passing them to the
4925 # linker. It appears as though 1/2 is a usable value.
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4927 fi
4928 ;;
4929 esac
4930
4931 fi
4932
4933 if test -n $lt_cv_sys_max_cmd_len ; then
4934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4935 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4936 else
4937 { $as_echo "$as_me:$LINENO: result: none" >&5
4938 $as_echo "none" >&6; }
4939 fi
4940 max_cmd_len=$lt_cv_sys_max_cmd_len
4941
4942
4943
4944
4945
4946
4947 : ${CP="cp -f"}
4948 : ${MV="mv -f"}
4949 : ${RM="rm -f"}
4950
4951 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4952 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4953 # Try some XSI features
4954 xsi_shell=no
4955 ( _lt_dummy="a/b/c"
4956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4957 = c,a/b,, \
4958 && eval 'test $(( 1 + 1 )) -eq 2 \
4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4960 && xsi_shell=yes
4961 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4962 $as_echo "$xsi_shell" >&6; }
4963
4964
4965 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4966 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4967 lt_shell_append=no
4968 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4969 >/dev/null 2>&1 \
4970 && lt_shell_append=yes
4971 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4972 $as_echo "$lt_shell_append" >&6; }
4973
4974
4975 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4976 lt_unset=unset
4977 else
4978 lt_unset=false
4979 fi
4980
4981
4982
4983
4984
4985 # test EBCDIC or ASCII
4986 case `echo X|tr X '\101'` in
4987 A) # ASCII based system
4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4989 lt_SP2NL='tr \040 \012'
4990 lt_NL2SP='tr \015\012 \040\040'
4991 ;;
4992 *) # EBCDIC based system
4993 lt_SP2NL='tr \100 \n'
4994 lt_NL2SP='tr \r\n \100\100'
4995 ;;
4996 esac
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5007 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5008 if test "${lt_cv_ld_reload_flag+set}" = set; then
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_ld_reload_flag='-r'
5012 fi
5013 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5014 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5015 reload_flag=$lt_cv_ld_reload_flag
5016 case $reload_flag in
5017 "" | " "*) ;;
5018 *) reload_flag=" $reload_flag" ;;
5019 esac
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 case $host_os in
5022 darwin*)
5023 if test "$GCC" = yes; then
5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5025 else
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 fi
5028 ;;
5029 esac
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$OBJDUMP"; then
5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 OBJDUMP=$ac_cv_prog_OBJDUMP
5068 if test -n "$OBJDUMP"; then
5069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5070 $as_echo "$OBJDUMP" >&6; }
5071 else
5072 { $as_echo "$as_me:$LINENO: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076
5077 fi
5078 if test -z "$ac_cv_prog_OBJDUMP"; then
5079 ac_ct_OBJDUMP=$OBJDUMP
5080 # Extract the first word of "objdump", so it can be a program name with args.
5081 set dummy objdump; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$ac_ct_OBJDUMP"; then
5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5100 fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108 if test -n "$ac_ct_OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5110 $as_echo "$ac_ct_OBJDUMP" >&6; }
5111 else
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116 if test "x$ac_ct_OBJDUMP" = x; then
5117 OBJDUMP="false"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125 OBJDUMP=$ac_ct_OBJDUMP
5126 fi
5127 else
5128 OBJDUMP="$ac_cv_prog_OBJDUMP"
5129 fi
5130
5131 test -z "$OBJDUMP" && OBJDUMP=objdump
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5142 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5143 if test "${lt_cv_deplibs_check_method+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5145 else
5146 lt_cv_file_magic_cmd='$MAGIC_CMD'
5147 lt_cv_file_magic_test_file=
5148 lt_cv_deplibs_check_method='unknown'
5149 # Need to set the preceding variable on all platforms that support
5150 # interlibrary dependencies.
5151 # 'none' -- dependencies not supported.
5152 # `unknown' -- same as none, but documents that we really don't know.
5153 # 'pass_all' -- all dependencies passed with no checks.
5154 # 'test_compile' -- check by making test program.
5155 # 'file_magic [[regex]]' -- check by looking for files in library path
5156 # which responds to the $file_magic_cmd with a given extended regex.
5157 # If you have `file' or equivalent on your system and you're not sure
5158 # whether `pass_all' will *always* work, you probably want this one.
5159
5160 case $host_os in
5161 aix[4-9]*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 beos*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
5168
5169 bsdi[45]*)
5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5171 lt_cv_file_magic_cmd='/usr/bin/file -L'
5172 lt_cv_file_magic_test_file=/shlib/libc.so
5173 ;;
5174
5175 cygwin*)
5176 # func_win32_libid is a shell function defined in ltmain.sh
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5179 ;;
5180
5181 mingw* | pw32*)
5182 # Base MSYS/MinGW do not provide the 'file' command needed by
5183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5184 # unless we find 'file', for example because we are cross-compiling.
5185 if ( file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 else
5189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5190 lt_cv_file_magic_cmd='$OBJDUMP -f'
5191 fi
5192 ;;
5193
5194 cegcc)
5195 # use the weaker test based on 'objdump'. See mingw*.
5196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5197 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 ;;
5199
5200 darwin* | rhapsody*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
5203
5204 freebsd* | dragonfly*)
5205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206 case $host_cpu in
5207 i*86 )
5208 # Not sure whether the presence of OpenBSD here was a mistake.
5209 # Let's accept both of them until this is cleared up.
5210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5211 lt_cv_file_magic_cmd=/usr/bin/file
5212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5213 ;;
5214 esac
5215 else
5216 lt_cv_deplibs_check_method=pass_all
5217 fi
5218 ;;
5219
5220 gnu*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
5223
5224 hpux10.20* | hpux11*)
5225 lt_cv_file_magic_cmd=/usr/bin/file
5226 case $host_cpu in
5227 ia64*)
5228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230 ;;
5231 hppa*64*)
5232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5234 ;;
5235 *)
5236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5238 ;;
5239 esac
5240 ;;
5241
5242 interix[3-9]*)
5243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5245 ;;
5246
5247 irix5* | irix6* | nonstopux*)
5248 case $LD in
5249 *-32|*"-32 ") libmagic=32-bit;;
5250 *-n32|*"-n32 ") libmagic=N32;;
5251 *-64|*"-64 ") libmagic=64-bit;;
5252 *) libmagic=never-match;;
5253 esac
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
5256
5257 # This must be Linux ELF.
5258 linux* | k*bsd*-gnu)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 netbsd*)
5263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5265 else
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5267 fi
5268 ;;
5269
5270 newos6*)
5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5274 ;;
5275
5276 *nto* | *qnx*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 openbsd*)
5281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5283 else
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5285 fi
5286 ;;
5287
5288 osf3* | osf4* | osf5*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
5291
5292 rdos*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295
5296 solaris*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304 sysv4 | sysv4.3*)
5305 case $host_vendor in
5306 motorola)
5307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5309 ;;
5310 ncr)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313 sequent)
5314 lt_cv_file_magic_cmd='/bin/file'
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5316 ;;
5317 sni)
5318 lt_cv_file_magic_cmd='/bin/file'
5319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5320 lt_cv_file_magic_test_file=/lib/libc.so
5321 ;;
5322 siemens)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 pc)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328 esac
5329 ;;
5330
5331 tpf*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334 esac
5335
5336 fi
5337 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5339 file_magic_cmd=$lt_cv_file_magic_cmd
5340 deplibs_check_method=$lt_cv_deplibs_check_method
5341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}ar; ac_word=$2
5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_AR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$AR"; then
5363 ac_cv_prog_AR="$AR" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AR="${ac_tool_prefix}ar"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 AR=$ac_cv_prog_AR
5383 if test -n "$AR"; then
5384 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5385 $as_echo "$AR" >&6; }
5386 else
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_AR"; then
5394 ac_ct_AR=$AR
5395 # Extract the first word of "ar", so it can be a program name with args.
5396 set dummy ar; ac_word=$2
5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_AR"; then
5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AR="ar"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423 if test -n "$ac_ct_AR"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5425 $as_echo "$ac_ct_AR" >&6; }
5426 else
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431 if test "x$ac_ct_AR" = x; then
5432 AR="false"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 AR=$ac_ct_AR
5441 fi
5442 else
5443 AR="$ac_cv_prog_AR"
5444 fi
5445
5446 test -z "$AR" && AR=ar
5447 test -z "$AR_FLAGS" && AR_FLAGS=cru
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}strip; ac_word=$2
5462 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_STRIP+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 STRIP=$ac_cv_prog_STRIP
5488 if test -n "$STRIP"; then
5489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5490 $as_echo "$STRIP" >&6; }
5491 else
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496
5497 fi
5498 if test -z "$ac_cv_prog_STRIP"; then
5499 ac_ct_STRIP=$STRIP
5500 # Extract the first word of "strip", so it can be a program name with args.
5501 set dummy strip; ac_word=$2
5502 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5512 do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521 done
5522 done
5523 IFS=$as_save_IFS
5524
5525 fi
5526 fi
5527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528 if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5530 $as_echo "$ac_ct_STRIP" >&6; }
5531 else
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533 $as_echo "no" >&6; }
5534 fi
5535
5536 if test "x$ac_ct_STRIP" = x; then
5537 STRIP=":"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 STRIP=$ac_ct_STRIP
5546 fi
5547 else
5548 STRIP="$ac_cv_prog_STRIP"
5549 fi
5550
5551 test -z "$STRIP" && STRIP=:
5552
5553
5554
5555
5556
5557
5558 if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_RANLIB+set}" = set; then
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$RANLIB"; then
5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 RANLIB=$ac_cv_prog_RANLIB
5587 if test -n "$RANLIB"; then
5588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5589 $as_echo "$RANLIB" >&6; }
5590 else
5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 fi
5597 if test -z "$ac_cv_prog_RANLIB"; then
5598 ac_ct_RANLIB=$RANLIB
5599 # Extract the first word of "ranlib", so it can be a program name with args.
5600 set dummy ranlib; ac_word=$2
5601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$ac_ct_RANLIB"; then
5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627 if test -n "$ac_ct_RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5629 $as_echo "$ac_ct_RANLIB" >&6; }
5630 else
5631 { $as_echo "$as_me:$LINENO: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635 if test "x$ac_ct_RANLIB" = x; then
5636 RANLIB=":"
5637 else
5638 case $cross_compiling:$ac_tool_warned in
5639 yes:)
5640 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642 ac_tool_warned=yes ;;
5643 esac
5644 RANLIB=$ac_ct_RANLIB
5645 fi
5646 else
5647 RANLIB="$ac_cv_prog_RANLIB"
5648 fi
5649
5650 test -z "$RANLIB" && RANLIB=:
5651
5652
5653
5654
5655
5656
5657 # Determine commands to create old-style static archives.
5658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659 old_postinstall_cmds='chmod 644 $oldlib'
5660 old_postuninstall_cmds=
5661
5662 if test -n "$RANLIB"; then
5663 case $host_os in
5664 openbsd*)
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5666 ;;
5667 *)
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5669 ;;
5670 esac
5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5672 fi
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 # If no C compiler was specified, use CC.
5708 LTCC=${LTCC-"$CC"}
5709
5710 # If no C compiler flags were specified, use CFLAGS.
5711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5712
5713 # Allow CC to be a program name with arguments.
5714 compiler=$CC
5715
5716
5717 # Check for command to grab the raw symbol name followed by C symbol from nm.
5718 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5721 $as_echo_n "(cached) " >&6
5722 else
5723
5724 # These are sane defaults that work on at least a few old systems.
5725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5726
5727 # Character class describing NM global symbol codes.
5728 symcode='[BCDEGRST]'
5729
5730 # Regexp to match symbols that can be accessed directly from C.
5731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5732
5733 # Define system-specific variables.
5734 case $host_os in
5735 aix*)
5736 symcode='[BCDT]'
5737 ;;
5738 cygwin* | mingw* | pw32* | cegcc*)
5739 symcode='[ABCDGISTW]'
5740 ;;
5741 hpux*)
5742 if test "$host_cpu" = ia64; then
5743 symcode='[ABCDEGRST]'
5744 fi
5745 ;;
5746 irix* | nonstopux*)
5747 symcode='[BCDEGRST]'
5748 ;;
5749 osf*)
5750 symcode='[BCDEGQRST]'
5751 ;;
5752 solaris*)
5753 symcode='[BDRT]'
5754 ;;
5755 sco3.2v5*)
5756 symcode='[DT]'
5757 ;;
5758 sysv4.2uw2*)
5759 symcode='[DT]'
5760 ;;
5761 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5762 symcode='[ABDT]'
5763 ;;
5764 sysv4)
5765 symcode='[DFNSTU]'
5766 ;;
5767 esac
5768
5769 # If we're using GNU nm, then use its standard symbol codes.
5770 case `$NM -V 2>&1` in
5771 *GNU* | *'with BFD'*)
5772 symcode='[ABCDGIRSTW]' ;;
5773 esac
5774
5775 # Transform an extracted symbol line into a proper C declaration.
5776 # Some systems (esp. on ia64) link data and code symbols differently,
5777 # so use this general approach.
5778 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5779
5780 # Transform an extracted symbol line into symbol name and symbol address
5781 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5782 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5783
5784 # Handle CRLF in mingw tool chain
5785 opt_cr=
5786 case $build_os in
5787 mingw*)
5788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5789 ;;
5790 esac
5791
5792 # Try without a prefix underscore, then with it.
5793 for ac_symprfx in "" "_"; do
5794
5795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5796 symxfrm="\\1 $ac_symprfx\\2 \\2"
5797
5798 # Write the raw and C identifiers.
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800 # Fake it for dumpbin and say T for any non-static function
5801 # and D for any global variable.
5802 # Also find C++ and __fastcall symbols from MSVC++,
5803 # which start with @ or ?.
5804 lt_cv_sys_global_symbol_pipe="$AWK '"\
5805 " {last_section=section; section=\$ 3};"\
5806 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5807 " \$ 0!~/External *\|/{next};"\
5808 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5809 " {if(hide[section]) next};"\
5810 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5811 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5812 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5813 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5814 " ' prfx=^$ac_symprfx"
5815 else
5816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5817 fi
5818
5819 # Check to see that the pipe works correctly.
5820 pipe_works=no
5821
5822 rm -f conftest*
5823 cat > conftest.$ac_ext <<_LT_EOF
5824 #ifdef __cplusplus
5825 extern "C" {
5826 #endif
5827 char nm_test_var;
5828 void nm_test_func(void);
5829 void nm_test_func(void){}
5830 #ifdef __cplusplus
5831 }
5832 #endif
5833 int main(){nm_test_var='a';nm_test_func();return(0);}
5834 _LT_EOF
5835
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5838 ac_status=$?
5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; then
5841 # Now try to grab the symbols.
5842 nlist=conftest.nm
5843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5845 ac_status=$?
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && test -s "$nlist"; then
5848 # Try sorting and uniquifying the output.
5849 if sort "$nlist" | uniq > "$nlist"T; then
5850 mv -f "$nlist"T "$nlist"
5851 else
5852 rm -f "$nlist"T
5853 fi
5854
5855 # Make sure that we snagged all the symbols we need.
5856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5858 cat <<_LT_EOF > conftest.$ac_ext
5859 #ifdef __cplusplus
5860 extern "C" {
5861 #endif
5862
5863 _LT_EOF
5864 # Now generate the symbol file.
5865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5866
5867 cat <<_LT_EOF >> conftest.$ac_ext
5868
5869 /* The mapping between symbol names and symbols. */
5870 const struct {
5871 const char *name;
5872 void *address;
5873 }
5874 lt__PROGRAM__LTX_preloaded_symbols[] =
5875 {
5876 { "@PROGRAM@", (void *) 0 },
5877 _LT_EOF
5878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5879 cat <<\_LT_EOF >> conftest.$ac_ext
5880 {0, (void *) 0}
5881 };
5882
5883 /* This works around a problem in FreeBSD linker */
5884 #ifdef FREEBSD_WORKAROUND
5885 static const void *lt_preloaded_setup() {
5886 return lt__PROGRAM__LTX_preloaded_symbols;
5887 }
5888 #endif
5889
5890 #ifdef __cplusplus
5891 }
5892 #endif
5893 _LT_EOF
5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5902 ac_status=$?
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905 pipe_works=yes
5906 fi
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5909 else
5910 echo "cannot find nm_test_func in $nlist" >&5
5911 fi
5912 else
5913 echo "cannot find nm_test_var in $nlist" >&5
5914 fi
5915 else
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5917 fi
5918 else
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5921 fi
5922 rm -rf conftest* conftst*
5923
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5926 break
5927 else
5928 lt_cv_sys_global_symbol_pipe=
5929 fi
5930 done
5931
5932 fi
5933
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5936 fi
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 { $as_echo "$as_me:$LINENO: result: failed" >&5
5939 $as_echo "failed" >&6; }
5940 else
5941 { $as_echo "$as_me:$LINENO: result: ok" >&5
5942 $as_echo "ok" >&6; }
5943 fi
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 # Check whether --enable-libtool-lock was given.
5968 if test "${enable_libtool_lock+set}" = set; then
5969 enableval=$enable_libtool_lock;
5970 fi
5971
5972 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5973
5974 # Some flags need to be propagated to the compiler or linker for good
5975 # libtool support.
5976 case $host in
5977 ia64-*-hpux*)
5978 # Find out which ABI we are using.
5979 echo 'int i;' > conftest.$ac_ext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; then
5985 case `/usr/bin/file conftest.$ac_objext` in
5986 *ELF-32*)
5987 HPUX_IA64_MODE="32"
5988 ;;
5989 *ELF-64*)
5990 HPUX_IA64_MODE="64"
5991 ;;
5992 esac
5993 fi
5994 rm -rf conftest*
5995 ;;
5996 *-*-irix6*)
5997 # Find out which ABI we are using.
5998 echo '#line 5998 "configure"' > conftest.$ac_ext
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; then
6004 if test "$lt_cv_prog_gnu_ld" = yes; then
6005 case `/usr/bin/file conftest.$ac_objext` in
6006 *32-bit*)
6007 LD="${LD-ld} -melf32bsmip"
6008 ;;
6009 *N32*)
6010 LD="${LD-ld} -melf32bmipn32"
6011 ;;
6012 *64-bit*)
6013 LD="${LD-ld} -melf64bmip"
6014 ;;
6015 esac
6016 else
6017 case `/usr/bin/file conftest.$ac_objext` in
6018 *32-bit*)
6019 LD="${LD-ld} -32"
6020 ;;
6021 *N32*)
6022 LD="${LD-ld} -n32"
6023 ;;
6024 *64-bit*)
6025 LD="${LD-ld} -64"
6026 ;;
6027 esac
6028 fi
6029 fi
6030 rm -rf conftest*
6031 ;;
6032
6033 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6034 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6035 # Find out which ABI we are using.
6036 echo 'int i;' > conftest.$ac_ext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; then
6042 case `/usr/bin/file conftest.o` in
6043 *32-bit*)
6044 case $host in
6045 x86_64-*kfreebsd*-gnu)
6046 LD="${LD-ld} -m elf_i386_fbsd"
6047 ;;
6048 x86_64-*linux*)
6049 LD="${LD-ld} -m elf_i386"
6050 ;;
6051 ppc64-*linux*|powerpc64-*linux*)
6052 LD="${LD-ld} -m elf32ppclinux"
6053 ;;
6054 s390x-*linux*)
6055 LD="${LD-ld} -m elf_s390"
6056 ;;
6057 sparc64-*linux*)
6058 LD="${LD-ld} -m elf32_sparc"
6059 ;;
6060 esac
6061 ;;
6062 *64-bit*)
6063 case $host in
6064 x86_64-*kfreebsd*-gnu)
6065 LD="${LD-ld} -m elf_x86_64_fbsd"
6066 ;;
6067 x86_64-*linux*)
6068 LD="${LD-ld} -m elf_x86_64"
6069 ;;
6070 ppc*-*linux*|powerpc*-*linux*)
6071 LD="${LD-ld} -m elf64ppc"
6072 ;;
6073 s390*-*linux*|s390*-*tpf*)
6074 LD="${LD-ld} -m elf64_s390"
6075 ;;
6076 sparc*-*linux*)
6077 LD="${LD-ld} -m elf64_sparc"
6078 ;;
6079 esac
6080 ;;
6081 esac
6082 fi
6083 rm -rf conftest*
6084 ;;
6085
6086 *-*-sco3.2v5*)
6087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6088 SAVE_CFLAGS="$CFLAGS"
6089 CFLAGS="$CFLAGS -belf"
6090 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6091 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6092 if test "${lt_cv_cc_needs_belf+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094 else
6095 ac_ext=c
6096 ac_cpp='$CPP $CPPFLAGS'
6097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 int
6109 main ()
6110 {
6111
6112 ;
6113 return 0;
6114 }
6115 _ACEOF
6116 rm -f conftest.$ac_objext conftest$ac_exeext
6117 if { (ac_try="$ac_link"
6118 case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121 esac
6122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123 $as_echo "$ac_try_echo") >&5
6124 (eval "$ac_link") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest$ac_exeext && {
6134 test "$cross_compiling" = yes ||
6135 $as_test_x conftest$ac_exeext
6136 }; then
6137 lt_cv_cc_needs_belf=yes
6138 else
6139 $as_echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 lt_cv_cc_needs_belf=no
6143 fi
6144
6145 rm -rf conftest.dSYM
6146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6147 conftest$ac_exeext conftest.$ac_ext
6148 ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154 fi
6155 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6156 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6159 CFLAGS="$SAVE_CFLAGS"
6160 fi
6161 ;;
6162 sparc*-*solaris*)
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; then
6170 case `/usr/bin/file conftest.o` in
6171 *64-bit*)
6172 case $lt_cv_prog_gnu_ld in
6173 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6174 *)
6175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6176 LD="${LD-ld} -64"
6177 fi
6178 ;;
6179 esac
6180 ;;
6181 esac
6182 fi
6183 rm -rf conftest*
6184 ;;
6185 esac
6186
6187 need_locks="$enable_libtool_lock"
6188
6189
6190 case $host_os in
6191 rhapsody* | darwin*)
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6196 $as_echo_n "checking for $ac_word... " >&6; }
6197 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6199 else
6200 if test -n "$DSYMUTIL"; then
6201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6202 else
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 break 2
6213 fi
6214 done
6215 done
6216 IFS=$as_save_IFS
6217
6218 fi
6219 fi
6220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6221 if test -n "$DSYMUTIL"; then
6222 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6223 $as_echo "$DSYMUTIL" >&6; }
6224 else
6225 { $as_echo "$as_me:$LINENO: result: no" >&5
6226 $as_echo "no" >&6; }
6227 fi
6228
6229
6230 fi
6231 if test -z "$ac_cv_prog_DSYMUTIL"; then
6232 ac_ct_DSYMUTIL=$DSYMUTIL
6233 # Extract the first word of "dsymutil", so it can be a program name with args.
6234 set dummy dsymutil; ac_word=$2
6235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached) " >&6
6239 else
6240 if test -n "$ac_ct_DSYMUTIL"; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 break 2
6253 fi
6254 done
6255 done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6261 if test -n "$ac_ct_DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6264 else
6265 { $as_echo "$as_me:$LINENO: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269 if test "x$ac_ct_DSYMUTIL" = x; then
6270 DSYMUTIL=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273 yes:)
6274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276 ac_tool_warned=yes ;;
6277 esac
6278 DSYMUTIL=$ac_ct_DSYMUTIL
6279 fi
6280 else
6281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6282 fi
6283
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$NMEDIT"; then
6293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 NMEDIT=$ac_cv_prog_NMEDIT
6313 if test -n "$NMEDIT"; then
6314 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6315 $as_echo "$NMEDIT" >&6; }
6316 else
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_NMEDIT"; then
6324 ac_ct_NMEDIT=$NMEDIT
6325 # Extract the first word of "nmedit", so it can be a program name with args.
6326 set dummy nmedit; ac_word=$2
6327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$ac_ct_NMEDIT"; then
6333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6353 if test -n "$ac_ct_NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6355 $as_echo "$ac_ct_NMEDIT" >&6; }
6356 else
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361 if test "x$ac_ct_NMEDIT" = x; then
6362 NMEDIT=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370 NMEDIT=$ac_ct_NMEDIT
6371 fi
6372 else
6373 NMEDIT="$ac_cv_prog_NMEDIT"
6374 fi
6375
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_LIPO+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6383 else
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 LIPO=$ac_cv_prog_LIPO
6405 if test -n "$LIPO"; then
6406 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6407 $as_echo "$LIPO" >&6; }
6408 else
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414 fi
6415 if test -z "$ac_cv_prog_LIPO"; then
6416 ac_ct_LIPO=$LIPO
6417 # Extract the first word of "lipo", so it can be a program name with args.
6418 set dummy lipo; ac_word=$2
6419 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$ac_ct_LIPO"; then
6425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_LIPO="lipo"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6445 if test -n "$ac_ct_LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6447 $as_echo "$ac_ct_LIPO" >&6; }
6448 else
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453 if test "x$ac_ct_LIPO" = x; then
6454 LIPO=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457 yes:)
6458 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462 LIPO=$ac_ct_LIPO
6463 fi
6464 else
6465 LIPO="$ac_cv_prog_LIPO"
6466 fi
6467
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6470 set dummy ${ac_tool_prefix}otool; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_OTOOL+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test -n "$OTOOL"; then
6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478 else
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi
6495 fi
6496 OTOOL=$ac_cv_prog_OTOOL
6497 if test -n "$OTOOL"; then
6498 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6499 $as_echo "$OTOOL" >&6; }
6500 else
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6503 fi
6504
6505
6506 fi
6507 if test -z "$ac_cv_prog_OTOOL"; then
6508 ac_ct_OTOOL=$OTOOL
6509 # Extract the first word of "otool", so it can be a program name with args.
6510 set dummy otool; ac_word=$2
6511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6514 $as_echo_n "(cached) " >&6
6515 else
6516 if test -n "$ac_ct_OTOOL"; then
6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_OTOOL="otool"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6537 if test -n "$ac_ct_OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6539 $as_echo "$ac_ct_OTOOL" >&6; }
6540 else
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545 if test "x$ac_ct_OTOOL" = x; then
6546 OTOOL=":"
6547 else
6548 case $cross_compiling:$ac_tool_warned in
6549 yes:)
6550 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554 OTOOL=$ac_ct_OTOOL
6555 fi
6556 else
6557 OTOOL="$ac_cv_prog_OTOOL"
6558 fi
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$OTOOL64"; then
6569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 OTOOL64=$ac_cv_prog_OTOOL64
6589 if test -n "$OTOOL64"; then
6590 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6591 $as_echo "$OTOOL64" >&6; }
6592 else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_OTOOL64"; then
6600 ac_ct_OTOOL64=$OTOOL64
6601 # Extract the first word of "otool64", so it can be a program name with args.
6602 set dummy otool64; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_OTOOL64"; then
6609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL64="otool64"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6629 if test -n "$ac_ct_OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6631 $as_echo "$ac_ct_OTOOL64" >&6; }
6632 else
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_OTOOL64" = x; then
6638 OTOOL64=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 OTOOL64=$ac_ct_OTOOL64
6647 fi
6648 else
6649 OTOOL64="$ac_cv_prog_OTOOL64"
6650 fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6679 $as_echo_n "checking for -single_module linker flag... " >&6; }
6680 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6681 $as_echo_n "(cached) " >&6
6682 else
6683 lt_cv_apple_cc_single_mod=no
6684 if test -z "${LT_MULTI_MODULE}"; then
6685 # By default we will add the -single_module flag. You can override
6686 # by either setting the environment variable LT_MULTI_MODULE
6687 # non-empty at configure time, or by adding -multi_module to the
6688 # link flags.
6689 rm -rf libconftest.dylib*
6690 echo "int foo(void){return 1;}" > conftest.c
6691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6692 -dynamiclib -Wl,-single_module conftest.c" >&5
6693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6695 _lt_result=$?
6696 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6697 lt_cv_apple_cc_single_mod=yes
6698 else
6699 cat conftest.err >&5
6700 fi
6701 rm -rf libconftest.dylib*
6702 rm -f conftest.*
6703 fi
6704 fi
6705 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6706 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6707 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6708 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6709 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6711 else
6712 lt_cv_ld_exported_symbols_list=no
6713 save_LDFLAGS=$LDFLAGS
6714 echo "_main" > conftest.sym
6715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722
6723 int
6724 main ()
6725 {
6726
6727 ;
6728 return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (ac_try="$ac_link"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739 (eval "$ac_link") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext && {
6749 test "$cross_compiling" = yes ||
6750 $as_test_x conftest$ac_exeext
6751 }; then
6752 lt_cv_ld_exported_symbols_list=yes
6753 else
6754 $as_echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 lt_cv_ld_exported_symbols_list=no
6758 fi
6759
6760 rm -rf conftest.dSYM
6761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6762 conftest$ac_exeext conftest.$ac_ext
6763 LDFLAGS="$save_LDFLAGS"
6764
6765 fi
6766 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6767 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6768 case $host_os in
6769 rhapsody* | darwin1.[012])
6770 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6771 darwin1.*)
6772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6773 darwin*) # darwin 5.x on
6774 # if running on 10.5 or later, the deployment target defaults
6775 # to the OS version, if on x86, and 10.4, the deployment
6776 # target defaults to 10.4. Don't you love it?
6777 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6778 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6779 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6780 10.[012]*)
6781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6782 10.*)
6783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784 esac
6785 ;;
6786 esac
6787 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6788 _lt_dar_single_mod='$single_module'
6789 fi
6790 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6791 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6792 else
6793 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6794 fi
6795 if test "$DSYMUTIL" != ":"; then
6796 _lt_dsymutil='~$DSYMUTIL $lib || :'
6797 else
6798 _lt_dsymutil=
6799 fi
6800 ;;
6801 esac
6802
6803 ac_ext=c
6804 ac_cpp='$CPP $CPPFLAGS'
6805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6810 # On Suns, sometimes $CPP names a directory.
6811 if test -n "$CPP" && test -d "$CPP"; then
6812 CPP=
6813 fi
6814 if test -z "$CPP"; then
6815 if test "${ac_cv_prog_CPP+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 # Double quotes because CPP needs to be expanded
6819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820 do
6821 ac_preproc_ok=false
6822 for ac_c_preproc_warn_flag in '' yes
6823 do
6824 # Use a header file that comes with gcc, so configuring glibc
6825 # with a fresh cross-compiler works.
6826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 # <limits.h> exists even on freestanding compilers.
6828 # On the NeXT, cc -E runs the code through the compiler's parser,
6829 # not just through cpp. "Syntax error" is here to catch this case.
6830 cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h. */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #ifdef __STDC__
6837 # include <limits.h>
6838 #else
6839 # include <assert.h>
6840 #endif
6841 Syntax error
6842 _ACEOF
6843 if { (ac_try="$ac_cpp conftest.$ac_ext"
6844 case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev/null && {
6857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 }; then
6860 :
6861 else
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 # Broken: fails on valid input.
6866 continue
6867 fi
6868
6869 rm -f conftest.err conftest.$ac_ext
6870
6871 # OK, works on sane cases. Now check whether nonexistent headers
6872 # can be detected and how.
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <ac_nonexistent.h>
6880 _ACEOF
6881 if { (ac_try="$ac_cpp conftest.$ac_ext"
6882 case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } >/dev/null && {
6895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 }; then
6898 # Broken: success on invalid input.
6899 continue
6900 else
6901 $as_echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 # Passes both tests.
6905 ac_preproc_ok=:
6906 break
6907 fi
6908
6909 rm -f conftest.err conftest.$ac_ext
6910
6911 done
6912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913 rm -f conftest.err conftest.$ac_ext
6914 if $ac_preproc_ok; then
6915 break
6916 fi
6917
6918 done
6919 ac_cv_prog_CPP=$CPP
6920
6921 fi
6922 CPP=$ac_cv_prog_CPP
6923 else
6924 ac_cv_prog_CPP=$CPP
6925 fi
6926 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6927 $as_echo "$CPP" >&6; }
6928 ac_preproc_ok=false
6929 for ac_c_preproc_warn_flag in '' yes
6930 do
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat >conftest.$ac_ext <<_ACEOF
6938 /* confdefs.h. */
6939 _ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 #ifdef __STDC__
6944 # include <limits.h>
6945 #else
6946 # include <assert.h>
6947 #endif
6948 Syntax error
6949 _ACEOF
6950 if { (ac_try="$ac_cpp conftest.$ac_ext"
6951 case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954 esac
6955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956 $as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 }; then
6967 :
6968 else
6969 $as_echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 # Broken: fails on valid input.
6973 continue
6974 fi
6975
6976 rm -f conftest.err conftest.$ac_ext
6977
6978 # OK, works on sane cases. Now check whether nonexistent headers
6979 # can be detected and how.
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 #include <ac_nonexistent.h>
6987 _ACEOF
6988 if { (ac_try="$ac_cpp conftest.$ac_ext"
6989 case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992 esac
6993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994 $as_echo "$ac_try_echo") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 }; then
7005 # Broken: success on invalid input.
7006 continue
7007 else
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7010
7011 # Passes both tests.
7012 ac_preproc_ok=:
7013 break
7014 fi
7015
7016 rm -f conftest.err conftest.$ac_ext
7017
7018 done
7019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020 rm -f conftest.err conftest.$ac_ext
7021 if $ac_preproc_ok; then
7022 :
7023 else
7024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7027 See \`config.log' for more details." >&5
7028 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7029 See \`config.log' for more details." >&2;}
7030 { (exit 1); exit 1; }; }; }
7031 fi
7032
7033 ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039
7040 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7041 $as_echo_n "checking for ANSI C header files... " >&6; }
7042 if test "${ac_cv_header_stdc+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h. */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7051 #include <stdlib.h>
7052 #include <stdarg.h>
7053 #include <string.h>
7054 #include <float.h>
7055
7056 int
7057 main ()
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071 $as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_stdc=yes
7083 else
7084 $as_echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 ac_cv_header_stdc=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091
7092 if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <string.h>
7101
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev/null 2>&1; then
7105 :
7106 else
7107 ac_cv_header_stdc=no
7108 fi
7109 rm -f conftest*
7110
7111 fi
7112
7113 if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 #include <stdlib.h>
7122
7123 _ACEOF
7124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev/null 2>&1; then
7126 :
7127 else
7128 ac_cv_header_stdc=no
7129 fi
7130 rm -f conftest*
7131
7132 fi
7133
7134 if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7137 :
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 #include <ctype.h>
7146 #include <stdlib.h>
7147 #if ((' ' & 0x0FF) == 0x020)
7148 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7150 #else
7151 # define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7156 #endif
7157
7158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7159 int
7160 main ()
7161 {
7162 int i;
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7166 return 2;
7167 return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7172 case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177 $as_echo "$ac_try_echo") >&5
7178 (eval "$ac_link") 2>&5
7179 ac_status=$?
7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7182 { (case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_try") 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 :
7193 else
7194 $as_echo "$as_me: program exited with status $ac_status" >&5
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 ( exit $ac_status )
7199 ac_cv_header_stdc=no
7200 fi
7201 rm -rf conftest.dSYM
7202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7203 fi
7204
7205
7206 fi
7207 fi
7208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7209 $as_echo "$ac_cv_header_stdc" >&6; }
7210 if test $ac_cv_header_stdc = yes; then
7211
7212 cat >>confdefs.h <<\_ACEOF
7213 #define STDC_HEADERS 1
7214 _ACEOF
7215
7216 fi
7217
7218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7230 do
7231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7233 $as_echo_n "checking for $ac_header... " >&6; }
7234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7235 $as_echo_n "(cached) " >&6
7236 else
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244
7245 #include <$ac_header>
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 eval "$as_ac_Header=yes"
7266 else
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 eval "$as_ac_Header=no"
7271 fi
7272
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 fi
7275 ac_res=`eval 'as_val=${'$as_ac_Header'}
7276 $as_echo "$as_val"'`
7277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7278 $as_echo "$ac_res" >&6; }
7279 as_val=`eval 'as_val=${'$as_ac_Header'}
7280 $as_echo "$as_val"'`
7281 if test "x$as_val" = x""yes; then
7282 cat >>confdefs.h <<_ACEOF
7283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284 _ACEOF
7285
7286 fi
7287
7288 done
7289
7290
7291
7292 for ac_header in dlfcn.h
7293 do
7294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7296 $as_echo_n "checking for $ac_header... " >&6; }
7297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7298 $as_echo_n "(cached) " >&6
7299 else
7300 cat >conftest.$ac_ext <<_ACEOF
7301 /* confdefs.h. */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7307
7308 #include <$ac_header>
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (ac_try="$ac_compile"
7312 case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315 esac
7316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317 $as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329 else
7330 $as_echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334 fi
7335
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 fi
7338 ac_res=`eval 'as_val=${'$as_ac_Header'}
7339 $as_echo "$as_val"'`
7340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7341 $as_echo "$ac_res" >&6; }
7342 as_val=`eval 'as_val=${'$as_ac_Header'}
7343 $as_echo "$as_val"'`
7344 if test "x$as_val" = x""yes; then
7345 cat >>confdefs.h <<_ACEOF
7346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7347 _ACEOF
7348
7349 fi
7350
7351 done
7352
7353
7354
7355 # Set options
7356
7357
7358
7359 enable_dlopen=no
7360
7361
7362 enable_win32_dll=no
7363
7364
7365 # Check whether --enable-shared was given.
7366 if test "${enable_shared+set}" = set; then
7367 enableval=$enable_shared; p=${PACKAGE-default}
7368 case $enableval in
7369 yes) enable_shared=yes ;;
7370 no) enable_shared=no ;;
7371 *)
7372 enable_shared=no
7373 # Look at the argument we got. We use all the common list separators.
7374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7375 for pkg in $enableval; do
7376 IFS="$lt_save_ifs"
7377 if test "X$pkg" = "X$p"; then
7378 enable_shared=yes
7379 fi
7380 done
7381 IFS="$lt_save_ifs"
7382 ;;
7383 esac
7384 else
7385 enable_shared=yes
7386 fi
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 # Check whether --enable-static was given.
7397 if test "${enable_static+set}" = set; then
7398 enableval=$enable_static; p=${PACKAGE-default}
7399 case $enableval in
7400 yes) enable_static=yes ;;
7401 no) enable_static=no ;;
7402 *)
7403 enable_static=no
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7407 IFS="$lt_save_ifs"
7408 if test "X$pkg" = "X$p"; then
7409 enable_static=yes
7410 fi
7411 done
7412 IFS="$lt_save_ifs"
7413 ;;
7414 esac
7415 else
7416 enable_static=yes
7417 fi
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428 # Check whether --with-pic was given.
7429 if test "${with_pic+set}" = set; then
7430 withval=$with_pic; pic_mode="$withval"
7431 else
7432 pic_mode=default
7433 fi
7434
7435
7436 test -z "$pic_mode" && pic_mode=default
7437
7438
7439
7440
7441
7442
7443
7444 # Check whether --enable-fast-install was given.
7445 if test "${enable_fast_install+set}" = set; then
7446 enableval=$enable_fast_install; p=${PACKAGE-default}
7447 case $enableval in
7448 yes) enable_fast_install=yes ;;
7449 no) enable_fast_install=no ;;
7450 *)
7451 enable_fast_install=no
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7455 IFS="$lt_save_ifs"
7456 if test "X$pkg" = "X$p"; then
7457 enable_fast_install=yes
7458 fi
7459 done
7460 IFS="$lt_save_ifs"
7461 ;;
7462 esac
7463 else
7464 enable_fast_install=yes
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 # This can be used to rebuild libtool when needed
7478 LIBTOOL_DEPS="$ltmain"
7479
7480 # Always use our own libtool.
7481 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 test -z "$LN_S" && LN_S="ln -s"
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522 if test -n "${ZSH_VERSION+set}" ; then
7523 setopt NO_GLOB_SUBST
7524 fi
7525
7526 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7527 $as_echo_n "checking for objdir... " >&6; }
7528 if test "${lt_cv_objdir+set}" = set; then
7529 $as_echo_n "(cached) " >&6
7530 else
7531 rm -f .libs 2>/dev/null
7532 mkdir .libs 2>/dev/null
7533 if test -d .libs; then
7534 lt_cv_objdir=.libs
7535 else
7536 # MS-DOS does not allow filenames that begin with a dot.
7537 lt_cv_objdir=_libs
7538 fi
7539 rmdir .libs 2>/dev/null
7540 fi
7541 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7542 $as_echo "$lt_cv_objdir" >&6; }
7543 objdir=$lt_cv_objdir
7544
7545
7546
7547
7548
7549 cat >>confdefs.h <<_ACEOF
7550 #define LT_OBJDIR "$lt_cv_objdir/"
7551 _ACEOF
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569 case $host_os in
7570 aix3*)
7571 # AIX sometimes has problems with the GCC collect2 program. For some
7572 # reason, if we set the COLLECT_NAMES environment variable, the problems
7573 # vanish in a puff of smoke.
7574 if test "X${COLLECT_NAMES+set}" != Xset; then
7575 COLLECT_NAMES=
7576 export COLLECT_NAMES
7577 fi
7578 ;;
7579 esac
7580
7581 # Sed substitution that helps us do robust quoting. It backslashifies
7582 # metacharacters that are still active within double-quoted strings.
7583 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7584
7585 # Same as above, but do not quote variable references.
7586 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7587
7588 # Sed substitution to delay expansion of an escaped shell variable in a
7589 # double_quote_subst'ed string.
7590 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7591
7592 # Sed substitution to delay expansion of an escaped single quote.
7593 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7594
7595 # Sed substitution to avoid accidental globbing in evaled expressions
7596 no_glob_subst='s/\*/\\\*/g'
7597
7598 # Global variables:
7599 ofile=libtool
7600 can_build_shared=yes
7601
7602 # All known linkers require a `.a' archive for static linking (except MSVC,
7603 # which needs '.lib').
7604 libext=a
7605
7606 with_gnu_ld="$lt_cv_prog_gnu_ld"
7607
7608 old_CC="$CC"
7609 old_CFLAGS="$CFLAGS"
7610
7611 # Set sane defaults for various variables
7612 test -z "$CC" && CC=cc
7613 test -z "$LTCC" && LTCC=$CC
7614 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7615 test -z "$LD" && LD=ld
7616 test -z "$ac_objext" && ac_objext=o
7617
7618 for cc_temp in $compiler""; do
7619 case $cc_temp in
7620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7622 \-*) ;;
7623 *) break;;
7624 esac
7625 done
7626 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7627
7628
7629 # Only perform the check for file, if the check method requires it
7630 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7631 case $deplibs_check_method in
7632 file_magic*)
7633 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7634 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7635 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7637 $as_echo_n "(cached) " >&6
7638 else
7639 case $MAGIC_CMD in
7640 [\\/*] | ?:[\\/]*)
7641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642 ;;
7643 *)
7644 lt_save_MAGIC_CMD="$MAGIC_CMD"
7645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647 for ac_dir in $ac_dummy; do
7648 IFS="$lt_save_ifs"
7649 test -z "$ac_dir" && ac_dir=.
7650 if test -f $ac_dir/${ac_tool_prefix}file; then
7651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7652 if test -n "$file_magic_test_file"; then
7653 case $deplibs_check_method in
7654 "file_magic "*)
7655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658 $EGREP "$file_magic_regex" > /dev/null; then
7659 :
7660 else
7661 cat <<_LT_EOF 1>&2
7662
7663 *** Warning: the command libtool uses to detect shared libraries,
7664 *** $file_magic_cmd, produces output that libtool cannot recognize.
7665 *** The result is that libtool may fail to recognize shared libraries
7666 *** as such. This will affect the creation of libtool libraries that
7667 *** depend on shared libraries, but programs linked with such libtool
7668 *** libraries will work regardless of this problem. Nevertheless, you
7669 *** may want to report the problem to your system manager and/or to
7670 *** bug-libtool@gnu.org
7671
7672 _LT_EOF
7673 fi ;;
7674 esac
7675 fi
7676 break
7677 fi
7678 done
7679 IFS="$lt_save_ifs"
7680 MAGIC_CMD="$lt_save_MAGIC_CMD"
7681 ;;
7682 esac
7683 fi
7684
7685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686 if test -n "$MAGIC_CMD"; then
7687 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7688 $as_echo "$MAGIC_CMD" >&6; }
7689 else
7690 { $as_echo "$as_me:$LINENO: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695
7696
7697
7698 if test -z "$lt_cv_path_MAGIC_CMD"; then
7699 if test -n "$ac_tool_prefix"; then
7700 { $as_echo "$as_me:$LINENO: checking for file" >&5
7701 $as_echo_n "checking for file... " >&6; }
7702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7704 else
7705 case $MAGIC_CMD in
7706 [\\/*] | ?:[\\/]*)
7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7708 ;;
7709 *)
7710 lt_save_MAGIC_CMD="$MAGIC_CMD"
7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7713 for ac_dir in $ac_dummy; do
7714 IFS="$lt_save_ifs"
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f $ac_dir/file; then
7717 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7718 if test -n "$file_magic_test_file"; then
7719 case $deplibs_check_method in
7720 "file_magic "*)
7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7724 $EGREP "$file_magic_regex" > /dev/null; then
7725 :
7726 else
7727 cat <<_LT_EOF 1>&2
7728
7729 *** Warning: the command libtool uses to detect shared libraries,
7730 *** $file_magic_cmd, produces output that libtool cannot recognize.
7731 *** The result is that libtool may fail to recognize shared libraries
7732 *** as such. This will affect the creation of libtool libraries that
7733 *** depend on shared libraries, but programs linked with such libtool
7734 *** libraries will work regardless of this problem. Nevertheless, you
7735 *** may want to report the problem to your system manager and/or to
7736 *** bug-libtool@gnu.org
7737
7738 _LT_EOF
7739 fi ;;
7740 esac
7741 fi
7742 break
7743 fi
7744 done
7745 IFS="$lt_save_ifs"
7746 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 ;;
7748 esac
7749 fi
7750
7751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752 if test -n "$MAGIC_CMD"; then
7753 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7754 $as_echo "$MAGIC_CMD" >&6; }
7755 else
7756 { $as_echo "$as_me:$LINENO: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759
7760
7761 else
7762 MAGIC_CMD=:
7763 fi
7764 fi
7765
7766 fi
7767 ;;
7768 esac
7769
7770 # Use C for the default configuration in the libtool script
7771
7772 lt_save_CC="$CC"
7773 ac_ext=c
7774 ac_cpp='$CPP $CPPFLAGS'
7775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778
7779
7780 # Source file extension for C test sources.
7781 ac_ext=c
7782
7783 # Object file extension for compiled C test sources.
7784 objext=o
7785 objext=$objext
7786
7787 # Code to be used in simple compile tests
7788 lt_simple_compile_test_code="int some_variable = 0;"
7789
7790 # Code to be used in simple link tests
7791 lt_simple_link_test_code='int main(){return(0);}'
7792
7793
7794
7795
7796
7797
7798
7799 # If no C compiler was specified, use CC.
7800 LTCC=${LTCC-"$CC"}
7801
7802 # If no C compiler flags were specified, use CFLAGS.
7803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7804
7805 # Allow CC to be a program name with arguments.
7806 compiler=$CC
7807
7808 # Save the default compiler, since it gets overwritten when the other
7809 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7810 compiler_DEFAULT=$CC
7811
7812 # save warnings/boilerplate of simple test code
7813 ac_outfile=conftest.$ac_objext
7814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816 _lt_compiler_boilerplate=`cat conftest.err`
7817 $RM conftest*
7818
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822 _lt_linker_boilerplate=`cat conftest.err`
7823 $RM -r conftest*
7824
7825
7826 if test -n "$compiler"; then
7827
7828 lt_prog_compiler_no_builtin_flag=
7829
7830 if test "$GCC" = yes; then
7831 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7832
7833 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7834 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7835 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7836 $as_echo_n "(cached) " >&6
7837 else
7838 lt_cv_prog_compiler_rtti_exceptions=no
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7841 lt_compiler_flag="-fno-rtti -fno-exceptions"
7842 # Insert the option either (1) after the last *FLAGS variable, or
7843 # (2) before a word containing "conftest.", or (3) at the end.
7844 # Note that $ac_compile itself does not contain backslashes and begins
7845 # with a dollar sign (not a hyphen), so the echo should work correctly.
7846 # The option is referenced via a variable to avoid confusing sed.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
7852 (eval "$lt_compile" 2>conftest.err)
7853 ac_status=$?
7854 cat conftest.err >&5
7855 echo "$as_me:7855: \$? = $ac_status" >&5
7856 if (exit $ac_status) && test -s "$ac_outfile"; then
7857 # The compiler can only warn and ignore the option if not recognized
7858 # So say no if there are warnings other than the usual output.
7859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7862 lt_cv_prog_compiler_rtti_exceptions=yes
7863 fi
7864 fi
7865 $RM conftest*
7866
7867 fi
7868 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7869 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7870
7871 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7873 else
7874 :
7875 fi
7876
7877 fi
7878
7879
7880
7881
7882
7883
7884 lt_prog_compiler_wl=
7885 lt_prog_compiler_pic=
7886 lt_prog_compiler_static=
7887
7888 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7890
7891 if test "$GCC" = yes; then
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_static='-static'
7894
7895 case $host_os in
7896 aix*)
7897 # All AIX code is PIC.
7898 if test "$host_cpu" = ia64; then
7899 # AIX 5 now supports IA64 processor
7900 lt_prog_compiler_static='-Bstatic'
7901 fi
7902 ;;
7903
7904 amigaos*)
7905 case $host_cpu in
7906 powerpc)
7907 # see comment about AmigaOS4 .so support
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 m68k)
7911 # FIXME: we need at least 68020 code to build shared libraries, but
7912 # adding the `-m68020' flag to GCC prevents building anything better,
7913 # like `-m68040'.
7914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7915 ;;
7916 esac
7917 ;;
7918
7919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7920 # PIC is the default for these OSes.
7921 ;;
7922
7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
7926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7927 # (--disable-auto-import) libraries
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7929 ;;
7930
7931 darwin* | rhapsody*)
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
7934 lt_prog_compiler_pic='-fno-common'
7935 ;;
7936
7937 hpux*)
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7941 case $host_cpu in
7942 hppa*64*)
7943 # +Z the default
7944 ;;
7945 *)
7946 lt_prog_compiler_pic='-fPIC'
7947 ;;
7948 esac
7949 ;;
7950
7951 interix[3-9]*)
7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7954 ;;
7955
7956 msdosdjgpp*)
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
7959 lt_prog_compiler_can_build_shared=no
7960 enable_shared=no
7961 ;;
7962
7963 *nto* | *qnx*)
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7965 # it will coredump.
7966 lt_prog_compiler_pic='-fPIC -shared'
7967 ;;
7968
7969 sysv4*MP*)
7970 if test -d /usr/nec; then
7971 lt_prog_compiler_pic=-Kconform_pic
7972 fi
7973 ;;
7974
7975 *)
7976 lt_prog_compiler_pic='-fPIC'
7977 ;;
7978 esac
7979 else
7980 # PORTME Check for flag to pass linker flags through the system compiler.
7981 case $host_os in
7982 aix*)
7983 lt_prog_compiler_wl='-Wl,'
7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
7986 lt_prog_compiler_static='-Bstatic'
7987 else
7988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7989 fi
7990 ;;
7991
7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
7995 lt_prog_compiler_pic='-DDLL_EXPORT'
7996 ;;
7997
7998 hpux9* | hpux10* | hpux11*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8001 # not for PA HP-UX.
8002 case $host_cpu in
8003 hppa*64*|ia64*)
8004 # +Z the default
8005 ;;
8006 *)
8007 lt_prog_compiler_pic='+Z'
8008 ;;
8009 esac
8010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8011 lt_prog_compiler_static='${wl}-a ${wl}archive'
8012 ;;
8013
8014 irix5* | irix6* | nonstopux*)
8015 lt_prog_compiler_wl='-Wl,'
8016 # PIC (with -KPIC) is the default.
8017 lt_prog_compiler_static='-non_shared'
8018 ;;
8019
8020 linux* | k*bsd*-gnu)
8021 case $cc_basename in
8022 # old Intel for x86_64 which still supported -KPIC.
8023 ecc*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-static'
8027 ;;
8028 # icc used to be incompatible with GCC.
8029 # ICC 10 doesn't accept -KPIC any more.
8030 icc* | ifort*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-fPIC'
8033 lt_prog_compiler_static='-static'
8034 ;;
8035 # Lahey Fortran 8.1.
8036 lf95*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='--shared'
8039 lt_prog_compiler_static='--static'
8040 ;;
8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
8047 ;;
8048 ccc*)
8049 lt_prog_compiler_wl='-Wl,'
8050 # All Alpha code is PIC.
8051 lt_prog_compiler_static='-non_shared'
8052 ;;
8053 xl*)
8054 # IBM XL C 8.0/Fortran 10.1 on PPC
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-qpic'
8057 lt_prog_compiler_static='-qstaticlink'
8058 ;;
8059 *)
8060 case `$CC -V 2>&1 | sed 5q` in
8061 *Sun\ C*)
8062 # Sun C 5.9
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl='-Wl,'
8066 ;;
8067 *Sun\ F*)
8068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl=''
8072 ;;
8073 esac
8074 ;;
8075 esac
8076 ;;
8077
8078 newsos6)
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8081 ;;
8082
8083 *nto* | *qnx*)
8084 # QNX uses GNU C++, but need to define -shared option too, otherwise
8085 # it will coredump.
8086 lt_prog_compiler_pic='-fPIC -shared'
8087 ;;
8088
8089 osf3* | osf4* | osf5*)
8090 lt_prog_compiler_wl='-Wl,'
8091 # All OSF/1 code is PIC.
8092 lt_prog_compiler_static='-non_shared'
8093 ;;
8094
8095 rdos*)
8096 lt_prog_compiler_static='-non_shared'
8097 ;;
8098
8099 solaris*)
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 case $cc_basename in
8103 f77* | f90* | f95*)
8104 lt_prog_compiler_wl='-Qoption ld ';;
8105 *)
8106 lt_prog_compiler_wl='-Wl,';;
8107 esac
8108 ;;
8109
8110 sunos4*)
8111 lt_prog_compiler_wl='-Qoption ld '
8112 lt_prog_compiler_pic='-PIC'
8113 lt_prog_compiler_static='-Bstatic'
8114 ;;
8115
8116 sysv4 | sysv4.2uw2* | sysv4.3*)
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-KPIC'
8119 lt_prog_compiler_static='-Bstatic'
8120 ;;
8121
8122 sysv4*MP*)
8123 if test -d /usr/nec ;then
8124 lt_prog_compiler_pic='-Kconform_pic'
8125 lt_prog_compiler_static='-Bstatic'
8126 fi
8127 ;;
8128
8129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 ;;
8134
8135 unicos*)
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_can_build_shared=no
8138 ;;
8139
8140 uts4*)
8141 lt_prog_compiler_pic='-pic'
8142 lt_prog_compiler_static='-Bstatic'
8143 ;;
8144
8145 *)
8146 lt_prog_compiler_can_build_shared=no
8147 ;;
8148 esac
8149 fi
8150
8151 case $host_os in
8152 # For platforms which do not support PIC, -DPIC is meaningless:
8153 *djgpp*)
8154 lt_prog_compiler_pic=
8155 ;;
8156 *)
8157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8158 ;;
8159 esac
8160 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161 $as_echo "$lt_prog_compiler_pic" >&6; }
8162
8163
8164
8165
8166
8167
8168 #
8169 # Check to make sure the PIC flag actually works.
8170 #
8171 if test -n "$lt_prog_compiler_pic"; then
8172 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8173 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8174 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8176 else
8177 lt_cv_prog_compiler_pic_works=no
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8181 # Insert the option either (1) after the last *FLAGS variable, or
8182 # (2) before a word containing "conftest.", or (3) at the end.
8183 # Note that $ac_compile itself does not contain backslashes and begins
8184 # with a dollar sign (not a hyphen), so the echo should work correctly.
8185 # The option is referenced via a variable to avoid confusing sed.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>conftest.err)
8192 ac_status=$?
8193 cat conftest.err >&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s "$ac_outfile"; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings other than the usual output.
8198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8201 lt_cv_prog_compiler_pic_works=yes
8202 fi
8203 fi
8204 $RM conftest*
8205
8206 fi
8207 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8208 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8209
8210 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8211 case $lt_prog_compiler_pic in
8212 "" | " "*) ;;
8213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8214 esac
8215 else
8216 lt_prog_compiler_pic=
8217 lt_prog_compiler_can_build_shared=no
8218 fi
8219
8220 fi
8221
8222
8223
8224
8225
8226
8227 #
8228 # Check to make sure the static flag actually works.
8229 #
8230 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234 $as_echo_n "(cached) " >&6
8235 else
8236 lt_cv_prog_compiler_static_works=no
8237 save_LDFLAGS="$LDFLAGS"
8238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8239 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241 # The linker can only warn and ignore the option if not recognized
8242 # So say no if there are warnings
8243 if test -s conftest.err; then
8244 # Append any errors to the config.log.
8245 cat conftest.err 1>&5
8246 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248 if diff conftest.exp conftest.er2 >/dev/null; then
8249 lt_cv_prog_compiler_static_works=yes
8250 fi
8251 else
8252 lt_cv_prog_compiler_static_works=yes
8253 fi
8254 fi
8255 $RM -r conftest*
8256 LDFLAGS="$save_LDFLAGS"
8257
8258 fi
8259 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8261
8262 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8263 :
8264 else
8265 lt_prog_compiler_static=
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8276 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8277 $as_echo_n "(cached) " >&6
8278 else
8279 lt_cv_prog_compiler_c_o=no
8280 $RM -r conftest 2>/dev/null
8281 mkdir conftest
8282 cd conftest
8283 mkdir out
8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285
8286 lt_compiler_flag="-o out/conftest2.$ac_objext"
8287 # Insert the option either (1) after the last *FLAGS variable, or
8288 # (2) before a word containing "conftest.", or (3) at the end.
8289 # Note that $ac_compile itself does not contain backslashes and begins
8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8291 lt_compile=`echo "$ac_compile" | $SED \
8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294 -e 's:$: $lt_compiler_flag:'`
8295 (eval echo "\"\$as_me:8295: $lt_compile\"" >&5)
8296 (eval "$lt_compile" 2>out/conftest.err)
8297 ac_status=$?
8298 cat out/conftest.err >&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8301 then
8302 # The compiler can only warn and ignore the option if not recognized
8303 # So say no if there are warnings
8304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8307 lt_cv_prog_compiler_c_o=yes
8308 fi
8309 fi
8310 chmod u+w . 2>&5
8311 $RM conftest*
8312 # SGI C++ compiler will create directory out/ii_files/ for
8313 # template instantiation
8314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8315 $RM out/* && rmdir out
8316 cd ..
8317 $RM -r conftest
8318 $RM conftest*
8319
8320 fi
8321 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8322 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8323
8324
8325
8326
8327
8328
8329 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8331 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8332 $as_echo_n "(cached) " >&6
8333 else
8334 lt_cv_prog_compiler_c_o=no
8335 $RM -r conftest 2>/dev/null
8336 mkdir conftest
8337 cd conftest
8338 mkdir out
8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8340
8341 lt_compiler_flag="-o out/conftest2.$ac_objext"
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 lt_compile=`echo "$ac_compile" | $SED \
8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349 -e 's:$: $lt_compiler_flag:'`
8350 (eval echo "\"\$as_me:8350: $lt_compile\"" >&5)
8351 (eval "$lt_compile" 2>out/conftest.err)
8352 ac_status=$?
8353 cat out/conftest.err >&5
8354 echo "$as_me:8354: \$? = $ac_status" >&5
8355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356 then
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings
8359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8362 lt_cv_prog_compiler_c_o=yes
8363 fi
8364 fi
8365 chmod u+w . 2>&5
8366 $RM conftest*
8367 # SGI C++ compiler will create directory out/ii_files/ for
8368 # template instantiation
8369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8370 $RM out/* && rmdir out
8371 cd ..
8372 $RM -r conftest
8373 $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8378
8379
8380
8381
8382 hard_links="nottested"
8383 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8384 # do not overwrite the value of need_locks provided by the user
8385 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8386 $as_echo_n "checking if we can lock with hard links... " >&6; }
8387 hard_links=yes
8388 $RM conftest*
8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390 touch conftest.a
8391 ln conftest.a conftest.b 2>&5 || hard_links=no
8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8393 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8394 $as_echo "$hard_links" >&6; }
8395 if test "$hard_links" = no; then
8396 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8398 need_locks=warn
8399 fi
8400 else
8401 need_locks=no
8402 fi
8403
8404
8405
8406
8407
8408
8409 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8411
8412 runpath_var=
8413 allow_undefined_flag=
8414 always_export_symbols=no
8415 archive_cmds=
8416 archive_expsym_cmds=
8417 compiler_needs_object=no
8418 enable_shared_with_static_runtimes=no
8419 export_dynamic_flag_spec=
8420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8421 hardcode_automatic=no
8422 hardcode_direct=no
8423 hardcode_direct_absolute=no
8424 hardcode_libdir_flag_spec=
8425 hardcode_libdir_flag_spec_ld=
8426 hardcode_libdir_separator=
8427 hardcode_minus_L=no
8428 hardcode_shlibpath_var=unsupported
8429 inherit_rpath=no
8430 link_all_deplibs=unknown
8431 module_cmds=
8432 module_expsym_cmds=
8433 old_archive_from_new_cmds=
8434 old_archive_from_expsyms_cmds=
8435 thread_safe_flag_spec=
8436 whole_archive_flag_spec=
8437 # include_expsyms should be a list of space-separated symbols to be *always*
8438 # included in the symbol list
8439 include_expsyms=
8440 # exclude_expsyms can be an extended regexp of symbols to exclude
8441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8443 # as well as any symbol that contains `d'.
8444 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8446 # platforms (ab)use it in PIC code, but their linkers get confused if
8447 # the symbol is explicitly referenced. Since portable code cannot
8448 # rely on this symbol name, it's probably fine to never include it in
8449 # preloaded symbol tables.
8450 # Exclude shared library initialization/finalization symbols.
8451 extract_expsyms_cmds=
8452
8453 case $host_os in
8454 cygwin* | mingw* | pw32* | cegcc*)
8455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8456 # When not using gcc, we currently assume that we are using
8457 # Microsoft Visual C++.
8458 if test "$GCC" != yes; then
8459 with_gnu_ld=no
8460 fi
8461 ;;
8462 interix*)
8463 # we just hope/assume this is gcc and not c89 (= MSVC++)
8464 with_gnu_ld=yes
8465 ;;
8466 openbsd*)
8467 with_gnu_ld=no
8468 ;;
8469 esac
8470
8471 ld_shlibs=yes
8472 if test "$with_gnu_ld" = yes; then
8473 # If archive_cmds runs LD, not CC, wlarc should be empty
8474 wlarc='${wl}'
8475
8476 # Set some defaults for GNU ld with shared library support. These
8477 # are reset later if shared libraries are not supported. Putting them
8478 # here allows them to be overridden if necessary.
8479 runpath_var=LD_RUN_PATH
8480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8481 export_dynamic_flag_spec='${wl}--export-dynamic'
8482 # ancient GNU ld didn't support --whole-archive et. al.
8483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485 else
8486 whole_archive_flag_spec=
8487 fi
8488 supports_anon_versioning=no
8489 case `$LD -v 2>&1` in
8490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8493 *\ 2.11.*) ;; # other 2.11 versions
8494 *) supports_anon_versioning=yes ;;
8495 esac
8496
8497 # See if GNU ld supports shared libraries.
8498 case $host_os in
8499 aix[3-9]*)
8500 # On AIX/PPC, the GNU linker is very broken
8501 if test "$host_cpu" != ia64; then
8502 ld_shlibs=no
8503 cat <<_LT_EOF 1>&2
8504
8505 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8506 *** to be unable to reliably create shared libraries on AIX.
8507 *** Therefore, libtool is disabling shared libraries support. If you
8508 *** really care for shared libraries, you may want to modify your PATH
8509 *** so that a non-GNU linker is found, and then restart.
8510
8511 _LT_EOF
8512 fi
8513 ;;
8514
8515 amigaos*)
8516 case $host_cpu in
8517 powerpc)
8518 # see comment about AmigaOS4 .so support
8519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 archive_expsym_cmds=''
8521 ;;
8522 m68k)
8523 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 hardcode_minus_L=yes
8526 ;;
8527 esac
8528 ;;
8529
8530 beos*)
8531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8532 allow_undefined_flag=unsupported
8533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8534 # support --undefined. This deserves some investigation. FIXME
8535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536 else
8537 ld_shlibs=no
8538 fi
8539 ;;
8540
8541 cygwin* | mingw* | pw32* | cegcc*)
8542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8543 # as there is no search path for DLLs.
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 allow_undefined_flag=unsupported
8546 always_export_symbols=no
8547 enable_shared_with_static_runtimes=yes
8548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8549
8550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8552 # If the export-symbols file already is a .def file (1st line
8553 # is EXPORTS), use it as is; otherwise, prepend...
8554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8555 cp $export_symbols $output_objdir/$soname.def;
8556 else
8557 echo EXPORTS > $output_objdir/$soname.def;
8558 cat $export_symbols >> $output_objdir/$soname.def;
8559 fi~
8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561 else
8562 ld_shlibs=no
8563 fi
8564 ;;
8565
8566 interix[3-9]*)
8567 hardcode_direct=no
8568 hardcode_shlibpath_var=no
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570 export_dynamic_flag_spec='${wl}-E'
8571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8572 # Instead, shared libraries are loaded at an image base (0x10000000 by
8573 # default) and relocated if they conflict, which is a slow very memory
8574 # consuming and fragmenting process. To avoid this, we pick a random,
8575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8578 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8579 ;;
8580
8581 gnu* | linux* | tpf* | k*bsd*-gnu)
8582 tmp_diet=no
8583 if test "$host_os" = linux-dietlibc; then
8584 case $cc_basename in
8585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8586 esac
8587 fi
8588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8589 && test "$tmp_diet" = no
8590 then
8591 tmp_addflag=
8592 tmp_sharedflag='-shared'
8593 case $cc_basename,$host_cpu in
8594 pgcc*) # Portland Group C compiler
8595 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8596 tmp_addflag=' $pic_flag'
8597 ;;
8598 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8599 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8600 tmp_addflag=' $pic_flag -Mnomain' ;;
8601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8602 tmp_addflag=' -i_dynamic' ;;
8603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8604 tmp_addflag=' -i_dynamic -nofor_main' ;;
8605 ifc* | ifort*) # Intel Fortran compiler
8606 tmp_addflag=' -nofor_main' ;;
8607 lf95*) # Lahey Fortran 8.1
8608 whole_archive_flag_spec=
8609 tmp_sharedflag='--shared' ;;
8610 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8611 tmp_sharedflag='-qmkshrobj'
8612 tmp_addflag= ;;
8613 esac
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ C*) # Sun C 5.9
8616 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8617 compiler_needs_object=yes
8618 tmp_sharedflag='-G' ;;
8619 *Sun\ F*) # Sun Fortran 8.3
8620 tmp_sharedflag='-G' ;;
8621 esac
8622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8623
8624 if test "x$supports_anon_versioning" = xyes; then
8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8629 fi
8630
8631 case $cc_basename in
8632 xlf*)
8633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8643 fi
8644 ;;
8645 esac
8646 else
8647 ld_shlibs=no
8648 fi
8649 ;;
8650
8651 netbsd*)
8652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8654 wlarc=
8655 else
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 fi
8659 ;;
8660
8661 solaris*)
8662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
8665
8666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8667 *** create shared libraries on Solaris systems. Therefore, libtool
8668 *** is disabling shared libraries support. We urge you to upgrade GNU
8669 *** binutils to release 2.9.1 or newer. Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8672
8673 _LT_EOF
8674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8677 else
8678 ld_shlibs=no
8679 fi
8680 ;;
8681
8682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8683 case `$LD -v 2>&1` in
8684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8685 ld_shlibs=no
8686 cat <<_LT_EOF 1>&2
8687
8688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8689 *** reliably create shared libraries on SCO systems. Therefore, libtool
8690 *** is disabling shared libraries support. We urge you to upgrade GNU
8691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8692 *** your PATH or compiler configuration so that the native linker is
8693 *** used, and then restart.
8694
8695 _LT_EOF
8696 ;;
8697 *)
8698 # For security reasons, it is highly recommended that you always
8699 # use absolute paths for naming shared libraries, and exclude the
8700 # DT_RUNPATH tag from executables and libraries. But doing so
8701 # requires that you compile everything twice, which is a pain.
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 else
8707 ld_shlibs=no
8708 fi
8709 ;;
8710 esac
8711 ;;
8712
8713 sunos4*)
8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8715 wlarc=
8716 hardcode_direct=yes
8717 hardcode_shlibpath_var=no
8718 ;;
8719
8720 *)
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8726 fi
8727 ;;
8728 esac
8729
8730 if test "$ld_shlibs" = no; then
8731 runpath_var=
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
8735 fi
8736 else
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8738 case $host_os in
8739 aix3*)
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8745 hardcode_minus_L=yes
8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8748 # broken collect2.
8749 hardcode_direct=unsupported
8750 fi
8751 ;;
8752
8753 aix[4-9]*)
8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8759 no_entry_flag=""
8760 else
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8764 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8765 else
8766 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8767 fi
8768 aix_use_runtimelinking=no
8769
8770 # Test if we are trying to use run time linking or normal
8771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772 # need to do runtime linking.
8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8774 for ld_flag in $LDFLAGS; do
8775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776 aix_use_runtimelinking=yes
8777 break
8778 fi
8779 done
8780 ;;
8781 esac
8782
8783 exp_sym_flag='-bexport'
8784 no_entry_flag='-bnoentry'
8785 fi
8786
8787 # When large executables or shared objects are built, AIX ld can
8788 # have problems creating the table of contents. If linking a library
8789 # or program results in "error TOC overflow" add -mminimal-toc to
8790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8792
8793 archive_cmds=''
8794 hardcode_direct=yes
8795 hardcode_direct_absolute=yes
8796 hardcode_libdir_separator=':'
8797 link_all_deplibs=yes
8798 file_list_spec='${wl}-f,'
8799
8800 if test "$GCC" = yes; then
8801 case $host_os in aix4.[012]|aix4.[012].*)
8802 # We only want to do this on AIX 4.2 and lower, the check
8803 # below for broken collect2 doesn't work under 4.3+
8804 collect2name=`${CC} -print-prog-name=collect2`
8805 if test -f "$collect2name" &&
8806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8807 then
8808 # We have reworked collect2
8809 :
8810 else
8811 # We have old collect2
8812 hardcode_direct=unsupported
8813 # It fails to find uninstalled libraries when the uninstalled
8814 # path is not listed in the libpath. Setting hardcode_minus_L
8815 # to unsupported forces relinking
8816 hardcode_minus_L=yes
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_libdir_separator=
8819 fi
8820 ;;
8821 esac
8822 shared_flag='-shared'
8823 if test "$aix_use_runtimelinking" = yes; then
8824 shared_flag="$shared_flag "'${wl}-G'
8825 fi
8826 else
8827 # not using gcc
8828 if test "$host_cpu" = ia64; then
8829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8830 # chokes on -Wl,-G. The following line is correct:
8831 shared_flag='-G'
8832 else
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag='${wl}-G'
8835 else
8836 shared_flag='${wl}-bM:SRE'
8837 fi
8838 fi
8839 fi
8840
8841 export_dynamic_flag_spec='${wl}-bexpall'
8842 # It seems that -bexpall does not export symbols beginning with
8843 # underscore (_), so it is better to generate a list of symbols to export.
8844 always_export_symbols=yes
8845 if test "$aix_use_runtimelinking" = yes; then
8846 # Warning - without using the other runtime loading flags (-brtl),
8847 # -berok will link without error, but may produce a broken library.
8848 allow_undefined_flag='-berok'
8849 # Determine the default libpath from the value encoded in an
8850 # empty executable.
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857
8858 int
8859 main ()
8860 {
8861
8862 ;
8863 return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871 esac
8872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873 $as_echo "$ac_try_echo") >&5
8874 (eval "$ac_link") 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest$ac_exeext && {
8884 test "$cross_compiling" = yes ||
8885 $as_test_x conftest$ac_exeext
8886 }; then
8887
8888 lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8892 p
8893 }
8894 }'
8895 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8896 # Check for a 64-bit object if we didn't find anything.
8897 if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899 fi
8900 else
8901 $as_echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8903
8904
8905 fi
8906
8907 rm -rf conftest.dSYM
8908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909 conftest$ac_exeext conftest.$ac_ext
8910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8911
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8914 else
8915 if test "$host_cpu" = ia64; then
8916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917 allow_undefined_flag="-z nodefs"
8918 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8919 else
8920 # Determine the default libpath from the value encoded in an
8921 # empty executable.
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928
8929 int
8930 main ()
8931 {
8932
8933 ;
8934 return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (ac_try="$ac_link"
8939 case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942 esac
8943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944 $as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8957 }; then
8958
8959 lt_aix_libpath_sed='
8960 /Import File Strings/,/^$/ {
8961 /^0/ {
8962 s/^0 *\(.*\)$/\1/
8963 p
8964 }
8965 }'
8966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8967 # Check for a 64-bit object if we didn't find anything.
8968 if test -z "$aix_libpath"; then
8969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970 fi
8971 else
8972 $as_echo "$as_me: failed program was:" >&5
8973 sed 's/^/| /' conftest.$ac_ext >&5
8974
8975
8976 fi
8977
8978 rm -rf conftest.dSYM
8979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8980 conftest$ac_exeext conftest.$ac_ext
8981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8982
8983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8984 # Warning - without using the other run time loading flags,
8985 # -berok will link without error, but may produce a broken library.
8986 no_undefined_flag=' ${wl}-bernotok'
8987 allow_undefined_flag=' ${wl}-berok'
8988 # Exported symbols can be pulled into shared objects from archives
8989 whole_archive_flag_spec='$convenience'
8990 archive_cmds_need_lc=yes
8991 # This is similar to how AIX traditionally builds its shared libraries.
8992 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8993 fi
8994 fi
8995 ;;
8996
8997 amigaos*)
8998 case $host_cpu in
8999 powerpc)
9000 # see comment about AmigaOS4 .so support
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds=''
9003 ;;
9004 m68k)
9005 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 ;;
9009 esac
9010 ;;
9011
9012 bsdi[45]*)
9013 export_dynamic_flag_spec=-rdynamic
9014 ;;
9015
9016 cygwin* | mingw* | pw32* | cegcc*)
9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 # hardcode_libdir_flag_spec is actually meaningless, as there is
9020 # no search path for DLLs.
9021 hardcode_libdir_flag_spec=' '
9022 allow_undefined_flag=unsupported
9023 # Tell ltmain to make .lib files, not .a files.
9024 libext=lib
9025 # Tell ltmain to make .dll files, not .so files.
9026 shrext_cmds=".dll"
9027 # FIXME: Setting linknames here is a bad hack.
9028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9029 # The linker will automatically build a .lib file if we build a DLL.
9030 old_archive_from_new_cmds='true'
9031 # FIXME: Should let the user specify the lib program.
9032 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9033 fix_srcfile_path='`cygpath -w "$srcfile"`'
9034 enable_shared_with_static_runtimes=yes
9035 ;;
9036
9037 darwin* | rhapsody*)
9038
9039
9040 archive_cmds_need_lc=no
9041 hardcode_direct=no
9042 hardcode_automatic=yes
9043 hardcode_shlibpath_var=unsupported
9044 whole_archive_flag_spec=''
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9050 esac
9051 if test "$_lt_dar_can_shared" = "yes"; then
9052 output_verbose_link_cmd=echo
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9056 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9057
9058 else
9059 ld_shlibs=no
9060 fi
9061
9062 ;;
9063
9064 dgux*)
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
9068 ;;
9069
9070 freebsd1*)
9071 ld_shlibs=no
9072 ;;
9073
9074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9075 # support. Future versions do this automatically, but an explicit c++rt0.o
9076 # does not break anything, and helps significantly (at the cost of a little
9077 # extra space).
9078 freebsd2.2*)
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9080 hardcode_libdir_flag_spec='-R$libdir'
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
9083 ;;
9084
9085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9086 freebsd2*)
9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
9091 ;;
9092
9093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9094 freebsd* | dragonfly*)
9095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9096 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_direct=yes
9098 hardcode_shlibpath_var=no
9099 ;;
9100
9101 hpux9*)
9102 if test "$GCC" = yes; then
9103 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9104 else
9105 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9106 fi
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9109 hardcode_direct=yes
9110
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
9113 hardcode_minus_L=yes
9114 export_dynamic_flag_spec='${wl}-E'
9115 ;;
9116
9117 hpux10*)
9118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 else
9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9122 fi
9123 if test "$with_gnu_ld" = no; then
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_flag_spec_ld='+b $libdir'
9126 hardcode_libdir_separator=:
9127 hardcode_direct=yes
9128 hardcode_direct_absolute=yes
9129 export_dynamic_flag_spec='${wl}-E'
9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
9132 hardcode_minus_L=yes
9133 fi
9134 ;;
9135
9136 hpux11*)
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9138 case $host_cpu in
9139 hppa*64*)
9140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9141 ;;
9142 ia64*)
9143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9144 ;;
9145 *)
9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9147 ;;
9148 esac
9149 else
9150 case $host_cpu in
9151 hppa*64*)
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153 ;;
9154 ia64*)
9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9156 ;;
9157 *)
9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9159 ;;
9160 esac
9161 fi
9162 if test "$with_gnu_ld" = no; then
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9165
9166 case $host_cpu in
9167 hppa*64*|ia64*)
9168 hardcode_direct=no
9169 hardcode_shlibpath_var=no
9170 ;;
9171 *)
9172 hardcode_direct=yes
9173 hardcode_direct_absolute=yes
9174 export_dynamic_flag_spec='${wl}-E'
9175
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9179 ;;
9180 esac
9181 fi
9182 ;;
9183
9184 irix5* | irix6* | nonstopux*)
9185 if test "$GCC" = yes; then
9186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9187 # Try to use the -exported_symbol ld option, if it does not
9188 # work, assume that -exports_file does not work either and
9189 # implicitly export all symbols.
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9192 cat >conftest.$ac_ext <<_ACEOF
9193 int foo(void) {}
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (ac_try="$ac_link"
9197 case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200 esac
9201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202 $as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && {
9210 test -z "$ac_c_werror_flag" ||
9211 test ! -s conftest.err
9212 } && test -s conftest$ac_exeext && {
9213 test "$cross_compiling" = yes ||
9214 $as_test_x conftest$ac_exeext
9215 }; then
9216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9217
9218 else
9219 $as_echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222
9223 fi
9224
9225 rm -rf conftest.dSYM
9226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 LDFLAGS="$save_LDFLAGS"
9229 else
9230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9232 fi
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236 inherit_rpath=yes
9237 link_all_deplibs=yes
9238 ;;
9239
9240 netbsd*)
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9243 else
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9245 fi
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
9249 ;;
9250
9251 newsos6)
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_direct=yes
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 *nto* | *qnx*)
9260 ;;
9261
9262 openbsd*)
9263 if test -f /usr/libexec/ld.so; then
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 else
9273 case $host_os in
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 ;;
9278 *)
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 ;;
9282 esac
9283 fi
9284 else
9285 ld_shlibs=no
9286 fi
9287 ;;
9288
9289 os2*)
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9295 ;;
9296
9297 osf3*)
9298 if test "$GCC" = yes; then
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9301 else
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 ;;
9309
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 else
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9318 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9319 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9320
9321 # Both c and cxx compiler support -rpath directly
9322 hardcode_libdir_flag_spec='-rpath $libdir'
9323 fi
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
9326 ;;
9327
9328 solaris*)
9329 no_undefined_flag=' -z defs'
9330 if test "$GCC" = yes; then
9331 wlarc='${wl}'
9332 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9335 else
9336 case `$CC -V 2>&1` in
9337 *"Compilers 5.0"*)
9338 wlarc=''
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9342 ;;
9343 *)
9344 wlarc='${wl}'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9348 ;;
9349 esac
9350 fi
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
9353 case $host_os in
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 *)
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9362 else
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9364 fi
9365 ;;
9366 esac
9367 link_all_deplibs=yes
9368 ;;
9369
9370 sunos4*)
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9375 else
9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9377 fi
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_direct=yes
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 sysv4)
9385 case $host_vendor in
9386 sni)
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
9389 ;;
9390 siemens)
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9395 hardcode_direct=no
9396 ;;
9397 motorola)
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9400 ;;
9401 esac
9402 runpath_var='LD_RUN_PATH'
9403 hardcode_shlibpath_var=no
9404 ;;
9405
9406 sysv4.3*)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
9418 ld_shlibs=yes
9419 fi
9420 ;;
9421
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
9426 runpath_var='LD_RUN_PATH'
9427
9428 if test "$GCC" = yes; then
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9434 fi
9435 ;;
9436
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9443 # as -z defs.
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
9452 runpath_var='LD_RUN_PATH'
9453
9454 if test "$GCC" = yes; then
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 else
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460 fi
9461 ;;
9462
9463 uts4*)
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
9467 ;;
9468
9469 *)
9470 ld_shlibs=no
9471 ;;
9472 esac
9473
9474 if test x$host_vendor = xsni; then
9475 case $host in
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 ;;
9479 esac
9480 fi
9481 fi
9482
9483 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9484 $as_echo "$ld_shlibs" >&6; }
9485 test "$ld_shlibs" = no && can_build_shared=no
9486
9487 with_gnu_ld=$with_gnu_ld
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503 #
9504 # Do we need to explicitly link libc?
9505 #
9506 case "x$archive_cmds_need_lc" in
9507 x|xyes)
9508 # Assume -lc should be added
9509 archive_cmds_need_lc=yes
9510
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
9512 case $archive_cmds in
9513 *'~'*)
9514 # FIXME: we may have to deal with multi-command sequences.
9515 ;;
9516 '$CC '*)
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
9520 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9521 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522 $RM conftest*
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524
9525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>&5
9527 ac_status=$?
9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } 2>conftest.err; then
9530 soname=conftest
9531 lib=conftest
9532 libobjs=conftest.$ac_objext
9533 deplibs=
9534 wl=$lt_prog_compiler_wl
9535 pic_flag=$lt_prog_compiler_pic
9536 compiler_flags=-v
9537 linker_flags=-v
9538 verstring=
9539 output_objdir=.
9540 libname=conftest
9541 lt_save_allow_undefined_flag=$allow_undefined_flag
9542 allow_undefined_flag=
9543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9544 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9545 ac_status=$?
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }
9548 then
9549 archive_cmds_need_lc=no
9550 else
9551 archive_cmds_need_lc=yes
9552 fi
9553 allow_undefined_flag=$lt_save_allow_undefined_flag
9554 else
9555 cat conftest.err 1>&5
9556 fi
9557 $RM conftest*
9558 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9559 $as_echo "$archive_cmds_need_lc" >&6; }
9560 ;;
9561 esac
9562 fi
9563 ;;
9564 esac
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9724
9725 if test "$GCC" = yes; then
9726 case $host_os in
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9729 esac
9730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9731 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9737 else
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9739 fi
9740 # Ok, now we have the path, separated by spaces, we can step through it
9741 # and add multilib dir if necessary.
9742 lt_tmp_lt_search_path_spec=
9743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9744 for lt_sys_path in $lt_search_path_spec; do
9745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9747 else
9748 test -d "$lt_sys_path" && \
9749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9750 fi
9751 done
9752 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9753 BEGIN {RS=" "; FS="/|\n";} {
9754 lt_foo="";
9755 lt_count=0;
9756 for (lt_i = NF; lt_i > 0; lt_i--) {
9757 if ($lt_i != "" && $lt_i != ".") {
9758 if ($lt_i == "..") {
9759 lt_count++;
9760 } else {
9761 if (lt_count == 0) {
9762 lt_foo="/" $lt_i lt_foo;
9763 } else {
9764 lt_count--;
9765 }
9766 }
9767 }
9768 }
9769 if (lt_foo != "") { lt_freq[lt_foo]++; }
9770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9771 }'`
9772 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9773 else
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775 fi
9776 library_names_spec=
9777 libname_spec='lib$name'
9778 soname_spec=
9779 shrext_cmds=".so"
9780 postinstall_cmds=
9781 postuninstall_cmds=
9782 finish_cmds=
9783 finish_eval=
9784 shlibpath_var=
9785 shlibpath_overrides_runpath=unknown
9786 version_type=none
9787 dynamic_linker="$host_os ld.so"
9788 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789 need_lib_prefix=unknown
9790 hardcode_into_libs=no
9791
9792 # when you set need_version to no, make sure it does not cause -set_version
9793 # flags to be left without arguments
9794 need_version=unknown
9795
9796 case $host_os in
9797 aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
9806 aix[4-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
9847 fi
9848 ;;
9849
9850 amigaos*)
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9861 ;;
9862 esac
9863 ;;
9864
9865 beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871 bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
9885 cygwin* | mingw* | pw32* | cegcc*)
9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9914 ;;
9915 mingw* | cegcc*)
9916 # MinGW DLLs use traditional 'lib' prefix
9917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9920 # It is most probably a Windows format PATH printed by
9921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922 # path with ; separators, and with drive letters. We can handle the
9923 # drive letters (cygwin fileutils understands them), so leave them,
9924 # especially as we might pass files found there to a mingw objdump,
9925 # which wouldn't understand a cygwinified path. Ahh.
9926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9927 else
9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9929 fi
9930 ;;
9931 pw32*)
9932 # pw32 DLLs use 'pw' prefix rather than 'lib'
9933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 esac
9936 ;;
9937
9938 *)
9939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9940 ;;
9941 esac
9942 dynamic_linker='Win32 ld.exe'
9943 # FIXME: first we should search . and the directory the executable is in
9944 shlibpath_var=PATH
9945 ;;
9946
9947 darwin* | rhapsody*)
9948 dynamic_linker="$host_os dyld"
9949 version_type=darwin
9950 need_lib_prefix=no
9951 need_version=no
9952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9953 soname_spec='${libname}${release}${major}$shared_ext'
9954 shlibpath_overrides_runpath=yes
9955 shlibpath_var=DYLD_LIBRARY_PATH
9956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9957
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9960 ;;
9961
9962 dgux*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 ;;
9970
9971 freebsd1*)
9972 dynamic_linker=no
9973 ;;
9974
9975 freebsd* | dragonfly*)
9976 # DragonFly does not have aout. When/if they implement a new
9977 # versioning mechanism, adjust this.
9978 if test -x /usr/bin/objformat; then
9979 objformat=`/usr/bin/objformat`
9980 else
9981 case $host_os in
9982 freebsd[123]*) objformat=aout ;;
9983 *) objformat=elf ;;
9984 esac
9985 fi
9986 version_type=freebsd-$objformat
9987 case $version_type in
9988 freebsd-elf*)
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9990 need_version=no
9991 need_lib_prefix=no
9992 ;;
9993 freebsd-*)
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9995 need_version=yes
9996 ;;
9997 esac
9998 shlibpath_var=LD_LIBRARY_PATH
9999 case $host_os in
10000 freebsd2*)
10001 shlibpath_overrides_runpath=yes
10002 ;;
10003 freebsd3.[01]* | freebsdelf3.[01]*)
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10006 ;;
10007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10011 ;;
10012 *) # from 4.6 on, and DragonFly
10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10015 ;;
10016 esac
10017 ;;
10018
10019 gnu*)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 hardcode_into_libs=yes
10027 ;;
10028
10029 hpux9* | hpux10* | hpux11*)
10030 # Give a soname corresponding to the major version so that dld.sl refuses to
10031 # link against other versions.
10032 version_type=sunos
10033 need_lib_prefix=no
10034 need_version=no
10035 case $host_cpu in
10036 ia64*)
10037 shrext_cmds='.so'
10038 hardcode_into_libs=yes
10039 dynamic_linker="$host_os dld.so"
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 if test "X$HPUX_IA64_MODE" = X32; then
10045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10046 else
10047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10048 fi
10049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10050 ;;
10051 hppa*64*)
10052 shrext_cmds='.sl'
10053 hardcode_into_libs=yes
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 ;;
10062 *)
10063 shrext_cmds='.sl'
10064 dynamic_linker="$host_os dld.sl"
10065 shlibpath_var=SHLIB_PATH
10066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 ;;
10070 esac
10071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10072 postinstall_cmds='chmod 555 $lib'
10073 ;;
10074
10075 interix[3-9]*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 ;;
10086
10087 irix5* | irix6* | nonstopux*)
10088 case $host_os in
10089 nonstopux*) version_type=nonstopux ;;
10090 *)
10091 if test "$lt_cv_prog_gnu_ld" = yes; then
10092 version_type=linux
10093 else
10094 version_type=irix
10095 fi ;;
10096 esac
10097 need_lib_prefix=no
10098 need_version=no
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 case $host_os in
10102 irix5* | nonstopux*)
10103 libsuff= shlibsuff=
10104 ;;
10105 *)
10106 case $LD in # libtool.m4 will add one of these switches to LD
10107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10108 libsuff= shlibsuff= libmagic=32-bit;;
10109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10110 libsuff=32 shlibsuff=N32 libmagic=N32;;
10111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10113 *) libsuff= shlibsuff= libmagic=never-match;;
10114 esac
10115 ;;
10116 esac
10117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10118 shlibpath_overrides_runpath=no
10119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10121 hardcode_into_libs=yes
10122 ;;
10123
10124 # No shared lib support for Linux oldld, aout, or coff.
10125 linux*oldld* | linux*aout* | linux*coff*)
10126 dynamic_linker=no
10127 ;;
10128
10129 # This must be Linux ELF.
10130 linux* | k*bsd*-gnu)
10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
10139 # Some binutils ld are patched to set DT_RUNPATH
10140 save_LDFLAGS=$LDFLAGS
10141 save_libdir=$libdir
10142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151 int
10152 main ()
10153 {
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (ac_try="$ac_link"
10161 case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164 esac
10165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10166 $as_echo "$ac_try_echo") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext && {
10177 test "$cross_compiling" = yes ||
10178 $as_test_x conftest$ac_exeext
10179 }; then
10180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10181 shlibpath_overrides_runpath=yes
10182 fi
10183
10184 else
10185 $as_echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188
10189 fi
10190
10191 rm -rf conftest.dSYM
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LDFLAGS=$save_LDFLAGS
10195 libdir=$save_libdir
10196
10197 # This implies no fast_install, which is unacceptable.
10198 # Some rework will be needed to allow for fast_install
10199 # before this can be enabled.
10200 hardcode_into_libs=yes
10201
10202 # Add ABI-specific directories to the system library path.
10203 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10204
10205 # Append ld.so.conf contents to the search path
10206 if test -f /etc/ld.so.conf; then
10207 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10208 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10209 fi
10210
10211 # We used to test for /lib/ld.so.1 and disable shared libraries on
10212 # powerpc, because MkLinux only supported shared libraries with the
10213 # GNU dynamic linker. Since this was broken with cross compilers,
10214 # most powerpc-linux boxes support dynamic linking these days and
10215 # people can always --disable-shared, the test was removed, and we
10216 # assume the GNU/Linux dynamic linker is in use.
10217 dynamic_linker='GNU/Linux ld.so'
10218 ;;
10219
10220 netbsd*)
10221 version_type=sunos
10222 need_lib_prefix=no
10223 need_version=no
10224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 dynamic_linker='NetBSD (a.out) ld.so'
10228 else
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='NetBSD ld.elf_so'
10232 fi
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10236 ;;
10237
10238 newsos6)
10239 version_type=linux
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10243 ;;
10244
10245 *nto* | *qnx*)
10246 version_type=qnx
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 dynamic_linker='ldqnx.so'
10255 ;;
10256
10257 openbsd*)
10258 version_type=sunos
10259 sys_lib_dlsearch_path_spec="/usr/lib"
10260 need_lib_prefix=no
10261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 case $host_os in
10263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10264 *) need_version=no ;;
10265 esac
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 case $host_os in
10271 openbsd2.[89] | openbsd2.[89].*)
10272 shlibpath_overrides_runpath=no
10273 ;;
10274 *)
10275 shlibpath_overrides_runpath=yes
10276 ;;
10277 esac
10278 else
10279 shlibpath_overrides_runpath=yes
10280 fi
10281 ;;
10282
10283 os2*)
10284 libname_spec='$name'
10285 shrext_cmds=".dll"
10286 need_lib_prefix=no
10287 library_names_spec='$libname${shared_ext} $libname.a'
10288 dynamic_linker='OS/2 ld.exe'
10289 shlibpath_var=LIBPATH
10290 ;;
10291
10292 osf3* | osf4* | osf5*)
10293 version_type=osf
10294 need_lib_prefix=no
10295 need_version=no
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10301 ;;
10302
10303 rdos*)
10304 dynamic_linker=no
10305 ;;
10306
10307 solaris*)
10308 version_type=linux
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 # ldd complains unless libraries are executable
10317 postinstall_cmds='chmod +x $lib'
10318 ;;
10319
10320 sunos4*)
10321 version_type=sunos
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 if test "$with_gnu_ld" = yes; then
10327 need_lib_prefix=no
10328 fi
10329 need_version=yes
10330 ;;
10331
10332 sysv4 | sysv4.3*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_vendor in
10338 sni)
10339 shlibpath_overrides_runpath=no
10340 need_lib_prefix=no
10341 runpath_var=LD_RUN_PATH
10342 ;;
10343 siemens)
10344 need_lib_prefix=no
10345 ;;
10346 motorola)
10347 need_lib_prefix=no
10348 need_version=no
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10351 ;;
10352 esac
10353 ;;
10354
10355 sysv4*MP*)
10356 if test -d /usr/nec ;then
10357 version_type=linux
10358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10359 soname_spec='$libname${shared_ext}.$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 fi
10362 ;;
10363
10364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10365 version_type=freebsd-elf
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10373 if test "$with_gnu_ld" = yes; then
10374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10375 else
10376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10377 case $host_os in
10378 sco3.2v5*)
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10380 ;;
10381 esac
10382 fi
10383 sys_lib_dlsearch_path_spec='/usr/lib'
10384 ;;
10385
10386 tpf*)
10387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10388 version_type=linux
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
10396
10397 uts4*)
10398 version_type=linux
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 ;;
10403
10404 *)
10405 dynamic_linker=no
10406 ;;
10407 esac
10408 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10409 $as_echo "$dynamic_linker" >&6; }
10410 test "$dynamic_linker" = no && can_build_shared=no
10411
10412 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10413 if test "$GCC" = yes; then
10414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10415 fi
10416
10417 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10419 fi
10420 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10422 fi
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10512 hardcode_action=
10513 if test -n "$hardcode_libdir_flag_spec" ||
10514 test -n "$runpath_var" ||
10515 test "X$hardcode_automatic" = "Xyes" ; then
10516
10517 # We can hardcode non-existent directories.
10518 if test "$hardcode_direct" != no &&
10519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10520 # have to relink, otherwise we might link with an installed library
10521 # when we should be linking with a yet-to-be-installed one
10522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10523 test "$hardcode_minus_L" != no; then
10524 # Linking always hardcodes the temporary library directory.
10525 hardcode_action=relink
10526 else
10527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10528 hardcode_action=immediate
10529 fi
10530 else
10531 # We cannot hardcode anything, or else we can only hardcode existing
10532 # directories.
10533 hardcode_action=unsupported
10534 fi
10535 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10536 $as_echo "$hardcode_action" >&6; }
10537
10538 if test "$hardcode_action" = relink ||
10539 test "$inherit_rpath" = yes; then
10540 # Fast installation is not supported
10541 enable_fast_install=no
10542 elif test "$shlibpath_overrides_runpath" = yes ||
10543 test "$enable_shared" = no; then
10544 # Fast installation is not necessary
10545 enable_fast_install=needless
10546 fi
10547
10548
10549
10550
10551
10552
10553 if test "x$enable_dlopen" != xyes; then
10554 enable_dlopen=unknown
10555 enable_dlopen_self=unknown
10556 enable_dlopen_self_static=unknown
10557 else
10558 lt_cv_dlopen=no
10559 lt_cv_dlopen_libs=
10560
10561 case $host_os in
10562 beos*)
10563 lt_cv_dlopen="load_add_on"
10564 lt_cv_dlopen_libs=
10565 lt_cv_dlopen_self=yes
10566 ;;
10567
10568 mingw* | pw32* | cegcc*)
10569 lt_cv_dlopen="LoadLibrary"
10570 lt_cv_dlopen_libs=
10571 ;;
10572
10573 cygwin*)
10574 lt_cv_dlopen="dlopen"
10575 lt_cv_dlopen_libs=
10576 ;;
10577
10578 darwin*)
10579 # if libdl is installed we need to link against it
10580 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-ldl $LIBS"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dlopen ();
10601 int
10602 main ()
10603 {
10604 return dlopen ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614 esac
10615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616 $as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10629 }; then
10630 ac_cv_lib_dl_dlopen=yes
10631 else
10632 $as_echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.$ac_ext >&5
10634
10635 ac_cv_lib_dl_dlopen=no
10636 fi
10637
10638 rm -rf conftest.dSYM
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS=$ac_check_lib_save_LIBS
10642 fi
10643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10644 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10645 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10647 else
10648
10649 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_libs=
10651 lt_cv_dlopen_self=yes
10652
10653 fi
10654
10655 ;;
10656
10657 *)
10658 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10659 $as_echo_n "checking for shl_load... " >&6; }
10660 if test "${ac_cv_func_shl_load+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671 #define shl_load innocuous_shl_load
10672
10673 /* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char shl_load (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
10677
10678 #ifdef __STDC__
10679 # include <limits.h>
10680 #else
10681 # include <assert.h>
10682 #endif
10683
10684 #undef shl_load
10685
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689 #ifdef __cplusplus
10690 extern "C"
10691 #endif
10692 char shl_load ();
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined __stub_shl_load || defined __stub___shl_load
10697 choke me
10698 #endif
10699
10700 int
10701 main ()
10702 {
10703 return shl_load ();
10704 ;
10705 return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext conftest$ac_exeext
10709 if { (ac_try="$ac_link"
10710 case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713 esac
10714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715 $as_echo "$ac_try_echo") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext && {
10726 test "$cross_compiling" = yes ||
10727 $as_test_x conftest$ac_exeext
10728 }; then
10729 ac_cv_func_shl_load=yes
10730 else
10731 $as_echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734 ac_cv_func_shl_load=no
10735 fi
10736
10737 rm -rf conftest.dSYM
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740 fi
10741 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10742 $as_echo "$ac_cv_func_shl_load" >&6; }
10743 if test "x$ac_cv_func_shl_load" = x""yes; then
10744 lt_cv_dlopen="shl_load"
10745 else
10746 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10747 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10750 else
10751 ac_check_lib_save_LIBS=$LIBS
10752 LIBS="-ldld $LIBS"
10753 cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h. */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char shl_load ();
10767 int
10768 main ()
10769 {
10770 return shl_load ();
10771 ;
10772 return 0;
10773 }
10774 _ACEOF
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780 esac
10781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782 $as_echo "$ac_try_echo") >&5
10783 (eval "$ac_link") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext && {
10793 test "$cross_compiling" = yes ||
10794 $as_test_x conftest$ac_exeext
10795 }; then
10796 ac_cv_lib_dld_shl_load=yes
10797 else
10798 $as_echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801 ac_cv_lib_dld_shl_load=no
10802 fi
10803
10804 rm -rf conftest.dSYM
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10808 fi
10809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10811 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10813 else
10814 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10815 $as_echo_n "checking for dlopen... " >&6; }
10816 if test "${ac_cv_func_dlopen+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10818 else
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h. */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h. */
10825 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10827 #define dlopen innocuous_dlopen
10828
10829 /* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char dlopen (); below.
10831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832 <limits.h> exists even on freestanding compilers. */
10833
10834 #ifdef __STDC__
10835 # include <limits.h>
10836 #else
10837 # include <assert.h>
10838 #endif
10839
10840 #undef dlopen
10841
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845 #ifdef __cplusplus
10846 extern "C"
10847 #endif
10848 char dlopen ();
10849 /* The GNU C library defines this for functions which it implements
10850 to always fail with ENOSYS. Some functions are actually named
10851 something starting with __ and the normal name is an alias. */
10852 #if defined __stub_dlopen || defined __stub___dlopen
10853 choke me
10854 #endif
10855
10856 int
10857 main ()
10858 {
10859 return dlopen ();
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10871 $as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext && {
10882 test "$cross_compiling" = yes ||
10883 $as_test_x conftest$ac_exeext
10884 }; then
10885 ac_cv_func_dlopen=yes
10886 else
10887 $as_echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ac_cv_func_dlopen=no
10891 fi
10892
10893 rm -rf conftest.dSYM
10894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10895 conftest$ac_exeext conftest.$ac_ext
10896 fi
10897 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10898 $as_echo "$ac_cv_func_dlopen" >&6; }
10899 if test "x$ac_cv_func_dlopen" = x""yes; then
10900 lt_cv_dlopen="dlopen"
10901 else
10902 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10903 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10904 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldl $LIBS"
10909 cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h. */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h. */
10915
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919 #ifdef __cplusplus
10920 extern "C"
10921 #endif
10922 char dlopen ();
10923 int
10924 main ()
10925 {
10926 return dlopen ();
10927 ;
10928 return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext conftest$ac_exeext
10932 if { (ac_try="$ac_link"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_link") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest$ac_exeext && {
10949 test "$cross_compiling" = yes ||
10950 $as_test_x conftest$ac_exeext
10951 }; then
10952 ac_cv_lib_dl_dlopen=yes
10953 else
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 ac_cv_lib_dl_dlopen=no
10958 fi
10959
10960 rm -rf conftest.dSYM
10961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10962 conftest$ac_exeext conftest.$ac_ext
10963 LIBS=$ac_check_lib_save_LIBS
10964 fi
10965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969 else
10970 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974 else
10975 ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004 esac
11005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006 $as_echo "$ac_try_echo") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext && {
11017 test "$cross_compiling" = yes ||
11018 $as_test_x conftest$ac_exeext
11019 }; then
11020 ac_cv_lib_svld_dlopen=yes
11021 else
11022 $as_echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_lib_svld_dlopen=no
11026 fi
11027
11028 rm -rf conftest.dSYM
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11032 fi
11033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11034 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037 else
11038 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11040 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11042 else
11043 ac_check_lib_save_LIBS=$LIBS
11044 LIBS="-ldld $LIBS"
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051
11052 /* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055 #ifdef __cplusplus
11056 extern "C"
11057 #endif
11058 char dld_link ();
11059 int
11060 main ()
11061 {
11062 return dld_link ();
11063 ;
11064 return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074 $as_echo "$ac_try_echo") >&5
11075 (eval "$ac_link") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext && {
11085 test "$cross_compiling" = yes ||
11086 $as_test_x conftest$ac_exeext
11087 }; then
11088 ac_cv_lib_dld_dld_link=yes
11089 else
11090 $as_echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093 ac_cv_lib_dld_dld_link=no
11094 fi
11095
11096 rm -rf conftest.dSYM
11097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11100 fi
11101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11103 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11105 fi
11106
11107
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116
11117 fi
11118
11119
11120 fi
11121
11122 ;;
11123 esac
11124
11125 if test "x$lt_cv_dlopen" != xno; then
11126 enable_dlopen=yes
11127 else
11128 enable_dlopen=no
11129 fi
11130
11131 case $lt_cv_dlopen in
11132 dlopen)
11133 save_CPPFLAGS="$CPPFLAGS"
11134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11135
11136 save_LDFLAGS="$LDFLAGS"
11137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11138
11139 save_LIBS="$LIBS"
11140 LIBS="$lt_cv_dlopen_libs $LIBS"
11141
11142 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11144 if test "${lt_cv_dlopen_self+set}" = set; then
11145 $as_echo_n "(cached) " >&6
11146 else
11147 if test "$cross_compiling" = yes; then :
11148 lt_cv_dlopen_self=cross
11149 else
11150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151 lt_status=$lt_dlunknown
11152 cat > conftest.$ac_ext <<_LT_EOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11155
11156 #if HAVE_DLFCN_H
11157 #include <dlfcn.h>
11158 #endif
11159
11160 #include <stdio.h>
11161
11162 #ifdef RTLD_GLOBAL
11163 # define LT_DLGLOBAL RTLD_GLOBAL
11164 #else
11165 # ifdef DL_GLOBAL
11166 # define LT_DLGLOBAL DL_GLOBAL
11167 # else
11168 # define LT_DLGLOBAL 0
11169 # endif
11170 #endif
11171
11172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173 find out it does not work in some platform. */
11174 #ifndef LT_DLLAZY_OR_NOW
11175 # ifdef RTLD_LAZY
11176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11177 # else
11178 # ifdef DL_LAZY
11179 # define LT_DLLAZY_OR_NOW DL_LAZY
11180 # else
11181 # ifdef RTLD_NOW
11182 # define LT_DLLAZY_OR_NOW RTLD_NOW
11183 # else
11184 # ifdef DL_NOW
11185 # define LT_DLLAZY_OR_NOW DL_NOW
11186 # else
11187 # define LT_DLLAZY_OR_NOW 0
11188 # endif
11189 # endif
11190 # endif
11191 # endif
11192 #endif
11193
11194 void fnord() { int i=42;}
11195 int main ()
11196 {
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
11199
11200 if (self)
11201 {
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11204 /* dlclose (self); */
11205 }
11206 else
11207 puts (dlerror ());
11208
11209 return status;
11210 }
11211 _LT_EOF
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11214 ac_status=$?
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11217 (./conftest; exit; ) >&5 2>/dev/null
11218 lt_status=$?
11219 case x$lt_status in
11220 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11221 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11222 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11223 esac
11224 else :
11225 # compilation failed
11226 lt_cv_dlopen_self=no
11227 fi
11228 fi
11229 rm -fr conftest*
11230
11231
11232 fi
11233 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11234 $as_echo "$lt_cv_dlopen_self" >&6; }
11235
11236 if test "x$lt_cv_dlopen_self" = xyes; then
11237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11238 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11239 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11240 if test "${lt_cv_dlopen_self_static+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11242 else
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self_static=cross
11245 else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
11249 #line 11249 "configure"
11250 #include "confdefs.h"
11251
11252 #if HAVE_DLFCN_H
11253 #include <dlfcn.h>
11254 #endif
11255
11256 #include <stdio.h>
11257
11258 #ifdef RTLD_GLOBAL
11259 # define LT_DLGLOBAL RTLD_GLOBAL
11260 #else
11261 # ifdef DL_GLOBAL
11262 # define LT_DLGLOBAL DL_GLOBAL
11263 # else
11264 # define LT_DLGLOBAL 0
11265 # endif
11266 #endif
11267
11268 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270 #ifndef LT_DLLAZY_OR_NOW
11271 # ifdef RTLD_LAZY
11272 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11273 # else
11274 # ifdef DL_LAZY
11275 # define LT_DLLAZY_OR_NOW DL_LAZY
11276 # else
11277 # ifdef RTLD_NOW
11278 # define LT_DLLAZY_OR_NOW RTLD_NOW
11279 # else
11280 # ifdef DL_NOW
11281 # define LT_DLLAZY_OR_NOW DL_NOW
11282 # else
11283 # define LT_DLLAZY_OR_NOW 0
11284 # endif
11285 # endif
11286 # endif
11287 # endif
11288 #endif
11289
11290 void fnord() { int i=42;}
11291 int main ()
11292 {
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
11295
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
11304
11305 return status;
11306 }
11307 _LT_EOF
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self_static=no
11323 fi
11324 fi
11325 rm -fr conftest*
11326
11327
11328 fi
11329 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11330 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11331 fi
11332
11333 CPPFLAGS="$save_CPPFLAGS"
11334 LDFLAGS="$save_LDFLAGS"
11335 LIBS="$save_LIBS"
11336 ;;
11337 esac
11338
11339 case $lt_cv_dlopen_self in
11340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341 *) enable_dlopen_self=unknown ;;
11342 esac
11343
11344 case $lt_cv_dlopen_self_static in
11345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346 *) enable_dlopen_self_static=unknown ;;
11347 esac
11348 fi
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366 striplib=
11367 old_striplib=
11368 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11369 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374 $as_echo "yes" >&6; }
11375 else
11376 # FIXME - insert some real tests, host_os isn't really good enough
11377 case $host_os in
11378 darwin*)
11379 if test -n "$STRIP" ; then
11380 striplib="$STRIP -x"
11381 old_striplib="$STRIP -S"
11382 { $as_echo "$as_me:$LINENO: result: yes" >&5
11383 $as_echo "yes" >&6; }
11384 else
11385 { $as_echo "$as_me:$LINENO: result: no" >&5
11386 $as_echo "no" >&6; }
11387 fi
11388 ;;
11389 *)
11390 { $as_echo "$as_me:$LINENO: result: no" >&5
11391 $as_echo "no" >&6; }
11392 ;;
11393 esac
11394 fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407 # Report which library types will actually be built
11408 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11409 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11411 $as_echo "$can_build_shared" >&6; }
11412
11413 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11414 $as_echo_n "checking whether to build shared libraries... " >&6; }
11415 test "$can_build_shared" = "no" && enable_shared=no
11416
11417 # On AIX, shared libraries and static libraries use the same namespace, and
11418 # are all built from PIC.
11419 case $host_os in
11420 aix3*)
11421 test "$enable_shared" = yes && enable_static=no
11422 if test -n "$RANLIB"; then
11423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424 postinstall_cmds='$RANLIB $lib'
11425 fi
11426 ;;
11427
11428 aix[4-9]*)
11429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430 test "$enable_shared" = yes && enable_static=no
11431 fi
11432 ;;
11433 esac
11434 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11435 $as_echo "$enable_shared" >&6; }
11436
11437 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11438 $as_echo_n "checking whether to build static libraries... " >&6; }
11439 # Make sure either enable_shared or enable_static is yes.
11440 test "$enable_shared" = yes || enable_static=yes
11441 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11442 $as_echo "$enable_static" >&6; }
11443
11444
11445
11446
11447 fi
11448 ac_ext=c
11449 ac_cpp='$CPP $CPPFLAGS'
11450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
11454 CC="$lt_save_CC"
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468 ac_config_commands="$ac_config_commands libtool"
11469
11470
11471
11472
11473 # Only expand once:
11474
11475
11476
11477
11478 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11479 $as_echo_n "checking spl license... " >&6; }
11480 LICENSE=GPL
11481 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11482 $as_echo "$LICENSE" >&6; }
11483 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11484
11485
11486
11487
11488 RPM=rpm
11489 RPMBUILD=rpmbuild
11490
11491 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11492 $as_echo_n "checking whether $RPM is available... " >&6; }
11493 if tmp=$($RPM --version 2>/dev/null); then
11494
11495 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11496 HAVE_RPM=yes
11497 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11498 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11499
11500 else
11501
11502 HAVE_RPM=no
11503 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11504 $as_echo "$HAVE_RPM" >&6; }
11505
11506 fi
11507
11508
11509 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11510 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11511 if tmp=$($RPMBUILD --version 2>/dev/null); then
11512
11513 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11514 HAVE_RPMBUILD=yes
11515 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11516 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11517
11518 else
11519
11520 HAVE_RPMBUILD=no
11521 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11522 $as_echo "$HAVE_RPMBUILD" >&6; }
11523
11524 fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536 DPKG=dpkg
11537 DPKGBUILD=dpkg-buildpackage
11538
11539 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11540 $as_echo_n "checking whether $DPKG is available... " >&6; }
11541 if tmp=$($DPKG --version 2>/dev/null); then
11542
11543 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11544 HAVE_DPKG=yes
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11546 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11547
11548 else
11549
11550 HAVE_DPKG=no
11551 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11552 $as_echo "$HAVE_DPKG" >&6; }
11553
11554 fi
11555
11556
11557 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11558 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11559 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11560
11561 DPKGBUILD_VERSION=$(echo $tmp | \
11562 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11563 HAVE_DPKGBUILD=yes
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11565 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11566
11567 else
11568
11569 HAVE_DPKGBUILD=no
11570 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11571 $as_echo "$HAVE_DPKGBUILD" >&6; }
11572
11573 fi
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 ALIEN=alien
11586
11587 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11588 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11589 if tmp=$($ALIEN --version 2>/dev/null); then
11590
11591 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11592 HAVE_ALIEN=yes
11593 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11594 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11595
11596 else
11597
11598 HAVE_ALIEN=no
11599 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11600 $as_echo "$HAVE_ALIEN" >&6; }
11601
11602 fi
11603
11604
11605
11606
11607
11608
11609
11610 PACMAN=pacman
11611 MAKEPKG=makepkg
11612
11613 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11614 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11615 tmp=$($PACMAN --version 2>/dev/null)
11616 if test -n "$tmp"; then
11617
11618 PACMAN_VERSION=$(echo $tmp |
11619 $AWK '/Pacman/ { print $3 }' |
11620 $SED 's/^v//')
11621 HAVE_PACMAN=yes
11622 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11623 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11624
11625 else
11626
11627 HAVE_PACMAN=no
11628 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11629 $as_echo "$HAVE_PACMAN" >&6; }
11630
11631 fi
11632
11633
11634 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11635 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11636 tmp=$($MAKEPKG --version 2>/dev/null)
11637 if test -n "$tmp"; then
11638
11639 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11640 HAVE_MAKEPKG=yes
11641 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11642 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11643
11644 else
11645
11646 HAVE_MAKEPKG=no
11647 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11648 $as_echo "$HAVE_MAKEPKG" >&6; }
11649
11650 fi
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11663 $as_echo_n "checking linux distribution... " >&6; }
11664 if test -f /etc/redhat-release ; then
11665 VENDOR=redhat ;
11666 elif test -f /etc/fedora-release ; then
11667 VENDOR=fedora ;
11668 elif test -f /etc/arch-release ; then
11669 VENDOR=arch ;
11670 elif test -f /etc/lsb-release ; then
11671 VENDOR=ubuntu ;
11672 elif test -f /etc/debian_version ; then
11673 VENDOR=debian ;
11674 elif test -f /etc/SuSE-release ; then
11675 VENDOR=sles ;
11676 elif test -f /etc/slackware-version ; then
11677 VENDOR=slackware ;
11678 elif test -f /etc/gentoo-release ; then
11679 VENDOR=gentoo ;
11680 else
11681 VENDOR= ;
11682 fi
11683 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11684 $as_echo "$VENDOR" >&6; }
11685
11686
11687 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11688 $as_echo_n "checking default package type... " >&6; }
11689 case "$VENDOR" in
11690 fedora) DEFAULT_PACKAGE=rpm ;;
11691 redhat) DEFAULT_PACKAGE=rpm ;;
11692 sles) DEFAULT_PACKAGE=rpm ;;
11693 ubuntu) DEFAULT_PACKAGE=deb ;;
11694 debian) DEFAULT_PACKAGE=deb ;;
11695 slackware) DEFAULT_PACKAGE=tgz ;;
11696 arch) DEFAULT_PACKAGE=arch;;
11697 *) DEFAULT_PACKAGE=rpm ;;
11698 esac
11699
11700 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11701 $as_echo "$DEFAULT_PACKAGE" >&6; }
11702
11703
11704
11705
11706 SPL_CONFIG=all
11707
11708 # Check whether --with-config was given.
11709 if test "${with_config+set}" = set; then
11710 withval=$with_config; SPL_CONFIG="$withval"
11711 fi
11712
11713
11714 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11715 $as_echo_n "checking spl config... " >&6; }
11716 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11717 $as_echo "$SPL_CONFIG" >&6; };
11718
11719
11720 case "$SPL_CONFIG" in
11721 kernel)
11722
11723
11724 # Check whether --with-linux was given.
11725 if test "${with_linux+set}" = set; then
11726 withval=$with_linux; kernelsrc="$withval"
11727 fi
11728
11729
11730
11731 # Check whether --with-linux-obj was given.
11732 if test "${with_linux_obj+set}" = set; then
11733 withval=$with_linux_obj; kernelbuild="$withval"
11734 fi
11735
11736
11737 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11738 $as_echo_n "checking kernel source directory... " >&6; }
11739 if test -z "$kernelsrc"; then
11740 if test -e "/lib/modules/$(uname -r)/source"; then
11741 headersdir="/lib/modules/$(uname -r)/source"
11742 sourcelink=$(readlink -f "$headersdir")
11743 elif test -e "/lib/modules/$(uname -r)/build"; then
11744 headersdir="/lib/modules/$(uname -r)/build"
11745 sourcelink=$(readlink -f "$headersdir")
11746 else
11747 sourcelink=$(ls -1d /usr/src/kernels/* \
11748 /usr/src/linux-* \
11749 2>/dev/null | grep -v obj | tail -1)
11750 fi
11751
11752 if test -n "$sourcelink" && test -e ${sourcelink}; then
11753 kernelsrc=`readlink -f ${sourcelink}`
11754 else
11755 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11756 $as_echo "Not found" >&6; }
11757 { { $as_echo "$as_me:$LINENO: error:
11758 *** Please make sure the kernel devel package for your distribution
11759 *** is installed then try again. If that fails you can specify the
11760 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11761 $as_echo "$as_me: error:
11762 *** Please make sure the kernel devel package for your distribution
11763 *** is installed then try again. If that fails you can specify the
11764 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11765 { (exit 1); exit 1; }; }
11766 fi
11767 else
11768 if test "$kernelsrc" = "NONE"; then
11769 kernsrcver=NONE
11770 fi
11771 fi
11772
11773 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11774 $as_echo "$kernelsrc" >&6; }
11775 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11776 $as_echo_n "checking kernel build directory... " >&6; }
11777 if test -z "$kernelbuild"; then
11778 if test -e "/lib/modules/$(uname -r)/build"; then
11779 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11780 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11781 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11782 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11783 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11784 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11785 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11786 else
11787 kernelbuild=${kernelsrc}
11788 fi
11789 fi
11790 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11791 $as_echo "$kernelbuild" >&6; }
11792
11793 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11794 $as_echo_n "checking kernel source version... " >&6; }
11795 utsrelease1=$kernelbuild/include/linux/version.h
11796 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11797 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11798 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11799 utsrelease=linux/version.h
11800 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11801 utsrelease=linux/utsrelease.h
11802 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11803 utsrelease=generated/utsrelease.h
11804 fi
11805
11806 if test "$utsrelease"; then
11807 kernsrcver=`(echo "#include <$utsrelease>";
11808 echo "kernsrcver=UTS_RELEASE") |
11809 cpp -I $kernelbuild/include |
11810 grep "^kernsrcver=" | cut -d \" -f 2`
11811
11812 if test -z "$kernsrcver"; then
11813 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11814 $as_echo "Not found" >&6; }
11815 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11816 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11817 { (exit 1); exit 1; }; }
11818 fi
11819 else
11820 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11821 $as_echo "Not found" >&6; }
11822 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11823 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11824 { (exit 1); exit 1; }; }
11825 fi
11826
11827 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11828 $as_echo "$kernsrcver" >&6; }
11829
11830 LINUX=${kernelsrc}
11831 LINUX_OBJ=${kernelbuild}
11832 LINUX_VERSION=${kernsrcver}
11833
11834
11835
11836
11837
11838
11839 modpost=$LINUX/scripts/Makefile.modpost
11840 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11841 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11842 if test -f "$modpost"; then
11843 if grep -q Modules.symvers $modpost; then
11844 LINUX_SYMBOLS=Modules.symvers
11845 else
11846 LINUX_SYMBOLS=Module.symvers
11847 fi
11848
11849 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11850 { { $as_echo "$as_me:$LINENO: error:
11851 *** Please make sure the kernel devel package for your distribution
11852 *** is installed. If your building with a custom kernel make sure the
11853 *** kernel is configured, built, and the '--with-linux=PATH' configure
11854 *** option refers to the location of the kernel source." >&5
11855 $as_echo "$as_me: error:
11856 *** Please make sure the kernel devel package for your distribution
11857 *** is installed. If your building with a custom kernel make sure the
11858 *** kernel is configured, built, and the '--with-linux=PATH' configure
11859 *** option refers to the location of the kernel source." >&2;}
11860 { (exit 1); exit 1; }; }
11861 fi
11862 else
11863 LINUX_SYMBOLS=NONE
11864 fi
11865 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11866 $as_echo "$LINUX_SYMBOLS" >&6; }
11867
11868
11869
11870
11871 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11872 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11873
11874
11875 cat confdefs.h - <<_ACEOF >conftest.c
11876 /* confdefs.h. */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881
11882
11883 #include <linux/module.h>
11884
11885 int
11886 main (void)
11887 {
11888
11889 #ifndef CONFIG_PREEMPT
11890 #error CONFIG_PREEMPT not #defined
11891 #endif
11892
11893 ;
11894 return 0;
11895 }
11896
11897 _ACEOF
11898
11899
11900 rm -Rf build && mkdir -p build
11901 echo "obj-m := conftest.o" >build/Makefile
11902 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913
11914 { $as_echo "$as_me:$LINENO: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 { { $as_echo "$as_me:$LINENO: error:
11917 *** Kernel built with CONFIG_PREEMPT which is not supported.
11918 ** You must rebuild your kernel without this option." >&5
11919 $as_echo "$as_me: error:
11920 *** Kernel built with CONFIG_PREEMPT which is not supported.
11921 ** You must rebuild your kernel without this option." >&2;}
11922 { (exit 1); exit 1; }; }
11923
11924 else
11925 $as_echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 { $as_echo "$as_me:$LINENO: result: no" >&5
11929 $as_echo "no" >&6; }
11930
11931
11932
11933
11934 fi
11935
11936 rm -Rf build
11937
11938
11939
11940
11941
11942 if test "${LINUX_OBJ}" != "${LINUX}"; then
11943 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11944 fi
11945
11946
11947 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11948
11949
11950
11951 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11952 $as_echo_n "checking whether debugging is enabled... " >&6; }
11953 # Check whether --enable-debug was given.
11954 if test "${enable_debug+set}" = set; then
11955 enableval=$enable_debug;
11956 else
11957 enable_debug=no
11958 fi
11959
11960
11961 if test "x$enable_debug" = xyes; then
11962
11963 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11964 DEBUG_CFLAGS="-DDEBUG -Werror"
11965
11966 else
11967
11968 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11969 DEBUG_CFLAGS="-DNDEBUG"
11970
11971 fi
11972
11973
11974
11975 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11976 $as_echo "$enable_debug" >&6; }
11977
11978
11979 # Check whether --enable-debug-kmem was given.
11980 if test "${enable_debug_kmem+set}" = set; then
11981 enableval=$enable_debug_kmem;
11982 else
11983 enable_debug_kmem=yes
11984 fi
11985
11986
11987 if test "x$enable_debug_kmem" = xyes; then
11988
11989 cat >>confdefs.h <<\_ACEOF
11990 #define DEBUG_KMEM 1
11991 _ACEOF
11992
11993 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11994 fi
11995
11996
11997 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11998 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11999 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12000 $as_echo "$enable_debug_kmem" >&6; }
12001
12002
12003 # Check whether --enable-debug-kmem-tracking was given.
12004 if test "${enable_debug_kmem_tracking+set}" = set; then
12005 enableval=$enable_debug_kmem_tracking;
12006 else
12007 enable_debug_kmem_tracking=no
12008 fi
12009
12010
12011 if test "x$enable_debug_kmem_tracking" = xyes; then
12012
12013 cat >>confdefs.h <<\_ACEOF
12014 #define DEBUG_KMEM_TRACKING 1
12015 _ACEOF
12016
12017 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12018 fi
12019
12020
12021 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12022 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12023 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12024 $as_echo "$enable_debug_kmem_tracking" >&6; }
12025
12026
12027 # Check whether --enable-atomic-spinlocks was given.
12028 if test "${enable_atomic_spinlocks+set}" = set; then
12029 enableval=$enable_atomic_spinlocks;
12030 else
12031 enable_atomic_spinlocks=check
12032 fi
12033
12034
12035
12036
12037 cat confdefs.h - <<_ACEOF >conftest.c
12038 /* confdefs.h. */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043
12044
12045 #include <asm/atomic.h>
12046
12047 int
12048 main (void)
12049 {
12050
12051 atomic64_t *ptr __attribute__ ((unused));
12052
12053 ;
12054 return 0;
12055 }
12056
12057 _ACEOF
12058
12059
12060 rm -Rf build && mkdir -p build
12061 echo "obj-m := conftest.o" >build/Makefile
12062 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073
12074 have_atomic64_t=yes
12075
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_ATOMIC64_T 1
12078 _ACEOF
12079
12080
12081 else
12082 $as_echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 have_atomic64_t=no
12086
12087
12088
12089 fi
12090
12091 rm -Rf build
12092
12093
12094
12095 if test "x$enable_atomic_spinlocks" = xcheck; then
12096
12097 if test "x$have_atomic64_t" = xyes; then
12098
12099 enable_atomic_spinlocks=no
12100
12101 else
12102
12103 enable_atomic_spinlocks=yes
12104
12105 fi
12106
12107
12108 fi
12109
12110
12111 if test "x$enable_atomic_spinlocks" = xyes; then
12112
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define ATOMIC_SPINLOCK 1
12116 _ACEOF
12117
12118
12119 else
12120
12121 if test "x$have_atomic64_t" = xno; then
12122
12123 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12125 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12126 See \`config.log' for more details." >&5
12127 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12128 See \`config.log' for more details." >&2;}
12129 { (exit 1); exit 1; }; }; }
12130
12131 fi
12132
12133
12134 fi
12135
12136
12137 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12138 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12139 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12140 $as_echo "$enable_atomic_spinlocks" >&6; }
12141
12142 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12143 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12144 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12145 $as_echo "$have_atomic64_t" >&6; }
12146
12147 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12148 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
12149
12150
12151 cat confdefs.h - <<_ACEOF >conftest.c
12152 /* confdefs.h. */
12153 _ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157
12158
12159 #include <asm/atomic.h>
12160 #include <asm/system.h>
12161
12162 int
12163 main (void)
12164 {
12165
12166 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
12167
12168 ;
12169 return 0;
12170 }
12171
12172 _ACEOF
12173
12174
12175 rm -Rf build && mkdir -p build
12176 echo "obj-m := conftest.o" >build/Makefile
12177 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188
12189 { $as_echo "$as_me:$LINENO: result: yes" >&5
12190 $as_echo "yes" >&6; }
12191
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_ATOMIC64_CMPXCHG 1
12194 _ACEOF
12195
12196
12197 else
12198 $as_echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201 { $as_echo "$as_me:$LINENO: result: no" >&5
12202 $as_echo "no" >&6; }
12203
12204
12205
12206 fi
12207
12208 rm -Rf build
12209
12210
12211
12212 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12213 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
12214
12215
12216 cat confdefs.h - <<_ACEOF >conftest.c
12217 /* confdefs.h. */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222
12223
12224 #include <asm/atomic.h>
12225
12226 int
12227 main (void)
12228 {
12229
12230 atomic64_xchg((atomic64_t *)NULL, 0);
12231
12232 ;
12233 return 0;
12234 }
12235
12236 _ACEOF
12237
12238
12239 rm -Rf build && mkdir -p build
12240 echo "obj-m := conftest.o" >build/Makefile
12241 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
12250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); }; }; then
12252
12253 { $as_echo "$as_me:$LINENO: result: yes" >&5
12254 $as_echo "yes" >&6; }
12255
12256 cat >>confdefs.h <<\_ACEOF
12257 #define HAVE_ATOMIC64_XCHG 1
12258 _ACEOF
12259
12260
12261 else
12262 $as_echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 { $as_echo "$as_me:$LINENO: result: no" >&5
12266 $as_echo "no" >&6; }
12267
12268
12269
12270 fi
12271
12272 rm -Rf build
12273
12274
12275
12276 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12277 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
12278
12279
12280 cat confdefs.h - <<_ACEOF >conftest.c
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286
12287
12288 #include <linux/types.h>
12289
12290 int
12291 main (void)
12292 {
12293
12294 uintptr_t *ptr __attribute__ ((unused));
12295
12296 ;
12297 return 0;
12298 }
12299
12300 _ACEOF
12301
12302
12303 rm -Rf build && mkdir -p build
12304 echo "obj-m := conftest.o" >build/Makefile
12305 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316
12317 { $as_echo "$as_me:$LINENO: result: yes" >&5
12318 $as_echo "yes" >&6; }
12319
12320 cat >>confdefs.h <<\_ACEOF
12321 #define HAVE_UINTPTR_T 1
12322 _ACEOF
12323
12324
12325 else
12326 $as_echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12328
12329 { $as_echo "$as_me:$LINENO: result: no" >&5
12330 $as_echo "no" >&6; }
12331
12332
12333
12334 fi
12335
12336 rm -Rf build
12337
12338
12339
12340 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12341 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
12342
12343
12344 cat confdefs.h - <<_ACEOF >conftest.c
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350
12351
12352 #include <linux/workqueue.h>
12353
12354 int
12355 main (void)
12356 {
12357
12358 struct work_struct work __attribute__ ((unused));
12359 INIT_WORK(&work, NULL, NULL);
12360
12361 ;
12362 return 0;
12363 }
12364
12365 _ACEOF
12366
12367
12368 rm -Rf build && mkdir -p build
12369 echo "obj-m := conftest.o" >build/Makefile
12370 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381
12382 { $as_echo "$as_me:$LINENO: result: yes" >&5
12383 $as_echo "yes" >&6; }
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define HAVE_3ARGS_INIT_WORK 1
12387 _ACEOF
12388
12389
12390 else
12391 $as_echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 { $as_echo "$as_me:$LINENO: result: no" >&5
12395 $as_echo "no" >&6; }
12396
12397
12398
12399 fi
12400
12401 rm -Rf build
12402
12403
12404
12405 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12406 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
12407
12408
12409 cat confdefs.h - <<_ACEOF >conftest.c
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415
12416
12417 #include <linux/sysctl.h>
12418
12419 int
12420 main (void)
12421 {
12422
12423 (void) register_sysctl_table(NULL, 0);
12424
12425 ;
12426 return 0;
12427 }
12428
12429 _ACEOF
12430
12431
12432 rm -Rf build && mkdir -p build
12433 echo "obj-m := conftest.o" >build/Makefile
12434 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
12443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445
12446 { $as_echo "$as_me:$LINENO: result: yes" >&5
12447 $as_echo "yes" >&6; }
12448
12449 cat >>confdefs.h <<\_ACEOF
12450 #define HAVE_2ARGS_REGISTER_SYSCTL 1
12451 _ACEOF
12452
12453
12454 else
12455 $as_echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12457
12458 { $as_echo "$as_me:$LINENO: result: no" >&5
12459 $as_echo "no" >&6; }
12460
12461
12462
12463 fi
12464
12465 rm -Rf build
12466
12467
12468
12469
12470 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12471 $as_echo_n "checking whether set_shrinker() available... " >&6; }
12472
12473
12474 cat confdefs.h - <<_ACEOF >conftest.c
12475 /* confdefs.h. */
12476 _ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480
12481
12482 #include <linux/mm.h>
12483
12484 int
12485 main (void)
12486 {
12487
12488 return set_shrinker(DEFAULT_SEEKS, NULL);
12489
12490 ;
12491 return 0;
12492 }
12493
12494 _ACEOF
12495
12496
12497 rm -Rf build && mkdir -p build
12498 echo "obj-m := conftest.o" >build/Makefile
12499 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510
12511 { $as_echo "$as_me:$LINENO: result: yes" >&5
12512 $as_echo "yes" >&6; }
12513
12514 cat >>confdefs.h <<\_ACEOF
12515 #define HAVE_SET_SHRINKER 1
12516 _ACEOF
12517
12518
12519 else
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12525
12526
12527
12528 fi
12529
12530 rm -Rf build
12531
12532
12533
12534 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12535 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12536 tmp_flags="$EXTRA_KCFLAGS"
12537 EXTRA_KCFLAGS="-Werror"
12538
12539
12540 cat confdefs.h - <<_ACEOF >conftest.c
12541 /* confdefs.h. */
12542 _ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12546
12547
12548 #include <linux/mm.h>
12549
12550 int shrinker_cb(struct shrinker *, int, unsigned int);
12551
12552 int
12553 main (void)
12554 {
12555
12556 struct shrinker cache_shrinker = {
12557 .shrink = shrinker_cb,
12558 .seeks = DEFAULT_SEEKS,
12559 };
12560 register_shrinker(&cache_shrinker);
12561
12562 ;
12563 return 0;
12564 }
12565
12566 _ACEOF
12567
12568
12569 rm -Rf build && mkdir -p build
12570 echo "obj-m := conftest.o" >build/Makefile
12571 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582
12583 { $as_echo "$as_me:$LINENO: result: yes" >&5
12584 $as_echo "yes" >&6; }
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
12588 _ACEOF
12589
12590
12591 else
12592 $as_echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596 $as_echo "no" >&6; }
12597
12598
12599
12600 fi
12601
12602 rm -Rf build
12603
12604
12605 EXTRA_KCFLAGS="$tmp_flags"
12606
12607 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12608 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
12609
12610
12611 cat confdefs.h - <<_ACEOF >conftest.c
12612 /* confdefs.h. */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617
12618
12619 #include <linux/namei.h>
12620
12621 int
12622 main (void)
12623 {
12624
12625 struct nameidata nd __attribute__ ((unused));
12626
12627 nd.path.mnt = NULL;
12628 nd.path.dentry = NULL;
12629
12630 ;
12631 return 0;
12632 }
12633
12634 _ACEOF
12635
12636
12637 rm -Rf build && mkdir -p build
12638 echo "obj-m := conftest.o" >build/Makefile
12639 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650
12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
12652 $as_echo "yes" >&6; }
12653
12654 cat >>confdefs.h <<\_ACEOF
12655 #define HAVE_PATH_IN_NAMEIDATA 1
12656 _ACEOF
12657
12658
12659 else
12660 $as_echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664 $as_echo "no" >&6; }
12665
12666
12667
12668 fi
12669
12670 rm -Rf build
12671
12672
12673
12674
12675 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12676 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
12677 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12678 $LINUX_OBJ/Module*.symvers 2>/dev/null
12679 rc=$?
12680 if test $rc -ne 0; then
12681 export=0
12682 for file in kernel/sched.c; do
12683 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12684 "$LINUX_OBJ/$file" 2>/dev/null
12685 rc=$?
12686 if test $rc -eq 0; then
12687 export=1
12688 break;
12689 fi
12690 done
12691 if test $export -eq 0; then
12692 { $as_echo "$as_me:$LINENO: result: no" >&5
12693 $as_echo "no" >&6; }
12694
12695 else
12696 { $as_echo "$as_me:$LINENO: result: yes" >&5
12697 $as_echo "yes" >&6; }
12698
12699 cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_TASK_CURR 1
12701 _ACEOF
12702
12703 fi
12704 else
12705 { $as_echo "$as_me:$LINENO: result: yes" >&5
12706 $as_echo "yes" >&6; }
12707
12708 cat >>confdefs.h <<\_ACEOF
12709 #define HAVE_TASK_CURR 1
12710 _ACEOF
12711
12712 fi
12713
12714
12715 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12716 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
12717
12718
12719 cat confdefs.h - <<_ACEOF >conftest.c
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725
12726
12727 #include <linux/sysctl.h>
12728
12729 int
12730 main (void)
12731 {
12732
12733 #ifndef CTL_UNNUMBERED
12734 #error CTL_UNNUMBERED undefined
12735 #endif
12736
12737 ;
12738 return 0;
12739 }
12740
12741 _ACEOF
12742
12743
12744 rm -Rf build && mkdir -p build
12745 echo "obj-m := conftest.o" >build/Makefile
12746 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
12757
12758 { $as_echo "$as_me:$LINENO: result: yes" >&5
12759 $as_echo "yes" >&6; }
12760
12761 cat >>confdefs.h <<\_ACEOF
12762 #define HAVE_CTL_UNNUMBERED 1
12763 _ACEOF
12764
12765
12766 else
12767 $as_echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770 { $as_echo "$as_me:$LINENO: result: no" >&5
12771 $as_echo "no" >&6; }
12772
12773
12774
12775 fi
12776
12777 rm -Rf build
12778
12779
12780
12781
12782 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12783 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12784
12785
12786 cat confdefs.h - <<_ACEOF >conftest.c
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792
12793
12794 #include <linux/sysctl.h>
12795
12796 int
12797 main (void)
12798 {
12799
12800 struct ctl_table ctl __attribute__ ((unused));
12801 ctl.ctl_name = 0;
12802
12803 ;
12804 return 0;
12805 }
12806
12807 _ACEOF
12808
12809
12810 rm -Rf build && mkdir -p build
12811 echo "obj-m := conftest.o" >build/Makefile
12812 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823
12824 { $as_echo "$as_me:$LINENO: result: yes" >&5
12825 $as_echo "yes" >&6; }
12826
12827 cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_CTL_NAME 1
12829 _ACEOF
12830
12831
12832 else
12833 $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 { $as_echo "$as_me:$LINENO: result: no" >&5
12837 $as_echo "no" >&6; }
12838
12839
12840
12841 fi
12842
12843 rm -Rf build
12844
12845
12846
12847 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12848 $as_echo_n "checking whether fls64() is available... " >&6; }
12849
12850
12851 cat confdefs.h - <<_ACEOF >conftest.c
12852 /* confdefs.h. */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12857
12858
12859 #include <linux/bitops.h>
12860
12861 int
12862 main (void)
12863 {
12864
12865 return fls64(0);
12866
12867 ;
12868 return 0;
12869 }
12870
12871 _ACEOF
12872
12873
12874 rm -Rf build && mkdir -p build
12875 echo "obj-m := conftest.o" >build/Makefile
12876 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
12885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887
12888 { $as_echo "$as_me:$LINENO: result: yes" >&5
12889 $as_echo "yes" >&6; }
12890
12891 cat >>confdefs.h <<\_ACEOF
12892 #define HAVE_FLS64 1
12893 _ACEOF
12894
12895
12896 else
12897 $as_echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 { $as_echo "$as_me:$LINENO: result: no" >&5
12901 $as_echo "no" >&6; }
12902
12903
12904
12905 fi
12906
12907 rm -Rf build
12908
12909
12910
12911
12912 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12913 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
12914 grep -q -E '[[:space:]]device_create[[:space:]]' \
12915 $LINUX_OBJ/Module*.symvers 2>/dev/null
12916 rc=$?
12917 if test $rc -ne 0; then
12918 export=0
12919 for file in drivers/base/core.c; do
12920 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12921 "$LINUX_OBJ/$file" 2>/dev/null
12922 rc=$?
12923 if test $rc -eq 0; then
12924 export=1
12925 break;
12926 fi
12927 done
12928 if test $export -eq 0; then
12929 { $as_echo "$as_me:$LINENO: result: no" >&5
12930 $as_echo "no" >&6; }
12931
12932 else
12933 { $as_echo "$as_me:$LINENO: result: yes" >&5
12934 $as_echo "yes" >&6; }
12935
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_DEVICE_CREATE 1
12938 _ACEOF
12939
12940 fi
12941 else
12942 { $as_echo "$as_me:$LINENO: result: yes" >&5
12943 $as_echo "yes" >&6; }
12944
12945 cat >>confdefs.h <<\_ACEOF
12946 #define HAVE_DEVICE_CREATE 1
12947 _ACEOF
12948
12949 fi
12950
12951
12952
12953 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12954 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
12955 tmp_flags="$EXTRA_KCFLAGS"
12956 EXTRA_KCFLAGS="-Werror"
12957
12958
12959 cat confdefs.h - <<_ACEOF >conftest.c
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965
12966
12967 #include <linux/device.h>
12968
12969 int
12970 main (void)
12971 {
12972
12973 device_create(NULL, NULL, 0, NULL, "%d", 1);
12974
12975 ;
12976 return 0;
12977 }
12978
12979 _ACEOF
12980
12981
12982 rm -Rf build && mkdir -p build
12983 echo "obj-m := conftest.o" >build/Makefile
12984 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995
12996 { $as_echo "$as_me:$LINENO: result: yes" >&5
12997 $as_echo "yes" >&6; }
12998
12999 cat >>confdefs.h <<\_ACEOF
13000 #define HAVE_5ARGS_DEVICE_CREATE 1
13001 _ACEOF
13002
13003
13004 else
13005 $as_echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13007
13008 { $as_echo "$as_me:$LINENO: result: no" >&5
13009 $as_echo "no" >&6; }
13010
13011
13012
13013 fi
13014
13015 rm -Rf build
13016
13017
13018 EXTRA_KCFLAGS="$tmp_flags"
13019
13020
13021 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13022 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
13023 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13024 $LINUX_OBJ/Module*.symvers 2>/dev/null
13025 rc=$?
13026 if test $rc -ne 0; then
13027 export=0
13028 for file in drivers/base/class.c; do
13029 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13030 "$LINUX_OBJ/$file" 2>/dev/null
13031 rc=$?
13032 if test $rc -eq 0; then
13033 export=1
13034 break;
13035 fi
13036 done
13037 if test $export -eq 0; then
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039 $as_echo "no" >&6; }
13040
13041 else
13042 { $as_echo "$as_me:$LINENO: result: yes" >&5
13043 $as_echo "yes" >&6; }
13044
13045 cat >>confdefs.h <<\_ACEOF
13046 #define HAVE_CLASS_DEVICE_CREATE 1
13047 _ACEOF
13048
13049 fi
13050 else
13051 { $as_echo "$as_me:$LINENO: result: yes" >&5
13052 $as_echo "yes" >&6; }
13053
13054 cat >>confdefs.h <<\_ACEOF
13055 #define HAVE_CLASS_DEVICE_CREATE 1
13056 _ACEOF
13057
13058 fi
13059
13060
13061
13062 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13063 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
13064 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13065 $LINUX_OBJ/Module*.symvers 2>/dev/null
13066 rc=$?
13067 if test $rc -ne 0; then
13068 export=0
13069 for file in kernel/time.c; do
13070 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13071 "$LINUX_OBJ/$file" 2>/dev/null
13072 rc=$?
13073 if test $rc -eq 0; then
13074 export=1
13075 break;
13076 fi
13077 done
13078 if test $export -eq 0; then
13079 { $as_echo "$as_me:$LINENO: result: no" >&5
13080 $as_echo "no" >&6; }
13081
13082 else
13083 { $as_echo "$as_me:$LINENO: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085
13086 cat >>confdefs.h <<\_ACEOF
13087 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13088 _ACEOF
13089
13090 fi
13091 else
13092 { $as_echo "$as_me:$LINENO: result: yes" >&5
13093 $as_echo "yes" >&6; }
13094
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13097 _ACEOF
13098
13099 fi
13100
13101
13102
13103 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13104 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
13105
13106
13107 cat confdefs.h - <<_ACEOF >conftest.c
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113
13114
13115 #include <linux/time.h>
13116 void set_normalized_timespec(struct timespec *ts,
13117 time_t sec, long nsec) { }
13118
13119 int
13120 main (void)
13121 {
13122
13123 ;
13124 return 0;
13125 }
13126
13127 _ACEOF
13128
13129
13130 rm -Rf build && mkdir -p build
13131 echo "obj-m := conftest.o" >build/Makefile
13132 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143
13144 { $as_echo "$as_me:$LINENO: result: no" >&5
13145 $as_echo "no" >&6; }
13146
13147 else
13148 $as_echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13156 _ACEOF
13157
13158
13159
13160
13161 fi
13162
13163 rm -Rf build
13164
13165
13166
13167
13168 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13169 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
13170
13171
13172 cat confdefs.h - <<_ACEOF >conftest.c
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178
13179
13180 #include <linux/time.h>
13181
13182 int
13183 main (void)
13184 {
13185
13186 struct timespec a = { 0 };
13187 struct timespec b = { 0 };
13188 struct timespec c __attribute__ ((unused));
13189 c = timespec_sub(a, b);
13190
13191 ;
13192 return 0;
13193 }
13194
13195 _ACEOF
13196
13197
13198 rm -Rf build && mkdir -p build
13199 echo "obj-m := conftest.o" >build/Makefile
13200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
13211
13212 { $as_echo "$as_me:$LINENO: result: yes" >&5
13213 $as_echo "yes" >&6; }
13214
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_TIMESPEC_SUB 1
13217 _ACEOF
13218
13219
13220 else
13221 $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225 $as_echo "no" >&6; }
13226
13227
13228
13229 fi
13230
13231 rm -Rf build
13232
13233
13234
13235
13236 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13237 $as_echo_n "checking whether init_utsname() is available... " >&6; }
13238
13239
13240 cat confdefs.h - <<_ACEOF >conftest.c
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246
13247
13248 #include <linux/utsname.h>
13249
13250 int
13251 main (void)
13252 {
13253
13254 struct new_utsname *a __attribute__ ((unused));
13255 a = init_utsname();
13256
13257 ;
13258 return 0;
13259 }
13260
13261 _ACEOF
13262
13263
13264 rm -Rf build && mkdir -p build
13265 echo "obj-m := conftest.o" >build/Makefile
13266 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
13275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277
13278 { $as_echo "$as_me:$LINENO: result: yes" >&5
13279 $as_echo "yes" >&6; }
13280
13281 cat >>confdefs.h <<\_ACEOF
13282 #define HAVE_INIT_UTSNAME 1
13283 _ACEOF
13284
13285
13286 else
13287 $as_echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290 { $as_echo "$as_me:$LINENO: result: no" >&5
13291 $as_echo "no" >&6; }
13292
13293
13294
13295 fi
13296
13297 rm -Rf build
13298
13299
13300
13301
13302 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13303 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
13304
13305
13306 cat confdefs.h - <<_ACEOF >conftest.c
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312
13313
13314 #include <linux/fdtable.h>
13315
13316 int
13317 main (void)
13318 {
13319
13320 return 0;
13321
13322 ;
13323 return 0;
13324 }
13325
13326 _ACEOF
13327
13328
13329 rm -Rf build && mkdir -p build
13330 echo "obj-m := conftest.o" >build/Makefile
13331 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342
13343
13344 cat >>confdefs.h <<\_ACEOF
13345 #define HAVE_FDTABLE_HEADER 1
13346 _ACEOF
13347
13348 { $as_echo "$as_me:$LINENO: result: yes" >&5
13349 $as_echo "yes" >&6; }
13350
13351
13352 else
13353 $as_echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 { $as_echo "$as_me:$LINENO: result: no" >&5
13357 $as_echo "no" >&6; }
13358
13359
13360
13361
13362 fi
13363
13364 rm -Rf build
13365
13366
13367
13368
13369
13370 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13371 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
13372
13373
13374 cat confdefs.h - <<_ACEOF >conftest.c
13375 /* confdefs.h. */
13376 _ACEOF
13377 cat confdefs.h >>conftest.$ac_ext
13378 cat >>conftest.$ac_ext <<_ACEOF
13379 /* end confdefs.h. */
13380
13381
13382 #include <linux/sched.h>
13383 #include <linux/file.h>
13384 #ifdef HAVE_FDTABLE_HEADER
13385 #include <linux/fdtable.h>
13386 #endif
13387
13388 int
13389 main (void)
13390 {
13391
13392 struct files_struct *files = current->files;
13393 struct fdtable *fdt __attribute__ ((unused));
13394 fdt = files_fdtable(files);
13395
13396 ;
13397 return 0;
13398 }
13399
13400 _ACEOF
13401
13402
13403 rm -Rf build && mkdir -p build
13404 echo "obj-m := conftest.o" >build/Makefile
13405 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416
13417 { $as_echo "$as_me:$LINENO: result: yes" >&5
13418 $as_echo "yes" >&6; }
13419
13420 cat >>confdefs.h <<\_ACEOF
13421 #define HAVE_FILES_FDTABLE 1
13422 _ACEOF
13423
13424
13425 else
13426 $as_echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429 { $as_echo "$as_me:$LINENO: result: no" >&5
13430 $as_echo "no" >&6; }
13431
13432
13433
13434 fi
13435
13436 rm -Rf build
13437
13438
13439
13440
13441 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13442 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
13443
13444
13445 cat confdefs.h - <<_ACEOF >conftest.c
13446 /* confdefs.h. */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451
13452
13453 #include <linux/uaccess.h>
13454
13455 int
13456 main (void)
13457 {
13458
13459 return 0;
13460
13461 ;
13462 return 0;
13463 }
13464
13465 _ACEOF
13466
13467
13468 rm -Rf build && mkdir -p build
13469 echo "obj-m := conftest.o" >build/Makefile
13470 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481
13482
13483 cat >>confdefs.h <<\_ACEOF
13484 #define HAVE_UACCESS_HEADER 1
13485 _ACEOF
13486
13487 { $as_echo "$as_me:$LINENO: result: yes" >&5
13488 $as_echo "yes" >&6; }
13489
13490
13491 else
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 { $as_echo "$as_me:$LINENO: result: no" >&5
13496 $as_echo "no" >&6; }
13497
13498
13499
13500
13501 fi
13502
13503 rm -Rf build
13504
13505
13506
13507
13508
13509 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13510 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
13511
13512
13513 cat confdefs.h - <<_ACEOF >conftest.c
13514 /* confdefs.h. */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h. */
13519
13520
13521 #include <linux/slab.h>
13522
13523 int
13524 main (void)
13525 {
13526
13527 void *a __attribute__ ((unused));
13528 a = kmalloc_node(1, GFP_KERNEL, 0);
13529
13530 ;
13531 return 0;
13532 }
13533
13534 _ACEOF
13535
13536
13537 rm -Rf build && mkdir -p build
13538 echo "obj-m := conftest.o" >build/Makefile
13539 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550
13551 { $as_echo "$as_me:$LINENO: result: yes" >&5
13552 $as_echo "yes" >&6; }
13553
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_KMALLOC_NODE 1
13556 _ACEOF
13557
13558
13559 else
13560 $as_echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 { $as_echo "$as_me:$LINENO: result: no" >&5
13564 $as_echo "no" >&6; }
13565
13566
13567
13568 fi
13569
13570 rm -Rf build
13571
13572
13573
13574
13575 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13576 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
13577 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13578 $LINUX_OBJ/Module*.symvers 2>/dev/null
13579 rc=$?
13580 if test $rc -ne 0; then
13581 export=0
13582 for file in ; do
13583 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13584 "$LINUX_OBJ/$file" 2>/dev/null
13585 rc=$?
13586 if test $rc -eq 0; then
13587 export=1
13588 break;
13589 fi
13590 done
13591 if test $export -eq 0; then
13592 { $as_echo "$as_me:$LINENO: result: no" >&5
13593 $as_echo "no" >&6; }
13594
13595 else
13596 { $as_echo "$as_me:$LINENO: result: yes" >&5
13597 $as_echo "yes" >&6; }
13598
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_MONOTONIC_CLOCK 1
13601 _ACEOF
13602
13603 fi
13604 else
13605 { $as_echo "$as_me:$LINENO: result: yes" >&5
13606 $as_echo "yes" >&6; }
13607
13608 cat >>confdefs.h <<\_ACEOF
13609 #define HAVE_MONOTONIC_CLOCK 1
13610 _ACEOF
13611
13612 fi
13613
13614
13615
13616 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13617 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
13618
13619
13620 cat confdefs.h - <<_ACEOF >conftest.c
13621 /* confdefs.h. */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626
13627
13628 #include <linux/fs.h>
13629 #include <linux/mutex.h>
13630
13631 int
13632 main (void)
13633 {
13634
13635 struct inode i;
13636 mutex_init(&i.i_mutex);
13637
13638 ;
13639 return 0;
13640 }
13641
13642 _ACEOF
13643
13644
13645 rm -Rf build && mkdir -p build
13646 echo "obj-m := conftest.o" >build/Makefile
13647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
13658
13659 { $as_echo "$as_me:$LINENO: result: yes" >&5
13660 $as_echo "yes" >&6; }
13661
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_INODE_I_MUTEX 1
13664 _ACEOF
13665
13666
13667 else
13668 $as_echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672 $as_echo "no" >&6; }
13673
13674
13675
13676 fi
13677
13678 rm -Rf build
13679
13680
13681
13682
13683 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13684 $as_echo_n "checking whether struct mutex has owner... " >&6; }
13685
13686
13687 cat confdefs.h - <<_ACEOF >conftest.c
13688 /* confdefs.h. */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693
13694
13695 #include <linux/mutex.h>
13696
13697 int
13698 main (void)
13699 {
13700
13701 struct mutex mtx __attribute__ ((unused));
13702 mtx.owner = NULL;
13703
13704 ;
13705 return 0;
13706 }
13707
13708 _ACEOF
13709
13710
13711 rm -Rf build && mkdir -p build
13712 echo "obj-m := conftest.o" >build/Makefile
13713 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724
13725 { $as_echo "$as_me:$LINENO: result: yes" >&5
13726 $as_echo "yes" >&6; }
13727
13728 cat >>confdefs.h <<\_ACEOF
13729 #define HAVE_MUTEX_OWNER 1
13730 _ACEOF
13731
13732
13733 else
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 { $as_echo "$as_me:$LINENO: result: no" >&5
13738 $as_echo "no" >&6; }
13739
13740
13741
13742 fi
13743
13744 rm -Rf build
13745
13746
13747
13748
13749 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13750 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13751 tmp_flags="$EXTRA_KCFLAGS"
13752 EXTRA_KCFLAGS="-Werror"
13753
13754
13755 cat confdefs.h - <<_ACEOF >conftest.c
13756 /* confdefs.h. */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761
13762
13763 #include <linux/mutex.h>
13764
13765 int
13766 main (void)
13767 {
13768
13769 struct mutex mtx __attribute__ ((unused));
13770 mtx.owner = current;
13771
13772 ;
13773 return 0;
13774 }
13775
13776 _ACEOF
13777
13778
13779 rm -Rf build && mkdir -p build
13780 echo "obj-m := conftest.o" >build/Makefile
13781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792
13793 { $as_echo "$as_me:$LINENO: result: yes" >&5
13794 $as_echo "yes" >&6; }
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13798 _ACEOF
13799
13800
13801 else
13802 $as_echo "$as_me: failed program was:" >&5
13803 sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 { $as_echo "$as_me:$LINENO: result: no" >&5
13806 $as_echo "no" >&6; }
13807
13808
13809
13810 fi
13811
13812 rm -Rf build
13813
13814
13815 EXTRA_KCFLAGS="$tmp_flags"
13816
13817
13818 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13819 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
13820
13821
13822 cat confdefs.h - <<_ACEOF >conftest.c
13823 /* confdefs.h. */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13828
13829
13830 #include <linux/mutex.h>
13831
13832 int
13833 main (void)
13834 {
13835
13836 struct mutex mutex;
13837 mutex_init(&mutex);
13838 mutex_lock_nested(&mutex, 0);
13839
13840 ;
13841 return 0;
13842 }
13843
13844 _ACEOF
13845
13846
13847 rm -Rf build && mkdir -p build
13848 echo "obj-m := conftest.o" >build/Makefile
13849 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860
13861 { $as_echo "$as_me:$LINENO: result: yes" >&5
13862 $as_echo "yes" >&6; }
13863
13864 cat >>confdefs.h <<\_ACEOF
13865 #define HAVE_MUTEX_LOCK_NESTED 1
13866 _ACEOF
13867
13868
13869 else
13870 $as_echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 { $as_echo "$as_me:$LINENO: result: no" >&5
13874 $as_echo "no" >&6; }
13875
13876
13877
13878 fi
13879
13880 rm -Rf build
13881
13882
13883
13884
13885 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13886 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
13887
13888
13889 cat confdefs.h - <<_ACEOF >conftest.c
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895
13896
13897 #include <linux/smp.h>
13898
13899 int
13900 main (void)
13901 {
13902
13903 on_each_cpu(NULL, NULL, 0);
13904
13905 ;
13906 return 0;
13907 }
13908
13909 _ACEOF
13910
13911
13912 rm -Rf build && mkdir -p build
13913 echo "obj-m := conftest.o" >build/Makefile
13914 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; }; then
13925
13926 { $as_echo "$as_me:$LINENO: result: yes" >&5
13927 $as_echo "yes" >&6; }
13928
13929 cat >>confdefs.h <<\_ACEOF
13930 #define HAVE_3ARGS_ON_EACH_CPU 1
13931 _ACEOF
13932
13933
13934 else
13935 $as_echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938 { $as_echo "$as_me:$LINENO: result: no" >&5
13939 $as_echo "no" >&6; }
13940
13941
13942
13943 fi
13944
13945 rm -Rf build
13946
13947
13948
13949
13950 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13951 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
13952 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13953 $LINUX_OBJ/Module*.symvers 2>/dev/null
13954 rc=$?
13955 if test $rc -ne 0; then
13956 export=0
13957 for file in ; do
13958 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13959 "$LINUX_OBJ/$file" 2>/dev/null
13960 rc=$?
13961 if test $rc -eq 0; then
13962 export=1
13963 break;
13964 fi
13965 done
13966 if test $export -eq 0; then
13967 { $as_echo "$as_me:$LINENO: result: no" >&5
13968 $as_echo "no" >&6; }
13969
13970 else
13971 { $as_echo "$as_me:$LINENO: result: yes" >&5
13972 $as_echo "yes" >&6; }
13973
13974 cat >>confdefs.h <<\_ACEOF
13975 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13976 _ACEOF
13977
13978 fi
13979 else
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981 $as_echo "yes" >&6; }
13982
13983 cat >>confdefs.h <<\_ACEOF
13984 #define HAVE_KALLSYMS_LOOKUP_NAME 1
13985 _ACEOF
13986
13987 fi
13988
13989
13990
13991 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13992 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
13993 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13994 $LINUX_OBJ/Module*.symvers 2>/dev/null
13995 rc=$?
13996 if test $rc -ne 0; then
13997 export=0
13998 for file in ; do
13999 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14000 "$LINUX_OBJ/$file" 2>/dev/null
14001 rc=$?
14002 if test $rc -eq 0; then
14003 export=1
14004 break;
14005 fi
14006 done
14007 if test $export -eq 0; then
14008 { $as_echo "$as_me:$LINENO: result: no" >&5
14009 $as_echo "no" >&6; }
14010
14011 else
14012 { $as_echo "$as_me:$LINENO: result: yes" >&5
14013 $as_echo "yes" >&6; }
14014
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_GET_VMALLOC_INFO 1
14017 _ACEOF
14018
14019 fi
14020 else
14021 { $as_echo "$as_me:$LINENO: result: yes" >&5
14022 $as_echo "yes" >&6; }
14023
14024 cat >>confdefs.h <<\_ACEOF
14025 #define HAVE_GET_VMALLOC_INFO 1
14026 _ACEOF
14027
14028 fi
14029
14030
14031
14032 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14033 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
14034 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14035 rc=$?
14036 if test $rc -eq 0; then
14037 { $as_echo "$as_me:$LINENO: result: yes" >&5
14038 $as_echo "yes" >&6; }
14039
14040 cat >>confdefs.h <<\_ACEOF
14041 #define HAVE_PGDAT_HELPERS 1
14042 _ACEOF
14043
14044 else
14045 { $as_echo "$as_me:$LINENO: result: no" >&5
14046 $as_echo "no" >&6; }
14047 fi
14048
14049
14050 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14051 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
14052 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14053 $LINUX_OBJ/Module*.symvers 2>/dev/null
14054 rc=$?
14055 if test $rc -ne 0; then
14056 export=0
14057 for file in ; do
14058 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14059 "$LINUX_OBJ/$file" 2>/dev/null
14060 rc=$?
14061 if test $rc -eq 0; then
14062 export=1
14063 break;
14064 fi
14065 done
14066 if test $export -eq 0; then
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068 $as_echo "no" >&6; }
14069
14070 else
14071 { $as_echo "$as_me:$LINENO: result: yes" >&5
14072 $as_echo "yes" >&6; }
14073
14074 cat >>confdefs.h <<\_ACEOF
14075 #define HAVE_FIRST_ONLINE_PGDAT 1
14076 _ACEOF
14077
14078 fi
14079 else
14080 { $as_echo "$as_me:$LINENO: result: yes" >&5
14081 $as_echo "yes" >&6; }
14082
14083 cat >>confdefs.h <<\_ACEOF
14084 #define HAVE_FIRST_ONLINE_PGDAT 1
14085 _ACEOF
14086
14087 fi
14088
14089
14090
14091 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14092 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
14093 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14094 $LINUX_OBJ/Module*.symvers 2>/dev/null
14095 rc=$?
14096 if test $rc -ne 0; then
14097 export=0
14098 for file in ; do
14099 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14100 "$LINUX_OBJ/$file" 2>/dev/null
14101 rc=$?
14102 if test $rc -eq 0; then
14103 export=1
14104 break;
14105 fi
14106 done
14107 if test $export -eq 0; then
14108 { $as_echo "$as_me:$LINENO: result: no" >&5
14109 $as_echo "no" >&6; }
14110
14111 else
14112 { $as_echo "$as_me:$LINENO: result: yes" >&5
14113 $as_echo "yes" >&6; }
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_NEXT_ONLINE_PGDAT 1
14117 _ACEOF
14118
14119 fi
14120 else
14121 { $as_echo "$as_me:$LINENO: result: yes" >&5
14122 $as_echo "yes" >&6; }
14123
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_NEXT_ONLINE_PGDAT 1
14126 _ACEOF
14127
14128 fi
14129
14130
14131
14132 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14133 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
14134 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14135 $LINUX_OBJ/Module*.symvers 2>/dev/null
14136 rc=$?
14137 if test $rc -ne 0; then
14138 export=0
14139 for file in ; do
14140 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14141 "$LINUX_OBJ/$file" 2>/dev/null
14142 rc=$?
14143 if test $rc -eq 0; then
14144 export=1
14145 break;
14146 fi
14147 done
14148 if test $export -eq 0; then
14149 { $as_echo "$as_me:$LINENO: result: no" >&5
14150 $as_echo "no" >&6; }
14151
14152 else
14153 { $as_echo "$as_me:$LINENO: result: yes" >&5
14154 $as_echo "yes" >&6; }
14155
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_NEXT_ZONE 1
14158 _ACEOF
14159
14160 fi
14161 else
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5
14163 $as_echo "yes" >&6; }
14164
14165 cat >>confdefs.h <<\_ACEOF
14166 #define HAVE_NEXT_ZONE 1
14167 _ACEOF
14168
14169 fi
14170
14171
14172
14173 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14174 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
14175 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14176 $LINUX_OBJ/Module*.symvers 2>/dev/null
14177 rc=$?
14178 if test $rc -ne 0; then
14179 export=0
14180 for file in ; do
14181 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14182 "$LINUX_OBJ/$file" 2>/dev/null
14183 rc=$?
14184 if test $rc -eq 0; then
14185 export=1
14186 break;
14187 fi
14188 done
14189 if test $export -eq 0; then
14190 { $as_echo "$as_me:$LINENO: result: no" >&5
14191 $as_echo "no" >&6; }
14192
14193 else
14194 { $as_echo "$as_me:$LINENO: result: yes" >&5
14195 $as_echo "yes" >&6; }
14196
14197 cat >>confdefs.h <<\_ACEOF
14198 #define HAVE_PGDAT_LIST 1
14199 _ACEOF
14200
14201 fi
14202 else
14203 { $as_echo "$as_me:$LINENO: result: yes" >&5
14204 $as_echo "yes" >&6; }
14205
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_PGDAT_LIST 1
14208 _ACEOF
14209
14210 fi
14211
14212
14213
14214 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14215 $as_echo_n "checking whether global_page_state() is available... " >&6; }
14216
14217
14218 cat confdefs.h - <<_ACEOF >conftest.c
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224
14225
14226 #include <linux/mm.h>
14227
14228 int
14229 main (void)
14230 {
14231
14232 unsigned long state __attribute__ ((unused));
14233 state = global_page_state(0);
14234
14235 ;
14236 return 0;
14237 }
14238
14239 _ACEOF
14240
14241
14242 rm -Rf build && mkdir -p build
14243 echo "obj-m := conftest.o" >build/Makefile
14244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14255
14256 { $as_echo "$as_me:$LINENO: result: yes" >&5
14257 $as_echo "yes" >&6; }
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_GLOBAL_PAGE_STATE 1
14261 _ACEOF
14262
14263
14264 else
14265 $as_echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14267
14268 { $as_echo "$as_me:$LINENO: result: no" >&5
14269 $as_echo "no" >&6; }
14270
14271
14272
14273 fi
14274
14275 rm -Rf build
14276
14277
14278
14279
14280 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14281 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
14282
14283
14284 cat confdefs.h - <<_ACEOF >conftest.c
14285 /* confdefs.h. */
14286 _ACEOF
14287 cat confdefs.h >>conftest.$ac_ext
14288 cat >>conftest.$ac_ext <<_ACEOF
14289 /* end confdefs.h. */
14290
14291
14292 #include <linux/mm.h>
14293
14294 int
14295 main (void)
14296 {
14297
14298 enum zone_stat_item zsi __attribute__ ((unused));
14299 zsi = NR_FREE_PAGES;
14300
14301 ;
14302 return 0;
14303 }
14304
14305 _ACEOF
14306
14307
14308 rm -Rf build && mkdir -p build
14309 echo "obj-m := conftest.o" >build/Makefile
14310 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
14314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14321
14322 { $as_echo "$as_me:$LINENO: result: yes" >&5
14323 $as_echo "yes" >&6; }
14324
14325 cat >>confdefs.h <<\_ACEOF
14326 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
14327 _ACEOF
14328
14329
14330 else
14331 $as_echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 { $as_echo "$as_me:$LINENO: result: no" >&5
14335 $as_echo "no" >&6; }
14336
14337
14338
14339 fi
14340
14341 rm -Rf build
14342
14343
14344
14345
14346 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14347 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
14348
14349
14350 cat confdefs.h - <<_ACEOF >conftest.c
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356
14357
14358 #include <linux/mm.h>
14359
14360 int
14361 main (void)
14362 {
14363
14364 enum zone_stat_item zsi __attribute__ ((unused));
14365 zsi = NR_INACTIVE;
14366
14367 ;
14368 return 0;
14369 }
14370
14371 _ACEOF
14372
14373
14374 rm -Rf build && mkdir -p build
14375 echo "obj-m := conftest.o" >build/Makefile
14376 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
14380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; }; then
14387
14388 { $as_echo "$as_me:$LINENO: result: yes" >&5
14389 $as_echo "yes" >&6; }
14390
14391 cat >>confdefs.h <<\_ACEOF
14392 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
14393 _ACEOF
14394
14395
14396 else
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401 $as_echo "no" >&6; }
14402
14403
14404
14405 fi
14406
14407 rm -Rf build
14408
14409
14410
14411 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14412 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
14413
14414
14415 cat confdefs.h - <<_ACEOF >conftest.c
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421
14422
14423 #include <linux/mm.h>
14424
14425 int
14426 main (void)
14427 {
14428
14429 enum zone_stat_item zsi __attribute__ ((unused));
14430 zsi = NR_INACTIVE_ANON;
14431
14432 ;
14433 return 0;
14434 }
14435
14436 _ACEOF
14437
14438
14439 rm -Rf build && mkdir -p build
14440 echo "obj-m := conftest.o" >build/Makefile
14441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
14450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451 (exit $ac_status); }; }; then
14452
14453 { $as_echo "$as_me:$LINENO: result: yes" >&5
14454 $as_echo "yes" >&6; }
14455
14456 cat >>confdefs.h <<\_ACEOF
14457 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
14458 _ACEOF
14459
14460
14461 else
14462 $as_echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 { $as_echo "$as_me:$LINENO: result: no" >&5
14466 $as_echo "no" >&6; }
14467
14468
14469
14470 fi
14471
14472 rm -Rf build
14473
14474
14475
14476 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14477 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
14478
14479
14480 cat confdefs.h - <<_ACEOF >conftest.c
14481 /* confdefs.h. */
14482 _ACEOF
14483 cat confdefs.h >>conftest.$ac_ext
14484 cat >>conftest.$ac_ext <<_ACEOF
14485 /* end confdefs.h. */
14486
14487
14488 #include <linux/mm.h>
14489
14490 int
14491 main (void)
14492 {
14493
14494 enum zone_stat_item zsi __attribute__ ((unused));
14495 zsi = NR_INACTIVE_FILE;
14496
14497 ;
14498 return 0;
14499 }
14500
14501 _ACEOF
14502
14503
14504 rm -Rf build && mkdir -p build
14505 echo "obj-m := conftest.o" >build/Makefile
14506 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
14510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
14517
14518 { $as_echo "$as_me:$LINENO: result: yes" >&5
14519 $as_echo "yes" >&6; }
14520
14521 cat >>confdefs.h <<\_ACEOF
14522 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
14523 _ACEOF
14524
14525
14526 else
14527 $as_echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 { $as_echo "$as_me:$LINENO: result: no" >&5
14531 $as_echo "no" >&6; }
14532
14533
14534
14535 fi
14536
14537 rm -Rf build
14538
14539
14540
14541
14542 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14543 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
14544
14545
14546 cat confdefs.h - <<_ACEOF >conftest.c
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552
14553
14554 #include <linux/mm.h>
14555
14556 int
14557 main (void)
14558 {
14559
14560 enum zone_stat_item zsi __attribute__ ((unused));
14561 zsi = NR_ACTIVE;
14562
14563 ;
14564 return 0;
14565 }
14566
14567 _ACEOF
14568
14569
14570 rm -Rf build && mkdir -p build
14571 echo "obj-m := conftest.o" >build/Makefile
14572 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
14581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583
14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
14585 $as_echo "yes" >&6; }
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
14589 _ACEOF
14590
14591
14592 else
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596 { $as_echo "$as_me:$LINENO: result: no" >&5
14597 $as_echo "no" >&6; }
14598
14599
14600
14601 fi
14602
14603 rm -Rf build
14604
14605
14606
14607 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14608 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
14609
14610
14611 cat confdefs.h - <<_ACEOF >conftest.c
14612 /* confdefs.h. */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617
14618
14619 #include <linux/mm.h>
14620
14621 int
14622 main (void)
14623 {
14624
14625 enum zone_stat_item zsi __attribute__ ((unused));
14626 zsi = NR_ACTIVE_ANON;
14627
14628 ;
14629 return 0;
14630 }
14631
14632 _ACEOF
14633
14634
14635 rm -Rf build && mkdir -p build
14636 echo "obj-m := conftest.o" >build/Makefile
14637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648
14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
14650 $as_echo "yes" >&6; }
14651
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
14654 _ACEOF
14655
14656
14657 else
14658 $as_echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661 { $as_echo "$as_me:$LINENO: result: no" >&5
14662 $as_echo "no" >&6; }
14663
14664
14665
14666 fi
14667
14668 rm -Rf build
14669
14670
14671
14672 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14673 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
14674
14675
14676 cat confdefs.h - <<_ACEOF >conftest.c
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682
14683
14684 #include <linux/mm.h>
14685
14686 int
14687 main (void)
14688 {
14689
14690 enum zone_stat_item zsi __attribute__ ((unused));
14691 zsi = NR_ACTIVE_FILE;
14692
14693 ;
14694 return 0;
14695 }
14696
14697 _ACEOF
14698
14699
14700 rm -Rf build && mkdir -p build
14701 echo "obj-m := conftest.o" >build/Makefile
14702 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }; then
14713
14714 { $as_echo "$as_me:$LINENO: result: yes" >&5
14715 $as_echo "yes" >&6; }
14716
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14719 _ACEOF
14720
14721
14722 else
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 { $as_echo "$as_me:$LINENO: result: no" >&5
14727 $as_echo "no" >&6; }
14728
14729
14730
14731 fi
14732
14733 rm -Rf build
14734
14735
14736
14737
14738 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14739 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
14740
14741
14742 cat confdefs.h - <<_ACEOF >conftest.c
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748
14749
14750
14751 int
14752 main (void)
14753 {
14754
14755 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14756 #error "global_page_state needs NR_FREE_PAGES"
14757 #endif
14758
14759 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14760 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14761 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14762 #error "global_page_state needs NR_ACTIVE*"
14763 #endif
14764
14765 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14766 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14767 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14768 #error "global_page_state needs NR_INACTIVE*"
14769 #endif
14770
14771 ;
14772 return 0;
14773 }
14774
14775 _ACEOF
14776
14777
14778 rm -Rf build && mkdir -p build
14779 echo "obj-m := conftest.o" >build/Makefile
14780 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; }; then
14791
14792 { $as_echo "$as_me:$LINENO: result: no" >&5
14793 $as_echo "no" >&6; }
14794
14795 else
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 { $as_echo "$as_me:$LINENO: result: yes" >&5
14800 $as_echo "yes" >&6; }
14801
14802 cat >>confdefs.h <<\_ACEOF
14803 #define NEED_GET_ZONE_COUNTS 1
14804 _ACEOF
14805
14806
14807 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14808 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
14809 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14810 $LINUX_OBJ/Module*.symvers 2>/dev/null
14811 rc=$?
14812 if test $rc -ne 0; then
14813 export=0
14814 for file in ; do
14815 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14816 "$LINUX_OBJ/$file" 2>/dev/null
14817 rc=$?
14818 if test $rc -eq 0; then
14819 export=1
14820 break;
14821 fi
14822 done
14823 if test $export -eq 0; then
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825 $as_echo "no" >&6; }
14826
14827 else
14828 { $as_echo "$as_me:$LINENO: result: yes" >&5
14829 $as_echo "yes" >&6; }
14830
14831 cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_GET_ZONE_COUNTS 1
14833 _ACEOF
14834
14835 fi
14836 else
14837 { $as_echo "$as_me:$LINENO: result: yes" >&5
14838 $as_echo "yes" >&6; }
14839
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_GET_ZONE_COUNTS 1
14842 _ACEOF
14843
14844 fi
14845
14846
14847
14848
14849 fi
14850
14851 rm -Rf build
14852
14853
14854
14855
14856 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14857 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14858 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14859 $LINUX_OBJ/Module*.symvers 2>/dev/null
14860 rc=$?
14861 if test $rc -ne 0; then
14862 export=0
14863 for file in ; do
14864 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14865 "$LINUX_OBJ/$file" 2>/dev/null
14866 rc=$?
14867 if test $rc -eq 0; then
14868 export=1
14869 break;
14870 fi
14871 done
14872 if test $export -eq 0; then
14873 { $as_echo "$as_me:$LINENO: result: no" >&5
14874 $as_echo "no" >&6; }
14875
14876 else
14877 { $as_echo "$as_me:$LINENO: result: yes" >&5
14878 $as_echo "yes" >&6; }
14879
14880 cat >>confdefs.h <<\_ACEOF
14881 #define HAVE_USER_PATH_DIR 1
14882 _ACEOF
14883
14884 fi
14885 else
14886 { $as_echo "$as_me:$LINENO: result: yes" >&5
14887 $as_echo "yes" >&6; }
14888
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_USER_PATH_DIR 1
14891 _ACEOF
14892
14893 fi
14894
14895
14896
14897 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14898 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
14899 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14900 $LINUX_OBJ/Module*.symvers 2>/dev/null
14901 rc=$?
14902 if test $rc -ne 0; then
14903 export=0
14904 for file in ; do
14905 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14906 "$LINUX_OBJ/$file" 2>/dev/null
14907 rc=$?
14908 if test $rc -eq 0; then
14909 export=1
14910 break;
14911 fi
14912 done
14913 if test $export -eq 0; then
14914 { $as_echo "$as_me:$LINENO: result: no" >&5
14915 $as_echo "no" >&6; }
14916
14917 else
14918 { $as_echo "$as_me:$LINENO: result: yes" >&5
14919 $as_echo "yes" >&6; }
14920
14921 cat >>confdefs.h <<\_ACEOF
14922 #define HAVE_SET_FS_PWD 1
14923 _ACEOF
14924
14925 fi
14926 else
14927 { $as_echo "$as_me:$LINENO: result: yes" >&5
14928 $as_echo "yes" >&6; }
14929
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_SET_FS_PWD 1
14932 _ACEOF
14933
14934 fi
14935
14936
14937 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14938 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
14939
14940
14941 cat confdefs.h - <<_ACEOF >conftest.c
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947
14948
14949 #include <linux/sched.h>
14950 #include <linux/fs_struct.h>
14951
14952 int
14953 main (void)
14954 {
14955
14956 set_fs_pwd(NULL, NULL);
14957
14958 ;
14959 return 0;
14960 }
14961
14962 _ACEOF
14963
14964
14965 rm -Rf build && mkdir -p build
14966 echo "obj-m := conftest.o" >build/Makefile
14967 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
14971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; }; then
14978
14979 { $as_echo "$as_me:$LINENO: result: yes" >&5
14980 $as_echo "yes" >&6; }
14981
14982 cat >>confdefs.h <<\_ACEOF
14983 #define HAVE_2ARGS_SET_FS_PWD 1
14984 _ACEOF
14985
14986
14987 else
14988 $as_echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14990
14991 { $as_echo "$as_me:$LINENO: result: no" >&5
14992 $as_echo "no" >&6; }
14993
14994
14995
14996 fi
14997
14998 rm -Rf build
14999
15000
15001
15002 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15003 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15004
15005
15006 cat confdefs.h - <<_ACEOF >conftest.c
15007 /* confdefs.h. */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012
15013
15014 #include <linux/fs.h>
15015
15016 int
15017 main (void)
15018 {
15019
15020 vfs_unlink(NULL, NULL);
15021
15022 ;
15023 return 0;
15024 }
15025
15026 _ACEOF
15027
15028
15029 rm -Rf build && mkdir -p build
15030 echo "obj-m := conftest.o" >build/Makefile
15031 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15042
15043 { $as_echo "$as_me:$LINENO: result: yes" >&5
15044 $as_echo "yes" >&6; }
15045
15046 cat >>confdefs.h <<\_ACEOF
15047 #define HAVE_2ARGS_VFS_UNLINK 1
15048 _ACEOF
15049
15050
15051 else
15052 $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15054
15055 { $as_echo "$as_me:$LINENO: result: no" >&5
15056 $as_echo "no" >&6; }
15057
15058
15059
15060 fi
15061
15062 rm -Rf build
15063
15064
15065
15066 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15067 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15068
15069
15070 cat confdefs.h - <<_ACEOF >conftest.c
15071 /* confdefs.h. */
15072 _ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076
15077
15078 #include <linux/fs.h>
15079
15080 int
15081 main (void)
15082 {
15083
15084 vfs_rename(NULL, NULL, NULL, NULL);
15085
15086 ;
15087 return 0;
15088 }
15089
15090 _ACEOF
15091
15092
15093 rm -Rf build && mkdir -p build
15094 echo "obj-m := conftest.o" >build/Makefile
15095 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108 $as_echo "yes" >&6; }
15109
15110 cat >>confdefs.h <<\_ACEOF
15111 #define HAVE_4ARGS_VFS_RENAME 1
15112 _ACEOF
15113
15114
15115 else
15116 $as_echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 { $as_echo "$as_me:$LINENO: result: no" >&5
15120 $as_echo "no" >&6; }
15121
15122
15123
15124 fi
15125
15126 rm -Rf build
15127
15128
15129
15130
15131 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15132 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15133 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15134 $LINUX_OBJ/Module*.symvers 2>/dev/null
15135 rc=$?
15136 if test $rc -ne 0; then
15137 export=0
15138 for file in fs/sync.c; do
15139 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15140 "$LINUX_OBJ/$file" 2>/dev/null
15141 rc=$?
15142 if test $rc -eq 0; then
15143 export=1
15144 break;
15145 fi
15146 done
15147 if test $export -eq 0; then
15148 { $as_echo "$as_me:$LINENO: result: no" >&5
15149 $as_echo "no" >&6; }
15150
15151 else
15152 { $as_echo "$as_me:$LINENO: result: yes" >&5
15153 $as_echo "yes" >&6; }
15154
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_VFS_FSYNC 1
15157 _ACEOF
15158
15159 fi
15160 else
15161 { $as_echo "$as_me:$LINENO: result: yes" >&5
15162 $as_echo "yes" >&6; }
15163
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_VFS_FSYNC 1
15166 _ACEOF
15167
15168 fi
15169
15170
15171
15172 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15173 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15174
15175
15176 cat confdefs.h - <<_ACEOF >conftest.c
15177 /* confdefs.h. */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h. */
15182
15183
15184 #include <linux/fs.h>
15185
15186 int
15187 main (void)
15188 {
15189
15190 vfs_fsync(NULL, 0);
15191
15192 ;
15193 return 0;
15194 }
15195
15196 _ACEOF
15197
15198
15199 rm -Rf build && mkdir -p build
15200 echo "obj-m := conftest.o" >build/Makefile
15201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212
15213 { $as_echo "$as_me:$LINENO: result: yes" >&5
15214 $as_echo "yes" >&6; }
15215
15216 cat >>confdefs.h <<\_ACEOF
15217 #define HAVE_2ARGS_VFS_FSYNC 1
15218 _ACEOF
15219
15220
15221 else
15222 $as_echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 { $as_echo "$as_me:$LINENO: result: no" >&5
15226 $as_echo "no" >&6; }
15227
15228
15229
15230 fi
15231
15232 rm -Rf build
15233
15234
15235
15236
15237 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15238 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
15239 tmp_flags="$EXTRA_KCFLAGS"
15240 EXTRA_KCFLAGS="-Werror"
15241
15242
15243 cat confdefs.h - <<_ACEOF >conftest.c
15244 /* confdefs.h. */
15245 _ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249
15250
15251 #include <linux/sched.h>
15252 #include <linux/fs_struct.h>
15253
15254 int
15255 main (void)
15256 {
15257
15258 struct fs_struct fs;
15259 spin_lock_init(&fs.lock);
15260
15261 ;
15262 return 0;
15263 }
15264
15265 _ACEOF
15266
15267
15268 rm -Rf build && mkdir -p build
15269 echo "obj-m := conftest.o" >build/Makefile
15270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281
15282 { $as_echo "$as_me:$LINENO: result: yes" >&5
15283 $as_echo "yes" >&6; }
15284
15285 cat >>confdefs.h <<\_ACEOF
15286 #define HAVE_FS_STRUCT_SPINLOCK 1
15287 _ACEOF
15288
15289
15290 else
15291 $as_echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 { $as_echo "$as_me:$LINENO: result: no" >&5
15295 $as_echo "no" >&6; }
15296
15297
15298
15299 fi
15300
15301 rm -Rf build
15302
15303
15304 EXTRA_KCFLAGS="$tmp_flags"
15305
15306
15307 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15308 $as_echo_n "checking whether struct cred exists... " >&6; }
15309
15310
15311 cat confdefs.h - <<_ACEOF >conftest.c
15312 /* confdefs.h. */
15313 _ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15317
15318
15319 #include <linux/cred.h>
15320
15321 int
15322 main (void)
15323 {
15324
15325 struct cred *cr __attribute__ ((unused));
15326 cr = NULL;
15327
15328 ;
15329 return 0;
15330 }
15331
15332 _ACEOF
15333
15334
15335 rm -Rf build && mkdir -p build
15336 echo "obj-m := conftest.o" >build/Makefile
15337 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
15341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
15346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348
15349 { $as_echo "$as_me:$LINENO: result: yes" >&5
15350 $as_echo "yes" >&6; }
15351
15352 cat >>confdefs.h <<\_ACEOF
15353 #define HAVE_CRED_STRUCT 1
15354 _ACEOF
15355
15356
15357 else
15358 $as_echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15360
15361 { $as_echo "$as_me:$LINENO: result: no" >&5
15362 $as_echo "no" >&6; }
15363
15364
15365
15366 fi
15367
15368 rm -Rf build
15369
15370
15371
15372
15373 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15374 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
15375 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15376 $LINUX_OBJ/Module*.symvers 2>/dev/null
15377 rc=$?
15378 if test $rc -ne 0; then
15379 export=0
15380 for file in ; do
15381 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15382 "$LINUX_OBJ/$file" 2>/dev/null
15383 rc=$?
15384 if test $rc -eq 0; then
15385 export=1
15386 break;
15387 fi
15388 done
15389 if test $export -eq 0; then
15390 { $as_echo "$as_me:$LINENO: result: no" >&5
15391 $as_echo "no" >&6; }
15392
15393 else
15394 { $as_echo "$as_me:$LINENO: result: yes" >&5
15395 $as_echo "yes" >&6; }
15396
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_GROUPS_SEARCH 1
15399 _ACEOF
15400
15401 fi
15402 else
15403 { $as_echo "$as_me:$LINENO: result: yes" >&5
15404 $as_echo "yes" >&6; }
15405
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_GROUPS_SEARCH 1
15408 _ACEOF
15409
15410 fi
15411
15412
15413
15414 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15415 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
15416 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15417 $LINUX_OBJ/Module*.symvers 2>/dev/null
15418 rc=$?
15419 if test $rc -ne 0; then
15420 export=0
15421 for file in ; do
15422 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15423 "$LINUX_OBJ/$file" 2>/dev/null
15424 rc=$?
15425 if test $rc -eq 0; then
15426 export=1
15427 break;
15428 fi
15429 done
15430 if test $export -eq 0; then
15431 { $as_echo "$as_me:$LINENO: result: no" >&5
15432 $as_echo "no" >&6; }
15433
15434 else
15435 { $as_echo "$as_me:$LINENO: result: yes" >&5
15436 $as_echo "yes" >&6; }
15437
15438 cat >>confdefs.h <<\_ACEOF
15439 #define HAVE_PUT_TASK_STRUCT 1
15440 _ACEOF
15441
15442 fi
15443 else
15444 { $as_echo "$as_me:$LINENO: result: yes" >&5
15445 $as_echo "yes" >&6; }
15446
15447 cat >>confdefs.h <<\_ACEOF
15448 #define HAVE_PUT_TASK_STRUCT 1
15449 _ACEOF
15450
15451 fi
15452
15453
15454
15455 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15456 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
15457
15458
15459 cat confdefs.h - <<_ACEOF >conftest.c
15460 /* confdefs.h. */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465
15466
15467 #include <linux/sysctl.h>
15468
15469 int
15470 main (void)
15471 {
15472
15473 proc_dostring(NULL, 0, NULL, NULL, NULL);
15474
15475 ;
15476 return 0;
15477 }
15478
15479 _ACEOF
15480
15481
15482 rm -Rf build && mkdir -p build
15483 echo "obj-m := conftest.o" >build/Makefile
15484 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
15488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495
15496 { $as_echo "$as_me:$LINENO: result: yes" >&5
15497 $as_echo "yes" >&6; }
15498
15499 cat >>confdefs.h <<\_ACEOF
15500 #define HAVE_5ARGS_PROC_HANDLER 1
15501 _ACEOF
15502
15503
15504 else
15505 $as_echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15507
15508 { $as_echo "$as_me:$LINENO: result: no" >&5
15509 $as_echo "no" >&6; }
15510
15511
15512
15513 fi
15514
15515 rm -Rf build
15516
15517
15518
15519
15520 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15521 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15522 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15523 $LINUX_OBJ/Module*.symvers 2>/dev/null
15524 rc=$?
15525 if test $rc -ne 0; then
15526 export=0
15527 for file in ; do
15528 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15529 "$LINUX_OBJ/$file" 2>/dev/null
15530 rc=$?
15531 if test $rc -eq 0; then
15532 export=1
15533 break;
15534 fi
15535 done
15536 if test $export -eq 0; then
15537 { $as_echo "$as_me:$LINENO: result: no" >&5
15538 $as_echo "no" >&6; }
15539
15540 else
15541 { $as_echo "$as_me:$LINENO: result: yes" >&5
15542 $as_echo "yes" >&6; }
15543
15544 cat >>confdefs.h <<\_ACEOF
15545 #define HAVE_KVASPRINTF 1
15546 _ACEOF
15547
15548 fi
15549 else
15550 { $as_echo "$as_me:$LINENO: result: yes" >&5
15551 $as_echo "yes" >&6; }
15552
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_KVASPRINTF 1
15555 _ACEOF
15556
15557 fi
15558
15559
15560
15561 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15562 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15563 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15564 $LINUX_OBJ/Module*.symvers 2>/dev/null
15565 rc=$?
15566 if test $rc -ne 0; then
15567 export=0
15568 for file in lib/rwsem-spinlock.c; do
15569 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15570 "$LINUX_OBJ/$file" 2>/dev/null
15571 rc=$?
15572 if test $rc -eq 0; then
15573 export=1
15574 break;
15575 fi
15576 done
15577 if test $export -eq 0; then
15578 { $as_echo "$as_me:$LINENO: result: no" >&5
15579 $as_echo "no" >&6; }
15580
15581 else
15582 { $as_echo "$as_me:$LINENO: result: yes" >&5
15583 $as_echo "yes" >&6; }
15584
15585 cat >>confdefs.h <<\_ACEOF
15586 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15587 _ACEOF
15588
15589 fi
15590 else
15591 { $as_echo "$as_me:$LINENO: result: yes" >&5
15592 $as_echo "yes" >&6; }
15593
15594 cat >>confdefs.h <<\_ACEOF
15595 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15596 _ACEOF
15597
15598 fi
15599
15600
15601
15602 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15603 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15604 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15605 $LINUX_OBJ/Module*.symvers 2>/dev/null
15606 rc=$?
15607 if test $rc -ne 0; then
15608 export=0
15609 for file in ; do
15610 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15611 "$LINUX_OBJ/$file" 2>/dev/null
15612 rc=$?
15613 if test $rc -eq 0; then
15614 export=1
15615 break;
15616 fi
15617 done
15618 if test $export -eq 0; then
15619 { $as_echo "$as_me:$LINENO: result: no" >&5
15620 $as_echo "no" >&6; }
15621
15622 else
15623 { $as_echo "$as_me:$LINENO: result: yes" >&5
15624 $as_echo "yes" >&6; }
15625
15626 cat >>confdefs.h <<\_ACEOF
15627 #define HAVE_INVALIDATE_INODES 1
15628 _ACEOF
15629
15630 fi
15631 else
15632 { $as_echo "$as_me:$LINENO: result: yes" >&5
15633 $as_echo "yes" >&6; }
15634
15635 cat >>confdefs.h <<\_ACEOF
15636 #define HAVE_INVALIDATE_INODES 1
15637 _ACEOF
15638
15639 fi
15640
15641 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15642 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15643 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15644 $LINUX_OBJ/Module*.symvers 2>/dev/null
15645 rc=$?
15646 if test $rc -ne 0; then
15647 export=0
15648 for file in ; do
15649 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15650 "$LINUX_OBJ/$file" 2>/dev/null
15651 rc=$?
15652 if test $rc -eq 0; then
15653 export=1
15654 break;
15655 fi
15656 done
15657 if test $export -eq 0; then
15658 { $as_echo "$as_me:$LINENO: result: no" >&5
15659 $as_echo "no" >&6; }
15660
15661 else
15662 { $as_echo "$as_me:$LINENO: result: yes" >&5
15663 $as_echo "yes" >&6; }
15664
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_INVALIDATE_INODES_CHECK 1
15667 _ACEOF
15668
15669 fi
15670 else
15671 { $as_echo "$as_me:$LINENO: result: yes" >&5
15672 $as_echo "yes" >&6; }
15673
15674 cat >>confdefs.h <<\_ACEOF
15675 #define HAVE_INVALIDATE_INODES_CHECK 1
15676 _ACEOF
15677
15678 fi
15679
15680
15681 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15682 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15683
15684
15685 cat confdefs.h - <<_ACEOF >conftest.c
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691
15692
15693 #include <linux/fs.h>
15694
15695 int
15696 main (void)
15697 {
15698
15699 return __invalidate_device(NULL, 0);
15700
15701 ;
15702 return 0;
15703 }
15704
15705 _ACEOF
15706
15707
15708 rm -Rf build && mkdir -p build
15709 echo "obj-m := conftest.o" >build/Makefile
15710 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15718 ac_status=$?
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721
15722 { $as_echo "$as_me:$LINENO: result: yes" >&5
15723 $as_echo "yes" >&6; }
15724
15725 cat >>confdefs.h <<\_ACEOF
15726 #define HAVE_2ARGS_INVALIDATE_INODES 1
15727 _ACEOF
15728
15729
15730 else
15731 $as_echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 { $as_echo "$as_me:$LINENO: result: no" >&5
15735 $as_echo "no" >&6; }
15736
15737
15738
15739 fi
15740
15741 rm -Rf build
15742
15743
15744
15745
15746 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15747 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15748 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15749 $LINUX_OBJ/Module*.symvers 2>/dev/null
15750 rc=$?
15751 if test $rc -ne 0; then
15752 export=0
15753 for file in fs/dcache.c; do
15754 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15755 "$LINUX_OBJ/$file" 2>/dev/null
15756 rc=$?
15757 if test $rc -eq 0; then
15758 export=1
15759 break;
15760 fi
15761 done
15762 if test $export -eq 0; then
15763 { $as_echo "$as_me:$LINENO: result: no" >&5
15764 $as_echo "no" >&6; }
15765
15766 else
15767 { $as_echo "$as_me:$LINENO: result: yes" >&5
15768 $as_echo "yes" >&6; }
15769
15770 cat >>confdefs.h <<\_ACEOF
15771 #define HAVE_SHRINK_DCACHE_MEMORY 1
15772 _ACEOF
15773
15774 fi
15775 else
15776 { $as_echo "$as_me:$LINENO: result: yes" >&5
15777 $as_echo "yes" >&6; }
15778
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_SHRINK_DCACHE_MEMORY 1
15781 _ACEOF
15782
15783 fi
15784
15785
15786
15787 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15788 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15789 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15790 $LINUX_OBJ/Module*.symvers 2>/dev/null
15791 rc=$?
15792 if test $rc -ne 0; then
15793 export=0
15794 for file in fs/inode.c; do
15795 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15796 "$LINUX_OBJ/$file" 2>/dev/null
15797 rc=$?
15798 if test $rc -eq 0; then
15799 export=1
15800 break;
15801 fi
15802 done
15803 if test $export -eq 0; then
15804 { $as_echo "$as_me:$LINENO: result: no" >&5
15805 $as_echo "no" >&6; }
15806
15807 else
15808 { $as_echo "$as_me:$LINENO: result: yes" >&5
15809 $as_echo "yes" >&6; }
15810
15811 cat >>confdefs.h <<\_ACEOF
15812 #define HAVE_SHRINK_ICACHE_MEMORY 1
15813 _ACEOF
15814
15815 fi
15816 else
15817 { $as_echo "$as_me:$LINENO: result: yes" >&5
15818 $as_echo "yes" >&6; }
15819
15820 cat >>confdefs.h <<\_ACEOF
15821 #define HAVE_SHRINK_ICACHE_MEMORY 1
15822 _ACEOF
15823
15824 fi
15825
15826
15827
15828
15829 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15830 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15831 header=0
15832 for file in include/linux/namei.h; do
15833 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15834 rc=$?
15835 if test $rc -eq 0; then
15836 header=1
15837 break;
15838 fi
15839 done
15840 if test $header -eq 0; then
15841 { $as_echo "$as_me:$LINENO: result: no" >&5
15842 $as_echo "no" >&6; }
15843
15844 else
15845 { $as_echo "$as_me:$LINENO: result: yes" >&5
15846 $as_echo "yes" >&6; }
15847
15848 cat >>confdefs.h <<\_ACEOF
15849 #define HAVE_KERN_PATH_PARENT_HEADER 1
15850 _ACEOF
15851
15852 fi
15853
15854
15855
15856 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15857 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15858 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15859 $LINUX_OBJ/Module*.symvers 2>/dev/null
15860 rc=$?
15861 if test $rc -ne 0; then
15862 export=0
15863 for file in fs/namei.c; do
15864 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15865 "$LINUX_OBJ/$file" 2>/dev/null
15866 rc=$?
15867 if test $rc -eq 0; then
15868 export=1
15869 break;
15870 fi
15871 done
15872 if test $export -eq 0; then
15873 { $as_echo "$as_me:$LINENO: result: no" >&5
15874 $as_echo "no" >&6; }
15875
15876 else
15877 { $as_echo "$as_me:$LINENO: result: yes" >&5
15878 $as_echo "yes" >&6; }
15879
15880 cat >>confdefs.h <<\_ACEOF
15881 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15882 _ACEOF
15883
15884 fi
15885 else
15886 { $as_echo "$as_me:$LINENO: result: yes" >&5
15887 $as_echo "yes" >&6; }
15888
15889 cat >>confdefs.h <<\_ACEOF
15890 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
15891 _ACEOF
15892
15893 fi
15894
15895
15896 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15897 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15898
15899
15900 cat confdefs.h - <<_ACEOF >conftest.c
15901 /* confdefs.h. */
15902 _ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906
15907
15908 #include <linux/zlib.h>
15909
15910 int
15911 main (void)
15912 {
15913
15914 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15915
15916 ;
15917 return 0;
15918 }
15919
15920 _ACEOF
15921
15922
15923 rm -Rf build && mkdir -p build
15924 echo "obj-m := conftest.o" >build/Makefile
15925 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15933 ac_status=$?
15934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936
15937 { $as_echo "$as_me:$LINENO: result: yes" >&5
15938 $as_echo "yes" >&6; }
15939
15940 cat >>confdefs.h <<\_ACEOF
15941 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15942 _ACEOF
15943
15944
15945 else
15946 $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949 { $as_echo "$as_me:$LINENO: result: no" >&5
15950 $as_echo "no" >&6; }
15951
15952
15953
15954 fi
15955
15956 rm -Rf build
15957
15958
15959
15960
15961 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15962 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
15963
15964
15965 cat confdefs.h - <<_ACEOF >conftest.c
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971
15972
15973 #include <linux/mm.h>
15974
15975 int
15976 main (void)
15977 {
15978
15979 struct shrink_control sc __attribute__ ((unused));
15980
15981 sc.nr_to_scan = 0;
15982 sc.gfp_mask = GFP_KERNEL;
15983
15984 ;
15985 return 0;
15986 }
15987
15988 _ACEOF
15989
15990
15991 rm -Rf build && mkdir -p build
15992 echo "obj-m := conftest.o" >build/Makefile
15993 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004
16005 { $as_echo "$as_me:$LINENO: result: yes" >&5
16006 $as_echo "yes" >&6; }
16007
16008 cat >>confdefs.h <<\_ACEOF
16009 #define HAVE_SHRINK_CONTROL_STRUCT 1
16010 _ACEOF
16011
16012
16013 else
16014 $as_echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017 { $as_echo "$as_me:$LINENO: result: no" >&5
16018 $as_echo "no" >&6; }
16019
16020
16021
16022 fi
16023
16024 rm -Rf build
16025
16026
16027
16028 ;;
16029 user) ;;
16030 all)
16031
16032
16033 # Check whether --with-linux was given.
16034 if test "${with_linux+set}" = set; then
16035 withval=$with_linux; kernelsrc="$withval"
16036 fi
16037
16038
16039
16040 # Check whether --with-linux-obj was given.
16041 if test "${with_linux_obj+set}" = set; then
16042 withval=$with_linux_obj; kernelbuild="$withval"
16043 fi
16044
16045
16046 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16047 $as_echo_n "checking kernel source directory... " >&6; }
16048 if test -z "$kernelsrc"; then
16049 if test -e "/lib/modules/$(uname -r)/source"; then
16050 headersdir="/lib/modules/$(uname -r)/source"
16051 sourcelink=$(readlink -f "$headersdir")
16052 elif test -e "/lib/modules/$(uname -r)/build"; then
16053 headersdir="/lib/modules/$(uname -r)/build"
16054 sourcelink=$(readlink -f "$headersdir")
16055 else
16056 sourcelink=$(ls -1d /usr/src/kernels/* \
16057 /usr/src/linux-* \
16058 2>/dev/null | grep -v obj | tail -1)
16059 fi
16060
16061 if test -n "$sourcelink" && test -e ${sourcelink}; then
16062 kernelsrc=`readlink -f ${sourcelink}`
16063 else
16064 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16065 $as_echo "Not found" >&6; }
16066 { { $as_echo "$as_me:$LINENO: error:
16067 *** Please make sure the kernel devel package for your distribution
16068 *** is installed then try again. If that fails you can specify the
16069 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16070 $as_echo "$as_me: error:
16071 *** Please make sure the kernel devel package for your distribution
16072 *** is installed then try again. If that fails you can specify the
16073 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16074 { (exit 1); exit 1; }; }
16075 fi
16076 else
16077 if test "$kernelsrc" = "NONE"; then
16078 kernsrcver=NONE
16079 fi
16080 fi
16081
16082 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16083 $as_echo "$kernelsrc" >&6; }
16084 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16085 $as_echo_n "checking kernel build directory... " >&6; }
16086 if test -z "$kernelbuild"; then
16087 if test -e "/lib/modules/$(uname -r)/build"; then
16088 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16089 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16090 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16091 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16092 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16093 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16094 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16095 else
16096 kernelbuild=${kernelsrc}
16097 fi
16098 fi
16099 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16100 $as_echo "$kernelbuild" >&6; }
16101
16102 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16103 $as_echo_n "checking kernel source version... " >&6; }
16104 utsrelease1=$kernelbuild/include/linux/version.h
16105 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16106 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16107 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16108 utsrelease=linux/version.h
16109 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16110 utsrelease=linux/utsrelease.h
16111 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16112 utsrelease=generated/utsrelease.h
16113 fi
16114
16115 if test "$utsrelease"; then
16116 kernsrcver=`(echo "#include <$utsrelease>";
16117 echo "kernsrcver=UTS_RELEASE") |
16118 cpp -I $kernelbuild/include |
16119 grep "^kernsrcver=" | cut -d \" -f 2`
16120
16121 if test -z "$kernsrcver"; then
16122 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16123 $as_echo "Not found" >&6; }
16124 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16125 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16126 { (exit 1); exit 1; }; }
16127 fi
16128 else
16129 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16130 $as_echo "Not found" >&6; }
16131 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16132 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16133 { (exit 1); exit 1; }; }
16134 fi
16135
16136 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16137 $as_echo "$kernsrcver" >&6; }
16138
16139 LINUX=${kernelsrc}
16140 LINUX_OBJ=${kernelbuild}
16141 LINUX_VERSION=${kernsrcver}
16142
16143
16144
16145
16146
16147
16148 modpost=$LINUX/scripts/Makefile.modpost
16149 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16150 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16151 if test -f "$modpost"; then
16152 if grep -q Modules.symvers $modpost; then
16153 LINUX_SYMBOLS=Modules.symvers
16154 else
16155 LINUX_SYMBOLS=Module.symvers
16156 fi
16157
16158 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16159 { { $as_echo "$as_me:$LINENO: error:
16160 *** Please make sure the kernel devel package for your distribution
16161 *** is installed. If your building with a custom kernel make sure the
16162 *** kernel is configured, built, and the '--with-linux=PATH' configure
16163 *** option refers to the location of the kernel source." >&5
16164 $as_echo "$as_me: error:
16165 *** Please make sure the kernel devel package for your distribution
16166 *** is installed. If your building with a custom kernel make sure the
16167 *** kernel is configured, built, and the '--with-linux=PATH' configure
16168 *** option refers to the location of the kernel source." >&2;}
16169 { (exit 1); exit 1; }; }
16170 fi
16171 else
16172 LINUX_SYMBOLS=NONE
16173 fi
16174 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16175 $as_echo "$LINUX_SYMBOLS" >&6; }
16176
16177
16178
16179
16180 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16181 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16182
16183
16184 cat confdefs.h - <<_ACEOF >conftest.c
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190
16191
16192 #include <linux/module.h>
16193
16194 int
16195 main (void)
16196 {
16197
16198 #ifndef CONFIG_PREEMPT
16199 #error CONFIG_PREEMPT not #defined
16200 #endif
16201
16202 ;
16203 return 0;
16204 }
16205
16206 _ACEOF
16207
16208
16209 rm -Rf build && mkdir -p build
16210 echo "obj-m := conftest.o" >build/Makefile
16211 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16214 ac_status=$?
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222
16223 { $as_echo "$as_me:$LINENO: result: yes" >&5
16224 $as_echo "yes" >&6; }
16225 { { $as_echo "$as_me:$LINENO: error:
16226 *** Kernel built with CONFIG_PREEMPT which is not supported.
16227 ** You must rebuild your kernel without this option." >&5
16228 $as_echo "$as_me: error:
16229 *** Kernel built with CONFIG_PREEMPT which is not supported.
16230 ** You must rebuild your kernel without this option." >&2;}
16231 { (exit 1); exit 1; }; }
16232
16233 else
16234 $as_echo "$as_me: failed program was:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16236
16237 { $as_echo "$as_me:$LINENO: result: no" >&5
16238 $as_echo "no" >&6; }
16239
16240
16241
16242
16243 fi
16244
16245 rm -Rf build
16246
16247
16248
16249
16250
16251 if test "${LINUX_OBJ}" != "${LINUX}"; then
16252 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16253 fi
16254
16255
16256 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16257
16258
16259
16260 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16261 $as_echo_n "checking whether debugging is enabled... " >&6; }
16262 # Check whether --enable-debug was given.
16263 if test "${enable_debug+set}" = set; then
16264 enableval=$enable_debug;
16265 else
16266 enable_debug=no
16267 fi
16268
16269
16270 if test "x$enable_debug" = xyes; then
16271
16272 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16273 DEBUG_CFLAGS="-DDEBUG -Werror"
16274
16275 else
16276
16277 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16278 DEBUG_CFLAGS="-DNDEBUG"
16279
16280 fi
16281
16282
16283
16284 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16285 $as_echo "$enable_debug" >&6; }
16286
16287
16288 # Check whether --enable-debug-kmem was given.
16289 if test "${enable_debug_kmem+set}" = set; then
16290 enableval=$enable_debug_kmem;
16291 else
16292 enable_debug_kmem=yes
16293 fi
16294
16295
16296 if test "x$enable_debug_kmem" = xyes; then
16297
16298 cat >>confdefs.h <<\_ACEOF
16299 #define DEBUG_KMEM 1
16300 _ACEOF
16301
16302 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16303 fi
16304
16305
16306 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16307 $as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16308 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16309 $as_echo "$enable_debug_kmem" >&6; }
16310
16311
16312 # Check whether --enable-debug-kmem-tracking was given.
16313 if test "${enable_debug_kmem_tracking+set}" = set; then
16314 enableval=$enable_debug_kmem_tracking;
16315 else
16316 enable_debug_kmem_tracking=no
16317 fi
16318
16319
16320 if test "x$enable_debug_kmem_tracking" = xyes; then
16321
16322 cat >>confdefs.h <<\_ACEOF
16323 #define DEBUG_KMEM_TRACKING 1
16324 _ACEOF
16325
16326 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16327 fi
16328
16329
16330 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16331 $as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16332 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16333 $as_echo "$enable_debug_kmem_tracking" >&6; }
16334
16335
16336 # Check whether --enable-atomic-spinlocks was given.
16337 if test "${enable_atomic_spinlocks+set}" = set; then
16338 enableval=$enable_atomic_spinlocks;
16339 else
16340 enable_atomic_spinlocks=check
16341 fi
16342
16343
16344
16345
16346 cat confdefs.h - <<_ACEOF >conftest.c
16347 /* confdefs.h. */
16348 _ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352
16353
16354 #include <asm/atomic.h>
16355
16356 int
16357 main (void)
16358 {
16359
16360 atomic64_t *ptr __attribute__ ((unused));
16361
16362 ;
16363 return 0;
16364 }
16365
16366 _ACEOF
16367
16368
16369 rm -Rf build && mkdir -p build
16370 echo "obj-m := conftest.o" >build/Makefile
16371 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382
16383 have_atomic64_t=yes
16384
16385 cat >>confdefs.h <<\_ACEOF
16386 #define HAVE_ATOMIC64_T 1
16387 _ACEOF
16388
16389
16390 else
16391 $as_echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 have_atomic64_t=no
16395
16396
16397
16398 fi
16399
16400 rm -Rf build
16401
16402
16403
16404 if test "x$enable_atomic_spinlocks" = xcheck; then
16405
16406 if test "x$have_atomic64_t" = xyes; then
16407
16408 enable_atomic_spinlocks=no
16409
16410 else
16411
16412 enable_atomic_spinlocks=yes
16413
16414 fi
16415
16416
16417 fi
16418
16419
16420 if test "x$enable_atomic_spinlocks" = xyes; then
16421
16422
16423 cat >>confdefs.h <<\_ACEOF
16424 #define ATOMIC_SPINLOCK 1
16425 _ACEOF
16426
16427
16428 else
16429
16430 if test "x$have_atomic64_t" = xno; then
16431
16432 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16434 { { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16435 See \`config.log' for more details." >&5
16436 $as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
16437 See \`config.log' for more details." >&2;}
16438 { (exit 1); exit 1; }; }; }
16439
16440 fi
16441
16442
16443 fi
16444
16445
16446 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16447 $as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16448 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16449 $as_echo "$enable_atomic_spinlocks" >&6; }
16450
16451 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16452 $as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16453 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16454 $as_echo "$have_atomic64_t" >&6; }
16455
16456 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16457 $as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
16458
16459
16460 cat confdefs.h - <<_ACEOF >conftest.c
16461 /* confdefs.h. */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h. */
16466
16467
16468 #include <asm/atomic.h>
16469 #include <asm/system.h>
16470
16471 int
16472 main (void)
16473 {
16474
16475 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
16476
16477 ;
16478 return 0;
16479 }
16480
16481 _ACEOF
16482
16483
16484 rm -Rf build && mkdir -p build
16485 echo "obj-m := conftest.o" >build/Makefile
16486 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16489 ac_status=$?
16490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497
16498 { $as_echo "$as_me:$LINENO: result: yes" >&5
16499 $as_echo "yes" >&6; }
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_ATOMIC64_CMPXCHG 1
16503 _ACEOF
16504
16505
16506 else
16507 $as_echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 { $as_echo "$as_me:$LINENO: result: no" >&5
16511 $as_echo "no" >&6; }
16512
16513
16514
16515 fi
16516
16517 rm -Rf build
16518
16519
16520
16521 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16522 $as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
16523
16524
16525 cat confdefs.h - <<_ACEOF >conftest.c
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531
16532
16533 #include <asm/atomic.h>
16534
16535 int
16536 main (void)
16537 {
16538
16539 atomic64_xchg((atomic64_t *)NULL, 0);
16540
16541 ;
16542 return 0;
16543 }
16544
16545 _ACEOF
16546
16547
16548 rm -Rf build && mkdir -p build
16549 echo "obj-m := conftest.o" >build/Makefile
16550 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16557 (eval $ac_try) 2>&5
16558 ac_status=$?
16559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561
16562 { $as_echo "$as_me:$LINENO: result: yes" >&5
16563 $as_echo "yes" >&6; }
16564
16565 cat >>confdefs.h <<\_ACEOF
16566 #define HAVE_ATOMIC64_XCHG 1
16567 _ACEOF
16568
16569
16570 else
16571 $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574 { $as_echo "$as_me:$LINENO: result: no" >&5
16575 $as_echo "no" >&6; }
16576
16577
16578
16579 fi
16580
16581 rm -Rf build
16582
16583
16584
16585 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16586 $as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
16587
16588
16589 cat confdefs.h - <<_ACEOF >conftest.c
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595
16596
16597 #include <linux/types.h>
16598
16599 int
16600 main (void)
16601 {
16602
16603 uintptr_t *ptr __attribute__ ((unused));
16604
16605 ;
16606 return 0;
16607 }
16608
16609 _ACEOF
16610
16611
16612 rm -Rf build && mkdir -p build
16613 echo "obj-m := conftest.o" >build/Makefile
16614 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16622 ac_status=$?
16623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625
16626 { $as_echo "$as_me:$LINENO: result: yes" >&5
16627 $as_echo "yes" >&6; }
16628
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_UINTPTR_T 1
16631 _ACEOF
16632
16633
16634 else
16635 $as_echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 { $as_echo "$as_me:$LINENO: result: no" >&5
16639 $as_echo "no" >&6; }
16640
16641
16642
16643 fi
16644
16645 rm -Rf build
16646
16647
16648
16649 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16650 $as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
16651
16652
16653 cat confdefs.h - <<_ACEOF >conftest.c
16654 /* confdefs.h. */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659
16660
16661 #include <linux/workqueue.h>
16662
16663 int
16664 main (void)
16665 {
16666
16667 struct work_struct work __attribute__ ((unused));
16668 INIT_WORK(&work, NULL, NULL);
16669
16670 ;
16671 return 0;
16672 }
16673
16674 _ACEOF
16675
16676
16677 rm -Rf build && mkdir -p build
16678 echo "obj-m := conftest.o" >build/Makefile
16679 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16686 (eval $ac_try) 2>&5
16687 ac_status=$?
16688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690
16691 { $as_echo "$as_me:$LINENO: result: yes" >&5
16692 $as_echo "yes" >&6; }
16693
16694 cat >>confdefs.h <<\_ACEOF
16695 #define HAVE_3ARGS_INIT_WORK 1
16696 _ACEOF
16697
16698
16699 else
16700 $as_echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 { $as_echo "$as_me:$LINENO: result: no" >&5
16704 $as_echo "no" >&6; }
16705
16706
16707
16708 fi
16709
16710 rm -Rf build
16711
16712
16713
16714 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16715 $as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
16716
16717
16718 cat confdefs.h - <<_ACEOF >conftest.c
16719 /* confdefs.h. */
16720 _ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724
16725
16726 #include <linux/sysctl.h>
16727
16728 int
16729 main (void)
16730 {
16731
16732 (void) register_sysctl_table(NULL, 0);
16733
16734 ;
16735 return 0;
16736 }
16737
16738 _ACEOF
16739
16740
16741 rm -Rf build && mkdir -p build
16742 echo "obj-m := conftest.o" >build/Makefile
16743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750 (eval $ac_try) 2>&5
16751 ac_status=$?
16752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; }; then
16754
16755 { $as_echo "$as_me:$LINENO: result: yes" >&5
16756 $as_echo "yes" >&6; }
16757
16758 cat >>confdefs.h <<\_ACEOF
16759 #define HAVE_2ARGS_REGISTER_SYSCTL 1
16760 _ACEOF
16761
16762
16763 else
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 { $as_echo "$as_me:$LINENO: result: no" >&5
16768 $as_echo "no" >&6; }
16769
16770
16771
16772 fi
16773
16774 rm -Rf build
16775
16776
16777
16778
16779 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16780 $as_echo_n "checking whether set_shrinker() available... " >&6; }
16781
16782
16783 cat confdefs.h - <<_ACEOF >conftest.c
16784 /* confdefs.h. */
16785 _ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16789
16790
16791 #include <linux/mm.h>
16792
16793 int
16794 main (void)
16795 {
16796
16797 return set_shrinker(DEFAULT_SEEKS, NULL);
16798
16799 ;
16800 return 0;
16801 }
16802
16803 _ACEOF
16804
16805
16806 rm -Rf build && mkdir -p build
16807 echo "obj-m := conftest.o" >build/Makefile
16808 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819
16820 { $as_echo "$as_me:$LINENO: result: yes" >&5
16821 $as_echo "yes" >&6; }
16822
16823 cat >>confdefs.h <<\_ACEOF
16824 #define HAVE_SET_SHRINKER 1
16825 _ACEOF
16826
16827
16828 else
16829 $as_echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832 { $as_echo "$as_me:$LINENO: result: no" >&5
16833 $as_echo "no" >&6; }
16834
16835
16836
16837 fi
16838
16839 rm -Rf build
16840
16841
16842
16843 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16844 $as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16845 tmp_flags="$EXTRA_KCFLAGS"
16846 EXTRA_KCFLAGS="-Werror"
16847
16848
16849 cat confdefs.h - <<_ACEOF >conftest.c
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855
16856
16857 #include <linux/mm.h>
16858
16859 int shrinker_cb(struct shrinker *, int, unsigned int);
16860
16861 int
16862 main (void)
16863 {
16864
16865 struct shrinker cache_shrinker = {
16866 .shrink = shrinker_cb,
16867 .seeks = DEFAULT_SEEKS,
16868 };
16869 register_shrinker(&cache_shrinker);
16870
16871 ;
16872 return 0;
16873 }
16874
16875 _ACEOF
16876
16877
16878 rm -Rf build && mkdir -p build
16879 echo "obj-m := conftest.o" >build/Makefile
16880 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891
16892 { $as_echo "$as_me:$LINENO: result: yes" >&5
16893 $as_echo "yes" >&6; }
16894
16895 cat >>confdefs.h <<\_ACEOF
16896 #define HAVE_3ARGS_SHRINKER_CALLBACK 1
16897 _ACEOF
16898
16899
16900 else
16901 $as_echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904 { $as_echo "$as_me:$LINENO: result: no" >&5
16905 $as_echo "no" >&6; }
16906
16907
16908
16909 fi
16910
16911 rm -Rf build
16912
16913
16914 EXTRA_KCFLAGS="$tmp_flags"
16915
16916 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16917 $as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
16918
16919
16920 cat confdefs.h - <<_ACEOF >conftest.c
16921 /* confdefs.h. */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926
16927
16928 #include <linux/namei.h>
16929
16930 int
16931 main (void)
16932 {
16933
16934 struct nameidata nd __attribute__ ((unused));
16935
16936 nd.path.mnt = NULL;
16937 nd.path.dentry = NULL;
16938
16939 ;
16940 return 0;
16941 }
16942
16943 _ACEOF
16944
16945
16946 rm -Rf build && mkdir -p build
16947 echo "obj-m := conftest.o" >build/Makefile
16948 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959
16960 { $as_echo "$as_me:$LINENO: result: yes" >&5
16961 $as_echo "yes" >&6; }
16962
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_PATH_IN_NAMEIDATA 1
16965 _ACEOF
16966
16967
16968 else
16969 $as_echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 { $as_echo "$as_me:$LINENO: result: no" >&5
16973 $as_echo "no" >&6; }
16974
16975
16976
16977 fi
16978
16979 rm -Rf build
16980
16981
16982
16983
16984 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
16985 $as_echo_n "checking whether symbol task_curr is exported... " >&6; }
16986 grep -q -E '[[:space:]]task_curr[[:space:]]' \
16987 $LINUX_OBJ/Module*.symvers 2>/dev/null
16988 rc=$?
16989 if test $rc -ne 0; then
16990 export=0
16991 for file in kernel/sched.c; do
16992 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
16993 "$LINUX_OBJ/$file" 2>/dev/null
16994 rc=$?
16995 if test $rc -eq 0; then
16996 export=1
16997 break;
16998 fi
16999 done
17000 if test $export -eq 0; then
17001 { $as_echo "$as_me:$LINENO: result: no" >&5
17002 $as_echo "no" >&6; }
17003
17004 else
17005 { $as_echo "$as_me:$LINENO: result: yes" >&5
17006 $as_echo "yes" >&6; }
17007
17008 cat >>confdefs.h <<\_ACEOF
17009 #define HAVE_TASK_CURR 1
17010 _ACEOF
17011
17012 fi
17013 else
17014 { $as_echo "$as_me:$LINENO: result: yes" >&5
17015 $as_echo "yes" >&6; }
17016
17017 cat >>confdefs.h <<\_ACEOF
17018 #define HAVE_TASK_CURR 1
17019 _ACEOF
17020
17021 fi
17022
17023
17024 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17025 $as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
17026
17027
17028 cat confdefs.h - <<_ACEOF >conftest.c
17029 /* confdefs.h. */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034
17035
17036 #include <linux/sysctl.h>
17037
17038 int
17039 main (void)
17040 {
17041
17042 #ifndef CTL_UNNUMBERED
17043 #error CTL_UNNUMBERED undefined
17044 #endif
17045
17046 ;
17047 return 0;
17048 }
17049
17050 _ACEOF
17051
17052
17053 rm -Rf build && mkdir -p build
17054 echo "obj-m := conftest.o" >build/Makefile
17055 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057 (eval $ac_try) 2>&5
17058 ac_status=$?
17059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066
17067 { $as_echo "$as_me:$LINENO: result: yes" >&5
17068 $as_echo "yes" >&6; }
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_CTL_UNNUMBERED 1
17072 _ACEOF
17073
17074
17075 else
17076 $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079 { $as_echo "$as_me:$LINENO: result: no" >&5
17080 $as_echo "no" >&6; }
17081
17082
17083
17084 fi
17085
17086 rm -Rf build
17087
17088
17089
17090
17091 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17092 $as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17093
17094
17095 cat confdefs.h - <<_ACEOF >conftest.c
17096 /* confdefs.h. */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17101
17102
17103 #include <linux/sysctl.h>
17104
17105 int
17106 main (void)
17107 {
17108
17109 struct ctl_table ctl __attribute__ ((unused));
17110 ctl.ctl_name = 0;
17111
17112 ;
17113 return 0;
17114 }
17115
17116 _ACEOF
17117
17118
17119 rm -Rf build && mkdir -p build
17120 echo "obj-m := conftest.o" >build/Makefile
17121 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132
17133 { $as_echo "$as_me:$LINENO: result: yes" >&5
17134 $as_echo "yes" >&6; }
17135
17136 cat >>confdefs.h <<\_ACEOF
17137 #define HAVE_CTL_NAME 1
17138 _ACEOF
17139
17140
17141 else
17142 $as_echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 { $as_echo "$as_me:$LINENO: result: no" >&5
17146 $as_echo "no" >&6; }
17147
17148
17149
17150 fi
17151
17152 rm -Rf build
17153
17154
17155
17156 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17157 $as_echo_n "checking whether fls64() is available... " >&6; }
17158
17159
17160 cat confdefs.h - <<_ACEOF >conftest.c
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166
17167
17168 #include <linux/bitops.h>
17169
17170 int
17171 main (void)
17172 {
17173
17174 return fls64(0);
17175
17176 ;
17177 return 0;
17178 }
17179
17180 _ACEOF
17181
17182
17183 rm -Rf build && mkdir -p build
17184 echo "obj-m := conftest.o" >build/Makefile
17185 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196
17197 { $as_echo "$as_me:$LINENO: result: yes" >&5
17198 $as_echo "yes" >&6; }
17199
17200 cat >>confdefs.h <<\_ACEOF
17201 #define HAVE_FLS64 1
17202 _ACEOF
17203
17204
17205 else
17206 $as_echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209 { $as_echo "$as_me:$LINENO: result: no" >&5
17210 $as_echo "no" >&6; }
17211
17212
17213
17214 fi
17215
17216 rm -Rf build
17217
17218
17219
17220
17221 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17222 $as_echo_n "checking whether symbol device_create is exported... " >&6; }
17223 grep -q -E '[[:space:]]device_create[[:space:]]' \
17224 $LINUX_OBJ/Module*.symvers 2>/dev/null
17225 rc=$?
17226 if test $rc -ne 0; then
17227 export=0
17228 for file in drivers/base/core.c; do
17229 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17230 "$LINUX_OBJ/$file" 2>/dev/null
17231 rc=$?
17232 if test $rc -eq 0; then
17233 export=1
17234 break;
17235 fi
17236 done
17237 if test $export -eq 0; then
17238 { $as_echo "$as_me:$LINENO: result: no" >&5
17239 $as_echo "no" >&6; }
17240
17241 else
17242 { $as_echo "$as_me:$LINENO: result: yes" >&5
17243 $as_echo "yes" >&6; }
17244
17245 cat >>confdefs.h <<\_ACEOF
17246 #define HAVE_DEVICE_CREATE 1
17247 _ACEOF
17248
17249 fi
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_DEVICE_CREATE 1
17256 _ACEOF
17257
17258 fi
17259
17260
17261
17262 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17263 $as_echo_n "checking whether device_create() wants 5 args... " >&6; }
17264 tmp_flags="$EXTRA_KCFLAGS"
17265 EXTRA_KCFLAGS="-Werror"
17266
17267
17268 cat confdefs.h - <<_ACEOF >conftest.c
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274
17275
17276 #include <linux/device.h>
17277
17278 int
17279 main (void)
17280 {
17281
17282 device_create(NULL, NULL, 0, NULL, "%d", 1);
17283
17284 ;
17285 return 0;
17286 }
17287
17288 _ACEOF
17289
17290
17291 rm -Rf build && mkdir -p build
17292 echo "obj-m := conftest.o" >build/Makefile
17293 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304
17305 { $as_echo "$as_me:$LINENO: result: yes" >&5
17306 $as_echo "yes" >&6; }
17307
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_5ARGS_DEVICE_CREATE 1
17310 _ACEOF
17311
17312
17313 else
17314 $as_echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 { $as_echo "$as_me:$LINENO: result: no" >&5
17318 $as_echo "no" >&6; }
17319
17320
17321
17322 fi
17323
17324 rm -Rf build
17325
17326
17327 EXTRA_KCFLAGS="$tmp_flags"
17328
17329
17330 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17331 $as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
17332 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17333 $LINUX_OBJ/Module*.symvers 2>/dev/null
17334 rc=$?
17335 if test $rc -ne 0; then
17336 export=0
17337 for file in drivers/base/class.c; do
17338 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17339 "$LINUX_OBJ/$file" 2>/dev/null
17340 rc=$?
17341 if test $rc -eq 0; then
17342 export=1
17343 break;
17344 fi
17345 done
17346 if test $export -eq 0; then
17347 { $as_echo "$as_me:$LINENO: result: no" >&5
17348 $as_echo "no" >&6; }
17349
17350 else
17351 { $as_echo "$as_me:$LINENO: result: yes" >&5
17352 $as_echo "yes" >&6; }
17353
17354 cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_CLASS_DEVICE_CREATE 1
17356 _ACEOF
17357
17358 fi
17359 else
17360 { $as_echo "$as_me:$LINENO: result: yes" >&5
17361 $as_echo "yes" >&6; }
17362
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_CLASS_DEVICE_CREATE 1
17365 _ACEOF
17366
17367 fi
17368
17369
17370
17371 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17372 $as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
17373 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17374 $LINUX_OBJ/Module*.symvers 2>/dev/null
17375 rc=$?
17376 if test $rc -ne 0; then
17377 export=0
17378 for file in kernel/time.c; do
17379 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17380 "$LINUX_OBJ/$file" 2>/dev/null
17381 rc=$?
17382 if test $rc -eq 0; then
17383 export=1
17384 break;
17385 fi
17386 done
17387 if test $export -eq 0; then
17388 { $as_echo "$as_me:$LINENO: result: no" >&5
17389 $as_echo "no" >&6; }
17390
17391 else
17392 { $as_echo "$as_me:$LINENO: result: yes" >&5
17393 $as_echo "yes" >&6; }
17394
17395 cat >>confdefs.h <<\_ACEOF
17396 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17397 _ACEOF
17398
17399 fi
17400 else
17401 { $as_echo "$as_me:$LINENO: result: yes" >&5
17402 $as_echo "yes" >&6; }
17403
17404 cat >>confdefs.h <<\_ACEOF
17405 #define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17406 _ACEOF
17407
17408 fi
17409
17410
17411
17412 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17413 $as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
17414
17415
17416 cat confdefs.h - <<_ACEOF >conftest.c
17417 /* confdefs.h. */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422
17423
17424 #include <linux/time.h>
17425 void set_normalized_timespec(struct timespec *ts,
17426 time_t sec, long nsec) { }
17427
17428 int
17429 main (void)
17430 {
17431
17432 ;
17433 return 0;
17434 }
17435
17436 _ACEOF
17437
17438
17439 rm -Rf build && mkdir -p build
17440 echo "obj-m := conftest.o" >build/Makefile
17441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448 (eval $ac_try) 2>&5
17449 ac_status=$?
17450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452
17453 { $as_echo "$as_me:$LINENO: result: no" >&5
17454 $as_echo "no" >&6; }
17455
17456 else
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17459
17460 { $as_echo "$as_me:$LINENO: result: yes" >&5
17461 $as_echo "yes" >&6; }
17462
17463 cat >>confdefs.h <<\_ACEOF
17464 #define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17465 _ACEOF
17466
17467
17468
17469
17470 fi
17471
17472 rm -Rf build
17473
17474
17475
17476
17477 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17478 $as_echo_n "checking whether timespec_sub() is available... " >&6; }
17479
17480
17481 cat confdefs.h - <<_ACEOF >conftest.c
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487
17488
17489 #include <linux/time.h>
17490
17491 int
17492 main (void)
17493 {
17494
17495 struct timespec a = { 0 };
17496 struct timespec b = { 0 };
17497 struct timespec c __attribute__ ((unused));
17498 c = timespec_sub(a, b);
17499
17500 ;
17501 return 0;
17502 }
17503
17504 _ACEOF
17505
17506
17507 rm -Rf build && mkdir -p build
17508 echo "obj-m := conftest.o" >build/Makefile
17509 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520
17521 { $as_echo "$as_me:$LINENO: result: yes" >&5
17522 $as_echo "yes" >&6; }
17523
17524 cat >>confdefs.h <<\_ACEOF
17525 #define HAVE_TIMESPEC_SUB 1
17526 _ACEOF
17527
17528
17529 else
17530 $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533 { $as_echo "$as_me:$LINENO: result: no" >&5
17534 $as_echo "no" >&6; }
17535
17536
17537
17538 fi
17539
17540 rm -Rf build
17541
17542
17543
17544
17545 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17546 $as_echo_n "checking whether init_utsname() is available... " >&6; }
17547
17548
17549 cat confdefs.h - <<_ACEOF >conftest.c
17550 /* confdefs.h. */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555
17556
17557 #include <linux/utsname.h>
17558
17559 int
17560 main (void)
17561 {
17562
17563 struct new_utsname *a __attribute__ ((unused));
17564 a = init_utsname();
17565
17566 ;
17567 return 0;
17568 }
17569
17570 _ACEOF
17571
17572
17573 rm -Rf build && mkdir -p build
17574 echo "obj-m := conftest.o" >build/Makefile
17575 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586
17587 { $as_echo "$as_me:$LINENO: result: yes" >&5
17588 $as_echo "yes" >&6; }
17589
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_INIT_UTSNAME 1
17592 _ACEOF
17593
17594
17595 else
17596 $as_echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599 { $as_echo "$as_me:$LINENO: result: no" >&5
17600 $as_echo "no" >&6; }
17601
17602
17603
17604 fi
17605
17606 rm -Rf build
17607
17608
17609
17610
17611 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17612 $as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
17613
17614
17615 cat confdefs.h - <<_ACEOF >conftest.c
17616 /* confdefs.h. */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621
17622
17623 #include <linux/fdtable.h>
17624
17625 int
17626 main (void)
17627 {
17628
17629 return 0;
17630
17631 ;
17632 return 0;
17633 }
17634
17635 _ACEOF
17636
17637
17638 rm -Rf build && mkdir -p build
17639 echo "obj-m := conftest.o" >build/Makefile
17640 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651
17652
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_FDTABLE_HEADER 1
17655 _ACEOF
17656
17657 { $as_echo "$as_me:$LINENO: result: yes" >&5
17658 $as_echo "yes" >&6; }
17659
17660
17661 else
17662 $as_echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 { $as_echo "$as_me:$LINENO: result: no" >&5
17666 $as_echo "no" >&6; }
17667
17668
17669
17670
17671 fi
17672
17673 rm -Rf build
17674
17675
17676
17677
17678
17679 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17680 $as_echo_n "checking whether files_fdtable() is available... " >&6; }
17681
17682
17683 cat confdefs.h - <<_ACEOF >conftest.c
17684 /* confdefs.h. */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689
17690
17691 #include <linux/sched.h>
17692 #include <linux/file.h>
17693 #ifdef HAVE_FDTABLE_HEADER
17694 #include <linux/fdtable.h>
17695 #endif
17696
17697 int
17698 main (void)
17699 {
17700
17701 struct files_struct *files = current->files;
17702 struct fdtable *fdt __attribute__ ((unused));
17703 fdt = files_fdtable(files);
17704
17705 ;
17706 return 0;
17707 }
17708
17709 _ACEOF
17710
17711
17712 rm -Rf build && mkdir -p build
17713 echo "obj-m := conftest.o" >build/Makefile
17714 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725
17726 { $as_echo "$as_me:$LINENO: result: yes" >&5
17727 $as_echo "yes" >&6; }
17728
17729 cat >>confdefs.h <<\_ACEOF
17730 #define HAVE_FILES_FDTABLE 1
17731 _ACEOF
17732
17733
17734 else
17735 $as_echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17737
17738 { $as_echo "$as_me:$LINENO: result: no" >&5
17739 $as_echo "no" >&6; }
17740
17741
17742
17743 fi
17744
17745 rm -Rf build
17746
17747
17748
17749
17750 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17751 $as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
17752
17753
17754 cat confdefs.h - <<_ACEOF >conftest.c
17755 /* confdefs.h. */
17756 _ACEOF
17757 cat confdefs.h >>conftest.$ac_ext
17758 cat >>conftest.$ac_ext <<_ACEOF
17759 /* end confdefs.h. */
17760
17761
17762 #include <linux/uaccess.h>
17763
17764 int
17765 main (void)
17766 {
17767
17768 return 0;
17769
17770 ;
17771 return 0;
17772 }
17773
17774 _ACEOF
17775
17776
17777 rm -Rf build && mkdir -p build
17778 echo "obj-m := conftest.o" >build/Makefile
17779 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790
17791
17792 cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_UACCESS_HEADER 1
17794 _ACEOF
17795
17796 { $as_echo "$as_me:$LINENO: result: yes" >&5
17797 $as_echo "yes" >&6; }
17798
17799
17800 else
17801 $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804 { $as_echo "$as_me:$LINENO: result: no" >&5
17805 $as_echo "no" >&6; }
17806
17807
17808
17809
17810 fi
17811
17812 rm -Rf build
17813
17814
17815
17816
17817
17818 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17819 $as_echo_n "checking whether kmalloc_node() is available... " >&6; }
17820
17821
17822 cat confdefs.h - <<_ACEOF >conftest.c
17823 /* confdefs.h. */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h. */
17828
17829
17830 #include <linux/slab.h>
17831
17832 int
17833 main (void)
17834 {
17835
17836 void *a __attribute__ ((unused));
17837 a = kmalloc_node(1, GFP_KERNEL, 0);
17838
17839 ;
17840 return 0;
17841 }
17842
17843 _ACEOF
17844
17845
17846 rm -Rf build && mkdir -p build
17847 echo "obj-m := conftest.o" >build/Makefile
17848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17850 (eval $ac_try) 2>&5
17851 ac_status=$?
17852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; }; then
17859
17860 { $as_echo "$as_me:$LINENO: result: yes" >&5
17861 $as_echo "yes" >&6; }
17862
17863 cat >>confdefs.h <<\_ACEOF
17864 #define HAVE_KMALLOC_NODE 1
17865 _ACEOF
17866
17867
17868 else
17869 $as_echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 { $as_echo "$as_me:$LINENO: result: no" >&5
17873 $as_echo "no" >&6; }
17874
17875
17876
17877 fi
17878
17879 rm -Rf build
17880
17881
17882
17883
17884 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17885 $as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17886 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17887 $LINUX_OBJ/Module*.symvers 2>/dev/null
17888 rc=$?
17889 if test $rc -ne 0; then
17890 export=0
17891 for file in ; do
17892 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17893 "$LINUX_OBJ/$file" 2>/dev/null
17894 rc=$?
17895 if test $rc -eq 0; then
17896 export=1
17897 break;
17898 fi
17899 done
17900 if test $export -eq 0; then
17901 { $as_echo "$as_me:$LINENO: result: no" >&5
17902 $as_echo "no" >&6; }
17903
17904 else
17905 { $as_echo "$as_me:$LINENO: result: yes" >&5
17906 $as_echo "yes" >&6; }
17907
17908 cat >>confdefs.h <<\_ACEOF
17909 #define HAVE_MONOTONIC_CLOCK 1
17910 _ACEOF
17911
17912 fi
17913 else
17914 { $as_echo "$as_me:$LINENO: result: yes" >&5
17915 $as_echo "yes" >&6; }
17916
17917 cat >>confdefs.h <<\_ACEOF
17918 #define HAVE_MONOTONIC_CLOCK 1
17919 _ACEOF
17920
17921 fi
17922
17923
17924
17925 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
17926 $as_echo_n "checking whether struct inode has i_mutex... " >&6; }
17927
17928
17929 cat confdefs.h - <<_ACEOF >conftest.c
17930 /* confdefs.h. */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935
17936
17937 #include <linux/fs.h>
17938 #include <linux/mutex.h>
17939
17940 int
17941 main (void)
17942 {
17943
17944 struct inode i;
17945 mutex_init(&i.i_mutex);
17946
17947 ;
17948 return 0;
17949 }
17950
17951 _ACEOF
17952
17953
17954 rm -Rf build && mkdir -p build
17955 echo "obj-m := conftest.o" >build/Makefile
17956 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17959 ac_status=$?
17960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967
17968 { $as_echo "$as_me:$LINENO: result: yes" >&5
17969 $as_echo "yes" >&6; }
17970
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_INODE_I_MUTEX 1
17973 _ACEOF
17974
17975
17976 else
17977 $as_echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 { $as_echo "$as_me:$LINENO: result: no" >&5
17981 $as_echo "no" >&6; }
17982
17983
17984
17985 fi
17986
17987 rm -Rf build
17988
17989
17990
17991
17992 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
17993 $as_echo_n "checking whether struct mutex has owner... " >&6; }
17994
17995
17996 cat confdefs.h - <<_ACEOF >conftest.c
17997 /* confdefs.h. */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002
18003
18004 #include <linux/mutex.h>
18005
18006 int
18007 main (void)
18008 {
18009
18010 struct mutex mtx __attribute__ ((unused));
18011 mtx.owner = NULL;
18012
18013 ;
18014 return 0;
18015 }
18016
18017 _ACEOF
18018
18019
18020 rm -Rf build && mkdir -p build
18021 echo "obj-m := conftest.o" >build/Makefile
18022 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18033
18034 { $as_echo "$as_me:$LINENO: result: yes" >&5
18035 $as_echo "yes" >&6; }
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_MUTEX_OWNER 1
18039 _ACEOF
18040
18041
18042 else
18043 $as_echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 { $as_echo "$as_me:$LINENO: result: no" >&5
18047 $as_echo "no" >&6; }
18048
18049
18050
18051 fi
18052
18053 rm -Rf build
18054
18055
18056
18057
18058 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18059 $as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18060 tmp_flags="$EXTRA_KCFLAGS"
18061 EXTRA_KCFLAGS="-Werror"
18062
18063
18064 cat confdefs.h - <<_ACEOF >conftest.c
18065 /* confdefs.h. */
18066 _ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070
18071
18072 #include <linux/mutex.h>
18073
18074 int
18075 main (void)
18076 {
18077
18078 struct mutex mtx __attribute__ ((unused));
18079 mtx.owner = current;
18080
18081 ;
18082 return 0;
18083 }
18084
18085 _ACEOF
18086
18087
18088 rm -Rf build && mkdir -p build
18089 echo "obj-m := conftest.o" >build/Makefile
18090 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101
18102 { $as_echo "$as_me:$LINENO: result: yes" >&5
18103 $as_echo "yes" >&6; }
18104
18105 cat >>confdefs.h <<\_ACEOF
18106 #define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18107 _ACEOF
18108
18109
18110 else
18111 $as_echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114 { $as_echo "$as_me:$LINENO: result: no" >&5
18115 $as_echo "no" >&6; }
18116
18117
18118
18119 fi
18120
18121 rm -Rf build
18122
18123
18124 EXTRA_KCFLAGS="$tmp_flags"
18125
18126
18127 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18128 $as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18129
18130
18131 cat confdefs.h - <<_ACEOF >conftest.c
18132 /* confdefs.h. */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18137
18138
18139 #include <linux/mutex.h>
18140
18141 int
18142 main (void)
18143 {
18144
18145 struct mutex mutex;
18146 mutex_init(&mutex);
18147 mutex_lock_nested(&mutex, 0);
18148
18149 ;
18150 return 0;
18151 }
18152
18153 _ACEOF
18154
18155
18156 rm -Rf build && mkdir -p build
18157 echo "obj-m := conftest.o" >build/Makefile
18158 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; }; then
18169
18170 { $as_echo "$as_me:$LINENO: result: yes" >&5
18171 $as_echo "yes" >&6; }
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define HAVE_MUTEX_LOCK_NESTED 1
18175 _ACEOF
18176
18177
18178 else
18179 $as_echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182 { $as_echo "$as_me:$LINENO: result: no" >&5
18183 $as_echo "no" >&6; }
18184
18185
18186
18187 fi
18188
18189 rm -Rf build
18190
18191
18192
18193
18194 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18195 $as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
18196
18197
18198 cat confdefs.h - <<_ACEOF >conftest.c
18199 /* confdefs.h. */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h. */
18204
18205
18206 #include <linux/smp.h>
18207
18208 int
18209 main (void)
18210 {
18211
18212 on_each_cpu(NULL, NULL, 0);
18213
18214 ;
18215 return 0;
18216 }
18217
18218 _ACEOF
18219
18220
18221 rm -Rf build && mkdir -p build
18222 echo "obj-m := conftest.o" >build/Makefile
18223 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18230 (eval $ac_try) 2>&5
18231 ac_status=$?
18232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); }; }; then
18234
18235 { $as_echo "$as_me:$LINENO: result: yes" >&5
18236 $as_echo "yes" >&6; }
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define HAVE_3ARGS_ON_EACH_CPU 1
18240 _ACEOF
18241
18242
18243 else
18244 $as_echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.$ac_ext >&5
18246
18247 { $as_echo "$as_me:$LINENO: result: no" >&5
18248 $as_echo "no" >&6; }
18249
18250
18251
18252 fi
18253
18254 rm -Rf build
18255
18256
18257
18258
18259 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18260 $as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18261 grep -q -E '[[:space:]]kallsyms_lookup_name[[: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.*(kallsyms_lookup_name)" \
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_KALLSYMS_LOOKUP_NAME 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_KALLSYMS_LOOKUP_NAME 1
18294 _ACEOF
18295
18296 fi
18297
18298
18299
18300 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18301 $as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18302 grep -q -E '[[:space:]]get_vmalloc_info[[: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.*(get_vmalloc_info)" \
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_GET_VMALLOC_INFO 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_GET_VMALLOC_INFO 1
18335 _ACEOF
18336
18337 fi
18338
18339
18340
18341 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18342 $as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18343 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18344 rc=$?
18345 if test $rc -eq 0; then
18346 { $as_echo "$as_me:$LINENO: result: yes" >&5
18347 $as_echo "yes" >&6; }
18348
18349 cat >>confdefs.h <<\_ACEOF
18350 #define HAVE_PGDAT_HELPERS 1
18351 _ACEOF
18352
18353 else
18354 { $as_echo "$as_me:$LINENO: result: no" >&5
18355 $as_echo "no" >&6; }
18356 fi
18357
18358
18359 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18360 $as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18361 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18362 $LINUX_OBJ/Module*.symvers 2>/dev/null
18363 rc=$?
18364 if test $rc -ne 0; then
18365 export=0
18366 for file in ; do
18367 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18368 "$LINUX_OBJ/$file" 2>/dev/null
18369 rc=$?
18370 if test $rc -eq 0; then
18371 export=1
18372 break;
18373 fi
18374 done
18375 if test $export -eq 0; then
18376 { $as_echo "$as_me:$LINENO: result: no" >&5
18377 $as_echo "no" >&6; }
18378
18379 else
18380 { $as_echo "$as_me:$LINENO: result: yes" >&5
18381 $as_echo "yes" >&6; }
18382
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_FIRST_ONLINE_PGDAT 1
18385 _ACEOF
18386
18387 fi
18388 else
18389 { $as_echo "$as_me:$LINENO: result: yes" >&5
18390 $as_echo "yes" >&6; }
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE_FIRST_ONLINE_PGDAT 1
18394 _ACEOF
18395
18396 fi
18397
18398
18399
18400 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18401 $as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18402 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18403 $LINUX_OBJ/Module*.symvers 2>/dev/null
18404 rc=$?
18405 if test $rc -ne 0; then
18406 export=0
18407 for file in ; do
18408 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18409 "$LINUX_OBJ/$file" 2>/dev/null
18410 rc=$?
18411 if test $rc -eq 0; then
18412 export=1
18413 break;
18414 fi
18415 done
18416 if test $export -eq 0; then
18417 { $as_echo "$as_me:$LINENO: result: no" >&5
18418 $as_echo "no" >&6; }
18419
18420 else
18421 { $as_echo "$as_me:$LINENO: result: yes" >&5
18422 $as_echo "yes" >&6; }
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE_NEXT_ONLINE_PGDAT 1
18426 _ACEOF
18427
18428 fi
18429 else
18430 { $as_echo "$as_me:$LINENO: result: yes" >&5
18431 $as_echo "yes" >&6; }
18432
18433 cat >>confdefs.h <<\_ACEOF
18434 #define HAVE_NEXT_ONLINE_PGDAT 1
18435 _ACEOF
18436
18437 fi
18438
18439
18440
18441 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18442 $as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18443 grep -q -E '[[:space:]]next_zone[[:space:]]' \
18444 $LINUX_OBJ/Module*.symvers 2>/dev/null
18445 rc=$?
18446 if test $rc -ne 0; then
18447 export=0
18448 for file in ; do
18449 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
18450 "$LINUX_OBJ/$file" 2>/dev/null
18451 rc=$?
18452 if test $rc -eq 0; then
18453 export=1
18454 break;
18455 fi
18456 done
18457 if test $export -eq 0; then
18458 { $as_echo "$as_me:$LINENO: result: no" >&5
18459 $as_echo "no" >&6; }
18460
18461 else
18462 { $as_echo "$as_me:$LINENO: result: yes" >&5
18463 $as_echo "yes" >&6; }
18464
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_NEXT_ZONE 1
18467 _ACEOF
18468
18469 fi
18470 else
18471 { $as_echo "$as_me:$LINENO: result: yes" >&5
18472 $as_echo "yes" >&6; }
18473
18474 cat >>confdefs.h <<\_ACEOF
18475 #define HAVE_NEXT_ZONE 1
18476 _ACEOF
18477
18478 fi
18479
18480
18481
18482 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18483 $as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18484 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
18485 $LINUX_OBJ/Module*.symvers 2>/dev/null
18486 rc=$?
18487 if test $rc -ne 0; then
18488 export=0
18489 for file in ; do
18490 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
18491 "$LINUX_OBJ/$file" 2>/dev/null
18492 rc=$?
18493 if test $rc -eq 0; then
18494 export=1
18495 break;
18496 fi
18497 done
18498 if test $export -eq 0; then
18499 { $as_echo "$as_me:$LINENO: result: no" >&5
18500 $as_echo "no" >&6; }
18501
18502 else
18503 { $as_echo "$as_me:$LINENO: result: yes" >&5
18504 $as_echo "yes" >&6; }
18505
18506 cat >>confdefs.h <<\_ACEOF
18507 #define HAVE_PGDAT_LIST 1
18508 _ACEOF
18509
18510 fi
18511 else
18512 { $as_echo "$as_me:$LINENO: result: yes" >&5
18513 $as_echo "yes" >&6; }
18514
18515 cat >>confdefs.h <<\_ACEOF
18516 #define HAVE_PGDAT_LIST 1
18517 _ACEOF
18518
18519 fi
18520
18521
18522
18523 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18524 $as_echo_n "checking whether global_page_state() is available... " >&6; }
18525
18526
18527 cat confdefs.h - <<_ACEOF >conftest.c
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533
18534
18535 #include <linux/mm.h>
18536
18537 int
18538 main (void)
18539 {
18540
18541 unsigned long state __attribute__ ((unused));
18542 state = global_page_state(0);
18543
18544 ;
18545 return 0;
18546 }
18547
18548 _ACEOF
18549
18550
18551 rm -Rf build && mkdir -p build
18552 echo "obj-m := conftest.o" >build/Makefile
18553 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564
18565 { $as_echo "$as_me:$LINENO: result: yes" >&5
18566 $as_echo "yes" >&6; }
18567
18568 cat >>confdefs.h <<\_ACEOF
18569 #define HAVE_GLOBAL_PAGE_STATE 1
18570 _ACEOF
18571
18572
18573 else
18574 $as_echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 { $as_echo "$as_me:$LINENO: result: no" >&5
18578 $as_echo "no" >&6; }
18579
18580
18581
18582 fi
18583
18584 rm -Rf build
18585
18586
18587
18588
18589 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18590 $as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
18591
18592
18593 cat confdefs.h - <<_ACEOF >conftest.c
18594 /* confdefs.h. */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599
18600
18601 #include <linux/mm.h>
18602
18603 int
18604 main (void)
18605 {
18606
18607 enum zone_stat_item zsi __attribute__ ((unused));
18608 zsi = NR_FREE_PAGES;
18609
18610 ;
18611 return 0;
18612 }
18613
18614 _ACEOF
18615
18616
18617 rm -Rf build && mkdir -p build
18618 echo "obj-m := conftest.o" >build/Makefile
18619 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18622 ac_status=$?
18623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630
18631 { $as_echo "$as_me:$LINENO: result: yes" >&5
18632 $as_echo "yes" >&6; }
18633
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
18636 _ACEOF
18637
18638
18639 else
18640 $as_echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 { $as_echo "$as_me:$LINENO: result: no" >&5
18644 $as_echo "no" >&6; }
18645
18646
18647
18648 fi
18649
18650 rm -Rf build
18651
18652
18653
18654
18655 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18656 $as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
18657
18658
18659 cat confdefs.h - <<_ACEOF >conftest.c
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665
18666
18667 #include <linux/mm.h>
18668
18669 int
18670 main (void)
18671 {
18672
18673 enum zone_stat_item zsi __attribute__ ((unused));
18674 zsi = NR_INACTIVE;
18675
18676 ;
18677 return 0;
18678 }
18679
18680 _ACEOF
18681
18682
18683 rm -Rf build && mkdir -p build
18684 echo "obj-m := conftest.o" >build/Makefile
18685 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18688 ac_status=$?
18689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692 (eval $ac_try) 2>&5
18693 ac_status=$?
18694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); }; }; then
18696
18697 { $as_echo "$as_me:$LINENO: result: yes" >&5
18698 $as_echo "yes" >&6; }
18699
18700 cat >>confdefs.h <<\_ACEOF
18701 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
18702 _ACEOF
18703
18704
18705 else
18706 $as_echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 { $as_echo "$as_me:$LINENO: result: no" >&5
18710 $as_echo "no" >&6; }
18711
18712
18713
18714 fi
18715
18716 rm -Rf build
18717
18718
18719
18720 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18721 $as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18722
18723
18724 cat confdefs.h - <<_ACEOF >conftest.c
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730
18731
18732 #include <linux/mm.h>
18733
18734 int
18735 main (void)
18736 {
18737
18738 enum zone_stat_item zsi __attribute__ ((unused));
18739 zsi = NR_INACTIVE_ANON;
18740
18741 ;
18742 return 0;
18743 }
18744
18745 _ACEOF
18746
18747
18748 rm -Rf build && mkdir -p build
18749 echo "obj-m := conftest.o" >build/Makefile
18750 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761
18762 { $as_echo "$as_me:$LINENO: result: yes" >&5
18763 $as_echo "yes" >&6; }
18764
18765 cat >>confdefs.h <<\_ACEOF
18766 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
18767 _ACEOF
18768
18769
18770 else
18771 $as_echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18773
18774 { $as_echo "$as_me:$LINENO: result: no" >&5
18775 $as_echo "no" >&6; }
18776
18777
18778
18779 fi
18780
18781 rm -Rf build
18782
18783
18784
18785 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18786 $as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18787
18788
18789 cat confdefs.h - <<_ACEOF >conftest.c
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795
18796
18797 #include <linux/mm.h>
18798
18799 int
18800 main (void)
18801 {
18802
18803 enum zone_stat_item zsi __attribute__ ((unused));
18804 zsi = NR_INACTIVE_FILE;
18805
18806 ;
18807 return 0;
18808 }
18809
18810 _ACEOF
18811
18812
18813 rm -Rf build && mkdir -p build
18814 echo "obj-m := conftest.o" >build/Makefile
18815 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18818 ac_status=$?
18819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; }; then
18826
18827 { $as_echo "$as_me:$LINENO: result: yes" >&5
18828 $as_echo "yes" >&6; }
18829
18830 cat >>confdefs.h <<\_ACEOF
18831 #define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
18832 _ACEOF
18833
18834
18835 else
18836 $as_echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18838
18839 { $as_echo "$as_me:$LINENO: result: no" >&5
18840 $as_echo "no" >&6; }
18841
18842
18843
18844 fi
18845
18846 rm -Rf build
18847
18848
18849
18850
18851 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18852 $as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
18853
18854
18855 cat confdefs.h - <<_ACEOF >conftest.c
18856 /* confdefs.h. */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861
18862
18863 #include <linux/mm.h>
18864
18865 int
18866 main (void)
18867 {
18868
18869 enum zone_stat_item zsi __attribute__ ((unused));
18870 zsi = NR_ACTIVE;
18871
18872 ;
18873 return 0;
18874 }
18875
18876 _ACEOF
18877
18878
18879 rm -Rf build && mkdir -p build
18880 echo "obj-m := conftest.o" >build/Makefile
18881 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18884 ac_status=$?
18885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892
18893 { $as_echo "$as_me:$LINENO: result: yes" >&5
18894 $as_echo "yes" >&6; }
18895
18896 cat >>confdefs.h <<\_ACEOF
18897 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
18898 _ACEOF
18899
18900
18901 else
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 { $as_echo "$as_me:$LINENO: result: no" >&5
18906 $as_echo "no" >&6; }
18907
18908
18909
18910 fi
18911
18912 rm -Rf build
18913
18914
18915
18916 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18917 $as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
18918
18919
18920 cat confdefs.h - <<_ACEOF >conftest.c
18921 /* confdefs.h. */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h. */
18926
18927
18928 #include <linux/mm.h>
18929
18930 int
18931 main (void)
18932 {
18933
18934 enum zone_stat_item zsi __attribute__ ((unused));
18935 zsi = NR_ACTIVE_ANON;
18936
18937 ;
18938 return 0;
18939 }
18940
18941 _ACEOF
18942
18943
18944 rm -Rf build && mkdir -p build
18945 echo "obj-m := conftest.o" >build/Makefile
18946 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957
18958 { $as_echo "$as_me:$LINENO: result: yes" >&5
18959 $as_echo "yes" >&6; }
18960
18961 cat >>confdefs.h <<\_ACEOF
18962 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
18963 _ACEOF
18964
18965
18966 else
18967 $as_echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 { $as_echo "$as_me:$LINENO: result: no" >&5
18971 $as_echo "no" >&6; }
18972
18973
18974
18975 fi
18976
18977 rm -Rf build
18978
18979
18980
18981 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
18982 $as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
18983
18984
18985 cat confdefs.h - <<_ACEOF >conftest.c
18986 /* confdefs.h. */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991
18992
18993 #include <linux/mm.h>
18994
18995 int
18996 main (void)
18997 {
18998
18999 enum zone_stat_item zsi __attribute__ ((unused));
19000 zsi = NR_ACTIVE_FILE;
19001
19002 ;
19003 return 0;
19004 }
19005
19006 _ACEOF
19007
19008
19009 rm -Rf build && mkdir -p build
19010 echo "obj-m := conftest.o" >build/Makefile
19011 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19019 ac_status=$?
19020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); }; }; then
19022
19023 { $as_echo "$as_me:$LINENO: result: yes" >&5
19024 $as_echo "yes" >&6; }
19025
19026 cat >>confdefs.h <<\_ACEOF
19027 #define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
19028 _ACEOF
19029
19030
19031 else
19032 $as_echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035 { $as_echo "$as_me:$LINENO: result: no" >&5
19036 $as_echo "no" >&6; }
19037
19038
19039
19040 fi
19041
19042 rm -Rf build
19043
19044
19045
19046
19047 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19048 $as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
19049
19050
19051 cat confdefs.h - <<_ACEOF >conftest.c
19052 /* confdefs.h. */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057
19058
19059
19060 int
19061 main (void)
19062 {
19063
19064 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19065 #error "global_page_state needs NR_FREE_PAGES"
19066 #endif
19067
19068 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19069 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19070 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19071 #error "global_page_state needs NR_ACTIVE*"
19072 #endif
19073
19074 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19075 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19076 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19077 #error "global_page_state needs NR_INACTIVE*"
19078 #endif
19079
19080 ;
19081 return 0;
19082 }
19083
19084 _ACEOF
19085
19086
19087 rm -Rf build && mkdir -p build
19088 echo "obj-m := conftest.o" >build/Makefile
19089 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100
19101 { $as_echo "$as_me:$LINENO: result: no" >&5
19102 $as_echo "no" >&6; }
19103
19104 else
19105 $as_echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108 { $as_echo "$as_me:$LINENO: result: yes" >&5
19109 $as_echo "yes" >&6; }
19110
19111 cat >>confdefs.h <<\_ACEOF
19112 #define NEED_GET_ZONE_COUNTS 1
19113 _ACEOF
19114
19115
19116 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19117 $as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19118 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19119 $LINUX_OBJ/Module*.symvers 2>/dev/null
19120 rc=$?
19121 if test $rc -ne 0; then
19122 export=0
19123 for file in ; do
19124 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19125 "$LINUX_OBJ/$file" 2>/dev/null
19126 rc=$?
19127 if test $rc -eq 0; then
19128 export=1
19129 break;
19130 fi
19131 done
19132 if test $export -eq 0; then
19133 { $as_echo "$as_me:$LINENO: result: no" >&5
19134 $as_echo "no" >&6; }
19135
19136 else
19137 { $as_echo "$as_me:$LINENO: result: yes" >&5
19138 $as_echo "yes" >&6; }
19139
19140 cat >>confdefs.h <<\_ACEOF
19141 #define HAVE_GET_ZONE_COUNTS 1
19142 _ACEOF
19143
19144 fi
19145 else
19146 { $as_echo "$as_me:$LINENO: result: yes" >&5
19147 $as_echo "yes" >&6; }
19148
19149 cat >>confdefs.h <<\_ACEOF
19150 #define HAVE_GET_ZONE_COUNTS 1
19151 _ACEOF
19152
19153 fi
19154
19155
19156
19157
19158 fi
19159
19160 rm -Rf build
19161
19162
19163
19164
19165 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19166 $as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19167 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19168 $LINUX_OBJ/Module*.symvers 2>/dev/null
19169 rc=$?
19170 if test $rc -ne 0; then
19171 export=0
19172 for file in ; do
19173 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19174 "$LINUX_OBJ/$file" 2>/dev/null
19175 rc=$?
19176 if test $rc -eq 0; then
19177 export=1
19178 break;
19179 fi
19180 done
19181 if test $export -eq 0; then
19182 { $as_echo "$as_me:$LINENO: result: no" >&5
19183 $as_echo "no" >&6; }
19184
19185 else
19186 { $as_echo "$as_me:$LINENO: result: yes" >&5
19187 $as_echo "yes" >&6; }
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define HAVE_USER_PATH_DIR 1
19191 _ACEOF
19192
19193 fi
19194 else
19195 { $as_echo "$as_me:$LINENO: result: yes" >&5
19196 $as_echo "yes" >&6; }
19197
19198 cat >>confdefs.h <<\_ACEOF
19199 #define HAVE_USER_PATH_DIR 1
19200 _ACEOF
19201
19202 fi
19203
19204
19205
19206 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19207 $as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19208 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19209 $LINUX_OBJ/Module*.symvers 2>/dev/null
19210 rc=$?
19211 if test $rc -ne 0; then
19212 export=0
19213 for file in ; do
19214 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19215 "$LINUX_OBJ/$file" 2>/dev/null
19216 rc=$?
19217 if test $rc -eq 0; then
19218 export=1
19219 break;
19220 fi
19221 done
19222 if test $export -eq 0; then
19223 { $as_echo "$as_me:$LINENO: result: no" >&5
19224 $as_echo "no" >&6; }
19225
19226 else
19227 { $as_echo "$as_me:$LINENO: result: yes" >&5
19228 $as_echo "yes" >&6; }
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_SET_FS_PWD 1
19232 _ACEOF
19233
19234 fi
19235 else
19236 { $as_echo "$as_me:$LINENO: result: yes" >&5
19237 $as_echo "yes" >&6; }
19238
19239 cat >>confdefs.h <<\_ACEOF
19240 #define HAVE_SET_FS_PWD 1
19241 _ACEOF
19242
19243 fi
19244
19245
19246 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19247 $as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
19248
19249
19250 cat confdefs.h - <<_ACEOF >conftest.c
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256
19257
19258 #include <linux/sched.h>
19259 #include <linux/fs_struct.h>
19260
19261 int
19262 main (void)
19263 {
19264
19265 set_fs_pwd(NULL, NULL);
19266
19267 ;
19268 return 0;
19269 }
19270
19271 _ACEOF
19272
19273
19274 rm -Rf build && mkdir -p build
19275 echo "obj-m := conftest.o" >build/Makefile
19276 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287
19288 { $as_echo "$as_me:$LINENO: result: yes" >&5
19289 $as_echo "yes" >&6; }
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_2ARGS_SET_FS_PWD 1
19293 _ACEOF
19294
19295
19296 else
19297 $as_echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19299
19300 { $as_echo "$as_me:$LINENO: result: no" >&5
19301 $as_echo "no" >&6; }
19302
19303
19304
19305 fi
19306
19307 rm -Rf build
19308
19309
19310
19311 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19312 $as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
19313
19314
19315 cat confdefs.h - <<_ACEOF >conftest.c
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321
19322
19323 #include <linux/fs.h>
19324
19325 int
19326 main (void)
19327 {
19328
19329 vfs_unlink(NULL, NULL);
19330
19331 ;
19332 return 0;
19333 }
19334
19335 _ACEOF
19336
19337
19338 rm -Rf build && mkdir -p build
19339 echo "obj-m := conftest.o" >build/Makefile
19340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351
19352 { $as_echo "$as_me:$LINENO: result: yes" >&5
19353 $as_echo "yes" >&6; }
19354
19355 cat >>confdefs.h <<\_ACEOF
19356 #define HAVE_2ARGS_VFS_UNLINK 1
19357 _ACEOF
19358
19359
19360 else
19361 $as_echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364 { $as_echo "$as_me:$LINENO: result: no" >&5
19365 $as_echo "no" >&6; }
19366
19367
19368
19369 fi
19370
19371 rm -Rf build
19372
19373
19374
19375 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19376 $as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
19377
19378
19379 cat confdefs.h - <<_ACEOF >conftest.c
19380 /* confdefs.h. */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385
19386
19387 #include <linux/fs.h>
19388
19389 int
19390 main (void)
19391 {
19392
19393 vfs_rename(NULL, NULL, NULL, NULL);
19394
19395 ;
19396 return 0;
19397 }
19398
19399 _ACEOF
19400
19401
19402 rm -Rf build && mkdir -p build
19403 echo "obj-m := conftest.o" >build/Makefile
19404 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406 (eval $ac_try) 2>&5
19407 ac_status=$?
19408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415
19416 { $as_echo "$as_me:$LINENO: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418
19419 cat >>confdefs.h <<\_ACEOF
19420 #define HAVE_4ARGS_VFS_RENAME 1
19421 _ACEOF
19422
19423
19424 else
19425 $as_echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 { $as_echo "$as_me:$LINENO: result: no" >&5
19429 $as_echo "no" >&6; }
19430
19431
19432
19433 fi
19434
19435 rm -Rf build
19436
19437
19438
19439
19440 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19441 $as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19442 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19443 $LINUX_OBJ/Module*.symvers 2>/dev/null
19444 rc=$?
19445 if test $rc -ne 0; then
19446 export=0
19447 for file in fs/sync.c; do
19448 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19449 "$LINUX_OBJ/$file" 2>/dev/null
19450 rc=$?
19451 if test $rc -eq 0; then
19452 export=1
19453 break;
19454 fi
19455 done
19456 if test $export -eq 0; then
19457 { $as_echo "$as_me:$LINENO: result: no" >&5
19458 $as_echo "no" >&6; }
19459
19460 else
19461 { $as_echo "$as_me:$LINENO: result: yes" >&5
19462 $as_echo "yes" >&6; }
19463
19464 cat >>confdefs.h <<\_ACEOF
19465 #define HAVE_VFS_FSYNC 1
19466 _ACEOF
19467
19468 fi
19469 else
19470 { $as_echo "$as_me:$LINENO: result: yes" >&5
19471 $as_echo "yes" >&6; }
19472
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_VFS_FSYNC 1
19475 _ACEOF
19476
19477 fi
19478
19479
19480
19481 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19482 $as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19483
19484
19485 cat confdefs.h - <<_ACEOF >conftest.c
19486 /* confdefs.h. */
19487 _ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491
19492
19493 #include <linux/fs.h>
19494
19495 int
19496 main (void)
19497 {
19498
19499 vfs_fsync(NULL, 0);
19500
19501 ;
19502 return 0;
19503 }
19504
19505 _ACEOF
19506
19507
19508 rm -Rf build && mkdir -p build
19509 echo "obj-m := conftest.o" >build/Makefile
19510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19513 ac_status=$?
19514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19518 ac_status=$?
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521
19522 { $as_echo "$as_me:$LINENO: result: yes" >&5
19523 $as_echo "yes" >&6; }
19524
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_2ARGS_VFS_FSYNC 1
19527 _ACEOF
19528
19529
19530 else
19531 $as_echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 { $as_echo "$as_me:$LINENO: result: no" >&5
19535 $as_echo "no" >&6; }
19536
19537
19538
19539 fi
19540
19541 rm -Rf build
19542
19543
19544
19545
19546 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19547 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
19548 tmp_flags="$EXTRA_KCFLAGS"
19549 EXTRA_KCFLAGS="-Werror"
19550
19551
19552 cat confdefs.h - <<_ACEOF >conftest.c
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558
19559
19560 #include <linux/sched.h>
19561 #include <linux/fs_struct.h>
19562
19563 int
19564 main (void)
19565 {
19566
19567 struct fs_struct fs;
19568 spin_lock_init(&fs.lock);
19569
19570 ;
19571 return 0;
19572 }
19573
19574 _ACEOF
19575
19576
19577 rm -Rf build && mkdir -p build
19578 echo "obj-m := conftest.o" >build/Makefile
19579 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19582 ac_status=$?
19583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590
19591 { $as_echo "$as_me:$LINENO: result: yes" >&5
19592 $as_echo "yes" >&6; }
19593
19594 cat >>confdefs.h <<\_ACEOF
19595 #define HAVE_FS_STRUCT_SPINLOCK 1
19596 _ACEOF
19597
19598
19599 else
19600 $as_echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 { $as_echo "$as_me:$LINENO: result: no" >&5
19604 $as_echo "no" >&6; }
19605
19606
19607
19608 fi
19609
19610 rm -Rf build
19611
19612
19613 EXTRA_KCFLAGS="$tmp_flags"
19614
19615
19616 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19617 $as_echo_n "checking whether struct cred exists... " >&6; }
19618
19619
19620 cat confdefs.h - <<_ACEOF >conftest.c
19621 /* confdefs.h. */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626
19627
19628 #include <linux/cred.h>
19629
19630 int
19631 main (void)
19632 {
19633
19634 struct cred *cr __attribute__ ((unused));
19635 cr = NULL;
19636
19637 ;
19638 return 0;
19639 }
19640
19641 _ACEOF
19642
19643
19644 rm -Rf build && mkdir -p build
19645 echo "obj-m := conftest.o" >build/Makefile
19646 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657
19658 { $as_echo "$as_me:$LINENO: result: yes" >&5
19659 $as_echo "yes" >&6; }
19660
19661 cat >>confdefs.h <<\_ACEOF
19662 #define HAVE_CRED_STRUCT 1
19663 _ACEOF
19664
19665
19666 else
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 { $as_echo "$as_me:$LINENO: result: no" >&5
19671 $as_echo "no" >&6; }
19672
19673
19674
19675 fi
19676
19677 rm -Rf build
19678
19679
19680
19681
19682 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19683 $as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19684 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19685 $LINUX_OBJ/Module*.symvers 2>/dev/null
19686 rc=$?
19687 if test $rc -ne 0; then
19688 export=0
19689 for file in ; do
19690 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19691 "$LINUX_OBJ/$file" 2>/dev/null
19692 rc=$?
19693 if test $rc -eq 0; then
19694 export=1
19695 break;
19696 fi
19697 done
19698 if test $export -eq 0; then
19699 { $as_echo "$as_me:$LINENO: result: no" >&5
19700 $as_echo "no" >&6; }
19701
19702 else
19703 { $as_echo "$as_me:$LINENO: result: yes" >&5
19704 $as_echo "yes" >&6; }
19705
19706 cat >>confdefs.h <<\_ACEOF
19707 #define HAVE_GROUPS_SEARCH 1
19708 _ACEOF
19709
19710 fi
19711 else
19712 { $as_echo "$as_me:$LINENO: result: yes" >&5
19713 $as_echo "yes" >&6; }
19714
19715 cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_GROUPS_SEARCH 1
19717 _ACEOF
19718
19719 fi
19720
19721
19722
19723 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19724 $as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19725 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19726 $LINUX_OBJ/Module*.symvers 2>/dev/null
19727 rc=$?
19728 if test $rc -ne 0; then
19729 export=0
19730 for file in ; do
19731 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19732 "$LINUX_OBJ/$file" 2>/dev/null
19733 rc=$?
19734 if test $rc -eq 0; then
19735 export=1
19736 break;
19737 fi
19738 done
19739 if test $export -eq 0; then
19740 { $as_echo "$as_me:$LINENO: result: no" >&5
19741 $as_echo "no" >&6; }
19742
19743 else
19744 { $as_echo "$as_me:$LINENO: result: yes" >&5
19745 $as_echo "yes" >&6; }
19746
19747 cat >>confdefs.h <<\_ACEOF
19748 #define HAVE_PUT_TASK_STRUCT 1
19749 _ACEOF
19750
19751 fi
19752 else
19753 { $as_echo "$as_me:$LINENO: result: yes" >&5
19754 $as_echo "yes" >&6; }
19755
19756 cat >>confdefs.h <<\_ACEOF
19757 #define HAVE_PUT_TASK_STRUCT 1
19758 _ACEOF
19759
19760 fi
19761
19762
19763
19764 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19765 $as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
19766
19767
19768 cat confdefs.h - <<_ACEOF >conftest.c
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774
19775
19776 #include <linux/sysctl.h>
19777
19778 int
19779 main (void)
19780 {
19781
19782 proc_dostring(NULL, 0, NULL, NULL, NULL);
19783
19784 ;
19785 return 0;
19786 }
19787
19788 _ACEOF
19789
19790
19791 rm -Rf build && mkdir -p build
19792 echo "obj-m := conftest.o" >build/Makefile
19793 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19800 (eval $ac_try) 2>&5
19801 ac_status=$?
19802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
19804
19805 { $as_echo "$as_me:$LINENO: result: yes" >&5
19806 $as_echo "yes" >&6; }
19807
19808 cat >>confdefs.h <<\_ACEOF
19809 #define HAVE_5ARGS_PROC_HANDLER 1
19810 _ACEOF
19811
19812
19813 else
19814 $as_echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19816
19817 { $as_echo "$as_me:$LINENO: result: no" >&5
19818 $as_echo "no" >&6; }
19819
19820
19821
19822 fi
19823
19824 rm -Rf build
19825
19826
19827
19828
19829 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19830 $as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19831 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19832 $LINUX_OBJ/Module*.symvers 2>/dev/null
19833 rc=$?
19834 if test $rc -ne 0; then
19835 export=0
19836 for file in ; do
19837 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19838 "$LINUX_OBJ/$file" 2>/dev/null
19839 rc=$?
19840 if test $rc -eq 0; then
19841 export=1
19842 break;
19843 fi
19844 done
19845 if test $export -eq 0; then
19846 { $as_echo "$as_me:$LINENO: result: no" >&5
19847 $as_echo "no" >&6; }
19848
19849 else
19850 { $as_echo "$as_me:$LINENO: result: yes" >&5
19851 $as_echo "yes" >&6; }
19852
19853 cat >>confdefs.h <<\_ACEOF
19854 #define HAVE_KVASPRINTF 1
19855 _ACEOF
19856
19857 fi
19858 else
19859 { $as_echo "$as_me:$LINENO: result: yes" >&5
19860 $as_echo "yes" >&6; }
19861
19862 cat >>confdefs.h <<\_ACEOF
19863 #define HAVE_KVASPRINTF 1
19864 _ACEOF
19865
19866 fi
19867
19868
19869
19870 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19871 $as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19872 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19873 $LINUX_OBJ/Module*.symvers 2>/dev/null
19874 rc=$?
19875 if test $rc -ne 0; then
19876 export=0
19877 for file in lib/rwsem-spinlock.c; do
19878 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
19879 "$LINUX_OBJ/$file" 2>/dev/null
19880 rc=$?
19881 if test $rc -eq 0; then
19882 export=1
19883 break;
19884 fi
19885 done
19886 if test $export -eq 0; then
19887 { $as_echo "$as_me:$LINENO: result: no" >&5
19888 $as_echo "no" >&6; }
19889
19890 else
19891 { $as_echo "$as_me:$LINENO: result: yes" >&5
19892 $as_echo "yes" >&6; }
19893
19894 cat >>confdefs.h <<\_ACEOF
19895 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19896 _ACEOF
19897
19898 fi
19899 else
19900 { $as_echo "$as_me:$LINENO: result: yes" >&5
19901 $as_echo "yes" >&6; }
19902
19903 cat >>confdefs.h <<\_ACEOF
19904 #define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19905 _ACEOF
19906
19907 fi
19908
19909
19910
19911 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
19912 $as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
19913 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
19914 $LINUX_OBJ/Module*.symvers 2>/dev/null
19915 rc=$?
19916 if test $rc -ne 0; then
19917 export=0
19918 for file in ; do
19919 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
19920 "$LINUX_OBJ/$file" 2>/dev/null
19921 rc=$?
19922 if test $rc -eq 0; then
19923 export=1
19924 break;
19925 fi
19926 done
19927 if test $export -eq 0; then
19928 { $as_echo "$as_me:$LINENO: result: no" >&5
19929 $as_echo "no" >&6; }
19930
19931 else
19932 { $as_echo "$as_me:$LINENO: result: yes" >&5
19933 $as_echo "yes" >&6; }
19934
19935 cat >>confdefs.h <<\_ACEOF
19936 #define HAVE_INVALIDATE_INODES 1
19937 _ACEOF
19938
19939 fi
19940 else
19941 { $as_echo "$as_me:$LINENO: result: yes" >&5
19942 $as_echo "yes" >&6; }
19943
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_INVALIDATE_INODES 1
19946 _ACEOF
19947
19948 fi
19949
19950 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
19951 $as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
19952 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
19953 $LINUX_OBJ/Module*.symvers 2>/dev/null
19954 rc=$?
19955 if test $rc -ne 0; then
19956 export=0
19957 for file in ; do
19958 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
19959 "$LINUX_OBJ/$file" 2>/dev/null
19960 rc=$?
19961 if test $rc -eq 0; then
19962 export=1
19963 break;
19964 fi
19965 done
19966 if test $export -eq 0; then
19967 { $as_echo "$as_me:$LINENO: result: no" >&5
19968 $as_echo "no" >&6; }
19969
19970 else
19971 { $as_echo "$as_me:$LINENO: result: yes" >&5
19972 $as_echo "yes" >&6; }
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_INVALIDATE_INODES_CHECK 1
19976 _ACEOF
19977
19978 fi
19979 else
19980 { $as_echo "$as_me:$LINENO: result: yes" >&5
19981 $as_echo "yes" >&6; }
19982
19983 cat >>confdefs.h <<\_ACEOF
19984 #define HAVE_INVALIDATE_INODES_CHECK 1
19985 _ACEOF
19986
19987 fi
19988
19989
19990 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
19991 $as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
19992
19993
19994 cat confdefs.h - <<_ACEOF >conftest.c
19995 /* confdefs.h. */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000
20001
20002 #include <linux/fs.h>
20003
20004 int
20005 main (void)
20006 {
20007
20008 return __invalidate_device(NULL, 0);
20009
20010 ;
20011 return 0;
20012 }
20013
20014 _ACEOF
20015
20016
20017 rm -Rf build && mkdir -p build
20018 echo "obj-m := conftest.o" >build/Makefile
20019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030
20031 { $as_echo "$as_me:$LINENO: result: yes" >&5
20032 $as_echo "yes" >&6; }
20033
20034 cat >>confdefs.h <<\_ACEOF
20035 #define HAVE_2ARGS_INVALIDATE_INODES 1
20036 _ACEOF
20037
20038
20039 else
20040 $as_echo "$as_me: failed program was:" >&5
20041 sed 's/^/| /' conftest.$ac_ext >&5
20042
20043 { $as_echo "$as_me:$LINENO: result: no" >&5
20044 $as_echo "no" >&6; }
20045
20046
20047
20048 fi
20049
20050 rm -Rf build
20051
20052
20053
20054
20055 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20056 $as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20057 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20058 $LINUX_OBJ/Module*.symvers 2>/dev/null
20059 rc=$?
20060 if test $rc -ne 0; then
20061 export=0
20062 for file in fs/dcache.c; do
20063 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20064 "$LINUX_OBJ/$file" 2>/dev/null
20065 rc=$?
20066 if test $rc -eq 0; then
20067 export=1
20068 break;
20069 fi
20070 done
20071 if test $export -eq 0; then
20072 { $as_echo "$as_me:$LINENO: result: no" >&5
20073 $as_echo "no" >&6; }
20074
20075 else
20076 { $as_echo "$as_me:$LINENO: result: yes" >&5
20077 $as_echo "yes" >&6; }
20078
20079 cat >>confdefs.h <<\_ACEOF
20080 #define HAVE_SHRINK_DCACHE_MEMORY 1
20081 _ACEOF
20082
20083 fi
20084 else
20085 { $as_echo "$as_me:$LINENO: result: yes" >&5
20086 $as_echo "yes" >&6; }
20087
20088 cat >>confdefs.h <<\_ACEOF
20089 #define HAVE_SHRINK_DCACHE_MEMORY 1
20090 _ACEOF
20091
20092 fi
20093
20094
20095
20096 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20097 $as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20098 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20099 $LINUX_OBJ/Module*.symvers 2>/dev/null
20100 rc=$?
20101 if test $rc -ne 0; then
20102 export=0
20103 for file in fs/inode.c; do
20104 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20105 "$LINUX_OBJ/$file" 2>/dev/null
20106 rc=$?
20107 if test $rc -eq 0; then
20108 export=1
20109 break;
20110 fi
20111 done
20112 if test $export -eq 0; then
20113 { $as_echo "$as_me:$LINENO: result: no" >&5
20114 $as_echo "no" >&6; }
20115
20116 else
20117 { $as_echo "$as_me:$LINENO: result: yes" >&5
20118 $as_echo "yes" >&6; }
20119
20120 cat >>confdefs.h <<\_ACEOF
20121 #define HAVE_SHRINK_ICACHE_MEMORY 1
20122 _ACEOF
20123
20124 fi
20125 else
20126 { $as_echo "$as_me:$LINENO: result: yes" >&5
20127 $as_echo "yes" >&6; }
20128
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_SHRINK_ICACHE_MEMORY 1
20131 _ACEOF
20132
20133 fi
20134
20135
20136
20137
20138 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20139 $as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20140 header=0
20141 for file in include/linux/namei.h; do
20142 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20143 rc=$?
20144 if test $rc -eq 0; then
20145 header=1
20146 break;
20147 fi
20148 done
20149 if test $header -eq 0; then
20150 { $as_echo "$as_me:$LINENO: result: no" >&5
20151 $as_echo "no" >&6; }
20152
20153 else
20154 { $as_echo "$as_me:$LINENO: result: yes" >&5
20155 $as_echo "yes" >&6; }
20156
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE_KERN_PATH_PARENT_HEADER 1
20159 _ACEOF
20160
20161 fi
20162
20163
20164
20165 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20166 $as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20167 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20168 $LINUX_OBJ/Module*.symvers 2>/dev/null
20169 rc=$?
20170 if test $rc -ne 0; then
20171 export=0
20172 for file in fs/namei.c; do
20173 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20174 "$LINUX_OBJ/$file" 2>/dev/null
20175 rc=$?
20176 if test $rc -eq 0; then
20177 export=1
20178 break;
20179 fi
20180 done
20181 if test $export -eq 0; then
20182 { $as_echo "$as_me:$LINENO: result: no" >&5
20183 $as_echo "no" >&6; }
20184
20185 else
20186 { $as_echo "$as_me:$LINENO: result: yes" >&5
20187 $as_echo "yes" >&6; }
20188
20189 cat >>confdefs.h <<\_ACEOF
20190 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20191 _ACEOF
20192
20193 fi
20194 else
20195 { $as_echo "$as_me:$LINENO: result: yes" >&5
20196 $as_echo "yes" >&6; }
20197
20198 cat >>confdefs.h <<\_ACEOF
20199 #define HAVE_KERN_PATH_PARENT_SYMBOL 1
20200 _ACEOF
20201
20202 fi
20203
20204
20205 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20206 $as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20207
20208
20209 cat confdefs.h - <<_ACEOF >conftest.c
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215
20216
20217 #include <linux/zlib.h>
20218
20219 int
20220 main (void)
20221 {
20222
20223 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20224
20225 ;
20226 return 0;
20227 }
20228
20229 _ACEOF
20230
20231
20232 rm -Rf build && mkdir -p build
20233 echo "obj-m := conftest.o" >build/Makefile
20234 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20242 ac_status=$?
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20245
20246 { $as_echo "$as_me:$LINENO: result: yes" >&5
20247 $as_echo "yes" >&6; }
20248
20249 cat >>confdefs.h <<\_ACEOF
20250 #define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20251 _ACEOF
20252
20253
20254 else
20255 $as_echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 { $as_echo "$as_me:$LINENO: result: no" >&5
20259 $as_echo "no" >&6; }
20260
20261
20262
20263 fi
20264
20265 rm -Rf build
20266
20267
20268
20269
20270 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20271 $as_echo_n "checking whether struct shrink_control exists... " >&6; }
20272
20273
20274 cat confdefs.h - <<_ACEOF >conftest.c
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280
20281
20282 #include <linux/mm.h>
20283
20284 int
20285 main (void)
20286 {
20287
20288 struct shrink_control sc __attribute__ ((unused));
20289
20290 sc.nr_to_scan = 0;
20291 sc.gfp_mask = GFP_KERNEL;
20292
20293 ;
20294 return 0;
20295 }
20296
20297 _ACEOF
20298
20299
20300 rm -Rf build && mkdir -p build
20301 echo "obj-m := conftest.o" >build/Makefile
20302 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313
20314 { $as_echo "$as_me:$LINENO: result: yes" >&5
20315 $as_echo "yes" >&6; }
20316
20317 cat >>confdefs.h <<\_ACEOF
20318 #define HAVE_SHRINK_CONTROL_STRUCT 1
20319 _ACEOF
20320
20321
20322 else
20323 $as_echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20325
20326 { $as_echo "$as_me:$LINENO: result: no" >&5
20327 $as_echo "no" >&6; }
20328
20329
20330
20331 fi
20332
20333 rm -Rf build
20334
20335
20336
20337
20338 ;;
20339 srpm) ;;
20340 *)
20341 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20342 $as_echo "Error!" >&6; }
20343 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20344 user kernel|user|all|srpm" >&5
20345 $as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20346 user kernel|user|all|srpm" >&2;}
20347 { (exit 1); exit 1; }; } ;;
20348 esac
20349
20350 if test "$SPL_CONFIG" = user ||
20351 test "$SPL_CONFIG" = all; then
20352 CONFIG_USER_TRUE=
20353 CONFIG_USER_FALSE='#'
20354 else
20355 CONFIG_USER_TRUE='#'
20356 CONFIG_USER_FALSE=
20357 fi
20358
20359 if test "$SPL_CONFIG" = kernel ||
20360 test "$SPL_CONFIG" = all; then
20361 CONFIG_KERNEL_TRUE=
20362 CONFIG_KERNEL_FALSE='#'
20363 else
20364 CONFIG_KERNEL_TRUE='#'
20365 CONFIG_KERNEL_FALSE=
20366 fi
20367
20368
20369
20370 ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
20371
20372
20373 cat >confcache <<\_ACEOF
20374 # This file is a shell script that caches the results of configure
20375 # tests run on this system so they can be shared between configure
20376 # scripts and configure runs, see configure's option --config-cache.
20377 # It is not useful on other systems. If it contains results you don't
20378 # want to keep, you may remove or edit it.
20379 #
20380 # config.status only pays attention to the cache file if you give it
20381 # the --recheck option to rerun configure.
20382 #
20383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20385 # following values.
20386
20387 _ACEOF
20388
20389 # The following way of writing the cache mishandles newlines in values,
20390 # but we know of no workaround that is simple, portable, and efficient.
20391 # So, we kill variables containing newlines.
20392 # Ultrix sh set writes to stderr and can't be redirected directly,
20393 # and sets the high bit in the cache file unless we assign to the vars.
20394 (
20395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20396 eval ac_val=\$$ac_var
20397 case $ac_val in #(
20398 *${as_nl}*)
20399 case $ac_var in #(
20400 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20402 esac
20403 case $ac_var in #(
20404 _ | IFS | as_nl) ;; #(
20405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20406 *) $as_unset $ac_var ;;
20407 esac ;;
20408 esac
20409 done
20410
20411 (set) 2>&1 |
20412 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20413 *${as_nl}ac_space=\ *)
20414 # `set' does not quote correctly, so add quotes (double-quote
20415 # substitution turns \\\\ into \\, and sed turns \\ into \).
20416 sed -n \
20417 "s/'/'\\\\''/g;
20418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20419 ;; #(
20420 *)
20421 # `set' quotes correctly as required by POSIX, so do not add quotes.
20422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20423 ;;
20424 esac |
20425 sort
20426 ) |
20427 sed '
20428 /^ac_cv_env_/b end
20429 t clear
20430 :clear
20431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20432 t end
20433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20434 :end' >>confcache
20435 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20436 if test -w "$cache_file"; then
20437 test "x$cache_file" != "x/dev/null" &&
20438 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20439 $as_echo "$as_me: updating cache $cache_file" >&6;}
20440 cat confcache >$cache_file
20441 else
20442 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20443 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20444 fi
20445 fi
20446 rm -f confcache
20447
20448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20449 # Let make expand exec_prefix.
20450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20451
20452 DEFS=-DHAVE_CONFIG_H
20453
20454 ac_libobjs=
20455 ac_ltlibobjs=
20456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20457 # 1. Remove the extension, and $U if already installed.
20458 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20459 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20461 # will be set to the directory where LIBOBJS objects are built.
20462 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20463 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20464 done
20465 LIBOBJS=$ac_libobjs
20466
20467 LTLIBOBJS=$ac_ltlibobjs
20468
20469
20470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20471 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20472 Usually this means the macro was only invoked conditionally." >&5
20473 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20474 Usually this means the macro was only invoked conditionally." >&2;}
20475 { (exit 1); exit 1; }; }
20476 fi
20477 if test -n "$EXEEXT"; then
20478 am__EXEEXT_TRUE=
20479 am__EXEEXT_FALSE='#'
20480 else
20481 am__EXEEXT_TRUE='#'
20482 am__EXEEXT_FALSE=
20483 fi
20484
20485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20486 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20487 Usually this means the macro was only invoked conditionally." >&5
20488 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20489 Usually this means the macro was only invoked conditionally." >&2;}
20490 { (exit 1); exit 1; }; }
20491 fi
20492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20493 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20494 Usually this means the macro was only invoked conditionally." >&5
20495 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20496 Usually this means the macro was only invoked conditionally." >&2;}
20497 { (exit 1); exit 1; }; }
20498 fi
20499 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20500 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20501 Usually this means the macro was only invoked conditionally." >&5
20502 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20503 Usually this means the macro was only invoked conditionally." >&2;}
20504 { (exit 1); exit 1; }; }
20505 fi
20506 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20507 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20508 Usually this means the macro was only invoked conditionally." >&5
20509 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20510 Usually this means the macro was only invoked conditionally." >&2;}
20511 { (exit 1); exit 1; }; }
20512 fi
20513
20514 : ${CONFIG_STATUS=./config.status}
20515 ac_write_fail=0
20516 ac_clean_files_save=$ac_clean_files
20517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20518 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20519 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20520 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20521 #! $SHELL
20522 # Generated by $as_me.
20523 # Run this file to recreate the current configuration.
20524 # Compiler output produced by configure, useful for debugging
20525 # configure, is in config.log if it exists.
20526
20527 debug=false
20528 ac_cs_recheck=false
20529 ac_cs_silent=false
20530 SHELL=\${CONFIG_SHELL-$SHELL}
20531 _ACEOF
20532
20533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20534 ## --------------------- ##
20535 ## M4sh Initialization. ##
20536 ## --------------------- ##
20537
20538 # Be more Bourne compatible
20539 DUALCASE=1; export DUALCASE # for MKS sh
20540 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20541 emulate sh
20542 NULLCMD=:
20543 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20544 # is contrary to our usage. Disable this feature.
20545 alias -g '${1+"$@"}'='"$@"'
20546 setopt NO_GLOB_SUBST
20547 else
20548 case `(set -o) 2>/dev/null` in
20549 *posix*) set -o posix ;;
20550 esac
20551
20552 fi
20553
20554
20555
20556
20557 # PATH needs CR
20558 # Avoid depending upon Character Ranges.
20559 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20560 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20561 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20562 as_cr_digits='0123456789'
20563 as_cr_alnum=$as_cr_Letters$as_cr_digits
20564
20565 as_nl='
20566 '
20567 export as_nl
20568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20572 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20573 as_echo='printf %s\n'
20574 as_echo_n='printf %s'
20575 else
20576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20578 as_echo_n='/usr/ucb/echo -n'
20579 else
20580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20581 as_echo_n_body='eval
20582 arg=$1;
20583 case $arg in
20584 *"$as_nl"*)
20585 expr "X$arg" : "X\\(.*\\)$as_nl";
20586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20587 esac;
20588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20589 '
20590 export as_echo_n_body
20591 as_echo_n='sh -c $as_echo_n_body as_echo'
20592 fi
20593 export as_echo_body
20594 as_echo='sh -c $as_echo_body as_echo'
20595 fi
20596
20597 # The user is always right.
20598 if test "${PATH_SEPARATOR+set}" != set; then
20599 PATH_SEPARATOR=:
20600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20602 PATH_SEPARATOR=';'
20603 }
20604 fi
20605
20606 # Support unset when possible.
20607 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20608 as_unset=unset
20609 else
20610 as_unset=false
20611 fi
20612
20613
20614 # IFS
20615 # We need space, tab and new line, in precisely that order. Quoting is
20616 # there to prevent editors from complaining about space-tab.
20617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20618 # splitting by setting IFS to empty value.)
20619 IFS=" "" $as_nl"
20620
20621 # Find who we are. Look in the path if we contain no directory separator.
20622 case $0 in
20623 *[\\/]* ) as_myself=$0 ;;
20624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20625 for as_dir in $PATH
20626 do
20627 IFS=$as_save_IFS
20628 test -z "$as_dir" && as_dir=.
20629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20630 done
20631 IFS=$as_save_IFS
20632
20633 ;;
20634 esac
20635 # We did not find ourselves, most probably we were run as `sh COMMAND'
20636 # in which case we are not to be found in the path.
20637 if test "x$as_myself" = x; then
20638 as_myself=$0
20639 fi
20640 if test ! -f "$as_myself"; then
20641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20642 { (exit 1); exit 1; }
20643 fi
20644
20645 # Work around bugs in pre-3.0 UWIN ksh.
20646 for as_var in ENV MAIL MAILPATH
20647 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20648 done
20649 PS1='$ '
20650 PS2='> '
20651 PS4='+ '
20652
20653 # NLS nuisances.
20654 LC_ALL=C
20655 export LC_ALL
20656 LANGUAGE=C
20657 export LANGUAGE
20658
20659 # Required to use basename.
20660 if expr a : '\(a\)' >/dev/null 2>&1 &&
20661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20662 as_expr=expr
20663 else
20664 as_expr=false
20665 fi
20666
20667 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20668 as_basename=basename
20669 else
20670 as_basename=false
20671 fi
20672
20673
20674 # Name of the executable.
20675 as_me=`$as_basename -- "$0" ||
20676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20677 X"$0" : 'X\(//\)$' \| \
20678 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20679 $as_echo X/"$0" |
20680 sed '/^.*\/\([^/][^/]*\)\/*$/{
20681 s//\1/
20682 q
20683 }
20684 /^X\/\(\/\/\)$/{
20685 s//\1/
20686 q
20687 }
20688 /^X\/\(\/\).*/{
20689 s//\1/
20690 q
20691 }
20692 s/.*/./; q'`
20693
20694 # CDPATH.
20695 $as_unset CDPATH
20696
20697
20698
20699 as_lineno_1=$LINENO
20700 as_lineno_2=$LINENO
20701 test "x$as_lineno_1" != "x$as_lineno_2" &&
20702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20703
20704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20705 # uniformly replaced by the line number. The first 'sed' inserts a
20706 # line-number line after each line using $LINENO; the second 'sed'
20707 # does the real work. The second script uses 'N' to pair each
20708 # line-number line with the line containing $LINENO, and appends
20709 # trailing '-' during substitution so that $LINENO is not a special
20710 # case at line end.
20711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20712 # scripts with optimization help from Paolo Bonzini. Blame Lee
20713 # E. McMahon (1931-1989) for sed's syntax. :-)
20714 sed -n '
20715 p
20716 /[$]LINENO/=
20717 ' <$as_myself |
20718 sed '
20719 s/[$]LINENO.*/&-/
20720 t lineno
20721 b
20722 :lineno
20723 N
20724 :loop
20725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20726 t loop
20727 s/-\n.*//
20728 ' >$as_me.lineno &&
20729 chmod +x "$as_me.lineno" ||
20730 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20731 { (exit 1); exit 1; }; }
20732
20733 # Don't try to exec as it changes $[0], causing all sort of problems
20734 # (the dirname of $[0] is not the place where we might find the
20735 # original and so on. Autoconf is especially sensitive to this).
20736 . "./$as_me.lineno"
20737 # Exit status is that of the last command.
20738 exit
20739 }
20740
20741
20742 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20743 as_dirname=dirname
20744 else
20745 as_dirname=false
20746 fi
20747
20748 ECHO_C= ECHO_N= ECHO_T=
20749 case `echo -n x` in
20750 -n*)
20751 case `echo 'x\c'` in
20752 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20753 *) ECHO_C='\c';;
20754 esac;;
20755 *)
20756 ECHO_N='-n';;
20757 esac
20758 if expr a : '\(a\)' >/dev/null 2>&1 &&
20759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20760 as_expr=expr
20761 else
20762 as_expr=false
20763 fi
20764
20765 rm -f conf$$ conf$$.exe conf$$.file
20766 if test -d conf$$.dir; then
20767 rm -f conf$$.dir/conf$$.file
20768 else
20769 rm -f conf$$.dir
20770 mkdir conf$$.dir 2>/dev/null
20771 fi
20772 if (echo >conf$$.file) 2>/dev/null; then
20773 if ln -s conf$$.file conf$$ 2>/dev/null; then
20774 as_ln_s='ln -s'
20775 # ... but there are two gotchas:
20776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20778 # In both cases, we have to default to `cp -p'.
20779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20780 as_ln_s='cp -p'
20781 elif ln conf$$.file conf$$ 2>/dev/null; then
20782 as_ln_s=ln
20783 else
20784 as_ln_s='cp -p'
20785 fi
20786 else
20787 as_ln_s='cp -p'
20788 fi
20789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20790 rmdir conf$$.dir 2>/dev/null
20791
20792 if mkdir -p . 2>/dev/null; then
20793 as_mkdir_p=:
20794 else
20795 test -d ./-p && rmdir ./-p
20796 as_mkdir_p=false
20797 fi
20798
20799 if test -x / >/dev/null 2>&1; then
20800 as_test_x='test -x'
20801 else
20802 if ls -dL / >/dev/null 2>&1; then
20803 as_ls_L_option=L
20804 else
20805 as_ls_L_option=
20806 fi
20807 as_test_x='
20808 eval sh -c '\''
20809 if test -d "$1"; then
20810 test -d "$1/.";
20811 else
20812 case $1 in
20813 -*)set "./$1";;
20814 esac;
20815 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20816 ???[sx]*):;;*)false;;esac;fi
20817 '\'' sh
20818 '
20819 fi
20820 as_executable_p=$as_test_x
20821
20822 # Sed expression to map a string onto a valid CPP name.
20823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20824
20825 # Sed expression to map a string onto a valid variable name.
20826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20827
20828
20829 exec 6>&1
20830
20831 # Save the log message, to keep $[0] and so on meaningful, and to
20832 # report actual input values of CONFIG_FILES etc. instead of their
20833 # values after options handling.
20834 ac_log="
20835 This file was extended by $as_me, which was
20836 generated by GNU Autoconf 2.63. Invocation command line was
20837
20838 CONFIG_FILES = $CONFIG_FILES
20839 CONFIG_HEADERS = $CONFIG_HEADERS
20840 CONFIG_LINKS = $CONFIG_LINKS
20841 CONFIG_COMMANDS = $CONFIG_COMMANDS
20842 $ $0 $@
20843
20844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20845 "
20846
20847 _ACEOF
20848
20849 case $ac_config_files in *"
20850 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20851 esac
20852
20853 case $ac_config_headers in *"
20854 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20855 esac
20856
20857
20858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20859 # Files that config.status was made for.
20860 config_files="$ac_config_files"
20861 config_headers="$ac_config_headers"
20862 config_commands="$ac_config_commands"
20863
20864 _ACEOF
20865
20866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20867 ac_cs_usage="\
20868 \`$as_me' instantiates files from templates according to the
20869 current configuration.
20870
20871 Usage: $0 [OPTION]... [FILE]...
20872
20873 -h, --help print this help, then exit
20874 -V, --version print version number and configuration settings, then exit
20875 -q, --quiet, --silent
20876 do not print progress messages
20877 -d, --debug don't remove temporary files
20878 --recheck update $as_me by reconfiguring in the same conditions
20879 --file=FILE[:TEMPLATE]
20880 instantiate the configuration file FILE
20881 --header=FILE[:TEMPLATE]
20882 instantiate the configuration header FILE
20883
20884 Configuration files:
20885 $config_files
20886
20887 Configuration headers:
20888 $config_headers
20889
20890 Configuration commands:
20891 $config_commands
20892
20893 Report bugs to <bug-autoconf@gnu.org>."
20894
20895 _ACEOF
20896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20897 ac_cs_version="\\
20898 config.status
20899 configured by $0, generated by GNU Autoconf 2.63,
20900 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20901
20902 Copyright (C) 2008 Free Software Foundation, Inc.
20903 This config.status script is free software; the Free Software Foundation
20904 gives unlimited permission to copy, distribute and modify it."
20905
20906 ac_pwd='$ac_pwd'
20907 srcdir='$srcdir'
20908 INSTALL='$INSTALL'
20909 MKDIR_P='$MKDIR_P'
20910 AWK='$AWK'
20911 test -n "\$AWK" || AWK=awk
20912 _ACEOF
20913
20914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20915 # The default lists apply if the user does not specify any file.
20916 ac_need_defaults=:
20917 while test $# != 0
20918 do
20919 case $1 in
20920 --*=*)
20921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20923 ac_shift=:
20924 ;;
20925 *)
20926 ac_option=$1
20927 ac_optarg=$2
20928 ac_shift=shift
20929 ;;
20930 esac
20931
20932 case $ac_option in
20933 # Handling of the options.
20934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20935 ac_cs_recheck=: ;;
20936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20937 $as_echo "$ac_cs_version"; exit ;;
20938 --debug | --debu | --deb | --de | --d | -d )
20939 debug=: ;;
20940 --file | --fil | --fi | --f )
20941 $ac_shift
20942 case $ac_optarg in
20943 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20944 esac
20945 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20946 ac_need_defaults=false;;
20947 --header | --heade | --head | --hea )
20948 $ac_shift
20949 case $ac_optarg in
20950 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20951 esac
20952 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20953 ac_need_defaults=false;;
20954 --he | --h)
20955 # Conflict between --help and --header
20956 { $as_echo "$as_me: error: ambiguous option: $1
20957 Try \`$0 --help' for more information." >&2
20958 { (exit 1); exit 1; }; };;
20959 --help | --hel | -h )
20960 $as_echo "$ac_cs_usage"; exit ;;
20961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20962 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20963 ac_cs_silent=: ;;
20964
20965 # This is an error.
20966 -*) { $as_echo "$as_me: error: unrecognized option: $1
20967 Try \`$0 --help' for more information." >&2
20968 { (exit 1); exit 1; }; } ;;
20969
20970 *) ac_config_targets="$ac_config_targets $1"
20971 ac_need_defaults=false ;;
20972
20973 esac
20974 shift
20975 done
20976
20977 ac_configure_extra_args=
20978
20979 if $ac_cs_silent; then
20980 exec 6>/dev/null
20981 ac_configure_extra_args="$ac_configure_extra_args --silent"
20982 fi
20983
20984 _ACEOF
20985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20986 if \$ac_cs_recheck; then
20987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20988 shift
20989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20990 CONFIG_SHELL='$SHELL'
20991 export CONFIG_SHELL
20992 exec "\$@"
20993 fi
20994
20995 _ACEOF
20996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997 exec 5>>config.log
20998 {
20999 echo
21000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21001 ## Running $as_me. ##
21002 _ASBOX
21003 $as_echo "$ac_log"
21004 } >&5
21005
21006 _ACEOF
21007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21008 #
21009 # INIT-COMMANDS
21010 #
21011 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21012
21013
21014 # The HP-UX ksh and POSIX shell print the target directory to stdout
21015 # if CDPATH is set.
21016 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21017
21018 sed_quote_subst='$sed_quote_subst'
21019 double_quote_subst='$double_quote_subst'
21020 delay_variable_subst='$delay_variable_subst'
21021 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21022 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21023 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21024 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21025 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21026 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21027 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21028 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21029 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21030 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21031 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21032 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21033 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21034 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21035 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21036 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21037 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21038 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21039 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21040 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21041 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21042 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21043 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21044 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21045 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21046 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21047 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21048 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21049 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21050 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21051 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21052 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21053 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21054 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21055 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21056 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21057 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21058 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21059 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21060 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21061 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21062 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21063 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21064 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21065 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"`'
21066 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"`'
21067 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21068 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21069 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21070 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21071 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21072 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21073 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21074 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21075 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21076 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21077 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21078 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21079 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21080 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21081 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21082 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21083 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21084 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21085 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21086 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21087 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21088 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21089 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21090 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21091 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21092 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21093 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21094 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21095 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21096 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21097 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21098 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21099 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21100 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21101 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21102 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21103 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21104 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21105 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21106 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21107 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21108 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21109 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21110 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21111 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21112 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21113 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21114 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21115 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21116 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21117 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21118 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21119 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21120 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21121 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21122 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21123 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21124 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21125 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21126 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21127 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21128 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21129 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21130 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21131 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21132 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21133 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21134 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21135 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21136 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21137 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21138 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21139
21140 LTCC='$LTCC'
21141 LTCFLAGS='$LTCFLAGS'
21142 compiler='$compiler_DEFAULT'
21143
21144 # Quote evaled strings.
21145 for var in SED \
21146 GREP \
21147 EGREP \
21148 FGREP \
21149 LD \
21150 NM \
21151 LN_S \
21152 lt_SP2NL \
21153 lt_NL2SP \
21154 reload_flag \
21155 OBJDUMP \
21156 deplibs_check_method \
21157 file_magic_cmd \
21158 AR \
21159 AR_FLAGS \
21160 STRIP \
21161 RANLIB \
21162 CC \
21163 CFLAGS \
21164 compiler \
21165 lt_cv_sys_global_symbol_pipe \
21166 lt_cv_sys_global_symbol_to_cdecl \
21167 lt_cv_sys_global_symbol_to_c_name_address \
21168 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21169 SHELL \
21170 ECHO \
21171 lt_prog_compiler_no_builtin_flag \
21172 lt_prog_compiler_wl \
21173 lt_prog_compiler_pic \
21174 lt_prog_compiler_static \
21175 lt_cv_prog_compiler_c_o \
21176 need_locks \
21177 DSYMUTIL \
21178 NMEDIT \
21179 LIPO \
21180 OTOOL \
21181 OTOOL64 \
21182 shrext_cmds \
21183 export_dynamic_flag_spec \
21184 whole_archive_flag_spec \
21185 compiler_needs_object \
21186 with_gnu_ld \
21187 allow_undefined_flag \
21188 no_undefined_flag \
21189 hardcode_libdir_flag_spec \
21190 hardcode_libdir_flag_spec_ld \
21191 hardcode_libdir_separator \
21192 fix_srcfile_path \
21193 exclude_expsyms \
21194 include_expsyms \
21195 file_list_spec \
21196 variables_saved_for_relink \
21197 libname_spec \
21198 library_names_spec \
21199 soname_spec \
21200 finish_eval \
21201 old_striplib \
21202 striplib; do
21203 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21204 *[\\\\\\\`\\"\\\$]*)
21205 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21206 ;;
21207 *)
21208 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21209 ;;
21210 esac
21211 done
21212
21213 # Double-quote double-evaled strings.
21214 for var in reload_cmds \
21215 old_postinstall_cmds \
21216 old_postuninstall_cmds \
21217 old_archive_cmds \
21218 extract_expsyms_cmds \
21219 old_archive_from_new_cmds \
21220 old_archive_from_expsyms_cmds \
21221 archive_cmds \
21222 archive_expsym_cmds \
21223 module_cmds \
21224 module_expsym_cmds \
21225 export_symbols_cmds \
21226 prelink_cmds \
21227 postinstall_cmds \
21228 postuninstall_cmds \
21229 finish_cmds \
21230 sys_lib_search_path_spec \
21231 sys_lib_dlsearch_path_spec; do
21232 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21233 *[\\\\\\\`\\"\\\$]*)
21234 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21235 ;;
21236 *)
21237 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21238 ;;
21239 esac
21240 done
21241
21242 # Fix-up fallback echo if it was mangled by the above quoting rules.
21243 case \$lt_ECHO in
21244 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21245 ;;
21246 esac
21247
21248 ac_aux_dir='$ac_aux_dir'
21249 xsi_shell='$xsi_shell'
21250 lt_shell_append='$lt_shell_append'
21251
21252 # See if we are running on zsh, and set the options which allow our
21253 # commands through without removal of \ escapes INIT.
21254 if test -n "\${ZSH_VERSION+set}" ; then
21255 setopt NO_GLOB_SUBST
21256 fi
21257
21258
21259 PACKAGE='$PACKAGE'
21260 VERSION='$VERSION'
21261 TIMESTAMP='$TIMESTAMP'
21262 RM='$RM'
21263 ofile='$ofile'
21264
21265
21266
21267
21268 _ACEOF
21269
21270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21271
21272 # Handling of arguments.
21273 for ac_config_target in $ac_config_targets
21274 do
21275 case $ac_config_target in
21276 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21277 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21278 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21280 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21281 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21282 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21283 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21284 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21285 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21286 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21287 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21288 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
21289 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21290 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
21291
21292 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21293 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21294 { (exit 1); exit 1; }; };;
21295 esac
21296 done
21297
21298
21299 # If the user did not use the arguments to specify the items to instantiate,
21300 # then the envvar interface is used. Set only those that are not.
21301 # We use the long form for the default assignment because of an extremely
21302 # bizarre bug on SunOS 4.1.3.
21303 if $ac_need_defaults; then
21304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21307 fi
21308
21309 # Have a temporary directory for convenience. Make it in the build tree
21310 # simply because there is no reason against having it here, and in addition,
21311 # creating and moving files from /tmp can sometimes cause problems.
21312 # Hook for its removal unless debugging.
21313 # Note that there is a small window in which the directory will not be cleaned:
21314 # after its creation but before its name has been assigned to `$tmp'.
21315 $debug ||
21316 {
21317 tmp=
21318 trap 'exit_status=$?
21319 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21320 ' 0
21321 trap '{ (exit 1); exit 1; }' 1 2 13 15
21322 }
21323 # Create a (secure) tmp directory for tmp files.
21324
21325 {
21326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21327 test -n "$tmp" && test -d "$tmp"
21328 } ||
21329 {
21330 tmp=./conf$$-$RANDOM
21331 (umask 077 && mkdir "$tmp")
21332 } ||
21333 {
21334 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21335 { (exit 1); exit 1; }
21336 }
21337
21338 # Set up the scripts for CONFIG_FILES section.
21339 # No need to generate them if there are no CONFIG_FILES.
21340 # This happens for instance with `./config.status config.h'.
21341 if test -n "$CONFIG_FILES"; then
21342
21343
21344 ac_cr=' '
21345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21347 ac_cs_awk_cr='\\r'
21348 else
21349 ac_cs_awk_cr=$ac_cr
21350 fi
21351
21352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21353 _ACEOF
21354
21355
21356 {
21357 echo "cat >conf$$subs.awk <<_ACEOF" &&
21358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21359 echo "_ACEOF"
21360 } >conf$$subs.sh ||
21361 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21363 { (exit 1); exit 1; }; }
21364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21365 ac_delim='%!_!# '
21366 for ac_last_try in false false false false false :; do
21367 . ./conf$$subs.sh ||
21368 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21369 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21370 { (exit 1); exit 1; }; }
21371
21372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21373 if test $ac_delim_n = $ac_delim_num; then
21374 break
21375 elif $ac_last_try; then
21376 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21377 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21378 { (exit 1); exit 1; }; }
21379 else
21380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21381 fi
21382 done
21383 rm -f conf$$subs.sh
21384
21385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21386 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21387 _ACEOF
21388 sed -n '
21389 h
21390 s/^/S["/; s/!.*/"]=/
21391 p
21392 g
21393 s/^[^!]*!//
21394 :repl
21395 t repl
21396 s/'"$ac_delim"'$//
21397 t delim
21398 :nl
21399 h
21400 s/\(.\{148\}\).*/\1/
21401 t more1
21402 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21403 p
21404 n
21405 b repl
21406 :more1
21407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21408 p
21409 g
21410 s/.\{148\}//
21411 t nl
21412 :delim
21413 h
21414 s/\(.\{148\}\).*/\1/
21415 t more2
21416 s/["\\]/\\&/g; s/^/"/; s/$/"/
21417 p
21418 b
21419 :more2
21420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21421 p
21422 g
21423 s/.\{148\}//
21424 t delim
21425 ' <conf$$subs.awk | sed '
21426 /^[^""]/{
21427 N
21428 s/\n//
21429 }
21430 ' >>$CONFIG_STATUS || ac_write_fail=1
21431 rm -f conf$$subs.awk
21432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21433 _ACAWK
21434 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21435 for (key in S) S_is_set[key] = 1
21436 FS = "\a"
21437
21438 }
21439 {
21440 line = $ 0
21441 nfields = split(line, field, "@")
21442 substed = 0
21443 len = length(field[1])
21444 for (i = 2; i < nfields; i++) {
21445 key = field[i]
21446 keylen = length(key)
21447 if (S_is_set[key]) {
21448 value = S[key]
21449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21450 len += length(value) + length(field[++i])
21451 substed = 1
21452 } else
21453 len += 1 + keylen
21454 }
21455
21456 print line
21457 }
21458
21459 _ACAWK
21460 _ACEOF
21461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21462 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21464 else
21465 cat
21466 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21467 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21468 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21469 { (exit 1); exit 1; }; }
21470 _ACEOF
21471
21472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21474 # trailing colons and then remove the whole line if VPATH becomes empty
21475 # (actually we leave an empty line to preserve line numbers).
21476 if test "x$srcdir" = x.; then
21477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21478 s/:*\$(srcdir):*/:/
21479 s/:*\${srcdir}:*/:/
21480 s/:*@srcdir@:*/:/
21481 s/^\([^=]*=[ ]*\):*/\1/
21482 s/:*$//
21483 s/^[^=]*=[ ]*$//
21484 }'
21485 fi
21486
21487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21488 fi # test -n "$CONFIG_FILES"
21489
21490 # Set up the scripts for CONFIG_HEADERS section.
21491 # No need to generate them if there are no CONFIG_HEADERS.
21492 # This happens for instance with `./config.status Makefile'.
21493 if test -n "$CONFIG_HEADERS"; then
21494 cat >"$tmp/defines.awk" <<\_ACAWK ||
21495 BEGIN {
21496 _ACEOF
21497
21498 # Transform confdefs.h into an awk script `defines.awk', embedded as
21499 # here-document in config.status, that substitutes the proper values into
21500 # config.h.in to produce config.h.
21501
21502 # Create a delimiter string that does not exist in confdefs.h, to ease
21503 # handling of long lines.
21504 ac_delim='%!_!# '
21505 for ac_last_try in false false :; do
21506 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21507 if test -z "$ac_t"; then
21508 break
21509 elif $ac_last_try; then
21510 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21511 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21512 { (exit 1); exit 1; }; }
21513 else
21514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21515 fi
21516 done
21517
21518 # For the awk script, D is an array of macro values keyed by name,
21519 # likewise P contains macro parameters if any. Preserve backslash
21520 # newline sequences.
21521
21522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21523 sed -n '
21524 s/.\{148\}/&'"$ac_delim"'/g
21525 t rset
21526 :rset
21527 s/^[ ]*#[ ]*define[ ][ ]*/ /
21528 t def
21529 d
21530 :def
21531 s/\\$//
21532 t bsnl
21533 s/["\\]/\\&/g
21534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21535 D["\1"]=" \3"/p
21536 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21537 d
21538 :bsnl
21539 s/["\\]/\\&/g
21540 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21541 D["\1"]=" \3\\\\\\n"\\/p
21542 t cont
21543 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21544 t cont
21545 d
21546 :cont
21547 n
21548 s/.\{148\}/&'"$ac_delim"'/g
21549 t clear
21550 :clear
21551 s/\\$//
21552 t bsnlc
21553 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21554 d
21555 :bsnlc
21556 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21557 b cont
21558 ' <confdefs.h | sed '
21559 s/'"$ac_delim"'/"\\\
21560 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21561
21562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21563 for (key in D) D_is_set[key] = 1
21564 FS = "\a"
21565 }
21566 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21567 line = \$ 0
21568 split(line, arg, " ")
21569 if (arg[1] == "#") {
21570 defundef = arg[2]
21571 mac1 = arg[3]
21572 } else {
21573 defundef = substr(arg[1], 2)
21574 mac1 = arg[2]
21575 }
21576 split(mac1, mac2, "(") #)
21577 macro = mac2[1]
21578 prefix = substr(line, 1, index(line, defundef) - 1)
21579 if (D_is_set[macro]) {
21580 # Preserve the white space surrounding the "#".
21581 print prefix "define", macro P[macro] D[macro]
21582 next
21583 } else {
21584 # Replace #undef with comments. This is necessary, for example,
21585 # in the case of _POSIX_SOURCE, which is predefined and required
21586 # on some systems where configure will not decide to define it.
21587 if (defundef == "undef") {
21588 print "/*", prefix defundef, macro, "*/"
21589 next
21590 }
21591 }
21592 }
21593 { print }
21594 _ACAWK
21595 _ACEOF
21596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21597 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21598 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21599 { (exit 1); exit 1; }; }
21600 fi # test -n "$CONFIG_HEADERS"
21601
21602
21603 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21604 shift
21605 for ac_tag
21606 do
21607 case $ac_tag in
21608 :[FHLC]) ac_mode=$ac_tag; continue;;
21609 esac
21610 case $ac_mode$ac_tag in
21611 :[FHL]*:*);;
21612 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21613 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21614 { (exit 1); exit 1; }; };;
21615 :[FH]-) ac_tag=-:-;;
21616 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21617 esac
21618 ac_save_IFS=$IFS
21619 IFS=:
21620 set x $ac_tag
21621 IFS=$ac_save_IFS
21622 shift
21623 ac_file=$1
21624 shift
21625
21626 case $ac_mode in
21627 :L) ac_source=$1;;
21628 :[FH])
21629 ac_file_inputs=
21630 for ac_f
21631 do
21632 case $ac_f in
21633 -) ac_f="$tmp/stdin";;
21634 *) # Look for the file first in the build tree, then in the source tree
21635 # (if the path is not absolute). The absolute path cannot be DOS-style,
21636 # because $ac_f cannot contain `:'.
21637 test -f "$ac_f" ||
21638 case $ac_f in
21639 [\\/$]*) false;;
21640 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21641 esac ||
21642 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21643 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21644 { (exit 1); exit 1; }; };;
21645 esac
21646 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21647 ac_file_inputs="$ac_file_inputs '$ac_f'"
21648 done
21649
21650 # Let's still pretend it is `configure' which instantiates (i.e., don't
21651 # use $as_me), people would be surprised to read:
21652 # /* config.h. Generated by config.status. */
21653 configure_input='Generated from '`
21654 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21655 `' by configure.'
21656 if test x"$ac_file" != x-; then
21657 configure_input="$ac_file. $configure_input"
21658 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21659 $as_echo "$as_me: creating $ac_file" >&6;}
21660 fi
21661 # Neutralize special characters interpreted by sed in replacement strings.
21662 case $configure_input in #(
21663 *\&* | *\|* | *\\* )
21664 ac_sed_conf_input=`$as_echo "$configure_input" |
21665 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21666 *) ac_sed_conf_input=$configure_input;;
21667 esac
21668
21669 case $ac_tag in
21670 *:-:* | *:-) cat >"$tmp/stdin" \
21671 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21672 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21673 { (exit 1); exit 1; }; } ;;
21674 esac
21675 ;;
21676 esac
21677
21678 ac_dir=`$as_dirname -- "$ac_file" ||
21679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21680 X"$ac_file" : 'X\(//\)[^/]' \| \
21681 X"$ac_file" : 'X\(//\)$' \| \
21682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21683 $as_echo X"$ac_file" |
21684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21685 s//\1/
21686 q
21687 }
21688 /^X\(\/\/\)[^/].*/{
21689 s//\1/
21690 q
21691 }
21692 /^X\(\/\/\)$/{
21693 s//\1/
21694 q
21695 }
21696 /^X\(\/\).*/{
21697 s//\1/
21698 q
21699 }
21700 s/.*/./; q'`
21701 { as_dir="$ac_dir"
21702 case $as_dir in #(
21703 -*) as_dir=./$as_dir;;
21704 esac
21705 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21706 as_dirs=
21707 while :; do
21708 case $as_dir in #(
21709 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21710 *) as_qdir=$as_dir;;
21711 esac
21712 as_dirs="'$as_qdir' $as_dirs"
21713 as_dir=`$as_dirname -- "$as_dir" ||
21714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21715 X"$as_dir" : 'X\(//\)[^/]' \| \
21716 X"$as_dir" : 'X\(//\)$' \| \
21717 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21718 $as_echo X"$as_dir" |
21719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21720 s//\1/
21721 q
21722 }
21723 /^X\(\/\/\)[^/].*/{
21724 s//\1/
21725 q
21726 }
21727 /^X\(\/\/\)$/{
21728 s//\1/
21729 q
21730 }
21731 /^X\(\/\).*/{
21732 s//\1/
21733 q
21734 }
21735 s/.*/./; q'`
21736 test -d "$as_dir" && break
21737 done
21738 test -z "$as_dirs" || eval "mkdir $as_dirs"
21739 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21740 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21741 { (exit 1); exit 1; }; }; }
21742 ac_builddir=.
21743
21744 case "$ac_dir" in
21745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21746 *)
21747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21748 # A ".." for each directory in $ac_dir_suffix.
21749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21750 case $ac_top_builddir_sub in
21751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21753 esac ;;
21754 esac
21755 ac_abs_top_builddir=$ac_pwd
21756 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21757 # for backward compatibility:
21758 ac_top_builddir=$ac_top_build_prefix
21759
21760 case $srcdir in
21761 .) # We are building in place.
21762 ac_srcdir=.
21763 ac_top_srcdir=$ac_top_builddir_sub
21764 ac_abs_top_srcdir=$ac_pwd ;;
21765 [\\/]* | ?:[\\/]* ) # Absolute name.
21766 ac_srcdir=$srcdir$ac_dir_suffix;
21767 ac_top_srcdir=$srcdir
21768 ac_abs_top_srcdir=$srcdir ;;
21769 *) # Relative name.
21770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21771 ac_top_srcdir=$ac_top_build_prefix$srcdir
21772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21773 esac
21774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21775
21776
21777 case $ac_mode in
21778 :F)
21779 #
21780 # CONFIG_FILE
21781 #
21782
21783 case $INSTALL in
21784 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21785 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21786 esac
21787 ac_MKDIR_P=$MKDIR_P
21788 case $MKDIR_P in
21789 [\\/$]* | ?:[\\/]* ) ;;
21790 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21791 esac
21792 _ACEOF
21793
21794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21795 # If the template does not know about datarootdir, expand it.
21796 # FIXME: This hack should be removed a few years after 2.60.
21797 ac_datarootdir_hack=; ac_datarootdir_seen=
21798
21799 ac_sed_dataroot='
21800 /datarootdir/ {
21801 p
21802 q
21803 }
21804 /@datadir@/p
21805 /@docdir@/p
21806 /@infodir@/p
21807 /@localedir@/p
21808 /@mandir@/p
21809 '
21810 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21811 *datarootdir*) ac_datarootdir_seen=yes;;
21812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21813 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21814 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21815 _ACEOF
21816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21817 ac_datarootdir_hack='
21818 s&@datadir@&$datadir&g
21819 s&@docdir@&$docdir&g
21820 s&@infodir@&$infodir&g
21821 s&@localedir@&$localedir&g
21822 s&@mandir@&$mandir&g
21823 s&\\\${datarootdir}&$datarootdir&g' ;;
21824 esac
21825 _ACEOF
21826
21827 # Neutralize VPATH when `$srcdir' = `.'.
21828 # Shell code in configure.ac might set extrasub.
21829 # FIXME: do we really want to maintain this feature?
21830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21831 ac_sed_extra="$ac_vpsub
21832 $extrasub
21833 _ACEOF
21834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21835 :t
21836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21837 s|@configure_input@|$ac_sed_conf_input|;t t
21838 s&@top_builddir@&$ac_top_builddir_sub&;t t
21839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21840 s&@srcdir@&$ac_srcdir&;t t
21841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21842 s&@top_srcdir@&$ac_top_srcdir&;t t
21843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21844 s&@builddir@&$ac_builddir&;t t
21845 s&@abs_builddir@&$ac_abs_builddir&;t t
21846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21847 s&@INSTALL@&$ac_INSTALL&;t t
21848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21849 $ac_datarootdir_hack
21850 "
21851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21852 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21853 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21854 { (exit 1); exit 1; }; }
21855
21856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21857 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21859 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21860 which seems to be undefined. Please make sure it is defined." >&5
21861 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21862 which seems to be undefined. Please make sure it is defined." >&2;}
21863
21864 rm -f "$tmp/stdin"
21865 case $ac_file in
21866 -) cat "$tmp/out" && rm -f "$tmp/out";;
21867 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21868 esac \
21869 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21870 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21871 { (exit 1); exit 1; }; }
21872 ;;
21873 :H)
21874 #
21875 # CONFIG_HEADER
21876 #
21877 if test x"$ac_file" != x-; then
21878 {
21879 $as_echo "/* $configure_input */" \
21880 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21881 } >"$tmp/config.h" \
21882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21884 { (exit 1); exit 1; }; }
21885 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21886 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21887 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21888 else
21889 rm -f "$ac_file"
21890 mv "$tmp/config.h" "$ac_file" \
21891 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21892 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21893 { (exit 1); exit 1; }; }
21894 fi
21895 else
21896 $as_echo "/* $configure_input */" \
21897 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21898 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21899 $as_echo "$as_me: error: could not create -" >&2;}
21900 { (exit 1); exit 1; }; }
21901 fi
21902 # Compute "$ac_file"'s index in $config_headers.
21903 _am_arg="$ac_file"
21904 _am_stamp_count=1
21905 for _am_header in $config_headers :; do
21906 case $_am_header in
21907 $_am_arg | $_am_arg:* )
21908 break ;;
21909 * )
21910 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21911 esac
21912 done
21913 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21914 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21915 X"$_am_arg" : 'X\(//\)[^/]' \| \
21916 X"$_am_arg" : 'X\(//\)$' \| \
21917 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21918 $as_echo X"$_am_arg" |
21919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21920 s//\1/
21921 q
21922 }
21923 /^X\(\/\/\)[^/].*/{
21924 s//\1/
21925 q
21926 }
21927 /^X\(\/\/\)$/{
21928 s//\1/
21929 q
21930 }
21931 /^X\(\/\).*/{
21932 s//\1/
21933 q
21934 }
21935 s/.*/./; q'`/stamp-h$_am_stamp_count
21936 ;;
21937
21938 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21939 $as_echo "$as_me: executing $ac_file commands" >&6;}
21940 ;;
21941 esac
21942
21943
21944 case $ac_file$ac_mode in
21945 "spl_config.h":H)
21946 (mv spl_config.h spl_config.h.tmp &&
21947 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
21948 rm spl_config.h.tmp) || exit 1 ;;
21949 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21950 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21951 # are listed without --file. Let's play safe and only enable the eval
21952 # if we detect the quoting.
21953 case $CONFIG_FILES in
21954 *\'*) eval set x "$CONFIG_FILES" ;;
21955 *) set x $CONFIG_FILES ;;
21956 esac
21957 shift
21958 for mf
21959 do
21960 # Strip MF so we end up with the name of the file.
21961 mf=`echo "$mf" | sed -e 's/:.*$//'`
21962 # Check whether this is an Automake generated Makefile or not.
21963 # We used to match only the files named `Makefile.in', but
21964 # some people rename them; so instead we look at the file content.
21965 # Grep'ing the first line is not enough: some people post-process
21966 # each Makefile.in and add a new line on top of each file to say so.
21967 # Grep'ing the whole file is not good either: AIX grep has a line
21968 # limit of 2048, but all sed's we know have understand at least 4000.
21969 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21970 dirpart=`$as_dirname -- "$mf" ||
21971 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21972 X"$mf" : 'X\(//\)[^/]' \| \
21973 X"$mf" : 'X\(//\)$' \| \
21974 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21975 $as_echo X"$mf" |
21976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21977 s//\1/
21978 q
21979 }
21980 /^X\(\/\/\)[^/].*/{
21981 s//\1/
21982 q
21983 }
21984 /^X\(\/\/\)$/{
21985 s//\1/
21986 q
21987 }
21988 /^X\(\/\).*/{
21989 s//\1/
21990 q
21991 }
21992 s/.*/./; q'`
21993 else
21994 continue
21995 fi
21996 # Extract the definition of DEPDIR, am__include, and am__quote
21997 # from the Makefile without running `make'.
21998 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21999 test -z "$DEPDIR" && continue
22000 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22001 test -z "am__include" && continue
22002 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22003 # When using ansi2knr, U may be empty or an underscore; expand it
22004 U=`sed -n 's/^U = //p' < "$mf"`
22005 # Find all dependency output files, they are included files with
22006 # $(DEPDIR) in their names. We invoke sed twice because it is the
22007 # simplest approach to changing $(DEPDIR) to its actual value in the
22008 # expansion.
22009 for file in `sed -n "
22010 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22011 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22012 # Make sure the directory exists.
22013 test -f "$dirpart/$file" && continue
22014 fdir=`$as_dirname -- "$file" ||
22015 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22016 X"$file" : 'X\(//\)[^/]' \| \
22017 X"$file" : 'X\(//\)$' \| \
22018 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22019 $as_echo X"$file" |
22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22021 s//\1/
22022 q
22023 }
22024 /^X\(\/\/\)[^/].*/{
22025 s//\1/
22026 q
22027 }
22028 /^X\(\/\/\)$/{
22029 s//\1/
22030 q
22031 }
22032 /^X\(\/\).*/{
22033 s//\1/
22034 q
22035 }
22036 s/.*/./; q'`
22037 { as_dir=$dirpart/$fdir
22038 case $as_dir in #(
22039 -*) as_dir=./$as_dir;;
22040 esac
22041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22042 as_dirs=
22043 while :; do
22044 case $as_dir in #(
22045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22046 *) as_qdir=$as_dir;;
22047 esac
22048 as_dirs="'$as_qdir' $as_dirs"
22049 as_dir=`$as_dirname -- "$as_dir" ||
22050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22051 X"$as_dir" : 'X\(//\)[^/]' \| \
22052 X"$as_dir" : 'X\(//\)$' \| \
22053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22054 $as_echo X"$as_dir" |
22055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22056 s//\1/
22057 q
22058 }
22059 /^X\(\/\/\)[^/].*/{
22060 s//\1/
22061 q
22062 }
22063 /^X\(\/\/\)$/{
22064 s//\1/
22065 q
22066 }
22067 /^X\(\/\).*/{
22068 s//\1/
22069 q
22070 }
22071 s/.*/./; q'`
22072 test -d "$as_dir" && break
22073 done
22074 test -z "$as_dirs" || eval "mkdir $as_dirs"
22075 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22076 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22077 { (exit 1); exit 1; }; }; }
22078 # echo "creating $dirpart/$file"
22079 echo '# dummy' > "$dirpart/$file"
22080 done
22081 done
22082 }
22083 ;;
22084 "libtool":C)
22085
22086 # See if we are running on zsh, and set the options which allow our
22087 # commands through without removal of \ escapes.
22088 if test -n "${ZSH_VERSION+set}" ; then
22089 setopt NO_GLOB_SUBST
22090 fi
22091
22092 cfgfile="${ofile}T"
22093 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22094 $RM "$cfgfile"
22095
22096 cat <<_LT_EOF >> "$cfgfile"
22097 #! $SHELL
22098
22099 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22100 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22103 #
22104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22105 # 2006, 2007, 2008 Free Software Foundation, Inc.
22106 # Written by Gordon Matzigkeit, 1996
22107 #
22108 # This file is part of GNU Libtool.
22109 #
22110 # GNU Libtool is free software; you can redistribute it and/or
22111 # modify it under the terms of the GNU General Public License as
22112 # published by the Free Software Foundation; either version 2 of
22113 # the License, or (at your option) any later version.
22114 #
22115 # As a special exception to the GNU General Public License,
22116 # if you distribute this file as part of a program or library that
22117 # is built using GNU Libtool, you may include this file under the
22118 # same distribution terms that you use for the rest of that program.
22119 #
22120 # GNU Libtool is distributed in the hope that it will be useful,
22121 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22123 # GNU General Public License for more details.
22124 #
22125 # You should have received a copy of the GNU General Public License
22126 # along with GNU Libtool; see the file COPYING. If not, a copy
22127 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22128 # obtained by writing to the Free Software Foundation, Inc.,
22129 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22130
22131
22132 # The names of the tagged configurations supported by this script.
22133 available_tags=""
22134
22135 # ### BEGIN LIBTOOL CONFIG
22136
22137 # Which release of libtool.m4 was used?
22138 macro_version=$macro_version
22139 macro_revision=$macro_revision
22140
22141 # Whether or not to build shared libraries.
22142 build_libtool_libs=$enable_shared
22143
22144 # Whether or not to build static libraries.
22145 build_old_libs=$enable_static
22146
22147 # What type of objects to build.
22148 pic_mode=$pic_mode
22149
22150 # Whether or not to optimize for fast installation.
22151 fast_install=$enable_fast_install
22152
22153 # The host system.
22154 host_alias=$host_alias
22155 host=$host
22156 host_os=$host_os
22157
22158 # The build system.
22159 build_alias=$build_alias
22160 build=$build
22161 build_os=$build_os
22162
22163 # A sed program that does not truncate output.
22164 SED=$lt_SED
22165
22166 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22167 Xsed="\$SED -e 1s/^X//"
22168
22169 # A grep program that handles long lines.
22170 GREP=$lt_GREP
22171
22172 # An ERE matcher.
22173 EGREP=$lt_EGREP
22174
22175 # A literal string matcher.
22176 FGREP=$lt_FGREP
22177
22178 # A BSD- or MS-compatible name lister.
22179 NM=$lt_NM
22180
22181 # Whether we need soft or hard links.
22182 LN_S=$lt_LN_S
22183
22184 # What is the maximum length of a command?
22185 max_cmd_len=$max_cmd_len
22186
22187 # Object file suffix (normally "o").
22188 objext=$ac_objext
22189
22190 # Executable file suffix (normally "").
22191 exeext=$exeext
22192
22193 # whether the shell understands "unset".
22194 lt_unset=$lt_unset
22195
22196 # turn spaces into newlines.
22197 SP2NL=$lt_lt_SP2NL
22198
22199 # turn newlines into spaces.
22200 NL2SP=$lt_lt_NL2SP
22201
22202 # How to create reloadable object files.
22203 reload_flag=$lt_reload_flag
22204 reload_cmds=$lt_reload_cmds
22205
22206 # An object symbol dumper.
22207 OBJDUMP=$lt_OBJDUMP
22208
22209 # Method to check whether dependent libraries are shared objects.
22210 deplibs_check_method=$lt_deplibs_check_method
22211
22212 # Command to use when deplibs_check_method == "file_magic".
22213 file_magic_cmd=$lt_file_magic_cmd
22214
22215 # The archiver.
22216 AR=$lt_AR
22217 AR_FLAGS=$lt_AR_FLAGS
22218
22219 # A symbol stripping program.
22220 STRIP=$lt_STRIP
22221
22222 # Commands used to install an old-style archive.
22223 RANLIB=$lt_RANLIB
22224 old_postinstall_cmds=$lt_old_postinstall_cmds
22225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22226
22227 # A C compiler.
22228 LTCC=$lt_CC
22229
22230 # LTCC compiler flags.
22231 LTCFLAGS=$lt_CFLAGS
22232
22233 # Take the output of nm and produce a listing of raw symbols and C names.
22234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22235
22236 # Transform the output of nm in a proper C declaration.
22237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22238
22239 # Transform the output of nm in a C name address pair.
22240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22241
22242 # Transform the output of nm in a C name address pair when lib prefix is needed.
22243 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22244
22245 # The name of the directory that contains temporary libtool files.
22246 objdir=$objdir
22247
22248 # Shell to use when invoking shell scripts.
22249 SHELL=$lt_SHELL
22250
22251 # An echo program that does not interpret backslashes.
22252 ECHO=$lt_ECHO
22253
22254 # Used to examine libraries when file_magic_cmd begins with "file".
22255 MAGIC_CMD=$MAGIC_CMD
22256
22257 # Must we lock files when doing compilation?
22258 need_locks=$lt_need_locks
22259
22260 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22261 DSYMUTIL=$lt_DSYMUTIL
22262
22263 # Tool to change global to local symbols on Mac OS X.
22264 NMEDIT=$lt_NMEDIT
22265
22266 # Tool to manipulate fat objects and archives on Mac OS X.
22267 LIPO=$lt_LIPO
22268
22269 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22270 OTOOL=$lt_OTOOL
22271
22272 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22273 OTOOL64=$lt_OTOOL64
22274
22275 # Old archive suffix (normally "a").
22276 libext=$libext
22277
22278 # Shared library suffix (normally ".so").
22279 shrext_cmds=$lt_shrext_cmds
22280
22281 # The commands to extract the exported symbol list from a shared archive.
22282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22283
22284 # Variables whose values should be saved in libtool wrapper scripts and
22285 # restored at link time.
22286 variables_saved_for_relink=$lt_variables_saved_for_relink
22287
22288 # Do we need the "lib" prefix for modules?
22289 need_lib_prefix=$need_lib_prefix
22290
22291 # Do we need a version for libraries?
22292 need_version=$need_version
22293
22294 # Library versioning type.
22295 version_type=$version_type
22296
22297 # Shared library runtime path variable.
22298 runpath_var=$runpath_var
22299
22300 # Shared library path variable.
22301 shlibpath_var=$shlibpath_var
22302
22303 # Is shlibpath searched before the hard-coded library search path?
22304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22305
22306 # Format of library name prefix.
22307 libname_spec=$lt_libname_spec
22308
22309 # List of archive names. First name is the real one, the rest are links.
22310 # The last name is the one that the linker finds with -lNAME
22311 library_names_spec=$lt_library_names_spec
22312
22313 # The coded name of the library, if different from the real name.
22314 soname_spec=$lt_soname_spec
22315
22316 # Command to use after installation of a shared archive.
22317 postinstall_cmds=$lt_postinstall_cmds
22318
22319 # Command to use after uninstallation of a shared archive.
22320 postuninstall_cmds=$lt_postuninstall_cmds
22321
22322 # Commands used to finish a libtool library installation in a directory.
22323 finish_cmds=$lt_finish_cmds
22324
22325 # As "finish_cmds", except a single script fragment to be evaled but
22326 # not shown.
22327 finish_eval=$lt_finish_eval
22328
22329 # Whether we should hardcode library paths into libraries.
22330 hardcode_into_libs=$hardcode_into_libs
22331
22332 # Compile-time system search path for libraries.
22333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22334
22335 # Run-time system search path for libraries.
22336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22337
22338 # Whether dlopen is supported.
22339 dlopen_support=$enable_dlopen
22340
22341 # Whether dlopen of programs is supported.
22342 dlopen_self=$enable_dlopen_self
22343
22344 # Whether dlopen of statically linked programs is supported.
22345 dlopen_self_static=$enable_dlopen_self_static
22346
22347 # Commands to strip libraries.
22348 old_striplib=$lt_old_striplib
22349 striplib=$lt_striplib
22350
22351
22352 # The linker used to build libraries.
22353 LD=$lt_LD
22354
22355 # Commands used to build an old-style archive.
22356 old_archive_cmds=$lt_old_archive_cmds
22357
22358 # A language specific compiler.
22359 CC=$lt_compiler
22360
22361 # Is the compiler the GNU compiler?
22362 with_gcc=$GCC
22363
22364 # Compiler flag to turn off builtin functions.
22365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22366
22367 # How to pass a linker flag through the compiler.
22368 wl=$lt_lt_prog_compiler_wl
22369
22370 # Additional compiler flags for building library objects.
22371 pic_flag=$lt_lt_prog_compiler_pic
22372
22373 # Compiler flag to prevent dynamic linking.
22374 link_static_flag=$lt_lt_prog_compiler_static
22375
22376 # Does compiler simultaneously support -c and -o options?
22377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22378
22379 # Whether or not to add -lc for building shared libraries.
22380 build_libtool_need_lc=$archive_cmds_need_lc
22381
22382 # Whether or not to disallow shared libs when runtime libs are static.
22383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22384
22385 # Compiler flag to allow reflexive dlopens.
22386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22387
22388 # Compiler flag to generate shared objects directly from archives.
22389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22390
22391 # Whether the compiler copes with passing no objects directly.
22392 compiler_needs_object=$lt_compiler_needs_object
22393
22394 # Create an old-style archive from a shared archive.
22395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22396
22397 # Create a temporary old-style archive to link instead of a shared archive.
22398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22399
22400 # Commands used to build a shared archive.
22401 archive_cmds=$lt_archive_cmds
22402 archive_expsym_cmds=$lt_archive_expsym_cmds
22403
22404 # Commands used to build a loadable module if different from building
22405 # a shared archive.
22406 module_cmds=$lt_module_cmds
22407 module_expsym_cmds=$lt_module_expsym_cmds
22408
22409 # Whether we are building with GNU ld or not.
22410 with_gnu_ld=$lt_with_gnu_ld
22411
22412 # Flag that allows shared libraries with undefined symbols to be built.
22413 allow_undefined_flag=$lt_allow_undefined_flag
22414
22415 # Flag that enforces no undefined symbols.
22416 no_undefined_flag=$lt_no_undefined_flag
22417
22418 # Flag to hardcode \$libdir into a binary during linking.
22419 # This must work even if \$libdir does not exist
22420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22421
22422 # If ld is used when linking, flag to hardcode \$libdir into a binary
22423 # during linking. This must work even if \$libdir does not exist.
22424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22425
22426 # Whether we need a single "-rpath" flag with a separated argument.
22427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22428
22429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22430 # DIR into the resulting binary.
22431 hardcode_direct=$hardcode_direct
22432
22433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22434 # DIR into the resulting binary and the resulting library dependency is
22435 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22436 # library is relocated.
22437 hardcode_direct_absolute=$hardcode_direct_absolute
22438
22439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22440 # into the resulting binary.
22441 hardcode_minus_L=$hardcode_minus_L
22442
22443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22444 # into the resulting binary.
22445 hardcode_shlibpath_var=$hardcode_shlibpath_var
22446
22447 # Set to "yes" if building a shared library automatically hardcodes DIR
22448 # into the library and all subsequent libraries and executables linked
22449 # against it.
22450 hardcode_automatic=$hardcode_automatic
22451
22452 # Set to yes if linker adds runtime paths of dependent libraries
22453 # to runtime path list.
22454 inherit_rpath=$inherit_rpath
22455
22456 # Whether libtool must link a program against all its dependency libraries.
22457 link_all_deplibs=$link_all_deplibs
22458
22459 # Fix the shell variable \$srcfile for the compiler.
22460 fix_srcfile_path=$lt_fix_srcfile_path
22461
22462 # Set to "yes" if exported symbols are required.
22463 always_export_symbols=$always_export_symbols
22464
22465 # The commands to list exported symbols.
22466 export_symbols_cmds=$lt_export_symbols_cmds
22467
22468 # Symbols that should not be listed in the preloaded symbols.
22469 exclude_expsyms=$lt_exclude_expsyms
22470
22471 # Symbols that must always be exported.
22472 include_expsyms=$lt_include_expsyms
22473
22474 # Commands necessary for linking programs (against libraries) with templates.
22475 prelink_cmds=$lt_prelink_cmds
22476
22477 # Specify filename containing input files.
22478 file_list_spec=$lt_file_list_spec
22479
22480 # How to hardcode a shared library path into an executable.
22481 hardcode_action=$hardcode_action
22482
22483 # ### END LIBTOOL CONFIG
22484
22485 _LT_EOF
22486
22487 case $host_os in
22488 aix3*)
22489 cat <<\_LT_EOF >> "$cfgfile"
22490 # AIX sometimes has problems with the GCC collect2 program. For some
22491 # reason, if we set the COLLECT_NAMES environment variable, the problems
22492 # vanish in a puff of smoke.
22493 if test "X${COLLECT_NAMES+set}" != Xset; then
22494 COLLECT_NAMES=
22495 export COLLECT_NAMES
22496 fi
22497 _LT_EOF
22498 ;;
22499 esac
22500
22501
22502 ltmain="$ac_aux_dir/ltmain.sh"
22503
22504
22505 # We use sed instead of cat because bash on DJGPP gets confused if
22506 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22507 # text mode, it properly converts lines to CR/LF. This bash problem
22508 # is reportedly fixed, but why not run on old versions too?
22509 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22510 || (rm -f "$cfgfile"; exit 1)
22511
22512 case $xsi_shell in
22513 yes)
22514 cat << \_LT_EOF >> "$cfgfile"
22515
22516 # func_dirname file append nondir_replacement
22517 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22518 # otherwise set result to NONDIR_REPLACEMENT.
22519 func_dirname ()
22520 {
22521 case ${1} in
22522 */*) func_dirname_result="${1%/*}${2}" ;;
22523 * ) func_dirname_result="${3}" ;;
22524 esac
22525 }
22526
22527 # func_basename file
22528 func_basename ()
22529 {
22530 func_basename_result="${1##*/}"
22531 }
22532
22533 # func_dirname_and_basename file append nondir_replacement
22534 # perform func_basename and func_dirname in a single function
22535 # call:
22536 # dirname: Compute the dirname of FILE. If nonempty,
22537 # add APPEND to the result, otherwise set result
22538 # to NONDIR_REPLACEMENT.
22539 # value returned in "$func_dirname_result"
22540 # basename: Compute filename of FILE.
22541 # value retuned in "$func_basename_result"
22542 # Implementation must be kept synchronized with func_dirname
22543 # and func_basename. For efficiency, we do not delegate to
22544 # those functions but instead duplicate the functionality here.
22545 func_dirname_and_basename ()
22546 {
22547 case ${1} in
22548 */*) func_dirname_result="${1%/*}${2}" ;;
22549 * ) func_dirname_result="${3}" ;;
22550 esac
22551 func_basename_result="${1##*/}"
22552 }
22553
22554 # func_stripname prefix suffix name
22555 # strip PREFIX and SUFFIX off of NAME.
22556 # PREFIX and SUFFIX must not contain globbing or regex special
22557 # characters, hashes, percent signs, but SUFFIX may contain a leading
22558 # dot (in which case that matches only a dot).
22559 func_stripname ()
22560 {
22561 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22562 # positional parameters, so assign one to ordinary parameter first.
22563 func_stripname_result=${3}
22564 func_stripname_result=${func_stripname_result#"${1}"}
22565 func_stripname_result=${func_stripname_result%"${2}"}
22566 }
22567
22568 # func_opt_split
22569 func_opt_split ()
22570 {
22571 func_opt_split_opt=${1%%=*}
22572 func_opt_split_arg=${1#*=}
22573 }
22574
22575 # func_lo2o object
22576 func_lo2o ()
22577 {
22578 case ${1} in
22579 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22580 *) func_lo2o_result=${1} ;;
22581 esac
22582 }
22583
22584 # func_xform libobj-or-source
22585 func_xform ()
22586 {
22587 func_xform_result=${1%.*}.lo
22588 }
22589
22590 # func_arith arithmetic-term...
22591 func_arith ()
22592 {
22593 func_arith_result=$(( $* ))
22594 }
22595
22596 # func_len string
22597 # STRING may not start with a hyphen.
22598 func_len ()
22599 {
22600 func_len_result=${#1}
22601 }
22602
22603 _LT_EOF
22604 ;;
22605 *) # Bourne compatible functions.
22606 cat << \_LT_EOF >> "$cfgfile"
22607
22608 # func_dirname file append nondir_replacement
22609 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22610 # otherwise set result to NONDIR_REPLACEMENT.
22611 func_dirname ()
22612 {
22613 # Extract subdirectory from the argument.
22614 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22615 if test "X$func_dirname_result" = "X${1}"; then
22616 func_dirname_result="${3}"
22617 else
22618 func_dirname_result="$func_dirname_result${2}"
22619 fi
22620 }
22621
22622 # func_basename file
22623 func_basename ()
22624 {
22625 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22626 }
22627
22628
22629 # func_stripname prefix suffix name
22630 # strip PREFIX and SUFFIX off of NAME.
22631 # PREFIX and SUFFIX must not contain globbing or regex special
22632 # characters, hashes, percent signs, but SUFFIX may contain a leading
22633 # dot (in which case that matches only a dot).
22634 # func_strip_suffix prefix name
22635 func_stripname ()
22636 {
22637 case ${2} in
22638 .*) func_stripname_result=`$ECHO "X${3}" \
22639 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22640 *) func_stripname_result=`$ECHO "X${3}" \
22641 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22642 esac
22643 }
22644
22645 # sed scripts:
22646 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22647 my_sed_long_arg='1s/^-[^=]*=//'
22648
22649 # func_opt_split
22650 func_opt_split ()
22651 {
22652 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22653 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22654 }
22655
22656 # func_lo2o object
22657 func_lo2o ()
22658 {
22659 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22660 }
22661
22662 # func_xform libobj-or-source
22663 func_xform ()
22664 {
22665 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22666 }
22667
22668 # func_arith arithmetic-term...
22669 func_arith ()
22670 {
22671 func_arith_result=`expr "$@"`
22672 }
22673
22674 # func_len string
22675 # STRING may not start with a hyphen.
22676 func_len ()
22677 {
22678 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22679 }
22680
22681 _LT_EOF
22682 esac
22683
22684 case $lt_shell_append in
22685 yes)
22686 cat << \_LT_EOF >> "$cfgfile"
22687
22688 # func_append var value
22689 # Append VALUE to the end of shell variable VAR.
22690 func_append ()
22691 {
22692 eval "$1+=\$2"
22693 }
22694 _LT_EOF
22695 ;;
22696 *)
22697 cat << \_LT_EOF >> "$cfgfile"
22698
22699 # func_append var value
22700 # Append VALUE to the end of shell variable VAR.
22701 func_append ()
22702 {
22703 eval "$1=\$$1\$2"
22704 }
22705
22706 _LT_EOF
22707 ;;
22708 esac
22709
22710
22711 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22712 || (rm -f "$cfgfile"; exit 1)
22713
22714 mv -f "$cfgfile" "$ofile" ||
22715 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22716 chmod +x "$ofile"
22717
22718 ;;
22719
22720 esac
22721 done # for ac_tag
22722
22723
22724 { (exit 0); exit 0; }
22725 _ACEOF
22726 chmod +x $CONFIG_STATUS
22727 ac_clean_files=$ac_clean_files_save
22728
22729 test $ac_write_fail = 0 ||
22730 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22731 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22732 { (exit 1); exit 1; }; }
22733
22734
22735 # configure is writing to config.log, and then calls config.status.
22736 # config.status does its own redirection, appending to config.log.
22737 # Unfortunately, on DOS this fails, as config.log is still kept open
22738 # by configure, so config.status won't be able to write to it; its
22739 # output is simply discarded. So we exec the FD to /dev/null,
22740 # effectively closing config.log, so it can be properly (re)opened and
22741 # appended to by config.status. When coming back to configure, we
22742 # need to make the FD available again.
22743 if test "$no_create" != yes; then
22744 ac_cs_success=:
22745 ac_config_status_args=
22746 test "$silent" = yes &&
22747 ac_config_status_args="$ac_config_status_args --quiet"
22748 exec 5>/dev/null
22749 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22750 exec 5>>config.log
22751 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22752 # would make configure fail if this is the last instruction.
22753 $ac_cs_success || { (exit 1); exit 1; }
22754 fi
22755 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22756 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22757 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22758 fi
22759