]> git.proxmox.com Git - mirror_zfs-debian.git/blob - configure
Fix distribution detection for gentoo
[mirror_zfs-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 DEBUG_STACKFLAGS
791 DEBUG_CFLAGS
792 CONFIG_KERNEL_FALSE
793 CONFIG_KERNEL_TRUE
794 CONFIG_USER_FALSE
795 CONFIG_USER_TRUE
796 FRAME_LARGER_THAN
797 LIBSELINUX
798 LIBBLKID
799 LIBUUID
800 ZLIB
801 KERNELCPPFLAGS
802 KERNELMAKE_PARAMS
803 SPL_SYMBOLS
804 SPL_VERSION
805 SPL_OBJ
806 SPL
807 LINUX_SYMBOLS
808 LINUX_VERSION
809 LINUX_OBJ
810 LINUX
811 ZFS_CONFIG
812 TARGET_ASM_DIR
813 DEFAULT_INIT_SCRIPT
814 DEFAULT_PACKAGE
815 VENDOR
816 ALIEN_VERSION
817 ALIEN
818 HAVE_ALIEN
819 DPKGBUILD_VERSION
820 DPKGBUILD
821 HAVE_DPKGBUILD
822 DPKG_VERSION
823 DPKG
824 HAVE_DPKG
825 RPMBUILD_VERSION
826 RPMBUILD
827 HAVE_RPMBUILD
828 RPM_VERSION
829 RPM
830 HAVE_RPM
831 am__fastdepCCAS_FALSE
832 am__fastdepCCAS_TRUE
833 CCASDEPMODE
834 CCASFLAGS
835 CCAS
836 CPP
837 OTOOL64
838 OTOOL
839 LIPO
840 NMEDIT
841 DSYMUTIL
842 lt_ECHO
843 RANLIB
844 AR
845 OBJDUMP
846 LN_S
847 NM
848 ac_ct_DUMPBIN
849 DUMPBIN
850 LD
851 FGREP
852 EGREP
853 GREP
854 SED
855 LIBTOOL
856 am__fastdepCC_FALSE
857 am__fastdepCC_TRUE
858 CCDEPMODE
859 AMDEPBACKSLASH
860 AMDEP_FALSE
861 AMDEP_TRUE
862 am__quote
863 am__include
864 DEPDIR
865 OBJEXT
866 EXEEXT
867 ac_ct_CC
868 CPPFLAGS
869 LDFLAGS
870 CFLAGS
871 CC
872 am__untar
873 am__tar
874 AMTAR
875 am__leading_dot
876 SET_MAKE
877 AWK
878 mkdir_p
879 MKDIR_P
880 INSTALL_STRIP_PROGRAM
881 STRIP
882 install_sh
883 MAKEINFO
884 AUTOHEADER
885 AUTOMAKE
886 AUTOCONF
887 ACLOCAL
888 VERSION
889 PACKAGE
890 CYGPATH_W
891 am__isrc
892 INSTALL_DATA
893 INSTALL_SCRIPT
894 INSTALL_PROGRAM
895 AM_BACKSLASH
896 AM_DEFAULT_VERBOSITY
897 MAINT
898 MAINTAINER_MODE_FALSE
899 MAINTAINER_MODE_TRUE
900 target_os
901 target_vendor
902 target_cpu
903 target
904 host_os
905 host_vendor
906 host_cpu
907 host
908 build_os
909 build_vendor
910 build_cpu
911 build
912 ZFS_META_LT_AGE
913 ZFS_META_LT_REVISION
914 ZFS_META_LT_CURRENT
915 ZFS_META_AUTHOR
916 ZFS_META_DATA
917 ZFS_META_ALIAS
918 ZFS_META_LICENSE
919 ZFS_META_RELEASE
920 ZFS_META_VERSION
921 ZFS_META_NAME
922 target_alias
923 host_alias
924 build_alias
925 LIBS
926 ECHO_T
927 ECHO_N
928 ECHO_C
929 DEFS
930 mandir
931 localedir
932 libdir
933 psdir
934 pdfdir
935 dvidir
936 htmldir
937 infodir
938 docdir
939 oldincludedir
940 includedir
941 localstatedir
942 sharedstatedir
943 sysconfdir
944 datadir
945 datarootdir
946 libexecdir
947 sbindir
948 bindir
949 program_transform_name
950 prefix
951 exec_prefix
952 PACKAGE_BUGREPORT
953 PACKAGE_STRING
954 PACKAGE_VERSION
955 PACKAGE_TARNAME
956 PACKAGE_NAME
957 PATH_SEPARATOR
958 SHELL'
959 ac_subst_files=''
960 ac_user_opts='
961 enable_option_checking
962 enable_maintainer_mode
963 enable_silent_rules
964 enable_dependency_tracking
965 enable_shared
966 enable_static
967 with_pic
968 enable_fast_install
969 with_gnu_ld
970 enable_libtool_lock
971 with_config
972 with_linux
973 with_linux_obj
974 with_spl
975 with_spl_obj
976 with_blkid
977 with_selinux
978 enable_debug
979 '
980 ac_precious_vars='build_alias
981 host_alias
982 target_alias
983 CC
984 CFLAGS
985 LDFLAGS
986 LIBS
987 CPPFLAGS
988 CPP
989 CCAS
990 CCASFLAGS'
991
992
993 # Initialize some variables set by options.
994 ac_init_help=
995 ac_init_version=false
996 ac_unrecognized_opts=
997 ac_unrecognized_sep=
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1001 exec_prefix=NONE
1002 no_create=
1003 no_recursion=
1004 prefix=NONE
1005 program_prefix=NONE
1006 program_suffix=NONE
1007 program_transform_name=s,x,x,
1008 silent=
1009 site=
1010 srcdir=
1011 verbose=
1012 x_includes=NONE
1013 x_libraries=NONE
1014
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1033 htmldir='${docdir}'
1034 dvidir='${docdir}'
1035 pdfdir='${docdir}'
1036 psdir='${docdir}'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1040
1041 ac_prev=
1042 ac_dashdash=
1043 for ac_option
1044 do
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1048 ac_prev=
1049 continue
1050 fi
1051
1052 case $ac_option in
1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 *) ac_optarg=yes ;;
1055 esac
1056
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1058
1059 case $ac_dashdash$ac_option in
1060 --)
1061 ac_dashdash=yes ;;
1062
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1067
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1072
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1079
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1082
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1087
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1094
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=no ;;
1111
1112 -docdir | --docdir | --docdi | --doc | --do)
1113 ac_prev=docdir ;;
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1116
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 ac_prev=dvidir ;;
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1121
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132 "enable_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval enable_$ac_useropt=\$ac_optarg ;;
1138
1139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141 | --exec | --exe | --ex)
1142 ac_prev=exec_prefix ;;
1143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145 | --exec=* | --exe=* | --ex=*)
1146 exec_prefix=$ac_optarg ;;
1147
1148 -gas | --gas | --ga | --g)
1149 # Obsolete; use --with-gas.
1150 with_gas=yes ;;
1151
1152 -help | --help | --hel | --he | -h)
1153 ac_init_help=long ;;
1154 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155 ac_init_help=recursive ;;
1156 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157 ac_init_help=short ;;
1158
1159 -host | --host | --hos | --ho)
1160 ac_prev=host_alias ;;
1161 -host=* | --host=* | --hos=* | --ho=*)
1162 host_alias=$ac_optarg ;;
1163
1164 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 ac_prev=htmldir ;;
1166 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 | --ht=*)
1168 htmldir=$ac_optarg ;;
1169
1170 -includedir | --includedir | --includedi | --included | --include \
1171 | --includ | --inclu | --incl | --inc)
1172 ac_prev=includedir ;;
1173 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174 | --includ=* | --inclu=* | --incl=* | --inc=*)
1175 includedir=$ac_optarg ;;
1176
1177 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 ac_prev=infodir ;;
1179 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180 infodir=$ac_optarg ;;
1181
1182 -libdir | --libdir | --libdi | --libd)
1183 ac_prev=libdir ;;
1184 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185 libdir=$ac_optarg ;;
1186
1187 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188 | --libexe | --libex | --libe)
1189 ac_prev=libexecdir ;;
1190 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191 | --libexe=* | --libex=* | --libe=*)
1192 libexecdir=$ac_optarg ;;
1193
1194 -localedir | --localedir | --localedi | --localed | --locale)
1195 ac_prev=localedir ;;
1196 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197 localedir=$ac_optarg ;;
1198
1199 -localstatedir | --localstatedir | --localstatedi | --localstated \
1200 | --localstate | --localstat | --localsta | --localst | --locals)
1201 ac_prev=localstatedir ;;
1202 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204 localstatedir=$ac_optarg ;;
1205
1206 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 ac_prev=mandir ;;
1208 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209 mandir=$ac_optarg ;;
1210
1211 -nfp | --nfp | --nf)
1212 # Obsolete; use --without-fp.
1213 with_fp=no ;;
1214
1215 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216 | --no-cr | --no-c | -n)
1217 no_create=yes ;;
1218
1219 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221 no_recursion=yes ;;
1222
1223 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225 | --oldin | --oldi | --old | --ol | --o)
1226 ac_prev=oldincludedir ;;
1227 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230 oldincludedir=$ac_optarg ;;
1231
1232 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 ac_prev=prefix ;;
1234 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235 prefix=$ac_optarg ;;
1236
1237 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238 | --program-pre | --program-pr | --program-p)
1239 ac_prev=program_prefix ;;
1240 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242 program_prefix=$ac_optarg ;;
1243
1244 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245 | --program-suf | --program-su | --program-s)
1246 ac_prev=program_suffix ;;
1247 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249 program_suffix=$ac_optarg ;;
1250
1251 -program-transform-name | --program-transform-name \
1252 | --program-transform-nam | --program-transform-na \
1253 | --program-transform-n | --program-transform- \
1254 | --program-transform | --program-transfor \
1255 | --program-transfo | --program-transf \
1256 | --program-trans | --program-tran \
1257 | --progr-tra | --program-tr | --program-t)
1258 ac_prev=program_transform_name ;;
1259 -program-transform-name=* | --program-transform-name=* \
1260 | --program-transform-nam=* | --program-transform-na=* \
1261 | --program-transform-n=* | --program-transform-=* \
1262 | --program-transform=* | --program-transfor=* \
1263 | --program-transfo=* | --program-transf=* \
1264 | --program-trans=* | --program-tran=* \
1265 | --progr-tra=* | --program-tr=* | --program-t=*)
1266 program_transform_name=$ac_optarg ;;
1267
1268 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 ac_prev=pdfdir ;;
1270 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271 pdfdir=$ac_optarg ;;
1272
1273 -psdir | --psdir | --psdi | --psd | --ps)
1274 ac_prev=psdir ;;
1275 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276 psdir=$ac_optarg ;;
1277
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 silent=yes ;;
1281
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1287
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1298
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1303
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1308
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1315
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1320
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1323
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1326
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1332 { (exit 1); exit 1; }; }
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1336 *"
1337 "with_$ac_useropt"
1338 "*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval with_$ac_useropt=\$ac_optarg ;;
1343
1344 -without-* | --without-*)
1345 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1349 { (exit 1); exit 1; }; }
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
1360
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1364
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1371
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1378
1379 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1380 Try \`$0 --help' for more information." >&2
1381 { (exit 1); exit 1; }; }
1382 ;;
1383
1384 *=*)
1385 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1388 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1389 { (exit 1); exit 1; }; }
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1392
1393 *)
1394 # FIXME: should be removed in autoconf 3.0.
1395 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399 ;;
1400
1401 esac
1402 done
1403
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1407 { (exit 1); exit 1; }; }
1408 fi
1409
1410 if test -n "$ac_unrecognized_opts"; then
1411 case $enable_option_checking in
1412 no) ;;
1413 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1414 { (exit 1); exit 1; }; } ;;
1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1416 esac
1417 fi
1418
1419 # Check all directory arguments for consistency.
1420 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421 datadir sysconfdir sharedstatedir localstatedir includedir \
1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423 libdir localedir mandir
1424 do
1425 eval ac_val=\$$ac_var
1426 # Remove trailing slashes.
1427 case $ac_val in
1428 */ )
1429 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430 eval $ac_var=\$ac_val;;
1431 esac
1432 # Be sure to have absolute directory names.
1433 case $ac_val in
1434 [\\/$]* | ?:[\\/]* ) continue;;
1435 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436 esac
1437 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1438 { (exit 1); exit 1; }; }
1439 done
1440
1441 # There might be people who depend on the old broken behavior: `$host'
1442 # used to hold the argument of --host etc.
1443 # FIXME: To remove some day.
1444 build=$build_alias
1445 host=$host_alias
1446 target=$target_alias
1447
1448 # FIXME: To remove some day.
1449 if test "x$host_alias" != x; then
1450 if test "x$build_alias" = x; then
1451 cross_compiling=maybe
1452 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1453 If a cross compiler is detected then cross compile mode will be used." >&2
1454 elif test "x$build_alias" != "x$host_alias"; then
1455 cross_compiling=yes
1456 fi
1457 fi
1458
1459 ac_tool_prefix=
1460 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461
1462 test "$silent" = yes && exec 6>/dev/null
1463
1464
1465 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1466 ac_ls_di=`ls -di .` &&
1467 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1468 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1469 { (exit 1); exit 1; }; }
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1472 { (exit 1); exit 1; }; }
1473
1474
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477 ac_srcdir_defaulted=yes
1478 # Try the directory containing this script, then the parent directory.
1479 ac_confdir=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481 X"$as_myself" : 'X\(//\)[^/]' \| \
1482 X"$as_myself" : 'X\(//\)$' \| \
1483 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486 s//\1/
1487 q
1488 }
1489 /^X\(\/\/\)[^/].*/{
1490 s//\1/
1491 q
1492 }
1493 /^X\(\/\/\)$/{
1494 s//\1/
1495 q
1496 }
1497 /^X\(\/\).*/{
1498 s//\1/
1499 q
1500 }
1501 s/.*/./; q'`
1502 srcdir=$ac_confdir
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504 srcdir=..
1505 fi
1506 else
1507 ac_srcdir_defaulted=no
1508 fi
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1511 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1512 { (exit 1); exit 1; }; }
1513 fi
1514 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 ac_abs_confdir=`(
1516 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1517 { (exit 1); exit 1; }; }
1518 pwd)`
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521 srcdir=.
1522 fi
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1526 case $srcdir in
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 esac
1529 for ac_var in $ac_precious_vars; do
1530 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_${ac_var}_value=\$${ac_var}
1532 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 done
1535
1536 #
1537 # Report the --help message.
1538 #
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1542 cat <<_ACEOF
1543 \`configure' configures this package to adapt to many kinds of systems.
1544
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1549
1550 Defaults for the options are specified in brackets.
1551
1552 Configuration:
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1567 [PREFIX]
1568
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1573
1574 For better control, use the options below.
1575
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1596 _ACEOF
1597
1598 cat <<\_ACEOF
1599
1600 Program names:
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1604
1605 System types:
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 --target=TARGET configure for building compilers for TARGET [HOST]
1609 _ACEOF
1610 fi
1611
1612 if test -n "$ac_init_help"; then
1613
1614 cat <<\_ACEOF
1615
1616 Optional Features:
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --enable-maintainer-mode enable make rules and dependencies not useful
1621 (and sometimes confusing) to the casual installer
1622 --enable-silent-rules less verbose build output (undo: `make V=1')
1623 --disable-silent-rules verbose build output (undo: `make V=0')
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --enable-debug Enable generic debug support [default=no]
1632
1633 Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1636 --with-pic try to use only PIC/non-PIC objects [default=use
1637 both]
1638 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1639 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1640 --with-linux=PATH Path to kernel source
1641 --with-linux-obj=PATH Path to kernel build objects
1642 --with-spl=PATH Path to spl source
1643 --with-spl-obj=PATH Path to spl build objects
1644 --with-blkid support blkid caching [default=check]
1645 --with-selinux support selinux [default=check]
1646
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 CPP C preprocessor
1656 CCAS assembler compiler command (defaults to CC)
1657 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1658
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1661
1662 _ACEOF
1663 ac_status=$?
1664 fi
1665
1666 if test "$ac_init_help" = "recursive"; then
1667 # If there are subdirs, report their specific --help.
1668 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1669 test -d "$ac_dir" ||
1670 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1671 continue
1672 ac_builddir=.
1673
1674 case "$ac_dir" in
1675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *)
1677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1678 # A ".." for each directory in $ac_dir_suffix.
1679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1680 case $ac_top_builddir_sub in
1681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1683 esac ;;
1684 esac
1685 ac_abs_top_builddir=$ac_pwd
1686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir=$ac_top_build_prefix
1689
1690 case $srcdir in
1691 .) # We are building in place.
1692 ac_srcdir=.
1693 ac_top_srcdir=$ac_top_builddir_sub
1694 ac_abs_top_srcdir=$ac_pwd ;;
1695 [\\/]* | ?:[\\/]* ) # Absolute name.
1696 ac_srcdir=$srcdir$ac_dir_suffix;
1697 ac_top_srcdir=$srcdir
1698 ac_abs_top_srcdir=$srcdir ;;
1699 *) # Relative name.
1700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701 ac_top_srcdir=$ac_top_build_prefix$srcdir
1702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 esac
1704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705
1706 cd "$ac_dir" || { ac_status=$?; continue; }
1707 # Check for guested configure.
1708 if test -f "$ac_srcdir/configure.gnu"; then
1709 echo &&
1710 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711 elif test -f "$ac_srcdir/configure"; then
1712 echo &&
1713 $SHELL "$ac_srcdir/configure" --help=recursive
1714 else
1715 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 fi || ac_status=$?
1717 cd "$ac_pwd" || { ac_status=$?; break; }
1718 done
1719 fi
1720
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1723 cat <<\_ACEOF
1724 configure
1725 generated by GNU Autoconf 2.63
1726
1727 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1728 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1731 _ACEOF
1732 exit
1733 fi
1734 cat >config.log <<_ACEOF
1735 This file contains any messages produced by compilers while
1736 running configure, to aid debugging if configure makes a mistake.
1737
1738 It was created by $as_me, which was
1739 generated by GNU Autoconf 2.63. Invocation command line was
1740
1741 $ $0 $@
1742
1743 _ACEOF
1744 exec 5>>config.log
1745 {
1746 cat <<_ASUNAME
1747 ## --------- ##
1748 ## Platform. ##
1749 ## --------- ##
1750
1751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756
1757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759
1760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767
1768 _ASUNAME
1769
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773 IFS=$as_save_IFS
1774 test -z "$as_dir" && as_dir=.
1775 $as_echo "PATH: $as_dir"
1776 done
1777 IFS=$as_save_IFS
1778
1779 } >&5
1780
1781 cat >&5 <<_ACEOF
1782
1783
1784 ## ----------- ##
1785 ## Core tests. ##
1786 ## ----------- ##
1787
1788 _ACEOF
1789
1790
1791 # Keep a trace of the command line.
1792 # Strip out --no-create and --no-recursion so they do not pile up.
1793 # Strip out --silent because we don't want to record it for future runs.
1794 # Also quote any args containing shell meta-characters.
1795 # Make two passes to allow for proper duplicate-argument suppression.
1796 ac_configure_args=
1797 ac_configure_args0=
1798 ac_configure_args1=
1799 ac_must_keep_next=false
1800 for ac_pass in 1 2
1801 do
1802 for ac_arg
1803 do
1804 case $ac_arg in
1805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1807 | -silent | --silent | --silen | --sile | --sil)
1808 continue ;;
1809 *\'*)
1810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 esac
1812 case $ac_pass in
1813 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1814 2)
1815 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1816 if test $ac_must_keep_next = true; then
1817 ac_must_keep_next=false # Got value, back to normal.
1818 else
1819 case $ac_arg in
1820 *=* | --config-cache | -C | -disable-* | --disable-* \
1821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1823 | -with-* | --with-* | -without-* | --without-* | --x)
1824 case "$ac_configure_args0 " in
1825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826 esac
1827 ;;
1828 -* ) ac_must_keep_next=true ;;
1829 esac
1830 fi
1831 ac_configure_args="$ac_configure_args '$ac_arg'"
1832 ;;
1833 esac
1834 done
1835 done
1836 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1837 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1838
1839 # When interrupted or exit'd, cleanup temporary files, and complete
1840 # config.log. We remove comments because anyway the quotes in there
1841 # would cause problems or look ugly.
1842 # WARNING: Use '\'' to represent an apostrophe within the trap.
1843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1844 trap 'exit_status=$?
1845 # Save into config.log some information that might help in debugging.
1846 {
1847 echo
1848
1849 cat <<\_ASBOX
1850 ## ---------------- ##
1851 ## Cache variables. ##
1852 ## ---------------- ##
1853 _ASBOX
1854 echo
1855 # The following way of writing the cache mishandles newlines in values,
1856 (
1857 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858 eval ac_val=\$$ac_var
1859 case $ac_val in #(
1860 *${as_nl}*)
1861 case $ac_var in #(
1862 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1863 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1864 esac
1865 case $ac_var in #(
1866 _ | IFS | as_nl) ;; #(
1867 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1868 *) $as_unset $ac_var ;;
1869 esac ;;
1870 esac
1871 done
1872 (set) 2>&1 |
1873 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1874 *${as_nl}ac_space=\ *)
1875 sed -n \
1876 "s/'\''/'\''\\\\'\'''\''/g;
1877 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1878 ;; #(
1879 *)
1880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1881 ;;
1882 esac |
1883 sort
1884 )
1885 echo
1886
1887 cat <<\_ASBOX
1888 ## ----------------- ##
1889 ## Output variables. ##
1890 ## ----------------- ##
1891 _ASBOX
1892 echo
1893 for ac_var in $ac_subst_vars
1894 do
1895 eval ac_val=\$$ac_var
1896 case $ac_val in
1897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 esac
1899 $as_echo "$ac_var='\''$ac_val'\''"
1900 done | sort
1901 echo
1902
1903 if test -n "$ac_subst_files"; then
1904 cat <<\_ASBOX
1905 ## ------------------- ##
1906 ## File substitutions. ##
1907 ## ------------------- ##
1908 _ASBOX
1909 echo
1910 for ac_var in $ac_subst_files
1911 do
1912 eval ac_val=\$$ac_var
1913 case $ac_val in
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 esac
1916 $as_echo "$ac_var='\''$ac_val'\''"
1917 done | sort
1918 echo
1919 fi
1920
1921 if test -s confdefs.h; then
1922 cat <<\_ASBOX
1923 ## ----------- ##
1924 ## confdefs.h. ##
1925 ## ----------- ##
1926 _ASBOX
1927 echo
1928 cat confdefs.h
1929 echo
1930 fi
1931 test "$ac_signal" != 0 &&
1932 $as_echo "$as_me: caught signal $ac_signal"
1933 $as_echo "$as_me: exit $exit_status"
1934 } >&5
1935 rm -f core *.core core.conftest.* &&
1936 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1937 exit $exit_status
1938 ' 0
1939 for ac_signal in 1 2 13 15; do
1940 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1941 done
1942 ac_signal=0
1943
1944 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1945 rm -f -r conftest* confdefs.h
1946
1947 # Predefined preprocessor variables.
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_NAME "$PACKAGE_NAME"
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1956 _ACEOF
1957
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1961 _ACEOF
1962
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_STRING "$PACKAGE_STRING"
1966 _ACEOF
1967
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1971 _ACEOF
1972
1973
1974 # Let the site file select an alternate cache file if it wants to.
1975 # Prefer an explicitly selected file to automatically selected ones.
1976 ac_site_file1=NONE
1977 ac_site_file2=NONE
1978 if test -n "$CONFIG_SITE"; then
1979 ac_site_file1=$CONFIG_SITE
1980 elif test "x$prefix" != xNONE; then
1981 ac_site_file1=$prefix/share/config.site
1982 ac_site_file2=$prefix/etc/config.site
1983 else
1984 ac_site_file1=$ac_default_prefix/share/config.site
1985 ac_site_file2=$ac_default_prefix/etc/config.site
1986 fi
1987 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1988 do
1989 test "x$ac_site_file" = xNONE && continue
1990 if test -r "$ac_site_file"; then
1991 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1992 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1993 sed 's/^/| /' "$ac_site_file" >&5
1994 . "$ac_site_file"
1995 fi
1996 done
1997
1998 if test -r "$cache_file"; then
1999 # Some versions of bash will fail to source /dev/null (special
2000 # files actually), so we avoid doing that.
2001 if test -f "$cache_file"; then
2002 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2003 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 case $cache_file in
2005 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2006 *) . "./$cache_file";;
2007 esac
2008 fi
2009 else
2010 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2011 $as_echo "$as_me: creating cache $cache_file" >&6;}
2012 >$cache_file
2013 fi
2014
2015 # Check that the precious variables saved in the cache have kept the same
2016 # value.
2017 ac_cache_corrupted=false
2018 for ac_var in $ac_precious_vars; do
2019 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2020 eval ac_new_set=\$ac_env_${ac_var}_set
2021 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2022 eval ac_new_val=\$ac_env_${ac_var}_value
2023 case $ac_old_set,$ac_new_set in
2024 set,)
2025 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2026 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2027 ac_cache_corrupted=: ;;
2028 ,set)
2029 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2030 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2031 ac_cache_corrupted=: ;;
2032 ,);;
2033 *)
2034 if test "x$ac_old_val" != "x$ac_new_val"; then
2035 # differences in whitespace do not lead to failure.
2036 ac_old_val_w=`echo x $ac_old_val`
2037 ac_new_val_w=`echo x $ac_new_val`
2038 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2039 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2040 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2041 ac_cache_corrupted=:
2042 else
2043 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2044 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2045 eval $ac_var=\$ac_old_val
2046 fi
2047 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2048 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2049 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2050 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 fi;;
2052 esac
2053 # Pass precious variables to config.status.
2054 if test "$ac_new_set" = set; then
2055 case $ac_new_val in
2056 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2057 *) ac_arg=$ac_var=$ac_new_val ;;
2058 esac
2059 case " $ac_configure_args " in
2060 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2061 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2062 esac
2063 fi
2064 done
2065 if $ac_cache_corrupted; then
2066 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2068 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2069 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2070 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2071 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2072 { (exit 1); exit 1; }; }
2073 fi
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091 ac_ext=c
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096
2097
2098 ac_ext=c
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105
2106
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2110 $as_echo_n "checking metadata... " >&6; }
2111
2112 META="$srcdir/META"
2113 _zfs_ac_meta_got_file=no
2114 if test -f "$META"; then
2115 _zfs_ac_meta_got_file=yes
2116
2117 ZFS_META_NAME=`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 '(?:NAME|PROJECT|PACKAGE)' $META`;
2127 if test -n "$ZFS_META_NAME"; then
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define ZFS_META_NAME "$ZFS_META_NAME"
2131 _ACEOF
2132
2133
2134 fi
2135
2136 ZFS_META_VERSION=`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 'VERSION' $META`;
2146 if test -n "$ZFS_META_VERSION"; then
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2150 _ACEOF
2151
2152
2153 fi
2154
2155 ZFS_META_RELEASE=`perl -n\
2156 -e "BEGIN { \\$key=shift @ARGV; }"\
2157 -e "next unless s/^\s*\\$key[:=]//i;"\
2158 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2159 -e "s/^\s+//;"\
2160 -e "s/\s+$//;"\
2161 -e "s/^(['\"])(.*)\1/\\$2/;"\
2162 -e "\\$val=\\$_;"\
2163 -e "END { print \\$val if defined \\$val; }"\
2164 'RELEASE' $META`;
2165 if test -n "$ZFS_META_RELEASE"; then
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2169 _ACEOF
2170
2171
2172 fi
2173
2174 ZFS_META_LICENSE=`perl -n\
2175 -e "BEGIN { \\$key=shift @ARGV; }"\
2176 -e "next unless s/^\s*\\$key[:=]//i;"\
2177 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2178 -e "s/^\s+//;"\
2179 -e "s/\s+$//;"\
2180 -e "s/^(['\"])(.*)\1/\\$2/;"\
2181 -e "\\$val=\\$_;"\
2182 -e "END { print \\$val if defined \\$val; }"\
2183 'LICENSE' $META`;
2184 if test -n "$ZFS_META_LICENSE"; then
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2188 _ACEOF
2189
2190
2191 fi
2192
2193 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2194 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2195 test -n "$ZFS_META_RELEASE" &&
2196 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2197
2198 cat >>confdefs.h <<_ACEOF
2199 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2200 _ACEOF
2201
2202
2203 fi
2204
2205 ZFS_META_DATA=`perl -n\
2206 -e "BEGIN { \\$key=shift @ARGV; }"\
2207 -e "next unless s/^\s*\\$key[:=]//i;"\
2208 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2209 -e "s/^\s+//;"\
2210 -e "s/\s+$//;"\
2211 -e "s/^(['\"])(.*)\1/\\$2/;"\
2212 -e "\\$val=\\$_;"\
2213 -e "END { print \\$val if defined \\$val; }"\
2214 'DATE' $META`;
2215 if test -n "$ZFS_META_DATA"; then
2216
2217 cat >>confdefs.h <<_ACEOF
2218 #define ZFS_META_DATA "$ZFS_META_DATA"
2219 _ACEOF
2220
2221
2222 fi
2223
2224 ZFS_META_AUTHOR=`perl -n\
2225 -e "BEGIN { \\$key=shift @ARGV; }"\
2226 -e "next unless s/^\s*\\$key[:=]//i;"\
2227 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2228 -e "s/^\s+//;"\
2229 -e "s/\s+$//;"\
2230 -e "s/^(['\"])(.*)\1/\\$2/;"\
2231 -e "\\$val=\\$_;"\
2232 -e "END { print \\$val if defined \\$val; }"\
2233 'AUTHOR' $META`;
2234 if test -n "$ZFS_META_AUTHOR"; then
2235
2236 cat >>confdefs.h <<_ACEOF
2237 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2238 _ACEOF
2239
2240
2241 fi
2242
2243
2244 ZFS_META_LT_CURRENT=`perl -n\
2245 -e "BEGIN { \\$key=shift @ARGV; }"\
2246 -e "next unless s/^\s*\\$key[:=]//i;"\
2247 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2248 -e "s/^\s+//;"\
2249 -e "s/\s+$//;"\
2250 -e "s/^(['\"])(.*)\1/\\$2/;"\
2251 -e "\\$val=\\$_;"\
2252 -e "END { print \\$val if defined \\$val; }"\
2253 'LT_CURRENT' $META`;
2254 ZFS_META_LT_REVISION=`perl -n\
2255 -e "BEGIN { \\$key=shift @ARGV; }"\
2256 -e "next unless s/^\s*\\$key[:=]//i;"\
2257 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2258 -e "s/^\s+//;"\
2259 -e "s/\s+$//;"\
2260 -e "s/^(['\"])(.*)\1/\\$2/;"\
2261 -e "\\$val=\\$_;"\
2262 -e "END { print \\$val if defined \\$val; }"\
2263 'LT_REVISION' $META`;
2264 ZFS_META_LT_AGE=`perl -n\
2265 -e "BEGIN { \\$key=shift @ARGV; }"\
2266 -e "next unless s/^\s*\\$key[:=]//i;"\
2267 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2268 -e "s/^\s+//;"\
2269 -e "s/\s+$//;"\
2270 -e "s/^(['\"])(.*)\1/\\$2/;"\
2271 -e "\\$val=\\$_;"\
2272 -e "END { print \\$val if defined \\$val; }"\
2273 'LT_AGE' $META`;
2274 if test -n "$ZFS_META_LT_CURRENT" \
2275 -o -n "$ZFS_META_LT_REVISION" \
2276 -o -n "$ZFS_META_LT_AGE"; then
2277 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2278 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2279 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2280
2281 cat >>confdefs.h <<_ACEOF
2282 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2283 _ACEOF
2284
2285
2286 cat >>confdefs.h <<_ACEOF
2287 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2288 _ACEOF
2289
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2293 _ACEOF
2294
2295
2296
2297
2298 fi
2299 fi
2300
2301 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2302 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2303
2304
2305 ac_aux_dir=
2306 for ac_dir in config "$srcdir"/config; do
2307 if test -f "$ac_dir/install-sh"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/install-sh -c"
2310 break
2311 elif test -f "$ac_dir/install.sh"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/install.sh -c"
2314 break
2315 elif test -f "$ac_dir/shtool"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/shtool install -c"
2318 break
2319 fi
2320 done
2321 if test -z "$ac_aux_dir"; then
2322 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2323 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2324 { (exit 1); exit 1; }; }
2325 fi
2326
2327 # These three variables are undocumented and unsupported,
2328 # and are intended to be withdrawn in a future Autoconf release.
2329 # They can cause serious problems if a builder's source tree is in a directory
2330 # whose full name contains unusual characters.
2331 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2334
2335
2336 # Make sure we can run config.sub.
2337 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2338 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2339 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2340 { (exit 1); exit 1; }; }
2341
2342 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2343 $as_echo_n "checking build system type... " >&6; }
2344 if test "${ac_cv_build+set}" = set; then
2345 $as_echo_n "(cached) " >&6
2346 else
2347 ac_build_alias=$build_alias
2348 test "x$ac_build_alias" = x &&
2349 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2350 test "x$ac_build_alias" = x &&
2351 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2352 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2353 { (exit 1); exit 1; }; }
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2356 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2357 { (exit 1); exit 1; }; }
2358
2359 fi
2360 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2361 $as_echo "$ac_cv_build" >&6; }
2362 case $ac_cv_build in
2363 *-*-*) ;;
2364 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2365 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2366 { (exit 1); exit 1; }; };;
2367 esac
2368 build=$ac_cv_build
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_build
2371 shift
2372 build_cpu=$1
2373 build_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 build_os=$*
2378 IFS=$ac_save_IFS
2379 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2380
2381
2382 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2383 $as_echo_n "checking host system type... " >&6; }
2384 if test "${ac_cv_host+set}" = set; then
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$host_alias" = x; then
2388 ac_cv_host=$ac_cv_build
2389 else
2390 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2391 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2392 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2393 { (exit 1); exit 1; }; }
2394 fi
2395
2396 fi
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2398 $as_echo "$ac_cv_host" >&6; }
2399 case $ac_cv_host in
2400 *-*-*) ;;
2401 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2402 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2403 { (exit 1); exit 1; }; };;
2404 esac
2405 host=$ac_cv_host
2406 ac_save_IFS=$IFS; IFS='-'
2407 set x $ac_cv_host
2408 shift
2409 host_cpu=$1
2410 host_vendor=$2
2411 shift; shift
2412 # Remember, the first character of IFS is used to create $*,
2413 # except with old shells:
2414 host_os=$*
2415 IFS=$ac_save_IFS
2416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2417
2418
2419 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2420 $as_echo_n "checking target system type... " >&6; }
2421 if test "${ac_cv_target+set}" = set; then
2422 $as_echo_n "(cached) " >&6
2423 else
2424 if test "x$target_alias" = x; then
2425 ac_cv_target=$ac_cv_host
2426 else
2427 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2428 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2429 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2430 { (exit 1); exit 1; }; }
2431 fi
2432
2433 fi
2434 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2435 $as_echo "$ac_cv_target" >&6; }
2436 case $ac_cv_target in
2437 *-*-*) ;;
2438 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2439 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2440 { (exit 1); exit 1; }; };;
2441 esac
2442 target=$ac_cv_target
2443 ac_save_IFS=$IFS; IFS='-'
2444 set x $ac_cv_target
2445 shift
2446 target_cpu=$1
2447 target_vendor=$2
2448 shift; shift
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2451 target_os=$*
2452 IFS=$ac_save_IFS
2453 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2454
2455
2456 # The aliases save the names the user supplied, while $host etc.
2457 # will get canonicalized.
2458 test -n "$target_alias" &&
2459 test "$program_prefix$program_suffix$program_transform_name" = \
2460 NONENONEs,x,x, &&
2461 program_prefix=${target_alias}-
2462
2463 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2464 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2465 # Check whether --enable-maintainer-mode was given.
2466 if test "${enable_maintainer_mode+set}" = set; then
2467 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2468 else
2469 USE_MAINTAINER_MODE=no
2470 fi
2471
2472 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2473 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2474 if test $USE_MAINTAINER_MODE = yes; then
2475 MAINTAINER_MODE_TRUE=
2476 MAINTAINER_MODE_FALSE='#'
2477 else
2478 MAINTAINER_MODE_TRUE='#'
2479 MAINTAINER_MODE_FALSE=
2480 fi
2481
2482 MAINT=$MAINTAINER_MODE_TRUE
2483
2484
2485 # Check whether --enable-silent-rules was given.
2486 if test "${enable_silent_rules+set}" = set; then
2487 enableval=$enable_silent_rules;
2488 fi
2489
2490 case $enable_silent_rules in
2491 yes) AM_DEFAULT_VERBOSITY=0;;
2492 no) AM_DEFAULT_VERBOSITY=1;;
2493 *) AM_DEFAULT_VERBOSITY=1;;
2494 esac
2495 AM_BACKSLASH='\'
2496
2497 am__api_version='1.11'
2498
2499 # Find a good install program. We prefer a C program (faster),
2500 # so one script is as good as another. But avoid the broken or
2501 # incompatible versions:
2502 # SysV /etc/install, /usr/sbin/install
2503 # SunOS /usr/etc/install
2504 # IRIX /sbin/install
2505 # AIX /bin/install
2506 # AmigaOS /C/install, which installs bootblocks on floppy discs
2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2510 # OS/2's system install, which has a completely different semantic
2511 # ./install, which can be erroneously created by make from ./install.sh.
2512 # Reject install programs that cannot install multiple files.
2513 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2514 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2515 if test -z "$INSTALL"; then
2516 if test "${ac_cv_path_install+set}" = set; then
2517 $as_echo_n "(cached) " >&6
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 # Account for people who put trailing slashes in PATH elements.
2525 case $as_dir/ in
2526 ./ | .// | /cC/* | \
2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2529 /usr/ucb/* ) ;;
2530 *)
2531 # OSF1 and SCO ODT 3.0 have their own names for install.
2532 # Don't use installbsd from OSF since it installs stuff as root
2533 # by default.
2534 for ac_prog in ginstall scoinst install; do
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2537 if test $ac_prog = install &&
2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # AIX install. It has an incompatible calling convention.
2540 :
2541 elif test $ac_prog = install &&
2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2543 # program-specific install script used by HP pwplus--don't use.
2544 :
2545 else
2546 rm -rf conftest.one conftest.two conftest.dir
2547 echo one > conftest.one
2548 echo two > conftest.two
2549 mkdir conftest.dir
2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2551 test -s conftest.one && test -s conftest.two &&
2552 test -s conftest.dir/conftest.one &&
2553 test -s conftest.dir/conftest.two
2554 then
2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2556 break 3
2557 fi
2558 fi
2559 fi
2560 done
2561 done
2562 ;;
2563 esac
2564
2565 done
2566 IFS=$as_save_IFS
2567
2568 rm -rf conftest.one conftest.two conftest.dir
2569
2570 fi
2571 if test "${ac_cv_path_install+set}" = set; then
2572 INSTALL=$ac_cv_path_install
2573 else
2574 # As a last resort, use the slow shell script. Don't cache a
2575 # value for INSTALL within a source directory, because that will
2576 # break other packages using the cache if that directory is
2577 # removed, or if the value is a relative name.
2578 INSTALL=$ac_install_sh
2579 fi
2580 fi
2581 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2582 $as_echo "$INSTALL" >&6; }
2583
2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2585 # It thinks the first close brace ends the variable substitution.
2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587
2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589
2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591
2592 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2593 $as_echo_n "checking whether build environment is sane... " >&6; }
2594 # Just in case
2595 sleep 1
2596 echo timestamp > conftest.file
2597 # Reject unsafe characters in $srcdir or the absolute working directory
2598 # name. Accept space and tab only in the latter.
2599 am_lf='
2600 '
2601 case `pwd` in
2602 *[\\\"\#\$\&\'\`$am_lf]*)
2603 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2604 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2605 { (exit 1); exit 1; }; };;
2606 esac
2607 case $srcdir in
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2609 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2610 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2611 { (exit 1); exit 1; }; };;
2612 esac
2613
2614 # Do `set' in a subshell so we don't clobber the current shell's
2615 # arguments. Must try -L first in case configure is actually a
2616 # symlink; some systems play weird games with the mod time of symlinks
2617 # (eg FreeBSD returns the mod time of the symlink's containing
2618 # directory).
2619 if (
2620 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2621 if test "$*" = "X"; then
2622 # -L didn't work.
2623 set X `ls -t "$srcdir/configure" conftest.file`
2624 fi
2625 rm -f conftest.file
2626 if test "$*" != "X $srcdir/configure conftest.file" \
2627 && test "$*" != "X conftest.file $srcdir/configure"; then
2628
2629 # If neither matched, then we have a broken ls. This can happen
2630 # if, for instance, CONFIG_SHELL is bash and it inherits a
2631 # broken ls alias from the environment. This has actually
2632 # happened. Such a system could not be considered "sane".
2633 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2634 alias in your environment" >&5
2635 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2636 alias in your environment" >&2;}
2637 { (exit 1); exit 1; }; }
2638 fi
2639
2640 test "$2" = conftest.file
2641 )
2642 then
2643 # Ok.
2644 :
2645 else
2646 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2647 Check your system clock" >&5
2648 $as_echo "$as_me: error: newly created file is older than distributed files!
2649 Check your system clock" >&2;}
2650 { (exit 1); exit 1; }; }
2651 fi
2652 { $as_echo "$as_me:$LINENO: result: yes" >&5
2653 $as_echo "yes" >&6; }
2654 test "$program_prefix" != NONE &&
2655 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2656 # Use a double $ so make ignores it.
2657 test "$program_suffix" != NONE &&
2658 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2659 # Double any \ or $.
2660 # By default was `s,x,x', remove it if useless.
2661 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2662 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2663
2664 # expand $ac_aux_dir to an absolute path
2665 am_aux_dir=`cd $ac_aux_dir && pwd`
2666
2667 if test x"${MISSING+set}" != xset; then
2668 case $am_aux_dir in
2669 *\ * | *\ *)
2670 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2671 *)
2672 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2673 esac
2674 fi
2675 # Use eval to expand $SHELL
2676 if eval "$MISSING --run true"; then
2677 am_missing_run="$MISSING --run "
2678 else
2679 am_missing_run=
2680 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2681 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2682 fi
2683
2684 if test x"${install_sh}" != xset; then
2685 case $am_aux_dir in
2686 *\ * | *\ *)
2687 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2688 *)
2689 install_sh="\${SHELL} $am_aux_dir/install-sh"
2690 esac
2691 fi
2692
2693 # Installed binaries are usually stripped using `strip' when the user
2694 # run `make install-strip'. However `strip' might not be the right
2695 # tool to use in cross-compilation environments, therefore Automake
2696 # will honor the `STRIP' environment variable to overrule this program.
2697 if test "$cross_compiling" != no; then
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2700 set dummy ${ac_tool_prefix}strip; ac_word=$2
2701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 $as_echo_n "checking for $ac_word... " >&6; }
2703 if test "${ac_cv_prog_STRIP+set}" = set; then
2704 $as_echo_n "(cached) " >&6
2705 else
2706 if test -n "$STRIP"; then
2707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2708 else
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH
2711 do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 STRIP=$ac_cv_prog_STRIP
2727 if test -n "$STRIP"; then
2728 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2729 $as_echo "$STRIP" >&6; }
2730 else
2731 { $as_echo "$as_me:$LINENO: result: no" >&5
2732 $as_echo "no" >&6; }
2733 fi
2734
2735
2736 fi
2737 if test -z "$ac_cv_prog_STRIP"; then
2738 ac_ct_STRIP=$STRIP
2739 # Extract the first word of "strip", so it can be a program name with args.
2740 set dummy strip; ac_word=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$ac_ct_STRIP"; then
2747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_ac_ct_STRIP="strip"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2767 if test -n "$ac_ct_STRIP"; then
2768 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2769 $as_echo "$ac_ct_STRIP" >&6; }
2770 else
2771 { $as_echo "$as_me:$LINENO: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775 if test "x$ac_ct_STRIP" = x; then
2776 STRIP=":"
2777 else
2778 case $cross_compiling:$ac_tool_warned in
2779 yes:)
2780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2782 ac_tool_warned=yes ;;
2783 esac
2784 STRIP=$ac_ct_STRIP
2785 fi
2786 else
2787 STRIP="$ac_cv_prog_STRIP"
2788 fi
2789
2790 fi
2791 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2792
2793 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2794 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2795 if test -z "$MKDIR_P"; then
2796 if test "${ac_cv_path_mkdir+set}" = set; then
2797 $as_echo_n "(cached) " >&6
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_prog in mkdir gmkdir; do
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2807 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2808 'mkdir (GNU coreutils) '* | \
2809 'mkdir (coreutils) '* | \
2810 'mkdir (fileutils) '4.1*)
2811 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2812 break 3;;
2813 esac
2814 done
2815 done
2816 done
2817 IFS=$as_save_IFS
2818
2819 fi
2820
2821 if test "${ac_cv_path_mkdir+set}" = set; then
2822 MKDIR_P="$ac_cv_path_mkdir -p"
2823 else
2824 # As a last resort, use the slow shell script. Don't cache a
2825 # value for MKDIR_P within a source directory, because that will
2826 # break other packages using the cache if that directory is
2827 # removed, or if the value is a relative name.
2828 test -d ./--version && rmdir ./--version
2829 MKDIR_P="$ac_install_sh -d"
2830 fi
2831 fi
2832 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2833 $as_echo "$MKDIR_P" >&6; }
2834
2835 mkdir_p="$MKDIR_P"
2836 case $mkdir_p in
2837 [\\/$]* | ?:[\\/]*) ;;
2838 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2839 esac
2840
2841 for ac_prog in gawk mawk nawk awk
2842 do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_AWK+set}" = set; then
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$AWK"; then
2851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_AWK="$ac_prog"
2861 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 AWK=$ac_cv_prog_AWK
2871 if test -n "$AWK"; then
2872 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2873 $as_echo "$AWK" >&6; }
2874 else
2875 { $as_echo "$as_me:$LINENO: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 test -n "$AWK" && break
2881 done
2882
2883 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885 set x ${MAKE-make}
2886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2888 $as_echo_n "(cached) " >&6
2889 else
2890 cat >conftest.make <<\_ACEOF
2891 SHELL = /bin/sh
2892 all:
2893 @echo '@@@%%%=$(MAKE)=@@@%%%'
2894 _ACEOF
2895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897 *@@@%%%=?*=@@@%%%*)
2898 eval ac_cv_prog_make_${ac_make}_set=yes;;
2899 *)
2900 eval ac_cv_prog_make_${ac_make}_set=no;;
2901 esac
2902 rm -f conftest.make
2903 fi
2904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905 { $as_echo "$as_me:$LINENO: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907 SET_MAKE=
2908 else
2909 { $as_echo "$as_me:$LINENO: result: no" >&5
2910 $as_echo "no" >&6; }
2911 SET_MAKE="MAKE=${MAKE-make}"
2912 fi
2913
2914 rm -rf .tst 2>/dev/null
2915 mkdir .tst 2>/dev/null
2916 if test -d .tst; then
2917 am__leading_dot=.
2918 else
2919 am__leading_dot=_
2920 fi
2921 rmdir .tst 2>/dev/null
2922
2923 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2925 # is not polluted with repeated "-I."
2926 am__isrc=' -I$(srcdir)'
2927 # test to see if srcdir already configured
2928 if test -f $srcdir/config.status; then
2929 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2930 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933 fi
2934
2935 # test whether we have cygpath
2936 if test -z "$CYGPATH_W"; then
2937 if (cygpath --version) >/dev/null 2>/dev/null; then
2938 CYGPATH_W='cygpath -w'
2939 else
2940 CYGPATH_W=echo
2941 fi
2942 fi
2943
2944
2945 # Define the identity of the package.
2946 PACKAGE=$ZFS_META_NAME
2947 VERSION=$ZFS_META_VERSION
2948
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE "$PACKAGE"
2952 _ACEOF
2953
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define VERSION "$VERSION"
2957 _ACEOF
2958
2959 # Some tools Automake needs.
2960
2961 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2962
2963
2964 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2965
2966
2967 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2968
2969
2970 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2971
2972
2973 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2974
2975 # We need awk for the "check" target. The system "awk" is bad on
2976 # some platforms.
2977 # Always define AMTAR for backward compatibility.
2978
2979 AMTAR=${AMTAR-"${am_missing_run}tar"}
2980
2981 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2982
2983
2984
2985
2986
2987 ac_config_headers="$ac_config_headers zfs_config.h"
2988
2989
2990 # Find a good install program. We prefer a C program (faster),
2991 # so one script is as good as another. But avoid the broken or
2992 # incompatible versions:
2993 # SysV /etc/install, /usr/sbin/install
2994 # SunOS /usr/etc/install
2995 # IRIX /sbin/install
2996 # AIX /bin/install
2997 # AmigaOS /C/install, which installs bootblocks on floppy discs
2998 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2999 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3000 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3001 # OS/2's system install, which has a completely different semantic
3002 # ./install, which can be erroneously created by make from ./install.sh.
3003 # Reject install programs that cannot install multiple files.
3004 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3005 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3006 if test -z "$INSTALL"; then
3007 if test "${ac_cv_path_install+set}" = set; then
3008 $as_echo_n "(cached) " >&6
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 # Account for people who put trailing slashes in PATH elements.
3016 case $as_dir/ in
3017 ./ | .// | /cC/* | \
3018 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3019 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3020 /usr/ucb/* ) ;;
3021 *)
3022 # OSF1 and SCO ODT 3.0 have their own names for install.
3023 # Don't use installbsd from OSF since it installs stuff as root
3024 # by default.
3025 for ac_prog in ginstall scoinst install; do
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3028 if test $ac_prog = install &&
3029 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3030 # AIX install. It has an incompatible calling convention.
3031 :
3032 elif test $ac_prog = install &&
3033 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3034 # program-specific install script used by HP pwplus--don't use.
3035 :
3036 else
3037 rm -rf conftest.one conftest.two conftest.dir
3038 echo one > conftest.one
3039 echo two > conftest.two
3040 mkdir conftest.dir
3041 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3042 test -s conftest.one && test -s conftest.two &&
3043 test -s conftest.dir/conftest.one &&
3044 test -s conftest.dir/conftest.two
3045 then
3046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3047 break 3
3048 fi
3049 fi
3050 fi
3051 done
3052 done
3053 ;;
3054 esac
3055
3056 done
3057 IFS=$as_save_IFS
3058
3059 rm -rf conftest.one conftest.two conftest.dir
3060
3061 fi
3062 if test "${ac_cv_path_install+set}" = set; then
3063 INSTALL=$ac_cv_path_install
3064 else
3065 # As a last resort, use the slow shell script. Don't cache a
3066 # value for INSTALL within a source directory, because that will
3067 # break other packages using the cache if that directory is
3068 # removed, or if the value is a relative name.
3069 INSTALL=$ac_install_sh
3070 fi
3071 fi
3072 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3073 $as_echo "$INSTALL" >&6; }
3074
3075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3076 # It thinks the first close brace ends the variable substitution.
3077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078
3079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080
3081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3082
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121 { $as_echo "$as_me:$LINENO: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$ac_cv_prog_CC"; then
3128 ac_ct_CC=$CC
3129 # Extract the first word of "gcc", so it can be a program name with args.
3130 set dummy gcc; ac_word=$2
3131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_ac_ct_CC="gcc"
3147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3149 fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161 { $as_echo "$as_me:$LINENO: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165 if test "x$ac_ct_CC" = x; then
3166 CC=""
3167 else
3168 case $cross_compiling:$ac_tool_warned in
3169 yes:)
3170 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned=yes ;;
3173 esac
3174 CC=$ac_ct_CC
3175 fi
3176 else
3177 CC="$ac_cv_prog_CC"
3178 fi
3179
3180 if test -z "$CC"; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}cc; ac_word=$2
3184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_CC="${ac_tool_prefix}cc"
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3212 $as_echo "$CC" >&6; }
3213 else
3214 { $as_echo "$as_me:$LINENO: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 fi
3220 fi
3221 if test -z "$CC"; then
3222 # Extract the first word of "cc", so it can be a program name with args.
3223 set dummy cc; ac_word=$2
3224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if test "${ac_cv_prog_CC+set}" = set; then
3227 $as_echo_n "(cached) " >&6
3228 else
3229 if test -n "$CC"; then
3230 ac_cv_prog_CC="$CC" # Let the user override the test.
3231 else
3232 ac_prog_rejected=no
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3241 ac_prog_rejected=yes
3242 continue
3243 fi
3244 ac_cv_prog_CC="cc"
3245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248 done
3249 done
3250 IFS=$as_save_IFS
3251
3252 if test $ac_prog_rejected = yes; then
3253 # We found a bogon in the path, so make sure we never use it.
3254 set dummy $ac_cv_prog_CC
3255 shift
3256 if test $# != 0; then
3257 # We chose a different compiler from the bogus one.
3258 # However, it has the same basename, so the bogon will be chosen
3259 # first if we set CC to just the basename; use the full file name.
3260 shift
3261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3262 fi
3263 fi
3264 fi
3265 fi
3266 CC=$ac_cv_prog_CC
3267 if test -n "$CC"; then
3268 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3269 $as_echo "$CC" >&6; }
3270 else
3271 { $as_echo "$as_me:$LINENO: result: no" >&5
3272 $as_echo "no" >&6; }
3273 fi
3274
3275
3276 fi
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in cl.exe
3280 do
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3293 do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302 done
3303 done
3304 IFS=$as_save_IFS
3305
3306 fi
3307 fi
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3312 else
3313 { $as_echo "$as_me:$LINENO: result: no" >&5
3314 $as_echo "no" >&6; }
3315 fi
3316
3317
3318 test -n "$CC" && break
3319 done
3320 fi
3321 if test -z "$CC"; then
3322 ac_ct_CC=$CC
3323 for ac_prog in cl.exe
3324 do
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3337 do
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CC="$ac_prog"
3343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi
3351 fi
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3356 else
3357 { $as_echo "$as_me:$LINENO: result: no" >&5
3358 $as_echo "no" >&6; }
3359 fi
3360
3361
3362 test -n "$ac_ct_CC" && break
3363 done
3364
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3375 fi
3376 fi
3377
3378 fi
3379
3380
3381 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3384 See \`config.log' for more details." >&5
3385 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3386 See \`config.log' for more details." >&2;}
3387 { (exit 1); exit 1; }; }; }
3388
3389 # Provide some information about the compiler.
3390 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3391 set X $ac_compile
3392 ac_compiler=$2
3393 { (ac_try="$ac_compiler --version >&5"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3399 $as_echo "$ac_try_echo") >&5
3400 (eval "$ac_compiler --version >&5") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404 { (ac_try="$ac_compiler -v >&5"
3405 case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_compiler -v >&5") 2>&5
3412 ac_status=$?
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }
3415 { (ac_try="$ac_compiler -V >&5"
3416 case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419 esac
3420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3421 $as_echo "$ac_try_echo") >&5
3422 (eval "$ac_compiler -V >&5") 2>&5
3423 ac_status=$?
3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }
3426
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433
3434 int
3435 main ()
3436 {
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 ac_clean_files_save=$ac_clean_files
3443 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3444 # Try to create an executable without -o first, disregard a.out.
3445 # It will help us diagnose broken compilers, and finding out an intuition
3446 # of exeext.
3447 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3448 $as_echo_n "checking for C compiler default output file name... " >&6; }
3449 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3450
3451 # The possible output files:
3452 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3453
3454 ac_rmfiles=
3455 for ac_file in $ac_files
3456 do
3457 case $ac_file in
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3460 esac
3461 done
3462 rm -f $ac_rmfiles
3463
3464 if { (ac_try="$ac_link_default"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3470 $as_echo "$ac_try_echo") >&5
3471 (eval "$ac_link_default") 2>&5
3472 ac_status=$?
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; then
3475 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3476 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3477 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3478 # so that the user can short-circuit this test for compilers unknown to
3479 # Autoconf.
3480 for ac_file in $ac_files ''
3481 do
3482 test -f "$ac_file" || continue
3483 case $ac_file in
3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3485 ;;
3486 [ab].out )
3487 # We found the default executable, but exeext='' is most
3488 # certainly right.
3489 break;;
3490 *.* )
3491 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3492 then :; else
3493 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494 fi
3495 # We set ac_cv_exeext here because the later test for it is not
3496 # safe: cross compilers may not add the suffix if given an `-o'
3497 # argument, so we may need to know it at that point already.
3498 # Even if this section looks crufty: it has the advantage of
3499 # actually working.
3500 break;;
3501 * )
3502 break;;
3503 esac
3504 done
3505 test "$ac_cv_exeext" = no && ac_cv_exeext=
3506
3507 else
3508 ac_file=''
3509 fi
3510
3511 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3512 $as_echo "$ac_file" >&6; }
3513 if test -z "$ac_file"; then
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3520 See \`config.log' for more details." >&5
3521 $as_echo "$as_me: error: C compiler cannot create executables
3522 See \`config.log' for more details." >&2;}
3523 { (exit 77); exit 77; }; }; }
3524 fi
3525
3526 ac_exeext=$ac_cv_exeext
3527
3528 # Check that the compiler produces executables we can run. If not, either
3529 # the compiler is broken, or we cross compile.
3530 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3531 $as_echo_n "checking whether the C compiler works... " >&6; }
3532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3533 # If not cross compiling, check that we can run a simple program.
3534 if test "$cross_compiling" != yes; then
3535 if { ac_try='./$ac_file'
3536 { (case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541 $as_echo "$ac_try_echo") >&5
3542 (eval "$ac_try") 2>&5
3543 ac_status=$?
3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3546 cross_compiling=no
3547 else
3548 if test "$cross_compiling" = maybe; then
3549 cross_compiling=yes
3550 else
3551 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3554 If you meant to cross compile, use \`--host'.
3555 See \`config.log' for more details." >&5
3556 $as_echo "$as_me: error: cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }; }
3560 fi
3561 fi
3562 fi
3563 { $as_echo "$as_me:$LINENO: result: yes" >&5
3564 $as_echo "yes" >&6; }
3565
3566 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3567 ac_clean_files=$ac_clean_files_save
3568 # Check that the compiler produces executables we can run. If not, either
3569 # the compiler is broken, or we cross compile.
3570 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3571 $as_echo_n "checking whether we are cross compiling... " >&6; }
3572 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3573 $as_echo "$cross_compiling" >&6; }
3574
3575 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3576 $as_echo_n "checking for suffix of executables... " >&6; }
3577 if { (ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; then
3588 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3589 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3590 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 # `rm'.
3592 for ac_file in conftest.exe conftest conftest.*; do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3596 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3597 break;;
3598 * ) break;;
3599 esac
3600 done
3601 else
3602 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3605 See \`config.log' for more details." >&5
3606 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details." >&2;}
3608 { (exit 1); exit 1; }; }; }
3609 fi
3610
3611 rm -f conftest$ac_cv_exeext
3612 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3613 $as_echo "$ac_cv_exeext" >&6; }
3614
3615 rm -f conftest.$ac_ext
3616 EXEEXT=$ac_cv_exeext
3617 ac_exeext=$EXEEXT
3618 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3619 $as_echo_n "checking for suffix of object files... " >&6; }
3620 if test "${ac_cv_objext+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3622 else
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629
3630 int
3631 main ()
3632 {
3633
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.o conftest.obj
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; then
3650 for ac_file in conftest.o conftest.obj conftest.*; do
3651 test -f "$ac_file" || continue;
3652 case $ac_file in
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655 break;;
3656 esac
3657 done
3658 else
3659 $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details." >&5
3666 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }; }
3669 fi
3670
3671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3672 fi
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3674 $as_echo "$ac_cv_objext" >&6; }
3675 OBJEXT=$ac_cv_objext
3676 ac_objext=$OBJEXT
3677 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3681 else
3682 cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h. */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3688
3689 int
3690 main ()
3691 {
3692 #ifndef __GNUC__
3693 choke me
3694 #endif
3695
3696 ;
3697 return 0;
3698 }
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (ac_try="$ac_compile"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707 $as_echo "$ac_try_echo") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_c_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_compiler_gnu=yes
3719 else
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_compiler_gnu=no
3724 fi
3725
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728
3729 fi
3730 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3733 GCC=yes
3734 else
3735 GCC=
3736 fi
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3746 ac_cv_prog_cc_g=no
3747 CFLAGS="-g"
3748 cat >conftest.$ac_ext <<_ACEOF
3749 /* confdefs.h. */
3750 _ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754
3755 int
3756 main ()
3757 {
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 rm -f conftest.$ac_objext
3764 if { (ac_try="$ac_compile"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3770 $as_echo "$ac_try_echo") >&5
3771 (eval "$ac_compile") 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && {
3778 test -z "$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3780 } && test -s conftest.$ac_objext; then
3781 ac_cv_prog_cc_g=yes
3782 else
3783 $as_echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3785
3786 CFLAGS=""
3787 cat >conftest.$ac_ext <<_ACEOF
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793
3794 int
3795 main ()
3796 {
3797
3798 ;
3799 return 0;
3800 }
3801 _ACEOF
3802 rm -f conftest.$ac_objext
3803 if { (ac_try="$ac_compile"
3804 case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3809 $as_echo "$ac_try_echo") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } && {
3817 test -z "$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 } && test -s conftest.$ac_objext; then
3820 :
3821 else
3822 $as_echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3824
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3826 CFLAGS="-g"
3827 cat >conftest.$ac_ext <<_ACEOF
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3851 ac_status=$?
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3860 ac_cv_prog_cc_g=yes
3861 else
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 fi
3870
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_c_werror_flag=$ac_save_c_werror_flag
3876 fi
3877 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3878 $as_echo "$ac_cv_prog_cc_g" >&6; }
3879 if test "$ac_test_CFLAGS" = set; then
3880 CFLAGS=$ac_save_CFLAGS
3881 elif test $ac_cv_prog_cc_g = yes; then
3882 if test "$GCC" = yes; then
3883 CFLAGS="-g -O2"
3884 else
3885 CFLAGS="-g"
3886 fi
3887 else
3888 if test "$GCC" = yes; then
3889 CFLAGS="-O2"
3890 else
3891 CFLAGS=
3892 fi
3893 fi
3894 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3895 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896 if test "${ac_cv_prog_cc_c89+set}" = set; then
3897 $as_echo_n "(cached) " >&6
3898 else
3899 ac_cv_prog_cc_c89=no
3900 ac_save_CC=$CC
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <stdarg.h>
3908 #include <stdio.h>
3909 #include <sys/types.h>
3910 #include <sys/stat.h>
3911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3912 struct buf { int x; };
3913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914 static char *e (p, i)
3915 char **p;
3916 int i;
3917 {
3918 return p[i];
3919 }
3920 static char *f (char * (*g) (char **, int), char **p, ...)
3921 {
3922 char *s;
3923 va_list v;
3924 va_start (v,p);
3925 s = g (p, va_arg (v,int));
3926 va_end (v);
3927 return s;
3928 }
3929
3930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3931 function prototypes and stuff, but not '\xHH' hex character constants.
3932 These don't provoke an error unfortunately, instead are silently treated
3933 as 'x'. The following induces an error, until -std is added to get
3934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3935 array size at least. It's necessary to write '\x00'==0 to get something
3936 that's true only with -std. */
3937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938
3939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3940 inside strings and character constants. */
3941 #define FOO(x) 'x'
3942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3943
3944 int test (int i, double x);
3945 struct s1 {int (*f) (int a);};
3946 struct s2 {int (*f) (double a);};
3947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3948 int argc;
3949 char **argv;
3950 int
3951 main ()
3952 {
3953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3960 do
3961 CC="$ac_save_CC $ac_arg"
3962 rm -f conftest.$ac_objext
3963 if { (ac_try="$ac_compile"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3969 $as_echo "$ac_try_echo") >&5
3970 (eval "$ac_compile") 2>conftest.er1
3971 ac_status=$?
3972 grep -v '^ *+' conftest.er1 >conftest.err
3973 rm -f conftest.er1
3974 cat conftest.err >&5
3975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && {
3977 test -z "$ac_c_werror_flag" ||
3978 test ! -s conftest.err
3979 } && test -s conftest.$ac_objext; then
3980 ac_cv_prog_cc_c89=$ac_arg
3981 else
3982 $as_echo "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985
3986 fi
3987
3988 rm -f core conftest.err conftest.$ac_objext
3989 test "x$ac_cv_prog_cc_c89" != "xno" && break
3990 done
3991 rm -f conftest.$ac_ext
3992 CC=$ac_save_CC
3993
3994 fi
3995 # AC_CACHE_VAL
3996 case "x$ac_cv_prog_cc_c89" in
3997 x)
3998 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3999 $as_echo "none needed" >&6; } ;;
4000 xno)
4001 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4002 $as_echo "unsupported" >&6; } ;;
4003 *)
4004 CC="$CC $ac_cv_prog_cc_c89"
4005 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4006 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4007 esac
4008
4009
4010 ac_ext=c
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015 DEPDIR="${am__leading_dot}deps"
4016
4017 ac_config_commands="$ac_config_commands depfiles"
4018
4019
4020 am_make=${MAKE-make}
4021 cat > confinc << 'END'
4022 am__doit:
4023 @echo this is the am__doit target
4024 .PHONY: am__doit
4025 END
4026 # If we don't find an include directive, just comment out the code.
4027 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4028 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4029 am__include="#"
4030 am__quote=
4031 _am_result=none
4032 # First try GNU make style include.
4033 echo "include confinc" > confmf
4034 # Ignore all kinds of additional output from `make'.
4035 case `$am_make -s -f confmf 2> /dev/null` in #(
4036 *the\ am__doit\ target*)
4037 am__include=include
4038 am__quote=
4039 _am_result=GNU
4040 ;;
4041 esac
4042 # Now try BSD make style include.
4043 if test "$am__include" = "#"; then
4044 echo '.include "confinc"' > confmf
4045 case `$am_make -s -f confmf 2> /dev/null` in #(
4046 *the\ am__doit\ target*)
4047 am__include=.include
4048 am__quote="\""
4049 _am_result=BSD
4050 ;;
4051 esac
4052 fi
4053
4054
4055 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4056 $as_echo "$_am_result" >&6; }
4057 rm -f confinc confmf
4058
4059 # Check whether --enable-dependency-tracking was given.
4060 if test "${enable_dependency_tracking+set}" = set; then
4061 enableval=$enable_dependency_tracking;
4062 fi
4063
4064 if test "x$enable_dependency_tracking" != xno; then
4065 am_depcomp="$ac_aux_dir/depcomp"
4066 AMDEPBACKSLASH='\'
4067 fi
4068 if test "x$enable_dependency_tracking" != xno; then
4069 AMDEP_TRUE=
4070 AMDEP_FALSE='#'
4071 else
4072 AMDEP_TRUE='#'
4073 AMDEP_FALSE=
4074 fi
4075
4076
4077
4078 depcc="$CC" am_compiler_list=
4079
4080 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named `D' -- because `-MD' means `put the output
4090 # in D'.
4091 mkdir conftest.dir
4092 # Copy depcomp to subdir because otherwise we won't find it if we're
4093 # using a relative directory.
4094 cp "$am_depcomp" conftest.dir
4095 cd conftest.dir
4096 # We will build objects and dependencies in a subdirectory because
4097 # it helps to detect inapplicable dependency modes. For instance
4098 # both Tru64's cc and ICC support -MD to output dependencies as a
4099 # side effect of compilation, but ICC will put the dependencies in
4100 # the current directory while Tru64 will put them in the object
4101 # directory.
4102 mkdir sub
4103
4104 am_cv_CC_dependencies_compiler_type=none
4105 if test "$am_compiler_list" = ""; then
4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4107 fi
4108 am__universal=false
4109 case " $depcc " in #(
4110 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4111 esac
4112
4113 for depmode in $am_compiler_list; do
4114 # Setup a source with many dependencies, because some compilers
4115 # like to wrap large dependency lists on column 80 (with \), and
4116 # we should not choose a depcomp mode which is confused by this.
4117 #
4118 # We need to recreate these files for each test, as the compiler may
4119 # overwrite some of them when testing with obscure command lines.
4120 # This happens at least with the AIX C compiler.
4121 : > sub/conftest.c
4122 for i in 1 2 3 4 5 6; do
4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4124 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4125 # Solaris 8's {/usr,}/bin/sh.
4126 touch sub/conftst$i.h
4127 done
4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4129
4130 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4131 # mode. It turns out that the SunPro C++ compiler does not properly
4132 # handle `-M -o', and we need to detect this. Also, some Intel
4133 # versions had trouble with output in subdirs
4134 am__obj=sub/conftest.${OBJEXT-o}
4135 am__minus_obj="-o $am__obj"
4136 case $depmode in
4137 gcc)
4138 # This depmode causes a compiler race in universal mode.
4139 test "$am__universal" = false || continue
4140 ;;
4141 nosideeffect)
4142 # after this tag, mechanisms are not by side-effect, so they'll
4143 # only be used when explicitly requested
4144 if test "x$enable_dependency_tracking" = xyes; then
4145 continue
4146 else
4147 break
4148 fi
4149 ;;
4150 msvisualcpp | msvcmsys)
4151 # This compiler won't grok `-c -o', but also, the minuso test has
4152 # not run yet. These depmodes are late enough in the game, and
4153 # so weak that their functioning should not be impacted.
4154 am__obj=conftest.${OBJEXT-o}
4155 am__minus_obj=
4156 ;;
4157 none) break ;;
4158 esac
4159 if depmode=$depmode \
4160 source=sub/conftest.c object=$am__obj \
4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4163 >/dev/null 2>conftest.err &&
4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4168 # icc doesn't choke on unknown options, it will just issue warnings
4169 # or remarks (even with -Werror). So we grep stderr for any message
4170 # that says an option was ignored or not supported.
4171 # When given -MP, icc 7.0 and 7.1 complain thusly:
4172 # icc: Command line warning: ignoring option '-M'; no argument required
4173 # The diagnosis changed in icc 8.0:
4174 # icc: Command line remark: option '-MP' not supported
4175 if (grep 'ignoring option' conftest.err ||
4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type=$depmode
4178 break
4179 fi
4180 fi
4181 done
4182
4183 cd ..
4184 rm -rf conftest.dir
4185 else
4186 am_cv_CC_dependencies_compiler_type=none
4187 fi
4188
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4191 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4193
4194 if
4195 test "x$enable_dependency_tracking" != xno \
4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4197 am__fastdepCC_TRUE=
4198 am__fastdepCC_FALSE='#'
4199 else
4200 am__fastdepCC_TRUE='#'
4201 am__fastdepCC_FALSE=
4202 fi
4203
4204
4205 case `pwd` in
4206 *\ * | *\ *)
4207 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4208 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4209 esac
4210
4211
4212
4213 macro_version='2.2.6b'
4214 macro_revision='1.3017'
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 ltmain="$ac_aux_dir/ltmain.sh"
4229
4230 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232 if test "${ac_cv_path_SED+set}" = set; then
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4236 for ac_i in 1 2 3 4 5 6 7; do
4237 ac_script="$ac_script$as_nl$ac_script"
4238 done
4239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4240 $as_unset ac_script || ac_script=
4241 if test -z "$SED"; then
4242 ac_path_SED_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in sed gsed; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4253 # Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255 case `"$ac_path_SED" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 ac_count=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED="$ac_path_SED"
4273 ac_path_SED_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_SED_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_SED"; then
4287 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4288 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4289 { (exit 1); exit 1; }; }
4290 fi
4291 else
4292 ac_cv_path_SED=$SED
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4297 $as_echo "$ac_cv_path_SED" >&6; }
4298 SED="$ac_cv_path_SED"
4299 rm -f conftest.sed
4300
4301 test -z "$SED" && SED=sed
4302 Xsed="$SED -e 1s/^X//"
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4316 if test "${ac_cv_path_GREP+set}" = set; then
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -z "$GREP"; then
4320 ac_path_GREP_found=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_prog in grep ggrep; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4330 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4331 # Check for GNU ac_path_GREP and select it if it is found.
4332 # Check for GNU $ac_path_GREP
4333 case `"$ac_path_GREP" --version 2>&1` in
4334 *GNU*)
4335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4336 *)
4337 ac_count=0
4338 $as_echo_n 0123456789 >"conftest.in"
4339 while :
4340 do
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'GREP' >> "conftest.nl"
4345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347 ac_count=`expr $ac_count + 1`
4348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_GREP="$ac_path_GREP"
4351 ac_path_GREP_max=$ac_count
4352 fi
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4355 done
4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 esac
4358
4359 $ac_path_GREP_found && break 3
4360 done
4361 done
4362 done
4363 IFS=$as_save_IFS
4364 if test -z "$ac_cv_path_GREP"; then
4365 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4366 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4367 { (exit 1); exit 1; }; }
4368 fi
4369 else
4370 ac_cv_path_GREP=$GREP
4371 fi
4372
4373 fi
4374 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4375 $as_echo "$ac_cv_path_GREP" >&6; }
4376 GREP="$ac_cv_path_GREP"
4377
4378
4379 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4380 $as_echo_n "checking for egrep... " >&6; }
4381 if test "${ac_cv_path_EGREP+set}" = set; then
4382 $as_echo_n "(cached) " >&6
4383 else
4384 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4385 then ac_cv_path_EGREP="$GREP -E"
4386 else
4387 if test -z "$EGREP"; then
4388 ac_path_EGREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in egrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4399 # Check for GNU ac_path_EGREP and select it if it is found.
4400 # Check for GNU $ac_path_EGREP
4401 case `"$ac_path_EGREP" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4404 *)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'EGREP' >> "conftest.nl"
4413 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 ac_count=`expr $ac_count + 1`
4416 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_EGREP="$ac_path_EGREP"
4419 ac_path_EGREP_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427 $ac_path_EGREP_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_EGREP"; then
4433 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4434 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4435 { (exit 1); exit 1; }; }
4436 fi
4437 else
4438 ac_cv_path_EGREP=$EGREP
4439 fi
4440
4441 fi
4442 fi
4443 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4444 $as_echo "$ac_cv_path_EGREP" >&6; }
4445 EGREP="$ac_cv_path_EGREP"
4446
4447
4448 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4449 $as_echo_n "checking for fgrep... " >&6; }
4450 if test "${ac_cv_path_FGREP+set}" = set; then
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4454 then ac_cv_path_FGREP="$GREP -F"
4455 else
4456 if test -z "$FGREP"; then
4457 ac_path_FGREP_found=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in fgrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4467 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4468 # Check for GNU ac_path_FGREP and select it if it is found.
4469 # Check for GNU $ac_path_FGREP
4470 case `"$ac_path_FGREP" --version 2>&1` in
4471 *GNU*)
4472 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4473 *)
4474 ac_count=0
4475 $as_echo_n 0123456789 >"conftest.in"
4476 while :
4477 do
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'FGREP' >> "conftest.nl"
4482 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 ac_count=`expr $ac_count + 1`
4485 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_FGREP="$ac_path_FGREP"
4488 ac_path_FGREP_max=$ac_count
4489 fi
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4492 done
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 esac
4495
4496 $ac_path_FGREP_found && break 3
4497 done
4498 done
4499 done
4500 IFS=$as_save_IFS
4501 if test -z "$ac_cv_path_FGREP"; then
4502 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4503 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4504 { (exit 1); exit 1; }; }
4505 fi
4506 else
4507 ac_cv_path_FGREP=$FGREP
4508 fi
4509
4510 fi
4511 fi
4512 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4513 $as_echo "$ac_cv_path_FGREP" >&6; }
4514 FGREP="$ac_cv_path_FGREP"
4515
4516
4517 test -z "$GREP" && GREP=grep
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537 # Check whether --with-gnu-ld was given.
4538 if test "${with_gnu_ld+set}" = set; then
4539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4540 else
4541 with_gnu_ld=no
4542 fi
4543
4544 ac_prog=ld
4545 if test "$GCC" = yes; then
4546 # Check if gcc -print-prog-name=ld gives a path.
4547 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4548 $as_echo_n "checking for ld used by $CC... " >&6; }
4549 case $host in
4550 *-*-mingw*)
4551 # gcc leaves a trailing carriage return which upsets mingw
4552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4553 *)
4554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4555 esac
4556 case $ac_prog in
4557 # Accept absolute paths.
4558 [\\/]* | ?:[\\/]*)
4559 re_direlt='/[^/][^/]*/\.\./'
4560 # Canonicalize the pathname of ld
4561 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4562 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4563 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4564 done
4565 test -z "$LD" && LD="$ac_prog"
4566 ;;
4567 "")
4568 # If it fails, then pretend we aren't using GCC.
4569 ac_prog=ld
4570 ;;
4571 *)
4572 # If it is relative, then search for the first ld in PATH.
4573 with_gnu_ld=unknown
4574 ;;
4575 esac
4576 elif test "$with_gnu_ld" = yes; then
4577 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4578 $as_echo_n "checking for GNU ld... " >&6; }
4579 else
4580 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4581 $as_echo_n "checking for non-GNU ld... " >&6; }
4582 fi
4583 if test "${lt_cv_path_LD+set}" = set; then
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if test -z "$LD"; then
4587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4588 for ac_dir in $PATH; do
4589 IFS="$lt_save_ifs"
4590 test -z "$ac_dir" && ac_dir=.
4591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4592 lt_cv_path_LD="$ac_dir/$ac_prog"
4593 # Check to see if the program is GNU ld. I'd rather use --version,
4594 # but apparently some variants of GNU ld only accept -v.
4595 # Break only if it was the GNU/non-GNU ld that we prefer.
4596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4597 *GNU* | *'with BFD'*)
4598 test "$with_gnu_ld" != no && break
4599 ;;
4600 *)
4601 test "$with_gnu_ld" != yes && break
4602 ;;
4603 esac
4604 fi
4605 done
4606 IFS="$lt_save_ifs"
4607 else
4608 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4609 fi
4610 fi
4611
4612 LD="$lt_cv_path_LD"
4613 if test -n "$LD"; then
4614 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4615 $as_echo "$LD" >&6; }
4616 else
4617 { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4621 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4622 { (exit 1); exit 1; }; }
4623 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4624 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4625 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4626 $as_echo_n "(cached) " >&6
4627 else
4628 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4629 case `$LD -v 2>&1 </dev/null` in
4630 *GNU* | *'with BFD'*)
4631 lt_cv_prog_gnu_ld=yes
4632 ;;
4633 *)
4634 lt_cv_prog_gnu_ld=no
4635 ;;
4636 esac
4637 fi
4638 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4639 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4640 with_gnu_ld=$lt_cv_prog_gnu_ld
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4651 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4652 if test "${lt_cv_path_NM+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4654 else
4655 if test -n "$NM"; then
4656 # Let the user override the test.
4657 lt_cv_path_NM="$NM"
4658 else
4659 lt_nm_to_check="${ac_tool_prefix}nm"
4660 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4661 lt_nm_to_check="$lt_nm_to_check nm"
4662 fi
4663 for lt_tmp_nm in $lt_nm_to_check; do
4664 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4665 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4666 IFS="$lt_save_ifs"
4667 test -z "$ac_dir" && ac_dir=.
4668 tmp_nm="$ac_dir/$lt_tmp_nm"
4669 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4670 # Check to see if the nm accepts a BSD-compat flag.
4671 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4672 # nm: unknown option "B" ignored
4673 # Tru64's nm complains that /dev/null is an invalid object file
4674 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4675 */dev/null* | *'Invalid file or object type'*)
4676 lt_cv_path_NM="$tmp_nm -B"
4677 break
4678 ;;
4679 *)
4680 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4681 */dev/null*)
4682 lt_cv_path_NM="$tmp_nm -p"
4683 break
4684 ;;
4685 *)
4686 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4687 continue # so that we can try to find one that supports BSD flags
4688 ;;
4689 esac
4690 ;;
4691 esac
4692 fi
4693 done
4694 IFS="$lt_save_ifs"
4695 done
4696 : ${lt_cv_path_NM=no}
4697 fi
4698 fi
4699 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4700 $as_echo "$lt_cv_path_NM" >&6; }
4701 if test "$lt_cv_path_NM" != "no"; then
4702 NM="$lt_cv_path_NM"
4703 else
4704 # Didn't find any BSD compatible name lister, look for dumpbin.
4705 if test -n "$ac_tool_prefix"; then
4706 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4707 do
4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$DUMPBIN"; then
4716 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4728 fi
4729 done
4730 done
4731 IFS=$as_save_IFS
4732
4733 fi
4734 fi
4735 DUMPBIN=$ac_cv_prog_DUMPBIN
4736 if test -n "$DUMPBIN"; then
4737 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4738 $as_echo "$DUMPBIN" >&6; }
4739 else
4740 { $as_echo "$as_me:$LINENO: result: no" >&5
4741 $as_echo "no" >&6; }
4742 fi
4743
4744
4745 test -n "$DUMPBIN" && break
4746 done
4747 fi
4748 if test -z "$DUMPBIN"; then
4749 ac_ct_DUMPBIN=$DUMPBIN
4750 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751 do
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$ac_ct_DUMPBIN"; then
4760 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4770 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777 fi
4778 fi
4779 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4780 if test -n "$ac_ct_DUMPBIN"; then
4781 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4782 $as_echo "$ac_ct_DUMPBIN" >&6; }
4783 else
4784 { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789 test -n "$ac_ct_DUMPBIN" && break
4790 done
4791
4792 if test "x$ac_ct_DUMPBIN" = x; then
4793 DUMPBIN=":"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 DUMPBIN=$ac_ct_DUMPBIN
4802 fi
4803 fi
4804
4805
4806 if test "$DUMPBIN" != ":"; then
4807 NM="$DUMPBIN"
4808 fi
4809 fi
4810 test -z "$NM" && NM=nm
4811
4812
4813
4814
4815
4816
4817 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4818 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4819 if test "${lt_cv_nm_interface+set}" = set; then
4820 $as_echo_n "(cached) " >&6
4821 else
4822 lt_cv_nm_interface="BSD nm"
4823 echo "int some_variable = 0;" > conftest.$ac_ext
4824 (eval echo "\"\$as_me:4824: $ac_compile\"" >&5)
4825 (eval "$ac_compile" 2>conftest.err)
4826 cat conftest.err >&5
4827 (eval echo "\"\$as_me:4827: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4828 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4829 cat conftest.err >&5
4830 (eval echo "\"\$as_me:4830: output\"" >&5)
4831 cat conftest.out >&5
4832 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4833 lt_cv_nm_interface="MS dumpbin"
4834 fi
4835 rm -f conftest*
4836 fi
4837 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4838 $as_echo "$lt_cv_nm_interface" >&6; }
4839
4840 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4841 $as_echo_n "checking whether ln -s works... " >&6; }
4842 LN_S=$as_ln_s
4843 if test "$LN_S" = "ln -s"; then
4844 { $as_echo "$as_me:$LINENO: result: yes" >&5
4845 $as_echo "yes" >&6; }
4846 else
4847 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4848 $as_echo "no, using $LN_S" >&6; }
4849 fi
4850
4851 # find the maximum length of command line arguments
4852 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4853 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4854 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4855 $as_echo_n "(cached) " >&6
4856 else
4857 i=0
4858 teststring="ABCD"
4859
4860 case $build_os in
4861 msdosdjgpp*)
4862 # On DJGPP, this test can blow up pretty badly due to problems in libc
4863 # (any single argument exceeding 2000 bytes causes a buffer overrun
4864 # during glob expansion). Even if it were fixed, the result of this
4865 # check would be larger than it should be.
4866 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4867 ;;
4868
4869 gnu*)
4870 # Under GNU Hurd, this test is not required because there is
4871 # no limit to the length of command line arguments.
4872 # Libtool will interpret -1 as no limit whatsoever
4873 lt_cv_sys_max_cmd_len=-1;
4874 ;;
4875
4876 cygwin* | mingw* | cegcc*)
4877 # On Win9x/ME, this test blows up -- it succeeds, but takes
4878 # about 5 minutes as the teststring grows exponentially.
4879 # Worse, since 9x/ME are not pre-emptively multitasking,
4880 # you end up with a "frozen" computer, even though with patience
4881 # the test eventually succeeds (with a max line length of 256k).
4882 # Instead, let's just punt: use the minimum linelength reported by
4883 # all of the supported platforms: 8192 (on NT/2K/XP).
4884 lt_cv_sys_max_cmd_len=8192;
4885 ;;
4886
4887 amigaos*)
4888 # On AmigaOS with pdksh, this test takes hours, literally.
4889 # So we just punt and use a minimum line length of 8192.
4890 lt_cv_sys_max_cmd_len=8192;
4891 ;;
4892
4893 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4894 # This has been around since 386BSD, at least. Likely further.
4895 if test -x /sbin/sysctl; then
4896 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4897 elif test -x /usr/sbin/sysctl; then
4898 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4899 else
4900 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4901 fi
4902 # And add a safety zone
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 ;;
4906
4907 interix*)
4908 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4909 lt_cv_sys_max_cmd_len=196608
4910 ;;
4911
4912 osf*)
4913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4915 # nice to cause kernel panics so lets avoid the loop below.
4916 # First set a reasonable default.
4917 lt_cv_sys_max_cmd_len=16384
4918 #
4919 if test -x /sbin/sysconfig; then
4920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4921 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4922 esac
4923 fi
4924 ;;
4925 sco3.2v5*)
4926 lt_cv_sys_max_cmd_len=102400
4927 ;;
4928 sysv5* | sco5v6* | sysv4.2uw2*)
4929 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4930 if test -n "$kargmax"; then
4931 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4932 else
4933 lt_cv_sys_max_cmd_len=32768
4934 fi
4935 ;;
4936 *)
4937 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4938 if test -n "$lt_cv_sys_max_cmd_len"; then
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4941 else
4942 # Make teststring a little bigger before we do anything with it.
4943 # a 1K string should be a reasonable start.
4944 for i in 1 2 3 4 5 6 7 8 ; do
4945 teststring=$teststring$teststring
4946 done
4947 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4948 # If test is not a shell built-in, we'll probably end up computing a
4949 # maximum length that is only half of the actual maximum length, but
4950 # we can't tell.
4951 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4952 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4953 test $i != 17 # 1/2 MB should be enough
4954 do
4955 i=`expr $i + 1`
4956 teststring=$teststring$teststring
4957 done
4958 # Only check the string length outside the loop.
4959 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4960 teststring=
4961 # Add a significant safety factor because C++ compilers can tack on
4962 # massive amounts of additional arguments before passing them to the
4963 # linker. It appears as though 1/2 is a usable value.
4964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4965 fi
4966 ;;
4967 esac
4968
4969 fi
4970
4971 if test -n $lt_cv_sys_max_cmd_len ; then
4972 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4974 else
4975 { $as_echo "$as_me:$LINENO: result: none" >&5
4976 $as_echo "none" >&6; }
4977 fi
4978 max_cmd_len=$lt_cv_sys_max_cmd_len
4979
4980
4981
4982
4983
4984
4985 : ${CP="cp -f"}
4986 : ${MV="mv -f"}
4987 : ${RM="rm -f"}
4988
4989 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4991 # Try some XSI features
4992 xsi_shell=no
4993 ( _lt_dummy="a/b/c"
4994 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4995 = c,a/b,, \
4996 && eval 'test $(( 1 + 1 )) -eq 2 \
4997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4998 && xsi_shell=yes
4999 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5000 $as_echo "$xsi_shell" >&6; }
5001
5002
5003 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5004 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5005 lt_shell_append=no
5006 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5007 >/dev/null 2>&1 \
5008 && lt_shell_append=yes
5009 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5010 $as_echo "$lt_shell_append" >&6; }
5011
5012
5013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5014 lt_unset=unset
5015 else
5016 lt_unset=false
5017 fi
5018
5019
5020
5021
5022
5023 # test EBCDIC or ASCII
5024 case `echo X|tr X '\101'` in
5025 A) # ASCII based system
5026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5027 lt_SP2NL='tr \040 \012'
5028 lt_NL2SP='tr \015\012 \040\040'
5029 ;;
5030 *) # EBCDIC based system
5031 lt_SP2NL='tr \100 \n'
5032 lt_NL2SP='tr \r\n \100\100'
5033 ;;
5034 esac
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5045 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5046 if test "${lt_cv_ld_reload_flag+set}" = set; then
5047 $as_echo_n "(cached) " >&6
5048 else
5049 lt_cv_ld_reload_flag='-r'
5050 fi
5051 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5052 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5053 reload_flag=$lt_cv_ld_reload_flag
5054 case $reload_flag in
5055 "" | " "*) ;;
5056 *) reload_flag=" $reload_flag" ;;
5057 esac
5058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5059 case $host_os in
5060 darwin*)
5061 if test "$GCC" = yes; then
5062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5063 else
5064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5065 fi
5066 ;;
5067 esac
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 if test -n "$ac_tool_prefix"; then
5078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$OBJDUMP"; then
5086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5098 fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 OBJDUMP=$ac_cv_prog_OBJDUMP
5106 if test -n "$OBJDUMP"; then
5107 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5108 $as_echo "$OBJDUMP" >&6; }
5109 else
5110 { $as_echo "$as_me:$LINENO: result: no" >&5
5111 $as_echo "no" >&6; }
5112 fi
5113
5114
5115 fi
5116 if test -z "$ac_cv_prog_OBJDUMP"; then
5117 ac_ct_OBJDUMP=$OBJDUMP
5118 # Extract the first word of "objdump", so it can be a program name with args.
5119 set dummy objdump; ac_word=$2
5120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$ac_ct_OBJDUMP"; then
5126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5136 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143 fi
5144 fi
5145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5146 if test -n "$ac_ct_OBJDUMP"; then
5147 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5148 $as_echo "$ac_ct_OBJDUMP" >&6; }
5149 else
5150 { $as_echo "$as_me:$LINENO: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154 if test "x$ac_ct_OBJDUMP" = x; then
5155 OBJDUMP="false"
5156 else
5157 case $cross_compiling:$ac_tool_warned in
5158 yes:)
5159 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163 OBJDUMP=$ac_ct_OBJDUMP
5164 fi
5165 else
5166 OBJDUMP="$ac_cv_prog_OBJDUMP"
5167 fi
5168
5169 test -z "$OBJDUMP" && OBJDUMP=objdump
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5180 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5181 if test "${lt_cv_deplibs_check_method+set}" = set; then
5182 $as_echo_n "(cached) " >&6
5183 else
5184 lt_cv_file_magic_cmd='$MAGIC_CMD'
5185 lt_cv_file_magic_test_file=
5186 lt_cv_deplibs_check_method='unknown'
5187 # Need to set the preceding variable on all platforms that support
5188 # interlibrary dependencies.
5189 # 'none' -- dependencies not supported.
5190 # `unknown' -- same as none, but documents that we really don't know.
5191 # 'pass_all' -- all dependencies passed with no checks.
5192 # 'test_compile' -- check by making test program.
5193 # 'file_magic [[regex]]' -- check by looking for files in library path
5194 # which responds to the $file_magic_cmd with a given extended regex.
5195 # If you have `file' or equivalent on your system and you're not sure
5196 # whether `pass_all' will *always* work, you probably want this one.
5197
5198 case $host_os in
5199 aix[4-9]*)
5200 lt_cv_deplibs_check_method=pass_all
5201 ;;
5202
5203 beos*)
5204 lt_cv_deplibs_check_method=pass_all
5205 ;;
5206
5207 bsdi[45]*)
5208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5209 lt_cv_file_magic_cmd='/usr/bin/file -L'
5210 lt_cv_file_magic_test_file=/shlib/libc.so
5211 ;;
5212
5213 cygwin*)
5214 # func_win32_libid is a shell function defined in ltmain.sh
5215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5216 lt_cv_file_magic_cmd='func_win32_libid'
5217 ;;
5218
5219 mingw* | pw32*)
5220 # Base MSYS/MinGW do not provide the 'file' command needed by
5221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5222 # unless we find 'file', for example because we are cross-compiling.
5223 if ( file / ) >/dev/null 2>&1; then
5224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5225 lt_cv_file_magic_cmd='func_win32_libid'
5226 else
5227 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5228 lt_cv_file_magic_cmd='$OBJDUMP -f'
5229 fi
5230 ;;
5231
5232 cegcc)
5233 # use the weaker test based on 'objdump'. See mingw*.
5234 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5235 lt_cv_file_magic_cmd='$OBJDUMP -f'
5236 ;;
5237
5238 darwin* | rhapsody*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 freebsd* | dragonfly*)
5243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5244 case $host_cpu in
5245 i*86 )
5246 # Not sure whether the presence of OpenBSD here was a mistake.
5247 # Let's accept both of them until this is cleared up.
5248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5251 ;;
5252 esac
5253 else
5254 lt_cv_deplibs_check_method=pass_all
5255 fi
5256 ;;
5257
5258 gnu*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 hpux10.20* | hpux11*)
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 case $host_cpu in
5265 ia64*)
5266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5268 ;;
5269 hppa*64*)
5270 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]'
5271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5272 ;;
5273 *)
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5276 ;;
5277 esac
5278 ;;
5279
5280 interix[3-9]*)
5281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5283 ;;
5284
5285 irix5* | irix6* | nonstopux*)
5286 case $LD in
5287 *-32|*"-32 ") libmagic=32-bit;;
5288 *-n32|*"-n32 ") libmagic=N32;;
5289 *-64|*"-64 ") libmagic=64-bit;;
5290 *) libmagic=never-match;;
5291 esac
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 # This must be Linux ELF.
5296 linux* | k*bsd*-gnu)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300 netbsd*)
5301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5303 else
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5305 fi
5306 ;;
5307
5308 newos6*)
5309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5310 lt_cv_file_magic_cmd=/usr/bin/file
5311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5312 ;;
5313
5314 *nto* | *qnx*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318 openbsd*)
5319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5321 else
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5323 fi
5324 ;;
5325
5326 osf3* | osf4* | osf5*)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329
5330 rdos*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333
5334 solaris*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342 sysv4 | sysv4.3*)
5343 case $host_vendor in
5344 motorola)
5345 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]'
5346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5347 ;;
5348 ncr)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351 sequent)
5352 lt_cv_file_magic_cmd='/bin/file'
5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5354 ;;
5355 sni)
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5358 lt_cv_file_magic_test_file=/lib/libc.so
5359 ;;
5360 siemens)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363 pc)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366 esac
5367 ;;
5368
5369 tpf*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372 esac
5373
5374 fi
5375 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5376 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5377 file_magic_cmd=$lt_cv_file_magic_cmd
5378 deplibs_check_method=$lt_cv_deplibs_check_method
5379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392 if test -n "$ac_tool_prefix"; then
5393 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5394 set dummy ${ac_tool_prefix}ar; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_prog_AR+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -n "$AR"; then
5401 ac_cv_prog_AR="$AR" # Let the user override the test.
5402 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_AR="${ac_tool_prefix}ar"
5411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418 fi
5419 fi
5420 AR=$ac_cv_prog_AR
5421 if test -n "$AR"; then
5422 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5423 $as_echo "$AR" >&6; }
5424 else
5425 { $as_echo "$as_me:$LINENO: result: no" >&5
5426 $as_echo "no" >&6; }
5427 fi
5428
5429
5430 fi
5431 if test -z "$ac_cv_prog_AR"; then
5432 ac_ct_AR=$AR
5433 # Extract the first word of "ar", so it can be a program name with args.
5434 set dummy ar; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 if test -n "$ac_ct_AR"; then
5441 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5442 else
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450 ac_cv_prog_ac_ct_AR="ar"
5451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454 done
5455 done
5456 IFS=$as_save_IFS
5457
5458 fi
5459 fi
5460 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5461 if test -n "$ac_ct_AR"; then
5462 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5463 $as_echo "$ac_ct_AR" >&6; }
5464 else
5465 { $as_echo "$as_me:$LINENO: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468
5469 if test "x$ac_ct_AR" = x; then
5470 AR="false"
5471 else
5472 case $cross_compiling:$ac_tool_warned in
5473 yes:)
5474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478 AR=$ac_ct_AR
5479 fi
5480 else
5481 AR="$ac_cv_prog_AR"
5482 fi
5483
5484 test -z "$AR" && AR=ar
5485 test -z "$AR_FLAGS" && AR_FLAGS=cru
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 if test -n "$ac_tool_prefix"; then
5498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5499 set dummy ${ac_tool_prefix}strip; ac_word=$2
5500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 $as_echo_n "checking for $ac_word... " >&6; }
5502 if test "${ac_cv_prog_STRIP+set}" = set; then
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -n "$STRIP"; then
5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5507 else
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 for as_dir in $PATH
5510 do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5516 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519 done
5520 done
5521 IFS=$as_save_IFS
5522
5523 fi
5524 fi
5525 STRIP=$ac_cv_prog_STRIP
5526 if test -n "$STRIP"; then
5527 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5528 $as_echo "$STRIP" >&6; }
5529 else
5530 { $as_echo "$as_me:$LINENO: result: no" >&5
5531 $as_echo "no" >&6; }
5532 fi
5533
5534
5535 fi
5536 if test -z "$ac_cv_prog_STRIP"; then
5537 ac_ct_STRIP=$STRIP
5538 # Extract the first word of "strip", so it can be a program name with args.
5539 set dummy strip; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$ac_ct_STRIP"; then
5546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_ac_ct_STRIP="strip"
5556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5558 fi
5559 done
5560 done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5566 if test -n "$ac_ct_STRIP"; then
5567 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5568 $as_echo "$ac_ct_STRIP" >&6; }
5569 else
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574 if test "x$ac_ct_STRIP" = x; then
5575 STRIP=":"
5576 else
5577 case $cross_compiling:$ac_tool_warned in
5578 yes:)
5579 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5581 ac_tool_warned=yes ;;
5582 esac
5583 STRIP=$ac_ct_STRIP
5584 fi
5585 else
5586 STRIP="$ac_cv_prog_STRIP"
5587 fi
5588
5589 test -z "$STRIP" && STRIP=:
5590
5591
5592
5593
5594
5595
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_prog_RANLIB+set}" = set; then
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if test -n "$RANLIB"; then
5605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618 done
5619 done
5620 IFS=$as_save_IFS
5621
5622 fi
5623 fi
5624 RANLIB=$ac_cv_prog_RANLIB
5625 if test -n "$RANLIB"; then
5626 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5627 $as_echo "$RANLIB" >&6; }
5628 else
5629 { $as_echo "$as_me:$LINENO: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632
5633
5634 fi
5635 if test -z "$ac_cv_prog_RANLIB"; then
5636 ac_ct_RANLIB=$RANLIB
5637 # Extract the first word of "ranlib", so it can be a program name with args.
5638 set dummy ranlib; ac_word=$2
5639 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 $as_echo_n "checking for $ac_word... " >&6; }
5641 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5642 $as_echo_n "(cached) " >&6
5643 else
5644 if test -n "$ac_ct_RANLIB"; then
5645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5646 else
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_ac_ct_RANLIB="ranlib"
5655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5656 break 2
5657 fi
5658 done
5659 done
5660 IFS=$as_save_IFS
5661
5662 fi
5663 fi
5664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5665 if test -n "$ac_ct_RANLIB"; then
5666 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5667 $as_echo "$ac_ct_RANLIB" >&6; }
5668 else
5669 { $as_echo "$as_me:$LINENO: result: no" >&5
5670 $as_echo "no" >&6; }
5671 fi
5672
5673 if test "x$ac_ct_RANLIB" = x; then
5674 RANLIB=":"
5675 else
5676 case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682 RANLIB=$ac_ct_RANLIB
5683 fi
5684 else
5685 RANLIB="$ac_cv_prog_RANLIB"
5686 fi
5687
5688 test -z "$RANLIB" && RANLIB=:
5689
5690
5691
5692
5693
5694
5695 # Determine commands to create old-style static archives.
5696 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5697 old_postinstall_cmds='chmod 644 $oldlib'
5698 old_postuninstall_cmds=
5699
5700 if test -n "$RANLIB"; then
5701 case $host_os in
5702 openbsd*)
5703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5704 ;;
5705 *)
5706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5707 ;;
5708 esac
5709 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5710 fi
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 # If no C compiler was specified, use CC.
5746 LTCC=${LTCC-"$CC"}
5747
5748 # If no C compiler flags were specified, use CFLAGS.
5749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5750
5751 # Allow CC to be a program name with arguments.
5752 compiler=$CC
5753
5754
5755 # Check for command to grab the raw symbol name followed by C symbol from nm.
5756 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5757 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5758 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5759 $as_echo_n "(cached) " >&6
5760 else
5761
5762 # These are sane defaults that work on at least a few old systems.
5763 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5764
5765 # Character class describing NM global symbol codes.
5766 symcode='[BCDEGRST]'
5767
5768 # Regexp to match symbols that can be accessed directly from C.
5769 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5770
5771 # Define system-specific variables.
5772 case $host_os in
5773 aix*)
5774 symcode='[BCDT]'
5775 ;;
5776 cygwin* | mingw* | pw32* | cegcc*)
5777 symcode='[ABCDGISTW]'
5778 ;;
5779 hpux*)
5780 if test "$host_cpu" = ia64; then
5781 symcode='[ABCDEGRST]'
5782 fi
5783 ;;
5784 irix* | nonstopux*)
5785 symcode='[BCDEGRST]'
5786 ;;
5787 osf*)
5788 symcode='[BCDEGQRST]'
5789 ;;
5790 solaris*)
5791 symcode='[BDRT]'
5792 ;;
5793 sco3.2v5*)
5794 symcode='[DT]'
5795 ;;
5796 sysv4.2uw2*)
5797 symcode='[DT]'
5798 ;;
5799 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5800 symcode='[ABDT]'
5801 ;;
5802 sysv4)
5803 symcode='[DFNSTU]'
5804 ;;
5805 esac
5806
5807 # If we're using GNU nm, then use its standard symbol codes.
5808 case `$NM -V 2>&1` in
5809 *GNU* | *'with BFD'*)
5810 symcode='[ABCDGIRSTW]' ;;
5811 esac
5812
5813 # Transform an extracted symbol line into a proper C declaration.
5814 # Some systems (esp. on ia64) link data and code symbols differently,
5815 # so use this general approach.
5816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5817
5818 # Transform an extracted symbol line into symbol name and symbol address
5819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5820 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'"
5821
5822 # Handle CRLF in mingw tool chain
5823 opt_cr=
5824 case $build_os in
5825 mingw*)
5826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5827 ;;
5828 esac
5829
5830 # Try without a prefix underscore, then with it.
5831 for ac_symprfx in "" "_"; do
5832
5833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5834 symxfrm="\\1 $ac_symprfx\\2 \\2"
5835
5836 # Write the raw and C identifiers.
5837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5838 # Fake it for dumpbin and say T for any non-static function
5839 # and D for any global variable.
5840 # Also find C++ and __fastcall symbols from MSVC++,
5841 # which start with @ or ?.
5842 lt_cv_sys_global_symbol_pipe="$AWK '"\
5843 " {last_section=section; section=\$ 3};"\
5844 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5845 " \$ 0!~/External *\|/{next};"\
5846 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5847 " {if(hide[section]) next};"\
5848 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5849 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5850 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5851 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5852 " ' prfx=^$ac_symprfx"
5853 else
5854 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5855 fi
5856
5857 # Check to see that the pipe works correctly.
5858 pipe_works=no
5859
5860 rm -f conftest*
5861 cat > conftest.$ac_ext <<_LT_EOF
5862 #ifdef __cplusplus
5863 extern "C" {
5864 #endif
5865 char nm_test_var;
5866 void nm_test_func(void);
5867 void nm_test_func(void){}
5868 #ifdef __cplusplus
5869 }
5870 #endif
5871 int main(){nm_test_var='a';nm_test_func();return(0);}
5872 _LT_EOF
5873
5874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875 (eval $ac_compile) 2>&5
5876 ac_status=$?
5877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; then
5879 # Now try to grab the symbols.
5880 nlist=conftest.nm
5881 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5882 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && test -s "$nlist"; then
5886 # Try sorting and uniquifying the output.
5887 if sort "$nlist" | uniq > "$nlist"T; then
5888 mv -f "$nlist"T "$nlist"
5889 else
5890 rm -f "$nlist"T
5891 fi
5892
5893 # Make sure that we snagged all the symbols we need.
5894 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5895 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5896 cat <<_LT_EOF > conftest.$ac_ext
5897 #ifdef __cplusplus
5898 extern "C" {
5899 #endif
5900
5901 _LT_EOF
5902 # Now generate the symbol file.
5903 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5904
5905 cat <<_LT_EOF >> conftest.$ac_ext
5906
5907 /* The mapping between symbol names and symbols. */
5908 const struct {
5909 const char *name;
5910 void *address;
5911 }
5912 lt__PROGRAM__LTX_preloaded_symbols[] =
5913 {
5914 { "@PROGRAM@", (void *) 0 },
5915 _LT_EOF
5916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5917 cat <<\_LT_EOF >> conftest.$ac_ext
5918 {0, (void *) 0}
5919 };
5920
5921 /* This works around a problem in FreeBSD linker */
5922 #ifdef FREEBSD_WORKAROUND
5923 static const void *lt_preloaded_setup() {
5924 return lt__PROGRAM__LTX_preloaded_symbols;
5925 }
5926 #endif
5927
5928 #ifdef __cplusplus
5929 }
5930 #endif
5931 _LT_EOF
5932 # Now try linking the two files.
5933 mv conftest.$ac_objext conftstm.$ac_objext
5934 lt_save_LIBS="$LIBS"
5935 lt_save_CFLAGS="$CFLAGS"
5936 LIBS="conftstm.$ac_objext"
5937 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5939 (eval $ac_link) 2>&5
5940 ac_status=$?
5941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5943 pipe_works=yes
5944 fi
5945 LIBS="$lt_save_LIBS"
5946 CFLAGS="$lt_save_CFLAGS"
5947 else
5948 echo "cannot find nm_test_func in $nlist" >&5
5949 fi
5950 else
5951 echo "cannot find nm_test_var in $nlist" >&5
5952 fi
5953 else
5954 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5955 fi
5956 else
5957 echo "$progname: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5959 fi
5960 rm -rf conftest* conftst*
5961
5962 # Do not use the global_symbol_pipe unless it works.
5963 if test "$pipe_works" = yes; then
5964 break
5965 else
5966 lt_cv_sys_global_symbol_pipe=
5967 fi
5968 done
5969
5970 fi
5971
5972 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5973 lt_cv_sys_global_symbol_to_cdecl=
5974 fi
5975 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5976 { $as_echo "$as_me:$LINENO: result: failed" >&5
5977 $as_echo "failed" >&6; }
5978 else
5979 { $as_echo "$as_me:$LINENO: result: ok" >&5
5980 $as_echo "ok" >&6; }
5981 fi
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 # Check whether --enable-libtool-lock was given.
6006 if test "${enable_libtool_lock+set}" = set; then
6007 enableval=$enable_libtool_lock;
6008 fi
6009
6010 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6011
6012 # Some flags need to be propagated to the compiler or linker for good
6013 # libtool support.
6014 case $host in
6015 ia64-*-hpux*)
6016 # Find out which ABI we are using.
6017 echo 'int i;' > conftest.$ac_ext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019 (eval $ac_compile) 2>&5
6020 ac_status=$?
6021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; then
6023 case `/usr/bin/file conftest.$ac_objext` in
6024 *ELF-32*)
6025 HPUX_IA64_MODE="32"
6026 ;;
6027 *ELF-64*)
6028 HPUX_IA64_MODE="64"
6029 ;;
6030 esac
6031 fi
6032 rm -rf conftest*
6033 ;;
6034 *-*-irix6*)
6035 # Find out which ABI we are using.
6036 echo '#line 6036 "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
6043 case `/usr/bin/file conftest.$ac_objext` in
6044 *32-bit*)
6045 LD="${LD-ld} -melf32bsmip"
6046 ;;
6047 *N32*)
6048 LD="${LD-ld} -melf32bmipn32"
6049 ;;
6050 *64-bit*)
6051 LD="${LD-ld} -melf64bmip"
6052 ;;
6053 esac
6054 else
6055 case `/usr/bin/file conftest.$ac_objext` in
6056 *32-bit*)
6057 LD="${LD-ld} -32"
6058 ;;
6059 *N32*)
6060 LD="${LD-ld} -n32"
6061 ;;
6062 *64-bit*)
6063 LD="${LD-ld} -64"
6064 ;;
6065 esac
6066 fi
6067 fi
6068 rm -rf conftest*
6069 ;;
6070
6071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6073 # Find out which ABI we are using.
6074 echo 'int i;' > conftest.$ac_ext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>&5
6077 ac_status=$?
6078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; then
6080 case `/usr/bin/file conftest.o` in
6081 *32-bit*)
6082 case $host in
6083 x86_64-*kfreebsd*-gnu)
6084 LD="${LD-ld} -m elf_i386_fbsd"
6085 ;;
6086 x86_64-*linux*)
6087 LD="${LD-ld} -m elf_i386"
6088 ;;
6089 ppc64-*linux*|powerpc64-*linux*)
6090 LD="${LD-ld} -m elf32ppclinux"
6091 ;;
6092 s390x-*linux*)
6093 LD="${LD-ld} -m elf_s390"
6094 ;;
6095 sparc64-*linux*)
6096 LD="${LD-ld} -m elf32_sparc"
6097 ;;
6098 esac
6099 ;;
6100 *64-bit*)
6101 case $host in
6102 x86_64-*kfreebsd*-gnu)
6103 LD="${LD-ld} -m elf_x86_64_fbsd"
6104 ;;
6105 x86_64-*linux*)
6106 LD="${LD-ld} -m elf_x86_64"
6107 ;;
6108 ppc*-*linux*|powerpc*-*linux*)
6109 LD="${LD-ld} -m elf64ppc"
6110 ;;
6111 s390*-*linux*|s390*-*tpf*)
6112 LD="${LD-ld} -m elf64_s390"
6113 ;;
6114 sparc*-*linux*)
6115 LD="${LD-ld} -m elf64_sparc"
6116 ;;
6117 esac
6118 ;;
6119 esac
6120 fi
6121 rm -rf conftest*
6122 ;;
6123
6124 *-*-sco3.2v5*)
6125 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6126 SAVE_CFLAGS="$CFLAGS"
6127 CFLAGS="$CFLAGS -belf"
6128 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6129 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6130 if test "${lt_cv_cc_needs_belf+set}" = set; then
6131 $as_echo_n "(cached) " >&6
6132 else
6133 ac_ext=c
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139 cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h. */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6145
6146 int
6147 main ()
6148 {
6149
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_link") 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } && {
6169 test -z "$ac_c_werror_flag" ||
6170 test ! -s conftest.err
6171 } && test -s conftest$ac_exeext && {
6172 test "$cross_compiling" = yes ||
6173 $as_test_x conftest$ac_exeext
6174 }; then
6175 lt_cv_cc_needs_belf=yes
6176 else
6177 $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 lt_cv_cc_needs_belf=no
6181 fi
6182
6183 rm -rf conftest.dSYM
6184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185 conftest$ac_exeext conftest.$ac_ext
6186 ac_ext=c
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191
6192 fi
6193 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6194 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6195 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6196 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6197 CFLAGS="$SAVE_CFLAGS"
6198 fi
6199 ;;
6200 sparc*-*solaris*)
6201 # Find out which ABI we are using.
6202 echo 'int i;' > conftest.$ac_ext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6205 ac_status=$?
6206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; then
6208 case `/usr/bin/file conftest.o` in
6209 *64-bit*)
6210 case $lt_cv_prog_gnu_ld in
6211 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6212 *)
6213 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6214 LD="${LD-ld} -64"
6215 fi
6216 ;;
6217 esac
6218 ;;
6219 esac
6220 fi
6221 rm -rf conftest*
6222 ;;
6223 esac
6224
6225 need_locks="$enable_libtool_lock"
6226
6227
6228 case $host_os in
6229 rhapsody* | darwin*)
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$DSYMUTIL"; then
6239 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6259 if test -n "$DSYMUTIL"; then
6260 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6261 $as_echo "$DSYMUTIL" >&6; }
6262 else
6263 { $as_echo "$as_me:$LINENO: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 fi
6269 if test -z "$ac_cv_prog_DSYMUTIL"; then
6270 ac_ct_DSYMUTIL=$DSYMUTIL
6271 # Extract the first word of "dsymutil", so it can be a program name with args.
6272 set dummy dsymutil; ac_word=$2
6273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 $as_echo_n "checking for $ac_word... " >&6; }
6275 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6276 $as_echo_n "(cached) " >&6
6277 else
6278 if test -n "$ac_ct_DSYMUTIL"; then
6279 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6299 if test -n "$ac_ct_DSYMUTIL"; then
6300 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6301 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6302 else
6303 { $as_echo "$as_me:$LINENO: result: no" >&5
6304 $as_echo "no" >&6; }
6305 fi
6306
6307 if test "x$ac_ct_DSYMUTIL" = x; then
6308 DSYMUTIL=":"
6309 else
6310 case $cross_compiling:$ac_tool_warned in
6311 yes:)
6312 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6314 ac_tool_warned=yes ;;
6315 esac
6316 DSYMUTIL=$ac_ct_DSYMUTIL
6317 fi
6318 else
6319 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6320 fi
6321
6322 if test -n "$ac_tool_prefix"; then
6323 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6324 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$NMEDIT"; then
6331 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344 done
6345 done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 NMEDIT=$ac_cv_prog_NMEDIT
6351 if test -n "$NMEDIT"; then
6352 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6353 $as_echo "$NMEDIT" >&6; }
6354 else
6355 { $as_echo "$as_me:$LINENO: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359
6360 fi
6361 if test -z "$ac_cv_prog_NMEDIT"; then
6362 ac_ct_NMEDIT=$NMEDIT
6363 # Extract the first word of "nmedit", so it can be a program name with args.
6364 set dummy nmedit; ac_word=$2
6365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -n "$ac_ct_NMEDIT"; then
6371 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384 done
6385 done
6386 IFS=$as_save_IFS
6387
6388 fi
6389 fi
6390 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6391 if test -n "$ac_ct_NMEDIT"; then
6392 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6393 $as_echo "$ac_ct_NMEDIT" >&6; }
6394 else
6395 { $as_echo "$as_me:$LINENO: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398
6399 if test "x$ac_ct_NMEDIT" = x; then
6400 NMEDIT=":"
6401 else
6402 case $cross_compiling:$ac_tool_warned in
6403 yes:)
6404 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6406 ac_tool_warned=yes ;;
6407 esac
6408 NMEDIT=$ac_ct_NMEDIT
6409 fi
6410 else
6411 NMEDIT="$ac_cv_prog_NMEDIT"
6412 fi
6413
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if test "${ac_cv_prog_LIPO+set}" = set; then
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$LIPO"; then
6423 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 LIPO=$ac_cv_prog_LIPO
6443 if test -n "$LIPO"; then
6444 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6445 $as_echo "$LIPO" >&6; }
6446 else
6447 { $as_echo "$as_me:$LINENO: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_LIPO"; then
6454 ac_ct_LIPO=$LIPO
6455 # Extract the first word of "lipo", so it can be a program name with args.
6456 set dummy lipo; ac_word=$2
6457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_LIPO"; then
6463 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_ac_ct_LIPO="lipo"
6473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6483 if test -n "$ac_ct_LIPO"; then
6484 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6485 $as_echo "$ac_ct_LIPO" >&6; }
6486 else
6487 { $as_echo "$as_me:$LINENO: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491 if test "x$ac_ct_LIPO" = x; then
6492 LIPO=":"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 LIPO=$ac_ct_LIPO
6501 fi
6502 else
6503 LIPO="$ac_cv_prog_LIPO"
6504 fi
6505
6506 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6508 set dummy ${ac_tool_prefix}otool; ac_word=$2
6509 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if test "${ac_cv_prog_OTOOL+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$OTOOL"; then
6515 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 OTOOL=$ac_cv_prog_OTOOL
6535 if test -n "$OTOOL"; then
6536 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6537 $as_echo "$OTOOL" >&6; }
6538 else
6539 { $as_echo "$as_me:$LINENO: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544 fi
6545 if test -z "$ac_cv_prog_OTOOL"; then
6546 ac_ct_OTOOL=$OTOOL
6547 # Extract the first word of "otool", so it can be a program name with args.
6548 set dummy otool; ac_word=$2
6549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test -n "$ac_ct_OTOOL"; then
6555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_ac_ct_OTOOL="otool"
6565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568 done
6569 done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6575 if test -n "$ac_ct_OTOOL"; then
6576 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6577 $as_echo "$ac_ct_OTOOL" >&6; }
6578 else
6579 { $as_echo "$as_me:$LINENO: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583 if test "x$ac_ct_OTOOL" = x; then
6584 OTOOL=":"
6585 else
6586 case $cross_compiling:$ac_tool_warned in
6587 yes:)
6588 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6591 esac
6592 OTOOL=$ac_ct_OTOOL
6593 fi
6594 else
6595 OTOOL="$ac_cv_prog_OTOOL"
6596 fi
6597
6598 if test -n "$ac_tool_prefix"; then
6599 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6600 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6601 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$OTOOL64"; then
6607 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6616 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 OTOOL64=$ac_cv_prog_OTOOL64
6627 if test -n "$OTOOL64"; then
6628 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6629 $as_echo "$OTOOL64" >&6; }
6630 else
6631 { $as_echo "$as_me:$LINENO: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635
6636 fi
6637 if test -z "$ac_cv_prog_OTOOL64"; then
6638 ac_ct_OTOOL64=$OTOOL64
6639 # Extract the first word of "otool64", so it can be a program name with args.
6640 set dummy otool64; ac_word=$2
6641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6645 else
6646 if test -n "$ac_ct_OTOOL64"; then
6647 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656 ac_cv_prog_ac_ct_OTOOL64="otool64"
6657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6667 if test -n "$ac_ct_OTOOL64"; then
6668 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6669 $as_echo "$ac_ct_OTOOL64" >&6; }
6670 else
6671 { $as_echo "$as_me:$LINENO: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674
6675 if test "x$ac_ct_OTOOL64" = x; then
6676 OTOOL64=":"
6677 else
6678 case $cross_compiling:$ac_tool_warned in
6679 yes:)
6680 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6682 ac_tool_warned=yes ;;
6683 esac
6684 OTOOL64=$ac_ct_OTOOL64
6685 fi
6686 else
6687 OTOOL64="$ac_cv_prog_OTOOL64"
6688 fi
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6717 $as_echo_n "checking for -single_module linker flag... " >&6; }
6718 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6719 $as_echo_n "(cached) " >&6
6720 else
6721 lt_cv_apple_cc_single_mod=no
6722 if test -z "${LT_MULTI_MODULE}"; then
6723 # By default we will add the -single_module flag. You can override
6724 # by either setting the environment variable LT_MULTI_MODULE
6725 # non-empty at configure time, or by adding -multi_module to the
6726 # link flags.
6727 rm -rf libconftest.dylib*
6728 echo "int foo(void){return 1;}" > conftest.c
6729 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6730 -dynamiclib -Wl,-single_module conftest.c" >&5
6731 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6732 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6733 _lt_result=$?
6734 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6735 lt_cv_apple_cc_single_mod=yes
6736 else
6737 cat conftest.err >&5
6738 fi
6739 rm -rf libconftest.dylib*
6740 rm -f conftest.*
6741 fi
6742 fi
6743 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6744 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6745 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6746 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6747 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6748 $as_echo_n "(cached) " >&6
6749 else
6750 lt_cv_ld_exported_symbols_list=no
6751 save_LDFLAGS=$LDFLAGS
6752 echo "_main" > conftest.sym
6753 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760
6761 int
6762 main ()
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (ac_try="$ac_link"
6771 case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774 esac
6775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776 $as_echo "$ac_try_echo") >&5
6777 (eval "$ac_link") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest$ac_exeext && {
6787 test "$cross_compiling" = yes ||
6788 $as_test_x conftest$ac_exeext
6789 }; then
6790 lt_cv_ld_exported_symbols_list=yes
6791 else
6792 $as_echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 lt_cv_ld_exported_symbols_list=no
6796 fi
6797
6798 rm -rf conftest.dSYM
6799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6800 conftest$ac_exeext conftest.$ac_ext
6801 LDFLAGS="$save_LDFLAGS"
6802
6803 fi
6804 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6805 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6806 case $host_os in
6807 rhapsody* | darwin1.[012])
6808 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6809 darwin1.*)
6810 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6811 darwin*) # darwin 5.x on
6812 # if running on 10.5 or later, the deployment target defaults
6813 # to the OS version, if on x86, and 10.4, the deployment
6814 # target defaults to 10.4. Don't you love it?
6815 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6816 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6817 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6818 10.[012]*)
6819 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6820 10.*)
6821 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6822 esac
6823 ;;
6824 esac
6825 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6826 _lt_dar_single_mod='$single_module'
6827 fi
6828 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6829 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6830 else
6831 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6832 fi
6833 if test "$DSYMUTIL" != ":"; then
6834 _lt_dsymutil='~$DSYMUTIL $lib || :'
6835 else
6836 _lt_dsymutil=
6837 fi
6838 ;;
6839 esac
6840
6841 ac_ext=c
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6848 # On Suns, sometimes $CPP names a directory.
6849 if test -n "$CPP" && test -d "$CPP"; then
6850 CPP=
6851 fi
6852 if test -z "$CPP"; then
6853 if test "${ac_cv_prog_CPP+set}" = set; then
6854 $as_echo_n "(cached) " >&6
6855 else
6856 # Double quotes because CPP needs to be expanded
6857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6858 do
6859 ac_preproc_ok=false
6860 for ac_c_preproc_warn_flag in '' yes
6861 do
6862 # Use a header file that comes with gcc, so configuring glibc
6863 # with a fresh cross-compiler works.
6864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 # <limits.h> exists even on freestanding compilers.
6866 # On the NeXT, cc -E runs the code through the compiler's parser,
6867 # not just through cpp. "Syntax error" is here to catch this case.
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #ifdef __STDC__
6875 # include <limits.h>
6876 #else
6877 # include <assert.h>
6878 #endif
6879 Syntax error
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 :
6899 else
6900 $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 # Broken: fails on valid input.
6904 continue
6905 fi
6906
6907 rm -f conftest.err conftest.$ac_ext
6908
6909 # OK, works on sane cases. Now check whether nonexistent headers
6910 # can be detected and how.
6911 cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <ac_nonexistent.h>
6918 _ACEOF
6919 if { (ac_try="$ac_cpp conftest.$ac_ext"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6925 $as_echo "$ac_try_echo") >&5
6926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } >/dev/null && {
6933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 }; then
6936 # Broken: success on invalid input.
6937 continue
6938 else
6939 $as_echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6941
6942 # Passes both tests.
6943 ac_preproc_ok=:
6944 break
6945 fi
6946
6947 rm -f conftest.err conftest.$ac_ext
6948
6949 done
6950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6951 rm -f conftest.err conftest.$ac_ext
6952 if $ac_preproc_ok; then
6953 break
6954 fi
6955
6956 done
6957 ac_cv_prog_CPP=$CPP
6958
6959 fi
6960 CPP=$ac_cv_prog_CPP
6961 else
6962 ac_cv_prog_CPP=$CPP
6963 fi
6964 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6965 $as_echo "$CPP" >&6; }
6966 ac_preproc_ok=false
6967 for ac_c_preproc_warn_flag in '' yes
6968 do
6969 # Use a header file that comes with gcc, so configuring glibc
6970 # with a fresh cross-compiler works.
6971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6972 # <limits.h> exists even on freestanding compilers.
6973 # On the NeXT, cc -E runs the code through the compiler's parser,
6974 # not just through cpp. "Syntax error" is here to catch this case.
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #ifdef __STDC__
6982 # include <limits.h>
6983 #else
6984 # include <assert.h>
6985 #endif
6986 Syntax error
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 :
7006 else
7007 $as_echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7009
7010 # Broken: fails on valid input.
7011 continue
7012 fi
7013
7014 rm -f conftest.err conftest.$ac_ext
7015
7016 # OK, works on sane cases. Now check whether nonexistent headers
7017 # can be detected and how.
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h. */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <ac_nonexistent.h>
7025 _ACEOF
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } >/dev/null && {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 }; then
7043 # Broken: success on invalid input.
7044 continue
7045 else
7046 $as_echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 # Passes both tests.
7050 ac_preproc_ok=:
7051 break
7052 fi
7053
7054 rm -f conftest.err conftest.$ac_ext
7055
7056 done
7057 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7058 rm -f conftest.err conftest.$ac_ext
7059 if $ac_preproc_ok; then
7060 :
7061 else
7062 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7064 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7065 See \`config.log' for more details." >&5
7066 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7067 See \`config.log' for more details." >&2;}
7068 { (exit 1); exit 1; }; }; }
7069 fi
7070
7071 ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076
7077
7078 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7079 $as_echo_n "checking for ANSI C header files... " >&6; }
7080 if test "${ac_cv_header_stdc+set}" = set; then
7081 $as_echo_n "(cached) " >&6
7082 else
7083 cat >conftest.$ac_ext <<_ACEOF
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 #include <stdlib.h>
7090 #include <stdarg.h>
7091 #include <string.h>
7092 #include <float.h>
7093
7094 int
7095 main ()
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 rm -f conftest.$ac_objext
7103 if { (ac_try="$ac_compile"
7104 case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107 esac
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
7120 ac_cv_header_stdc=yes
7121 else
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7124
7125 ac_cv_header_stdc=no
7126 fi
7127
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129
7130 if test $ac_cv_header_stdc = yes; then
7131 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <string.h>
7139
7140 _ACEOF
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "memchr" >/dev/null 2>&1; then
7143 :
7144 else
7145 ac_cv_header_stdc=no
7146 fi
7147 rm -f conftest*
7148
7149 fi
7150
7151 if test $ac_cv_header_stdc = yes; then
7152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <stdlib.h>
7160
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "free" >/dev/null 2>&1; then
7164 :
7165 else
7166 ac_cv_header_stdc=no
7167 fi
7168 rm -f conftest*
7169
7170 fi
7171
7172 if test $ac_cv_header_stdc = yes; then
7173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7174 if test "$cross_compiling" = yes; then
7175 :
7176 else
7177 cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h. */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 #include <ctype.h>
7184 #include <stdlib.h>
7185 #if ((' ' & 0x0FF) == 0x020)
7186 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7187 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7188 #else
7189 # define ISLOWER(c) \
7190 (('a' <= (c) && (c) <= 'i') \
7191 || ('j' <= (c) && (c) <= 'r') \
7192 || ('s' <= (c) && (c) <= 'z'))
7193 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7194 #endif
7195
7196 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7197 int
7198 main ()
7199 {
7200 int i;
7201 for (i = 0; i < 256; i++)
7202 if (XOR (islower (i), ISLOWER (i))
7203 || toupper (i) != TOUPPER (i))
7204 return 2;
7205 return 0;
7206 }
7207 _ACEOF
7208 rm -f conftest$ac_exeext
7209 if { (ac_try="$ac_link"
7210 case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7215 $as_echo "$ac_try_echo") >&5
7216 (eval "$ac_link") 2>&5
7217 ac_status=$?
7218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7220 { (case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223 esac
7224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7225 $as_echo "$ac_try_echo") >&5
7226 (eval "$ac_try") 2>&5
7227 ac_status=$?
7228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 :
7231 else
7232 $as_echo "$as_me: program exited with status $ac_status" >&5
7233 $as_echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 ( exit $ac_status )
7237 ac_cv_header_stdc=no
7238 fi
7239 rm -rf conftest.dSYM
7240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7241 fi
7242
7243
7244 fi
7245 fi
7246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7247 $as_echo "$ac_cv_header_stdc" >&6; }
7248 if test $ac_cv_header_stdc = yes; then
7249
7250 cat >>confdefs.h <<\_ACEOF
7251 #define STDC_HEADERS 1
7252 _ACEOF
7253
7254 fi
7255
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7267 inttypes.h stdint.h unistd.h
7268 do
7269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7271 $as_echo_n "checking for $ac_header... " >&6; }
7272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7273 $as_echo_n "(cached) " >&6
7274 else
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7282
7283 #include <$ac_header>
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (ac_try="$ac_compile"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_compile") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest.$ac_objext; then
7303 eval "$as_ac_Header=yes"
7304 else
7305 $as_echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308 eval "$as_ac_Header=no"
7309 fi
7310
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 ac_res=`eval 'as_val=${'$as_ac_Header'}
7314 $as_echo "$as_val"'`
7315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7316 $as_echo "$ac_res" >&6; }
7317 as_val=`eval 'as_val=${'$as_ac_Header'}
7318 $as_echo "$as_val"'`
7319 if test "x$as_val" = x""yes; then
7320 cat >>confdefs.h <<_ACEOF
7321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7322 _ACEOF
7323
7324 fi
7325
7326 done
7327
7328
7329
7330 for ac_header in dlfcn.h
7331 do
7332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 $as_echo_n "checking for $ac_header... " >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336 $as_echo_n "(cached) " >&6
7337 else
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 $ac_includes_default
7345
7346 #include <$ac_header>
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 eval "$as_ac_Header=yes"
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 eval "$as_ac_Header=no"
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 ac_res=`eval 'as_val=${'$as_ac_Header'}
7377 $as_echo "$as_val"'`
7378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7379 $as_echo "$ac_res" >&6; }
7380 as_val=`eval 'as_val=${'$as_ac_Header'}
7381 $as_echo "$as_val"'`
7382 if test "x$as_val" = x""yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7385 _ACEOF
7386
7387 fi
7388
7389 done
7390
7391
7392
7393 # Set options
7394
7395
7396
7397 enable_dlopen=no
7398
7399
7400 enable_win32_dll=no
7401
7402
7403 # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then
7405 enableval=$enable_shared; p=${PACKAGE-default}
7406 case $enableval in
7407 yes) enable_shared=yes ;;
7408 no) enable_shared=no ;;
7409 *)
7410 enable_shared=no
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7414 IFS="$lt_save_ifs"
7415 if test "X$pkg" = "X$p"; then
7416 enable_shared=yes
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 ;;
7421 esac
7422 else
7423 enable_shared=yes
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 # Check whether --enable-static was given.
7435 if test "${enable_static+set}" = set; then
7436 enableval=$enable_static; p=${PACKAGE-default}
7437 case $enableval in
7438 yes) enable_static=yes ;;
7439 no) enable_static=no ;;
7440 *)
7441 enable_static=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7445 IFS="$lt_save_ifs"
7446 if test "X$pkg" = "X$p"; then
7447 enable_static=yes
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451 ;;
7452 esac
7453 else
7454 enable_static=yes
7455 fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 # Check whether --with-pic was given.
7467 if test "${with_pic+set}" = set; then
7468 withval=$with_pic; pic_mode="$withval"
7469 else
7470 pic_mode=default
7471 fi
7472
7473
7474 test -z "$pic_mode" && pic_mode=default
7475
7476
7477
7478
7479
7480
7481
7482 # Check whether --enable-fast-install was given.
7483 if test "${enable_fast_install+set}" = set; then
7484 enableval=$enable_fast_install; p=${PACKAGE-default}
7485 case $enableval in
7486 yes) enable_fast_install=yes ;;
7487 no) enable_fast_install=no ;;
7488 *)
7489 enable_fast_install=no
7490 # Look at the argument we got. We use all the common list separators.
7491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492 for pkg in $enableval; do
7493 IFS="$lt_save_ifs"
7494 if test "X$pkg" = "X$p"; then
7495 enable_fast_install=yes
7496 fi
7497 done
7498 IFS="$lt_save_ifs"
7499 ;;
7500 esac
7501 else
7502 enable_fast_install=yes
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515 # This can be used to rebuild libtool when needed
7516 LIBTOOL_DEPS="$ltmain"
7517
7518 # Always use our own libtool.
7519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 test -z "$LN_S" && LN_S="ln -s"
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 if test -n "${ZSH_VERSION+set}" ; then
7561 setopt NO_GLOB_SUBST
7562 fi
7563
7564 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7565 $as_echo_n "checking for objdir... " >&6; }
7566 if test "${lt_cv_objdir+set}" = set; then
7567 $as_echo_n "(cached) " >&6
7568 else
7569 rm -f .libs 2>/dev/null
7570 mkdir .libs 2>/dev/null
7571 if test -d .libs; then
7572 lt_cv_objdir=.libs
7573 else
7574 # MS-DOS does not allow filenames that begin with a dot.
7575 lt_cv_objdir=_libs
7576 fi
7577 rmdir .libs 2>/dev/null
7578 fi
7579 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7580 $as_echo "$lt_cv_objdir" >&6; }
7581 objdir=$lt_cv_objdir
7582
7583
7584
7585
7586
7587 cat >>confdefs.h <<_ACEOF
7588 #define LT_OBJDIR "$lt_cv_objdir/"
7589 _ACEOF
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607 case $host_os in
7608 aix3*)
7609 # AIX sometimes has problems with the GCC collect2 program. For some
7610 # reason, if we set the COLLECT_NAMES environment variable, the problems
7611 # vanish in a puff of smoke.
7612 if test "X${COLLECT_NAMES+set}" != Xset; then
7613 COLLECT_NAMES=
7614 export COLLECT_NAMES
7615 fi
7616 ;;
7617 esac
7618
7619 # Sed substitution that helps us do robust quoting. It backslashifies
7620 # metacharacters that are still active within double-quoted strings.
7621 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7622
7623 # Same as above, but do not quote variable references.
7624 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7625
7626 # Sed substitution to delay expansion of an escaped shell variable in a
7627 # double_quote_subst'ed string.
7628 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7629
7630 # Sed substitution to delay expansion of an escaped single quote.
7631 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7632
7633 # Sed substitution to avoid accidental globbing in evaled expressions
7634 no_glob_subst='s/\*/\\\*/g'
7635
7636 # Global variables:
7637 ofile=libtool
7638 can_build_shared=yes
7639
7640 # All known linkers require a `.a' archive for static linking (except MSVC,
7641 # which needs '.lib').
7642 libext=a
7643
7644 with_gnu_ld="$lt_cv_prog_gnu_ld"
7645
7646 old_CC="$CC"
7647 old_CFLAGS="$CFLAGS"
7648
7649 # Set sane defaults for various variables
7650 test -z "$CC" && CC=cc
7651 test -z "$LTCC" && LTCC=$CC
7652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7653 test -z "$LD" && LD=ld
7654 test -z "$ac_objext" && ac_objext=o
7655
7656 for cc_temp in $compiler""; do
7657 case $cc_temp in
7658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7660 \-*) ;;
7661 *) break;;
7662 esac
7663 done
7664 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7665
7666
7667 # Only perform the check for file, if the check method requires it
7668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7669 case $deplibs_check_method in
7670 file_magic*)
7671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7672 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7674 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7675 $as_echo_n "(cached) " >&6
7676 else
7677 case $MAGIC_CMD in
7678 [\\/*] | ?:[\\/]*)
7679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 lt_save_MAGIC_CMD="$MAGIC_CMD"
7683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7685 for ac_dir in $ac_dummy; do
7686 IFS="$lt_save_ifs"
7687 test -z "$ac_dir" && ac_dir=.
7688 if test -f $ac_dir/${ac_tool_prefix}file; then
7689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7690 if test -n "$file_magic_test_file"; then
7691 case $deplibs_check_method in
7692 "file_magic "*)
7693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7696 $EGREP "$file_magic_regex" > /dev/null; then
7697 :
7698 else
7699 cat <<_LT_EOF 1>&2
7700
7701 *** Warning: the command libtool uses to detect shared libraries,
7702 *** $file_magic_cmd, produces output that libtool cannot recognize.
7703 *** The result is that libtool may fail to recognize shared libraries
7704 *** as such. This will affect the creation of libtool libraries that
7705 *** depend on shared libraries, but programs linked with such libtool
7706 *** libraries will work regardless of this problem. Nevertheless, you
7707 *** may want to report the problem to your system manager and/or to
7708 *** bug-libtool@gnu.org
7709
7710 _LT_EOF
7711 fi ;;
7712 esac
7713 fi
7714 break
7715 fi
7716 done
7717 IFS="$lt_save_ifs"
7718 MAGIC_CMD="$lt_save_MAGIC_CMD"
7719 ;;
7720 esac
7721 fi
7722
7723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7724 if test -n "$MAGIC_CMD"; then
7725 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7726 $as_echo "$MAGIC_CMD" >&6; }
7727 else
7728 { $as_echo "$as_me:$LINENO: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733
7734
7735
7736 if test -z "$lt_cv_path_MAGIC_CMD"; then
7737 if test -n "$ac_tool_prefix"; then
7738 { $as_echo "$as_me:$LINENO: checking for file" >&5
7739 $as_echo_n "checking for file... " >&6; }
7740 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7741 $as_echo_n "(cached) " >&6
7742 else
7743 case $MAGIC_CMD in
7744 [\\/*] | ?:[\\/]*)
7745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7746 ;;
7747 *)
7748 lt_save_MAGIC_CMD="$MAGIC_CMD"
7749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7751 for ac_dir in $ac_dummy; do
7752 IFS="$lt_save_ifs"
7753 test -z "$ac_dir" && ac_dir=.
7754 if test -f $ac_dir/file; then
7755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7756 if test -n "$file_magic_test_file"; then
7757 case $deplibs_check_method in
7758 "file_magic "*)
7759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7762 $EGREP "$file_magic_regex" > /dev/null; then
7763 :
7764 else
7765 cat <<_LT_EOF 1>&2
7766
7767 *** Warning: the command libtool uses to detect shared libraries,
7768 *** $file_magic_cmd, produces output that libtool cannot recognize.
7769 *** The result is that libtool may fail to recognize shared libraries
7770 *** as such. This will affect the creation of libtool libraries that
7771 *** depend on shared libraries, but programs linked with such libtool
7772 *** libraries will work regardless of this problem. Nevertheless, you
7773 *** may want to report the problem to your system manager and/or to
7774 *** bug-libtool@gnu.org
7775
7776 _LT_EOF
7777 fi ;;
7778 esac
7779 fi
7780 break
7781 fi
7782 done
7783 IFS="$lt_save_ifs"
7784 MAGIC_CMD="$lt_save_MAGIC_CMD"
7785 ;;
7786 esac
7787 fi
7788
7789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790 if test -n "$MAGIC_CMD"; then
7791 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7792 $as_echo "$MAGIC_CMD" >&6; }
7793 else
7794 { $as_echo "$as_me:$LINENO: result: no" >&5
7795 $as_echo "no" >&6; }
7796 fi
7797
7798
7799 else
7800 MAGIC_CMD=:
7801 fi
7802 fi
7803
7804 fi
7805 ;;
7806 esac
7807
7808 # Use C for the default configuration in the libtool script
7809
7810 lt_save_CC="$CC"
7811 ac_ext=c
7812 ac_cpp='$CPP $CPPFLAGS'
7813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7816
7817
7818 # Source file extension for C test sources.
7819 ac_ext=c
7820
7821 # Object file extension for compiled C test sources.
7822 objext=o
7823 objext=$objext
7824
7825 # Code to be used in simple compile tests
7826 lt_simple_compile_test_code="int some_variable = 0;"
7827
7828 # Code to be used in simple link tests
7829 lt_simple_link_test_code='int main(){return(0);}'
7830
7831
7832
7833
7834
7835
7836
7837 # If no C compiler was specified, use CC.
7838 LTCC=${LTCC-"$CC"}
7839
7840 # If no C compiler flags were specified, use CFLAGS.
7841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842
7843 # Allow CC to be a program name with arguments.
7844 compiler=$CC
7845
7846 # Save the default compiler, since it gets overwritten when the other
7847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7848 compiler_DEFAULT=$CC
7849
7850 # save warnings/boilerplate of simple test code
7851 ac_outfile=conftest.$ac_objext
7852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7854 _lt_compiler_boilerplate=`cat conftest.err`
7855 $RM conftest*
7856
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_linker_boilerplate=`cat conftest.err`
7861 $RM -r conftest*
7862
7863
7864 if test -n "$compiler"; then
7865
7866 lt_prog_compiler_no_builtin_flag=
7867
7868 if test "$GCC" = yes; then
7869 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7870
7871 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7872 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7875 else
7876 lt_cv_prog_compiler_rtti_exceptions=no
7877 ac_outfile=conftest.$ac_objext
7878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879 lt_compiler_flag="-fno-rtti -fno-exceptions"
7880 # Insert the option either (1) after the last *FLAGS variable, or
7881 # (2) before a word containing "conftest.", or (3) at the end.
7882 # Note that $ac_compile itself does not contain backslashes and begins
7883 # with a dollar sign (not a hyphen), so the echo should work correctly.
7884 # The option is referenced via a variable to avoid confusing sed.
7885 lt_compile=`echo "$ac_compile" | $SED \
7886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888 -e 's:$: $lt_compiler_flag:'`
7889 (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
7890 (eval "$lt_compile" 2>conftest.err)
7891 ac_status=$?
7892 cat conftest.err >&5
7893 echo "$as_me:7893: \$? = $ac_status" >&5
7894 if (exit $ac_status) && test -s "$ac_outfile"; then
7895 # The compiler can only warn and ignore the option if not recognized
7896 # So say no if there are warnings other than the usual output.
7897 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7900 lt_cv_prog_compiler_rtti_exceptions=yes
7901 fi
7902 fi
7903 $RM conftest*
7904
7905 fi
7906 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7907 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7908
7909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7911 else
7912 :
7913 fi
7914
7915 fi
7916
7917
7918
7919
7920
7921
7922 lt_prog_compiler_wl=
7923 lt_prog_compiler_pic=
7924 lt_prog_compiler_static=
7925
7926 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7927 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7928
7929 if test "$GCC" = yes; then
7930 lt_prog_compiler_wl='-Wl,'
7931 lt_prog_compiler_static='-static'
7932
7933 case $host_os in
7934 aix*)
7935 # All AIX code is PIC.
7936 if test "$host_cpu" = ia64; then
7937 # AIX 5 now supports IA64 processor
7938 lt_prog_compiler_static='-Bstatic'
7939 fi
7940 ;;
7941
7942 amigaos*)
7943 case $host_cpu in
7944 powerpc)
7945 # see comment about AmigaOS4 .so support
7946 lt_prog_compiler_pic='-fPIC'
7947 ;;
7948 m68k)
7949 # FIXME: we need at least 68020 code to build shared libraries, but
7950 # adding the `-m68020' flag to GCC prevents building anything better,
7951 # like `-m68040'.
7952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7953 ;;
7954 esac
7955 ;;
7956
7957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7958 # PIC is the default for these OSes.
7959 ;;
7960
7961 mingw* | cygwin* | pw32* | os2* | cegcc*)
7962 # This hack is so that the source file can tell whether it is being
7963 # built for inclusion in a dll (and should export symbols for example).
7964 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7965 # (--disable-auto-import) libraries
7966 lt_prog_compiler_pic='-DDLL_EXPORT'
7967 ;;
7968
7969 darwin* | rhapsody*)
7970 # PIC is the default on this platform
7971 # Common symbols not allowed in MH_DYLIB files
7972 lt_prog_compiler_pic='-fno-common'
7973 ;;
7974
7975 hpux*)
7976 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7977 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7978 # sets the default TLS model and affects inlining.
7979 case $host_cpu in
7980 hppa*64*)
7981 # +Z the default
7982 ;;
7983 *)
7984 lt_prog_compiler_pic='-fPIC'
7985 ;;
7986 esac
7987 ;;
7988
7989 interix[3-9]*)
7990 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7991 # Instead, we relocate shared libraries at runtime.
7992 ;;
7993
7994 msdosdjgpp*)
7995 # Just because we use GCC doesn't mean we suddenly get shared libraries
7996 # on systems that don't support them.
7997 lt_prog_compiler_can_build_shared=no
7998 enable_shared=no
7999 ;;
8000
8001 *nto* | *qnx*)
8002 # QNX uses GNU C++, but need to define -shared option too, otherwise
8003 # it will coredump.
8004 lt_prog_compiler_pic='-fPIC -shared'
8005 ;;
8006
8007 sysv4*MP*)
8008 if test -d /usr/nec; then
8009 lt_prog_compiler_pic=-Kconform_pic
8010 fi
8011 ;;
8012
8013 *)
8014 lt_prog_compiler_pic='-fPIC'
8015 ;;
8016 esac
8017 else
8018 # PORTME Check for flag to pass linker flags through the system compiler.
8019 case $host_os in
8020 aix*)
8021 lt_prog_compiler_wl='-Wl,'
8022 if test "$host_cpu" = ia64; then
8023 # AIX 5 now supports IA64 processor
8024 lt_prog_compiler_static='-Bstatic'
8025 else
8026 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027 fi
8028 ;;
8029
8030 mingw* | cygwin* | pw32* | os2* | cegcc*)
8031 # This hack is so that the source file can tell whether it is being
8032 # built for inclusion in a dll (and should export symbols for example).
8033 lt_prog_compiler_pic='-DDLL_EXPORT'
8034 ;;
8035
8036 hpux9* | hpux10* | hpux11*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039 # not for PA HP-UX.
8040 case $host_cpu in
8041 hppa*64*|ia64*)
8042 # +Z the default
8043 ;;
8044 *)
8045 lt_prog_compiler_pic='+Z'
8046 ;;
8047 esac
8048 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8049 lt_prog_compiler_static='${wl}-a ${wl}archive'
8050 ;;
8051
8052 irix5* | irix6* | nonstopux*)
8053 lt_prog_compiler_wl='-Wl,'
8054 # PIC (with -KPIC) is the default.
8055 lt_prog_compiler_static='-non_shared'
8056 ;;
8057
8058 linux* | k*bsd*-gnu)
8059 case $cc_basename in
8060 # old Intel for x86_64 which still supported -KPIC.
8061 ecc*)
8062 lt_prog_compiler_wl='-Wl,'
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-static'
8065 ;;
8066 # icc used to be incompatible with GCC.
8067 # ICC 10 doesn't accept -KPIC any more.
8068 icc* | ifort*)
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_pic='-fPIC'
8071 lt_prog_compiler_static='-static'
8072 ;;
8073 # Lahey Fortran 8.1.
8074 lf95*)
8075 lt_prog_compiler_wl='-Wl,'
8076 lt_prog_compiler_pic='--shared'
8077 lt_prog_compiler_static='--static'
8078 ;;
8079 pgcc* | pgf77* | pgf90* | pgf95*)
8080 # Portland Group compilers (*not* the Pentium gcc compiler,
8081 # which looks to be a dead project)
8082 lt_prog_compiler_wl='-Wl,'
8083 lt_prog_compiler_pic='-fpic'
8084 lt_prog_compiler_static='-Bstatic'
8085 ;;
8086 ccc*)
8087 lt_prog_compiler_wl='-Wl,'
8088 # All Alpha code is PIC.
8089 lt_prog_compiler_static='-non_shared'
8090 ;;
8091 xl*)
8092 # IBM XL C 8.0/Fortran 10.1 on PPC
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='-qpic'
8095 lt_prog_compiler_static='-qstaticlink'
8096 ;;
8097 *)
8098 case `$CC -V 2>&1 | sed 5q` in
8099 *Sun\ C*)
8100 # Sun C 5.9
8101 lt_prog_compiler_pic='-KPIC'
8102 lt_prog_compiler_static='-Bstatic'
8103 lt_prog_compiler_wl='-Wl,'
8104 ;;
8105 *Sun\ F*)
8106 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8107 lt_prog_compiler_pic='-KPIC'
8108 lt_prog_compiler_static='-Bstatic'
8109 lt_prog_compiler_wl=''
8110 ;;
8111 esac
8112 ;;
8113 esac
8114 ;;
8115
8116 newsos6)
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8119 ;;
8120
8121 *nto* | *qnx*)
8122 # QNX uses GNU C++, but need to define -shared option too, otherwise
8123 # it will coredump.
8124 lt_prog_compiler_pic='-fPIC -shared'
8125 ;;
8126
8127 osf3* | osf4* | osf5*)
8128 lt_prog_compiler_wl='-Wl,'
8129 # All OSF/1 code is PIC.
8130 lt_prog_compiler_static='-non_shared'
8131 ;;
8132
8133 rdos*)
8134 lt_prog_compiler_static='-non_shared'
8135 ;;
8136
8137 solaris*)
8138 lt_prog_compiler_pic='-KPIC'
8139 lt_prog_compiler_static='-Bstatic'
8140 case $cc_basename in
8141 f77* | f90* | f95*)
8142 lt_prog_compiler_wl='-Qoption ld ';;
8143 *)
8144 lt_prog_compiler_wl='-Wl,';;
8145 esac
8146 ;;
8147
8148 sunos4*)
8149 lt_prog_compiler_wl='-Qoption ld '
8150 lt_prog_compiler_pic='-PIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153
8154 sysv4 | sysv4.2uw2* | sysv4.3*)
8155 lt_prog_compiler_wl='-Wl,'
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8158 ;;
8159
8160 sysv4*MP*)
8161 if test -d /usr/nec ;then
8162 lt_prog_compiler_pic='-Kconform_pic'
8163 lt_prog_compiler_static='-Bstatic'
8164 fi
8165 ;;
8166
8167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-KPIC'
8170 lt_prog_compiler_static='-Bstatic'
8171 ;;
8172
8173 unicos*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_can_build_shared=no
8176 ;;
8177
8178 uts4*)
8179 lt_prog_compiler_pic='-pic'
8180 lt_prog_compiler_static='-Bstatic'
8181 ;;
8182
8183 *)
8184 lt_prog_compiler_can_build_shared=no
8185 ;;
8186 esac
8187 fi
8188
8189 case $host_os in
8190 # For platforms which do not support PIC, -DPIC is meaningless:
8191 *djgpp*)
8192 lt_prog_compiler_pic=
8193 ;;
8194 *)
8195 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8196 ;;
8197 esac
8198 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8199 $as_echo "$lt_prog_compiler_pic" >&6; }
8200
8201
8202
8203
8204
8205
8206 #
8207 # Check to make sure the PIC flag actually works.
8208 #
8209 if test -n "$lt_prog_compiler_pic"; then
8210 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8212 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8213 $as_echo_n "(cached) " >&6
8214 else
8215 lt_cv_prog_compiler_pic_works=no
8216 ac_outfile=conftest.$ac_objext
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8219 # Insert the option either (1) after the last *FLAGS variable, or
8220 # (2) before a word containing "conftest.", or (3) at the end.
8221 # Note that $ac_compile itself does not contain backslashes and begins
8222 # with a dollar sign (not a hyphen), so the echo should work correctly.
8223 # The option is referenced via a variable to avoid confusing sed.
8224 lt_compile=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:8228: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>conftest.err)
8230 ac_status=$?
8231 cat conftest.err >&5
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s "$ac_outfile"; then
8234 # The compiler can only warn and ignore the option if not recognized
8235 # So say no if there are warnings other than the usual output.
8236 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8239 lt_cv_prog_compiler_pic_works=yes
8240 fi
8241 fi
8242 $RM conftest*
8243
8244 fi
8245 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8247
8248 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8249 case $lt_prog_compiler_pic in
8250 "" | " "*) ;;
8251 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8252 esac
8253 else
8254 lt_prog_compiler_pic=
8255 lt_prog_compiler_can_build_shared=no
8256 fi
8257
8258 fi
8259
8260
8261
8262
8263
8264
8265 #
8266 # Check to make sure the static flag actually works.
8267 #
8268 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8269 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8270 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8271 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8273 else
8274 lt_cv_prog_compiler_static_works=no
8275 save_LDFLAGS="$LDFLAGS"
8276 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8277 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8279 # The linker can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 if test -s conftest.err; then
8282 # Append any errors to the config.log.
8283 cat conftest.err 1>&5
8284 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8286 if diff conftest.exp conftest.er2 >/dev/null; then
8287 lt_cv_prog_compiler_static_works=yes
8288 fi
8289 else
8290 lt_cv_prog_compiler_static_works=yes
8291 fi
8292 fi
8293 $RM -r conftest*
8294 LDFLAGS="$save_LDFLAGS"
8295
8296 fi
8297 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8298 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8299
8300 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8301 :
8302 else
8303 lt_prog_compiler_static=
8304 fi
8305
8306
8307
8308
8309
8310
8311
8312 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8313 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8314 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8316 else
8317 lt_cv_prog_compiler_c_o=no
8318 $RM -r conftest 2>/dev/null
8319 mkdir conftest
8320 cd conftest
8321 mkdir out
8322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323
8324 lt_compiler_flag="-o out/conftest2.$ac_objext"
8325 # Insert the option either (1) after the last *FLAGS variable, or
8326 # (2) before a word containing "conftest.", or (3) at the end.
8327 # Note that $ac_compile itself does not contain backslashes and begins
8328 # with a dollar sign (not a hyphen), so the echo should work correctly.
8329 lt_compile=`echo "$ac_compile" | $SED \
8330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8332 -e 's:$: $lt_compiler_flag:'`
8333 (eval echo "\"\$as_me:8333: $lt_compile\"" >&5)
8334 (eval "$lt_compile" 2>out/conftest.err)
8335 ac_status=$?
8336 cat out/conftest.err >&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339 then
8340 # The compiler can only warn and ignore the option if not recognized
8341 # So say no if there are warnings
8342 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8343 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8344 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8345 lt_cv_prog_compiler_c_o=yes
8346 fi
8347 fi
8348 chmod u+w . 2>&5
8349 $RM conftest*
8350 # SGI C++ compiler will create directory out/ii_files/ for
8351 # template instantiation
8352 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8353 $RM out/* && rmdir out
8354 cd ..
8355 $RM -r conftest
8356 $RM conftest*
8357
8358 fi
8359 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8360 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361
8362
8363
8364
8365
8366
8367 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8368 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8369 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8370 $as_echo_n "(cached) " >&6
8371 else
8372 lt_cv_prog_compiler_c_o=no
8373 $RM -r conftest 2>/dev/null
8374 mkdir conftest
8375 cd conftest
8376 mkdir out
8377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378
8379 lt_compiler_flag="-o out/conftest2.$ac_objext"
8380 # Insert the option either (1) after the last *FLAGS variable, or
8381 # (2) before a word containing "conftest.", or (3) at the end.
8382 # Note that $ac_compile itself does not contain backslashes and begins
8383 # with a dollar sign (not a hyphen), so the echo should work correctly.
8384 lt_compile=`echo "$ac_compile" | $SED \
8385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387 -e 's:$: $lt_compiler_flag:'`
8388 (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389 (eval "$lt_compile" 2>out/conftest.err)
8390 ac_status=$?
8391 cat out/conftest.err >&5
8392 echo "$as_me:8392: \$? = $ac_status" >&5
8393 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394 then
8395 # The compiler can only warn and ignore the option if not recognized
8396 # So say no if there are warnings
8397 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8398 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8399 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8400 lt_cv_prog_compiler_c_o=yes
8401 fi
8402 fi
8403 chmod u+w . 2>&5
8404 $RM conftest*
8405 # SGI C++ compiler will create directory out/ii_files/ for
8406 # template instantiation
8407 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8408 $RM out/* && rmdir out
8409 cd ..
8410 $RM -r conftest
8411 $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8415 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8416
8417
8418
8419
8420 hard_links="nottested"
8421 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8422 # do not overwrite the value of need_locks provided by the user
8423 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8424 $as_echo_n "checking if we can lock with hard links... " >&6; }
8425 hard_links=yes
8426 $RM conftest*
8427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428 touch conftest.a
8429 ln conftest.a conftest.b 2>&5 || hard_links=no
8430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8432 $as_echo "$hard_links" >&6; }
8433 if test "$hard_links" = no; then
8434 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8435 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8436 need_locks=warn
8437 fi
8438 else
8439 need_locks=no
8440 fi
8441
8442
8443
8444
8445
8446
8447 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8449
8450 runpath_var=
8451 allow_undefined_flag=
8452 always_export_symbols=no
8453 archive_cmds=
8454 archive_expsym_cmds=
8455 compiler_needs_object=no
8456 enable_shared_with_static_runtimes=no
8457 export_dynamic_flag_spec=
8458 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8459 hardcode_automatic=no
8460 hardcode_direct=no
8461 hardcode_direct_absolute=no
8462 hardcode_libdir_flag_spec=
8463 hardcode_libdir_flag_spec_ld=
8464 hardcode_libdir_separator=
8465 hardcode_minus_L=no
8466 hardcode_shlibpath_var=unsupported
8467 inherit_rpath=no
8468 link_all_deplibs=unknown
8469 module_cmds=
8470 module_expsym_cmds=
8471 old_archive_from_new_cmds=
8472 old_archive_from_expsyms_cmds=
8473 thread_safe_flag_spec=
8474 whole_archive_flag_spec=
8475 # include_expsyms should be a list of space-separated symbols to be *always*
8476 # included in the symbol list
8477 include_expsyms=
8478 # exclude_expsyms can be an extended regexp of symbols to exclude
8479 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8480 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8481 # as well as any symbol that contains `d'.
8482 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8483 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8484 # platforms (ab)use it in PIC code, but their linkers get confused if
8485 # the symbol is explicitly referenced. Since portable code cannot
8486 # rely on this symbol name, it's probably fine to never include it in
8487 # preloaded symbol tables.
8488 # Exclude shared library initialization/finalization symbols.
8489 extract_expsyms_cmds=
8490
8491 case $host_os in
8492 cygwin* | mingw* | pw32* | cegcc*)
8493 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8494 # When not using gcc, we currently assume that we are using
8495 # Microsoft Visual C++.
8496 if test "$GCC" != yes; then
8497 with_gnu_ld=no
8498 fi
8499 ;;
8500 interix*)
8501 # we just hope/assume this is gcc and not c89 (= MSVC++)
8502 with_gnu_ld=yes
8503 ;;
8504 openbsd*)
8505 with_gnu_ld=no
8506 ;;
8507 esac
8508
8509 ld_shlibs=yes
8510 if test "$with_gnu_ld" = yes; then
8511 # If archive_cmds runs LD, not CC, wlarc should be empty
8512 wlarc='${wl}'
8513
8514 # Set some defaults for GNU ld with shared library support. These
8515 # are reset later if shared libraries are not supported. Putting them
8516 # here allows them to be overridden if necessary.
8517 runpath_var=LD_RUN_PATH
8518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8519 export_dynamic_flag_spec='${wl}--export-dynamic'
8520 # ancient GNU ld didn't support --whole-archive et. al.
8521 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8522 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8523 else
8524 whole_archive_flag_spec=
8525 fi
8526 supports_anon_versioning=no
8527 case `$LD -v 2>&1` in
8528 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8529 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8530 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8531 *\ 2.11.*) ;; # other 2.11 versions
8532 *) supports_anon_versioning=yes ;;
8533 esac
8534
8535 # See if GNU ld supports shared libraries.
8536 case $host_os in
8537 aix[3-9]*)
8538 # On AIX/PPC, the GNU linker is very broken
8539 if test "$host_cpu" != ia64; then
8540 ld_shlibs=no
8541 cat <<_LT_EOF 1>&2
8542
8543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8544 *** to be unable to reliably create shared libraries on AIX.
8545 *** Therefore, libtool is disabling shared libraries support. If you
8546 *** really care for shared libraries, you may want to modify your PATH
8547 *** so that a non-GNU linker is found, and then restart.
8548
8549 _LT_EOF
8550 fi
8551 ;;
8552
8553 amigaos*)
8554 case $host_cpu in
8555 powerpc)
8556 # see comment about AmigaOS4 .so support
8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8558 archive_expsym_cmds=''
8559 ;;
8560 m68k)
8561 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)'
8562 hardcode_libdir_flag_spec='-L$libdir'
8563 hardcode_minus_L=yes
8564 ;;
8565 esac
8566 ;;
8567
8568 beos*)
8569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8570 allow_undefined_flag=unsupported
8571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8572 # support --undefined. This deserves some investigation. FIXME
8573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
8578
8579 cygwin* | mingw* | pw32* | cegcc*)
8580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8581 # as there is no search path for DLLs.
8582 hardcode_libdir_flag_spec='-L$libdir'
8583 allow_undefined_flag=unsupported
8584 always_export_symbols=no
8585 enable_shared_with_static_runtimes=yes
8586 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8587
8588 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8590 # If the export-symbols file already is a .def file (1st line
8591 # is EXPORTS), use it as is; otherwise, prepend...
8592 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8593 cp $export_symbols $output_objdir/$soname.def;
8594 else
8595 echo EXPORTS > $output_objdir/$soname.def;
8596 cat $export_symbols >> $output_objdir/$soname.def;
8597 fi~
8598 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8599 else
8600 ld_shlibs=no
8601 fi
8602 ;;
8603
8604 interix[3-9]*)
8605 hardcode_direct=no
8606 hardcode_shlibpath_var=no
8607 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8608 export_dynamic_flag_spec='${wl}-E'
8609 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8610 # Instead, shared libraries are loaded at an image base (0x10000000 by
8611 # default) and relocated if they conflict, which is a slow very memory
8612 # consuming and fragmenting process. To avoid this, we pick a random,
8613 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8614 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8615 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8616 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'
8617 ;;
8618
8619 gnu* | linux* | tpf* | k*bsd*-gnu)
8620 tmp_diet=no
8621 if test "$host_os" = linux-dietlibc; then
8622 case $cc_basename in
8623 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8624 esac
8625 fi
8626 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8627 && test "$tmp_diet" = no
8628 then
8629 tmp_addflag=
8630 tmp_sharedflag='-shared'
8631 case $cc_basename,$host_cpu in
8632 pgcc*) # Portland Group C compiler
8633 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'
8634 tmp_addflag=' $pic_flag'
8635 ;;
8636 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8637 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'
8638 tmp_addflag=' $pic_flag -Mnomain' ;;
8639 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8640 tmp_addflag=' -i_dynamic' ;;
8641 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8642 tmp_addflag=' -i_dynamic -nofor_main' ;;
8643 ifc* | ifort*) # Intel Fortran compiler
8644 tmp_addflag=' -nofor_main' ;;
8645 lf95*) # Lahey Fortran 8.1
8646 whole_archive_flag_spec=
8647 tmp_sharedflag='--shared' ;;
8648 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8649 tmp_sharedflag='-qmkshrobj'
8650 tmp_addflag= ;;
8651 esac
8652 case `$CC -V 2>&1 | sed 5q` in
8653 *Sun\ C*) # Sun C 5.9
8654 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'
8655 compiler_needs_object=yes
8656 tmp_sharedflag='-G' ;;
8657 *Sun\ F*) # Sun Fortran 8.3
8658 tmp_sharedflag='-G' ;;
8659 esac
8660 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661
8662 if test "x$supports_anon_versioning" = xyes; then
8663 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8664 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8665 echo "local: *; };" >> $output_objdir/$libname.ver~
8666 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8667 fi
8668
8669 case $cc_basename in
8670 xlf*)
8671 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8672 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8673 hardcode_libdir_flag_spec=
8674 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8675 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8676 if test "x$supports_anon_versioning" = xyes; then
8677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679 echo "local: *; };" >> $output_objdir/$libname.ver~
8680 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8681 fi
8682 ;;
8683 esac
8684 else
8685 ld_shlibs=no
8686 fi
8687 ;;
8688
8689 netbsd*)
8690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8691 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8692 wlarc=
8693 else
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696 fi
8697 ;;
8698
8699 solaris*)
8700 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8701 ld_shlibs=no
8702 cat <<_LT_EOF 1>&2
8703
8704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8705 *** create shared libraries on Solaris systems. Therefore, libtool
8706 *** is disabling shared libraries support. We urge you to upgrade GNU
8707 *** binutils to release 2.9.1 or newer. Another option is to modify
8708 *** your PATH or compiler configuration so that the native linker is
8709 *** used, and then restart.
8710
8711 _LT_EOF
8712 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 else
8716 ld_shlibs=no
8717 fi
8718 ;;
8719
8720 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8721 case `$LD -v 2>&1` in
8722 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8723 ld_shlibs=no
8724 cat <<_LT_EOF 1>&2
8725
8726 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8727 *** reliably create shared libraries on SCO systems. Therefore, libtool
8728 *** is disabling shared libraries support. We urge you to upgrade GNU
8729 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8730 *** your PATH or compiler configuration so that the native linker is
8731 *** used, and then restart.
8732
8733 _LT_EOF
8734 ;;
8735 *)
8736 # For security reasons, it is highly recommended that you always
8737 # use absolute paths for naming shared libraries, and exclude the
8738 # DT_RUNPATH tag from executables and libraries. But doing so
8739 # requires that you compile everything twice, which is a pain.
8740 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8744 else
8745 ld_shlibs=no
8746 fi
8747 ;;
8748 esac
8749 ;;
8750
8751 sunos4*)
8752 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8753 wlarc=
8754 hardcode_direct=yes
8755 hardcode_shlibpath_var=no
8756 ;;
8757
8758 *)
8759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 else
8763 ld_shlibs=no
8764 fi
8765 ;;
8766 esac
8767
8768 if test "$ld_shlibs" = no; then
8769 runpath_var=
8770 hardcode_libdir_flag_spec=
8771 export_dynamic_flag_spec=
8772 whole_archive_flag_spec=
8773 fi
8774 else
8775 # PORTME fill in a description of your system's linker (not GNU ld)
8776 case $host_os in
8777 aix3*)
8778 allow_undefined_flag=unsupported
8779 always_export_symbols=yes
8780 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'
8781 # Note: this linker hardcodes the directories in LIBPATH if there
8782 # are no directories specified by -L.
8783 hardcode_minus_L=yes
8784 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8785 # Neither direct hardcoding nor static linking is supported with a
8786 # broken collect2.
8787 hardcode_direct=unsupported
8788 fi
8789 ;;
8790
8791 aix[4-9]*)
8792 if test "$host_cpu" = ia64; then
8793 # On IA64, the linker does run time linking by default, so we don't
8794 # have to do anything special.
8795 aix_use_runtimelinking=no
8796 exp_sym_flag='-Bexport'
8797 no_entry_flag=""
8798 else
8799 # If we're using GNU nm, then we don't want the "-C" option.
8800 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8802 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'
8803 else
8804 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'
8805 fi
8806 aix_use_runtimelinking=no
8807
8808 # Test if we are trying to use run time linking or normal
8809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8810 # need to do runtime linking.
8811 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8812 for ld_flag in $LDFLAGS; do
8813 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8814 aix_use_runtimelinking=yes
8815 break
8816 fi
8817 done
8818 ;;
8819 esac
8820
8821 exp_sym_flag='-bexport'
8822 no_entry_flag='-bnoentry'
8823 fi
8824
8825 # When large executables or shared objects are built, AIX ld can
8826 # have problems creating the table of contents. If linking a library
8827 # or program results in "error TOC overflow" add -mminimal-toc to
8828 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8829 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8830
8831 archive_cmds=''
8832 hardcode_direct=yes
8833 hardcode_direct_absolute=yes
8834 hardcode_libdir_separator=':'
8835 link_all_deplibs=yes
8836 file_list_spec='${wl}-f,'
8837
8838 if test "$GCC" = yes; then
8839 case $host_os in aix4.[012]|aix4.[012].*)
8840 # We only want to do this on AIX 4.2 and lower, the check
8841 # below for broken collect2 doesn't work under 4.3+
8842 collect2name=`${CC} -print-prog-name=collect2`
8843 if test -f "$collect2name" &&
8844 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845 then
8846 # We have reworked collect2
8847 :
8848 else
8849 # We have old collect2
8850 hardcode_direct=unsupported
8851 # It fails to find uninstalled libraries when the uninstalled
8852 # path is not listed in the libpath. Setting hardcode_minus_L
8853 # to unsupported forces relinking
8854 hardcode_minus_L=yes
8855 hardcode_libdir_flag_spec='-L$libdir'
8856 hardcode_libdir_separator=
8857 fi
8858 ;;
8859 esac
8860 shared_flag='-shared'
8861 if test "$aix_use_runtimelinking" = yes; then
8862 shared_flag="$shared_flag "'${wl}-G'
8863 fi
8864 else
8865 # not using gcc
8866 if test "$host_cpu" = ia64; then
8867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8868 # chokes on -Wl,-G. The following line is correct:
8869 shared_flag='-G'
8870 else
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag='${wl}-G'
8873 else
8874 shared_flag='${wl}-bM:SRE'
8875 fi
8876 fi
8877 fi
8878
8879 export_dynamic_flag_spec='${wl}-bexpall'
8880 # It seems that -bexpall does not export symbols beginning with
8881 # underscore (_), so it is better to generate a list of symbols to export.
8882 always_export_symbols=yes
8883 if test "$aix_use_runtimelinking" = yes; then
8884 # Warning - without using the other runtime loading flags (-brtl),
8885 # -berok will link without error, but may produce a broken library.
8886 allow_undefined_flag='-berok'
8887 # Determine the default libpath from the value encoded in an
8888 # empty executable.
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895
8896 int
8897 main ()
8898 {
8899
8900 ;
8901 return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (ac_try="$ac_link"
8906 case "(($ac_try" in
8907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8909 esac
8910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8911 $as_echo "$ac_try_echo") >&5
8912 (eval "$ac_link") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest$ac_exeext && {
8922 test "$cross_compiling" = yes ||
8923 $as_test_x conftest$ac_exeext
8924 }; then
8925
8926 lt_aix_libpath_sed='
8927 /Import File Strings/,/^$/ {
8928 /^0/ {
8929 s/^0 *\(.*\)$/\1/
8930 p
8931 }
8932 }'
8933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8934 # Check for a 64-bit object if we didn't find anything.
8935 if test -z "$aix_libpath"; then
8936 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 fi
8938 else
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942
8943 fi
8944
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947 conftest$ac_exeext conftest.$ac_ext
8948 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949
8950 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8951 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"
8952 else
8953 if test "$host_cpu" = ia64; then
8954 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8955 allow_undefined_flag="-z nodefs"
8956 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"
8957 else
8958 # Determine the default libpath from the value encoded in an
8959 # empty executable.
8960 cat >conftest.$ac_ext <<_ACEOF
8961 /* confdefs.h. */
8962 _ACEOF
8963 cat confdefs.h >>conftest.$ac_ext
8964 cat >>conftest.$ac_ext <<_ACEOF
8965 /* end confdefs.h. */
8966
8967 int
8968 main ()
8969 {
8970
8971 ;
8972 return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (ac_try="$ac_link"
8977 case "(($ac_try" in
8978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8979 *) ac_try_echo=$ac_try;;
8980 esac
8981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8982 $as_echo "$ac_try_echo") >&5
8983 (eval "$ac_link") 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest$ac_exeext && {
8993 test "$cross_compiling" = yes ||
8994 $as_test_x conftest$ac_exeext
8995 }; then
8996
8997 lt_aix_libpath_sed='
8998 /Import File Strings/,/^$/ {
8999 /^0/ {
9000 s/^0 *\(.*\)$/\1/
9001 p
9002 }
9003 }'
9004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9005 # Check for a 64-bit object if we didn't find anything.
9006 if test -z "$aix_libpath"; then
9007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9008 fi
9009 else
9010 $as_echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013
9014 fi
9015
9016 rm -rf conftest.dSYM
9017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9018 conftest$ac_exeext conftest.$ac_ext
9019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9020
9021 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9022 # Warning - without using the other run time loading flags,
9023 # -berok will link without error, but may produce a broken library.
9024 no_undefined_flag=' ${wl}-bernotok'
9025 allow_undefined_flag=' ${wl}-berok'
9026 # Exported symbols can be pulled into shared objects from archives
9027 whole_archive_flag_spec='$convenience'
9028 archive_cmds_need_lc=yes
9029 # This is similar to how AIX traditionally builds its shared libraries.
9030 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'
9031 fi
9032 fi
9033 ;;
9034
9035 amigaos*)
9036 case $host_cpu in
9037 powerpc)
9038 # see comment about AmigaOS4 .so support
9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds=''
9041 ;;
9042 m68k)
9043 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)'
9044 hardcode_libdir_flag_spec='-L$libdir'
9045 hardcode_minus_L=yes
9046 ;;
9047 esac
9048 ;;
9049
9050 bsdi[45]*)
9051 export_dynamic_flag_spec=-rdynamic
9052 ;;
9053
9054 cygwin* | mingw* | pw32* | cegcc*)
9055 # When not using gcc, we currently assume that we are using
9056 # Microsoft Visual C++.
9057 # hardcode_libdir_flag_spec is actually meaningless, as there is
9058 # no search path for DLLs.
9059 hardcode_libdir_flag_spec=' '
9060 allow_undefined_flag=unsupported
9061 # Tell ltmain to make .lib files, not .a files.
9062 libext=lib
9063 # Tell ltmain to make .dll files, not .so files.
9064 shrext_cmds=".dll"
9065 # FIXME: Setting linknames here is a bad hack.
9066 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9067 # The linker will automatically build a .lib file if we build a DLL.
9068 old_archive_from_new_cmds='true'
9069 # FIXME: Should let the user specify the lib program.
9070 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9071 fix_srcfile_path='`cygpath -w "$srcfile"`'
9072 enable_shared_with_static_runtimes=yes
9073 ;;
9074
9075 darwin* | rhapsody*)
9076
9077
9078 archive_cmds_need_lc=no
9079 hardcode_direct=no
9080 hardcode_automatic=yes
9081 hardcode_shlibpath_var=unsupported
9082 whole_archive_flag_spec=''
9083 link_all_deplibs=yes
9084 allow_undefined_flag="$_lt_dar_allow_undefined"
9085 case $cc_basename in
9086 ifort*) _lt_dar_can_shared=yes ;;
9087 *) _lt_dar_can_shared=$GCC ;;
9088 esac
9089 if test "$_lt_dar_can_shared" = "yes"; then
9090 output_verbose_link_cmd=echo
9091 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093 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}"
9094 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}"
9095
9096 else
9097 ld_shlibs=no
9098 fi
9099
9100 ;;
9101
9102 dgux*)
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_shlibpath_var=no
9106 ;;
9107
9108 freebsd1*)
9109 ld_shlibs=no
9110 ;;
9111
9112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113 # support. Future versions do this automatically, but an explicit c++rt0.o
9114 # does not break anything, and helps significantly (at the cost of a little
9115 # extra space).
9116 freebsd2.2*)
9117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118 hardcode_libdir_flag_spec='-R$libdir'
9119 hardcode_direct=yes
9120 hardcode_shlibpath_var=no
9121 ;;
9122
9123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124 freebsd2*)
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126 hardcode_direct=yes
9127 hardcode_minus_L=yes
9128 hardcode_shlibpath_var=no
9129 ;;
9130
9131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132 freebsd* | dragonfly*)
9133 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134 hardcode_libdir_flag_spec='-R$libdir'
9135 hardcode_direct=yes
9136 hardcode_shlibpath_var=no
9137 ;;
9138
9139 hpux9*)
9140 if test "$GCC" = yes; then
9141 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'
9142 else
9143 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'
9144 fi
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_separator=:
9147 hardcode_direct=yes
9148
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9152 export_dynamic_flag_spec='${wl}-E'
9153 ;;
9154
9155 hpux10*)
9156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9157 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158 else
9159 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160 fi
9161 if test "$with_gnu_ld" = no; then
9162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163 hardcode_libdir_flag_spec_ld='+b $libdir'
9164 hardcode_libdir_separator=:
9165 hardcode_direct=yes
9166 hardcode_direct_absolute=yes
9167 export_dynamic_flag_spec='${wl}-E'
9168 # hardcode_minus_L: Not really in the search PATH,
9169 # but as the default location of the library.
9170 hardcode_minus_L=yes
9171 fi
9172 ;;
9173
9174 hpux11*)
9175 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9176 case $host_cpu in
9177 hppa*64*)
9178 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179 ;;
9180 ia64*)
9181 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182 ;;
9183 *)
9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9185 ;;
9186 esac
9187 else
9188 case $host_cpu in
9189 hppa*64*)
9190 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191 ;;
9192 ia64*)
9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194 ;;
9195 *)
9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 esac
9199 fi
9200 if test "$with_gnu_ld" = no; then
9201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9202 hardcode_libdir_separator=:
9203
9204 case $host_cpu in
9205 hppa*64*|ia64*)
9206 hardcode_direct=no
9207 hardcode_shlibpath_var=no
9208 ;;
9209 *)
9210 hardcode_direct=yes
9211 hardcode_direct_absolute=yes
9212 export_dynamic_flag_spec='${wl}-E'
9213
9214 # hardcode_minus_L: Not really in the search PATH,
9215 # but as the default location of the library.
9216 hardcode_minus_L=yes
9217 ;;
9218 esac
9219 fi
9220 ;;
9221
9222 irix5* | irix6* | nonstopux*)
9223 if test "$GCC" = yes; then
9224 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'
9225 # Try to use the -exported_symbol ld option, if it does not
9226 # work, assume that -exports_file does not work either and
9227 # implicitly export all symbols.
9228 save_LDFLAGS="$LDFLAGS"
9229 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9230 cat >conftest.$ac_ext <<_ACEOF
9231 int foo(void) {}
9232 _ACEOF
9233 rm -f conftest.$ac_objext conftest$ac_exeext
9234 if { (ac_try="$ac_link"
9235 case "(($ac_try" in
9236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237 *) ac_try_echo=$ac_try;;
9238 esac
9239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240 $as_echo "$ac_try_echo") >&5
9241 (eval "$ac_link") 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext && {
9251 test "$cross_compiling" = yes ||
9252 $as_test_x conftest$ac_exeext
9253 }; then
9254 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'
9255
9256 else
9257 $as_echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260
9261 fi
9262
9263 rm -rf conftest.dSYM
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LDFLAGS="$save_LDFLAGS"
9267 else
9268 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'
9269 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'
9270 fi
9271 archive_cmds_need_lc='no'
9272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273 hardcode_libdir_separator=:
9274 inherit_rpath=yes
9275 link_all_deplibs=yes
9276 ;;
9277
9278 netbsd*)
9279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9281 else
9282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9283 fi
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_direct=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 newsos6)
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_direct=yes
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 *nto* | *qnx*)
9298 ;;
9299
9300 openbsd*)
9301 if test -f /usr/libexec/ld.so; then
9302 hardcode_direct=yes
9303 hardcode_shlibpath_var=no
9304 hardcode_direct_absolute=yes
9305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9309 export_dynamic_flag_spec='${wl}-E'
9310 else
9311 case $host_os in
9312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9314 hardcode_libdir_flag_spec='-R$libdir'
9315 ;;
9316 *)
9317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9319 ;;
9320 esac
9321 fi
9322 else
9323 ld_shlibs=no
9324 fi
9325 ;;
9326
9327 os2*)
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_minus_L=yes
9330 allow_undefined_flag=unsupported
9331 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'
9332 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9333 ;;
9334
9335 osf3*)
9336 if test "$GCC" = yes; then
9337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338 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'
9339 else
9340 allow_undefined_flag=' -expect_unresolved \*'
9341 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'
9342 fi
9343 archive_cmds_need_lc='no'
9344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345 hardcode_libdir_separator=:
9346 ;;
9347
9348 osf4* | osf5*) # as osf3* with the addition of -msym flag
9349 if test "$GCC" = yes; then
9350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351 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'
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 else
9354 allow_undefined_flag=' -expect_unresolved \*'
9355 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'
9356 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~
9357 $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'
9358
9359 # Both c and cxx compiler support -rpath directly
9360 hardcode_libdir_flag_spec='-rpath $libdir'
9361 fi
9362 archive_cmds_need_lc='no'
9363 hardcode_libdir_separator=:
9364 ;;
9365
9366 solaris*)
9367 no_undefined_flag=' -z defs'
9368 if test "$GCC" = yes; then
9369 wlarc='${wl}'
9370 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9372 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9373 else
9374 case `$CC -V 2>&1` in
9375 *"Compilers 5.0"*)
9376 wlarc=''
9377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9380 ;;
9381 *)
9382 wlarc='${wl}'
9383 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9386 ;;
9387 esac
9388 fi
9389 hardcode_libdir_flag_spec='-R$libdir'
9390 hardcode_shlibpath_var=no
9391 case $host_os in
9392 solaris2.[0-5] | solaris2.[0-5].*) ;;
9393 *)
9394 # The compiler driver will combine and reorder linker options,
9395 # but understands `-z linker_flag'. GCC discards it without `$wl',
9396 # but is careful enough not to reorder.
9397 # Supported since Solaris 2.6 (maybe 2.5.1?)
9398 if test "$GCC" = yes; then
9399 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9400 else
9401 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9402 fi
9403 ;;
9404 esac
9405 link_all_deplibs=yes
9406 ;;
9407
9408 sunos4*)
9409 if test "x$host_vendor" = xsequent; then
9410 # Use $CC to link under sequent, because it throws in some extra .o
9411 # files that make .init and .fini sections work.
9412 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9413 else
9414 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9415 fi
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_direct=yes
9418 hardcode_minus_L=yes
9419 hardcode_shlibpath_var=no
9420 ;;
9421
9422 sysv4)
9423 case $host_vendor in
9424 sni)
9425 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426 hardcode_direct=yes # is this really true???
9427 ;;
9428 siemens)
9429 ## LD is ld it makes a PLAMLIB
9430 ## CC just makes a GrossModule.
9431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9432 reload_cmds='$CC -r -o $output$reload_objs'
9433 hardcode_direct=no
9434 ;;
9435 motorola)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9438 ;;
9439 esac
9440 runpath_var='LD_RUN_PATH'
9441 hardcode_shlibpath_var=no
9442 ;;
9443
9444 sysv4.3*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_shlibpath_var=no
9447 export_dynamic_flag_spec='-Bexport'
9448 ;;
9449
9450 sysv4*MP*)
9451 if test -d /usr/nec; then
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_shlibpath_var=no
9454 runpath_var=LD_RUN_PATH
9455 hardcode_runpath_var=yes
9456 ld_shlibs=yes
9457 fi
9458 ;;
9459
9460 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9461 no_undefined_flag='${wl}-z,text'
9462 archive_cmds_need_lc=no
9463 hardcode_shlibpath_var=no
9464 runpath_var='LD_RUN_PATH'
9465
9466 if test "$GCC" = yes; then
9467 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 else
9470 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 fi
9473 ;;
9474
9475 sysv5* | sco3.2v5* | sco5v6*)
9476 # Note: We can NOT use -z defs as we might desire, because we do not
9477 # link with -lc, and that would cause any symbols used from libc to
9478 # always be unresolved, which means just about no library would
9479 # ever link correctly. If we're not using GNU ld we use -z text
9480 # though, which does catch some bad symbols but isn't as heavy-handed
9481 # as -z defs.
9482 no_undefined_flag='${wl}-z,text'
9483 allow_undefined_flag='${wl}-z,nodefs'
9484 archive_cmds_need_lc=no
9485 hardcode_shlibpath_var=no
9486 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9487 hardcode_libdir_separator=':'
9488 link_all_deplibs=yes
9489 export_dynamic_flag_spec='${wl}-Bexport'
9490 runpath_var='LD_RUN_PATH'
9491
9492 if test "$GCC" = yes; then
9493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 else
9496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 fi
9499 ;;
9500
9501 uts4*)
9502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503 hardcode_libdir_flag_spec='-L$libdir'
9504 hardcode_shlibpath_var=no
9505 ;;
9506
9507 *)
9508 ld_shlibs=no
9509 ;;
9510 esac
9511
9512 if test x$host_vendor = xsni; then
9513 case $host in
9514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515 export_dynamic_flag_spec='${wl}-Blargedynsym'
9516 ;;
9517 esac
9518 fi
9519 fi
9520
9521 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9522 $as_echo "$ld_shlibs" >&6; }
9523 test "$ld_shlibs" = no && can_build_shared=no
9524
9525 with_gnu_ld=$with_gnu_ld
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541 #
9542 # Do we need to explicitly link libc?
9543 #
9544 case "x$archive_cmds_need_lc" in
9545 x|xyes)
9546 # Assume -lc should be added
9547 archive_cmds_need_lc=yes
9548
9549 if test "$enable_shared" = yes && test "$GCC" = yes; then
9550 case $archive_cmds in
9551 *'~'*)
9552 # FIXME: we may have to deal with multi-command sequences.
9553 ;;
9554 '$CC '*)
9555 # Test whether the compiler implicitly links with -lc since on some
9556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9557 # to ld, don't add -lc before -lgcc.
9558 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9559 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9560 $RM conftest*
9561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>&5
9565 ac_status=$?
9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } 2>conftest.err; then
9568 soname=conftest
9569 lib=conftest
9570 libobjs=conftest.$ac_objext
9571 deplibs=
9572 wl=$lt_prog_compiler_wl
9573 pic_flag=$lt_prog_compiler_pic
9574 compiler_flags=-v
9575 linker_flags=-v
9576 verstring=
9577 output_objdir=.
9578 libname=conftest
9579 lt_save_allow_undefined_flag=$allow_undefined_flag
9580 allow_undefined_flag=
9581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9582 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583 ac_status=$?
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }
9586 then
9587 archive_cmds_need_lc=no
9588 else
9589 archive_cmds_need_lc=yes
9590 fi
9591 allow_undefined_flag=$lt_save_allow_undefined_flag
9592 else
9593 cat conftest.err 1>&5
9594 fi
9595 $RM conftest*
9596 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9597 $as_echo "$archive_cmds_need_lc" >&6; }
9598 ;;
9599 esac
9600 fi
9601 ;;
9602 esac
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
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9761 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9762
9763 if test "$GCC" = yes; then
9764 case $host_os in
9765 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9766 *) lt_awk_arg="/^libraries:/" ;;
9767 esac
9768 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9769 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9770 # if the path contains ";" then we assume it to be the separator
9771 # otherwise default to the standard path separator (i.e. ":") - it is
9772 # assumed that no part of a normal pathname contains ";" but that should
9773 # okay in the real world where ";" in dirpaths is itself problematic.
9774 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9775 else
9776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9777 fi
9778 # Ok, now we have the path, separated by spaces, we can step through it
9779 # and add multilib dir if necessary.
9780 lt_tmp_lt_search_path_spec=
9781 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9782 for lt_sys_path in $lt_search_path_spec; do
9783 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9784 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9785 else
9786 test -d "$lt_sys_path" && \
9787 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9788 fi
9789 done
9790 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9791 BEGIN {RS=" "; FS="/|\n";} {
9792 lt_foo="";
9793 lt_count=0;
9794 for (lt_i = NF; lt_i > 0; lt_i--) {
9795 if ($lt_i != "" && $lt_i != ".") {
9796 if ($lt_i == "..") {
9797 lt_count++;
9798 } else {
9799 if (lt_count == 0) {
9800 lt_foo="/" $lt_i lt_foo;
9801 } else {
9802 lt_count--;
9803 }
9804 }
9805 }
9806 }
9807 if (lt_foo != "") { lt_freq[lt_foo]++; }
9808 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9809 }'`
9810 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9811 else
9812 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9813 fi
9814 library_names_spec=
9815 libname_spec='lib$name'
9816 soname_spec=
9817 shrext_cmds=".so"
9818 postinstall_cmds=
9819 postuninstall_cmds=
9820 finish_cmds=
9821 finish_eval=
9822 shlibpath_var=
9823 shlibpath_overrides_runpath=unknown
9824 version_type=none
9825 dynamic_linker="$host_os ld.so"
9826 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9827 need_lib_prefix=unknown
9828 hardcode_into_libs=no
9829
9830 # when you set need_version to no, make sure it does not cause -set_version
9831 # flags to be left without arguments
9832 need_version=unknown
9833
9834 case $host_os in
9835 aix3*)
9836 version_type=linux
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9838 shlibpath_var=LIBPATH
9839
9840 # AIX 3 has no versioning support, so we append a major version to the name.
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 ;;
9843
9844 aix[4-9]*)
9845 version_type=linux
9846 need_lib_prefix=no
9847 need_version=no
9848 hardcode_into_libs=yes
9849 if test "$host_cpu" = ia64; then
9850 # AIX 5 supports IA64
9851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 else
9854 # With GCC up to 2.95.x, collect2 would create an import file
9855 # for dependence libraries. The import file would start with
9856 # the line `#! .'. This would cause the generated library to
9857 # depend on `.', always an invalid library. This was fixed in
9858 # development snapshots of GCC prior to 3.0.
9859 case $host_os in
9860 aix4 | aix4.[01] | aix4.[01].*)
9861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9862 echo ' yes '
9863 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9864 :
9865 else
9866 can_build_shared=no
9867 fi
9868 ;;
9869 esac
9870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9871 # soname into executable. Probably we can add versioning support to
9872 # collect2, so additional links can be useful in future.
9873 if test "$aix_use_runtimelinking" = yes; then
9874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9875 # instead of lib<name>.a to let people know that these are not
9876 # typical AIX shared libraries.
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 else
9879 # We preserve .a as extension for shared libraries through AIX4.2
9880 # and later when we are not doing run time linking.
9881 library_names_spec='${libname}${release}.a $libname.a'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 fi
9884 shlibpath_var=LIBPATH
9885 fi
9886 ;;
9887
9888 amigaos*)
9889 case $host_cpu in
9890 powerpc)
9891 # Since July 2007 AmigaOS4 officially supports .so libraries.
9892 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894 ;;
9895 m68k)
9896 library_names_spec='$libname.ixlibrary $libname.a'
9897 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9898 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'
9899 ;;
9900 esac
9901 ;;
9902
9903 beos*)
9904 library_names_spec='${libname}${shared_ext}'
9905 dynamic_linker="$host_os ld.so"
9906 shlibpath_var=LIBRARY_PATH
9907 ;;
9908
9909 bsdi[45]*)
9910 version_type=linux
9911 need_version=no
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9913 soname_spec='${libname}${release}${shared_ext}$major'
9914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9918 # the default ld.so.conf also contains /usr/contrib/lib and
9919 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9920 # libtool to hard-code these into programs
9921 ;;
9922
9923 cygwin* | mingw* | pw32* | cegcc*)
9924 version_type=windows
9925 shrext_cmds=".dll"
9926 need_version=no
9927 need_lib_prefix=no
9928
9929 case $GCC,$host_os in
9930 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9931 library_names_spec='$libname.dll.a'
9932 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9933 postinstall_cmds='base_file=`basename \${file}`~
9934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9935 dldir=$destdir/`dirname \$dlpath`~
9936 test -d \$dldir || mkdir -p \$dldir~
9937 $install_prog $dir/$dlname \$dldir/$dlname~
9938 chmod a+x \$dldir/$dlname~
9939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9941 fi'
9942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9943 dlpath=$dir/\$dldll~
9944 $RM \$dlpath'
9945 shlibpath_overrides_runpath=yes
9946
9947 case $host_os in
9948 cygwin*)
9949 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9950 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9951 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9952 ;;
9953 mingw* | cegcc*)
9954 # MinGW DLLs use traditional 'lib' prefix
9955 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9956 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9957 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9958 # It is most probably a Windows format PATH printed by
9959 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9960 # path with ; separators, and with drive letters. We can handle the
9961 # drive letters (cygwin fileutils understands them), so leave them,
9962 # especially as we might pass files found there to a mingw objdump,
9963 # which wouldn't understand a cygwinified path. Ahh.
9964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965 else
9966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9967 fi
9968 ;;
9969 pw32*)
9970 # pw32 DLLs use 'pw' prefix rather than 'lib'
9971 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 ;;
9973 esac
9974 ;;
9975
9976 *)
9977 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9978 ;;
9979 esac
9980 dynamic_linker='Win32 ld.exe'
9981 # FIXME: first we should search . and the directory the executable is in
9982 shlibpath_var=PATH
9983 ;;
9984
9985 darwin* | rhapsody*)
9986 dynamic_linker="$host_os dyld"
9987 version_type=darwin
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9991 soname_spec='${libname}${release}${major}$shared_ext'
9992 shlibpath_overrides_runpath=yes
9993 shlibpath_var=DYLD_LIBRARY_PATH
9994 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9995
9996 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9997 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9998 ;;
9999
10000 dgux*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 shlibpath_var=LD_LIBRARY_PATH
10007 ;;
10008
10009 freebsd1*)
10010 dynamic_linker=no
10011 ;;
10012
10013 freebsd* | dragonfly*)
10014 # DragonFly does not have aout. When/if they implement a new
10015 # versioning mechanism, adjust this.
10016 if test -x /usr/bin/objformat; then
10017 objformat=`/usr/bin/objformat`
10018 else
10019 case $host_os in
10020 freebsd[123]*) objformat=aout ;;
10021 *) objformat=elf ;;
10022 esac
10023 fi
10024 version_type=freebsd-$objformat
10025 case $version_type in
10026 freebsd-elf*)
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10028 need_version=no
10029 need_lib_prefix=no
10030 ;;
10031 freebsd-*)
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10033 need_version=yes
10034 ;;
10035 esac
10036 shlibpath_var=LD_LIBRARY_PATH
10037 case $host_os in
10038 freebsd2*)
10039 shlibpath_overrides_runpath=yes
10040 ;;
10041 freebsd3.[01]* | freebsdelf3.[01]*)
10042 shlibpath_overrides_runpath=yes
10043 hardcode_into_libs=yes
10044 ;;
10045 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10046 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10047 shlibpath_overrides_runpath=no
10048 hardcode_into_libs=yes
10049 ;;
10050 *) # from 4.6 on, and DragonFly
10051 shlibpath_overrides_runpath=yes
10052 hardcode_into_libs=yes
10053 ;;
10054 esac
10055 ;;
10056
10057 gnu*)
10058 version_type=linux
10059 need_lib_prefix=no
10060 need_version=no
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 hardcode_into_libs=yes
10065 ;;
10066
10067 hpux9* | hpux10* | hpux11*)
10068 # Give a soname corresponding to the major version so that dld.sl refuses to
10069 # link against other versions.
10070 version_type=sunos
10071 need_lib_prefix=no
10072 need_version=no
10073 case $host_cpu in
10074 ia64*)
10075 shrext_cmds='.so'
10076 hardcode_into_libs=yes
10077 dynamic_linker="$host_os dld.so"
10078 shlibpath_var=LD_LIBRARY_PATH
10079 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 soname_spec='${libname}${release}${shared_ext}$major'
10082 if test "X$HPUX_IA64_MODE" = X32; then
10083 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10084 else
10085 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10086 fi
10087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088 ;;
10089 hppa*64*)
10090 shrext_cmds='.sl'
10091 hardcode_into_libs=yes
10092 dynamic_linker="$host_os dld.sl"
10093 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096 soname_spec='${libname}${release}${shared_ext}$major'
10097 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10099 ;;
10100 *)
10101 shrext_cmds='.sl'
10102 dynamic_linker="$host_os dld.sl"
10103 shlibpath_var=SHLIB_PATH
10104 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 soname_spec='${libname}${release}${shared_ext}$major'
10107 ;;
10108 esac
10109 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10110 postinstall_cmds='chmod 555 $lib'
10111 ;;
10112
10113 interix[3-9]*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=no
10122 hardcode_into_libs=yes
10123 ;;
10124
10125 irix5* | irix6* | nonstopux*)
10126 case $host_os in
10127 nonstopux*) version_type=nonstopux ;;
10128 *)
10129 if test "$lt_cv_prog_gnu_ld" = yes; then
10130 version_type=linux
10131 else
10132 version_type=irix
10133 fi ;;
10134 esac
10135 need_lib_prefix=no
10136 need_version=no
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10139 case $host_os in
10140 irix5* | nonstopux*)
10141 libsuff= shlibsuff=
10142 ;;
10143 *)
10144 case $LD in # libtool.m4 will add one of these switches to LD
10145 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10146 libsuff= shlibsuff= libmagic=32-bit;;
10147 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10148 libsuff=32 shlibsuff=N32 libmagic=N32;;
10149 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10150 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10151 *) libsuff= shlibsuff= libmagic=never-match;;
10152 esac
10153 ;;
10154 esac
10155 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10156 shlibpath_overrides_runpath=no
10157 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10158 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10159 hardcode_into_libs=yes
10160 ;;
10161
10162 # No shared lib support for Linux oldld, aout, or coff.
10163 linux*oldld* | linux*aout* | linux*coff*)
10164 dynamic_linker=no
10165 ;;
10166
10167 # This must be Linux ELF.
10168 linux* | k*bsd*-gnu)
10169 version_type=linux
10170 need_lib_prefix=no
10171 need_version=no
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10175 shlibpath_var=LD_LIBRARY_PATH
10176 shlibpath_overrides_runpath=no
10177 # Some binutils ld are patched to set DT_RUNPATH
10178 save_LDFLAGS=$LDFLAGS
10179 save_libdir=$libdir
10180 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10181 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188
10189 int
10190 main ()
10191 {
10192
10193 ;
10194 return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201 *) ac_try_echo=$ac_try;;
10202 esac
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205 (eval "$ac_link") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext && {
10215 test "$cross_compiling" = yes ||
10216 $as_test_x conftest$ac_exeext
10217 }; then
10218 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10219 shlibpath_overrides_runpath=yes
10220 fi
10221
10222 else
10223 $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226
10227 fi
10228
10229 rm -rf conftest.dSYM
10230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231 conftest$ac_exeext conftest.$ac_ext
10232 LDFLAGS=$save_LDFLAGS
10233 libdir=$save_libdir
10234
10235 # This implies no fast_install, which is unacceptable.
10236 # Some rework will be needed to allow for fast_install
10237 # before this can be enabled.
10238 hardcode_into_libs=yes
10239
10240 # Add ABI-specific directories to the system library path.
10241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10242
10243 # Append ld.so.conf contents to the search path
10244 if test -f /etc/ld.so.conf; then
10245 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' ' '`
10246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10247 fi
10248
10249 # We used to test for /lib/ld.so.1 and disable shared libraries on
10250 # powerpc, because MkLinux only supported shared libraries with the
10251 # GNU dynamic linker. Since this was broken with cross compilers,
10252 # most powerpc-linux boxes support dynamic linking these days and
10253 # people can always --disable-shared, the test was removed, and we
10254 # assume the GNU/Linux dynamic linker is in use.
10255 dynamic_linker='GNU/Linux ld.so'
10256 ;;
10257
10258 netbsd*)
10259 version_type=sunos
10260 need_lib_prefix=no
10261 need_version=no
10262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10265 dynamic_linker='NetBSD (a.out) ld.so'
10266 else
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 dynamic_linker='NetBSD ld.elf_so'
10270 fi
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=yes
10273 hardcode_into_libs=yes
10274 ;;
10275
10276 newsos6)
10277 version_type=linux
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 ;;
10282
10283 *nto* | *qnx*)
10284 version_type=qnx
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10291 hardcode_into_libs=yes
10292 dynamic_linker='ldqnx.so'
10293 ;;
10294
10295 openbsd*)
10296 version_type=sunos
10297 sys_lib_dlsearch_path_spec="/usr/lib"
10298 need_lib_prefix=no
10299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10300 case $host_os in
10301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10302 *) need_version=no ;;
10303 esac
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308 case $host_os in
10309 openbsd2.[89] | openbsd2.[89].*)
10310 shlibpath_overrides_runpath=no
10311 ;;
10312 *)
10313 shlibpath_overrides_runpath=yes
10314 ;;
10315 esac
10316 else
10317 shlibpath_overrides_runpath=yes
10318 fi
10319 ;;
10320
10321 os2*)
10322 libname_spec='$name'
10323 shrext_cmds=".dll"
10324 need_lib_prefix=no
10325 library_names_spec='$libname${shared_ext} $libname.a'
10326 dynamic_linker='OS/2 ld.exe'
10327 shlibpath_var=LIBPATH
10328 ;;
10329
10330 osf3* | osf4* | osf5*)
10331 version_type=osf
10332 need_lib_prefix=no
10333 need_version=no
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10339 ;;
10340
10341 rdos*)
10342 dynamic_linker=no
10343 ;;
10344
10345 solaris*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10354 # ldd complains unless libraries are executable
10355 postinstall_cmds='chmod +x $lib'
10356 ;;
10357
10358 sunos4*)
10359 version_type=sunos
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 shlibpath_overrides_runpath=yes
10364 if test "$with_gnu_ld" = yes; then
10365 need_lib_prefix=no
10366 fi
10367 need_version=yes
10368 ;;
10369
10370 sysv4 | sysv4.3*)
10371 version_type=linux
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 case $host_vendor in
10376 sni)
10377 shlibpath_overrides_runpath=no
10378 need_lib_prefix=no
10379 runpath_var=LD_RUN_PATH
10380 ;;
10381 siemens)
10382 need_lib_prefix=no
10383 ;;
10384 motorola)
10385 need_lib_prefix=no
10386 need_version=no
10387 shlibpath_overrides_runpath=no
10388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10389 ;;
10390 esac
10391 ;;
10392
10393 sysv4*MP*)
10394 if test -d /usr/nec ;then
10395 version_type=linux
10396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10397 soname_spec='$libname${shared_ext}.$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 fi
10400 ;;
10401
10402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10403 version_type=freebsd-elf
10404 need_lib_prefix=no
10405 need_version=no
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=yes
10410 hardcode_into_libs=yes
10411 if test "$with_gnu_ld" = yes; then
10412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10413 else
10414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10415 case $host_os in
10416 sco3.2v5*)
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10418 ;;
10419 esac
10420 fi
10421 sys_lib_dlsearch_path_spec='/usr/lib'
10422 ;;
10423
10424 tpf*)
10425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10426 version_type=linux
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 shlibpath_var=LD_LIBRARY_PATH
10431 shlibpath_overrides_runpath=no
10432 hardcode_into_libs=yes
10433 ;;
10434
10435 uts4*)
10436 version_type=linux
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 ;;
10441
10442 *)
10443 dynamic_linker=no
10444 ;;
10445 esac
10446 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10447 $as_echo "$dynamic_linker" >&6; }
10448 test "$dynamic_linker" = no && can_build_shared=no
10449
10450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10451 if test "$GCC" = yes; then
10452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10453 fi
10454
10455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10457 fi
10458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10460 fi
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
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10549 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10550 hardcode_action=
10551 if test -n "$hardcode_libdir_flag_spec" ||
10552 test -n "$runpath_var" ||
10553 test "X$hardcode_automatic" = "Xyes" ; then
10554
10555 # We can hardcode non-existent directories.
10556 if test "$hardcode_direct" != no &&
10557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10558 # have to relink, otherwise we might link with an installed library
10559 # when we should be linking with a yet-to-be-installed one
10560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10561 test "$hardcode_minus_L" != no; then
10562 # Linking always hardcodes the temporary library directory.
10563 hardcode_action=relink
10564 else
10565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10566 hardcode_action=immediate
10567 fi
10568 else
10569 # We cannot hardcode anything, or else we can only hardcode existing
10570 # directories.
10571 hardcode_action=unsupported
10572 fi
10573 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10574 $as_echo "$hardcode_action" >&6; }
10575
10576 if test "$hardcode_action" = relink ||
10577 test "$inherit_rpath" = yes; then
10578 # Fast installation is not supported
10579 enable_fast_install=no
10580 elif test "$shlibpath_overrides_runpath" = yes ||
10581 test "$enable_shared" = no; then
10582 # Fast installation is not necessary
10583 enable_fast_install=needless
10584 fi
10585
10586
10587
10588
10589
10590
10591 if test "x$enable_dlopen" != xyes; then
10592 enable_dlopen=unknown
10593 enable_dlopen_self=unknown
10594 enable_dlopen_self_static=unknown
10595 else
10596 lt_cv_dlopen=no
10597 lt_cv_dlopen_libs=
10598
10599 case $host_os in
10600 beos*)
10601 lt_cv_dlopen="load_add_on"
10602 lt_cv_dlopen_libs=
10603 lt_cv_dlopen_self=yes
10604 ;;
10605
10606 mingw* | pw32* | cegcc*)
10607 lt_cv_dlopen="LoadLibrary"
10608 lt_cv_dlopen_libs=
10609 ;;
10610
10611 cygwin*)
10612 lt_cv_dlopen="dlopen"
10613 lt_cv_dlopen_libs=
10614 ;;
10615
10616 darwin*)
10617 # if libdl is installed we need to link against it
10618 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10622 else
10623 ac_check_lib_save_LIBS=$LIBS
10624 LIBS="-ldl $LIBS"
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631
10632 /* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635 #ifdef __cplusplus
10636 extern "C"
10637 #endif
10638 char dlopen ();
10639 int
10640 main ()
10641 {
10642 return dlopen ();
10643 ;
10644 return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (ac_try="$ac_link"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10652 esac
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_link") 2>conftest.er1
10656 ac_status=$?
10657 grep -v '^ *+' conftest.er1 >conftest.err
10658 rm -f conftest.er1
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } && {
10662 test -z "$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10664 } && test -s conftest$ac_exeext && {
10665 test "$cross_compiling" = yes ||
10666 $as_test_x conftest$ac_exeext
10667 }; then
10668 ac_cv_lib_dl_dlopen=yes
10669 else
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_lib_dl_dlopen=no
10674 fi
10675
10676 rm -rf conftest.dSYM
10677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10678 conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685 else
10686
10687 lt_cv_dlopen="dyld"
10688 lt_cv_dlopen_libs=
10689 lt_cv_dlopen_self=yes
10690
10691 fi
10692
10693 ;;
10694
10695 *)
10696 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10697 $as_echo_n "checking for shl_load... " >&6; }
10698 if test "${ac_cv_func_shl_load+set}" = set; then
10699 $as_echo_n "(cached) " >&6
10700 else
10701 cat >conftest.$ac_ext <<_ACEOF
10702 /* confdefs.h. */
10703 _ACEOF
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10709 #define shl_load innocuous_shl_load
10710
10711 /* System header to define __stub macros and hopefully few prototypes,
10712 which can conflict with char shl_load (); below.
10713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10714 <limits.h> exists even on freestanding compilers. */
10715
10716 #ifdef __STDC__
10717 # include <limits.h>
10718 #else
10719 # include <assert.h>
10720 #endif
10721
10722 #undef shl_load
10723
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char shl_load ();
10731 /* The GNU C library defines this for functions which it implements
10732 to always fail with ENOSYS. Some functions are actually named
10733 something starting with __ and the normal name is an alias. */
10734 #if defined __stub_shl_load || defined __stub___shl_load
10735 choke me
10736 #endif
10737
10738 int
10739 main ()
10740 {
10741 return shl_load ();
10742 ;
10743 return 0;
10744 }
10745 _ACEOF
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (ac_try="$ac_link"
10748 case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751 esac
10752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10753 $as_echo "$ac_try_echo") >&5
10754 (eval "$ac_link") 2>conftest.er1
10755 ac_status=$?
10756 grep -v '^ *+' conftest.er1 >conftest.err
10757 rm -f conftest.er1
10758 cat conftest.err >&5
10759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext && {
10764 test "$cross_compiling" = yes ||
10765 $as_test_x conftest$ac_exeext
10766 }; then
10767 ac_cv_func_shl_load=yes
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772 ac_cv_func_shl_load=no
10773 fi
10774
10775 rm -rf conftest.dSYM
10776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10777 conftest$ac_exeext conftest.$ac_ext
10778 fi
10779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10780 $as_echo "$ac_cv_func_shl_load" >&6; }
10781 if test "x$ac_cv_func_shl_load" = x""yes; then
10782 lt_cv_dlopen="shl_load"
10783 else
10784 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10786 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-ldld $LIBS"
10791 cat >conftest.$ac_ext <<_ACEOF
10792 /* confdefs.h. */
10793 _ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797
10798 /* Override any GCC internal prototype to avoid an error.
10799 Use char because int might match the return type of a GCC
10800 builtin and then its argument prototype would still apply. */
10801 #ifdef __cplusplus
10802 extern "C"
10803 #endif
10804 char shl_load ();
10805 int
10806 main ()
10807 {
10808 return shl_load ();
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817 *) ac_try_echo=$ac_try;;
10818 esac
10819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10820 $as_echo "$ac_try_echo") >&5
10821 (eval "$ac_link") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext && {
10831 test "$cross_compiling" = yes ||
10832 $as_test_x conftest$ac_exeext
10833 }; then
10834 ac_cv_lib_dld_shl_load=yes
10835 else
10836 $as_echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_lib_dld_shl_load=no
10840 fi
10841
10842 rm -rf conftest.dSYM
10843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10846 fi
10847 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10848 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10849 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10851 else
10852 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10853 $as_echo_n "checking for dlopen... " >&6; }
10854 if test "${ac_cv_func_dlopen+set}" = set; then
10855 $as_echo_n "(cached) " >&6
10856 else
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define dlopen innocuous_dlopen
10866
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char dlopen (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10871
10872 #ifdef __STDC__
10873 # include <limits.h>
10874 #else
10875 # include <assert.h>
10876 #endif
10877
10878 #undef dlopen
10879
10880 /* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
10883 #ifdef __cplusplus
10884 extern "C"
10885 #endif
10886 char dlopen ();
10887 /* The GNU C library defines this for functions which it implements
10888 to always fail with ENOSYS. Some functions are actually named
10889 something starting with __ and the normal name is an alias. */
10890 #if defined __stub_dlopen || defined __stub___dlopen
10891 choke me
10892 #endif
10893
10894 int
10895 main ()
10896 {
10897 return dlopen ();
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (ac_try="$ac_link"
10904 case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10907 esac
10908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10909 $as_echo "$ac_try_echo") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext && {
10920 test "$cross_compiling" = yes ||
10921 $as_test_x conftest$ac_exeext
10922 }; then
10923 ac_cv_func_dlopen=yes
10924 else
10925 $as_echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 ac_cv_func_dlopen=no
10929 fi
10930
10931 rm -rf conftest.dSYM
10932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10933 conftest$ac_exeext conftest.$ac_ext
10934 fi
10935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10936 $as_echo "$ac_cv_func_dlopen" >&6; }
10937 if test "x$ac_cv_func_dlopen" = x""yes; then
10938 lt_cv_dlopen="dlopen"
10939 else
10940 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl $LIBS"
10947 cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h. */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h. */
10953
10954 /* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957 #ifdef __cplusplus
10958 extern "C"
10959 #endif
10960 char dlopen ();
10961 int
10962 main ()
10963 {
10964 return dlopen ();
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974 esac
10975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10976 $as_echo "$ac_try_echo") >&5
10977 (eval "$ac_link") 2>conftest.er1
10978 ac_status=$?
10979 grep -v '^ *+' conftest.er1 >conftest.err
10980 rm -f conftest.er1
10981 cat conftest.err >&5
10982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest$ac_exeext && {
10987 test "$cross_compiling" = yes ||
10988 $as_test_x conftest$ac_exeext
10989 }; then
10990 ac_cv_lib_dl_dlopen=yes
10991 else
10992 $as_echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10994
10995 ac_cv_lib_dl_dlopen=no
10996 fi
10997
10998 rm -rf conftest.dSYM
10999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS=$ac_check_lib_save_LIBS
11002 fi
11003 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 else
11008 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11009 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11011 $as_echo_n "(cached) " >&6
11012 else
11013 ac_check_lib_save_LIBS=$LIBS
11014 LIBS="-lsvld $LIBS"
11015 cat >conftest.$ac_ext <<_ACEOF
11016 /* confdefs.h. */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char dlopen ();
11029 int
11030 main ()
11031 {
11032 return dlopen ();
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042 esac
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045 (eval "$ac_link") 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest$ac_exeext && {
11055 test "$cross_compiling" = yes ||
11056 $as_test_x conftest$ac_exeext
11057 }; then
11058 ac_cv_lib_svld_dlopen=yes
11059 else
11060 $as_echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ac_cv_lib_svld_dlopen=no
11064 fi
11065
11066 rm -rf conftest.dSYM
11067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_lib_save_LIBS
11070 fi
11071 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11072 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11073 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075 else
11076 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11077 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11079 $as_echo_n "(cached) " >&6
11080 else
11081 ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-ldld $LIBS"
11083 cat >conftest.$ac_ext <<_ACEOF
11084 /* confdefs.h. */
11085 _ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 char dld_link ();
11097 int
11098 main ()
11099 {
11100 return dld_link ();
11101 ;
11102 return 0;
11103 }
11104 _ACEOF
11105 rm -f conftest.$ac_objext conftest$ac_exeext
11106 if { (ac_try="$ac_link"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_link") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest$ac_exeext && {
11123 test "$cross_compiling" = yes ||
11124 $as_test_x conftest$ac_exeext
11125 }; then
11126 ac_cv_lib_dld_dld_link=yes
11127 else
11128 $as_echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11130
11131 ac_cv_lib_dld_dld_link=no
11132 fi
11133
11134 rm -rf conftest.dSYM
11135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11138 fi
11139 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11141 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11142 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11143 fi
11144
11145
11146 fi
11147
11148
11149 fi
11150
11151
11152 fi
11153
11154
11155 fi
11156
11157
11158 fi
11159
11160 ;;
11161 esac
11162
11163 if test "x$lt_cv_dlopen" != xno; then
11164 enable_dlopen=yes
11165 else
11166 enable_dlopen=no
11167 fi
11168
11169 case $lt_cv_dlopen in
11170 dlopen)
11171 save_CPPFLAGS="$CPPFLAGS"
11172 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173
11174 save_LDFLAGS="$LDFLAGS"
11175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11176
11177 save_LIBS="$LIBS"
11178 LIBS="$lt_cv_dlopen_libs $LIBS"
11179
11180 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11181 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11182 if test "${lt_cv_dlopen_self+set}" = set; then
11183 $as_echo_n "(cached) " >&6
11184 else
11185 if test "$cross_compiling" = yes; then :
11186 lt_cv_dlopen_self=cross
11187 else
11188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189 lt_status=$lt_dlunknown
11190 cat > conftest.$ac_ext <<_LT_EOF
11191 #line 11191 "configure"
11192 #include "confdefs.h"
11193
11194 #if HAVE_DLFCN_H
11195 #include <dlfcn.h>
11196 #endif
11197
11198 #include <stdio.h>
11199
11200 #ifdef RTLD_GLOBAL
11201 # define LT_DLGLOBAL RTLD_GLOBAL
11202 #else
11203 # ifdef DL_GLOBAL
11204 # define LT_DLGLOBAL DL_GLOBAL
11205 # else
11206 # define LT_DLGLOBAL 0
11207 # endif
11208 #endif
11209
11210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211 find out it does not work in some platform. */
11212 #ifndef LT_DLLAZY_OR_NOW
11213 # ifdef RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11215 # else
11216 # ifdef DL_LAZY
11217 # define LT_DLLAZY_OR_NOW DL_LAZY
11218 # else
11219 # ifdef RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW RTLD_NOW
11221 # else
11222 # ifdef DL_NOW
11223 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # else
11225 # define LT_DLLAZY_OR_NOW 0
11226 # endif
11227 # endif
11228 # endif
11229 # endif
11230 #endif
11231
11232 void fnord() { int i=42;}
11233 int main ()
11234 {
11235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11236 int status = $lt_dlunknown;
11237
11238 if (self)
11239 {
11240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11242 /* dlclose (self); */
11243 }
11244 else
11245 puts (dlerror ());
11246
11247 return status;
11248 }
11249 _LT_EOF
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251 (eval $ac_link) 2>&5
11252 ac_status=$?
11253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11255 (./conftest; exit; ) >&5 2>/dev/null
11256 lt_status=$?
11257 case x$lt_status in
11258 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11259 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11260 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11261 esac
11262 else :
11263 # compilation failed
11264 lt_cv_dlopen_self=no
11265 fi
11266 fi
11267 rm -fr conftest*
11268
11269
11270 fi
11271 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11272 $as_echo "$lt_cv_dlopen_self" >&6; }
11273
11274 if test "x$lt_cv_dlopen_self" = xyes; then
11275 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11276 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11277 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11278 if test "${lt_cv_dlopen_self_static+set}" = set; then
11279 $as_echo_n "(cached) " >&6
11280 else
11281 if test "$cross_compiling" = yes; then :
11282 lt_cv_dlopen_self_static=cross
11283 else
11284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11285 lt_status=$lt_dlunknown
11286 cat > conftest.$ac_ext <<_LT_EOF
11287 #line 11287 "configure"
11288 #include "confdefs.h"
11289
11290 #if HAVE_DLFCN_H
11291 #include <dlfcn.h>
11292 #endif
11293
11294 #include <stdio.h>
11295
11296 #ifdef RTLD_GLOBAL
11297 # define LT_DLGLOBAL RTLD_GLOBAL
11298 #else
11299 # ifdef DL_GLOBAL
11300 # define LT_DLGLOBAL DL_GLOBAL
11301 # else
11302 # define LT_DLGLOBAL 0
11303 # endif
11304 #endif
11305
11306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11307 find out it does not work in some platform. */
11308 #ifndef LT_DLLAZY_OR_NOW
11309 # ifdef RTLD_LAZY
11310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11311 # else
11312 # ifdef DL_LAZY
11313 # define LT_DLLAZY_OR_NOW DL_LAZY
11314 # else
11315 # ifdef RTLD_NOW
11316 # define LT_DLLAZY_OR_NOW RTLD_NOW
11317 # else
11318 # ifdef DL_NOW
11319 # define LT_DLLAZY_OR_NOW DL_NOW
11320 # else
11321 # define LT_DLLAZY_OR_NOW 0
11322 # endif
11323 # endif
11324 # endif
11325 # endif
11326 #endif
11327
11328 void fnord() { int i=42;}
11329 int main ()
11330 {
11331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11332 int status = $lt_dlunknown;
11333
11334 if (self)
11335 {
11336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11338 /* dlclose (self); */
11339 }
11340 else
11341 puts (dlerror ());
11342
11343 return status;
11344 }
11345 _LT_EOF
11346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11347 (eval $ac_link) 2>&5
11348 ac_status=$?
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11351 (./conftest; exit; ) >&5 2>/dev/null
11352 lt_status=$?
11353 case x$lt_status in
11354 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11355 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11356 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11357 esac
11358 else :
11359 # compilation failed
11360 lt_cv_dlopen_self_static=no
11361 fi
11362 fi
11363 rm -fr conftest*
11364
11365
11366 fi
11367 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11368 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11369 fi
11370
11371 CPPFLAGS="$save_CPPFLAGS"
11372 LDFLAGS="$save_LDFLAGS"
11373 LIBS="$save_LIBS"
11374 ;;
11375 esac
11376
11377 case $lt_cv_dlopen_self in
11378 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11379 *) enable_dlopen_self=unknown ;;
11380 esac
11381
11382 case $lt_cv_dlopen_self_static in
11383 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11384 *) enable_dlopen_self_static=unknown ;;
11385 esac
11386 fi
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404 striplib=
11405 old_striplib=
11406 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11407 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11408 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11409 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11410 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11411 { $as_echo "$as_me:$LINENO: result: yes" >&5
11412 $as_echo "yes" >&6; }
11413 else
11414 # FIXME - insert some real tests, host_os isn't really good enough
11415 case $host_os in
11416 darwin*)
11417 if test -n "$STRIP" ; then
11418 striplib="$STRIP -x"
11419 old_striplib="$STRIP -S"
11420 { $as_echo "$as_me:$LINENO: result: yes" >&5
11421 $as_echo "yes" >&6; }
11422 else
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11425 fi
11426 ;;
11427 *)
11428 { $as_echo "$as_me:$LINENO: result: no" >&5
11429 $as_echo "no" >&6; }
11430 ;;
11431 esac
11432 fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 # Report which library types will actually be built
11446 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11447 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11448 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11449 $as_echo "$can_build_shared" >&6; }
11450
11451 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11452 $as_echo_n "checking whether to build shared libraries... " >&6; }
11453 test "$can_build_shared" = "no" && enable_shared=no
11454
11455 # On AIX, shared libraries and static libraries use the same namespace, and
11456 # are all built from PIC.
11457 case $host_os in
11458 aix3*)
11459 test "$enable_shared" = yes && enable_static=no
11460 if test -n "$RANLIB"; then
11461 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11462 postinstall_cmds='$RANLIB $lib'
11463 fi
11464 ;;
11465
11466 aix[4-9]*)
11467 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11468 test "$enable_shared" = yes && enable_static=no
11469 fi
11470 ;;
11471 esac
11472 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11473 $as_echo "$enable_shared" >&6; }
11474
11475 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11476 $as_echo_n "checking whether to build static libraries... " >&6; }
11477 # Make sure either enable_shared or enable_static is yes.
11478 test "$enable_shared" = yes || enable_static=yes
11479 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11480 $as_echo "$enable_static" >&6; }
11481
11482
11483
11484
11485 fi
11486 ac_ext=c
11487 ac_cpp='$CPP $CPPFLAGS'
11488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11491
11492 CC="$lt_save_CC"
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506 ac_config_commands="$ac_config_commands libtool"
11507
11508
11509
11510
11511 # Only expand once:
11512
11513
11514 # By default we simply use the C compiler to build assembly code.
11515
11516 test "${CCAS+set}" = set || CCAS=$CC
11517 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11518
11519
11520
11521 depcc="$CCAS" am_compiler_list=
11522
11523 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11524 $as_echo_n "checking dependency style of $depcc... " >&6; }
11525 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11526 $as_echo_n "(cached) " >&6
11527 else
11528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11529 # We make a subdir and do the tests there. Otherwise we can end up
11530 # making bogus files that we don't know about and never remove. For
11531 # instance it was reported that on HP-UX the gcc test will end up
11532 # making a dummy file named `D' -- because `-MD' means `put the output
11533 # in D'.
11534 mkdir conftest.dir
11535 # Copy depcomp to subdir because otherwise we won't find it if we're
11536 # using a relative directory.
11537 cp "$am_depcomp" conftest.dir
11538 cd conftest.dir
11539 # We will build objects and dependencies in a subdirectory because
11540 # it helps to detect inapplicable dependency modes. For instance
11541 # both Tru64's cc and ICC support -MD to output dependencies as a
11542 # side effect of compilation, but ICC will put the dependencies in
11543 # the current directory while Tru64 will put them in the object
11544 # directory.
11545 mkdir sub
11546
11547 am_cv_CCAS_dependencies_compiler_type=none
11548 if test "$am_compiler_list" = ""; then
11549 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11550 fi
11551 am__universal=false
11552
11553
11554 for depmode in $am_compiler_list; do
11555 # Setup a source with many dependencies, because some compilers
11556 # like to wrap large dependency lists on column 80 (with \), and
11557 # we should not choose a depcomp mode which is confused by this.
11558 #
11559 # We need to recreate these files for each test, as the compiler may
11560 # overwrite some of them when testing with obscure command lines.
11561 # This happens at least with the AIX C compiler.
11562 : > sub/conftest.c
11563 for i in 1 2 3 4 5 6; do
11564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11566 # Solaris 8's {/usr,}/bin/sh.
11567 touch sub/conftst$i.h
11568 done
11569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11570
11571 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11572 # mode. It turns out that the SunPro C++ compiler does not properly
11573 # handle `-M -o', and we need to detect this. Also, some Intel
11574 # versions had trouble with output in subdirs
11575 am__obj=sub/conftest.${OBJEXT-o}
11576 am__minus_obj="-o $am__obj"
11577 case $depmode in
11578 gcc)
11579 # This depmode causes a compiler race in universal mode.
11580 test "$am__universal" = false || continue
11581 ;;
11582 nosideeffect)
11583 # after this tag, mechanisms are not by side-effect, so they'll
11584 # only be used when explicitly requested
11585 if test "x$enable_dependency_tracking" = xyes; then
11586 continue
11587 else
11588 break
11589 fi
11590 ;;
11591 msvisualcpp | msvcmsys)
11592 # This compiler won't grok `-c -o', but also, the minuso test has
11593 # not run yet. These depmodes are late enough in the game, and
11594 # so weak that their functioning should not be impacted.
11595 am__obj=conftest.${OBJEXT-o}
11596 am__minus_obj=
11597 ;;
11598 none) break ;;
11599 esac
11600 if depmode=$depmode \
11601 source=sub/conftest.c object=$am__obj \
11602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11603 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11604 >/dev/null 2>conftest.err &&
11605 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11606 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11607 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11608 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11609 # icc doesn't choke on unknown options, it will just issue warnings
11610 # or remarks (even with -Werror). So we grep stderr for any message
11611 # that says an option was ignored or not supported.
11612 # When given -MP, icc 7.0 and 7.1 complain thusly:
11613 # icc: Command line warning: ignoring option '-M'; no argument required
11614 # The diagnosis changed in icc 8.0:
11615 # icc: Command line remark: option '-MP' not supported
11616 if (grep 'ignoring option' conftest.err ||
11617 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11618 am_cv_CCAS_dependencies_compiler_type=$depmode
11619 break
11620 fi
11621 fi
11622 done
11623
11624 cd ..
11625 rm -rf conftest.dir
11626 else
11627 am_cv_CCAS_dependencies_compiler_type=none
11628 fi
11629
11630 fi
11631 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11632 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11633 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11634
11635 if
11636 test "x$enable_dependency_tracking" != xno \
11637 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11638 am__fastdepCCAS_TRUE=
11639 am__fastdepCCAS_FALSE='#'
11640 else
11641 am__fastdepCCAS_TRUE='#'
11642 am__fastdepCCAS_FALSE=
11643 fi
11644
11645
11646
11647
11648 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11649 $as_echo_n "checking zfs author... " >&6; }
11650 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11651 $as_echo "$ZFS_META_AUTHOR" >&6; }
11652
11653 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11654 $as_echo_n "checking zfs license... " >&6; }
11655 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11656 $as_echo "$ZFS_META_LICENSE" >&6; }
11657
11658
11659
11660 RPM=rpm
11661 RPMBUILD=rpmbuild
11662
11663 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11664 $as_echo_n "checking whether $RPM is available... " >&6; }
11665 if tmp=$($RPM --version 2>/dev/null); then
11666
11667 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11668 HAVE_RPM=yes
11669 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11670 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11671
11672 else
11673
11674 HAVE_RPM=no
11675 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11676 $as_echo "$HAVE_RPM" >&6; }
11677
11678 fi
11679
11680
11681 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11682 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11683 if tmp=$($RPMBUILD --version 2>/dev/null); then
11684
11685 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11686 HAVE_RPMBUILD=yes
11687 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11688 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11689
11690 else
11691
11692 HAVE_RPMBUILD=no
11693 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11694 $as_echo "$HAVE_RPMBUILD" >&6; }
11695
11696 fi
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708 DPKG=dpkg
11709 DPKGBUILD=dpkg-buildpackage
11710
11711 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11712 $as_echo_n "checking whether $DPKG is available... " >&6; }
11713 if tmp=$($DPKG --version 2>/dev/null); then
11714
11715 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11716 HAVE_DPKG=yes
11717 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11718 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11719
11720 else
11721
11722 HAVE_DPKG=no
11723 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11724 $as_echo "$HAVE_DPKG" >&6; }
11725
11726 fi
11727
11728
11729 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11730 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11731 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11732
11733 DPKGBUILD_VERSION=$(echo $tmp | \
11734 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11735 HAVE_DPKGBUILD=yes
11736 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11737 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11738
11739 else
11740
11741 HAVE_DPKGBUILD=no
11742 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11743 $as_echo "$HAVE_DPKGBUILD" >&6; }
11744
11745 fi
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757 ALIEN=alien
11758
11759 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11760 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11761 if tmp=$($ALIEN --version 2>/dev/null); then
11762
11763 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11764 HAVE_ALIEN=yes
11765 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11766 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11767
11768 else
11769
11770 HAVE_ALIEN=no
11771 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11772 $as_echo "$HAVE_ALIEN" >&6; }
11773
11774 fi
11775
11776
11777
11778
11779
11780
11781
11782 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11783 $as_echo_n "checking linux distribution... " >&6; }
11784 if test -f /etc/redhat-release ; then
11785 VENDOR=redhat ;
11786 elif test -f /etc/fedora-release ; then
11787 VENDOR=fedora ;
11788 elif test -f /etc/gentoo-release ; then
11789 VENDOR=gentoo ;
11790 elif test -f /etc/debian_version ; then
11791 VENDOR=debian ;
11792 elif test -f /etc/SuSE-release ; then
11793 VENDOR=sles ;
11794 elif test -f /etc/slackware-version ; then
11795 VENDOR=slackware ;
11796 elif test -f /etc/lsb-release ; then
11797 VENDOR=ubuntu ;
11798 elif test -f /etc/lunar.release ; then
11799 VENDOR=lunar ;
11800 else
11801 VENDOR= ;
11802 fi
11803 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11804 $as_echo "$VENDOR" >&6; }
11805
11806
11807 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11808 $as_echo_n "checking default package type... " >&6; }
11809 case "$VENDOR" in
11810 redhat) DEFAULT_PACKAGE=rpm ;;
11811 fedora) DEFAULT_PACKAGE=rpm ;;
11812 ubuntu) DEFAULT_PACKAGE=deb ;;
11813 debian) DEFAULT_PACKAGE=deb ;;
11814 sles) DEFAULT_PACKAGE=rpm ;;
11815 slackware) DEFAULT_PACKAGE=tgz ;;
11816 gentoo) DEFAULT_PACKAGE=tgz ;;
11817 lunar) DEFAULT_PACKAGE=tgz ;;
11818 *) DEFAULT_PACKAGE=rpm ;;
11819 esac
11820
11821 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11822 $as_echo "$DEFAULT_PACKAGE" >&6; }
11823
11824
11825 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11826 $as_echo_n "checking default init script type... " >&6; }
11827 case "$VENDOR" in
11828 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11829 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11830 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11831 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11832 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11833 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11834 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11835 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11836 *) DEFAULT_INIT_SCRIPT=lsb ;;
11837 esac
11838
11839 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11840 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11841
11842
11843
11844
11845 TARGET_ASM_DIR=asm-generic
11846
11847
11848 ZFS_CONFIG=all
11849
11850 # Check whether --with-config was given.
11851 if test "${with_config+set}" = set; then
11852 withval=$with_config; ZFS_CONFIG="$withval"
11853 fi
11854
11855
11856 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11857 $as_echo_n "checking zfs config... " >&6; }
11858 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11859 $as_echo "$ZFS_CONFIG" >&6; };
11860
11861
11862 case "$ZFS_CONFIG" in
11863 kernel)
11864
11865
11866 # Check whether --with-linux was given.
11867 if test "${with_linux+set}" = set; then
11868 withval=$with_linux; kernelsrc="$withval"
11869 fi
11870
11871
11872
11873 # Check whether --with-linux-obj was given.
11874 if test "${with_linux_obj+set}" = set; then
11875 withval=$with_linux_obj; kernelbuild="$withval"
11876 fi
11877
11878
11879 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11880 $as_echo_n "checking kernel source directory... " >&6; }
11881 if test -z "$kernelsrc"; then
11882 if test -e "/lib/modules/$(uname -r)/source"; then
11883 headersdir="/lib/modules/$(uname -r)/source"
11884 sourcelink=$(readlink -f "$headersdir")
11885 elif test -e "/lib/modules/$(uname -r)/build"; then
11886 headersdir="/lib/modules/$(uname -r)/build"
11887 sourcelink=$(readlink -f "$headersdir")
11888 else
11889 sourcelink=$(ls -1d /usr/src/kernels/* \
11890 /usr/src/linux-* \
11891 2>/dev/null | grep -v obj | tail -1)
11892 fi
11893
11894 if test -n "$sourcelink" && test -e ${sourcelink}; then
11895 kernelsrc=`readlink -f ${sourcelink}`
11896 else
11897 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11898 $as_echo "Not found" >&6; }
11899 { { $as_echo "$as_me:$LINENO: error:
11900 *** Please make sure the kernel devel package for your distribution
11901 *** is installed then try again. If that fails you can specify the
11902 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11903 $as_echo "$as_me: error:
11904 *** Please make sure the kernel devel package for your distribution
11905 *** is installed then try again. If that fails you can specify the
11906 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11907 { (exit 1); exit 1; }; }
11908 fi
11909 else
11910 if test "$kernelsrc" = "NONE"; then
11911 kernsrcver=NONE
11912 fi
11913 fi
11914
11915 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11916 $as_echo "$kernelsrc" >&6; }
11917 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11918 $as_echo_n "checking kernel build directory... " >&6; }
11919 if test -z "$kernelbuild"; then
11920 if test -e "/lib/modules/$(uname -r)/build"; then
11921 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11922 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11923 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11924 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11925 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11926 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11927 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11928 else
11929 kernelbuild=${kernelsrc}
11930 fi
11931 fi
11932 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11933 $as_echo "$kernelbuild" >&6; }
11934
11935 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11936 $as_echo_n "checking kernel source version... " >&6; }
11937 utsrelease1=$kernelbuild/include/linux/version.h
11938 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11939 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11940 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11941 utsrelease=linux/version.h
11942 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11943 utsrelease=linux/utsrelease.h
11944 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11945 utsrelease=generated/utsrelease.h
11946 fi
11947
11948 if test "$utsrelease"; then
11949 kernsrcver=`(echo "#include <$utsrelease>";
11950 echo "kernsrcver=UTS_RELEASE") |
11951 cpp -I $kernelbuild/include |
11952 grep "^kernsrcver=" | cut -d \" -f 2`
11953
11954 if test -z "$kernsrcver"; then
11955 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11956 $as_echo "Not found" >&6; }
11957 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11958 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11959 { (exit 1); exit 1; }; }
11960 fi
11961 else
11962 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11963 $as_echo "Not found" >&6; }
11964 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11965 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11966 { (exit 1); exit 1; }; }
11967 fi
11968
11969 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11970 $as_echo "$kernsrcver" >&6; }
11971
11972 LINUX=${kernelsrc}
11973 LINUX_OBJ=${kernelbuild}
11974 LINUX_VERSION=${kernsrcver}
11975
11976
11977
11978
11979
11980
11981 modpost=$LINUX/scripts/Makefile.modpost
11982 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11983 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11984 if test -f "$modpost"; then
11985 if grep -q Modules.symvers $modpost; then
11986 LINUX_SYMBOLS=Modules.symvers
11987 else
11988 LINUX_SYMBOLS=Module.symvers
11989 fi
11990
11991 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11992 { { $as_echo "$as_me:$LINENO: error:
11993 *** Please make sure the kernel devel package for your distribution
11994 *** is installed. If your building with a custom kernel make sure the
11995 *** kernel is configured, built, and the '--with-linux=PATH' configure
11996 *** option refers to the location of the kernel source." >&5
11997 $as_echo "$as_me: error:
11998 *** Please make sure the kernel devel package for your distribution
11999 *** is installed. If your building with a custom kernel make sure the
12000 *** kernel is configured, built, and the '--with-linux=PATH' configure
12001 *** option refers to the location of the kernel source." >&2;}
12002 { (exit 1); exit 1; }; }
12003 fi
12004 else
12005 LINUX_SYMBOLS=NONE
12006 fi
12007 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12008 $as_echo "$LINUX_SYMBOLS" >&6; }
12009
12010
12011
12012
12013
12014 # Check whether --with-spl was given.
12015 if test "${with_spl+set}" = set; then
12016 withval=$with_spl; splsrc="$withval"
12017 fi
12018
12019
12020
12021 # Check whether --with-spl-obj was given.
12022 if test "${with_spl_obj+set}" = set; then
12023 withval=$with_spl_obj; splbuild="$withval"
12024 fi
12025
12026
12027
12028 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12029 $as_echo_n "checking spl source directory... " >&6; }
12030 if test -z "$splsrc"; then
12031 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12032 2>/dev/null | tail -1`
12033
12034 if test -z "$sourcelink" || test ! -e $sourcelink; then
12035 sourcelink=../spl
12036 fi
12037
12038 if test -e $sourcelink; then
12039 splsrc=`readlink -f ${sourcelink}`
12040 else
12041 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12042 $as_echo "Not found" >&6; }
12043 { { $as_echo "$as_me:$LINENO: error:
12044 *** Please make sure the spl devel package for your distribution
12045 *** is installed then try again. If that fails you can specify the
12046 *** location of the spl source with the '--with-spl=PATH' option." >&5
12047 $as_echo "$as_me: error:
12048 *** Please make sure the spl devel package for your distribution
12049 *** is installed then try again. If that fails you can specify the
12050 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12051 { (exit 1); exit 1; }; }
12052 fi
12053 else
12054 if test "$splsrc" = "NONE"; then
12055 splbuild=NONE
12056 splsrcver=NONE
12057 fi
12058 fi
12059
12060 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12061 $as_echo "$splsrc" >&6; }
12062 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12063 $as_echo_n "checking spl build directory... " >&6; }
12064 if test -z "$splbuild"; then
12065 splbuild=${splsrc}
12066 fi
12067 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12068 $as_echo "$splbuild" >&6; }
12069
12070 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12071 $as_echo_n "checking spl source version... " >&6; }
12072 if test -r $splbuild/spl_config.h &&
12073 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12074
12075 splsrcver=`(echo "#include <spl_config.h>";
12076 echo "splsrcver=SPL_META_VERSION") |
12077 cpp -I $splbuild |
12078 grep "^splsrcver=" | cut -d \" -f 2`
12079 fi
12080
12081 if test -z "$splsrcver"; then
12082 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12083 $as_echo "Not found" >&6; }
12084 { { $as_echo "$as_me:$LINENO: error:
12085 *** Cannot determine the version of the spl source.
12086 *** Please prepare the spl source before running this script" >&5
12087 $as_echo "$as_me: error:
12088 *** Cannot determine the version of the spl source.
12089 *** Please prepare the spl source before running this script" >&2;}
12090 { (exit 1); exit 1; }; }
12091 fi
12092
12093 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12094 $as_echo "$splsrcver" >&6; }
12095
12096 SPL=${splsrc}
12097 SPL_OBJ=${splbuild}
12098 SPL_VERSION=${splsrcver}
12099
12100
12101
12102
12103
12104
12105 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12106 $as_echo_n "checking spl file name for module symbols... " >&6; }
12107 if test -r $SPL_OBJ/Module.symvers; then
12108 SPL_SYMBOLS=Module.symvers
12109 elif test -r $SPL_OBJ/Modules.symvers; then
12110 SPL_SYMBOLS=Modules.symvers
12111 elif test -r $SPL_OBJ/module/Module.symvers; then
12112 SPL_SYMBOLS=Module.symvers
12113 elif test -r $SPL_OBJ/module/Modules.symvers; then
12114 SPL_SYMBOLS=Modules.symvers
12115 else
12116 SPL_SYMBOLS=$LINUX_SYMBOLS
12117 fi
12118
12119 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12120 $as_echo "$SPL_SYMBOLS" >&6; }
12121
12122
12123
12124
12125
12126 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12127 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12128
12129
12130 cat confdefs.h - <<_ACEOF >conftest.c
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136
12137
12138 #ifndef AUTOCONF_INCLUDED
12139 #include <linux/config.h>
12140 #endif
12141
12142 int
12143 main (void)
12144 {
12145
12146 #ifndef CONFIG_PREEMPT
12147 #error CONFIG_PREEMPT not #defined
12148 #endif
12149
12150 ;
12151 return 0;
12152 }
12153
12154 _ACEOF
12155
12156
12157 rm -Rf build && mkdir -p build
12158 echo "obj-m := conftest.o" >build/Makefile
12159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
12168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
12170
12171 { $as_echo "$as_me:$LINENO: result: yes" >&5
12172 $as_echo "yes" >&6; }
12173 { { $as_echo "$as_me:$LINENO: error:
12174 *** Kernel built with CONFIG_PREEMPT which is not supported.
12175 ** You must rebuild your kernel without this option." >&5
12176 $as_echo "$as_me: error:
12177 *** Kernel built with CONFIG_PREEMPT which is not supported.
12178 ** You must rebuild your kernel without this option." >&2;}
12179 { (exit 1); exit 1; }; }
12180
12181 else
12182 $as_echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 { $as_echo "$as_me:$LINENO: result: no" >&5
12186 $as_echo "no" >&6; }
12187
12188
12189
12190
12191 fi
12192
12193 rm -Rf build
12194
12195
12196
12197
12198 if test "$ZFS_META_LICENSE" = CDDL; then
12199 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12200 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12201
12202
12203 cat confdefs.h - <<_ACEOF >conftest.c
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209
12210
12211 #ifndef AUTOCONF_INCLUDED
12212 #include <linux/config.h>
12213 #endif
12214
12215 int
12216 main (void)
12217 {
12218
12219 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12220 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12221 #endif
12222
12223 ;
12224 return 0;
12225 }
12226
12227 _ACEOF
12228
12229
12230 rm -Rf build && mkdir -p build
12231 echo "obj-m := conftest.o" >build/Makefile
12232 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12235 ac_status=$?
12236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
12241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; }; then
12243
12244 { $as_echo "$as_me:$LINENO: result: yes" >&5
12245 $as_echo "yes" >&6; }
12246 { { $as_echo "$as_me:$LINENO: error:
12247 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12248 *** incompatible with the CDDL license. You must rebuild
12249 *** your kernel without this option." >&5
12250 $as_echo "$as_me: error:
12251 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12252 *** incompatible with the CDDL license. You must rebuild
12253 *** your kernel without this option." >&2;}
12254 { (exit 1); exit 1; }; }
12255
12256 else
12257 $as_echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 { $as_echo "$as_me:$LINENO: result: no" >&5
12261 $as_echo "no" >&6; }
12262
12263
12264
12265
12266 fi
12267
12268 rm -Rf build
12269
12270
12271
12272 fi
12273
12274 if test "$ZFS_META_LICENSE" = GPL; then
12275
12276 cat >>confdefs.h <<\_ACEOF
12277 #define HAVE_GPL_ONLY_SYMBOLS 1
12278 _ACEOF
12279
12280 fi
12281
12282
12283 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12284 $as_echo_n "checking block device operation prototypes... " >&6; }
12285
12286
12287 cat confdefs.h - <<_ACEOF >conftest.c
12288 /* confdefs.h. */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293
12294
12295 #include <linux/blkdev.h>
12296
12297 int
12298 main (void)
12299 {
12300
12301 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12302 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12303 int (*blk_ioctl) (struct block_device *, fmode_t,
12304 unsigned, unsigned long) = NULL;
12305 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12306 unsigned, unsigned long) = NULL;
12307 struct block_device_operations blk_ops = {
12308 .open = blk_open,
12309 .release = blk_release,
12310 .ioctl = blk_ioctl,
12311 .compat_ioctl = blk_compat_ioctl,
12312 };
12313
12314 blk_ops.open(NULL, 0);
12315 blk_ops.release(NULL, 0);
12316 blk_ops.ioctl(NULL, 0, 0, 0);
12317 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12318
12319 ;
12320 return 0;
12321 }
12322
12323 _ACEOF
12324
12325
12326 rm -Rf build && mkdir -p build
12327 echo "obj-m := conftest.o" >build/Makefile
12328 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339
12340 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12341 $as_echo "struct block_device" >&6; }
12342
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12345 _ACEOF
12346
12347
12348 else
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12351
12352 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12353 $as_echo "struct inode" >&6; }
12354
12355
12356
12357 fi
12358
12359 rm -Rf build
12360
12361
12362
12363 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12364 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12365
12366
12367 cat confdefs.h - <<_ACEOF >conftest.c
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373
12374
12375 #include <linux/types.h>
12376
12377 int
12378 main (void)
12379 {
12380
12381 fmode_t *ptr __attribute__ ((unused));
12382
12383 ;
12384 return 0;
12385 }
12386
12387 _ACEOF
12388
12389
12390 rm -Rf build && mkdir -p build
12391 echo "obj-m := conftest.o" >build/Makefile
12392 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403
12404 { $as_echo "$as_me:$LINENO: result: yes" >&5
12405 $as_echo "yes" >&6; }
12406
12407 cat >>confdefs.h <<\_ACEOF
12408 #define HAVE_FMODE_T 1
12409 _ACEOF
12410
12411
12412 else
12413 $as_echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 { $as_echo "$as_me:$LINENO: result: no" >&5
12417 $as_echo "no" >&6; }
12418
12419
12420
12421 fi
12422
12423 rm -Rf build
12424
12425
12426
12427
12428 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12429 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12430
12431
12432 cat confdefs.h - <<_ACEOF >conftest.c
12433 /* confdefs.h. */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h. */
12438
12439
12440 #include <linux/kobject.h>
12441
12442 int
12443 main (void)
12444 {
12445
12446 int val __attribute__ ((unused));
12447 val = KOBJ_NAME_LEN;
12448
12449 ;
12450 return 0;
12451 }
12452
12453 _ACEOF
12454
12455
12456 rm -Rf build && mkdir -p build
12457 echo "obj-m := conftest.o" >build/Makefile
12458 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12461 ac_status=$?
12462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12466 ac_status=$?
12467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469
12470 { $as_echo "$as_me:$LINENO: result: yes" >&5
12471 $as_echo "yes" >&6; }
12472
12473 cat >>confdefs.h <<\_ACEOF
12474 #define HAVE_KOBJ_NAME_LEN 1
12475 _ACEOF
12476
12477
12478 else
12479 $as_echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 { $as_echo "$as_me:$LINENO: result: no" >&5
12483 $as_echo "no" >&6; }
12484
12485
12486
12487 fi
12488
12489 rm -Rf build
12490
12491
12492
12493
12494 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12495 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12496 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12497 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12498 rc=$?
12499 if test $rc -ne 0; then
12500 export=0
12501 for file in fs/block_dev.c; do
12502 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12503 rc=$?
12504 if test $rc -eq 0; then
12505 export=1
12506 break;
12507 fi
12508 done
12509 if test $export -eq 0; then
12510 { $as_echo "$as_me:$LINENO: result: no" >&5
12511 $as_echo "no" >&6; }
12512
12513 else
12514 { $as_echo "$as_me:$LINENO: result: yes" >&5
12515 $as_echo "yes" >&6; }
12516
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_BLKDEV_GET_BY_PATH 1
12519 _ACEOF
12520
12521 fi
12522 else
12523 { $as_echo "$as_me:$LINENO: result: yes" >&5
12524 $as_echo "yes" >&6; }
12525
12526 cat >>confdefs.h <<\_ACEOF
12527 #define HAVE_BLKDEV_GET_BY_PATH 1
12528 _ACEOF
12529
12530 fi
12531
12532
12533
12534 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12535 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12536 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12537 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12538 rc=$?
12539 if test $rc -ne 0; then
12540 export=0
12541 for file in fs/block_dev.c; do
12542 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12543 rc=$?
12544 if test $rc -eq 0; then
12545 export=1
12546 break;
12547 fi
12548 done
12549 if test $export -eq 0; then
12550 { $as_echo "$as_me:$LINENO: result: no" >&5
12551 $as_echo "no" >&6; }
12552
12553 else
12554 { $as_echo "$as_me:$LINENO: result: yes" >&5
12555 $as_echo "yes" >&6; }
12556
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12559 _ACEOF
12560
12561 fi
12562 else
12563 { $as_echo "$as_me:$LINENO: result: yes" >&5
12564 $as_echo "yes" >&6; }
12565
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12568 _ACEOF
12569
12570 fi
12571
12572
12573
12574 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12575 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12576
12577
12578 cat confdefs.h - <<_ACEOF >conftest.c
12579 /* confdefs.h. */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584
12585
12586 #include <linux/buffer_head.h>
12587
12588 int
12589 main (void)
12590 {
12591
12592 struct block_device *bdev = NULL;
12593 invalidate_bdev(bdev);
12594
12595 ;
12596 return 0;
12597 }
12598
12599 _ACEOF
12600
12601
12602 rm -Rf build && mkdir -p build
12603 echo "obj-m := conftest.o" >build/Makefile
12604 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615
12616 { $as_echo "$as_me:$LINENO: result: yes" >&5
12617 $as_echo "yes" >&6; }
12618
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_1ARG_INVALIDATE_BDEV 1
12621 _ACEOF
12622
12623
12624 else
12625 $as_echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628 { $as_echo "$as_me:$LINENO: result: no" >&5
12629 $as_echo "no" >&6; }
12630
12631
12632
12633 fi
12634
12635 rm -Rf build
12636
12637
12638
12639
12640 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12641 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12642
12643
12644 cat confdefs.h - <<_ACEOF >conftest.c
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650
12651
12652 #include <linux/blkdev.h>
12653
12654 int
12655 main (void)
12656 {
12657
12658 struct block_device *bdev = NULL;
12659 bdev_logical_block_size(bdev);
12660
12661 ;
12662 return 0;
12663 }
12664
12665 _ACEOF
12666
12667
12668 rm -Rf build && mkdir -p build
12669 echo "obj-m := conftest.o" >build/Makefile
12670 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681
12682 { $as_echo "$as_me:$LINENO: result: yes" >&5
12683 $as_echo "yes" >&6; }
12684
12685 cat >>confdefs.h <<\_ACEOF
12686 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12687 _ACEOF
12688
12689
12690 else
12691 $as_echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 { $as_echo "$as_me:$LINENO: result: no" >&5
12695 $as_echo "no" >&6; }
12696
12697
12698
12699 fi
12700
12701 rm -Rf build
12702
12703
12704
12705
12706 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12707 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12708 EXTRA_KCFLAGS="-Werror"
12709
12710
12711 cat confdefs.h - <<_ACEOF >conftest.c
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717
12718
12719 #include <linux/bio.h>
12720
12721 int
12722 main (void)
12723 {
12724
12725 struct bio bio;
12726 (void)bio_empty_barrier(&bio);
12727
12728 ;
12729 return 0;
12730 }
12731
12732 _ACEOF
12733
12734
12735 rm -Rf build && mkdir -p build
12736 echo "obj-m := conftest.o" >build/Makefile
12737 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748
12749 { $as_echo "$as_me:$LINENO: result: yes" >&5
12750 $as_echo "yes" >&6; }
12751
12752 cat >>confdefs.h <<\_ACEOF
12753 #define HAVE_BIO_EMPTY_BARRIER 1
12754 _ACEOF
12755
12756
12757 else
12758 $as_echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 { $as_echo "$as_me:$LINENO: result: no" >&5
12762 $as_echo "no" >&6; }
12763
12764
12765
12766 fi
12767
12768 rm -Rf build
12769
12770
12771
12772
12773 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12774 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12775
12776
12777 cat confdefs.h - <<_ACEOF >conftest.c
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783
12784
12785 #include <linux/bio.h>
12786
12787 int
12788 main (void)
12789 {
12790
12791 int flags __attribute__ ((unused));
12792 flags = (1 << BIO_RW_FAILFAST);
12793
12794 ;
12795 return 0;
12796 }
12797
12798 _ACEOF
12799
12800
12801 rm -Rf build && mkdir -p build
12802 echo "obj-m := conftest.o" >build/Makefile
12803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12811 ac_status=$?
12812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; }; then
12814
12815 { $as_echo "$as_me:$LINENO: result: yes" >&5
12816 $as_echo "yes" >&6; }
12817
12818 cat >>confdefs.h <<\_ACEOF
12819 #define HAVE_BIO_RW_FAILFAST 1
12820 _ACEOF
12821
12822
12823 else
12824 $as_echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827 { $as_echo "$as_me:$LINENO: result: no" >&5
12828 $as_echo "no" >&6; }
12829
12830
12831
12832 fi
12833
12834 rm -Rf build
12835
12836
12837
12838
12839 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12840 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12841
12842
12843 cat confdefs.h - <<_ACEOF >conftest.c
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849
12850
12851 #include <linux/bio.h>
12852
12853 int
12854 main (void)
12855 {
12856
12857 int flags __attribute__ ((unused));
12858 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12859 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12860 (1 << BIO_RW_FAILFAST_DRIVER));
12861
12862 ;
12863 return 0;
12864 }
12865
12866 _ACEOF
12867
12868
12869 rm -Rf build && mkdir -p build
12870 echo "obj-m := conftest.o" >build/Makefile
12871 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
12882
12883 { $as_echo "$as_me:$LINENO: result: yes" >&5
12884 $as_echo "yes" >&6; }
12885
12886 cat >>confdefs.h <<\_ACEOF
12887 #define HAVE_BIO_RW_FAILFAST_DTD 1
12888 _ACEOF
12889
12890
12891 else
12892 $as_echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 { $as_echo "$as_me:$LINENO: result: no" >&5
12896 $as_echo "no" >&6; }
12897
12898
12899
12900 fi
12901
12902 rm -Rf build
12903
12904
12905
12906
12907 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12908 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12909
12910
12911 cat confdefs.h - <<_ACEOF >conftest.c
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917
12918
12919 #include <linux/bio.h>
12920
12921 int
12922 main (void)
12923 {
12924
12925 int flags __attribute__ ((unused));
12926 flags = REQ_FAILFAST_MASK;
12927
12928 ;
12929 return 0;
12930 }
12931
12932 _ACEOF
12933
12934
12935 rm -Rf build && mkdir -p build
12936 echo "obj-m := conftest.o" >build/Makefile
12937 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12939 (eval $ac_try) 2>&5
12940 ac_status=$?
12941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12945 ac_status=$?
12946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948
12949 { $as_echo "$as_me:$LINENO: result: yes" >&5
12950 $as_echo "yes" >&6; }
12951
12952 cat >>confdefs.h <<\_ACEOF
12953 #define HAVE_BIO_REQ_FAILFAST_MASK 1
12954 _ACEOF
12955
12956
12957 else
12958 $as_echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 { $as_echo "$as_me:$LINENO: result: no" >&5
12962 $as_echo "no" >&6; }
12963
12964
12965
12966 fi
12967
12968 rm -Rf build
12969
12970
12971
12972
12973 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12974 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12975 tmp_flags="$EXTRA_KCFLAGS"
12976 EXTRA_KCFLAGS="-Werror"
12977
12978
12979 cat confdefs.h - <<_ACEOF >conftest.c
12980 /* confdefs.h. */
12981 _ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985
12986
12987 #include <linux/bio.h>
12988
12989 int
12990 main (void)
12991 {
12992
12993 void (*wanted_end_io)(struct bio *, int) = NULL;
12994 bio_end_io_t *local_end_io __attribute__ ((unused));
12995
12996 local_end_io = wanted_end_io;
12997
12998 ;
12999 return 0;
13000 }
13001
13002 _ACEOF
13003
13004
13005 rm -Rf build && mkdir -p build
13006 echo "obj-m := conftest.o" >build/Makefile
13007 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018
13019 { $as_echo "$as_me:$LINENO: result: yes" >&5
13020 $as_echo "yes" >&6; }
13021
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_2ARGS_BIO_END_IO_T 1
13024 _ACEOF
13025
13026
13027 else
13028 $as_echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 { $as_echo "$as_me:$LINENO: result: no" >&5
13032 $as_echo "no" >&6; }
13033
13034
13035
13036 fi
13037
13038 rm -Rf build
13039
13040
13041 EXTRA_KCFLAGS="$tmp_flags"
13042
13043
13044 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13045 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13046
13047
13048 cat confdefs.h - <<_ACEOF >conftest.c
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13054
13055
13056 #include <linux/bio.h>
13057
13058 int
13059 main (void)
13060 {
13061
13062 int flags __attribute__ ((unused));
13063 flags = BIO_RW_SYNC;
13064
13065 ;
13066 return 0;
13067 }
13068
13069 _ACEOF
13070
13071
13072 rm -Rf build && mkdir -p build
13073 echo "obj-m := conftest.o" >build/Makefile
13074 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13077 ac_status=$?
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13085
13086 { $as_echo "$as_me:$LINENO: result: yes" >&5
13087 $as_echo "yes" >&6; }
13088
13089 cat >>confdefs.h <<\_ACEOF
13090 #define HAVE_BIO_RW_SYNC 1
13091 _ACEOF
13092
13093
13094 else
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13097
13098 { $as_echo "$as_me:$LINENO: result: no" >&5
13099 $as_echo "no" >&6; }
13100
13101
13102
13103 fi
13104
13105 rm -Rf build
13106
13107
13108
13109
13110 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13111 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13112
13113
13114 cat confdefs.h - <<_ACEOF >conftest.c
13115 /* confdefs.h. */
13116 _ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120
13121
13122 #include <linux/bio.h>
13123
13124 int
13125 main (void)
13126 {
13127
13128 int flags __attribute__ ((unused));
13129 flags = BIO_RW_SYNCIO;
13130
13131 ;
13132 return 0;
13133 }
13134
13135 _ACEOF
13136
13137
13138 rm -Rf build && mkdir -p build
13139 echo "obj-m := conftest.o" >build/Makefile
13140 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13147 (eval $ac_try) 2>&5
13148 ac_status=$?
13149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151
13152 { $as_echo "$as_me:$LINENO: result: yes" >&5
13153 $as_echo "yes" >&6; }
13154
13155 cat >>confdefs.h <<\_ACEOF
13156 #define HAVE_BIO_RW_SYNCIO 1
13157 _ACEOF
13158
13159
13160 else
13161 $as_echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164 { $as_echo "$as_me:$LINENO: result: no" >&5
13165 $as_echo "no" >&6; }
13166
13167
13168
13169 fi
13170
13171 rm -Rf build
13172
13173
13174
13175
13176 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13177 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13178
13179
13180 cat confdefs.h - <<_ACEOF >conftest.c
13181 /* confdefs.h. */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186
13187
13188 #include <linux/bio.h>
13189
13190 int
13191 main (void)
13192 {
13193
13194 int flags __attribute__ ((unused));
13195 flags = REQ_SYNC;
13196
13197 ;
13198 return 0;
13199 }
13200
13201 _ACEOF
13202
13203
13204 rm -Rf build && mkdir -p build
13205 echo "obj-m := conftest.o" >build/Makefile
13206 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217
13218 { $as_echo "$as_me:$LINENO: result: yes" >&5
13219 $as_echo "yes" >&6; }
13220
13221 cat >>confdefs.h <<\_ACEOF
13222 #define HAVE_REQ_SYNC 1
13223 _ACEOF
13224
13225
13226 else
13227 $as_echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13229
13230 { $as_echo "$as_me:$LINENO: result: no" >&5
13231 $as_echo "no" >&6; }
13232
13233
13234
13235 fi
13236
13237 rm -Rf build
13238
13239
13240
13241
13242 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13243 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13244
13245
13246 cat confdefs.h - <<_ACEOF >conftest.c
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252
13253
13254 #include <linux/blkdev.h>
13255
13256 int
13257 main (void)
13258 {
13259
13260 struct request *req = NULL;
13261 (void) blk_end_request(req, 0, 0);
13262
13263 ;
13264 return 0;
13265 }
13266
13267 _ACEOF
13268
13269
13270 rm -Rf build && mkdir -p build
13271 echo "obj-m := conftest.o" >build/Makefile
13272 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13279 (eval $ac_try) 2>&5
13280 ac_status=$?
13281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); }; }; then
13283
13284 { $as_echo "$as_me:$LINENO: result: yes" >&5
13285 $as_echo "yes" >&6; }
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_BLK_END_REQUEST 1
13289 _ACEOF
13290
13291
13292 else
13293 $as_echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13295
13296 { $as_echo "$as_me:$LINENO: result: no" >&5
13297 $as_echo "no" >&6; }
13298
13299
13300
13301 fi
13302
13303 rm -Rf build
13304
13305
13306
13307 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13308 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13309
13310
13311 cat confdefs.h - <<_ACEOF >conftest.c
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317
13318
13319 #include <linux/module.h>
13320 #include <linux/blkdev.h>
13321
13322 MODULE_LICENSE("CDDL");
13323
13324 int
13325 main (void)
13326 {
13327
13328 struct request *req = NULL;
13329 (void) blk_end_request(req, 0, 0);
13330
13331 ;
13332 return 0;
13333 }
13334
13335 _ACEOF
13336
13337
13338 rm -Rf build && mkdir -p build
13339 echo "obj-m := conftest.o" >build/Makefile
13340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351
13352 { $as_echo "$as_me:$LINENO: result: no" >&5
13353 $as_echo "no" >&6; }
13354
13355 else
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 { $as_echo "$as_me:$LINENO: result: yes" >&5
13360 $as_echo "yes" >&6; }
13361
13362 cat >>confdefs.h <<\_ACEOF
13363 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13364 _ACEOF
13365
13366
13367
13368
13369 fi
13370
13371 rm -Rf build
13372
13373
13374
13375
13376 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13377 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13378
13379
13380 cat confdefs.h - <<_ACEOF >conftest.c
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386
13387
13388 #include <linux/blkdev.h>
13389
13390 int
13391 main (void)
13392 {
13393
13394 struct request_queue *q = NULL;
13395 (void) blk_fetch_request(q);
13396
13397 ;
13398 return 0;
13399 }
13400
13401 _ACEOF
13402
13403
13404 rm -Rf build && mkdir -p build
13405 echo "obj-m := conftest.o" >build/Makefile
13406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417
13418 { $as_echo "$as_me:$LINENO: result: yes" >&5
13419 $as_echo "yes" >&6; }
13420
13421 cat >>confdefs.h <<\_ACEOF
13422 #define HAVE_BLK_FETCH_REQUEST 1
13423 _ACEOF
13424
13425
13426 else
13427 $as_echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 { $as_echo "$as_me:$LINENO: result: no" >&5
13431 $as_echo "no" >&6; }
13432
13433
13434
13435 fi
13436
13437 rm -Rf build
13438
13439
13440
13441
13442 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13443 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13444
13445
13446 cat confdefs.h - <<_ACEOF >conftest.c
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452
13453
13454 #include <linux/blkdev.h>
13455
13456 int
13457 main (void)
13458 {
13459
13460 struct request_queue *q = NULL;
13461 struct request *req = NULL;
13462 blk_requeue_request(q, req);
13463
13464 ;
13465 return 0;
13466 }
13467
13468 _ACEOF
13469
13470
13471 rm -Rf build && mkdir -p build
13472 echo "obj-m := conftest.o" >build/Makefile
13473 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484
13485 { $as_echo "$as_me:$LINENO: result: yes" >&5
13486 $as_echo "yes" >&6; }
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_BLK_REQUEUE_REQUEST 1
13490 _ACEOF
13491
13492
13493 else
13494 $as_echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 { $as_echo "$as_me:$LINENO: result: no" >&5
13498 $as_echo "no" >&6; }
13499
13500
13501
13502 fi
13503
13504 rm -Rf build
13505
13506
13507
13508
13509 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13510 $as_echo_n "checking whether blk_rq_bytes() 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/blkdev.h>
13522
13523 int
13524 main (void)
13525 {
13526
13527 struct request *req = NULL;
13528 (void) blk_rq_bytes(req);
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_BLK_RQ_BYTES 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 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13575 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13576
13577
13578 cat confdefs.h - <<_ACEOF >conftest.c
13579 /* confdefs.h. */
13580 _ACEOF
13581 cat confdefs.h >>conftest.$ac_ext
13582 cat >>conftest.$ac_ext <<_ACEOF
13583 /* end confdefs.h. */
13584
13585
13586 #include <linux/module.h>
13587 #include <linux/blkdev.h>
13588
13589 MODULE_LICENSE("CDDL");
13590
13591 int
13592 main (void)
13593 {
13594
13595 struct request *req = NULL;
13596 (void) blk_rq_bytes(req);
13597
13598 ;
13599 return 0;
13600 }
13601
13602 _ACEOF
13603
13604
13605 rm -Rf build && mkdir -p build
13606 echo "obj-m := conftest.o" >build/Makefile
13607 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618
13619 { $as_echo "$as_me:$LINENO: result: no" >&5
13620 $as_echo "no" >&6; }
13621
13622 else
13623 $as_echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13631 _ACEOF
13632
13633
13634
13635
13636 fi
13637
13638 rm -Rf build
13639
13640
13641
13642
13643 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13644 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13645
13646
13647 cat confdefs.h - <<_ACEOF >conftest.c
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653
13654
13655 #include <linux/blkdev.h>
13656
13657 int
13658 main (void)
13659 {
13660
13661 struct request *req = NULL;
13662 (void) blk_rq_pos(req);
13663
13664 ;
13665 return 0;
13666 }
13667
13668 _ACEOF
13669
13670
13671 rm -Rf build && mkdir -p build
13672 echo "obj-m := conftest.o" >build/Makefile
13673 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684
13685 { $as_echo "$as_me:$LINENO: result: yes" >&5
13686 $as_echo "yes" >&6; }
13687
13688 cat >>confdefs.h <<\_ACEOF
13689 #define HAVE_BLK_RQ_POS 1
13690 _ACEOF
13691
13692
13693 else
13694 $as_echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 { $as_echo "$as_me:$LINENO: result: no" >&5
13698 $as_echo "no" >&6; }
13699
13700
13701
13702 fi
13703
13704 rm -Rf build
13705
13706
13707
13708
13709 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13710 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13711
13712
13713 cat confdefs.h - <<_ACEOF >conftest.c
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719
13720
13721 #include <linux/blkdev.h>
13722
13723 int
13724 main (void)
13725 {
13726
13727 struct request *req = NULL;
13728 (void) blk_rq_sectors(req);
13729
13730 ;
13731 return 0;
13732 }
13733
13734 _ACEOF
13735
13736
13737 rm -Rf build && mkdir -p build
13738 echo "obj-m := conftest.o" >build/Makefile
13739 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13742 ac_status=$?
13743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750
13751 { $as_echo "$as_me:$LINENO: result: yes" >&5
13752 $as_echo "yes" >&6; }
13753
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_BLK_RQ_SECTORS 1
13756 _ACEOF
13757
13758
13759 else
13760 $as_echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763 { $as_echo "$as_me:$LINENO: result: no" >&5
13764 $as_echo "no" >&6; }
13765
13766
13767
13768 fi
13769
13770 rm -Rf build
13771
13772
13773
13774
13775 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13776 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13777
13778
13779 cat confdefs.h - <<_ACEOF >conftest.c
13780 /* confdefs.h. */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13785
13786
13787 #include <linux/blkdev.h>
13788
13789 int
13790 main (void)
13791 {
13792
13793 struct gendisk *disk = NULL;
13794 (void) get_disk_ro(disk);
13795
13796 ;
13797 return 0;
13798 }
13799
13800 _ACEOF
13801
13802
13803 rm -Rf build && mkdir -p build
13804 echo "obj-m := conftest.o" >build/Makefile
13805 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13816
13817 { $as_echo "$as_me:$LINENO: result: yes" >&5
13818 $as_echo "yes" >&6; }
13819
13820 cat >>confdefs.h <<\_ACEOF
13821 #define HAVE_GET_DISK_RO 1
13822 _ACEOF
13823
13824
13825 else
13826 $as_echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13828
13829 { $as_echo "$as_me:$LINENO: result: no" >&5
13830 $as_echo "no" >&6; }
13831
13832
13833
13834 fi
13835
13836 rm -Rf build
13837
13838
13839
13840
13841 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13842 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13843
13844
13845 cat confdefs.h - <<_ACEOF >conftest.c
13846 /* confdefs.h. */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h. */
13851
13852
13853 #include <linux/blkdev.h>
13854
13855 int
13856 main (void)
13857 {
13858
13859 struct request *req = NULL;
13860 (void) rq_is_sync(req);
13861
13862 ;
13863 return 0;
13864 }
13865
13866 _ACEOF
13867
13868
13869 rm -Rf build && mkdir -p build
13870 echo "obj-m := conftest.o" >build/Makefile
13871 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882
13883 { $as_echo "$as_me:$LINENO: result: yes" >&5
13884 $as_echo "yes" >&6; }
13885
13886 cat >>confdefs.h <<\_ACEOF
13887 #define HAVE_RQ_IS_SYNC 1
13888 _ACEOF
13889
13890
13891 else
13892 $as_echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13894
13895 { $as_echo "$as_me:$LINENO: result: no" >&5
13896 $as_echo "no" >&6; }
13897
13898
13899
13900 fi
13901
13902 rm -Rf build
13903
13904
13905
13906
13907 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13908 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13909
13910
13911 cat confdefs.h - <<_ACEOF >conftest.c
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917
13918
13919 #include <linux/blkdev.h>
13920
13921 int
13922 main (void)
13923 {
13924
13925 struct bio_vec *bv;
13926 struct req_iterator iter;
13927 struct request *req = NULL;
13928 rq_for_each_segment(bv, req, iter) { }
13929
13930 ;
13931 return 0;
13932 }
13933
13934 _ACEOF
13935
13936
13937 rm -Rf build && mkdir -p build
13938 echo "obj-m := conftest.o" >build/Makefile
13939 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950
13951 { $as_echo "$as_me:$LINENO: result: yes" >&5
13952 $as_echo "yes" >&6; }
13953
13954 cat >>confdefs.h <<\_ACEOF
13955 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13956 _ACEOF
13957
13958
13959 else
13960 $as_echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13962
13963 { $as_echo "$as_me:$LINENO: result: no" >&5
13964 $as_echo "no" >&6; }
13965
13966
13967
13968 fi
13969
13970 rm -Rf build
13971
13972
13973
13974 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13975 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13976
13977
13978 cat confdefs.h - <<_ACEOF >conftest.c
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984
13985
13986 #include <linux/fs.h>
13987 #include <linux/xattr.h>
13988
13989 const struct xattr_handler xattr_test_handler = {
13990 .prefix = "test",
13991 .get = NULL,
13992 .set = NULL,
13993 };
13994
13995 const struct xattr_handler *xattr_handlers[] = {
13996 &xattr_test_handler,
13997 };
13998
13999 int
14000 main (void)
14001 {
14002
14003 struct super_block sb __attribute__ ((unused));
14004
14005 sb.s_xattr = xattr_handlers;
14006
14007 ;
14008 return 0;
14009 }
14010
14011 _ACEOF
14012
14013
14014 rm -Rf build && mkdir -p build
14015 echo "obj-m := conftest.o" >build/Makefile
14016 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027
14028 { $as_echo "$as_me:$LINENO: result: yes" >&5
14029 $as_echo "yes" >&6; }
14030
14031 cat >>confdefs.h <<\_ACEOF
14032 #define HAVE_CONST_XATTR_HANDLER 1
14033 _ACEOF
14034
14035
14036 else
14037 $as_echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040 { $as_echo "$as_me:$LINENO: result: no" >&5
14041 $as_echo "no" >&6; }
14042
14043
14044
14045 fi
14046
14047 rm -Rf build
14048
14049
14050
14051
14052 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14053 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14054
14055
14056 cat confdefs.h - <<_ACEOF >conftest.c
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062
14063
14064 #include <linux/xattr.h>
14065
14066 int
14067 main (void)
14068 {
14069
14070 int (*get)(struct dentry *dentry, const char *name,
14071 void *buffer, size_t size, int handler_flags) = NULL;
14072 struct xattr_handler xops __attribute__ ((unused));
14073
14074 xops.get = get;
14075
14076 ;
14077 return 0;
14078 }
14079
14080 _ACEOF
14081
14082
14083 rm -Rf build && mkdir -p build
14084 echo "obj-m := conftest.o" >build/Makefile
14085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }; then
14096
14097 { $as_echo "$as_me:$LINENO: result: yes" >&5
14098 $as_echo "yes" >&6; }
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_DENTRY_XATTR_GET 1
14102 _ACEOF
14103
14104
14105 else
14106 $as_echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 { $as_echo "$as_me:$LINENO: result: no" >&5
14110 $as_echo "no" >&6; }
14111
14112
14113
14114 fi
14115
14116 rm -Rf build
14117
14118
14119
14120
14121 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14122 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14123
14124
14125 cat confdefs.h - <<_ACEOF >conftest.c
14126 /* confdefs.h. */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131
14132
14133 #include <linux/xattr.h>
14134
14135 int
14136 main (void)
14137 {
14138
14139 int (*set)(struct dentry *dentry, const char *name,
14140 const void *buffer, size_t size, int flags,
14141 int handler_flags) = NULL;
14142 struct xattr_handler xops __attribute__ ((unused));
14143
14144 xops.set = set;
14145
14146 ;
14147 return 0;
14148 }
14149
14150 _ACEOF
14151
14152
14153 rm -Rf build && mkdir -p build
14154 echo "obj-m := conftest.o" >build/Makefile
14155 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14163 ac_status=$?
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; }; then
14166
14167 { $as_echo "$as_me:$LINENO: result: yes" >&5
14168 $as_echo "yes" >&6; }
14169
14170 cat >>confdefs.h <<\_ACEOF
14171 #define HAVE_DENTRY_XATTR_SET 1
14172 _ACEOF
14173
14174
14175 else
14176 $as_echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 { $as_echo "$as_me:$LINENO: result: no" >&5
14180 $as_echo "no" >&6; }
14181
14182
14183
14184 fi
14185
14186 rm -Rf build
14187
14188
14189
14190
14191 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14192 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14193
14194
14195 cat confdefs.h - <<_ACEOF >conftest.c
14196 /* confdefs.h. */
14197 _ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201
14202
14203 #include <linux/fs.h>
14204
14205 int
14206 main (void)
14207 {
14208
14209 int (*fsync) (struct file *, int datasync) = NULL;
14210 struct file_operations fops __attribute__ ((unused));
14211
14212 fops.fsync = fsync;
14213
14214 ;
14215 return 0;
14216 }
14217
14218 _ACEOF
14219
14220
14221 rm -Rf build && mkdir -p build
14222 echo "obj-m := conftest.o" >build/Makefile
14223 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14226 ac_status=$?
14227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234
14235 { $as_echo "$as_me:$LINENO: result: yes" >&5
14236 $as_echo "yes" >&6; }
14237
14238 cat >>confdefs.h <<\_ACEOF
14239 #define HAVE_2ARGS_FSYNC 1
14240 _ACEOF
14241
14242
14243 else
14244 $as_echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 { $as_echo "$as_me:$LINENO: result: no" >&5
14248 $as_echo "no" >&6; }
14249
14250
14251
14252 fi
14253
14254 rm -Rf build
14255
14256
14257
14258
14259 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14260 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14261
14262
14263 cat confdefs.h - <<_ACEOF >conftest.c
14264 /* confdefs.h. */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269
14270
14271 #include <linux/fs.h>
14272
14273 int
14274 main (void)
14275 {
14276
14277 void (*evict_inode) (struct inode *) = NULL;
14278 struct super_operations sops __attribute__ ((unused));
14279
14280 sops.evict_inode = evict_inode;
14281
14282 ;
14283 return 0;
14284 }
14285
14286 _ACEOF
14287
14288
14289 rm -Rf build && mkdir -p build
14290 echo "obj-m := conftest.o" >build/Makefile
14291 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302
14303 { $as_echo "$as_me:$LINENO: result: yes" >&5
14304 $as_echo "yes" >&6; }
14305
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_EVICT_INODE 1
14308 _ACEOF
14309
14310
14311 else
14312 $as_echo "$as_me: failed program was:" >&5
14313 sed 's/^/| /' conftest.$ac_ext >&5
14314
14315 { $as_echo "$as_me:$LINENO: result: no" >&5
14316 $as_echo "no" >&6; }
14317
14318
14319
14320 fi
14321
14322 rm -Rf build
14323
14324
14325
14326
14327 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14328 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14329 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14330 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14331 rc=$?
14332 if test $rc -ne 0; then
14333 export=0
14334 for file in fs/inode.c; do
14335 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
14336 rc=$?
14337 if test $rc -eq 0; then
14338 export=1
14339 break;
14340 fi
14341 done
14342 if test $export -eq 0; then
14343 { $as_echo "$as_me:$LINENO: result: no" >&5
14344 $as_echo "no" >&6; }
14345
14346 else
14347 { $as_echo "$as_me:$LINENO: result: yes" >&5
14348 $as_echo "yes" >&6; }
14349
14350 cat >>confdefs.h <<\_ACEOF
14351 #define HAVE_INSERT_INODE_LOCKED 1
14352 _ACEOF
14353
14354 fi
14355 else
14356 { $as_echo "$as_me:$LINENO: result: yes" >&5
14357 $as_echo "yes" >&6; }
14358
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_INSERT_INODE_LOCKED 1
14361 _ACEOF
14362
14363 fi
14364
14365
14366
14367 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14368 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14369 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14370 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14371 rc=$?
14372 if test $rc -ne 0; then
14373 export=0
14374 for file in fs/dcache.c; do
14375 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
14376 rc=$?
14377 if test $rc -eq 0; then
14378 export=1
14379 break;
14380 fi
14381 done
14382 if test $export -eq 0; then
14383 { $as_echo "$as_me:$LINENO: result: no" >&5
14384 $as_echo "no" >&6; }
14385
14386 else
14387 { $as_echo "$as_me:$LINENO: result: yes" >&5
14388 $as_echo "yes" >&6; }
14389
14390 cat >>confdefs.h <<\_ACEOF
14391 #define HAVE_D_OBTAIN_ALIAS 1
14392 _ACEOF
14393
14394 fi
14395 else
14396 { $as_echo "$as_me:$LINENO: result: yes" >&5
14397 $as_echo "yes" >&6; }
14398
14399 cat >>confdefs.h <<\_ACEOF
14400 #define HAVE_D_OBTAIN_ALIAS 1
14401 _ACEOF
14402
14403 fi
14404
14405
14406
14407 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14408 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14409 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14410 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14411 rc=$?
14412 if test $rc -ne 0; then
14413 export=0
14414 for file in fs/block_dev.c; do
14415 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
14416 rc=$?
14417 if test $rc -eq 0; then
14418 export=1
14419 break;
14420 fi
14421 done
14422 if test $export -eq 0; then
14423 { $as_echo "$as_me:$LINENO: result: no" >&5
14424 $as_echo "no" >&6; }
14425
14426 else
14427 { $as_echo "$as_me:$LINENO: result: yes" >&5
14428 $as_echo "yes" >&6; }
14429
14430 cat >>confdefs.h <<\_ACEOF
14431 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14432 _ACEOF
14433
14434 fi
14435 else
14436 { $as_echo "$as_me:$LINENO: result: yes" >&5
14437 $as_echo "yes" >&6; }
14438
14439 cat >>confdefs.h <<\_ACEOF
14440 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
14441 _ACEOF
14442
14443 fi
14444
14445
14446
14447 if test "$LINUX_OBJ" != "$LINUX"; then
14448 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14449 fi
14450
14451
14452
14453 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-unused-but-set-variable"
14454 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14455 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14456
14457
14458 ;;
14459 user)
14460
14461 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14462 $as_echo_n "checking for target asm dir... " >&6; }
14463 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14464
14465 case $TARGET_ARCH in
14466 i386|x86_64)
14467 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14468 ;;
14469 *)
14470 TARGET_ASM_DIR=asm-generic
14471 ;;
14472 esac
14473
14474
14475 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14476 $as_echo "$TARGET_ASM_DIR" >&6; }
14477
14478
14479 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14480 $as_echo_n "checking for ioctl()... " >&6; }
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 #include <unistd.h>
14488
14489 _ACEOF
14490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14491 $EGREP "ioctl" >/dev/null 2>&1; then
14492 is_unistd=yes
14493 else
14494 is_unistd=no
14495 fi
14496 rm -f conftest*
14497
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h. */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 #include <sys/ioctl.h>
14505
14506 _ACEOF
14507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14508 $EGREP "ioctl" >/dev/null 2>&1; then
14509 is_sys_ioctl=yes
14510 else
14511 is_sys_ioctl=no
14512 fi
14513 rm -f conftest*
14514
14515 cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h. */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 #include <stropts.h>
14522
14523 _ACEOF
14524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14525 $EGREP "ioctl" >/dev/null 2>&1; then
14526 is_stropts=yes
14527 else
14528 is_stropts=no
14529 fi
14530 rm -f conftest*
14531
14532
14533 if test $is_unistd = yes; then
14534 result=unistd.h
14535
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_IOCTL_IN_UNISTD_H 1
14538 _ACEOF
14539
14540 else
14541
14542 if test $is_sys_ioctl = yes; then
14543 result=sys/ioctl.h
14544
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14547 _ACEOF
14548
14549 elif test $is_stropts = yes; then
14550
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_IOCTL_IN_STROPTS_H 1
14553 _ACEOF
14554
14555 else
14556 result=no
14557 fi
14558 fi
14559
14560 if test $result = no; then
14561 { $as_echo "$as_me:$LINENO: result: no" >&5
14562 $as_echo "no" >&6; }
14563 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14564 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14565 { (exit 1); exit 1; }; }
14566 else
14567 { $as_echo "$as_me:$LINENO: result: yes" >&5
14568 $as_echo "yes" >&6; }
14569 fi
14570
14571
14572 ZLIB=
14573
14574 if test "${ac_cv_header_zlib_h+set}" = set; then
14575 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14576 $as_echo_n "checking for zlib.h... " >&6; }
14577 if test "${ac_cv_header_zlib_h+set}" = set; then
14578 $as_echo_n "(cached) " >&6
14579 fi
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14581 $as_echo "$ac_cv_header_zlib_h" >&6; }
14582 else
14583 # Is the header compilable?
14584 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14585 $as_echo_n "checking zlib.h usability... " >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 #include <zlib.h>
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14602 $as_echo "$ac_try_echo") >&5
14603 (eval "$ac_compile") 2>conftest.er1
14604 ac_status=$?
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
14608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } && {
14610 test -z "$ac_c_werror_flag" ||
14611 test ! -s conftest.err
14612 } && test -s conftest.$ac_objext; then
14613 ac_header_compiler=yes
14614 else
14615 $as_echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_header_compiler=no
14619 fi
14620
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623 $as_echo "$ac_header_compiler" >&6; }
14624
14625 # Is the header present?
14626 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14627 $as_echo_n "checking zlib.h presence... " >&6; }
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h. */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <zlib.h>
14635 _ACEOF
14636 if { (ac_try="$ac_cpp conftest.$ac_ext"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640 esac
14641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14642 $as_echo "$ac_try_echo") >&5
14643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } >/dev/null && {
14650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 }; then
14653 ac_header_preproc=yes
14654 else
14655 $as_echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ac_header_preproc=no
14659 fi
14660
14661 rm -f conftest.err conftest.$ac_ext
14662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 $as_echo "$ac_header_preproc" >&6; }
14664
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14667 yes:no: )
14668 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14669 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14671 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14673 ;;
14674 no:yes:* )
14675 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14676 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14677 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
14678 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
14679 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14680 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14681 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
14682 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14684 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14685 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14686 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14687
14688 ;;
14689 esac
14690 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14691 $as_echo_n "checking for zlib.h... " >&6; }
14692 if test "${ac_cv_header_zlib_h+set}" = set; then
14693 $as_echo_n "(cached) " >&6
14694 else
14695 ac_cv_header_zlib_h=$ac_header_preproc
14696 fi
14697 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14698 $as_echo "$ac_cv_header_zlib_h" >&6; }
14699
14700 fi
14701 if test "x$ac_cv_header_zlib_h" = x""yes; then
14702 :
14703 else
14704 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14706 { { $as_echo "$as_me:$LINENO: error:
14707 *** zlib.h missing, zlib-devel package required
14708 See \`config.log' for more details." >&5
14709 $as_echo "$as_me: error:
14710 *** zlib.h missing, zlib-devel package required
14711 See \`config.log' for more details." >&2;}
14712 { (exit 1); exit 1; }; }; }
14713 fi
14714
14715
14716
14717
14718 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14719 $as_echo_n "checking for compress2 in -lz... " >&6; }
14720 if test "${ac_cv_lib_z_compress2+set}" = set; then
14721 $as_echo_n "(cached) " >&6
14722 else
14723 ac_check_lib_save_LIBS=$LIBS
14724 LIBS="-lz $LIBS"
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731
14732 /* Override any GCC internal prototype to avoid an error.
14733 Use char because int might match the return type of a GCC
14734 builtin and then its argument prototype would still apply. */
14735 #ifdef __cplusplus
14736 extern "C"
14737 #endif
14738 char compress2 ();
14739 int
14740 main ()
14741 {
14742 return compress2 ();
14743 ;
14744 return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751 *) ac_try_echo=$ac_try;;
14752 esac
14753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14754 $as_echo "$ac_try_echo") >&5
14755 (eval "$ac_link") 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } && {
14762 test -z "$ac_c_werror_flag" ||
14763 test ! -s conftest.err
14764 } && test -s conftest$ac_exeext && {
14765 test "$cross_compiling" = yes ||
14766 $as_test_x conftest$ac_exeext
14767 }; then
14768 ac_cv_lib_z_compress2=yes
14769 else
14770 $as_echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14772
14773 ac_cv_lib_z_compress2=no
14774 fi
14775
14776 rm -rf conftest.dSYM
14777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14778 conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14780 fi
14781 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14782 $as_echo "$ac_cv_lib_z_compress2" >&6; }
14783 if test "x$ac_cv_lib_z_compress2" = x""yes; then
14784 cat >>confdefs.h <<_ACEOF
14785 #define HAVE_LIBZ 1
14786 _ACEOF
14787
14788 LIBS="-lz $LIBS"
14789
14790 else
14791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14793 { { $as_echo "$as_me:$LINENO: error:
14794 *** compress2() missing, zlib-devel package required
14795 See \`config.log' for more details." >&5
14796 $as_echo "$as_me: error:
14797 *** compress2() missing, zlib-devel package required
14798 See \`config.log' for more details." >&2;}
14799 { (exit 1); exit 1; }; }; }
14800 fi
14801
14802
14803
14804 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14805 $as_echo_n "checking for uncompress in -lz... " >&6; }
14806 if test "${ac_cv_lib_z_uncompress+set}" = set; then
14807 $as_echo_n "(cached) " >&6
14808 else
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lz $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h. */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14817
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 #endif
14824 char uncompress ();
14825 int
14826 main ()
14827 {
14828 return uncompress ();
14829 ;
14830 return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14838 esac
14839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14840 $as_echo "$ac_try_echo") >&5
14841 (eval "$ac_link") 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } && {
14848 test -z "$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 } && test -s conftest$ac_exeext && {
14851 test "$cross_compiling" = yes ||
14852 $as_test_x conftest$ac_exeext
14853 }; then
14854 ac_cv_lib_z_uncompress=yes
14855 else
14856 $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859 ac_cv_lib_z_uncompress=no
14860 fi
14861
14862 rm -rf conftest.dSYM
14863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14866 fi
14867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14868 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14869 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14870 cat >>confdefs.h <<_ACEOF
14871 #define HAVE_LIBZ 1
14872 _ACEOF
14873
14874 LIBS="-lz $LIBS"
14875
14876 else
14877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14879 { { $as_echo "$as_me:$LINENO: error:
14880 *** uncompress() missing, zlib-devel package required
14881 See \`config.log' for more details." >&5
14882 $as_echo "$as_me: error:
14883 *** uncompress() missing, zlib-devel package required
14884 See \`config.log' for more details." >&2;}
14885 { (exit 1); exit 1; }; }; }
14886 fi
14887
14888
14889
14890 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14891 $as_echo_n "checking for crc32 in -lz... " >&6; }
14892 if test "${ac_cv_lib_z_crc32+set}" = set; then
14893 $as_echo_n "(cached) " >&6
14894 else
14895 ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lz $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903
14904 /* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 char crc32 ();
14911 int
14912 main ()
14913 {
14914 return crc32 ();
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (ac_try="$ac_link"
14921 case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924 esac
14925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14926 $as_echo "$ac_try_echo") >&5
14927 (eval "$ac_link") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14936 } && test -s conftest$ac_exeext && {
14937 test "$cross_compiling" = yes ||
14938 $as_test_x conftest$ac_exeext
14939 }; then
14940 ac_cv_lib_z_crc32=yes
14941 else
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_cv_lib_z_crc32=no
14946 fi
14947
14948 rm -rf conftest.dSYM
14949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14950 conftest$ac_exeext conftest.$ac_ext
14951 LIBS=$ac_check_lib_save_LIBS
14952 fi
14953 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14954 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14955 if test "x$ac_cv_lib_z_crc32" = x""yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_LIBZ 1
14958 _ACEOF
14959
14960 LIBS="-lz $LIBS"
14961
14962 else
14963 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14965 { { $as_echo "$as_me:$LINENO: error:
14966 *** crc32() missing, zlib-devel package required
14967 See \`config.log' for more details." >&5
14968 $as_echo "$as_me: error:
14969 *** crc32() missing, zlib-devel package required
14970 See \`config.log' for more details." >&2;}
14971 { (exit 1); exit 1; }; }; }
14972 fi
14973
14974
14975 ZLIB="-lz"
14976
14977
14978 cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_ZLIB 1
14980 _ACEOF
14981
14982
14983
14984 LIBUUID=
14985
14986 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14987 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14988 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14989 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14990 $as_echo_n "(cached) " >&6
14991 fi
14992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14993 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14994 else
14995 # Is the header compilable?
14996 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14997 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14998 cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h. */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 #include <uuid/uuid.h>
15006 _ACEOF
15007 rm -f conftest.$ac_objext
15008 if { (ac_try="$ac_compile"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15014 $as_echo "$ac_try_echo") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15016 ac_status=$?
15017 grep -v '^ *+' conftest.er1 >conftest.err
15018 rm -f conftest.er1
15019 cat conftest.err >&5
15020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest.$ac_objext; then
15025 ac_header_compiler=yes
15026 else
15027 $as_echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 ac_header_compiler=no
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15035 $as_echo "$ac_header_compiler" >&6; }
15036
15037 # Is the header present?
15038 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15039 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h. */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 #include <uuid/uuid.h>
15047 _ACEOF
15048 if { (ac_try="$ac_cpp conftest.$ac_ext"
15049 case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052 esac
15053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15054 $as_echo "$ac_try_echo") >&5
15055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15056 ac_status=$?
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
15060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } >/dev/null && {
15062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 }; then
15065 ac_header_preproc=yes
15066 else
15067 $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_header_preproc=no
15071 fi
15072
15073 rm -f conftest.err conftest.$ac_ext
15074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15075 $as_echo "$ac_header_preproc" >&6; }
15076
15077 # So? What about this header?
15078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15079 yes:no: )
15080 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15081 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15082 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15083 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15084 ac_header_preproc=yes
15085 ;;
15086 no:yes:* )
15087 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15088 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
15090 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15092 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
15094 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15096 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15097 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15098 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15099
15100 ;;
15101 esac
15102 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15103 $as_echo_n "checking for uuid/uuid.h... " >&6; }
15104 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15105 $as_echo_n "(cached) " >&6
15106 else
15107 ac_cv_header_uuid_uuid_h=$ac_header_preproc
15108 fi
15109 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15110 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15111
15112 fi
15113 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15114 :
15115 else
15116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15118 { { $as_echo "$as_me:$LINENO: error:
15119 *** uuid/uuid.h missing, libuuid-devel package required
15120 See \`config.log' for more details." >&5
15121 $as_echo "$as_me: error:
15122 *** uuid/uuid.h missing, libuuid-devel package required
15123 See \`config.log' for more details." >&2;}
15124 { (exit 1); exit 1; }; }; }
15125 fi
15126
15127
15128
15129
15130 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15131 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15132 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15133 $as_echo_n "(cached) " >&6
15134 else
15135 ac_check_lib_save_LIBS=$LIBS
15136 LIBS="-luuid $LIBS"
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h. */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15143
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15147 #ifdef __cplusplus
15148 extern "C"
15149 #endif
15150 char uuid_generate ();
15151 int
15152 main ()
15153 {
15154 return uuid_generate ();
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (ac_try="$ac_link"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15164 esac
15165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_link") 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext && {
15177 test "$cross_compiling" = yes ||
15178 $as_test_x conftest$ac_exeext
15179 }; then
15180 ac_cv_lib_uuid_uuid_generate=yes
15181 else
15182 $as_echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15184
15185 ac_cv_lib_uuid_uuid_generate=no
15186 fi
15187
15188 rm -rf conftest.dSYM
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15192 fi
15193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15194 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15195 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_LIBUUID 1
15198 _ACEOF
15199
15200 LIBS="-luuid $LIBS"
15201
15202 else
15203 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15205 { { $as_echo "$as_me:$LINENO: error:
15206 *** uuid_generate() missing, libuuid-devel package required
15207 See \`config.log' for more details." >&5
15208 $as_echo "$as_me: error:
15209 *** uuid_generate() missing, libuuid-devel package required
15210 See \`config.log' for more details." >&2;}
15211 { (exit 1); exit 1; }; }; }
15212 fi
15213
15214
15215
15216 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15217 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15218 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15219 $as_echo_n "(cached) " >&6
15220 else
15221 ac_check_lib_save_LIBS=$LIBS
15222 LIBS="-luuid $LIBS"
15223 cat >conftest.$ac_ext <<_ACEOF
15224 /* confdefs.h. */
15225 _ACEOF
15226 cat confdefs.h >>conftest.$ac_ext
15227 cat >>conftest.$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15229
15230 /* Override any GCC internal prototype to avoid an error.
15231 Use char because int might match the return type of a GCC
15232 builtin and then its argument prototype would still apply. */
15233 #ifdef __cplusplus
15234 extern "C"
15235 #endif
15236 char uuid_is_null ();
15237 int
15238 main ()
15239 {
15240 return uuid_is_null ();
15241 ;
15242 return 0;
15243 }
15244 _ACEOF
15245 rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15250 esac
15251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15252 $as_echo "$ac_try_echo") >&5
15253 (eval "$ac_link") 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } && {
15260 test -z "$ac_c_werror_flag" ||
15261 test ! -s conftest.err
15262 } && test -s conftest$ac_exeext && {
15263 test "$cross_compiling" = yes ||
15264 $as_test_x conftest$ac_exeext
15265 }; then
15266 ac_cv_lib_uuid_uuid_is_null=yes
15267 else
15268 $as_echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15270
15271 ac_cv_lib_uuid_uuid_is_null=no
15272 fi
15273
15274 rm -rf conftest.dSYM
15275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276 conftest$ac_exeext conftest.$ac_ext
15277 LIBS=$ac_check_lib_save_LIBS
15278 fi
15279 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
15280 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15281 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15282 cat >>confdefs.h <<_ACEOF
15283 #define HAVE_LIBUUID 1
15284 _ACEOF
15285
15286 LIBS="-luuid $LIBS"
15287
15288 else
15289 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15291 { { $as_echo "$as_me:$LINENO: error:
15292 *** uuid_is_null() missing, libuuid-devel package required
15293 See \`config.log' for more details." >&5
15294 $as_echo "$as_me: error:
15295 *** uuid_is_null() missing, libuuid-devel package required
15296 See \`config.log' for more details." >&2;}
15297 { (exit 1); exit 1; }; }; }
15298 fi
15299
15300
15301 LIBUUID="-luuid"
15302
15303
15304 cat >>confdefs.h <<\_ACEOF
15305 #define HAVE_LIBUUID 1
15306 _ACEOF
15307
15308
15309
15310
15311 # Check whether --with-blkid was given.
15312 if test "${with_blkid+set}" = set; then
15313 withval=$with_blkid;
15314 else
15315 with_blkid=check
15316 fi
15317
15318
15319 LIBBLKID=
15320 if test "x$with_blkid" != xno; then
15321
15322 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15323 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15324 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15325 $as_echo_n "(cached) " >&6
15326 else
15327 ac_check_lib_save_LIBS=$LIBS
15328 LIBS="-lblkid $LIBS"
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char blkid_get_cache ();
15343 int
15344 main ()
15345 {
15346 return blkid_get_cache ();
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext && {
15369 test "$cross_compiling" = yes ||
15370 $as_test_x conftest$ac_exeext
15371 }; then
15372 ac_cv_lib_blkid_blkid_get_cache=yes
15373 else
15374 $as_echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15376
15377 ac_cv_lib_blkid_blkid_get_cache=no
15378 fi
15379
15380 rm -rf conftest.dSYM
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382 conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15384 fi
15385 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15386 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15387 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15388
15389 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15390 $as_echo_n "checking for blkid zfs support... " >&6; }
15391
15392 ZFS_DEV=`mktemp`
15393 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15394 >/dev/null 2>/dev/null
15395 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15396 dd of=$ZFS_DEV bs=1k count=8 \
15397 seek=132 conv=notrunc &>/dev/null \
15398 >/dev/null 2>/dev/null
15399
15400 saved_LDFLAGS="$LDFLAGS"
15401 LDFLAGS="-lblkid"
15402
15403 if test "$cross_compiling" = yes; then
15404 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15406 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15407 See \`config.log' for more details." >&5
15408 $as_echo "$as_me: error: cannot run test program while cross compiling
15409 See \`config.log' for more details." >&2;}
15410 { (exit 1); exit 1; }; }; }
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418
15419 #include <stdio.h>
15420 #include <blkid/blkid.h>
15421
15422 int
15423 main ()
15424 {
15425
15426 blkid_cache cache;
15427 char *value;
15428
15429 if (blkid_get_cache(&cache, NULL) < 0)
15430 return 1;
15431
15432 value = blkid_get_tag_value(cache, "TYPE",
15433 "$ZFS_DEV");
15434 if (!value) {
15435 blkid_put_cache(cache);
15436 return 2;
15437 }
15438
15439 if (strcmp(value, "zfs")) {
15440 free(value);
15441 blkid_put_cache(cache);
15442 return 3;
15443 }
15444
15445 free(value);
15446 blkid_put_cache(cache);
15447
15448 ;
15449 return 0;
15450 }
15451 _ACEOF
15452 rm -f conftest$ac_exeext
15453 if { (ac_try="$ac_link"
15454 case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15457 esac
15458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15459 $as_echo "$ac_try_echo") >&5
15460 (eval "$ac_link") 2>&5
15461 ac_status=$?
15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15464 { (case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467 esac
15468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469 $as_echo "$ac_try_echo") >&5
15470 (eval "$ac_try") 2>&5
15471 ac_status=$?
15472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474
15475 rm -f $ZFS_DEV
15476 { $as_echo "$as_me:$LINENO: result: yes" >&5
15477 $as_echo "yes" >&6; }
15478 LIBBLKID="-lblkid"
15479
15480
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_LIBBLKID 1
15483 _ACEOF
15484
15485
15486 else
15487 $as_echo "$as_me: program exited with status $ac_status" >&5
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491 ( exit $ac_status )
15492
15493 rm -f $ZFS_DEV
15494 { $as_echo "$as_me:$LINENO: result: no" >&5
15495 $as_echo "no" >&6; }
15496 if test "x$with_blkid" != xcheck; then
15497 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15499 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15500 See \`config.log' for more details." >&5
15501 $as_echo "$as_me: error: --with-blkid given but unavailable
15502 See \`config.log' for more details." >&2;}
15503 { (exit 1); exit 1; }; }; }
15504 fi
15505
15506
15507 fi
15508 rm -rf conftest.dSYM
15509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15510 fi
15511
15512
15513
15514 LDFLAGS="$saved_LDFLAGS"
15515
15516 else
15517
15518 if test "x$with_blkid" != xcheck; then
15519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15521 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15522 See \`config.log' for more details." >&5
15523 $as_echo "$as_me: error: --with-blkid given but unavailable
15524 See \`config.log' for more details." >&2;}
15525 { (exit 1); exit 1; }; }; }
15526 fi
15527
15528
15529
15530 fi
15531
15532
15533 fi
15534
15535
15536
15537
15538 # Check whether --with-selinux was given.
15539 if test "${with_selinux+set}" = set; then
15540 withval=$with_selinux;
15541 else
15542 with_selinux=check
15543 fi
15544
15545
15546 LIBSELINUX=
15547 if test "x$with_selinux" != xno; then
15548
15549 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15550 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15551 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15552 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15553 $as_echo_n "(cached) " >&6
15554 fi
15555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15556 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15557 else
15558 # Is the header compilable?
15559 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15560 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15561 cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h. */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15567 $ac_includes_default
15568 #include <selinux/selinux.h>
15569 _ACEOF
15570 rm -f conftest.$ac_objext
15571 if { (ac_try="$ac_compile"
15572 case "(($ac_try" in
15573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15574 *) ac_try_echo=$ac_try;;
15575 esac
15576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15577 $as_echo "$ac_try_echo") >&5
15578 (eval "$ac_compile") 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest.$ac_objext; then
15588 ac_header_compiler=yes
15589 else
15590 $as_echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_header_compiler=no
15594 fi
15595
15596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15598 $as_echo "$ac_header_compiler" >&6; }
15599
15600 # Is the header present?
15601 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15602 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 #include <selinux/selinux.h>
15610 _ACEOF
15611 if { (ac_try="$ac_cpp conftest.$ac_ext"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615 esac
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } >/dev/null && {
15625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15626 test ! -s conftest.err
15627 }; then
15628 ac_header_preproc=yes
15629 else
15630 $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_header_preproc=no
15634 fi
15635
15636 rm -f conftest.err conftest.$ac_ext
15637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15638 $as_echo "$ac_header_preproc" >&6; }
15639
15640 # So? What about this header?
15641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 yes:no: )
15643 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15644 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15645 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15646 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15647 ac_header_preproc=yes
15648 ;;
15649 no:yes:* )
15650 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15651 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15652 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
15653 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
15654 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15655 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15656 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
15657 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
15658 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15659 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15660 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15661 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15662
15663 ;;
15664 esac
15665 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15666 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15667 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15668 $as_echo_n "(cached) " >&6
15669 else
15670 ac_cv_header_selinux_selinux_h=$ac_header_preproc
15671 fi
15672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15673 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15674
15675 fi
15676 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
15677
15678 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15679 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15680 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15681 $as_echo_n "(cached) " >&6
15682 else
15683 ac_check_lib_save_LIBS=$LIBS
15684 LIBS="-lselinux $LIBS"
15685 cat >conftest.$ac_ext <<_ACEOF
15686 /* confdefs.h. */
15687 _ACEOF
15688 cat confdefs.h >>conftest.$ac_ext
15689 cat >>conftest.$ac_ext <<_ACEOF
15690 /* end confdefs.h. */
15691
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15695 #ifdef __cplusplus
15696 extern "C"
15697 #endif
15698 char is_selinux_enabled ();
15699 int
15700 main ()
15701 {
15702 return is_selinux_enabled ();
15703 ;
15704 return 0;
15705 }
15706 _ACEOF
15707 rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712 esac
15713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15714 $as_echo "$ac_try_echo") >&5
15715 (eval "$ac_link") 2>conftest.er1
15716 ac_status=$?
15717 grep -v '^ *+' conftest.er1 >conftest.err
15718 rm -f conftest.er1
15719 cat conftest.err >&5
15720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext && {
15725 test "$cross_compiling" = yes ||
15726 $as_test_x conftest$ac_exeext
15727 }; then
15728 ac_cv_lib_selinux_is_selinux_enabled=yes
15729 else
15730 $as_echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733 ac_cv_lib_selinux_is_selinux_enabled=no
15734 fi
15735
15736 rm -rf conftest.dSYM
15737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 conftest$ac_exeext conftest.$ac_ext
15739 LIBS=$ac_check_lib_save_LIBS
15740 fi
15741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15742 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15743 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15744
15745 LIBSELINUX="-lselinux"
15746
15747
15748 cat >>confdefs.h <<\_ACEOF
15749 #define HAVE_LIBSELINUX 1
15750 _ACEOF
15751
15752
15753 else
15754
15755 if test "x$with_selinux" != xcheck; then
15756 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15758 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15759 See \`config.log' for more details." >&5
15760 $as_echo "$as_me: error: --with-selinux given but unavailable
15761 See \`config.log' for more details." >&2;}
15762 { (exit 1); exit 1; }; }; }
15763
15764 fi
15765
15766
15767 fi
15768
15769
15770 else
15771
15772 if test "x$with_selinux" != xcheck; then
15773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15775 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15776 See \`config.log' for more details." >&5
15777 $as_echo "$as_me: error: --with-selinux given but unavailable
15778 See \`config.log' for more details." >&2;}
15779 { (exit 1); exit 1; }; }; }
15780
15781 fi
15782
15783
15784 fi
15785
15786
15787
15788 else
15789
15790 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
15791 $as_echo_n "checking for selinux support... " >&6; }
15792 { $as_echo "$as_me:$LINENO: result: no" >&5
15793 $as_echo "no" >&6; }
15794
15795 fi
15796
15797
15798
15799 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
15800 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
15801
15802 saved_flags="$CFLAGS"
15803 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15804
15805 if test "$cross_compiling" = yes; then
15806 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15808 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15809 See \`config.log' for more details." >&5
15810 $as_echo "$as_me: error: cannot run test program while cross compiling
15811 See \`config.log' for more details." >&2;}
15812 { (exit 1); exit 1; }; }; }
15813 else
15814 cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h. */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820
15821 int
15822 main ()
15823 {
15824
15825 ;
15826 return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15834 esac
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837 (eval "$ac_link") 2>&5
15838 ac_status=$?
15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15841 { (case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15844 esac
15845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15846 $as_echo "$ac_try_echo") >&5
15847 (eval "$ac_try") 2>&5
15848 ac_status=$?
15849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851
15852 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15853 { $as_echo "$as_me:$LINENO: result: yes" >&5
15854 $as_echo "yes" >&6; }
15855
15856 else
15857 $as_echo "$as_me: program exited with status $ac_status" >&5
15858 $as_echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 ( exit $ac_status )
15862
15863 FRAME_LARGER_THAN=
15864 { $as_echo "$as_me:$LINENO: result: no" >&5
15865 $as_echo "no" >&6; }
15866
15867 fi
15868 rm -rf conftest.dSYM
15869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15870 fi
15871
15872
15873
15874 CFLAGS="$saved_flags"
15875
15876
15877
15878
15879 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15880 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
15881
15882 saved_CFLAGS="$CFLAGS"
15883 CFLAGS="-fstack-check"
15884 saved_LDFLAGS="$LDFLAGS"
15885 LDFLAGS="-lpthread"
15886
15887 if test "$cross_compiling" = yes; then
15888 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15890 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15891 See \`config.log' for more details." >&5
15892 $as_echo "$as_me: error: cannot run test program while cross compiling
15893 See \`config.log' for more details." >&2;}
15894 { (exit 1); exit 1; }; }; }
15895 else
15896 cat >conftest.$ac_ext <<_ACEOF
15897 /* confdefs.h. */
15898 _ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15902
15903 #include <pthread.h>
15904 #include <sys/resource.h>
15905 #include <unistd.h>
15906 #include <bits/local_lim.h>
15907
15908 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15909 #define STACK_SIZE 8192
15910 #define BUFSIZE 4096
15911
15912 void * func(void *arg)
15913 {
15914 char buf[BUFSIZE];
15915 }
15916
15917 int
15918 main ()
15919 {
15920
15921 pthread_t tid;
15922 pthread_attr_t attr;
15923 struct rlimit l;
15924
15925 l.rlim_cur = 0;
15926 l.rlim_max = 0;
15927 setrlimit(RLIMIT_CORE, &l);
15928 pthread_attr_init(&attr);
15929 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
15930 pthread_attr_setguardsize(&attr, PAGESIZE);
15931 pthread_create(&tid, &attr, func, NULL);
15932 pthread_join(tid, NULL);
15933
15934 ;
15935 return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest$ac_exeext
15939 if { (ac_try="$ac_link"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946 (eval "$ac_link") 2>&5
15947 ac_status=$?
15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953 esac
15954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15955 $as_echo "$ac_try_echo") >&5
15956 (eval "$ac_try") 2>&5
15957 ac_status=$?
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960
15961 { $as_echo "$as_me:$LINENO: result: no" >&5
15962 $as_echo "no" >&6; }
15963
15964 else
15965 $as_echo "$as_me: program exited with status $ac_status" >&5
15966 $as_echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ( exit $ac_status )
15970
15971
15972 cat >>confdefs.h <<\_ACEOF
15973 #define NPTL_GUARD_WITHIN_STACK 1
15974 _ACEOF
15975
15976 { $as_echo "$as_me:$LINENO: result: yes" >&5
15977 $as_echo "yes" >&6; }
15978
15979 fi
15980 rm -rf conftest.dSYM
15981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15982 fi
15983
15984
15985 CFLAGS="$saved_CFLAGS"
15986 LDFLAGS="$saved_LDFLAGS"
15987
15988 ;;
15989 all)
15990
15991
15992 # Check whether --with-linux was given.
15993 if test "${with_linux+set}" = set; then
15994 withval=$with_linux; kernelsrc="$withval"
15995 fi
15996
15997
15998
15999 # Check whether --with-linux-obj was given.
16000 if test "${with_linux_obj+set}" = set; then
16001 withval=$with_linux_obj; kernelbuild="$withval"
16002 fi
16003
16004
16005 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16006 $as_echo_n "checking kernel source directory... " >&6; }
16007 if test -z "$kernelsrc"; then
16008 if test -e "/lib/modules/$(uname -r)/source"; then
16009 headersdir="/lib/modules/$(uname -r)/source"
16010 sourcelink=$(readlink -f "$headersdir")
16011 elif test -e "/lib/modules/$(uname -r)/build"; then
16012 headersdir="/lib/modules/$(uname -r)/build"
16013 sourcelink=$(readlink -f "$headersdir")
16014 else
16015 sourcelink=$(ls -1d /usr/src/kernels/* \
16016 /usr/src/linux-* \
16017 2>/dev/null | grep -v obj | tail -1)
16018 fi
16019
16020 if test -n "$sourcelink" && test -e ${sourcelink}; then
16021 kernelsrc=`readlink -f ${sourcelink}`
16022 else
16023 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16024 $as_echo "Not found" >&6; }
16025 { { $as_echo "$as_me:$LINENO: error:
16026 *** Please make sure the kernel devel package for your distribution
16027 *** is installed then try again. If that fails you can specify the
16028 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16029 $as_echo "$as_me: error:
16030 *** Please make sure the kernel devel package for your distribution
16031 *** is installed then try again. If that fails you can specify the
16032 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16033 { (exit 1); exit 1; }; }
16034 fi
16035 else
16036 if test "$kernelsrc" = "NONE"; then
16037 kernsrcver=NONE
16038 fi
16039 fi
16040
16041 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16042 $as_echo "$kernelsrc" >&6; }
16043 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16044 $as_echo_n "checking kernel build directory... " >&6; }
16045 if test -z "$kernelbuild"; then
16046 if test -e "/lib/modules/$(uname -r)/build"; then
16047 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16048 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16049 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16050 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16051 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16052 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16053 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
16054 else
16055 kernelbuild=${kernelsrc}
16056 fi
16057 fi
16058 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16059 $as_echo "$kernelbuild" >&6; }
16060
16061 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16062 $as_echo_n "checking kernel source version... " >&6; }
16063 utsrelease1=$kernelbuild/include/linux/version.h
16064 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16065 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16066 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16067 utsrelease=linux/version.h
16068 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16069 utsrelease=linux/utsrelease.h
16070 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16071 utsrelease=generated/utsrelease.h
16072 fi
16073
16074 if test "$utsrelease"; then
16075 kernsrcver=`(echo "#include <$utsrelease>";
16076 echo "kernsrcver=UTS_RELEASE") |
16077 cpp -I $kernelbuild/include |
16078 grep "^kernsrcver=" | cut -d \" -f 2`
16079
16080 if test -z "$kernsrcver"; then
16081 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16082 $as_echo "Not found" >&6; }
16083 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16084 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16085 { (exit 1); exit 1; }; }
16086 fi
16087 else
16088 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16089 $as_echo "Not found" >&6; }
16090 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16091 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16092 { (exit 1); exit 1; }; }
16093 fi
16094
16095 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16096 $as_echo "$kernsrcver" >&6; }
16097
16098 LINUX=${kernelsrc}
16099 LINUX_OBJ=${kernelbuild}
16100 LINUX_VERSION=${kernsrcver}
16101
16102
16103
16104
16105
16106
16107 modpost=$LINUX/scripts/Makefile.modpost
16108 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16109 $as_echo_n "checking kernel file name for module symbols... " >&6; }
16110 if test -f "$modpost"; then
16111 if grep -q Modules.symvers $modpost; then
16112 LINUX_SYMBOLS=Modules.symvers
16113 else
16114 LINUX_SYMBOLS=Module.symvers
16115 fi
16116
16117 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16118 { { $as_echo "$as_me:$LINENO: error:
16119 *** Please make sure the kernel devel package for your distribution
16120 *** is installed. If your building with a custom kernel make sure the
16121 *** kernel is configured, built, and the '--with-linux=PATH' configure
16122 *** option refers to the location of the kernel source." >&5
16123 $as_echo "$as_me: error:
16124 *** Please make sure the kernel devel package for your distribution
16125 *** is installed. If your building with a custom kernel make sure the
16126 *** kernel is configured, built, and the '--with-linux=PATH' configure
16127 *** option refers to the location of the kernel source." >&2;}
16128 { (exit 1); exit 1; }; }
16129 fi
16130 else
16131 LINUX_SYMBOLS=NONE
16132 fi
16133 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16134 $as_echo "$LINUX_SYMBOLS" >&6; }
16135
16136
16137
16138
16139
16140 # Check whether --with-spl was given.
16141 if test "${with_spl+set}" = set; then
16142 withval=$with_spl; splsrc="$withval"
16143 fi
16144
16145
16146
16147 # Check whether --with-spl-obj was given.
16148 if test "${with_spl_obj+set}" = set; then
16149 withval=$with_spl_obj; splbuild="$withval"
16150 fi
16151
16152
16153
16154 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16155 $as_echo_n "checking spl source directory... " >&6; }
16156 if test -z "$splsrc"; then
16157 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16158 2>/dev/null | tail -1`
16159
16160 if test -z "$sourcelink" || test ! -e $sourcelink; then
16161 sourcelink=../spl
16162 fi
16163
16164 if test -e $sourcelink; then
16165 splsrc=`readlink -f ${sourcelink}`
16166 else
16167 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16168 $as_echo "Not found" >&6; }
16169 { { $as_echo "$as_me:$LINENO: error:
16170 *** Please make sure the spl devel package for your distribution
16171 *** is installed then try again. If that fails you can specify the
16172 *** location of the spl source with the '--with-spl=PATH' option." >&5
16173 $as_echo "$as_me: error:
16174 *** Please make sure the spl devel package for your distribution
16175 *** is installed then try again. If that fails you can specify the
16176 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16177 { (exit 1); exit 1; }; }
16178 fi
16179 else
16180 if test "$splsrc" = "NONE"; then
16181 splbuild=NONE
16182 splsrcver=NONE
16183 fi
16184 fi
16185
16186 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16187 $as_echo "$splsrc" >&6; }
16188 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16189 $as_echo_n "checking spl build directory... " >&6; }
16190 if test -z "$splbuild"; then
16191 splbuild=${splsrc}
16192 fi
16193 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16194 $as_echo "$splbuild" >&6; }
16195
16196 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16197 $as_echo_n "checking spl source version... " >&6; }
16198 if test -r $splbuild/spl_config.h &&
16199 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16200
16201 splsrcver=`(echo "#include <spl_config.h>";
16202 echo "splsrcver=SPL_META_VERSION") |
16203 cpp -I $splbuild |
16204 grep "^splsrcver=" | cut -d \" -f 2`
16205 fi
16206
16207 if test -z "$splsrcver"; then
16208 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16209 $as_echo "Not found" >&6; }
16210 { { $as_echo "$as_me:$LINENO: error:
16211 *** Cannot determine the version of the spl source.
16212 *** Please prepare the spl source before running this script" >&5
16213 $as_echo "$as_me: error:
16214 *** Cannot determine the version of the spl source.
16215 *** Please prepare the spl source before running this script" >&2;}
16216 { (exit 1); exit 1; }; }
16217 fi
16218
16219 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16220 $as_echo "$splsrcver" >&6; }
16221
16222 SPL=${splsrc}
16223 SPL_OBJ=${splbuild}
16224 SPL_VERSION=${splsrcver}
16225
16226
16227
16228
16229
16230
16231 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16232 $as_echo_n "checking spl file name for module symbols... " >&6; }
16233 if test -r $SPL_OBJ/Module.symvers; then
16234 SPL_SYMBOLS=Module.symvers
16235 elif test -r $SPL_OBJ/Modules.symvers; then
16236 SPL_SYMBOLS=Modules.symvers
16237 elif test -r $SPL_OBJ/module/Module.symvers; then
16238 SPL_SYMBOLS=Module.symvers
16239 elif test -r $SPL_OBJ/module/Modules.symvers; then
16240 SPL_SYMBOLS=Modules.symvers
16241 else
16242 SPL_SYMBOLS=$LINUX_SYMBOLS
16243 fi
16244
16245 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16246 $as_echo "$SPL_SYMBOLS" >&6; }
16247
16248
16249
16250
16251
16252 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16253 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16254
16255
16256 cat confdefs.h - <<_ACEOF >conftest.c
16257 /* confdefs.h. */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h. */
16262
16263
16264 #ifndef AUTOCONF_INCLUDED
16265 #include <linux/config.h>
16266 #endif
16267
16268 int
16269 main (void)
16270 {
16271
16272 #ifndef CONFIG_PREEMPT
16273 #error CONFIG_PREEMPT not #defined
16274 #endif
16275
16276 ;
16277 return 0;
16278 }
16279
16280 _ACEOF
16281
16282
16283 rm -Rf build && mkdir -p build
16284 echo "obj-m := conftest.o" >build/Makefile
16285 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296
16297 { $as_echo "$as_me:$LINENO: result: yes" >&5
16298 $as_echo "yes" >&6; }
16299 { { $as_echo "$as_me:$LINENO: error:
16300 *** Kernel built with CONFIG_PREEMPT which is not supported.
16301 ** You must rebuild your kernel without this option." >&5
16302 $as_echo "$as_me: error:
16303 *** Kernel built with CONFIG_PREEMPT which is not supported.
16304 ** You must rebuild your kernel without this option." >&2;}
16305 { (exit 1); exit 1; }; }
16306
16307 else
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311 { $as_echo "$as_me:$LINENO: result: no" >&5
16312 $as_echo "no" >&6; }
16313
16314
16315
16316
16317 fi
16318
16319 rm -Rf build
16320
16321
16322
16323
16324 if test "$ZFS_META_LICENSE" = CDDL; then
16325 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16326 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16327
16328
16329 cat confdefs.h - <<_ACEOF >conftest.c
16330 /* confdefs.h. */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h. */
16335
16336
16337 #ifndef AUTOCONF_INCLUDED
16338 #include <linux/config.h>
16339 #endif
16340
16341 int
16342 main (void)
16343 {
16344
16345 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16346 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16347 #endif
16348
16349 ;
16350 return 0;
16351 }
16352
16353 _ACEOF
16354
16355
16356 rm -Rf build && mkdir -p build
16357 echo "obj-m := conftest.o" >build/Makefile
16358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369
16370 { $as_echo "$as_me:$LINENO: result: yes" >&5
16371 $as_echo "yes" >&6; }
16372 { { $as_echo "$as_me:$LINENO: error:
16373 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16374 *** incompatible with the CDDL license. You must rebuild
16375 *** your kernel without this option." >&5
16376 $as_echo "$as_me: error:
16377 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16378 *** incompatible with the CDDL license. You must rebuild
16379 *** your kernel without this option." >&2;}
16380 { (exit 1); exit 1; }; }
16381
16382 else
16383 $as_echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 { $as_echo "$as_me:$LINENO: result: no" >&5
16387 $as_echo "no" >&6; }
16388
16389
16390
16391
16392 fi
16393
16394 rm -Rf build
16395
16396
16397
16398 fi
16399
16400 if test "$ZFS_META_LICENSE" = GPL; then
16401
16402 cat >>confdefs.h <<\_ACEOF
16403 #define HAVE_GPL_ONLY_SYMBOLS 1
16404 _ACEOF
16405
16406 fi
16407
16408
16409 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16410 $as_echo_n "checking block device operation prototypes... " >&6; }
16411
16412
16413 cat confdefs.h - <<_ACEOF >conftest.c
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419
16420
16421 #include <linux/blkdev.h>
16422
16423 int
16424 main (void)
16425 {
16426
16427 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16428 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16429 int (*blk_ioctl) (struct block_device *, fmode_t,
16430 unsigned, unsigned long) = NULL;
16431 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16432 unsigned, unsigned long) = NULL;
16433 struct block_device_operations blk_ops = {
16434 .open = blk_open,
16435 .release = blk_release,
16436 .ioctl = blk_ioctl,
16437 .compat_ioctl = blk_compat_ioctl,
16438 };
16439
16440 blk_ops.open(NULL, 0);
16441 blk_ops.release(NULL, 0);
16442 blk_ops.ioctl(NULL, 0, 0, 0);
16443 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16444
16445 ;
16446 return 0;
16447 }
16448
16449 _ACEOF
16450
16451
16452 rm -Rf build && mkdir -p build
16453 echo "obj-m := conftest.o" >build/Makefile
16454 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456 (eval $ac_try) 2>&5
16457 ac_status=$?
16458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16462 ac_status=$?
16463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465
16466 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16467 $as_echo "struct block_device" >&6; }
16468
16469 cat >>confdefs.h <<\_ACEOF
16470 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16471 _ACEOF
16472
16473
16474 else
16475 $as_echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16479 $as_echo "struct inode" >&6; }
16480
16481
16482
16483 fi
16484
16485 rm -Rf build
16486
16487
16488
16489 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16490 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16491
16492
16493 cat confdefs.h - <<_ACEOF >conftest.c
16494 /* confdefs.h. */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16499
16500
16501 #include <linux/types.h>
16502
16503 int
16504 main (void)
16505 {
16506
16507 fmode_t *ptr __attribute__ ((unused));
16508
16509 ;
16510 return 0;
16511 }
16512
16513 _ACEOF
16514
16515
16516 rm -Rf build && mkdir -p build
16517 echo "obj-m := conftest.o" >build/Makefile
16518 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16525 (eval $ac_try) 2>&5
16526 ac_status=$?
16527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; }; then
16529
16530 { $as_echo "$as_me:$LINENO: result: yes" >&5
16531 $as_echo "yes" >&6; }
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_FMODE_T 1
16535 _ACEOF
16536
16537
16538 else
16539 $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 { $as_echo "$as_me:$LINENO: result: no" >&5
16543 $as_echo "no" >&6; }
16544
16545
16546
16547 fi
16548
16549 rm -Rf build
16550
16551
16552
16553
16554 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16555 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16556
16557
16558 cat confdefs.h - <<_ACEOF >conftest.c
16559 /* confdefs.h. */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h. */
16564
16565
16566 #include <linux/kobject.h>
16567
16568 int
16569 main (void)
16570 {
16571
16572 int val __attribute__ ((unused));
16573 val = KOBJ_NAME_LEN;
16574
16575 ;
16576 return 0;
16577 }
16578
16579 _ACEOF
16580
16581
16582 rm -Rf build && mkdir -p build
16583 echo "obj-m := conftest.o" >build/Makefile
16584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16586 (eval $ac_try) 2>&5
16587 ac_status=$?
16588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595
16596 { $as_echo "$as_me:$LINENO: result: yes" >&5
16597 $as_echo "yes" >&6; }
16598
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_KOBJ_NAME_LEN 1
16601 _ACEOF
16602
16603
16604 else
16605 $as_echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 { $as_echo "$as_me:$LINENO: result: no" >&5
16609 $as_echo "no" >&6; }
16610
16611
16612
16613 fi
16614
16615 rm -Rf build
16616
16617
16618
16619
16620 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16621 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16622 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16623 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16624 rc=$?
16625 if test $rc -ne 0; then
16626 export=0
16627 for file in fs/block_dev.c; do
16628 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16629 rc=$?
16630 if test $rc -eq 0; then
16631 export=1
16632 break;
16633 fi
16634 done
16635 if test $export -eq 0; then
16636 { $as_echo "$as_me:$LINENO: result: no" >&5
16637 $as_echo "no" >&6; }
16638
16639 else
16640 { $as_echo "$as_me:$LINENO: result: yes" >&5
16641 $as_echo "yes" >&6; }
16642
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_BLKDEV_GET_BY_PATH 1
16645 _ACEOF
16646
16647 fi
16648 else
16649 { $as_echo "$as_me:$LINENO: result: yes" >&5
16650 $as_echo "yes" >&6; }
16651
16652 cat >>confdefs.h <<\_ACEOF
16653 #define HAVE_BLKDEV_GET_BY_PATH 1
16654 _ACEOF
16655
16656 fi
16657
16658
16659
16660 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16661 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16662 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16663 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16664 rc=$?
16665 if test $rc -ne 0; then
16666 export=0
16667 for file in fs/block_dev.c; do
16668 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16669 rc=$?
16670 if test $rc -eq 0; then
16671 export=1
16672 break;
16673 fi
16674 done
16675 if test $export -eq 0; then
16676 { $as_echo "$as_me:$LINENO: result: no" >&5
16677 $as_echo "no" >&6; }
16678
16679 else
16680 { $as_echo "$as_me:$LINENO: result: yes" >&5
16681 $as_echo "yes" >&6; }
16682
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16685 _ACEOF
16686
16687 fi
16688 else
16689 { $as_echo "$as_me:$LINENO: result: yes" >&5
16690 $as_echo "yes" >&6; }
16691
16692 cat >>confdefs.h <<\_ACEOF
16693 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16694 _ACEOF
16695
16696 fi
16697
16698
16699
16700 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16701 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16702
16703
16704 cat confdefs.h - <<_ACEOF >conftest.c
16705 /* confdefs.h. */
16706 _ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710
16711
16712 #include <linux/buffer_head.h>
16713
16714 int
16715 main (void)
16716 {
16717
16718 struct block_device *bdev = NULL;
16719 invalidate_bdev(bdev);
16720
16721 ;
16722 return 0;
16723 }
16724
16725 _ACEOF
16726
16727
16728 rm -Rf build && mkdir -p build
16729 echo "obj-m := conftest.o" >build/Makefile
16730 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741
16742 { $as_echo "$as_me:$LINENO: result: yes" >&5
16743 $as_echo "yes" >&6; }
16744
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_1ARG_INVALIDATE_BDEV 1
16747 _ACEOF
16748
16749
16750 else
16751 $as_echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 { $as_echo "$as_me:$LINENO: result: no" >&5
16755 $as_echo "no" >&6; }
16756
16757
16758
16759 fi
16760
16761 rm -Rf build
16762
16763
16764
16765
16766 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16767 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16768
16769
16770 cat confdefs.h - <<_ACEOF >conftest.c
16771 /* confdefs.h. */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776
16777
16778 #include <linux/blkdev.h>
16779
16780 int
16781 main (void)
16782 {
16783
16784 struct block_device *bdev = NULL;
16785 bdev_logical_block_size(bdev);
16786
16787 ;
16788 return 0;
16789 }
16790
16791 _ACEOF
16792
16793
16794 rm -Rf build && mkdir -p build
16795 echo "obj-m := conftest.o" >build/Makefile
16796 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16798 (eval $ac_try) 2>&5
16799 ac_status=$?
16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807
16808 { $as_echo "$as_me:$LINENO: result: yes" >&5
16809 $as_echo "yes" >&6; }
16810
16811 cat >>confdefs.h <<\_ACEOF
16812 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16813 _ACEOF
16814
16815
16816 else
16817 $as_echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 { $as_echo "$as_me:$LINENO: result: no" >&5
16821 $as_echo "no" >&6; }
16822
16823
16824
16825 fi
16826
16827 rm -Rf build
16828
16829
16830
16831
16832 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16833 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16834 EXTRA_KCFLAGS="-Werror"
16835
16836
16837 cat confdefs.h - <<_ACEOF >conftest.c
16838 /* confdefs.h. */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843
16844
16845 #include <linux/bio.h>
16846
16847 int
16848 main (void)
16849 {
16850
16851 struct bio bio;
16852 (void)bio_empty_barrier(&bio);
16853
16854 ;
16855 return 0;
16856 }
16857
16858 _ACEOF
16859
16860
16861 rm -Rf build && mkdir -p build
16862 echo "obj-m := conftest.o" >build/Makefile
16863 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874
16875 { $as_echo "$as_me:$LINENO: result: yes" >&5
16876 $as_echo "yes" >&6; }
16877
16878 cat >>confdefs.h <<\_ACEOF
16879 #define HAVE_BIO_EMPTY_BARRIER 1
16880 _ACEOF
16881
16882
16883 else
16884 $as_echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887 { $as_echo "$as_me:$LINENO: result: no" >&5
16888 $as_echo "no" >&6; }
16889
16890
16891
16892 fi
16893
16894 rm -Rf build
16895
16896
16897
16898
16899 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16900 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16901
16902
16903 cat confdefs.h - <<_ACEOF >conftest.c
16904 /* confdefs.h. */
16905 _ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909
16910
16911 #include <linux/bio.h>
16912
16913 int
16914 main (void)
16915 {
16916
16917 int flags __attribute__ ((unused));
16918 flags = (1 << BIO_RW_FAILFAST);
16919
16920 ;
16921 return 0;
16922 }
16923
16924 _ACEOF
16925
16926
16927 rm -Rf build && mkdir -p build
16928 echo "obj-m := conftest.o" >build/Makefile
16929 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940
16941 { $as_echo "$as_me:$LINENO: result: yes" >&5
16942 $as_echo "yes" >&6; }
16943
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE_BIO_RW_FAILFAST 1
16946 _ACEOF
16947
16948
16949 else
16950 $as_echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16952
16953 { $as_echo "$as_me:$LINENO: result: no" >&5
16954 $as_echo "no" >&6; }
16955
16956
16957
16958 fi
16959
16960 rm -Rf build
16961
16962
16963
16964
16965 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16966 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16967
16968
16969 cat confdefs.h - <<_ACEOF >conftest.c
16970 /* confdefs.h. */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975
16976
16977 #include <linux/bio.h>
16978
16979 int
16980 main (void)
16981 {
16982
16983 int flags __attribute__ ((unused));
16984 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16985 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16986 (1 << BIO_RW_FAILFAST_DRIVER));
16987
16988 ;
16989 return 0;
16990 }
16991
16992 _ACEOF
16993
16994
16995 rm -Rf build && mkdir -p build
16996 echo "obj-m := conftest.o" >build/Makefile
16997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008
17009 { $as_echo "$as_me:$LINENO: result: yes" >&5
17010 $as_echo "yes" >&6; }
17011
17012 cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_BIO_RW_FAILFAST_DTD 1
17014 _ACEOF
17015
17016
17017 else
17018 $as_echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 { $as_echo "$as_me:$LINENO: result: no" >&5
17022 $as_echo "no" >&6; }
17023
17024
17025
17026 fi
17027
17028 rm -Rf build
17029
17030
17031
17032
17033 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17034 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17035
17036
17037 cat confdefs.h - <<_ACEOF >conftest.c
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043
17044
17045 #include <linux/bio.h>
17046
17047 int
17048 main (void)
17049 {
17050
17051 int flags __attribute__ ((unused));
17052 flags = REQ_FAILFAST_MASK;
17053
17054 ;
17055 return 0;
17056 }
17057
17058 _ACEOF
17059
17060
17061 rm -Rf build && mkdir -p build
17062 echo "obj-m := conftest.o" >build/Makefile
17063 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074
17075 { $as_echo "$as_me:$LINENO: result: yes" >&5
17076 $as_echo "yes" >&6; }
17077
17078 cat >>confdefs.h <<\_ACEOF
17079 #define HAVE_BIO_REQ_FAILFAST_MASK 1
17080 _ACEOF
17081
17082
17083 else
17084 $as_echo "$as_me: failed program was:" >&5
17085 sed 's/^/| /' conftest.$ac_ext >&5
17086
17087 { $as_echo "$as_me:$LINENO: result: no" >&5
17088 $as_echo "no" >&6; }
17089
17090
17091
17092 fi
17093
17094 rm -Rf build
17095
17096
17097
17098
17099 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17100 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17101 tmp_flags="$EXTRA_KCFLAGS"
17102 EXTRA_KCFLAGS="-Werror"
17103
17104
17105 cat confdefs.h - <<_ACEOF >conftest.c
17106 /* confdefs.h. */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111
17112
17113 #include <linux/bio.h>
17114
17115 int
17116 main (void)
17117 {
17118
17119 void (*wanted_end_io)(struct bio *, int) = NULL;
17120 bio_end_io_t *local_end_io __attribute__ ((unused));
17121
17122 local_end_io = wanted_end_io;
17123
17124 ;
17125 return 0;
17126 }
17127
17128 _ACEOF
17129
17130
17131 rm -Rf build && mkdir -p build
17132 echo "obj-m := conftest.o" >build/Makefile
17133 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135 (eval $ac_try) 2>&5
17136 ac_status=$?
17137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144
17145 { $as_echo "$as_me:$LINENO: result: yes" >&5
17146 $as_echo "yes" >&6; }
17147
17148 cat >>confdefs.h <<\_ACEOF
17149 #define HAVE_2ARGS_BIO_END_IO_T 1
17150 _ACEOF
17151
17152
17153 else
17154 $as_echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 { $as_echo "$as_me:$LINENO: result: no" >&5
17158 $as_echo "no" >&6; }
17159
17160
17161
17162 fi
17163
17164 rm -Rf build
17165
17166
17167 EXTRA_KCFLAGS="$tmp_flags"
17168
17169
17170 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17171 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17172
17173
17174 cat confdefs.h - <<_ACEOF >conftest.c
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180
17181
17182 #include <linux/bio.h>
17183
17184 int
17185 main (void)
17186 {
17187
17188 int flags __attribute__ ((unused));
17189 flags = BIO_RW_SYNC;
17190
17191 ;
17192 return 0;
17193 }
17194
17195 _ACEOF
17196
17197
17198 rm -Rf build && mkdir -p build
17199 echo "obj-m := conftest.o" >build/Makefile
17200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17203 ac_status=$?
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; }; then
17211
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213 $as_echo "yes" >&6; }
17214
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_BIO_RW_SYNC 1
17217 _ACEOF
17218
17219
17220 else
17221 $as_echo "$as_me: failed program was:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17223
17224 { $as_echo "$as_me:$LINENO: result: no" >&5
17225 $as_echo "no" >&6; }
17226
17227
17228
17229 fi
17230
17231 rm -Rf build
17232
17233
17234
17235
17236 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17237 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17238
17239
17240 cat confdefs.h - <<_ACEOF >conftest.c
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246
17247
17248 #include <linux/bio.h>
17249
17250 int
17251 main (void)
17252 {
17253
17254 int flags __attribute__ ((unused));
17255 flags = BIO_RW_SYNCIO;
17256
17257 ;
17258 return 0;
17259 }
17260
17261 _ACEOF
17262
17263
17264 rm -Rf build && mkdir -p build
17265 echo "obj-m := conftest.o" >build/Makefile
17266 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17268 (eval $ac_try) 2>&5
17269 ac_status=$?
17270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277
17278 { $as_echo "$as_me:$LINENO: result: yes" >&5
17279 $as_echo "yes" >&6; }
17280
17281 cat >>confdefs.h <<\_ACEOF
17282 #define HAVE_BIO_RW_SYNCIO 1
17283 _ACEOF
17284
17285
17286 else
17287 $as_echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 { $as_echo "$as_me:$LINENO: result: no" >&5
17291 $as_echo "no" >&6; }
17292
17293
17294
17295 fi
17296
17297 rm -Rf build
17298
17299
17300
17301
17302 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17303 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17304
17305
17306 cat confdefs.h - <<_ACEOF >conftest.c
17307 /* confdefs.h. */
17308 _ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312
17313
17314 #include <linux/bio.h>
17315
17316 int
17317 main (void)
17318 {
17319
17320 int flags __attribute__ ((unused));
17321 flags = REQ_SYNC;
17322
17323 ;
17324 return 0;
17325 }
17326
17327 _ACEOF
17328
17329
17330 rm -Rf build && mkdir -p build
17331 echo "obj-m := conftest.o" >build/Makefile
17332 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339 (eval $ac_try) 2>&5
17340 ac_status=$?
17341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); }; }; then
17343
17344 { $as_echo "$as_me:$LINENO: result: yes" >&5
17345 $as_echo "yes" >&6; }
17346
17347 cat >>confdefs.h <<\_ACEOF
17348 #define HAVE_REQ_SYNC 1
17349 _ACEOF
17350
17351
17352 else
17353 $as_echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356 { $as_echo "$as_me:$LINENO: result: no" >&5
17357 $as_echo "no" >&6; }
17358
17359
17360
17361 fi
17362
17363 rm -Rf build
17364
17365
17366
17367
17368 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17369 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17370
17371
17372 cat confdefs.h - <<_ACEOF >conftest.c
17373 /* confdefs.h. */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h. */
17378
17379
17380 #include <linux/blkdev.h>
17381
17382 int
17383 main (void)
17384 {
17385
17386 struct request *req = NULL;
17387 (void) blk_end_request(req, 0, 0);
17388
17389 ;
17390 return 0;
17391 }
17392
17393 _ACEOF
17394
17395
17396 rm -Rf build && mkdir -p build
17397 echo "obj-m := conftest.o" >build/Makefile
17398 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409
17410 { $as_echo "$as_me:$LINENO: result: yes" >&5
17411 $as_echo "yes" >&6; }
17412
17413 cat >>confdefs.h <<\_ACEOF
17414 #define HAVE_BLK_END_REQUEST 1
17415 _ACEOF
17416
17417
17418 else
17419 $as_echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 { $as_echo "$as_me:$LINENO: result: no" >&5
17423 $as_echo "no" >&6; }
17424
17425
17426
17427 fi
17428
17429 rm -Rf build
17430
17431
17432
17433 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17434 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17435
17436
17437 cat confdefs.h - <<_ACEOF >conftest.c
17438 /* confdefs.h. */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17443
17444
17445 #include <linux/module.h>
17446 #include <linux/blkdev.h>
17447
17448 MODULE_LICENSE("CDDL");
17449
17450 int
17451 main (void)
17452 {
17453
17454 struct request *req = NULL;
17455 (void) blk_end_request(req, 0, 0);
17456
17457 ;
17458 return 0;
17459 }
17460
17461 _ACEOF
17462
17463
17464 rm -Rf build && mkdir -p build
17465 echo "obj-m := conftest.o" >build/Makefile
17466 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17474 ac_status=$?
17475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
17477
17478 { $as_echo "$as_me:$LINENO: result: no" >&5
17479 $as_echo "no" >&6; }
17480
17481 else
17482 $as_echo "$as_me: failed program was:" >&5
17483 sed 's/^/| /' conftest.$ac_ext >&5
17484
17485 { $as_echo "$as_me:$LINENO: result: yes" >&5
17486 $as_echo "yes" >&6; }
17487
17488 cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17490 _ACEOF
17491
17492
17493
17494
17495 fi
17496
17497 rm -Rf build
17498
17499
17500
17501
17502 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17503 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17504
17505
17506 cat confdefs.h - <<_ACEOF >conftest.c
17507 /* confdefs.h. */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512
17513
17514 #include <linux/blkdev.h>
17515
17516 int
17517 main (void)
17518 {
17519
17520 struct request_queue *q = NULL;
17521 (void) blk_fetch_request(q);
17522
17523 ;
17524 return 0;
17525 }
17526
17527 _ACEOF
17528
17529
17530 rm -Rf build && mkdir -p build
17531 echo "obj-m := conftest.o" >build/Makefile
17532 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17540 ac_status=$?
17541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
17543
17544 { $as_echo "$as_me:$LINENO: result: yes" >&5
17545 $as_echo "yes" >&6; }
17546
17547 cat >>confdefs.h <<\_ACEOF
17548 #define HAVE_BLK_FETCH_REQUEST 1
17549 _ACEOF
17550
17551
17552 else
17553 $as_echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17555
17556 { $as_echo "$as_me:$LINENO: result: no" >&5
17557 $as_echo "no" >&6; }
17558
17559
17560
17561 fi
17562
17563 rm -Rf build
17564
17565
17566
17567
17568 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17569 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17570
17571
17572 cat confdefs.h - <<_ACEOF >conftest.c
17573 /* confdefs.h. */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578
17579
17580 #include <linux/blkdev.h>
17581
17582 int
17583 main (void)
17584 {
17585
17586 struct request_queue *q = NULL;
17587 struct request *req = NULL;
17588 blk_requeue_request(q, req);
17589
17590 ;
17591 return 0;
17592 }
17593
17594 _ACEOF
17595
17596
17597 rm -Rf build && mkdir -p build
17598 echo "obj-m := conftest.o" >build/Makefile
17599 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; }; then
17610
17611 { $as_echo "$as_me:$LINENO: result: yes" >&5
17612 $as_echo "yes" >&6; }
17613
17614 cat >>confdefs.h <<\_ACEOF
17615 #define HAVE_BLK_REQUEUE_REQUEST 1
17616 _ACEOF
17617
17618
17619 else
17620 $as_echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623 { $as_echo "$as_me:$LINENO: result: no" >&5
17624 $as_echo "no" >&6; }
17625
17626
17627
17628 fi
17629
17630 rm -Rf build
17631
17632
17633
17634
17635 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17636 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17637
17638
17639 cat confdefs.h - <<_ACEOF >conftest.c
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645
17646
17647 #include <linux/blkdev.h>
17648
17649 int
17650 main (void)
17651 {
17652
17653 struct request *req = NULL;
17654 (void) blk_rq_bytes(req);
17655
17656 ;
17657 return 0;
17658 }
17659
17660 _ACEOF
17661
17662
17663 rm -Rf build && mkdir -p build
17664 echo "obj-m := conftest.o" >build/Makefile
17665 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; }; then
17676
17677 { $as_echo "$as_me:$LINENO: result: yes" >&5
17678 $as_echo "yes" >&6; }
17679
17680 cat >>confdefs.h <<\_ACEOF
17681 #define HAVE_BLK_RQ_BYTES 1
17682 _ACEOF
17683
17684
17685 else
17686 $as_echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 { $as_echo "$as_me:$LINENO: result: no" >&5
17690 $as_echo "no" >&6; }
17691
17692
17693
17694 fi
17695
17696 rm -Rf build
17697
17698
17699
17700 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17701 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17702
17703
17704 cat confdefs.h - <<_ACEOF >conftest.c
17705 /* confdefs.h. */
17706 _ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710
17711
17712 #include <linux/module.h>
17713 #include <linux/blkdev.h>
17714
17715 MODULE_LICENSE("CDDL");
17716
17717 int
17718 main (void)
17719 {
17720
17721 struct request *req = NULL;
17722 (void) blk_rq_bytes(req);
17723
17724 ;
17725 return 0;
17726 }
17727
17728 _ACEOF
17729
17730
17731 rm -Rf build && mkdir -p build
17732 echo "obj-m := conftest.o" >build/Makefile
17733 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17741 ac_status=$?
17742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744
17745 { $as_echo "$as_me:$LINENO: result: no" >&5
17746 $as_echo "no" >&6; }
17747
17748 else
17749 $as_echo "$as_me: failed program was:" >&5
17750 sed 's/^/| /' conftest.$ac_ext >&5
17751
17752 { $as_echo "$as_me:$LINENO: result: yes" >&5
17753 $as_echo "yes" >&6; }
17754
17755 cat >>confdefs.h <<\_ACEOF
17756 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17757 _ACEOF
17758
17759
17760
17761
17762 fi
17763
17764 rm -Rf build
17765
17766
17767
17768
17769 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17770 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17771
17772
17773 cat confdefs.h - <<_ACEOF >conftest.c
17774 /* confdefs.h. */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17779
17780
17781 #include <linux/blkdev.h>
17782
17783 int
17784 main (void)
17785 {
17786
17787 struct request *req = NULL;
17788 (void) blk_rq_pos(req);
17789
17790 ;
17791 return 0;
17792 }
17793
17794 _ACEOF
17795
17796
17797 rm -Rf build && mkdir -p build
17798 echo "obj-m := conftest.o" >build/Makefile
17799 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810
17811 { $as_echo "$as_me:$LINENO: result: yes" >&5
17812 $as_echo "yes" >&6; }
17813
17814 cat >>confdefs.h <<\_ACEOF
17815 #define HAVE_BLK_RQ_POS 1
17816 _ACEOF
17817
17818
17819 else
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823 { $as_echo "$as_me:$LINENO: result: no" >&5
17824 $as_echo "no" >&6; }
17825
17826
17827
17828 fi
17829
17830 rm -Rf build
17831
17832
17833
17834
17835 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17836 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17837
17838
17839 cat confdefs.h - <<_ACEOF >conftest.c
17840 /* confdefs.h. */
17841 _ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845
17846
17847 #include <linux/blkdev.h>
17848
17849 int
17850 main (void)
17851 {
17852
17853 struct request *req = NULL;
17854 (void) blk_rq_sectors(req);
17855
17856 ;
17857 return 0;
17858 }
17859
17860 _ACEOF
17861
17862
17863 rm -Rf build && mkdir -p build
17864 echo "obj-m := conftest.o" >build/Makefile
17865 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867 (eval $ac_try) 2>&5
17868 ac_status=$?
17869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876
17877 { $as_echo "$as_me:$LINENO: result: yes" >&5
17878 $as_echo "yes" >&6; }
17879
17880 cat >>confdefs.h <<\_ACEOF
17881 #define HAVE_BLK_RQ_SECTORS 1
17882 _ACEOF
17883
17884
17885 else
17886 $as_echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17888
17889 { $as_echo "$as_me:$LINENO: result: no" >&5
17890 $as_echo "no" >&6; }
17891
17892
17893
17894 fi
17895
17896 rm -Rf build
17897
17898
17899
17900
17901 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17902 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17903
17904
17905 cat confdefs.h - <<_ACEOF >conftest.c
17906 /* confdefs.h. */
17907 _ACEOF
17908 cat confdefs.h >>conftest.$ac_ext
17909 cat >>conftest.$ac_ext <<_ACEOF
17910 /* end confdefs.h. */
17911
17912
17913 #include <linux/blkdev.h>
17914
17915 int
17916 main (void)
17917 {
17918
17919 struct gendisk *disk = NULL;
17920 (void) get_disk_ro(disk);
17921
17922 ;
17923 return 0;
17924 }
17925
17926 _ACEOF
17927
17928
17929 rm -Rf build && mkdir -p build
17930 echo "obj-m := conftest.o" >build/Makefile
17931 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17934 ac_status=$?
17935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
17942
17943 { $as_echo "$as_me:$LINENO: result: yes" >&5
17944 $as_echo "yes" >&6; }
17945
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_GET_DISK_RO 1
17948 _ACEOF
17949
17950
17951 else
17952 $as_echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955 { $as_echo "$as_me:$LINENO: result: no" >&5
17956 $as_echo "no" >&6; }
17957
17958
17959
17960 fi
17961
17962 rm -Rf build
17963
17964
17965
17966
17967 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
17968 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
17969
17970
17971 cat confdefs.h - <<_ACEOF >conftest.c
17972 /* confdefs.h. */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977
17978
17979 #include <linux/blkdev.h>
17980
17981 int
17982 main (void)
17983 {
17984
17985 struct request *req = NULL;
17986 (void) rq_is_sync(req);
17987
17988 ;
17989 return 0;
17990 }
17991
17992 _ACEOF
17993
17994
17995 rm -Rf build && mkdir -p build
17996 echo "obj-m := conftest.o" >build/Makefile
17997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004 (eval $ac_try) 2>&5
18005 ac_status=$?
18006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008
18009 { $as_echo "$as_me:$LINENO: result: yes" >&5
18010 $as_echo "yes" >&6; }
18011
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_RQ_IS_SYNC 1
18014 _ACEOF
18015
18016
18017 else
18018 $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 { $as_echo "$as_me:$LINENO: result: no" >&5
18022 $as_echo "no" >&6; }
18023
18024
18025
18026 fi
18027
18028 rm -Rf build
18029
18030
18031
18032
18033 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18034 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
18035
18036
18037 cat confdefs.h - <<_ACEOF >conftest.c
18038 /* confdefs.h. */
18039 _ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043
18044
18045 #include <linux/blkdev.h>
18046
18047 int
18048 main (void)
18049 {
18050
18051 struct bio_vec *bv;
18052 struct req_iterator iter;
18053 struct request *req = NULL;
18054 rq_for_each_segment(bv, req, iter) { }
18055
18056 ;
18057 return 0;
18058 }
18059
18060 _ACEOF
18061
18062
18063 rm -Rf build && mkdir -p build
18064 echo "obj-m := conftest.o" >build/Makefile
18065 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18068 ac_status=$?
18069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18076
18077 { $as_echo "$as_me:$LINENO: result: yes" >&5
18078 $as_echo "yes" >&6; }
18079
18080 cat >>confdefs.h <<\_ACEOF
18081 #define HAVE_RQ_FOR_EACH_SEGMENT 1
18082 _ACEOF
18083
18084
18085 else
18086 $as_echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089 { $as_echo "$as_me:$LINENO: result: no" >&5
18090 $as_echo "no" >&6; }
18091
18092
18093
18094 fi
18095
18096 rm -Rf build
18097
18098
18099
18100 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
18101 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
18102
18103
18104 cat confdefs.h - <<_ACEOF >conftest.c
18105 /* confdefs.h. */
18106 _ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18110
18111
18112 #include <linux/fs.h>
18113 #include <linux/xattr.h>
18114
18115 const struct xattr_handler xattr_test_handler = {
18116 .prefix = "test",
18117 .get = NULL,
18118 .set = NULL,
18119 };
18120
18121 const struct xattr_handler *xattr_handlers[] = {
18122 &xattr_test_handler,
18123 };
18124
18125 int
18126 main (void)
18127 {
18128
18129 struct super_block sb __attribute__ ((unused));
18130
18131 sb.s_xattr = xattr_handlers;
18132
18133 ;
18134 return 0;
18135 }
18136
18137 _ACEOF
18138
18139
18140 rm -Rf build && mkdir -p build
18141 echo "obj-m := conftest.o" >build/Makefile
18142 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18149 (eval $ac_try) 2>&5
18150 ac_status=$?
18151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); }; }; then
18153
18154 { $as_echo "$as_me:$LINENO: result: yes" >&5
18155 $as_echo "yes" >&6; }
18156
18157 cat >>confdefs.h <<\_ACEOF
18158 #define HAVE_CONST_XATTR_HANDLER 1
18159 _ACEOF
18160
18161
18162 else
18163 $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 { $as_echo "$as_me:$LINENO: result: no" >&5
18167 $as_echo "no" >&6; }
18168
18169
18170
18171 fi
18172
18173 rm -Rf build
18174
18175
18176
18177
18178 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18179 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18180
18181
18182 cat confdefs.h - <<_ACEOF >conftest.c
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188
18189
18190 #include <linux/xattr.h>
18191
18192 int
18193 main (void)
18194 {
18195
18196 int (*get)(struct dentry *dentry, const char *name,
18197 void *buffer, size_t size, int handler_flags) = NULL;
18198 struct xattr_handler xops __attribute__ ((unused));
18199
18200 xops.get = get;
18201
18202 ;
18203 return 0;
18204 }
18205
18206 _ACEOF
18207
18208
18209 rm -Rf build && mkdir -p build
18210 echo "obj-m := conftest.o" >build/Makefile
18211 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222
18223 { $as_echo "$as_me:$LINENO: result: yes" >&5
18224 $as_echo "yes" >&6; }
18225
18226 cat >>confdefs.h <<\_ACEOF
18227 #define HAVE_DENTRY_XATTR_GET 1
18228 _ACEOF
18229
18230
18231 else
18232 $as_echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 { $as_echo "$as_me:$LINENO: result: no" >&5
18236 $as_echo "no" >&6; }
18237
18238
18239
18240 fi
18241
18242 rm -Rf build
18243
18244
18245
18246
18247 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18248 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18249
18250
18251 cat confdefs.h - <<_ACEOF >conftest.c
18252 /* confdefs.h. */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257
18258
18259 #include <linux/xattr.h>
18260
18261 int
18262 main (void)
18263 {
18264
18265 int (*set)(struct dentry *dentry, const char *name,
18266 const void *buffer, size_t size, int flags,
18267 int handler_flags) = NULL;
18268 struct xattr_handler xops __attribute__ ((unused));
18269
18270 xops.set = set;
18271
18272 ;
18273 return 0;
18274 }
18275
18276 _ACEOF
18277
18278
18279 rm -Rf build && mkdir -p build
18280 echo "obj-m := conftest.o" >build/Makefile
18281 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292
18293 { $as_echo "$as_me:$LINENO: result: yes" >&5
18294 $as_echo "yes" >&6; }
18295
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_DENTRY_XATTR_SET 1
18298 _ACEOF
18299
18300
18301 else
18302 $as_echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18304
18305 { $as_echo "$as_me:$LINENO: result: no" >&5
18306 $as_echo "no" >&6; }
18307
18308
18309
18310 fi
18311
18312 rm -Rf build
18313
18314
18315
18316
18317 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18318 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18319
18320
18321 cat confdefs.h - <<_ACEOF >conftest.c
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327
18328
18329 #include <linux/fs.h>
18330
18331 int
18332 main (void)
18333 {
18334
18335 int (*fsync) (struct file *, int datasync) = NULL;
18336 struct file_operations fops __attribute__ ((unused));
18337
18338 fops.fsync = fsync;
18339
18340 ;
18341 return 0;
18342 }
18343
18344 _ACEOF
18345
18346
18347 rm -Rf build && mkdir -p build
18348 echo "obj-m := conftest.o" >build/Makefile
18349 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18357 ac_status=$?
18358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360
18361 { $as_echo "$as_me:$LINENO: result: yes" >&5
18362 $as_echo "yes" >&6; }
18363
18364 cat >>confdefs.h <<\_ACEOF
18365 #define HAVE_2ARGS_FSYNC 1
18366 _ACEOF
18367
18368
18369 else
18370 $as_echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18372
18373 { $as_echo "$as_me:$LINENO: result: no" >&5
18374 $as_echo "no" >&6; }
18375
18376
18377
18378 fi
18379
18380 rm -Rf build
18381
18382
18383
18384
18385 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18386 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18387
18388
18389 cat confdefs.h - <<_ACEOF >conftest.c
18390 /* confdefs.h. */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18395
18396
18397 #include <linux/fs.h>
18398
18399 int
18400 main (void)
18401 {
18402
18403 void (*evict_inode) (struct inode *) = NULL;
18404 struct super_operations sops __attribute__ ((unused));
18405
18406 sops.evict_inode = evict_inode;
18407
18408 ;
18409 return 0;
18410 }
18411
18412 _ACEOF
18413
18414
18415 rm -Rf build && mkdir -p build
18416 echo "obj-m := conftest.o" >build/Makefile
18417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428
18429 { $as_echo "$as_me:$LINENO: result: yes" >&5
18430 $as_echo "yes" >&6; }
18431
18432 cat >>confdefs.h <<\_ACEOF
18433 #define HAVE_EVICT_INODE 1
18434 _ACEOF
18435
18436
18437 else
18438 $as_echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 { $as_echo "$as_me:$LINENO: result: no" >&5
18442 $as_echo "no" >&6; }
18443
18444
18445
18446 fi
18447
18448 rm -Rf build
18449
18450
18451
18452
18453 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
18454 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
18455 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18456 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18457 rc=$?
18458 if test $rc -ne 0; then
18459 export=0
18460 for file in fs/inode.c; do
18461 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
18462 rc=$?
18463 if test $rc -eq 0; then
18464 export=1
18465 break;
18466 fi
18467 done
18468 if test $export -eq 0; then
18469 { $as_echo "$as_me:$LINENO: result: no" >&5
18470 $as_echo "no" >&6; }
18471
18472 else
18473 { $as_echo "$as_me:$LINENO: result: yes" >&5
18474 $as_echo "yes" >&6; }
18475
18476 cat >>confdefs.h <<\_ACEOF
18477 #define HAVE_INSERT_INODE_LOCKED 1
18478 _ACEOF
18479
18480 fi
18481 else
18482 { $as_echo "$as_me:$LINENO: result: yes" >&5
18483 $as_echo "yes" >&6; }
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define HAVE_INSERT_INODE_LOCKED 1
18487 _ACEOF
18488
18489 fi
18490
18491
18492
18493 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
18494 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
18495 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18496 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18497 rc=$?
18498 if test $rc -ne 0; then
18499 export=0
18500 for file in fs/dcache.c; do
18501 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
18502 rc=$?
18503 if test $rc -eq 0; then
18504 export=1
18505 break;
18506 fi
18507 done
18508 if test $export -eq 0; then
18509 { $as_echo "$as_me:$LINENO: result: no" >&5
18510 $as_echo "no" >&6; }
18511
18512 else
18513 { $as_echo "$as_me:$LINENO: result: yes" >&5
18514 $as_echo "yes" >&6; }
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_D_OBTAIN_ALIAS 1
18518 _ACEOF
18519
18520 fi
18521 else
18522 { $as_echo "$as_me:$LINENO: result: yes" >&5
18523 $as_echo "yes" >&6; }
18524
18525 cat >>confdefs.h <<\_ACEOF
18526 #define HAVE_D_OBTAIN_ALIAS 1
18527 _ACEOF
18528
18529 fi
18530
18531
18532
18533 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
18534 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
18535 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
18536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18537 rc=$?
18538 if test $rc -ne 0; then
18539 export=0
18540 for file in fs/block_dev.c; do
18541 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
18542 rc=$?
18543 if test $rc -eq 0; then
18544 export=1
18545 break;
18546 fi
18547 done
18548 if test $export -eq 0; then
18549 { $as_echo "$as_me:$LINENO: result: no" >&5
18550 $as_echo "no" >&6; }
18551
18552 else
18553 { $as_echo "$as_me:$LINENO: result: yes" >&5
18554 $as_echo "yes" >&6; }
18555
18556 cat >>confdefs.h <<\_ACEOF
18557 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18558 _ACEOF
18559
18560 fi
18561 else
18562 { $as_echo "$as_me:$LINENO: result: yes" >&5
18563 $as_echo "yes" >&6; }
18564
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
18567 _ACEOF
18568
18569 fi
18570
18571
18572
18573 if test "$LINUX_OBJ" != "$LINUX"; then
18574 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18575 fi
18576
18577
18578
18579 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-unused-but-set-variable"
18580 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18581 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18582
18583
18584
18585
18586
18587 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18588 $as_echo_n "checking for target asm dir... " >&6; }
18589 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18590
18591 case $TARGET_ARCH in
18592 i386|x86_64)
18593 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18594 ;;
18595 *)
18596 TARGET_ASM_DIR=asm-generic
18597 ;;
18598 esac
18599
18600
18601 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18602 $as_echo "$TARGET_ASM_DIR" >&6; }
18603
18604
18605 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18606 $as_echo_n "checking for ioctl()... " >&6; }
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h. */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 #include <unistd.h>
18614
18615 _ACEOF
18616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18617 $EGREP "ioctl" >/dev/null 2>&1; then
18618 is_unistd=yes
18619 else
18620 is_unistd=no
18621 fi
18622 rm -f conftest*
18623
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <sys/ioctl.h>
18631
18632 _ACEOF
18633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18634 $EGREP "ioctl" >/dev/null 2>&1; then
18635 is_sys_ioctl=yes
18636 else
18637 is_sys_ioctl=no
18638 fi
18639 rm -f conftest*
18640
18641 cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h. */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18647 #include <stropts.h>
18648
18649 _ACEOF
18650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18651 $EGREP "ioctl" >/dev/null 2>&1; then
18652 is_stropts=yes
18653 else
18654 is_stropts=no
18655 fi
18656 rm -f conftest*
18657
18658
18659 if test $is_unistd = yes; then
18660 result=unistd.h
18661
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE_IOCTL_IN_UNISTD_H 1
18664 _ACEOF
18665
18666 else
18667
18668 if test $is_sys_ioctl = yes; then
18669 result=sys/ioctl.h
18670
18671 cat >>confdefs.h <<\_ACEOF
18672 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18673 _ACEOF
18674
18675 elif test $is_stropts = yes; then
18676
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_IOCTL_IN_STROPTS_H 1
18679 _ACEOF
18680
18681 else
18682 result=no
18683 fi
18684 fi
18685
18686 if test $result = no; then
18687 { $as_echo "$as_me:$LINENO: result: no" >&5
18688 $as_echo "no" >&6; }
18689 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18690 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18691 { (exit 1); exit 1; }; }
18692 else
18693 { $as_echo "$as_me:$LINENO: result: yes" >&5
18694 $as_echo "yes" >&6; }
18695 fi
18696
18697
18698 ZLIB=
18699
18700 if test "${ac_cv_header_zlib_h+set}" = set; then
18701 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18702 $as_echo_n "checking for zlib.h... " >&6; }
18703 if test "${ac_cv_header_zlib_h+set}" = set; then
18704 $as_echo_n "(cached) " >&6
18705 fi
18706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18707 $as_echo "$ac_cv_header_zlib_h" >&6; }
18708 else
18709 # Is the header compilable?
18710 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18711 $as_echo_n "checking zlib.h usability... " >&6; }
18712 cat >conftest.$ac_ext <<_ACEOF
18713 /* confdefs.h. */
18714 _ACEOF
18715 cat confdefs.h >>conftest.$ac_ext
18716 cat >>conftest.$ac_ext <<_ACEOF
18717 /* end confdefs.h. */
18718 $ac_includes_default
18719 #include <zlib.h>
18720 _ACEOF
18721 rm -f conftest.$ac_objext
18722 if { (ac_try="$ac_compile"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18726 esac
18727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18728 $as_echo "$ac_try_echo") >&5
18729 (eval "$ac_compile") 2>conftest.er1
18730 ac_status=$?
18731 grep -v '^ *+' conftest.er1 >conftest.err
18732 rm -f conftest.er1
18733 cat conftest.err >&5
18734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest.$ac_objext; then
18739 ac_header_compiler=yes
18740 else
18741 $as_echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_header_compiler=no
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18749 $as_echo "$ac_header_compiler" >&6; }
18750
18751 # Is the header present?
18752 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18753 $as_echo_n "checking zlib.h presence... " >&6; }
18754 cat >conftest.$ac_ext <<_ACEOF
18755 /* confdefs.h. */
18756 _ACEOF
18757 cat confdefs.h >>conftest.$ac_ext
18758 cat >>conftest.$ac_ext <<_ACEOF
18759 /* end confdefs.h. */
18760 #include <zlib.h>
18761 _ACEOF
18762 if { (ac_try="$ac_cpp conftest.$ac_ext"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18766 esac
18767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18768 $as_echo "$ac_try_echo") >&5
18769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18770 ac_status=$?
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
18774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } >/dev/null && {
18776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 }; then
18779 ac_header_preproc=yes
18780 else
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_header_preproc=no
18785 fi
18786
18787 rm -f conftest.err conftest.$ac_ext
18788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18789 $as_echo "$ac_header_preproc" >&6; }
18790
18791 # So? What about this header?
18792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18793 yes:no: )
18794 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18795 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18796 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18797 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18798 ac_header_preproc=yes
18799 ;;
18800 no:yes:* )
18801 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18802 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18803 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18804 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18805 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18806 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18807 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18808 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18809 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18810 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18811 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18812 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18813
18814 ;;
18815 esac
18816 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18817 $as_echo_n "checking for zlib.h... " >&6; }
18818 if test "${ac_cv_header_zlib_h+set}" = set; then
18819 $as_echo_n "(cached) " >&6
18820 else
18821 ac_cv_header_zlib_h=$ac_header_preproc
18822 fi
18823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18824 $as_echo "$ac_cv_header_zlib_h" >&6; }
18825
18826 fi
18827 if test "x$ac_cv_header_zlib_h" = x""yes; then
18828 :
18829 else
18830 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18832 { { $as_echo "$as_me:$LINENO: error:
18833 *** zlib.h missing, zlib-devel package required
18834 See \`config.log' for more details." >&5
18835 $as_echo "$as_me: error:
18836 *** zlib.h missing, zlib-devel package required
18837 See \`config.log' for more details." >&2;}
18838 { (exit 1); exit 1; }; }; }
18839 fi
18840
18841
18842
18843
18844 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18845 $as_echo_n "checking for compress2 in -lz... " >&6; }
18846 if test "${ac_cv_lib_z_compress2+set}" = set; then
18847 $as_echo_n "(cached) " >&6
18848 else
18849 ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lz $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18852 /* confdefs.h. */
18853 _ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18861 #ifdef __cplusplus
18862 extern "C"
18863 #endif
18864 char compress2 ();
18865 int
18866 main ()
18867 {
18868 return compress2 ();
18869 ;
18870 return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18880 $as_echo "$ac_try_echo") >&5
18881 (eval "$ac_link") 2>conftest.er1
18882 ac_status=$?
18883 grep -v '^ *+' conftest.er1 >conftest.err
18884 rm -f conftest.er1
18885 cat conftest.err >&5
18886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); } && {
18888 test -z "$ac_c_werror_flag" ||
18889 test ! -s conftest.err
18890 } && test -s conftest$ac_exeext && {
18891 test "$cross_compiling" = yes ||
18892 $as_test_x conftest$ac_exeext
18893 }; then
18894 ac_cv_lib_z_compress2=yes
18895 else
18896 $as_echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 ac_cv_lib_z_compress2=no
18900 fi
18901
18902 rm -rf conftest.dSYM
18903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18904 conftest$ac_exeext conftest.$ac_ext
18905 LIBS=$ac_check_lib_save_LIBS
18906 fi
18907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18908 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18909 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18910 cat >>confdefs.h <<_ACEOF
18911 #define HAVE_LIBZ 1
18912 _ACEOF
18913
18914 LIBS="-lz $LIBS"
18915
18916 else
18917 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18919 { { $as_echo "$as_me:$LINENO: error:
18920 *** compress2() missing, zlib-devel package required
18921 See \`config.log' for more details." >&5
18922 $as_echo "$as_me: error:
18923 *** compress2() missing, zlib-devel package required
18924 See \`config.log' for more details." >&2;}
18925 { (exit 1); exit 1; }; }; }
18926 fi
18927
18928
18929
18930 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18931 $as_echo_n "checking for uncompress in -lz... " >&6; }
18932 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18933 $as_echo_n "(cached) " >&6
18934 else
18935 ac_check_lib_save_LIBS=$LIBS
18936 LIBS="-lz $LIBS"
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h. */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943
18944 /* Override any GCC internal prototype to avoid an error.
18945 Use char because int might match the return type of a GCC
18946 builtin and then its argument prototype would still apply. */
18947 #ifdef __cplusplus
18948 extern "C"
18949 #endif
18950 char uncompress ();
18951 int
18952 main ()
18953 {
18954 return uncompress ();
18955 ;
18956 return 0;
18957 }
18958 _ACEOF
18959 rm -f conftest.$ac_objext conftest$ac_exeext
18960 if { (ac_try="$ac_link"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18964 esac
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967 (eval "$ac_link") 2>conftest.er1
18968 ac_status=$?
18969 grep -v '^ *+' conftest.er1 >conftest.err
18970 rm -f conftest.er1
18971 cat conftest.err >&5
18972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest$ac_exeext && {
18977 test "$cross_compiling" = yes ||
18978 $as_test_x conftest$ac_exeext
18979 }; then
18980 ac_cv_lib_z_uncompress=yes
18981 else
18982 $as_echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985 ac_cv_lib_z_uncompress=no
18986 fi
18987
18988 rm -rf conftest.dSYM
18989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18990 conftest$ac_exeext conftest.$ac_ext
18991 LIBS=$ac_check_lib_save_LIBS
18992 fi
18993 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18994 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18995 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18996 cat >>confdefs.h <<_ACEOF
18997 #define HAVE_LIBZ 1
18998 _ACEOF
18999
19000 LIBS="-lz $LIBS"
19001
19002 else
19003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19005 { { $as_echo "$as_me:$LINENO: error:
19006 *** uncompress() missing, zlib-devel package required
19007 See \`config.log' for more details." >&5
19008 $as_echo "$as_me: error:
19009 *** uncompress() missing, zlib-devel package required
19010 See \`config.log' for more details." >&2;}
19011 { (exit 1); exit 1; }; }; }
19012 fi
19013
19014
19015
19016 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19017 $as_echo_n "checking for crc32 in -lz... " >&6; }
19018 if test "${ac_cv_lib_z_crc32+set}" = set; then
19019 $as_echo_n "(cached) " >&6
19020 else
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lz $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h. */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 char crc32 ();
19037 int
19038 main ()
19039 {
19040 return crc32 ();
19041 ;
19042 return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050 esac
19051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19052 $as_echo "$ac_try_echo") >&5
19053 (eval "$ac_link") 2>conftest.er1
19054 ac_status=$?
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
19058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); } && {
19060 test -z "$ac_c_werror_flag" ||
19061 test ! -s conftest.err
19062 } && test -s conftest$ac_exeext && {
19063 test "$cross_compiling" = yes ||
19064 $as_test_x conftest$ac_exeext
19065 }; then
19066 ac_cv_lib_z_crc32=yes
19067 else
19068 $as_echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19070
19071 ac_cv_lib_z_crc32=no
19072 fi
19073
19074 rm -rf conftest.dSYM
19075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19076 conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19078 fi
19079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19080 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19081 if test "x$ac_cv_lib_z_crc32" = x""yes; then
19082 cat >>confdefs.h <<_ACEOF
19083 #define HAVE_LIBZ 1
19084 _ACEOF
19085
19086 LIBS="-lz $LIBS"
19087
19088 else
19089 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19091 { { $as_echo "$as_me:$LINENO: error:
19092 *** crc32() missing, zlib-devel package required
19093 See \`config.log' for more details." >&5
19094 $as_echo "$as_me: error:
19095 *** crc32() missing, zlib-devel package required
19096 See \`config.log' for more details." >&2;}
19097 { (exit 1); exit 1; }; }; }
19098 fi
19099
19100
19101 ZLIB="-lz"
19102
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_ZLIB 1
19106 _ACEOF
19107
19108
19109
19110 LIBUUID=
19111
19112 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19113 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19114 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19115 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19116 $as_echo_n "(cached) " >&6
19117 fi
19118 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19119 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19120 else
19121 # Is the header compilable?
19122 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
19123 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 $ac_includes_default
19131 #include <uuid/uuid.h>
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (ac_try="$ac_compile"
19135 case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138 esac
19139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19140 $as_echo "$ac_try_echo") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest.$ac_objext; then
19151 ac_header_compiler=yes
19152 else
19153 $as_echo "$as_me: failed program was:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19155
19156 ac_header_compiler=no
19157 fi
19158
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19161 $as_echo "$ac_header_compiler" >&6; }
19162
19163 # Is the header present?
19164 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
19165 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
19166 cat >conftest.$ac_ext <<_ACEOF
19167 /* confdefs.h. */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19172 #include <uuid/uuid.h>
19173 _ACEOF
19174 if { (ac_try="$ac_cpp conftest.$ac_ext"
19175 case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19180 $as_echo "$ac_try_echo") >&5
19181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } >/dev/null && {
19188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 }; then
19191 ac_header_preproc=yes
19192 else
19193 $as_echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196 ac_header_preproc=no
19197 fi
19198
19199 rm -f conftest.err conftest.$ac_ext
19200 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19201 $as_echo "$ac_header_preproc" >&6; }
19202
19203 # So? What about this header?
19204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19205 yes:no: )
19206 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
19207 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19208 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
19209 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
19210 ac_header_preproc=yes
19211 ;;
19212 no:yes:* )
19213 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
19214 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
19216 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
19217 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
19218 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
19219 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
19220 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
19221 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
19222 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
19223 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
19224 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
19225
19226 ;;
19227 esac
19228 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
19229 $as_echo_n "checking for uuid/uuid.h... " >&6; }
19230 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
19231 $as_echo_n "(cached) " >&6
19232 else
19233 ac_cv_header_uuid_uuid_h=$ac_header_preproc
19234 fi
19235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
19236 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
19237
19238 fi
19239 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
19240 :
19241 else
19242 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19244 { { $as_echo "$as_me:$LINENO: error:
19245 *** uuid/uuid.h missing, libuuid-devel package required
19246 See \`config.log' for more details." >&5
19247 $as_echo "$as_me: error:
19248 *** uuid/uuid.h missing, libuuid-devel package required
19249 See \`config.log' for more details." >&2;}
19250 { (exit 1); exit 1; }; }; }
19251 fi
19252
19253
19254
19255
19256 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
19257 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
19258 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
19259 $as_echo_n "(cached) " >&6
19260 else
19261 ac_check_lib_save_LIBS=$LIBS
19262 LIBS="-luuid $LIBS"
19263 cat >conftest.$ac_ext <<_ACEOF
19264 /* confdefs.h. */
19265 _ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269
19270 /* Override any GCC internal prototype to avoid an error.
19271 Use char because int might match the return type of a GCC
19272 builtin and then its argument prototype would still apply. */
19273 #ifdef __cplusplus
19274 extern "C"
19275 #endif
19276 char uuid_generate ();
19277 int
19278 main ()
19279 {
19280 return uuid_generate ();
19281 ;
19282 return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293 (eval "$ac_link") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest$ac_exeext && {
19303 test "$cross_compiling" = yes ||
19304 $as_test_x conftest$ac_exeext
19305 }; then
19306 ac_cv_lib_uuid_uuid_generate=yes
19307 else
19308 $as_echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 ac_cv_lib_uuid_uuid_generate=no
19312 fi
19313
19314 rm -rf conftest.dSYM
19315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19318 fi
19319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19320 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19321 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_LIBUUID 1
19324 _ACEOF
19325
19326 LIBS="-luuid $LIBS"
19327
19328 else
19329 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19331 { { $as_echo "$as_me:$LINENO: error:
19332 *** uuid_generate() missing, libuuid-devel package required
19333 See \`config.log' for more details." >&5
19334 $as_echo "$as_me: error:
19335 *** uuid_generate() missing, libuuid-devel package required
19336 See \`config.log' for more details." >&2;}
19337 { (exit 1); exit 1; }; }; }
19338 fi
19339
19340
19341
19342 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19343 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19344 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19345 $as_echo_n "(cached) " >&6
19346 else
19347 ac_check_lib_save_LIBS=$LIBS
19348 LIBS="-luuid $LIBS"
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355
19356 /* Override any GCC internal prototype to avoid an error.
19357 Use char because int might match the return type of a GCC
19358 builtin and then its argument prototype would still apply. */
19359 #ifdef __cplusplus
19360 extern "C"
19361 #endif
19362 char uuid_is_null ();
19363 int
19364 main ()
19365 {
19366 return uuid_is_null ();
19367 ;
19368 return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (ac_try="$ac_link"
19373 case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376 esac
19377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19378 $as_echo "$ac_try_echo") >&5
19379 (eval "$ac_link") 2>conftest.er1
19380 ac_status=$?
19381 grep -v '^ *+' conftest.er1 >conftest.err
19382 rm -f conftest.er1
19383 cat conftest.err >&5
19384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest$ac_exeext && {
19389 test "$cross_compiling" = yes ||
19390 $as_test_x conftest$ac_exeext
19391 }; then
19392 ac_cv_lib_uuid_uuid_is_null=yes
19393 else
19394 $as_echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_lib_uuid_uuid_is_null=no
19398 fi
19399
19400 rm -rf conftest.dSYM
19401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19402 conftest$ac_exeext conftest.$ac_ext
19403 LIBS=$ac_check_lib_save_LIBS
19404 fi
19405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19406 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19407 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19408 cat >>confdefs.h <<_ACEOF
19409 #define HAVE_LIBUUID 1
19410 _ACEOF
19411
19412 LIBS="-luuid $LIBS"
19413
19414 else
19415 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19417 { { $as_echo "$as_me:$LINENO: error:
19418 *** uuid_is_null() missing, libuuid-devel package required
19419 See \`config.log' for more details." >&5
19420 $as_echo "$as_me: error:
19421 *** uuid_is_null() missing, libuuid-devel package required
19422 See \`config.log' for more details." >&2;}
19423 { (exit 1); exit 1; }; }; }
19424 fi
19425
19426
19427 LIBUUID="-luuid"
19428
19429
19430 cat >>confdefs.h <<\_ACEOF
19431 #define HAVE_LIBUUID 1
19432 _ACEOF
19433
19434
19435
19436
19437 # Check whether --with-blkid was given.
19438 if test "${with_blkid+set}" = set; then
19439 withval=$with_blkid;
19440 else
19441 with_blkid=check
19442 fi
19443
19444
19445 LIBBLKID=
19446 if test "x$with_blkid" != xno; then
19447
19448 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19449 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19450 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19452 else
19453 ac_check_lib_save_LIBS=$LIBS
19454 LIBS="-lblkid $LIBS"
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461
19462 /* Override any GCC internal prototype to avoid an error.
19463 Use char because int might match the return type of a GCC
19464 builtin and then its argument prototype would still apply. */
19465 #ifdef __cplusplus
19466 extern "C"
19467 #endif
19468 char blkid_get_cache ();
19469 int
19470 main ()
19471 {
19472 return blkid_get_cache ();
19473 ;
19474 return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19482 esac
19483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19484 $as_echo "$ac_try_echo") >&5
19485 (eval "$ac_link") 2>conftest.er1
19486 ac_status=$?
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
19490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest$ac_exeext && {
19495 test "$cross_compiling" = yes ||
19496 $as_test_x conftest$ac_exeext
19497 }; then
19498 ac_cv_lib_blkid_blkid_get_cache=yes
19499 else
19500 $as_echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_cv_lib_blkid_blkid_get_cache=no
19504 fi
19505
19506 rm -rf conftest.dSYM
19507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19508 conftest$ac_exeext conftest.$ac_ext
19509 LIBS=$ac_check_lib_save_LIBS
19510 fi
19511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19512 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19513 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19514
19515 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19516 $as_echo_n "checking for blkid zfs support... " >&6; }
19517
19518 ZFS_DEV=`mktemp`
19519 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19520 >/dev/null 2>/dev/null
19521 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19522 dd of=$ZFS_DEV bs=1k count=8 \
19523 seek=132 conv=notrunc &>/dev/null \
19524 >/dev/null 2>/dev/null
19525
19526 saved_LDFLAGS="$LDFLAGS"
19527 LDFLAGS="-lblkid"
19528
19529 if test "$cross_compiling" = yes; then
19530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19532 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19533 See \`config.log' for more details." >&5
19534 $as_echo "$as_me: error: cannot run test program while cross compiling
19535 See \`config.log' for more details." >&2;}
19536 { (exit 1); exit 1; }; }; }
19537 else
19538 cat >conftest.$ac_ext <<_ACEOF
19539 /* confdefs.h. */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h. */
19544
19545 #include <stdio.h>
19546 #include <blkid/blkid.h>
19547
19548 int
19549 main ()
19550 {
19551
19552 blkid_cache cache;
19553 char *value;
19554
19555 if (blkid_get_cache(&cache, NULL) < 0)
19556 return 1;
19557
19558 value = blkid_get_tag_value(cache, "TYPE",
19559 "$ZFS_DEV");
19560 if (!value) {
19561 blkid_put_cache(cache);
19562 return 2;
19563 }
19564
19565 if (strcmp(value, "zfs")) {
19566 free(value);
19567 blkid_put_cache(cache);
19568 return 3;
19569 }
19570
19571 free(value);
19572 blkid_put_cache(cache);
19573
19574 ;
19575 return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest$ac_exeext
19579 if { (ac_try="$ac_link"
19580 case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19583 esac
19584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19585 $as_echo "$ac_try_echo") >&5
19586 (eval "$ac_link") 2>&5
19587 ac_status=$?
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19590 { (case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593 esac
19594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19595 $as_echo "$ac_try_echo") >&5
19596 (eval "$ac_try") 2>&5
19597 ac_status=$?
19598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600
19601 rm -f $ZFS_DEV
19602 { $as_echo "$as_me:$LINENO: result: yes" >&5
19603 $as_echo "yes" >&6; }
19604 LIBBLKID="-lblkid"
19605
19606
19607 cat >>confdefs.h <<\_ACEOF
19608 #define HAVE_LIBBLKID 1
19609 _ACEOF
19610
19611
19612 else
19613 $as_echo "$as_me: program exited with status $ac_status" >&5
19614 $as_echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ( exit $ac_status )
19618
19619 rm -f $ZFS_DEV
19620 { $as_echo "$as_me:$LINENO: result: no" >&5
19621 $as_echo "no" >&6; }
19622 if test "x$with_blkid" != xcheck; then
19623 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19625 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19626 See \`config.log' for more details." >&5
19627 $as_echo "$as_me: error: --with-blkid given but unavailable
19628 See \`config.log' for more details." >&2;}
19629 { (exit 1); exit 1; }; }; }
19630 fi
19631
19632
19633 fi
19634 rm -rf conftest.dSYM
19635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19636 fi
19637
19638
19639
19640 LDFLAGS="$saved_LDFLAGS"
19641
19642 else
19643
19644 if test "x$with_blkid" != xcheck; then
19645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19647 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19648 See \`config.log' for more details." >&5
19649 $as_echo "$as_me: error: --with-blkid given but unavailable
19650 See \`config.log' for more details." >&2;}
19651 { (exit 1); exit 1; }; }; }
19652 fi
19653
19654
19655
19656 fi
19657
19658
19659 fi
19660
19661
19662
19663
19664 # Check whether --with-selinux was given.
19665 if test "${with_selinux+set}" = set; then
19666 withval=$with_selinux;
19667 else
19668 with_selinux=check
19669 fi
19670
19671
19672 LIBSELINUX=
19673 if test "x$with_selinux" != xno; then
19674
19675 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19676 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19677 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19678 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19679 $as_echo_n "(cached) " >&6
19680 fi
19681 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19682 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19683 else
19684 # Is the header compilable?
19685 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19686 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 $ac_includes_default
19694 #include <selinux/selinux.h>
19695 _ACEOF
19696 rm -f conftest.$ac_objext
19697 if { (ac_try="$ac_compile"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19703 $as_echo "$ac_try_echo") >&5
19704 (eval "$ac_compile") 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } && {
19711 test -z "$ac_c_werror_flag" ||
19712 test ! -s conftest.err
19713 } && test -s conftest.$ac_objext; then
19714 ac_header_compiler=yes
19715 else
19716 $as_echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19718
19719 ac_header_compiler=no
19720 fi
19721
19722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19724 $as_echo "$ac_header_compiler" >&6; }
19725
19726 # Is the header present?
19727 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19728 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #include <selinux/selinux.h>
19736 _ACEOF
19737 if { (ac_try="$ac_cpp conftest.$ac_ext"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19741 esac
19742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19743 $as_echo "$ac_try_echo") >&5
19744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19745 ac_status=$?
19746 grep -v '^ *+' conftest.er1 >conftest.err
19747 rm -f conftest.er1
19748 cat conftest.err >&5
19749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } >/dev/null && {
19751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 }; then
19754 ac_header_preproc=yes
19755 else
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759 ac_header_preproc=no
19760 fi
19761
19762 rm -f conftest.err conftest.$ac_ext
19763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19764 $as_echo "$ac_header_preproc" >&6; }
19765
19766 # So? What about this header?
19767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19768 yes:no: )
19769 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19770 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19771 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19772 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19773 ac_header_preproc=yes
19774 ;;
19775 no:yes:* )
19776 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19777 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19779 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19781 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19782 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19783 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19785 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19786 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19787 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19788
19789 ;;
19790 esac
19791 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19792 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19793 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19794 $as_echo_n "(cached) " >&6
19795 else
19796 ac_cv_header_selinux_selinux_h=$ac_header_preproc
19797 fi
19798 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19799 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19800
19801 fi
19802 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19803
19804 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19805 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19806 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19807 $as_echo_n "(cached) " >&6
19808 else
19809 ac_check_lib_save_LIBS=$LIBS
19810 LIBS="-lselinux $LIBS"
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19821 #ifdef __cplusplus
19822 extern "C"
19823 #endif
19824 char is_selinux_enabled ();
19825 int
19826 main ()
19827 {
19828 return is_selinux_enabled ();
19829 ;
19830 return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_link") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext && {
19851 test "$cross_compiling" = yes ||
19852 $as_test_x conftest$ac_exeext
19853 }; then
19854 ac_cv_lib_selinux_is_selinux_enabled=yes
19855 else
19856 $as_echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 ac_cv_lib_selinux_is_selinux_enabled=no
19860 fi
19861
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19865 LIBS=$ac_check_lib_save_LIBS
19866 fi
19867 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19868 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19869 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19870
19871 LIBSELINUX="-lselinux"
19872
19873
19874 cat >>confdefs.h <<\_ACEOF
19875 #define HAVE_LIBSELINUX 1
19876 _ACEOF
19877
19878
19879 else
19880
19881 if test "x$with_selinux" != xcheck; then
19882 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19884 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19885 See \`config.log' for more details." >&5
19886 $as_echo "$as_me: error: --with-selinux given but unavailable
19887 See \`config.log' for more details." >&2;}
19888 { (exit 1); exit 1; }; }; }
19889
19890 fi
19891
19892
19893 fi
19894
19895
19896 else
19897
19898 if test "x$with_selinux" != xcheck; then
19899 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19901 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19902 See \`config.log' for more details." >&5
19903 $as_echo "$as_me: error: --with-selinux given but unavailable
19904 See \`config.log' for more details." >&2;}
19905 { (exit 1); exit 1; }; }; }
19906
19907 fi
19908
19909
19910 fi
19911
19912
19913
19914 else
19915
19916 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19917 $as_echo_n "checking for selinux support... " >&6; }
19918 { $as_echo "$as_me:$LINENO: result: no" >&5
19919 $as_echo "no" >&6; }
19920
19921 fi
19922
19923
19924
19925 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19926 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19927
19928 saved_flags="$CFLAGS"
19929 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19930
19931 if test "$cross_compiling" = yes; then
19932 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19934 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19935 See \`config.log' for more details." >&5
19936 $as_echo "$as_me: error: cannot run test program while cross compiling
19937 See \`config.log' for more details." >&2;}
19938 { (exit 1); exit 1; }; }; }
19939 else
19940 cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h. */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946
19947 int
19948 main ()
19949 {
19950
19951 ;
19952 return 0;
19953 }
19954 _ACEOF
19955 rm -f conftest$ac_exeext
19956 if { (ac_try="$ac_link"
19957 case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19960 esac
19961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19962 $as_echo "$ac_try_echo") >&5
19963 (eval "$ac_link") 2>&5
19964 ac_status=$?
19965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19967 { (case "(($ac_try" in
19968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969 *) ac_try_echo=$ac_try;;
19970 esac
19971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19972 $as_echo "$ac_try_echo") >&5
19973 (eval "$ac_try") 2>&5
19974 ac_status=$?
19975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977
19978 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19979 { $as_echo "$as_me:$LINENO: result: yes" >&5
19980 $as_echo "yes" >&6; }
19981
19982 else
19983 $as_echo "$as_me: program exited with status $ac_status" >&5
19984 $as_echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987 ( exit $ac_status )
19988
19989 FRAME_LARGER_THAN=
19990 { $as_echo "$as_me:$LINENO: result: no" >&5
19991 $as_echo "no" >&6; }
19992
19993 fi
19994 rm -rf conftest.dSYM
19995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19996 fi
19997
19998
19999
20000 CFLAGS="$saved_flags"
20001
20002
20003
20004
20005 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
20006 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
20007
20008 saved_CFLAGS="$CFLAGS"
20009 CFLAGS="-fstack-check"
20010 saved_LDFLAGS="$LDFLAGS"
20011 LDFLAGS="-lpthread"
20012
20013 if test "$cross_compiling" = yes; then
20014 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20016 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20017 See \`config.log' for more details." >&5
20018 $as_echo "$as_me: error: cannot run test program while cross compiling
20019 See \`config.log' for more details." >&2;}
20020 { (exit 1); exit 1; }; }; }
20021 else
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028
20029 #include <pthread.h>
20030 #include <sys/resource.h>
20031 #include <unistd.h>
20032 #include <bits/local_lim.h>
20033
20034 #define PAGESIZE (sysconf(_SC_PAGESIZE))
20035 #define STACK_SIZE 8192
20036 #define BUFSIZE 4096
20037
20038 void * func(void *arg)
20039 {
20040 char buf[BUFSIZE];
20041 }
20042
20043 int
20044 main ()
20045 {
20046
20047 pthread_t tid;
20048 pthread_attr_t attr;
20049 struct rlimit l;
20050
20051 l.rlim_cur = 0;
20052 l.rlim_max = 0;
20053 setrlimit(RLIMIT_CORE, &l);
20054 pthread_attr_init(&attr);
20055 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
20056 pthread_attr_setguardsize(&attr, PAGESIZE);
20057 pthread_create(&tid, &attr, func, NULL);
20058 pthread_join(tid, NULL);
20059
20060 ;
20061 return 0;
20062 }
20063 _ACEOF
20064 rm -f conftest$ac_exeext
20065 if { (ac_try="$ac_link"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20069 esac
20070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20071 $as_echo "$ac_try_echo") >&5
20072 (eval "$ac_link") 2>&5
20073 ac_status=$?
20074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20076 { (case "(($ac_try" in
20077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078 *) ac_try_echo=$ac_try;;
20079 esac
20080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20081 $as_echo "$ac_try_echo") >&5
20082 (eval "$ac_try") 2>&5
20083 ac_status=$?
20084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); }; }; then
20086
20087 { $as_echo "$as_me:$LINENO: result: no" >&5
20088 $as_echo "no" >&6; }
20089
20090 else
20091 $as_echo "$as_me: program exited with status $ac_status" >&5
20092 $as_echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ( exit $ac_status )
20096
20097
20098 cat >>confdefs.h <<\_ACEOF
20099 #define NPTL_GUARD_WITHIN_STACK 1
20100 _ACEOF
20101
20102 { $as_echo "$as_me:$LINENO: result: yes" >&5
20103 $as_echo "yes" >&6; }
20104
20105 fi
20106 rm -rf conftest.dSYM
20107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20108 fi
20109
20110
20111 CFLAGS="$saved_CFLAGS"
20112 LDFLAGS="$saved_LDFLAGS"
20113
20114 ;;
20115 srpm) ;;
20116 *)
20117 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20118 $as_echo "Error!" >&6; }
20119 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20120 user kernel|user|all|srpm" >&5
20121 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
20122 user kernel|user|all|srpm" >&2;}
20123 { (exit 1); exit 1; }; } ;;
20124 esac
20125
20126 if test "$ZFS_CONFIG" = user ||
20127 test "$ZFS_CONFIG" = all; then
20128 CONFIG_USER_TRUE=
20129 CONFIG_USER_FALSE='#'
20130 else
20131 CONFIG_USER_TRUE='#'
20132 CONFIG_USER_FALSE=
20133 fi
20134
20135 if test "$ZFS_CONFIG" = kernel ||
20136 test "$ZFS_CONFIG" = all; then
20137 CONFIG_KERNEL_TRUE=
20138 CONFIG_KERNEL_FALSE='#'
20139 else
20140 CONFIG_KERNEL_TRUE='#'
20141 CONFIG_KERNEL_FALSE=
20142 fi
20143
20144
20145
20146 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
20147 $as_echo_n "checking whether debugging is enabled... " >&6; }
20148 # Check whether --enable-debug was given.
20149 if test "${enable_debug+set}" = set; then
20150 enableval=$enable_debug;
20151 else
20152 enable_debug=no
20153 fi
20154
20155
20156 if test "x$enable_debug" = xyes; then
20157
20158 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
20159 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
20160 DEBUG_CFLAGS="-DDEBUG -Werror"
20161 DEBUG_STACKFLAGS="-fstack-check"
20162
20163 else
20164
20165 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
20166 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
20167 DEBUG_CFLAGS="-DNDEBUG"
20168 DEBUG_STACKFLAGS=""
20169
20170 fi
20171
20172
20173
20174
20175 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
20176 $as_echo "$enable_debug" >&6; }
20177
20178
20179 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile etc/Makefile etc/udev/Makefile etc/udev/rules.d/Makefile etc/udev/rules.d/60-zpool.rules etc/udev/rules.d/60-zvol.rules etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh"
20180
20181
20182 cat >confcache <<\_ACEOF
20183 # This file is a shell script that caches the results of configure
20184 # tests run on this system so they can be shared between configure
20185 # scripts and configure runs, see configure's option --config-cache.
20186 # It is not useful on other systems. If it contains results you don't
20187 # want to keep, you may remove or edit it.
20188 #
20189 # config.status only pays attention to the cache file if you give it
20190 # the --recheck option to rerun configure.
20191 #
20192 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20193 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20194 # following values.
20195
20196 _ACEOF
20197
20198 # The following way of writing the cache mishandles newlines in values,
20199 # but we know of no workaround that is simple, portable, and efficient.
20200 # So, we kill variables containing newlines.
20201 # Ultrix sh set writes to stderr and can't be redirected directly,
20202 # and sets the high bit in the cache file unless we assign to the vars.
20203 (
20204 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20205 eval ac_val=\$$ac_var
20206 case $ac_val in #(
20207 *${as_nl}*)
20208 case $ac_var in #(
20209 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20211 esac
20212 case $ac_var in #(
20213 _ | IFS | as_nl) ;; #(
20214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20215 *) $as_unset $ac_var ;;
20216 esac ;;
20217 esac
20218 done
20219
20220 (set) 2>&1 |
20221 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20222 *${as_nl}ac_space=\ *)
20223 # `set' does not quote correctly, so add quotes (double-quote
20224 # substitution turns \\\\ into \\, and sed turns \\ into \).
20225 sed -n \
20226 "s/'/'\\\\''/g;
20227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20228 ;; #(
20229 *)
20230 # `set' quotes correctly as required by POSIX, so do not add quotes.
20231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20232 ;;
20233 esac |
20234 sort
20235 ) |
20236 sed '
20237 /^ac_cv_env_/b end
20238 t clear
20239 :clear
20240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20241 t end
20242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20243 :end' >>confcache
20244 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20245 if test -w "$cache_file"; then
20246 test "x$cache_file" != "x/dev/null" &&
20247 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20248 $as_echo "$as_me: updating cache $cache_file" >&6;}
20249 cat confcache >$cache_file
20250 else
20251 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20252 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20253 fi
20254 fi
20255 rm -f confcache
20256
20257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20258 # Let make expand exec_prefix.
20259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20260
20261 DEFS=-DHAVE_CONFIG_H
20262
20263 ac_libobjs=
20264 ac_ltlibobjs=
20265 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20266 # 1. Remove the extension, and $U if already installed.
20267 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20268 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20269 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20270 # will be set to the directory where LIBOBJS objects are built.
20271 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20272 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20273 done
20274 LIBOBJS=$ac_libobjs
20275
20276 LTLIBOBJS=$ac_ltlibobjs
20277
20278
20279 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20280 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20281 Usually this means the macro was only invoked conditionally." >&5
20282 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20283 Usually this means the macro was only invoked conditionally." >&2;}
20284 { (exit 1); exit 1; }; }
20285 fi
20286 if test -n "$EXEEXT"; then
20287 am__EXEEXT_TRUE=
20288 am__EXEEXT_FALSE='#'
20289 else
20290 am__EXEEXT_TRUE='#'
20291 am__EXEEXT_FALSE=
20292 fi
20293
20294 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20295 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20296 Usually this means the macro was only invoked conditionally." >&5
20297 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20298 Usually this means the macro was only invoked conditionally." >&2;}
20299 { (exit 1); exit 1; }; }
20300 fi
20301 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20302 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20303 Usually this means the macro was only invoked conditionally." >&5
20304 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20305 Usually this means the macro was only invoked conditionally." >&2;}
20306 { (exit 1); exit 1; }; }
20307 fi
20308 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20309 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20310 Usually this means the macro was only invoked conditionally." >&5
20311 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20312 Usually this means the macro was only invoked conditionally." >&2;}
20313 { (exit 1); exit 1; }; }
20314 fi
20315 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20316 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20317 Usually this means the macro was only invoked conditionally." >&5
20318 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20319 Usually this means the macro was only invoked conditionally." >&2;}
20320 { (exit 1); exit 1; }; }
20321 fi
20322 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20323 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20324 Usually this means the macro was only invoked conditionally." >&5
20325 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20326 Usually this means the macro was only invoked conditionally." >&2;}
20327 { (exit 1); exit 1; }; }
20328 fi
20329
20330 : ${CONFIG_STATUS=./config.status}
20331 ac_write_fail=0
20332 ac_clean_files_save=$ac_clean_files
20333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20334 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20335 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20336 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20337 #! $SHELL
20338 # Generated by $as_me.
20339 # Run this file to recreate the current configuration.
20340 # Compiler output produced by configure, useful for debugging
20341 # configure, is in config.log if it exists.
20342
20343 debug=false
20344 ac_cs_recheck=false
20345 ac_cs_silent=false
20346 SHELL=\${CONFIG_SHELL-$SHELL}
20347 _ACEOF
20348
20349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20350 ## --------------------- ##
20351 ## M4sh Initialization. ##
20352 ## --------------------- ##
20353
20354 # Be more Bourne compatible
20355 DUALCASE=1; export DUALCASE # for MKS sh
20356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20357 emulate sh
20358 NULLCMD=:
20359 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20360 # is contrary to our usage. Disable this feature.
20361 alias -g '${1+"$@"}'='"$@"'
20362 setopt NO_GLOB_SUBST
20363 else
20364 case `(set -o) 2>/dev/null` in
20365 *posix*) set -o posix ;;
20366 esac
20367
20368 fi
20369
20370
20371
20372
20373 # PATH needs CR
20374 # Avoid depending upon Character Ranges.
20375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20378 as_cr_digits='0123456789'
20379 as_cr_alnum=$as_cr_Letters$as_cr_digits
20380
20381 as_nl='
20382 '
20383 export as_nl
20384 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20385 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20386 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20388 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20389 as_echo='printf %s\n'
20390 as_echo_n='printf %s'
20391 else
20392 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20393 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20394 as_echo_n='/usr/ucb/echo -n'
20395 else
20396 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20397 as_echo_n_body='eval
20398 arg=$1;
20399 case $arg in
20400 *"$as_nl"*)
20401 expr "X$arg" : "X\\(.*\\)$as_nl";
20402 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20403 esac;
20404 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20405 '
20406 export as_echo_n_body
20407 as_echo_n='sh -c $as_echo_n_body as_echo'
20408 fi
20409 export as_echo_body
20410 as_echo='sh -c $as_echo_body as_echo'
20411 fi
20412
20413 # The user is always right.
20414 if test "${PATH_SEPARATOR+set}" != set; then
20415 PATH_SEPARATOR=:
20416 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20417 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20418 PATH_SEPARATOR=';'
20419 }
20420 fi
20421
20422 # Support unset when possible.
20423 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20424 as_unset=unset
20425 else
20426 as_unset=false
20427 fi
20428
20429
20430 # IFS
20431 # We need space, tab and new line, in precisely that order. Quoting is
20432 # there to prevent editors from complaining about space-tab.
20433 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20434 # splitting by setting IFS to empty value.)
20435 IFS=" "" $as_nl"
20436
20437 # Find who we are. Look in the path if we contain no directory separator.
20438 case $0 in
20439 *[\\/]* ) as_myself=$0 ;;
20440 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20441 for as_dir in $PATH
20442 do
20443 IFS=$as_save_IFS
20444 test -z "$as_dir" && as_dir=.
20445 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20446 done
20447 IFS=$as_save_IFS
20448
20449 ;;
20450 esac
20451 # We did not find ourselves, most probably we were run as `sh COMMAND'
20452 # in which case we are not to be found in the path.
20453 if test "x$as_myself" = x; then
20454 as_myself=$0
20455 fi
20456 if test ! -f "$as_myself"; then
20457 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20458 { (exit 1); exit 1; }
20459 fi
20460
20461 # Work around bugs in pre-3.0 UWIN ksh.
20462 for as_var in ENV MAIL MAILPATH
20463 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20464 done
20465 PS1='$ '
20466 PS2='> '
20467 PS4='+ '
20468
20469 # NLS nuisances.
20470 LC_ALL=C
20471 export LC_ALL
20472 LANGUAGE=C
20473 export LANGUAGE
20474
20475 # Required to use basename.
20476 if expr a : '\(a\)' >/dev/null 2>&1 &&
20477 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20478 as_expr=expr
20479 else
20480 as_expr=false
20481 fi
20482
20483 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20484 as_basename=basename
20485 else
20486 as_basename=false
20487 fi
20488
20489
20490 # Name of the executable.
20491 as_me=`$as_basename -- "$0" ||
20492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20493 X"$0" : 'X\(//\)$' \| \
20494 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20495 $as_echo X/"$0" |
20496 sed '/^.*\/\([^/][^/]*\)\/*$/{
20497 s//\1/
20498 q
20499 }
20500 /^X\/\(\/\/\)$/{
20501 s//\1/
20502 q
20503 }
20504 /^X\/\(\/\).*/{
20505 s//\1/
20506 q
20507 }
20508 s/.*/./; q'`
20509
20510 # CDPATH.
20511 $as_unset CDPATH
20512
20513
20514
20515 as_lineno_1=$LINENO
20516 as_lineno_2=$LINENO
20517 test "x$as_lineno_1" != "x$as_lineno_2" &&
20518 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20519
20520 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20521 # uniformly replaced by the line number. The first 'sed' inserts a
20522 # line-number line after each line using $LINENO; the second 'sed'
20523 # does the real work. The second script uses 'N' to pair each
20524 # line-number line with the line containing $LINENO, and appends
20525 # trailing '-' during substitution so that $LINENO is not a special
20526 # case at line end.
20527 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20528 # scripts with optimization help from Paolo Bonzini. Blame Lee
20529 # E. McMahon (1931-1989) for sed's syntax. :-)
20530 sed -n '
20531 p
20532 /[$]LINENO/=
20533 ' <$as_myself |
20534 sed '
20535 s/[$]LINENO.*/&-/
20536 t lineno
20537 b
20538 :lineno
20539 N
20540 :loop
20541 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20542 t loop
20543 s/-\n.*//
20544 ' >$as_me.lineno &&
20545 chmod +x "$as_me.lineno" ||
20546 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20547 { (exit 1); exit 1; }; }
20548
20549 # Don't try to exec as it changes $[0], causing all sort of problems
20550 # (the dirname of $[0] is not the place where we might find the
20551 # original and so on. Autoconf is especially sensitive to this).
20552 . "./$as_me.lineno"
20553 # Exit status is that of the last command.
20554 exit
20555 }
20556
20557
20558 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20559 as_dirname=dirname
20560 else
20561 as_dirname=false
20562 fi
20563
20564 ECHO_C= ECHO_N= ECHO_T=
20565 case `echo -n x` in
20566 -n*)
20567 case `echo 'x\c'` in
20568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20569 *) ECHO_C='\c';;
20570 esac;;
20571 *)
20572 ECHO_N='-n';;
20573 esac
20574 if expr a : '\(a\)' >/dev/null 2>&1 &&
20575 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20576 as_expr=expr
20577 else
20578 as_expr=false
20579 fi
20580
20581 rm -f conf$$ conf$$.exe conf$$.file
20582 if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20584 else
20585 rm -f conf$$.dir
20586 mkdir conf$$.dir 2>/dev/null
20587 fi
20588 if (echo >conf$$.file) 2>/dev/null; then
20589 if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s='ln -s'
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -p'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596 as_ln_s='cp -p'
20597 elif ln conf$$.file conf$$ 2>/dev/null; then
20598 as_ln_s=ln
20599 else
20600 as_ln_s='cp -p'
20601 fi
20602 else
20603 as_ln_s='cp -p'
20604 fi
20605 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20606 rmdir conf$$.dir 2>/dev/null
20607
20608 if mkdir -p . 2>/dev/null; then
20609 as_mkdir_p=:
20610 else
20611 test -d ./-p && rmdir ./-p
20612 as_mkdir_p=false
20613 fi
20614
20615 if test -x / >/dev/null 2>&1; then
20616 as_test_x='test -x'
20617 else
20618 if ls -dL / >/dev/null 2>&1; then
20619 as_ls_L_option=L
20620 else
20621 as_ls_L_option=
20622 fi
20623 as_test_x='
20624 eval sh -c '\''
20625 if test -d "$1"; then
20626 test -d "$1/.";
20627 else
20628 case $1 in
20629 -*)set "./$1";;
20630 esac;
20631 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20632 ???[sx]*):;;*)false;;esac;fi
20633 '\'' sh
20634 '
20635 fi
20636 as_executable_p=$as_test_x
20637
20638 # Sed expression to map a string onto a valid CPP name.
20639 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20640
20641 # Sed expression to map a string onto a valid variable name.
20642 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20643
20644
20645 exec 6>&1
20646
20647 # Save the log message, to keep $[0] and so on meaningful, and to
20648 # report actual input values of CONFIG_FILES etc. instead of their
20649 # values after options handling.
20650 ac_log="
20651 This file was extended by $as_me, which was
20652 generated by GNU Autoconf 2.63. Invocation command line was
20653
20654 CONFIG_FILES = $CONFIG_FILES
20655 CONFIG_HEADERS = $CONFIG_HEADERS
20656 CONFIG_LINKS = $CONFIG_LINKS
20657 CONFIG_COMMANDS = $CONFIG_COMMANDS
20658 $ $0 $@
20659
20660 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20661 "
20662
20663 _ACEOF
20664
20665 case $ac_config_files in *"
20666 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20667 esac
20668
20669 case $ac_config_headers in *"
20670 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20671 esac
20672
20673
20674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675 # Files that config.status was made for.
20676 config_files="$ac_config_files"
20677 config_headers="$ac_config_headers"
20678 config_commands="$ac_config_commands"
20679
20680 _ACEOF
20681
20682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20683 ac_cs_usage="\
20684 \`$as_me' instantiates files from templates according to the
20685 current configuration.
20686
20687 Usage: $0 [OPTION]... [FILE]...
20688
20689 -h, --help print this help, then exit
20690 -V, --version print version number and configuration settings, then exit
20691 -q, --quiet, --silent
20692 do not print progress messages
20693 -d, --debug don't remove temporary files
20694 --recheck update $as_me by reconfiguring in the same conditions
20695 --file=FILE[:TEMPLATE]
20696 instantiate the configuration file FILE
20697 --header=FILE[:TEMPLATE]
20698 instantiate the configuration header FILE
20699
20700 Configuration files:
20701 $config_files
20702
20703 Configuration headers:
20704 $config_headers
20705
20706 Configuration commands:
20707 $config_commands
20708
20709 Report bugs to <bug-autoconf@gnu.org>."
20710
20711 _ACEOF
20712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20713 ac_cs_version="\\
20714 config.status
20715 configured by $0, generated by GNU Autoconf 2.63,
20716 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20717
20718 Copyright (C) 2008 Free Software Foundation, Inc.
20719 This config.status script is free software; the Free Software Foundation
20720 gives unlimited permission to copy, distribute and modify it."
20721
20722 ac_pwd='$ac_pwd'
20723 srcdir='$srcdir'
20724 INSTALL='$INSTALL'
20725 MKDIR_P='$MKDIR_P'
20726 AWK='$AWK'
20727 test -n "\$AWK" || AWK=awk
20728 _ACEOF
20729
20730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20731 # The default lists apply if the user does not specify any file.
20732 ac_need_defaults=:
20733 while test $# != 0
20734 do
20735 case $1 in
20736 --*=*)
20737 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20738 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20739 ac_shift=:
20740 ;;
20741 *)
20742 ac_option=$1
20743 ac_optarg=$2
20744 ac_shift=shift
20745 ;;
20746 esac
20747
20748 case $ac_option in
20749 # Handling of the options.
20750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20751 ac_cs_recheck=: ;;
20752 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20753 $as_echo "$ac_cs_version"; exit ;;
20754 --debug | --debu | --deb | --de | --d | -d )
20755 debug=: ;;
20756 --file | --fil | --fi | --f )
20757 $ac_shift
20758 case $ac_optarg in
20759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20760 esac
20761 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20762 ac_need_defaults=false;;
20763 --header | --heade | --head | --hea )
20764 $ac_shift
20765 case $ac_optarg in
20766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20767 esac
20768 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20769 ac_need_defaults=false;;
20770 --he | --h)
20771 # Conflict between --help and --header
20772 { $as_echo "$as_me: error: ambiguous option: $1
20773 Try \`$0 --help' for more information." >&2
20774 { (exit 1); exit 1; }; };;
20775 --help | --hel | -h )
20776 $as_echo "$ac_cs_usage"; exit ;;
20777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20779 ac_cs_silent=: ;;
20780
20781 # This is an error.
20782 -*) { $as_echo "$as_me: error: unrecognized option: $1
20783 Try \`$0 --help' for more information." >&2
20784 { (exit 1); exit 1; }; } ;;
20785
20786 *) ac_config_targets="$ac_config_targets $1"
20787 ac_need_defaults=false ;;
20788
20789 esac
20790 shift
20791 done
20792
20793 ac_configure_extra_args=
20794
20795 if $ac_cs_silent; then
20796 exec 6>/dev/null
20797 ac_configure_extra_args="$ac_configure_extra_args --silent"
20798 fi
20799
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20802 if \$ac_cs_recheck; then
20803 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20804 shift
20805 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20806 CONFIG_SHELL='$SHELL'
20807 export CONFIG_SHELL
20808 exec "\$@"
20809 fi
20810
20811 _ACEOF
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 exec 5>>config.log
20814 {
20815 echo
20816 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20817 ## Running $as_me. ##
20818 _ASBOX
20819 $as_echo "$ac_log"
20820 } >&5
20821
20822 _ACEOF
20823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20824 #
20825 # INIT-COMMANDS
20826 #
20827 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20828
20829
20830 # The HP-UX ksh and POSIX shell print the target directory to stdout
20831 # if CDPATH is set.
20832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20833
20834 sed_quote_subst='$sed_quote_subst'
20835 double_quote_subst='$double_quote_subst'
20836 delay_variable_subst='$delay_variable_subst'
20837 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20838 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20839 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20840 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20841 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20842 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20843 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20844 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20845 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20846 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20847 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20848 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20849 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20850 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20851 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20852 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20853 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20854 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20855 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20856 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20857 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20858 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20859 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20860 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20861 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20862 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20863 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20864 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20865 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20866 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20867 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20868 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20869 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20870 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20871 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20872 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20873 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20874 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20875 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20876 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20877 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20878 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20879 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20880 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20881 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"`'
20882 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"`'
20883 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20884 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20885 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20886 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20887 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20888 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20889 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20890 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20891 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20892 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20893 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20894 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20895 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20896 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20897 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20898 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20899 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20900 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20901 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20902 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20903 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20904 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20905 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20906 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20907 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20908 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20909 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20910 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20911 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20912 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20913 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20914 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20915 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20916 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20917 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20918 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20919 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20920 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20921 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20922 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20923 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20924 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20925 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20926 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20927 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20928 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20929 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20930 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20931 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20932 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20933 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20934 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20935 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20936 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20937 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20938 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20939 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20940 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20941 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20942 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20943 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20944 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20945 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20946 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20947 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20948 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20949 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20950 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20951 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20952 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20953 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20954 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20955
20956 LTCC='$LTCC'
20957 LTCFLAGS='$LTCFLAGS'
20958 compiler='$compiler_DEFAULT'
20959
20960 # Quote evaled strings.
20961 for var in SED \
20962 GREP \
20963 EGREP \
20964 FGREP \
20965 LD \
20966 NM \
20967 LN_S \
20968 lt_SP2NL \
20969 lt_NL2SP \
20970 reload_flag \
20971 OBJDUMP \
20972 deplibs_check_method \
20973 file_magic_cmd \
20974 AR \
20975 AR_FLAGS \
20976 STRIP \
20977 RANLIB \
20978 CC \
20979 CFLAGS \
20980 compiler \
20981 lt_cv_sys_global_symbol_pipe \
20982 lt_cv_sys_global_symbol_to_cdecl \
20983 lt_cv_sys_global_symbol_to_c_name_address \
20984 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20985 SHELL \
20986 ECHO \
20987 lt_prog_compiler_no_builtin_flag \
20988 lt_prog_compiler_wl \
20989 lt_prog_compiler_pic \
20990 lt_prog_compiler_static \
20991 lt_cv_prog_compiler_c_o \
20992 need_locks \
20993 DSYMUTIL \
20994 NMEDIT \
20995 LIPO \
20996 OTOOL \
20997 OTOOL64 \
20998 shrext_cmds \
20999 export_dynamic_flag_spec \
21000 whole_archive_flag_spec \
21001 compiler_needs_object \
21002 with_gnu_ld \
21003 allow_undefined_flag \
21004 no_undefined_flag \
21005 hardcode_libdir_flag_spec \
21006 hardcode_libdir_flag_spec_ld \
21007 hardcode_libdir_separator \
21008 fix_srcfile_path \
21009 exclude_expsyms \
21010 include_expsyms \
21011 file_list_spec \
21012 variables_saved_for_relink \
21013 libname_spec \
21014 library_names_spec \
21015 soname_spec \
21016 finish_eval \
21017 old_striplib \
21018 striplib; do
21019 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21020 *[\\\\\\\`\\"\\\$]*)
21021 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21022 ;;
21023 *)
21024 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21025 ;;
21026 esac
21027 done
21028
21029 # Double-quote double-evaled strings.
21030 for var in reload_cmds \
21031 old_postinstall_cmds \
21032 old_postuninstall_cmds \
21033 old_archive_cmds \
21034 extract_expsyms_cmds \
21035 old_archive_from_new_cmds \
21036 old_archive_from_expsyms_cmds \
21037 archive_cmds \
21038 archive_expsym_cmds \
21039 module_cmds \
21040 module_expsym_cmds \
21041 export_symbols_cmds \
21042 prelink_cmds \
21043 postinstall_cmds \
21044 postuninstall_cmds \
21045 finish_cmds \
21046 sys_lib_search_path_spec \
21047 sys_lib_dlsearch_path_spec; do
21048 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21049 *[\\\\\\\`\\"\\\$]*)
21050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21051 ;;
21052 *)
21053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21054 ;;
21055 esac
21056 done
21057
21058 # Fix-up fallback echo if it was mangled by the above quoting rules.
21059 case \$lt_ECHO in
21060 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21061 ;;
21062 esac
21063
21064 ac_aux_dir='$ac_aux_dir'
21065 xsi_shell='$xsi_shell'
21066 lt_shell_append='$lt_shell_append'
21067
21068 # See if we are running on zsh, and set the options which allow our
21069 # commands through without removal of \ escapes INIT.
21070 if test -n "\${ZSH_VERSION+set}" ; then
21071 setopt NO_GLOB_SUBST
21072 fi
21073
21074
21075 PACKAGE='$PACKAGE'
21076 VERSION='$VERSION'
21077 TIMESTAMP='$TIMESTAMP'
21078 RM='$RM'
21079 ofile='$ofile'
21080
21081
21082
21083
21084 _ACEOF
21085
21086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21087
21088 # Handling of arguments.
21089 for ac_config_target in $ac_config_targets
21090 do
21091 case $ac_config_target in
21092 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
21093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21096 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
21097 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
21098 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
21099 "etc/udev/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/Makefile" ;;
21100 "etc/udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/udev/rules.d/Makefile" ;;
21101 "etc/udev/rules.d/60-zpool.rules") CONFIG_FILES="$CONFIG_FILES etc/udev/rules.d/60-zpool.rules" ;;
21102 "etc/udev/rules.d/60-zvol.rules") CONFIG_FILES="$CONFIG_FILES etc/udev/rules.d/60-zvol.rules" ;;
21103 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
21104 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
21105 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21106 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21107 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21108 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
21109 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
21110 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
21111 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
21112 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
21113 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
21114 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
21115 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
21116 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
21117 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
21118 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
21119 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
21120 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
21121 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
21122 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
21123 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
21124 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
21125 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
21126 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
21127 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21128 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
21129 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
21130 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
21131 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
21132 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
21133 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
21134 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
21135 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
21136 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
21137 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
21138 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21139 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
21140 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
21141 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
21142 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
21143 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
21144 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
21145 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21146 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
21147 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
21148 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
21149 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
21150 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
21151 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21152 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
21153 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
21154 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
21155 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
21156 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
21157 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
21158 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
21159 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
21160
21161 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163 { (exit 1); exit 1; }; };;
21164 esac
21165 done
21166
21167
21168 # If the user did not use the arguments to specify the items to instantiate,
21169 # then the envvar interface is used. Set only those that are not.
21170 # We use the long form for the default assignment because of an extremely
21171 # bizarre bug on SunOS 4.1.3.
21172 if $ac_need_defaults; then
21173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21176 fi
21177
21178 # Have a temporary directory for convenience. Make it in the build tree
21179 # simply because there is no reason against having it here, and in addition,
21180 # creating and moving files from /tmp can sometimes cause problems.
21181 # Hook for its removal unless debugging.
21182 # Note that there is a small window in which the directory will not be cleaned:
21183 # after its creation but before its name has been assigned to `$tmp'.
21184 $debug ||
21185 {
21186 tmp=
21187 trap 'exit_status=$?
21188 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21189 ' 0
21190 trap '{ (exit 1); exit 1; }' 1 2 13 15
21191 }
21192 # Create a (secure) tmp directory for tmp files.
21193
21194 {
21195 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21196 test -n "$tmp" && test -d "$tmp"
21197 } ||
21198 {
21199 tmp=./conf$$-$RANDOM
21200 (umask 077 && mkdir "$tmp")
21201 } ||
21202 {
21203 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21204 { (exit 1); exit 1; }
21205 }
21206
21207 # Set up the scripts for CONFIG_FILES section.
21208 # No need to generate them if there are no CONFIG_FILES.
21209 # This happens for instance with `./config.status config.h'.
21210 if test -n "$CONFIG_FILES"; then
21211
21212
21213 ac_cr=' '
21214 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21215 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21216 ac_cs_awk_cr='\\r'
21217 else
21218 ac_cs_awk_cr=$ac_cr
21219 fi
21220
21221 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21222 _ACEOF
21223
21224
21225 {
21226 echo "cat >conf$$subs.awk <<_ACEOF" &&
21227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21228 echo "_ACEOF"
21229 } >conf$$subs.sh ||
21230 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21231 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21232 { (exit 1); exit 1; }; }
21233 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21234 ac_delim='%!_!# '
21235 for ac_last_try in false false false false false :; do
21236 . ./conf$$subs.sh ||
21237 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21238 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21239 { (exit 1); exit 1; }; }
21240
21241 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21242 if test $ac_delim_n = $ac_delim_num; then
21243 break
21244 elif $ac_last_try; then
21245 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21246 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21247 { (exit 1); exit 1; }; }
21248 else
21249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21250 fi
21251 done
21252 rm -f conf$$subs.sh
21253
21254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21255 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21256 _ACEOF
21257 sed -n '
21258 h
21259 s/^/S["/; s/!.*/"]=/
21260 p
21261 g
21262 s/^[^!]*!//
21263 :repl
21264 t repl
21265 s/'"$ac_delim"'$//
21266 t delim
21267 :nl
21268 h
21269 s/\(.\{148\}\).*/\1/
21270 t more1
21271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21272 p
21273 n
21274 b repl
21275 :more1
21276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21277 p
21278 g
21279 s/.\{148\}//
21280 t nl
21281 :delim
21282 h
21283 s/\(.\{148\}\).*/\1/
21284 t more2
21285 s/["\\]/\\&/g; s/^/"/; s/$/"/
21286 p
21287 b
21288 :more2
21289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21290 p
21291 g
21292 s/.\{148\}//
21293 t delim
21294 ' <conf$$subs.awk | sed '
21295 /^[^""]/{
21296 N
21297 s/\n//
21298 }
21299 ' >>$CONFIG_STATUS || ac_write_fail=1
21300 rm -f conf$$subs.awk
21301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21302 _ACAWK
21303 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21304 for (key in S) S_is_set[key] = 1
21305 FS = "\a"
21306
21307 }
21308 {
21309 line = $ 0
21310 nfields = split(line, field, "@")
21311 substed = 0
21312 len = length(field[1])
21313 for (i = 2; i < nfields; i++) {
21314 key = field[i]
21315 keylen = length(key)
21316 if (S_is_set[key]) {
21317 value = S[key]
21318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21319 len += length(value) + length(field[++i])
21320 substed = 1
21321 } else
21322 len += 1 + keylen
21323 }
21324
21325 print line
21326 }
21327
21328 _ACAWK
21329 _ACEOF
21330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21333 else
21334 cat
21335 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21336 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21337 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21338 { (exit 1); exit 1; }; }
21339 _ACEOF
21340
21341 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21342 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21343 # trailing colons and then remove the whole line if VPATH becomes empty
21344 # (actually we leave an empty line to preserve line numbers).
21345 if test "x$srcdir" = x.; then
21346 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21347 s/:*\$(srcdir):*/:/
21348 s/:*\${srcdir}:*/:/
21349 s/:*@srcdir@:*/:/
21350 s/^\([^=]*=[ ]*\):*/\1/
21351 s/:*$//
21352 s/^[^=]*=[ ]*$//
21353 }'
21354 fi
21355
21356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21357 fi # test -n "$CONFIG_FILES"
21358
21359 # Set up the scripts for CONFIG_HEADERS section.
21360 # No need to generate them if there are no CONFIG_HEADERS.
21361 # This happens for instance with `./config.status Makefile'.
21362 if test -n "$CONFIG_HEADERS"; then
21363 cat >"$tmp/defines.awk" <<\_ACAWK ||
21364 BEGIN {
21365 _ACEOF
21366
21367 # Transform confdefs.h into an awk script `defines.awk', embedded as
21368 # here-document in config.status, that substitutes the proper values into
21369 # config.h.in to produce config.h.
21370
21371 # Create a delimiter string that does not exist in confdefs.h, to ease
21372 # handling of long lines.
21373 ac_delim='%!_!# '
21374 for ac_last_try in false false :; do
21375 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21376 if test -z "$ac_t"; then
21377 break
21378 elif $ac_last_try; then
21379 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21380 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21381 { (exit 1); exit 1; }; }
21382 else
21383 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21384 fi
21385 done
21386
21387 # For the awk script, D is an array of macro values keyed by name,
21388 # likewise P contains macro parameters if any. Preserve backslash
21389 # newline sequences.
21390
21391 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21392 sed -n '
21393 s/.\{148\}/&'"$ac_delim"'/g
21394 t rset
21395 :rset
21396 s/^[ ]*#[ ]*define[ ][ ]*/ /
21397 t def
21398 d
21399 :def
21400 s/\\$//
21401 t bsnl
21402 s/["\\]/\\&/g
21403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21404 D["\1"]=" \3"/p
21405 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21406 d
21407 :bsnl
21408 s/["\\]/\\&/g
21409 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21410 D["\1"]=" \3\\\\\\n"\\/p
21411 t cont
21412 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21413 t cont
21414 d
21415 :cont
21416 n
21417 s/.\{148\}/&'"$ac_delim"'/g
21418 t clear
21419 :clear
21420 s/\\$//
21421 t bsnlc
21422 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21423 d
21424 :bsnlc
21425 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21426 b cont
21427 ' <confdefs.h | sed '
21428 s/'"$ac_delim"'/"\\\
21429 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21430
21431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21432 for (key in D) D_is_set[key] = 1
21433 FS = "\a"
21434 }
21435 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21436 line = \$ 0
21437 split(line, arg, " ")
21438 if (arg[1] == "#") {
21439 defundef = arg[2]
21440 mac1 = arg[3]
21441 } else {
21442 defundef = substr(arg[1], 2)
21443 mac1 = arg[2]
21444 }
21445 split(mac1, mac2, "(") #)
21446 macro = mac2[1]
21447 prefix = substr(line, 1, index(line, defundef) - 1)
21448 if (D_is_set[macro]) {
21449 # Preserve the white space surrounding the "#".
21450 print prefix "define", macro P[macro] D[macro]
21451 next
21452 } else {
21453 # Replace #undef with comments. This is necessary, for example,
21454 # in the case of _POSIX_SOURCE, which is predefined and required
21455 # on some systems where configure will not decide to define it.
21456 if (defundef == "undef") {
21457 print "/*", prefix defundef, macro, "*/"
21458 next
21459 }
21460 }
21461 }
21462 { print }
21463 _ACAWK
21464 _ACEOF
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21466 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21467 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21468 { (exit 1); exit 1; }; }
21469 fi # test -n "$CONFIG_HEADERS"
21470
21471
21472 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21473 shift
21474 for ac_tag
21475 do
21476 case $ac_tag in
21477 :[FHLC]) ac_mode=$ac_tag; continue;;
21478 esac
21479 case $ac_mode$ac_tag in
21480 :[FHL]*:*);;
21481 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21482 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21483 { (exit 1); exit 1; }; };;
21484 :[FH]-) ac_tag=-:-;;
21485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21486 esac
21487 ac_save_IFS=$IFS
21488 IFS=:
21489 set x $ac_tag
21490 IFS=$ac_save_IFS
21491 shift
21492 ac_file=$1
21493 shift
21494
21495 case $ac_mode in
21496 :L) ac_source=$1;;
21497 :[FH])
21498 ac_file_inputs=
21499 for ac_f
21500 do
21501 case $ac_f in
21502 -) ac_f="$tmp/stdin";;
21503 *) # Look for the file first in the build tree, then in the source tree
21504 # (if the path is not absolute). The absolute path cannot be DOS-style,
21505 # because $ac_f cannot contain `:'.
21506 test -f "$ac_f" ||
21507 case $ac_f in
21508 [\\/$]*) false;;
21509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21510 esac ||
21511 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21512 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21513 { (exit 1); exit 1; }; };;
21514 esac
21515 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21516 ac_file_inputs="$ac_file_inputs '$ac_f'"
21517 done
21518
21519 # Let's still pretend it is `configure' which instantiates (i.e., don't
21520 # use $as_me), people would be surprised to read:
21521 # /* config.h. Generated by config.status. */
21522 configure_input='Generated from '`
21523 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21524 `' by configure.'
21525 if test x"$ac_file" != x-; then
21526 configure_input="$ac_file. $configure_input"
21527 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21528 $as_echo "$as_me: creating $ac_file" >&6;}
21529 fi
21530 # Neutralize special characters interpreted by sed in replacement strings.
21531 case $configure_input in #(
21532 *\&* | *\|* | *\\* )
21533 ac_sed_conf_input=`$as_echo "$configure_input" |
21534 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21535 *) ac_sed_conf_input=$configure_input;;
21536 esac
21537
21538 case $ac_tag in
21539 *:-:* | *:-) cat >"$tmp/stdin" \
21540 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21541 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21542 { (exit 1); exit 1; }; } ;;
21543 esac
21544 ;;
21545 esac
21546
21547 ac_dir=`$as_dirname -- "$ac_file" ||
21548 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21549 X"$ac_file" : 'X\(//\)[^/]' \| \
21550 X"$ac_file" : 'X\(//\)$' \| \
21551 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21552 $as_echo X"$ac_file" |
21553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21554 s//\1/
21555 q
21556 }
21557 /^X\(\/\/\)[^/].*/{
21558 s//\1/
21559 q
21560 }
21561 /^X\(\/\/\)$/{
21562 s//\1/
21563 q
21564 }
21565 /^X\(\/\).*/{
21566 s//\1/
21567 q
21568 }
21569 s/.*/./; q'`
21570 { as_dir="$ac_dir"
21571 case $as_dir in #(
21572 -*) as_dir=./$as_dir;;
21573 esac
21574 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21575 as_dirs=
21576 while :; do
21577 case $as_dir in #(
21578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21579 *) as_qdir=$as_dir;;
21580 esac
21581 as_dirs="'$as_qdir' $as_dirs"
21582 as_dir=`$as_dirname -- "$as_dir" ||
21583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21584 X"$as_dir" : 'X\(//\)[^/]' \| \
21585 X"$as_dir" : 'X\(//\)$' \| \
21586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21587 $as_echo X"$as_dir" |
21588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21589 s//\1/
21590 q
21591 }
21592 /^X\(\/\/\)[^/].*/{
21593 s//\1/
21594 q
21595 }
21596 /^X\(\/\/\)$/{
21597 s//\1/
21598 q
21599 }
21600 /^X\(\/\).*/{
21601 s//\1/
21602 q
21603 }
21604 s/.*/./; q'`
21605 test -d "$as_dir" && break
21606 done
21607 test -z "$as_dirs" || eval "mkdir $as_dirs"
21608 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21609 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21610 { (exit 1); exit 1; }; }; }
21611 ac_builddir=.
21612
21613 case "$ac_dir" in
21614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21615 *)
21616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21617 # A ".." for each directory in $ac_dir_suffix.
21618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21619 case $ac_top_builddir_sub in
21620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21622 esac ;;
21623 esac
21624 ac_abs_top_builddir=$ac_pwd
21625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21626 # for backward compatibility:
21627 ac_top_builddir=$ac_top_build_prefix
21628
21629 case $srcdir in
21630 .) # We are building in place.
21631 ac_srcdir=.
21632 ac_top_srcdir=$ac_top_builddir_sub
21633 ac_abs_top_srcdir=$ac_pwd ;;
21634 [\\/]* | ?:[\\/]* ) # Absolute name.
21635 ac_srcdir=$srcdir$ac_dir_suffix;
21636 ac_top_srcdir=$srcdir
21637 ac_abs_top_srcdir=$srcdir ;;
21638 *) # Relative name.
21639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21640 ac_top_srcdir=$ac_top_build_prefix$srcdir
21641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21642 esac
21643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21644
21645
21646 case $ac_mode in
21647 :F)
21648 #
21649 # CONFIG_FILE
21650 #
21651
21652 case $INSTALL in
21653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21655 esac
21656 ac_MKDIR_P=$MKDIR_P
21657 case $MKDIR_P in
21658 [\\/$]* | ?:[\\/]* ) ;;
21659 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21660 esac
21661 _ACEOF
21662
21663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21664 # If the template does not know about datarootdir, expand it.
21665 # FIXME: This hack should be removed a few years after 2.60.
21666 ac_datarootdir_hack=; ac_datarootdir_seen=
21667
21668 ac_sed_dataroot='
21669 /datarootdir/ {
21670 p
21671 q
21672 }
21673 /@datadir@/p
21674 /@docdir@/p
21675 /@infodir@/p
21676 /@localedir@/p
21677 /@mandir@/p
21678 '
21679 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21680 *datarootdir*) ac_datarootdir_seen=yes;;
21681 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21682 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21683 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21684 _ACEOF
21685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21686 ac_datarootdir_hack='
21687 s&@datadir@&$datadir&g
21688 s&@docdir@&$docdir&g
21689 s&@infodir@&$infodir&g
21690 s&@localedir@&$localedir&g
21691 s&@mandir@&$mandir&g
21692 s&\\\${datarootdir}&$datarootdir&g' ;;
21693 esac
21694 _ACEOF
21695
21696 # Neutralize VPATH when `$srcdir' = `.'.
21697 # Shell code in configure.ac might set extrasub.
21698 # FIXME: do we really want to maintain this feature?
21699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21700 ac_sed_extra="$ac_vpsub
21701 $extrasub
21702 _ACEOF
21703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21704 :t
21705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21706 s|@configure_input@|$ac_sed_conf_input|;t t
21707 s&@top_builddir@&$ac_top_builddir_sub&;t t
21708 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21709 s&@srcdir@&$ac_srcdir&;t t
21710 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21711 s&@top_srcdir@&$ac_top_srcdir&;t t
21712 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21713 s&@builddir@&$ac_builddir&;t t
21714 s&@abs_builddir@&$ac_abs_builddir&;t t
21715 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21716 s&@INSTALL@&$ac_INSTALL&;t t
21717 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21718 $ac_datarootdir_hack
21719 "
21720 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21721 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21722 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21723 { (exit 1); exit 1; }; }
21724
21725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21728 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21729 which seems to be undefined. Please make sure it is defined." >&5
21730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21731 which seems to be undefined. Please make sure it is defined." >&2;}
21732
21733 rm -f "$tmp/stdin"
21734 case $ac_file in
21735 -) cat "$tmp/out" && rm -f "$tmp/out";;
21736 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21737 esac \
21738 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21739 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21740 { (exit 1); exit 1; }; }
21741 ;;
21742 :H)
21743 #
21744 # CONFIG_HEADER
21745 #
21746 if test x"$ac_file" != x-; then
21747 {
21748 $as_echo "/* $configure_input */" \
21749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21750 } >"$tmp/config.h" \
21751 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21752 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21753 { (exit 1); exit 1; }; }
21754 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21755 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21756 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21757 else
21758 rm -f "$ac_file"
21759 mv "$tmp/config.h" "$ac_file" \
21760 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21761 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21762 { (exit 1); exit 1; }; }
21763 fi
21764 else
21765 $as_echo "/* $configure_input */" \
21766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21767 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21768 $as_echo "$as_me: error: could not create -" >&2;}
21769 { (exit 1); exit 1; }; }
21770 fi
21771 # Compute "$ac_file"'s index in $config_headers.
21772 _am_arg="$ac_file"
21773 _am_stamp_count=1
21774 for _am_header in $config_headers :; do
21775 case $_am_header in
21776 $_am_arg | $_am_arg:* )
21777 break ;;
21778 * )
21779 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21780 esac
21781 done
21782 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21783 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21784 X"$_am_arg" : 'X\(//\)[^/]' \| \
21785 X"$_am_arg" : 'X\(//\)$' \| \
21786 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21787 $as_echo X"$_am_arg" |
21788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21789 s//\1/
21790 q
21791 }
21792 /^X\(\/\/\)[^/].*/{
21793 s//\1/
21794 q
21795 }
21796 /^X\(\/\/\)$/{
21797 s//\1/
21798 q
21799 }
21800 /^X\(\/\).*/{
21801 s//\1/
21802 q
21803 }
21804 s/.*/./; q'`/stamp-h$_am_stamp_count
21805 ;;
21806
21807 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21808 $as_echo "$as_me: executing $ac_file commands" >&6;}
21809 ;;
21810 esac
21811
21812
21813 case $ac_file$ac_mode in
21814 "zfs_config.h":H)
21815 (mv zfs_config.h zfs_config.h.tmp &&
21816 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
21817 rm zfs_config.h.tmp) || exit 1 ;;
21818 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21819 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21820 # are listed without --file. Let's play safe and only enable the eval
21821 # if we detect the quoting.
21822 case $CONFIG_FILES in
21823 *\'*) eval set x "$CONFIG_FILES" ;;
21824 *) set x $CONFIG_FILES ;;
21825 esac
21826 shift
21827 for mf
21828 do
21829 # Strip MF so we end up with the name of the file.
21830 mf=`echo "$mf" | sed -e 's/:.*$//'`
21831 # Check whether this is an Automake generated Makefile or not.
21832 # We used to match only the files named `Makefile.in', but
21833 # some people rename them; so instead we look at the file content.
21834 # Grep'ing the first line is not enough: some people post-process
21835 # each Makefile.in and add a new line on top of each file to say so.
21836 # Grep'ing the whole file is not good either: AIX grep has a line
21837 # limit of 2048, but all sed's we know have understand at least 4000.
21838 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21839 dirpart=`$as_dirname -- "$mf" ||
21840 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21841 X"$mf" : 'X\(//\)[^/]' \| \
21842 X"$mf" : 'X\(//\)$' \| \
21843 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21844 $as_echo X"$mf" |
21845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21846 s//\1/
21847 q
21848 }
21849 /^X\(\/\/\)[^/].*/{
21850 s//\1/
21851 q
21852 }
21853 /^X\(\/\/\)$/{
21854 s//\1/
21855 q
21856 }
21857 /^X\(\/\).*/{
21858 s//\1/
21859 q
21860 }
21861 s/.*/./; q'`
21862 else
21863 continue
21864 fi
21865 # Extract the definition of DEPDIR, am__include, and am__quote
21866 # from the Makefile without running `make'.
21867 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21868 test -z "$DEPDIR" && continue
21869 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21870 test -z "am__include" && continue
21871 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21872 # When using ansi2knr, U may be empty or an underscore; expand it
21873 U=`sed -n 's/^U = //p' < "$mf"`
21874 # Find all dependency output files, they are included files with
21875 # $(DEPDIR) in their names. We invoke sed twice because it is the
21876 # simplest approach to changing $(DEPDIR) to its actual value in the
21877 # expansion.
21878 for file in `sed -n "
21879 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21880 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21881 # Make sure the directory exists.
21882 test -f "$dirpart/$file" && continue
21883 fdir=`$as_dirname -- "$file" ||
21884 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885 X"$file" : 'X\(//\)[^/]' \| \
21886 X"$file" : 'X\(//\)$' \| \
21887 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21888 $as_echo X"$file" |
21889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890 s//\1/
21891 q
21892 }
21893 /^X\(\/\/\)[^/].*/{
21894 s//\1/
21895 q
21896 }
21897 /^X\(\/\/\)$/{
21898 s//\1/
21899 q
21900 }
21901 /^X\(\/\).*/{
21902 s//\1/
21903 q
21904 }
21905 s/.*/./; q'`
21906 { as_dir=$dirpart/$fdir
21907 case $as_dir in #(
21908 -*) as_dir=./$as_dir;;
21909 esac
21910 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21911 as_dirs=
21912 while :; do
21913 case $as_dir in #(
21914 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21915 *) as_qdir=$as_dir;;
21916 esac
21917 as_dirs="'$as_qdir' $as_dirs"
21918 as_dir=`$as_dirname -- "$as_dir" ||
21919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21920 X"$as_dir" : 'X\(//\)[^/]' \| \
21921 X"$as_dir" : 'X\(//\)$' \| \
21922 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21923 $as_echo X"$as_dir" |
21924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21925 s//\1/
21926 q
21927 }
21928 /^X\(\/\/\)[^/].*/{
21929 s//\1/
21930 q
21931 }
21932 /^X\(\/\/\)$/{
21933 s//\1/
21934 q
21935 }
21936 /^X\(\/\).*/{
21937 s//\1/
21938 q
21939 }
21940 s/.*/./; q'`
21941 test -d "$as_dir" && break
21942 done
21943 test -z "$as_dirs" || eval "mkdir $as_dirs"
21944 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21945 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21946 { (exit 1); exit 1; }; }; }
21947 # echo "creating $dirpart/$file"
21948 echo '# dummy' > "$dirpart/$file"
21949 done
21950 done
21951 }
21952 ;;
21953 "libtool":C)
21954
21955 # See if we are running on zsh, and set the options which allow our
21956 # commands through without removal of \ escapes.
21957 if test -n "${ZSH_VERSION+set}" ; then
21958 setopt NO_GLOB_SUBST
21959 fi
21960
21961 cfgfile="${ofile}T"
21962 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21963 $RM "$cfgfile"
21964
21965 cat <<_LT_EOF >> "$cfgfile"
21966 #! $SHELL
21967
21968 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21969 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21971 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21972 #
21973 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21974 # 2006, 2007, 2008 Free Software Foundation, Inc.
21975 # Written by Gordon Matzigkeit, 1996
21976 #
21977 # This file is part of GNU Libtool.
21978 #
21979 # GNU Libtool is free software; you can redistribute it and/or
21980 # modify it under the terms of the GNU General Public License as
21981 # published by the Free Software Foundation; either version 2 of
21982 # the License, or (at your option) any later version.
21983 #
21984 # As a special exception to the GNU General Public License,
21985 # if you distribute this file as part of a program or library that
21986 # is built using GNU Libtool, you may include this file under the
21987 # same distribution terms that you use for the rest of that program.
21988 #
21989 # GNU Libtool is distributed in the hope that it will be useful,
21990 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21992 # GNU General Public License for more details.
21993 #
21994 # You should have received a copy of the GNU General Public License
21995 # along with GNU Libtool; see the file COPYING. If not, a copy
21996 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21997 # obtained by writing to the Free Software Foundation, Inc.,
21998 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21999
22000
22001 # The names of the tagged configurations supported by this script.
22002 available_tags=""
22003
22004 # ### BEGIN LIBTOOL CONFIG
22005
22006 # Which release of libtool.m4 was used?
22007 macro_version=$macro_version
22008 macro_revision=$macro_revision
22009
22010 # Whether or not to build shared libraries.
22011 build_libtool_libs=$enable_shared
22012
22013 # Whether or not to build static libraries.
22014 build_old_libs=$enable_static
22015
22016 # What type of objects to build.
22017 pic_mode=$pic_mode
22018
22019 # Whether or not to optimize for fast installation.
22020 fast_install=$enable_fast_install
22021
22022 # The host system.
22023 host_alias=$host_alias
22024 host=$host
22025 host_os=$host_os
22026
22027 # The build system.
22028 build_alias=$build_alias
22029 build=$build
22030 build_os=$build_os
22031
22032 # A sed program that does not truncate output.
22033 SED=$lt_SED
22034
22035 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22036 Xsed="\$SED -e 1s/^X//"
22037
22038 # A grep program that handles long lines.
22039 GREP=$lt_GREP
22040
22041 # An ERE matcher.
22042 EGREP=$lt_EGREP
22043
22044 # A literal string matcher.
22045 FGREP=$lt_FGREP
22046
22047 # A BSD- or MS-compatible name lister.
22048 NM=$lt_NM
22049
22050 # Whether we need soft or hard links.
22051 LN_S=$lt_LN_S
22052
22053 # What is the maximum length of a command?
22054 max_cmd_len=$max_cmd_len
22055
22056 # Object file suffix (normally "o").
22057 objext=$ac_objext
22058
22059 # Executable file suffix (normally "").
22060 exeext=$exeext
22061
22062 # whether the shell understands "unset".
22063 lt_unset=$lt_unset
22064
22065 # turn spaces into newlines.
22066 SP2NL=$lt_lt_SP2NL
22067
22068 # turn newlines into spaces.
22069 NL2SP=$lt_lt_NL2SP
22070
22071 # How to create reloadable object files.
22072 reload_flag=$lt_reload_flag
22073 reload_cmds=$lt_reload_cmds
22074
22075 # An object symbol dumper.
22076 OBJDUMP=$lt_OBJDUMP
22077
22078 # Method to check whether dependent libraries are shared objects.
22079 deplibs_check_method=$lt_deplibs_check_method
22080
22081 # Command to use when deplibs_check_method == "file_magic".
22082 file_magic_cmd=$lt_file_magic_cmd
22083
22084 # The archiver.
22085 AR=$lt_AR
22086 AR_FLAGS=$lt_AR_FLAGS
22087
22088 # A symbol stripping program.
22089 STRIP=$lt_STRIP
22090
22091 # Commands used to install an old-style archive.
22092 RANLIB=$lt_RANLIB
22093 old_postinstall_cmds=$lt_old_postinstall_cmds
22094 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22095
22096 # A C compiler.
22097 LTCC=$lt_CC
22098
22099 # LTCC compiler flags.
22100 LTCFLAGS=$lt_CFLAGS
22101
22102 # Take the output of nm and produce a listing of raw symbols and C names.
22103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22104
22105 # Transform the output of nm in a proper C declaration.
22106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22107
22108 # Transform the output of nm in a C name address pair.
22109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22110
22111 # Transform the output of nm in a C name address pair when lib prefix is needed.
22112 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22113
22114 # The name of the directory that contains temporary libtool files.
22115 objdir=$objdir
22116
22117 # Shell to use when invoking shell scripts.
22118 SHELL=$lt_SHELL
22119
22120 # An echo program that does not interpret backslashes.
22121 ECHO=$lt_ECHO
22122
22123 # Used to examine libraries when file_magic_cmd begins with "file".
22124 MAGIC_CMD=$MAGIC_CMD
22125
22126 # Must we lock files when doing compilation?
22127 need_locks=$lt_need_locks
22128
22129 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22130 DSYMUTIL=$lt_DSYMUTIL
22131
22132 # Tool to change global to local symbols on Mac OS X.
22133 NMEDIT=$lt_NMEDIT
22134
22135 # Tool to manipulate fat objects and archives on Mac OS X.
22136 LIPO=$lt_LIPO
22137
22138 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22139 OTOOL=$lt_OTOOL
22140
22141 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22142 OTOOL64=$lt_OTOOL64
22143
22144 # Old archive suffix (normally "a").
22145 libext=$libext
22146
22147 # Shared library suffix (normally ".so").
22148 shrext_cmds=$lt_shrext_cmds
22149
22150 # The commands to extract the exported symbol list from a shared archive.
22151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22152
22153 # Variables whose values should be saved in libtool wrapper scripts and
22154 # restored at link time.
22155 variables_saved_for_relink=$lt_variables_saved_for_relink
22156
22157 # Do we need the "lib" prefix for modules?
22158 need_lib_prefix=$need_lib_prefix
22159
22160 # Do we need a version for libraries?
22161 need_version=$need_version
22162
22163 # Library versioning type.
22164 version_type=$version_type
22165
22166 # Shared library runtime path variable.
22167 runpath_var=$runpath_var
22168
22169 # Shared library path variable.
22170 shlibpath_var=$shlibpath_var
22171
22172 # Is shlibpath searched before the hard-coded library search path?
22173 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22174
22175 # Format of library name prefix.
22176 libname_spec=$lt_libname_spec
22177
22178 # List of archive names. First name is the real one, the rest are links.
22179 # The last name is the one that the linker finds with -lNAME
22180 library_names_spec=$lt_library_names_spec
22181
22182 # The coded name of the library, if different from the real name.
22183 soname_spec=$lt_soname_spec
22184
22185 # Command to use after installation of a shared archive.
22186 postinstall_cmds=$lt_postinstall_cmds
22187
22188 # Command to use after uninstallation of a shared archive.
22189 postuninstall_cmds=$lt_postuninstall_cmds
22190
22191 # Commands used to finish a libtool library installation in a directory.
22192 finish_cmds=$lt_finish_cmds
22193
22194 # As "finish_cmds", except a single script fragment to be evaled but
22195 # not shown.
22196 finish_eval=$lt_finish_eval
22197
22198 # Whether we should hardcode library paths into libraries.
22199 hardcode_into_libs=$hardcode_into_libs
22200
22201 # Compile-time system search path for libraries.
22202 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22203
22204 # Run-time system search path for libraries.
22205 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22206
22207 # Whether dlopen is supported.
22208 dlopen_support=$enable_dlopen
22209
22210 # Whether dlopen of programs is supported.
22211 dlopen_self=$enable_dlopen_self
22212
22213 # Whether dlopen of statically linked programs is supported.
22214 dlopen_self_static=$enable_dlopen_self_static
22215
22216 # Commands to strip libraries.
22217 old_striplib=$lt_old_striplib
22218 striplib=$lt_striplib
22219
22220
22221 # The linker used to build libraries.
22222 LD=$lt_LD
22223
22224 # Commands used to build an old-style archive.
22225 old_archive_cmds=$lt_old_archive_cmds
22226
22227 # A language specific compiler.
22228 CC=$lt_compiler
22229
22230 # Is the compiler the GNU compiler?
22231 with_gcc=$GCC
22232
22233 # Compiler flag to turn off builtin functions.
22234 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22235
22236 # How to pass a linker flag through the compiler.
22237 wl=$lt_lt_prog_compiler_wl
22238
22239 # Additional compiler flags for building library objects.
22240 pic_flag=$lt_lt_prog_compiler_pic
22241
22242 # Compiler flag to prevent dynamic linking.
22243 link_static_flag=$lt_lt_prog_compiler_static
22244
22245 # Does compiler simultaneously support -c and -o options?
22246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22247
22248 # Whether or not to add -lc for building shared libraries.
22249 build_libtool_need_lc=$archive_cmds_need_lc
22250
22251 # Whether or not to disallow shared libs when runtime libs are static.
22252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22253
22254 # Compiler flag to allow reflexive dlopens.
22255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22256
22257 # Compiler flag to generate shared objects directly from archives.
22258 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22259
22260 # Whether the compiler copes with passing no objects directly.
22261 compiler_needs_object=$lt_compiler_needs_object
22262
22263 # Create an old-style archive from a shared archive.
22264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22265
22266 # Create a temporary old-style archive to link instead of a shared archive.
22267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22268
22269 # Commands used to build a shared archive.
22270 archive_cmds=$lt_archive_cmds
22271 archive_expsym_cmds=$lt_archive_expsym_cmds
22272
22273 # Commands used to build a loadable module if different from building
22274 # a shared archive.
22275 module_cmds=$lt_module_cmds
22276 module_expsym_cmds=$lt_module_expsym_cmds
22277
22278 # Whether we are building with GNU ld or not.
22279 with_gnu_ld=$lt_with_gnu_ld
22280
22281 # Flag that allows shared libraries with undefined symbols to be built.
22282 allow_undefined_flag=$lt_allow_undefined_flag
22283
22284 # Flag that enforces no undefined symbols.
22285 no_undefined_flag=$lt_no_undefined_flag
22286
22287 # Flag to hardcode \$libdir into a binary during linking.
22288 # This must work even if \$libdir does not exist
22289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22290
22291 # If ld is used when linking, flag to hardcode \$libdir into a binary
22292 # during linking. This must work even if \$libdir does not exist.
22293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22294
22295 # Whether we need a single "-rpath" flag with a separated argument.
22296 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22297
22298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22299 # DIR into the resulting binary.
22300 hardcode_direct=$hardcode_direct
22301
22302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22303 # DIR into the resulting binary and the resulting library dependency is
22304 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22305 # library is relocated.
22306 hardcode_direct_absolute=$hardcode_direct_absolute
22307
22308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22309 # into the resulting binary.
22310 hardcode_minus_L=$hardcode_minus_L
22311
22312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22313 # into the resulting binary.
22314 hardcode_shlibpath_var=$hardcode_shlibpath_var
22315
22316 # Set to "yes" if building a shared library automatically hardcodes DIR
22317 # into the library and all subsequent libraries and executables linked
22318 # against it.
22319 hardcode_automatic=$hardcode_automatic
22320
22321 # Set to yes if linker adds runtime paths of dependent libraries
22322 # to runtime path list.
22323 inherit_rpath=$inherit_rpath
22324
22325 # Whether libtool must link a program against all its dependency libraries.
22326 link_all_deplibs=$link_all_deplibs
22327
22328 # Fix the shell variable \$srcfile for the compiler.
22329 fix_srcfile_path=$lt_fix_srcfile_path
22330
22331 # Set to "yes" if exported symbols are required.
22332 always_export_symbols=$always_export_symbols
22333
22334 # The commands to list exported symbols.
22335 export_symbols_cmds=$lt_export_symbols_cmds
22336
22337 # Symbols that should not be listed in the preloaded symbols.
22338 exclude_expsyms=$lt_exclude_expsyms
22339
22340 # Symbols that must always be exported.
22341 include_expsyms=$lt_include_expsyms
22342
22343 # Commands necessary for linking programs (against libraries) with templates.
22344 prelink_cmds=$lt_prelink_cmds
22345
22346 # Specify filename containing input files.
22347 file_list_spec=$lt_file_list_spec
22348
22349 # How to hardcode a shared library path into an executable.
22350 hardcode_action=$hardcode_action
22351
22352 # ### END LIBTOOL CONFIG
22353
22354 _LT_EOF
22355
22356 case $host_os in
22357 aix3*)
22358 cat <<\_LT_EOF >> "$cfgfile"
22359 # AIX sometimes has problems with the GCC collect2 program. For some
22360 # reason, if we set the COLLECT_NAMES environment variable, the problems
22361 # vanish in a puff of smoke.
22362 if test "X${COLLECT_NAMES+set}" != Xset; then
22363 COLLECT_NAMES=
22364 export COLLECT_NAMES
22365 fi
22366 _LT_EOF
22367 ;;
22368 esac
22369
22370
22371 ltmain="$ac_aux_dir/ltmain.sh"
22372
22373
22374 # We use sed instead of cat because bash on DJGPP gets confused if
22375 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22376 # text mode, it properly converts lines to CR/LF. This bash problem
22377 # is reportedly fixed, but why not run on old versions too?
22378 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22379 || (rm -f "$cfgfile"; exit 1)
22380
22381 case $xsi_shell in
22382 yes)
22383 cat << \_LT_EOF >> "$cfgfile"
22384
22385 # func_dirname file append nondir_replacement
22386 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22387 # otherwise set result to NONDIR_REPLACEMENT.
22388 func_dirname ()
22389 {
22390 case ${1} in
22391 */*) func_dirname_result="${1%/*}${2}" ;;
22392 * ) func_dirname_result="${3}" ;;
22393 esac
22394 }
22395
22396 # func_basename file
22397 func_basename ()
22398 {
22399 func_basename_result="${1##*/}"
22400 }
22401
22402 # func_dirname_and_basename file append nondir_replacement
22403 # perform func_basename and func_dirname in a single function
22404 # call:
22405 # dirname: Compute the dirname of FILE. If nonempty,
22406 # add APPEND to the result, otherwise set result
22407 # to NONDIR_REPLACEMENT.
22408 # value returned in "$func_dirname_result"
22409 # basename: Compute filename of FILE.
22410 # value retuned in "$func_basename_result"
22411 # Implementation must be kept synchronized with func_dirname
22412 # and func_basename. For efficiency, we do not delegate to
22413 # those functions but instead duplicate the functionality here.
22414 func_dirname_and_basename ()
22415 {
22416 case ${1} in
22417 */*) func_dirname_result="${1%/*}${2}" ;;
22418 * ) func_dirname_result="${3}" ;;
22419 esac
22420 func_basename_result="${1##*/}"
22421 }
22422
22423 # func_stripname prefix suffix name
22424 # strip PREFIX and SUFFIX off of NAME.
22425 # PREFIX and SUFFIX must not contain globbing or regex special
22426 # characters, hashes, percent signs, but SUFFIX may contain a leading
22427 # dot (in which case that matches only a dot).
22428 func_stripname ()
22429 {
22430 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22431 # positional parameters, so assign one to ordinary parameter first.
22432 func_stripname_result=${3}
22433 func_stripname_result=${func_stripname_result#"${1}"}
22434 func_stripname_result=${func_stripname_result%"${2}"}
22435 }
22436
22437 # func_opt_split
22438 func_opt_split ()
22439 {
22440 func_opt_split_opt=${1%%=*}
22441 func_opt_split_arg=${1#*=}
22442 }
22443
22444 # func_lo2o object
22445 func_lo2o ()
22446 {
22447 case ${1} in
22448 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22449 *) func_lo2o_result=${1} ;;
22450 esac
22451 }
22452
22453 # func_xform libobj-or-source
22454 func_xform ()
22455 {
22456 func_xform_result=${1%.*}.lo
22457 }
22458
22459 # func_arith arithmetic-term...
22460 func_arith ()
22461 {
22462 func_arith_result=$(( $* ))
22463 }
22464
22465 # func_len string
22466 # STRING may not start with a hyphen.
22467 func_len ()
22468 {
22469 func_len_result=${#1}
22470 }
22471
22472 _LT_EOF
22473 ;;
22474 *) # Bourne compatible functions.
22475 cat << \_LT_EOF >> "$cfgfile"
22476
22477 # func_dirname file append nondir_replacement
22478 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22479 # otherwise set result to NONDIR_REPLACEMENT.
22480 func_dirname ()
22481 {
22482 # Extract subdirectory from the argument.
22483 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22484 if test "X$func_dirname_result" = "X${1}"; then
22485 func_dirname_result="${3}"
22486 else
22487 func_dirname_result="$func_dirname_result${2}"
22488 fi
22489 }
22490
22491 # func_basename file
22492 func_basename ()
22493 {
22494 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22495 }
22496
22497
22498 # func_stripname prefix suffix name
22499 # strip PREFIX and SUFFIX off of NAME.
22500 # PREFIX and SUFFIX must not contain globbing or regex special
22501 # characters, hashes, percent signs, but SUFFIX may contain a leading
22502 # dot (in which case that matches only a dot).
22503 # func_strip_suffix prefix name
22504 func_stripname ()
22505 {
22506 case ${2} in
22507 .*) func_stripname_result=`$ECHO "X${3}" \
22508 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22509 *) func_stripname_result=`$ECHO "X${3}" \
22510 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22511 esac
22512 }
22513
22514 # sed scripts:
22515 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22516 my_sed_long_arg='1s/^-[^=]*=//'
22517
22518 # func_opt_split
22519 func_opt_split ()
22520 {
22521 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22522 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22523 }
22524
22525 # func_lo2o object
22526 func_lo2o ()
22527 {
22528 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22529 }
22530
22531 # func_xform libobj-or-source
22532 func_xform ()
22533 {
22534 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22535 }
22536
22537 # func_arith arithmetic-term...
22538 func_arith ()
22539 {
22540 func_arith_result=`expr "$@"`
22541 }
22542
22543 # func_len string
22544 # STRING may not start with a hyphen.
22545 func_len ()
22546 {
22547 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22548 }
22549
22550 _LT_EOF
22551 esac
22552
22553 case $lt_shell_append in
22554 yes)
22555 cat << \_LT_EOF >> "$cfgfile"
22556
22557 # func_append var value
22558 # Append VALUE to the end of shell variable VAR.
22559 func_append ()
22560 {
22561 eval "$1+=\$2"
22562 }
22563 _LT_EOF
22564 ;;
22565 *)
22566 cat << \_LT_EOF >> "$cfgfile"
22567
22568 # func_append var value
22569 # Append VALUE to the end of shell variable VAR.
22570 func_append ()
22571 {
22572 eval "$1=\$$1\$2"
22573 }
22574
22575 _LT_EOF
22576 ;;
22577 esac
22578
22579
22580 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22581 || (rm -f "$cfgfile"; exit 1)
22582
22583 mv -f "$cfgfile" "$ofile" ||
22584 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22585 chmod +x "$ofile"
22586
22587 ;;
22588
22589 esac
22590 done # for ac_tag
22591
22592
22593 { (exit 0); exit 0; }
22594 _ACEOF
22595 chmod +x $CONFIG_STATUS
22596 ac_clean_files=$ac_clean_files_save
22597
22598 test $ac_write_fail = 0 ||
22599 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22600 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22601 { (exit 1); exit 1; }; }
22602
22603
22604 # configure is writing to config.log, and then calls config.status.
22605 # config.status does its own redirection, appending to config.log.
22606 # Unfortunately, on DOS this fails, as config.log is still kept open
22607 # by configure, so config.status won't be able to write to it; its
22608 # output is simply discarded. So we exec the FD to /dev/null,
22609 # effectively closing config.log, so it can be properly (re)opened and
22610 # appended to by config.status. When coming back to configure, we
22611 # need to make the FD available again.
22612 if test "$no_create" != yes; then
22613 ac_cs_success=:
22614 ac_config_status_args=
22615 test "$silent" = yes &&
22616 ac_config_status_args="$ac_config_status_args --quiet"
22617 exec 5>/dev/null
22618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22619 exec 5>>config.log
22620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22621 # would make configure fail if this is the last instruction.
22622 $ac_cs_success || { (exit 1); exit 1; }
22623 fi
22624 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22625 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22626 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22627 fi
22628