2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
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
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
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
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.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }
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
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
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
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
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.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
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'"
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'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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
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'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
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
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.
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
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
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
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
679 SHELL="$CONFIG_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"
688 # maybe with a smaller string...
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
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+"$@"}
704 # Oops. We lost completely, so just stick with echo.
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.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
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`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 # Factoring default headers for most tests.
751 ac_includes_default="\
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
763 # ifdef HAVE_STDLIB_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
786 ac_subst_vars='am__EXEEXT_FALSE
830 am__fastdepCCAS_FALSE
879 INSTALL_STRIP_PROGRAM
897 MAINTAINER_MODE_FALSE
948 program_transform_name
960 enable_option_checking
961 enable_maintainer_mode
963 enable_dependency_tracking
979 ac_precious_vars='build_alias
992 # Initialize some variables set by options.
994 ac_init_version=false
995 ac_unrecognized_opts=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
1006 program_transform_name=s,x,x,
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE}'
1031 infodir='${datarootdir}/info'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1052 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1058 case $ac_dashdash$ac_option in
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1082 -datadir | --datadir | --datadi | --datad)
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 sbindir=$ac_optarg ;;
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 sharedstatedir=$ac_optarg ;;
1298 -site | --site | --sit)
1300 -site=* | --site=* | --sit=*)
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331 { (exit 1); exit 1; }; }
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1341 eval with_$ac_useropt=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348 { (exit 1); exit 1; }; }
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1358 eval with_$ac_useropt=no ;;
1361 # Obsolete; use --with-x.
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369 x_includes=$ac_optarg ;;
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376 x_libraries=$ac_optarg ;;
1378 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1379 Try \`$0 --help' for more information." >&2
1380 { (exit 1); exit 1; }; }
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388 { (exit 1); exit 1; }; }
1389 eval $ac_envvar=\$ac_optarg
1390 export $ac_envvar ;;
1393 # FIXME: should be removed in autoconf 3.0.
1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1403 if test -n "$ac_prev"; then
1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1406 { (exit 1); exit 1; }; }
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1412 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1413 { (exit 1); exit 1; }; } ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1418 # Check all directory arguments for consistency.
1419 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1431 # Be sure to have absolute directory names.
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1436 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1437 { (exit 1); exit 1; }; }
1440 # There might be people who depend on the old broken behavior: `$host'
1441 # used to hold the argument of --host etc.
1442 # FIXME: To remove some day.
1445 target=$target_alias
1447 # FIXME: To remove some day.
1448 if test "x$host_alias" != x; then
1449 if test "x$build_alias" = x; then
1450 cross_compiling=maybe
1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452 If a cross compiler is detected then cross compile mode will be used." >&2
1453 elif test "x$build_alias" != "x$host_alias"; then
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461 test "$silent" = yes && exec 6>/dev/null
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1468 { (exit 1); exit 1; }; }
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1471 { (exit 1); exit 1; }; }
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1511 { (exit 1); exit 1; }; }
1513 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1515 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1516 { (exit 1); exit 1; }; }
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1536 # Report the --help message.
1538 if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1542 \`configure' configures this package to adapt to many kinds of systems.
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE. See below for descriptions of some of the useful variables.
1549 Defaults for the options are specified in brackets.
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562 Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1573 For better control, use the options below.
1575 Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1600 --program-prefix=PREFIX prepend PREFIX to installed program names
1601 --program-suffix=SUFFIX append SUFFIX to installed program names
1602 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1605 --build=BUILD configure for building on BUILD [guessed]
1606 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607 --target=TARGET configure for building compilers for TARGET [HOST]
1611 if test -n "$ac_init_help"; then
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --enable-maintainer-mode enable make rules and dependencies not useful
1620 (and sometimes confusing) to the casual installer
1621 --enable-silent-rules less verbose build output (undo: `make V=1')
1622 --disable-silent-rules verbose build output (undo: `make V=0')
1623 --disable-dependency-tracking speeds up one-time build
1624 --enable-dependency-tracking do not reject slow dependency extractors
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-debug Enable generic debug support [default=no]
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-pic try to use only PIC/non-PIC objects [default=use
1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1638 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1639 --with-linux=PATH Path to kernel source
1640 --with-linux-obj=PATH Path to kernel build objects
1641 --with-spl=PATH Path to spl source
1642 --with-spl-obj=PATH Path to spl build objects
1643 --with-blkid support blkid caching [default=check]
1644 --with-selinux support selinux [default=check]
1646 Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1655 CCAS assembler compiler command (defaults to CC)
1656 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1665 if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1690 .) # We are building in place.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1724 generated by GNU Autoconf 2.63
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by $as_me, which was
1738 generated by GNU Autoconf 2.63. Invocation command line was
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1798 ac_must_keep_next=false
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1827 -* ) ac_must_keep_next=true ;;
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1854 # The following way of writing the cache mishandles newlines in values,
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1892 for ac_var in $ac_subst_vars
1894 eval ac_val=\$$ac_var
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1898 $as_echo "$ac_var='\''$ac_val'\''"
1902 if test -n "$ac_subst_files"; then
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1909 for ac_var in $ac_subst_files
1911 eval ac_val=\$$ac_var
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1915 $as_echo "$ac_var='\''$ac_val'\''"
1920 if test -s confdefs.h; then
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1938 for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1946 # Predefined preprocessor variables.
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1977 if test -n "$CONFIG_SITE"; then
1978 ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1988 test "x$ac_site_file" = xNONE && continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2014 # Check that the precious variables saved in the cache have kept the same
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2064 if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2109 $as_echo_n "checking metadata... " >&6; }
2112 _zfs_ac_meta_got_file=no
2113 if test -f "$META"; then
2114 _zfs_ac_meta_got_file=yes
2116 ZFS_META_NAME=`perl -n\
2117 -e "BEGIN { \\$key=shift @ARGV; }"\
2118 -e "next unless s/^\s*\\$key[:=]//i;"\
2119 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2122 -e "s/^(['\"])(.*)\1/\\$2/;"\
2124 -e "END { print \\$val if defined \\$val; }"\
2125 '(?:NAME|PROJECT|PACKAGE)' $META`;
2126 if test -n "$ZFS_META_NAME"; then
2128 cat >>confdefs.h <<_ACEOF
2129 #define ZFS_META_NAME "$ZFS_META_NAME"
2135 ZFS_META_VERSION=`perl -n\
2136 -e "BEGIN { \\$key=shift @ARGV; }"\
2137 -e "next unless s/^\s*\\$key[:=]//i;"\
2138 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2141 -e "s/^(['\"])(.*)\1/\\$2/;"\
2143 -e "END { print \\$val if defined \\$val; }"\
2145 if test -n "$ZFS_META_VERSION"; then
2147 cat >>confdefs.h <<_ACEOF
2148 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2154 ZFS_META_RELEASE=`perl -n\
2155 -e "BEGIN { \\$key=shift @ARGV; }"\
2156 -e "next unless s/^\s*\\$key[:=]//i;"\
2157 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2160 -e "s/^(['\"])(.*)\1/\\$2/;"\
2162 -e "END { print \\$val if defined \\$val; }"\
2164 if test -n "$ZFS_META_RELEASE"; then
2166 cat >>confdefs.h <<_ACEOF
2167 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2173 ZFS_META_LICENSE=`perl -n\
2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2183 if test -n "$ZFS_META_LICENSE"; then
2185 cat >>confdefs.h <<_ACEOF
2186 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2192 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2193 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2194 test -n "$ZFS_META_RELEASE" &&
2195 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2197 cat >>confdefs.h <<_ACEOF
2198 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2204 ZFS_META_DATA=`perl -n\
2205 -e "BEGIN { \\$key=shift @ARGV; }"\
2206 -e "next unless s/^\s*\\$key[:=]//i;"\
2207 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2210 -e "s/^(['\"])(.*)\1/\\$2/;"\
2212 -e "END { print \\$val if defined \\$val; }"\
2214 if test -n "$ZFS_META_DATA"; then
2216 cat >>confdefs.h <<_ACEOF
2217 #define ZFS_META_DATA "$ZFS_META_DATA"
2223 ZFS_META_AUTHOR=`perl -n\
2224 -e "BEGIN { \\$key=shift @ARGV; }"\
2225 -e "next unless s/^\s*\\$key[:=]//i;"\
2226 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2229 -e "s/^(['\"])(.*)\1/\\$2/;"\
2231 -e "END { print \\$val if defined \\$val; }"\
2233 if test -n "$ZFS_META_AUTHOR"; then
2235 cat >>confdefs.h <<_ACEOF
2236 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2243 ZFS_META_LT_CURRENT=`perl -n\
2244 -e "BEGIN { \\$key=shift @ARGV; }"\
2245 -e "next unless s/^\s*\\$key[:=]//i;"\
2246 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2249 -e "s/^(['\"])(.*)\1/\\$2/;"\
2251 -e "END { print \\$val if defined \\$val; }"\
2252 'LT_CURRENT' $META`;
2253 ZFS_META_LT_REVISION=`perl -n\
2254 -e "BEGIN { \\$key=shift @ARGV; }"\
2255 -e "next unless s/^\s*\\$key[:=]//i;"\
2256 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2259 -e "s/^(['\"])(.*)\1/\\$2/;"\
2261 -e "END { print \\$val if defined \\$val; }"\
2262 'LT_REVISION' $META`;
2263 ZFS_META_LT_AGE=`perl -n\
2264 -e "BEGIN { \\$key=shift @ARGV; }"\
2265 -e "next unless s/^\s*\\$key[:=]//i;"\
2266 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2269 -e "s/^(['\"])(.*)\1/\\$2/;"\
2271 -e "END { print \\$val if defined \\$val; }"\
2273 if test -n "$ZFS_META_LT_CURRENT" \
2274 -o -n "$ZFS_META_LT_REVISION" \
2275 -o -n "$ZFS_META_LT_AGE"; then
2276 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2277 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2278 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2280 cat >>confdefs.h <<_ACEOF
2281 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2285 cat >>confdefs.h <<_ACEOF
2286 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2290 cat >>confdefs.h <<_ACEOF
2291 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2300 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2301 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2305 for ac_dir in config "$srcdir"/config; do
2306 if test -f "$ac_dir/install-sh"; then
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2310 elif test -f "$ac_dir/install.sh"; then
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2314 elif test -f "$ac_dir/shtool"; then
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 if test -z "$ac_aux_dir"; then
2321 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2322 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2323 { (exit 1); exit 1; }; }
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335 # Make sure we can run config.sub.
2336 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2337 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2338 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2339 { (exit 1); exit 1; }; }
2341 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2342 $as_echo_n "checking build system type... " >&6; }
2343 if test "${ac_cv_build+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2346 ac_build_alias=$build_alias
2347 test "x$ac_build_alias" = x &&
2348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349 test "x$ac_build_alias" = x &&
2350 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2351 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2352 { (exit 1); exit 1; }; }
2353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2354 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2355 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2356 { (exit 1); exit 1; }; }
2359 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2363 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2364 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2365 { (exit 1); exit 1; }; };;
2368 ac_save_IFS=$IFS; IFS='-'
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2381 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2391 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2392 { (exit 1); exit 1; }; }
2396 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2397 $as_echo "$ac_cv_host" >&6; }
2400 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2401 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2402 { (exit 1); exit 1; }; };;
2405 ac_save_IFS=$IFS; IFS='-'
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2418 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2419 $as_echo_n "checking target system type... " >&6; }
2420 if test "${ac_cv_target+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2423 if test "x$target_alias" = x; then
2424 ac_cv_target=$ac_cv_host
2426 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2427 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2428 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2429 { (exit 1); exit 1; }; }
2433 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2434 $as_echo "$ac_cv_target" >&6; }
2435 case $ac_cv_target in
2437 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2438 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2439 { (exit 1); exit 1; }; };;
2441 target=$ac_cv_target
2442 ac_save_IFS=$IFS; IFS='-'
2448 # Remember, the first character of IFS is used to create $*,
2449 # except with old shells:
2452 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455 # The aliases save the names the user supplied, while $host etc.
2456 # will get canonicalized.
2457 test -n "$target_alias" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2460 program_prefix=${target_alias}-
2462 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2463 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2464 # Check whether --enable-maintainer-mode was given.
2465 if test "${enable_maintainer_mode+set}" = set; then
2466 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2468 USE_MAINTAINER_MODE=no
2471 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2472 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2473 if test $USE_MAINTAINER_MODE = yes; then
2474 MAINTAINER_MODE_TRUE=
2475 MAINTAINER_MODE_FALSE='#'
2477 MAINTAINER_MODE_TRUE='#'
2478 MAINTAINER_MODE_FALSE=
2481 MAINT=$MAINTAINER_MODE_TRUE
2484 # Check whether --enable-silent-rules was given.
2485 if test "${enable_silent_rules+set}" = set; then
2486 enableval=$enable_silent_rules;
2489 case $enable_silent_rules in
2490 yes) AM_DEFAULT_VERBOSITY=0;;
2491 no) AM_DEFAULT_VERBOSITY=1;;
2492 *) AM_DEFAULT_VERBOSITY=1;;
2496 am__api_version='1.11'
2498 # Find a good install program. We prefer a C program (faster),
2499 # so one script is as good as another. But avoid the broken or
2500 # incompatible versions:
2501 # SysV /etc/install, /usr/sbin/install
2502 # SunOS /usr/etc/install
2503 # IRIX /sbin/install
2505 # AmigaOS /C/install, which installs bootblocks on floppy discs
2506 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2507 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2508 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2509 # OS/2's system install, which has a completely different semantic
2510 # ./install, which can be erroneously created by make from ./install.sh.
2511 # Reject install programs that cannot install multiple files.
2512 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2513 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2514 if test -z "$INSTALL"; then
2515 if test "${ac_cv_path_install+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 # Account for people who put trailing slashes in PATH elements.
2525 ./ | .// | /cC/* | \
2526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2530 # OSF1 and SCO ODT 3.0 have their own names for install.
2531 # Don't use installbsd from OSF since it installs stuff as root
2533 for ac_prog in ginstall scoinst install; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2536 if test $ac_prog = install &&
2537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # AIX install. It has an incompatible calling convention.
2540 elif test $ac_prog = install &&
2541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542 # program-specific install script used by HP pwplus--don't use.
2545 rm -rf conftest.one conftest.two conftest.dir
2546 echo one > conftest.one
2547 echo two > conftest.two
2549 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2550 test -s conftest.one && test -s conftest.two &&
2551 test -s conftest.dir/conftest.one &&
2552 test -s conftest.dir/conftest.two
2554 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2567 rm -rf conftest.one conftest.two conftest.dir
2570 if test "${ac_cv_path_install+set}" = set; then
2571 INSTALL=$ac_cv_path_install
2573 # As a last resort, use the slow shell script. Don't cache a
2574 # value for INSTALL within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the value is a relative name.
2577 INSTALL=$ac_install_sh
2580 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2581 $as_echo "$INSTALL" >&6; }
2583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584 # It thinks the first close brace ends the variable substitution.
2585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2591 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592 $as_echo_n "checking whether build environment is sane... " >&6; }
2595 echo timestamp > conftest.file
2596 # Reject unsafe characters in $srcdir or the absolute working directory
2597 # name. Accept space and tab only in the latter.
2601 *[\\\"\#\$\&\'\`$am_lf]*)
2602 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2603 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2604 { (exit 1); exit 1; }; };;
2607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2608 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2609 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2610 { (exit 1); exit 1; }; };;
2613 # Do `set' in a subshell so we don't clobber the current shell's
2614 # arguments. Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2619 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620 if test "$*" = "X"; then
2622 set X `ls -t "$srcdir/configure" conftest.file`
2625 if test "$*" != "X $srcdir/configure conftest.file" \
2626 && test "$*" != "X conftest.file $srcdir/configure"; then
2628 # If neither matched, then we have a broken ls. This can happen
2629 # if, for instance, CONFIG_SHELL is bash and it inherits a
2630 # broken ls alias from the environment. This has actually
2631 # happened. Such a system could not be considered "sane".
2632 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2633 alias in your environment" >&5
2634 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2635 alias in your environment" >&2;}
2636 { (exit 1); exit 1; }; }
2639 test "$2" = conftest.file
2645 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2646 Check your system clock" >&5
2647 $as_echo "$as_me: error: newly created file is older than distributed files!
2648 Check your system clock" >&2;}
2649 { (exit 1); exit 1; }; }
2651 { $as_echo "$as_me:$LINENO: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 test "$program_prefix" != NONE &&
2654 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655 # Use a double $ so make ignores it.
2656 test "$program_suffix" != NONE &&
2657 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658 # Double any \ or $.
2659 # By default was `s,x,x', remove it if useless.
2660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2663 # expand $ac_aux_dir to an absolute path
2664 am_aux_dir=`cd $ac_aux_dir && pwd`
2666 if test x"${MISSING+set}" != xset; then
2669 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2671 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --run true"; then
2676 am_missing_run="$MISSING --run "
2679 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2683 if test x"${install_sh}" != xset; then
2686 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2688 install_sh="\${SHELL} $am_aux_dir/install-sh"
2692 # Installed binaries are usually stripped using `strip' when the user
2693 # run `make install-strip'. However `strip' might not be the right
2694 # tool to use in cross-compilation environments, therefore Automake
2695 # will honor the `STRIP' environment variable to overrule this program.
2696 if test "$cross_compiling" != no; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}strip; ac_word=$2
2700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_STRIP+set}" = set; then
2703 $as_echo_n "(cached) " >&6
2705 if test -n "$STRIP"; then
2706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 STRIP=$ac_cv_prog_STRIP
2726 if test -n "$STRIP"; then
2727 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2728 $as_echo "$STRIP" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2736 if test -z "$ac_cv_prog_STRIP"; then
2738 # Extract the first word of "strip", so it can be a program name with args.
2739 set dummy strip; ac_word=$2
2740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$ac_ct_STRIP"; then
2746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_ac_ct_STRIP="strip"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766 if test -n "$ac_ct_STRIP"; then
2767 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2768 $as_echo "$ac_ct_STRIP" >&6; }
2770 { $as_echo "$as_me:$LINENO: result: no" >&5
2771 $as_echo "no" >&6; }
2774 if test "x$ac_ct_STRIP" = x; then
2777 case $cross_compiling:$ac_tool_warned in
2779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2786 STRIP="$ac_cv_prog_STRIP"
2790 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2792 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2793 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794 if test -z "$MKDIR_P"; then
2795 if test "${ac_cv_path_mkdir+set}" = set; then
2796 $as_echo_n "(cached) " >&6
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2802 test -z "$as_dir" && as_dir=.
2803 for ac_prog in mkdir gmkdir; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2806 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807 'mkdir (GNU coreutils) '* | \
2808 'mkdir (coreutils) '* | \
2809 'mkdir (fileutils) '4.1*)
2810 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2820 if test "${ac_cv_path_mkdir+set}" = set; then
2821 MKDIR_P="$ac_cv_path_mkdir -p"
2823 # As a last resort, use the slow shell script. Don't cache a
2824 # value for MKDIR_P within a source directory, because that will
2825 # break other packages using the cache if that directory is
2826 # removed, or if the value is a relative name.
2827 test -d ./--version && rmdir ./--version
2828 MKDIR_P="$ac_install_sh -d"
2831 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2832 $as_echo "$MKDIR_P" >&6; }
2836 [\\/$]* | ?:[\\/]*) ;;
2837 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2840 for ac_prog in gawk mawk nawk awk
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_AWK+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2849 if test -n "$AWK"; then
2850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_AWK="$ac_prog"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 if test -n "$AWK"; then
2871 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2872 $as_echo "$AWK" >&6; }
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2879 test -n "$AWK" && break
2882 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2887 $as_echo_n "(cached) " >&6
2889 cat >conftest.make <<\_ACEOF
2892 @echo '@@@%%%=$(MAKE)=@@@%%%'
2894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897 eval ac_cv_prog_make_${ac_make}_set=yes;;
2899 eval ac_cv_prog_make_${ac_make}_set=no;;
2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904 { $as_echo "$as_me:$LINENO: result: yes" >&5
2905 $as_echo "yes" >&6; }
2908 { $as_echo "$as_me:$LINENO: result: no" >&5
2909 $as_echo "no" >&6; }
2910 SET_MAKE="MAKE=${MAKE-make}"
2913 rm -rf .tst 2>/dev/null
2914 mkdir .tst 2>/dev/null
2915 if test -d .tst; then
2920 rmdir .tst 2>/dev/null
2922 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2924 # is not polluted with repeated "-I."
2925 am__isrc=' -I$(srcdir)'
2926 # test to see if srcdir already configured
2927 if test -f $srcdir/config.status; then
2928 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2929 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2930 { (exit 1); exit 1; }; }
2934 # test whether we have cygpath
2935 if test -z "$CYGPATH_W"; then
2936 if (cygpath --version) >/dev/null 2>/dev/null; then
2937 CYGPATH_W='cygpath -w'
2944 # Define the identity of the package.
2945 PACKAGE=$ZFS_META_NAME
2946 VERSION=$ZFS_META_VERSION
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE "$PACKAGE"
2954 cat >>confdefs.h <<_ACEOF
2955 #define VERSION "$VERSION"
2958 # Some tools Automake needs.
2960 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2963 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2966 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2969 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2972 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2974 # We need awk for the "check" target. The system "awk" is bad on
2976 # Always define AMTAR for backward compatibility.
2978 AMTAR=${AMTAR-"${am_missing_run}tar"}
2980 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2986 ac_config_headers="$ac_config_headers zfs_config.h"
2989 # Find a good install program. We prefer a C program (faster),
2990 # so one script is as good as another. But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if test "${ac_cv_path_install+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 # Account for people who put trailing slashes in PATH elements.
3016 ./ | .// | /cC/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one > conftest.one
3038 echo two > conftest.two
3040 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041 test -s conftest.one && test -s conftest.two &&
3042 test -s conftest.dir/conftest.one &&
3043 test -s conftest.dir/conftest.two
3045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3058 rm -rf conftest.one conftest.two conftest.dir
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL=$ac_cv_path_install
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3071 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3126 if test -z "$ac_cv_prog_CC"; then
3128 # Extract the first word of "gcc", so it can be a program name with args.
3129 set dummy gcc; ac_word=$2
3130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_CC="gcc"
3146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3160 { $as_echo "$as_me:$LINENO: result: no" >&5
3161 $as_echo "no" >&6; }
3164 if test "x$ac_ct_CC" = x; then
3167 case $cross_compiling:$ac_tool_warned in
3169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3179 if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}cc; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="${ac_tool_prefix}cc"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3220 if test -z "$CC"; then
3221 # Extract the first word of "cc", so it can be a program name with args.
3222 set dummy cc; ac_word=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3240 ac_prog_rejected=yes
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 if test $ac_prog_rejected = yes; then
3252 # We found a bogon in the path, so make sure we never use it.
3253 set dummy $ac_cv_prog_CC
3255 if test $# != 0; then
3256 # We chose a different compiler from the bogus one.
3257 # However, it has the same basename, so the bogon will be chosen
3258 # first if we set CC to just the basename; use the full file name.
3260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:$LINENO: result: no" >&5
3271 $as_echo "no" >&6; }
3276 if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 for ac_prog in cl.exe
3280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 if test -n "$CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$CC" && break
3320 if test -z "$CC"; then
3322 for ac_prog in cl.exe
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329 $as_echo_n "(cached) " >&6
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3356 { $as_echo "$as_me:$LINENO: result: no" >&5
3357 $as_echo "no" >&6; }
3361 test -n "$ac_ct_CC" && break
3364 if test "x$ac_ct_CC" = x; then
3367 case $cross_compiling:$ac_tool_warned in
3369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3380 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3383 See \`config.log' for more details." >&5
3384 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }; }
3388 # Provide some information about the compiler.
3389 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3392 { (ac_try="$ac_compiler --version >&5"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399 (eval "$ac_compiler --version >&5") 2>&5
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403 { (ac_try="$ac_compiler -v >&5"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410 (eval "$ac_compiler -v >&5") 2>&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }
3414 { (ac_try="$ac_compiler -V >&5"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421 (eval "$ac_compiler -V >&5") 2>&5
3423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 ac_clean_files_save=$ac_clean_files
3442 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3443 # Try to create an executable without -o first, disregard a.out.
3444 # It will help us diagnose broken compilers, and finding out an intuition
3446 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3447 $as_echo_n "checking for C compiler default output file name... " >&6; }
3448 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3450 # The possible output files:
3451 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3454 for ac_file in $ac_files
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3463 if { (ac_try="$ac_link_default"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_link_default") 2>&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; then
3474 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3475 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3476 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3477 # so that the user can short-circuit this test for compilers unknown to
3479 for ac_file in $ac_files ''
3481 test -f "$ac_file" || continue
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3486 # We found the default executable, but exeext='' is most
3490 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3492 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494 # We set ac_cv_exeext here because the later test for it is not
3495 # safe: cross compilers may not add the suffix if given an `-o'
3496 # argument, so we may need to know it at that point already.
3497 # Even if this section looks crufty: it has the advantage of
3504 test "$ac_cv_exeext" = no && ac_cv_exeext=
3510 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 if test -z "$ac_file"; then
3513 $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: C compiler cannot create executables
3521 See \`config.log' for more details." >&2;}
3522 { (exit 77); exit 77; }; }; }
3525 ac_exeext=$ac_cv_exeext
3527 # Check that the compiler produces executables we can run. If not, either
3528 # the compiler is broken, or we cross compile.
3529 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3530 $as_echo_n "checking whether the C compiler works... " >&6; }
3531 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3532 # If not cross compiling, check that we can run a simple program.
3533 if test "$cross_compiling" != yes; then
3534 if { ac_try='./$ac_file'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541 (eval "$ac_try") 2>&5
3543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3547 if test "$cross_compiling" = maybe; then
3550 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." >&5
3555 $as_echo "$as_me: error: cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }; }
3562 { $as_echo "$as_me:$LINENO: result: yes" >&5
3563 $as_echo "yes" >&6; }
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3570 $as_echo_n "checking whether we are cross compiling... " >&6; }
3571 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3572 $as_echo "$cross_compiling" >&6; }
3574 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { (ac_try="$ac_link"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_link") 2>&5
3585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; then
3587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3591 for ac_file in conftest.exe conftest conftest.*; do
3592 test -f "$ac_file" || continue
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }; }
3610 rm -f conftest$ac_cv_exeext
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3614 rm -f conftest.$ac_ext
3615 EXEEXT=$ac_cv_exeext
3617 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3618 $as_echo_n "checking for suffix of object files... " >&6; }
3619 if test "${ac_cv_objext+set}" = set; then
3620 $as_echo_n "(cached) " >&6
3622 cat >conftest.$ac_ext <<_ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h. */
3637 rm -f conftest.o conftest.obj
3638 if { (ac_try="$ac_compile"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_compile") 2>&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; then
3649 for ac_file in conftest.o conftest.obj conftest.*; do
3650 test -f "$ac_file" || continue;
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3666 See \`config.log' for more details." >&2;}
3667 { (exit 1); exit 1; }; }; }
3670 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3672 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3673 $as_echo "$ac_cv_objext" >&6; }
3674 OBJEXT=$ac_cv_objext
3676 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3678 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3679 $as_echo_n "(cached) " >&6
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731 if test $ac_compiler_gnu = yes; then
3736 ac_test_CFLAGS=${CFLAGS+set}
3737 ac_save_CFLAGS=$CFLAGS
3738 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if test "${ac_cv_prog_cc_g+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3762 rm -f conftest.$ac_objext
3763 if { (ac_try="$ac_compile"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3769 $as_echo "$ac_try_echo") >&5
3770 (eval "$ac_compile") 2>conftest.er1
3772 grep -v '^ *+' conftest.er1 >conftest.err
3774 cat conftest.err >&5
3775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } && {
3777 test -z "$ac_c_werror_flag" ||
3778 test ! -s conftest.err
3779 } && test -s conftest.$ac_objext; then
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3851 grep -v '^ *+' conftest.er1 >conftest.err
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3876 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3877 $as_echo "$ac_cv_prog_cc_g" >&6; }
3878 if test "$ac_test_CFLAGS" = set; then
3879 CFLAGS=$ac_save_CFLAGS
3880 elif test $ac_cv_prog_cc_g = yes; then
3881 if test "$GCC" = yes; then
3887 if test "$GCC" = yes; then
3893 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3894 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3895 if test "${ac_cv_prog_cc_c89+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3898 ac_cv_prog_cc_c89=no
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3908 #include <sys/types.h>
3909 #include <sys/stat.h>
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3924 s = g (p, va_arg (v,int));
3929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3930 function prototypes and stuff, but not '\xHH' hex character constants.
3931 These don't provoke an error unfortunately, instead are silently treated
3932 as 'x'. The following induces an error, until -std is added to get
3933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3934 array size at least. It's necessary to write '\x00'==0 to get something
3935 that's true only with -std. */
3936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939 inside strings and character constants. */
3941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3943 int test (int i, double x);
3944 struct s1 {int (*f) (int a);};
3945 struct s2 {int (*f) (double a);};
3946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3960 CC="$ac_save_CC $ac_arg"
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969 (eval "$ac_compile") 2>conftest.er1
3971 grep -v '^ *+' conftest.er1 >conftest.err
3973 cat conftest.err >&5
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest.$ac_objext; then
3979 ac_cv_prog_cc_c89=$ac_arg
3981 $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3990 rm -f conftest.$ac_ext
3995 case "x$ac_cv_prog_cc_c89" in
3997 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
4000 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 DEPDIR="${am__leading_dot}deps"
4016 ac_config_commands="$ac_config_commands depfiles"
4019 am_make=${MAKE-make}
4020 cat > confinc << 'END'
4022 @echo this is the am__doit target
4025 # If we don't find an include directive, just comment out the code.
4026 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4027 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4031 # First try GNU make style include.
4032 echo "include confinc" > confmf
4033 # Ignore all kinds of additional output from `make'.
4034 case `$am_make -s -f confmf 2> /dev/null` in #(
4035 *the\ am__doit\ target*)
4041 # Now try BSD make style include.
4042 if test "$am__include" = "#"; then
4043 echo '.include "confinc"' > confmf
4044 case `$am_make -s -f confmf 2> /dev/null` in #(
4045 *the\ am__doit\ target*)
4046 am__include=.include
4054 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4055 $as_echo "$_am_result" >&6; }
4056 rm -f confinc confmf
4058 # Check whether --enable-dependency-tracking was given.
4059 if test "${enable_dependency_tracking+set}" = set; then
4060 enableval=$enable_dependency_tracking;
4063 if test "x$enable_dependency_tracking" != xno; then
4064 am_depcomp="$ac_aux_dir/depcomp"
4067 if test "x$enable_dependency_tracking" != xno; then
4077 depcc="$CC" am_compiler_list=
4079 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4080 $as_echo_n "checking dependency style of $depcc... " >&6; }
4081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085 # We make a subdir and do the tests there. Otherwise we can end up
4086 # making bogus files that we don't know about and never remove. For
4087 # instance it was reported that on HP-UX the gcc test will end up
4088 # making a dummy file named `D' -- because `-MD' means `put the output
4091 # Copy depcomp to subdir because otherwise we won't find it if we're
4092 # using a relative directory.
4093 cp "$am_depcomp" conftest.dir
4095 # We will build objects and dependencies in a subdirectory because
4096 # it helps to detect inapplicable dependency modes. For instance
4097 # both Tru64's cc and ICC support -MD to output dependencies as a
4098 # side effect of compilation, but ICC will put the dependencies in
4099 # the current directory while Tru64 will put them in the object
4103 am_cv_CC_dependencies_compiler_type=none
4104 if test "$am_compiler_list" = ""; then
4105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4108 case " $depcc " in #(
4109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 for depmode in $am_compiler_list; do
4113 # Setup a source with many dependencies, because some compilers
4114 # like to wrap large dependency lists on column 80 (with \), and
4115 # we should not choose a depcomp mode which is confused by this.
4117 # We need to recreate these files for each test, as the compiler may
4118 # overwrite some of them when testing with obscure command lines.
4119 # This happens at least with the AIX C compiler.
4121 for i in 1 2 3 4 5 6; do
4122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4124 # Solaris 8's {/usr,}/bin/sh.
4125 touch sub/conftst$i.h
4127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4130 # mode. It turns out that the SunPro C++ compiler does not properly
4131 # handle `-M -o', and we need to detect this. Also, some Intel
4132 # versions had trouble with output in subdirs
4133 am__obj=sub/conftest.${OBJEXT-o}
4134 am__minus_obj="-o $am__obj"
4137 # This depmode causes a compiler race in universal mode.
4138 test "$am__universal" = false || continue
4141 # after this tag, mechanisms are not by side-effect, so they'll
4142 # only be used when explicitly requested
4143 if test "x$enable_dependency_tracking" = xyes; then
4149 msvisualcpp | msvcmsys)
4150 # This compiler won't grok `-c -o', but also, the minuso test has
4151 # not run yet. These depmodes are late enough in the game, and
4152 # so weak that their functioning should not be impacted.
4153 am__obj=conftest.${OBJEXT-o}
4158 if depmode=$depmode \
4159 source=sub/conftest.c object=$am__obj \
4160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162 >/dev/null 2>conftest.err &&
4163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167 # icc doesn't choke on unknown options, it will just issue warnings
4168 # or remarks (even with -Werror). So we grep stderr for any message
4169 # that says an option was ignored or not supported.
4170 # When given -MP, icc 7.0 and 7.1 complain thusly:
4171 # icc: Command line warning: ignoring option '-M'; no argument required
4172 # The diagnosis changed in icc 8.0:
4173 # icc: Command line remark: option '-MP' not supported
4174 if (grep 'ignoring option' conftest.err ||
4175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176 am_cv_CC_dependencies_compiler_type=$depmode
4185 am_cv_CC_dependencies_compiler_type=none
4189 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4194 test "x$enable_dependency_tracking" != xno \
4195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4197 am__fastdepCC_FALSE='#'
4199 am__fastdepCC_TRUE='#'
4200 am__fastdepCC_FALSE=
4206 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4207 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4212 macro_version='2.2.6b'
4213 macro_revision='1.3017'
4227 ltmain="$ac_aux_dir/ltmain.sh"
4229 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4230 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4231 if test "${ac_cv_path_SED+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4235 for ac_i in 1 2 3 4 5 6 7; do
4236 ac_script="$ac_script$as_nl$ac_script"
4238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4239 $as_unset ac_script || ac_script=
4240 if test -z "$SED"; then
4241 ac_path_SED_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in sed gsed; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4252 # Check for GNU ac_path_SED and select it if it is found.
4253 # Check for GNU $ac_path_SED
4254 case `"$ac_path_SED" --version 2>&1` in
4256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4259 $as_echo_n 0123456789 >"conftest.in"
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo '' >> "conftest.nl"
4266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 ac_count=`expr $ac_count + 1`
4269 if test $ac_count -gt ${ac_path_SED_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_SED="$ac_path_SED"
4272 ac_path_SED_max=$ac_count
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 $ac_path_SED_found && break 3
4285 if test -z "$ac_cv_path_SED"; then
4286 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4287 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4288 { (exit 1); exit 1; }; }
4295 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4296 $as_echo "$ac_cv_path_SED" >&6; }
4297 SED="$ac_cv_path_SED"
4300 test -z "$SED" && SED=sed
4301 Xsed="$SED -e 1s/^X//"
4313 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4314 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315 if test "${ac_cv_path_GREP+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4318 if test -z "$GREP"; then
4319 ac_path_GREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in grep ggrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330 # Check for GNU ac_path_GREP and select it if it is found.
4331 # Check for GNU $ac_path_GREP
4332 case `"$ac_path_GREP" --version 2>&1` in
4334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4337 $as_echo_n 0123456789 >"conftest.in"
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'GREP' >> "conftest.nl"
4344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 ac_count=`expr $ac_count + 1`
4347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_GREP="$ac_path_GREP"
4350 ac_path_GREP_max=$ac_count
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358 $ac_path_GREP_found && break 3
4363 if test -z "$ac_cv_path_GREP"; then
4364 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4365 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4366 { (exit 1); exit 1; }; }
4369 ac_cv_path_GREP=$GREP
4373 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374 $as_echo "$ac_cv_path_GREP" >&6; }
4375 GREP="$ac_cv_path_GREP"
4378 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4379 $as_echo_n "checking for egrep... " >&6; }
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381 $as_echo_n "(cached) " >&6
4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384 then ac_cv_path_EGREP="$GREP -E"
4386 if test -z "$EGREP"; then
4387 ac_path_EGREP_found=false
4388 # Loop through the user's path and test for each of PROGNAME-LIST
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 test -z "$as_dir" && as_dir=.
4394 for ac_prog in egrep; do
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4398 # Check for GNU ac_path_EGREP and select it if it is found.
4399 # Check for GNU $ac_path_EGREP
4400 case `"$ac_path_EGREP" --version 2>&1` in
4402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4405 $as_echo_n 0123456789 >"conftest.in"
4408 cat "conftest.in" "conftest.in" >"conftest.tmp"
4409 mv "conftest.tmp" "conftest.in"
4410 cp "conftest.in" "conftest.nl"
4411 $as_echo 'EGREP' >> "conftest.nl"
4412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414 ac_count=`expr $ac_count + 1`
4415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4416 # Best one so far, save it but keep looking for a better one
4417 ac_cv_path_EGREP="$ac_path_EGREP"
4418 ac_path_EGREP_max=$ac_count
4420 # 10*(2^10) chars as input seems more than enough
4421 test $ac_count -gt 10 && break
4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 $ac_path_EGREP_found && break 3
4431 if test -z "$ac_cv_path_EGREP"; then
4432 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4433 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4434 { (exit 1); exit 1; }; }
4437 ac_cv_path_EGREP=$EGREP
4442 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4443 $as_echo "$ac_cv_path_EGREP" >&6; }
4444 EGREP="$ac_cv_path_EGREP"
4447 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4448 $as_echo_n "checking for fgrep... " >&6; }
4449 if test "${ac_cv_path_FGREP+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4453 then ac_cv_path_FGREP="$GREP -F"
4455 if test -z "$FGREP"; then
4456 ac_path_FGREP_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in fgrep; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4467 # Check for GNU ac_path_FGREP and select it if it is found.
4468 # Check for GNU $ac_path_FGREP
4469 case `"$ac_path_FGREP" --version 2>&1` in
4471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4474 $as_echo_n 0123456789 >"conftest.in"
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo 'FGREP' >> "conftest.nl"
4481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 ac_count=`expr $ac_count + 1`
4484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_FGREP="$ac_path_FGREP"
4487 ac_path_FGREP_max=$ac_count
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 $ac_path_FGREP_found && break 3
4500 if test -z "$ac_cv_path_FGREP"; then
4501 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4502 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4503 { (exit 1); exit 1; }; }
4506 ac_cv_path_FGREP=$FGREP
4511 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4512 $as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
4516 test -z "$GREP" && GREP=grep
4536 # Check whether --with-gnu-ld was given.
4537 if test "${with_gnu_ld+set}" = set; then
4538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4544 if test "$GCC" = yes; then
4545 # Check if gcc -print-prog-name=ld gives a path.
4546 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4547 $as_echo_n "checking for ld used by $CC... " >&6; }
4550 # gcc leaves a trailing carriage return which upsets mingw
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4556 # Accept absolute paths.
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4564 test -z "$LD" && LD="$ac_prog"
4567 # If it fails, then pretend we aren't using GCC.
4571 # If it is relative, then search for the first ld in PATH.
4575 elif test "$with_gnu_ld" = yes; then
4576 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4577 $as_echo_n "checking for GNU ld... " >&6; }
4579 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4580 $as_echo_n "checking for non-GNU ld... " >&6; }
4582 if test "${lt_cv_path_LD+set}" = set; then
4583 $as_echo_n "(cached) " >&6
4585 if test -z "$LD"; then
4586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591 lt_cv_path_LD="$ac_dir/$ac_prog"
4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 test "$with_gnu_ld" != no && break
4600 test "$with_gnu_ld" != yes && break
4607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4612 if test -n "$LD"; then
4613 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4614 $as_echo "$LD" >&6; }
4616 { $as_echo "$as_me:$LINENO: result: no" >&5
4617 $as_echo "no" >&6; }
4619 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4620 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4621 { (exit 1); exit 1; }; }
4622 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4624 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4625 $as_echo_n "(cached) " >&6
4627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628 case `$LD -v 2>&1 </dev/null` in
4629 *GNU* | *'with BFD'*)
4630 lt_cv_prog_gnu_ld=yes
4633 lt_cv_prog_gnu_ld=no
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4639 with_gnu_ld=$lt_cv_prog_gnu_ld
4649 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4651 if test "${lt_cv_path_NM+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$NM"; then
4655 # Let the user override the test.
4658 lt_nm_to_check="${ac_tool_prefix}nm"
4659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660 lt_nm_to_check="$lt_nm_to_check nm"
4662 for lt_tmp_nm in $lt_nm_to_check; do
4663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4666 test -z "$ac_dir" && ac_dir=.
4667 tmp_nm="$ac_dir/$lt_tmp_nm"
4668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4669 # Check to see if the nm accepts a BSD-compat flag.
4670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4671 # nm: unknown option "B" ignored
4672 # Tru64's nm complains that /dev/null is an invalid object file
4673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4674 */dev/null* | *'Invalid file or object type'*)
4675 lt_cv_path_NM="$tmp_nm -B"
4679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4681 lt_cv_path_NM="$tmp_nm -p"
4685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4686 continue # so that we can try to find one that supports BSD flags
4695 : ${lt_cv_path_NM=no}
4698 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4699 $as_echo "$lt_cv_path_NM" >&6; }
4700 if test "$lt_cv_path_NM" != "no"; then
4703 # Didn't find any BSD compatible name lister, look for dumpbin.
4704 if test -n "$ac_tool_prefix"; then
4705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4712 $as_echo_n "(cached) " >&6
4714 if test -n "$DUMPBIN"; then
4715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 DUMPBIN=$ac_cv_prog_DUMPBIN
4735 if test -n "$DUMPBIN"; then
4736 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4737 $as_echo "$DUMPBIN" >&6; }
4739 { $as_echo "$as_me:$LINENO: result: no" >&5
4740 $as_echo "no" >&6; }
4744 test -n "$DUMPBIN" && break
4747 if test -z "$DUMPBIN"; then
4748 ac_ct_DUMPBIN=$DUMPBIN
4749 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$ac_ct_DUMPBIN"; then
4759 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779 if test -n "$ac_ct_DUMPBIN"; then
4780 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781 $as_echo "$ac_ct_DUMPBIN" >&6; }
4783 { $as_echo "$as_me:$LINENO: result: no" >&5
4784 $as_echo "no" >&6; }
4788 test -n "$ac_ct_DUMPBIN" && break
4791 if test "x$ac_ct_DUMPBIN" = x; then
4794 case $cross_compiling:$ac_tool_warned in
4796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4798 ac_tool_warned=yes ;;
4800 DUMPBIN=$ac_ct_DUMPBIN
4805 if test "$DUMPBIN" != ":"; then
4809 test -z "$NM" && NM=nm
4816 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4817 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4818 if test "${lt_cv_nm_interface+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4821 lt_cv_nm_interface="BSD nm"
4822 echo "int some_variable = 0;" > conftest.$ac_ext
4823 (eval echo "\"\$as_me:4823: $ac_compile\"" >&5)
4824 (eval "$ac_compile" 2>conftest.err)
4825 cat conftest.err >&5
4826 (eval echo "\"\$as_me:4826: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4827 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828 cat conftest.err >&5
4829 (eval echo "\"\$as_me:4829: output\"" >&5)
4830 cat conftest.out >&5
4831 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832 lt_cv_nm_interface="MS dumpbin"
4836 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4837 $as_echo "$lt_cv_nm_interface" >&6; }
4839 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4840 $as_echo_n "checking whether ln -s works... " >&6; }
4842 if test "$LN_S" = "ln -s"; then
4843 { $as_echo "$as_me:$LINENO: result: yes" >&5
4844 $as_echo "yes" >&6; }
4846 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4847 $as_echo "no, using $LN_S" >&6; }
4850 # find the maximum length of command line arguments
4851 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4852 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4853 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4854 $as_echo_n "(cached) " >&6
4861 # On DJGPP, this test can blow up pretty badly due to problems in libc
4862 # (any single argument exceeding 2000 bytes causes a buffer overrun
4863 # during glob expansion). Even if it were fixed, the result of this
4864 # check would be larger than it should be.
4865 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4869 # Under GNU Hurd, this test is not required because there is
4870 # no limit to the length of command line arguments.
4871 # Libtool will interpret -1 as no limit whatsoever
4872 lt_cv_sys_max_cmd_len=-1;
4875 cygwin* | mingw* | cegcc*)
4876 # On Win9x/ME, this test blows up -- it succeeds, but takes
4877 # about 5 minutes as the teststring grows exponentially.
4878 # Worse, since 9x/ME are not pre-emptively multitasking,
4879 # you end up with a "frozen" computer, even though with patience
4880 # the test eventually succeeds (with a max line length of 256k).
4881 # Instead, let's just punt: use the minimum linelength reported by
4882 # all of the supported platforms: 8192 (on NT/2K/XP).
4883 lt_cv_sys_max_cmd_len=8192;
4887 # On AmigaOS with pdksh, this test takes hours, literally.
4888 # So we just punt and use a minimum line length of 8192.
4889 lt_cv_sys_max_cmd_len=8192;
4892 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4893 # This has been around since 386BSD, at least. Likely further.
4894 if test -x /sbin/sysctl; then
4895 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4896 elif test -x /usr/sbin/sysctl; then
4897 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4899 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4901 # And add a safety zone
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4907 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4908 lt_cv_sys_max_cmd_len=196608
4912 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4913 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4914 # nice to cause kernel panics so lets avoid the loop below.
4915 # First set a reasonable default.
4916 lt_cv_sys_max_cmd_len=16384
4918 if test -x /sbin/sysconfig; then
4919 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4920 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4925 lt_cv_sys_max_cmd_len=102400
4927 sysv5* | sco5v6* | sysv4.2uw2*)
4928 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4929 if test -n "$kargmax"; then
4930 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4932 lt_cv_sys_max_cmd_len=32768
4936 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4937 if test -n "$lt_cv_sys_max_cmd_len"; then
4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4941 # Make teststring a little bigger before we do anything with it.
4942 # a 1K string should be a reasonable start.
4943 for i in 1 2 3 4 5 6 7 8 ; do
4944 teststring=$teststring$teststring
4946 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4947 # If test is not a shell built-in, we'll probably end up computing a
4948 # maximum length that is only half of the actual maximum length, but
4950 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4951 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4952 test $i != 17 # 1/2 MB should be enough
4955 teststring=$teststring$teststring
4957 # Only check the string length outside the loop.
4958 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4960 # Add a significant safety factor because C++ compilers can tack on
4961 # massive amounts of additional arguments before passing them to the
4962 # linker. It appears as though 1/2 is a usable value.
4963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4970 if test -n $lt_cv_sys_max_cmd_len ; then
4971 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4972 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4974 { $as_echo "$as_me:$LINENO: result: none" >&5
4975 $as_echo "none" >&6; }
4977 max_cmd_len=$lt_cv_sys_max_cmd_len
4988 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4989 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4990 # Try some XSI features
4993 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4995 && eval 'test $(( 1 + 1 )) -eq 2 \
4996 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4998 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4999 $as_echo "$xsi_shell" >&6; }
5002 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5003 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5005 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5007 && lt_shell_append=yes
5008 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5009 $as_echo "$lt_shell_append" >&6; }
5012 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022 # test EBCDIC or ASCII
5023 case `echo X|tr X '\101'` in
5024 A) # ASCII based system
5025 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5026 lt_SP2NL='tr \040 \012'
5027 lt_NL2SP='tr \015\012 \040\040'
5029 *) # EBCDIC based system
5030 lt_SP2NL='tr \100 \n'
5031 lt_NL2SP='tr \r\n \100\100'
5043 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5044 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5045 if test "${lt_cv_ld_reload_flag+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5048 lt_cv_ld_reload_flag='-r'
5050 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5051 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5052 reload_flag=$lt_cv_ld_reload_flag
5053 case $reload_flag in
5055 *) reload_flag=" $reload_flag" ;;
5057 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5060 if test "$GCC" = yes; then
5061 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5082 $as_echo_n "(cached) " >&6
5084 if test -n "$OBJDUMP"; then
5085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 OBJDUMP=$ac_cv_prog_OBJDUMP
5105 if test -n "$OBJDUMP"; then
5106 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5107 $as_echo "$OBJDUMP" >&6; }
5109 { $as_echo "$as_me:$LINENO: result: no" >&5
5110 $as_echo "no" >&6; }
5115 if test -z "$ac_cv_prog_OBJDUMP"; then
5116 ac_ct_OBJDUMP=$OBJDUMP
5117 # Extract the first word of "objdump", so it can be a program name with args.
5118 set dummy objdump; ac_word=$2
5119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5124 if test -n "$ac_ct_OBJDUMP"; then
5125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5145 if test -n "$ac_ct_OBJDUMP"; then
5146 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5147 $as_echo "$ac_ct_OBJDUMP" >&6; }
5149 { $as_echo "$as_me:$LINENO: result: no" >&5
5150 $as_echo "no" >&6; }
5153 if test "x$ac_ct_OBJDUMP" = x; then
5156 case $cross_compiling:$ac_tool_warned in
5158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5162 OBJDUMP=$ac_ct_OBJDUMP
5165 OBJDUMP="$ac_cv_prog_OBJDUMP"
5168 test -z "$OBJDUMP" && OBJDUMP=objdump
5178 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5179 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5180 if test "${lt_cv_deplibs_check_method+set}" = set; then
5181 $as_echo_n "(cached) " >&6
5183 lt_cv_file_magic_cmd='$MAGIC_CMD'
5184 lt_cv_file_magic_test_file=
5185 lt_cv_deplibs_check_method='unknown'
5186 # Need to set the preceding variable on all platforms that support
5187 # interlibrary dependencies.
5188 # 'none' -- dependencies not supported.
5189 # `unknown' -- same as none, but documents that we really don't know.
5190 # 'pass_all' -- all dependencies passed with no checks.
5191 # 'test_compile' -- check by making test program.
5192 # 'file_magic [[regex]]' -- check by looking for files in library path
5193 # which responds to the $file_magic_cmd with a given extended regex.
5194 # If you have `file' or equivalent on your system and you're not sure
5195 # whether `pass_all' will *always* work, you probably want this one.
5199 lt_cv_deplibs_check_method=pass_all
5203 lt_cv_deplibs_check_method=pass_all
5207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5208 lt_cv_file_magic_cmd='/usr/bin/file -L'
5209 lt_cv_file_magic_test_file=/shlib/libc.so
5213 # func_win32_libid is a shell function defined in ltmain.sh
5214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5215 lt_cv_file_magic_cmd='func_win32_libid'
5219 # Base MSYS/MinGW do not provide the 'file' command needed by
5220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5221 # unless we find 'file', for example because we are cross-compiling.
5222 if ( file / ) >/dev/null 2>&1; then
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5226 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5227 lt_cv_file_magic_cmd='$OBJDUMP -f'
5232 # use the weaker test based on 'objdump'. See mingw*.
5233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234 lt_cv_file_magic_cmd='$OBJDUMP -f'
5237 darwin* | rhapsody*)
5238 lt_cv_deplibs_check_method=pass_all
5241 freebsd* | dragonfly*)
5242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5245 # Not sure whether the presence of OpenBSD here was a mistake.
5246 # Let's accept both of them until this is cleared up.
5247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5253 lt_cv_deplibs_check_method=pass_all
5258 lt_cv_deplibs_check_method=pass_all
5261 hpux10.20* | hpux11*)
5262 lt_cv_file_magic_cmd=/usr/bin/file
5265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5269 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]'
5270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5284 irix5* | irix6* | nonstopux*)
5286 *-32|*"-32 ") libmagic=32-bit;;
5287 *-n32|*"-n32 ") libmagic=N32;;
5288 *-64|*"-64 ") libmagic=64-bit;;
5289 *) libmagic=never-match;;
5291 lt_cv_deplibs_check_method=pass_all
5294 # This must be Linux ELF.
5295 linux* | k*bsd*-gnu)
5296 lt_cv_deplibs_check_method=pass_all
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309 lt_cv_file_magic_cmd=/usr/bin/file
5310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5314 lt_cv_deplibs_check_method=pass_all
5318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5325 osf3* | osf4* | osf5*)
5326 lt_cv_deplibs_check_method=pass_all
5330 lt_cv_deplibs_check_method=pass_all
5334 lt_cv_deplibs_check_method=pass_all
5337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338 lt_cv_deplibs_check_method=pass_all
5342 case $host_vendor in
5344 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]'
5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5348 lt_cv_deplibs_check_method=pass_all
5351 lt_cv_file_magic_cmd='/bin/file'
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5355 lt_cv_file_magic_cmd='/bin/file'
5356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357 lt_cv_file_magic_test_file=/lib/libc.so
5360 lt_cv_deplibs_check_method=pass_all
5363 lt_cv_deplibs_check_method=pass_all
5369 lt_cv_deplibs_check_method=pass_all
5374 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5375 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5376 file_magic_cmd=$lt_cv_file_magic_cmd
5377 deplibs_check_method=$lt_cv_deplibs_check_method
5378 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5391 if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ar; ac_word=$2
5394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_AR+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5399 if test -n "$AR"; then
5400 ac_cv_prog_AR="$AR" # Let the user override the test.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_AR="${ac_tool_prefix}ar"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 if test -n "$AR"; then
5421 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5422 $as_echo "$AR" >&6; }
5424 { $as_echo "$as_me:$LINENO: result: no" >&5
5425 $as_echo "no" >&6; }
5430 if test -z "$ac_cv_prog_AR"; then
5432 # Extract the first word of "ar", so it can be a program name with args.
5433 set dummy ar; ac_word=$2
5434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$ac_ct_AR"; then
5440 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_ac_ct_AR="ar"
5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5460 if test -n "$ac_ct_AR"; then
5461 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5462 $as_echo "$ac_ct_AR" >&6; }
5464 { $as_echo "$as_me:$LINENO: result: no" >&5
5465 $as_echo "no" >&6; }
5468 if test "x$ac_ct_AR" = x; then
5471 case $cross_compiling:$ac_tool_warned in
5473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned=yes ;;
5483 test -z "$AR" && AR=ar
5484 test -z "$AR_FLAGS" && AR_FLAGS=cru
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}strip; ac_word=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_STRIP+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$STRIP"; then
5505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5527 $as_echo "$STRIP" >&6; }
5529 { $as_echo "$as_me:$LINENO: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$ac_cv_prog_STRIP"; then
5537 # Extract the first word of "strip", so it can be a program name with args.
5538 set dummy strip; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 if test -n "$ac_ct_STRIP"; then
5545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_ac_ct_STRIP="strip"
5555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565 if test -n "$ac_ct_STRIP"; then
5566 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5567 $as_echo "$ac_ct_STRIP" >&6; }
5569 { $as_echo "$as_me:$LINENO: result: no" >&5
5570 $as_echo "no" >&6; }
5573 if test "x$ac_ct_STRIP" = x; then
5576 case $cross_compiling:$ac_tool_warned in
5578 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5585 STRIP="$ac_cv_prog_STRIP"
5588 test -z "$STRIP" && STRIP=:
5595 if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_prog_RANLIB+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5603 if test -n "$RANLIB"; then
5604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 RANLIB=$ac_cv_prog_RANLIB
5624 if test -n "$RANLIB"; then
5625 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5626 $as_echo "$RANLIB" >&6; }
5628 { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
5634 if test -z "$ac_cv_prog_RANLIB"; then
5635 ac_ct_RANLIB=$RANLIB
5636 # Extract the first word of "ranlib", so it can be a program name with args.
5637 set dummy ranlib; ac_word=$2
5638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5641 $as_echo_n "(cached) " >&6
5643 if test -n "$ac_ct_RANLIB"; then
5644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_ac_ct_RANLIB="ranlib"
5654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5664 if test -n "$ac_ct_RANLIB"; then
5665 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5666 $as_echo "$ac_ct_RANLIB" >&6; }
5668 { $as_echo "$as_me:$LINENO: result: no" >&5
5669 $as_echo "no" >&6; }
5672 if test "x$ac_ct_RANLIB" = x; then
5675 case $cross_compiling:$ac_tool_warned in
5677 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5681 RANLIB=$ac_ct_RANLIB
5684 RANLIB="$ac_cv_prog_RANLIB"
5687 test -z "$RANLIB" && RANLIB=:
5694 # Determine commands to create old-style static archives.
5695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5696 old_postinstall_cmds='chmod 644 $oldlib'
5697 old_postuninstall_cmds=
5699 if test -n "$RANLIB"; then
5702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5744 # If no C compiler was specified, use CC.
5747 # If no C compiler flags were specified, use CFLAGS.
5748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5750 # Allow CC to be a program name with arguments.
5754 # Check for command to grab the raw symbol name followed by C symbol from nm.
5755 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5757 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5758 $as_echo_n "(cached) " >&6
5761 # These are sane defaults that work on at least a few old systems.
5762 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5764 # Character class describing NM global symbol codes.
5765 symcode='[BCDEGRST]'
5767 # Regexp to match symbols that can be accessed directly from C.
5768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5770 # Define system-specific variables.
5775 cygwin* | mingw* | pw32* | cegcc*)
5776 symcode='[ABCDGISTW]'
5779 if test "$host_cpu" = ia64; then
5780 symcode='[ABCDEGRST]'
5784 symcode='[BCDEGRST]'
5787 symcode='[BCDEGQRST]'
5798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5806 # If we're using GNU nm, then use its standard symbol codes.
5807 case `$NM -V 2>&1` in
5808 *GNU* | *'with BFD'*)
5809 symcode='[ABCDGIRSTW]' ;;
5812 # Transform an extracted symbol line into a proper C declaration.
5813 # Some systems (esp. on ia64) link data and code symbols differently,
5814 # so use this general approach.
5815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5817 # Transform an extracted symbol line into symbol name and symbol address
5818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5819 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 # Handle CRLF in mingw tool chain
5825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5829 # Try without a prefix underscore, then with it.
5830 for ac_symprfx in "" "_"; do
5832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5833 symxfrm="\\1 $ac_symprfx\\2 \\2"
5835 # Write the raw and C identifiers.
5836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5837 # Fake it for dumpbin and say T for any non-static function
5838 # and D for any global variable.
5839 # Also find C++ and __fastcall symbols from MSVC++,
5840 # which start with @ or ?.
5841 lt_cv_sys_global_symbol_pipe="$AWK '"\
5842 " {last_section=section; section=\$ 3};"\
5843 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5844 " \$ 0!~/External *\|/{next};"\
5845 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5846 " {if(hide[section]) next};"\
5847 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5848 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5849 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5850 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5851 " ' prfx=^$ac_symprfx"
5853 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5856 # Check to see that the pipe works correctly.
5860 cat > conftest.$ac_ext <<_LT_EOF
5865 void nm_test_func(void);
5866 void nm_test_func(void){}
5870 int main(){nm_test_var='a';nm_test_func();return(0);}
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; then
5878 # Now try to grab the symbols.
5880 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5881 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && test -s "$nlist"; then
5885 # Try sorting and uniquifying the output.
5886 if sort "$nlist" | uniq > "$nlist"T; then
5887 mv -f "$nlist"T "$nlist"
5892 # Make sure that we snagged all the symbols we need.
5893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5895 cat <<_LT_EOF > conftest.$ac_ext
5901 # Now generate the symbol file.
5902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5904 cat <<_LT_EOF >> conftest.$ac_ext
5906 /* The mapping between symbol names and symbols. */
5911 lt__PROGRAM__LTX_preloaded_symbols[] =
5913 { "@PROGRAM@", (void *) 0 },
5915 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5916 cat <<\_LT_EOF >> conftest.$ac_ext
5920 /* This works around a problem in FreeBSD linker */
5921 #ifdef FREEBSD_WORKAROUND
5922 static const void *lt_preloaded_setup() {
5923 return lt__PROGRAM__LTX_preloaded_symbols;
5931 # Now try linking the two files.
5932 mv conftest.$ac_objext conftstm.$ac_objext
5933 lt_save_LIBS="$LIBS"
5934 lt_save_CFLAGS="$CFLAGS"
5935 LIBS="conftstm.$ac_objext"
5936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>&5
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5944 LIBS="$lt_save_LIBS"
5945 CFLAGS="$lt_save_CFLAGS"
5947 echo "cannot find nm_test_func in $nlist" >&5
5950 echo "cannot find nm_test_var in $nlist" >&5
5953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5956 echo "$progname: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 rm -rf conftest* conftst*
5961 # Do not use the global_symbol_pipe unless it works.
5962 if test "$pipe_works" = yes; then
5965 lt_cv_sys_global_symbol_pipe=
5971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5972 lt_cv_sys_global_symbol_to_cdecl=
5974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5975 { $as_echo "$as_me:$LINENO: result: failed" >&5
5976 $as_echo "failed" >&6; }
5978 { $as_echo "$as_me:$LINENO: result: ok" >&5
5979 $as_echo "ok" >&6; }
6004 # Check whether --enable-libtool-lock was given.
6005 if test "${enable_libtool_lock+set}" = set; then
6006 enableval=$enable_libtool_lock;
6009 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6011 # Some flags need to be propagated to the compiler or linker for good
6015 # Find out which ABI we are using.
6016 echo 'int i;' > conftest.$ac_ext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>&5
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; then
6022 case `/usr/bin/file conftest.$ac_objext` in
6034 # Find out which ABI we are using.
6035 echo '#line 6035 "configure"' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 if test "$lt_cv_prog_gnu_ld" = yes; then
6042 case `/usr/bin/file conftest.$ac_objext` in
6044 LD="${LD-ld} -melf32bsmip"
6047 LD="${LD-ld} -melf32bmipn32"
6050 LD="${LD-ld} -melf64bmip"
6054 case `/usr/bin/file conftest.$ac_objext` in
6070 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6071 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6072 # Find out which ABI we are using.
6073 echo 'int i;' > conftest.$ac_ext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; then
6079 case `/usr/bin/file conftest.o` in
6082 x86_64-*kfreebsd*-gnu)
6083 LD="${LD-ld} -m elf_i386_fbsd"
6086 LD="${LD-ld} -m elf_i386"
6088 ppc64-*linux*|powerpc64-*linux*)
6089 LD="${LD-ld} -m elf32ppclinux"
6092 LD="${LD-ld} -m elf_s390"
6095 LD="${LD-ld} -m elf32_sparc"
6101 x86_64-*kfreebsd*-gnu)
6102 LD="${LD-ld} -m elf_x86_64_fbsd"
6105 LD="${LD-ld} -m elf_x86_64"
6107 ppc*-*linux*|powerpc*-*linux*)
6108 LD="${LD-ld} -m elf64ppc"
6110 s390*-*linux*|s390*-*tpf*)
6111 LD="${LD-ld} -m elf64_s390"
6114 LD="${LD-ld} -m elf64_sparc"
6124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6125 SAVE_CFLAGS="$CFLAGS"
6126 CFLAGS="$CFLAGS -belf"
6127 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6128 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6129 if test "${lt_cv_cc_needs_belf+set}" = set; then
6130 $as_echo_n "(cached) " >&6
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (ac_try="$ac_link"
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_link") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest$ac_exeext && {
6171 test "$cross_compiling" = yes ||
6172 $as_test_x conftest$ac_exeext
6174 lt_cv_cc_needs_belf=yes
6176 $as_echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 lt_cv_cc_needs_belf=no
6182 rm -rf conftest.dSYM
6183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6184 conftest$ac_exeext conftest.$ac_ext
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6193 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6194 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6195 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6196 CFLAGS="$SAVE_CFLAGS"
6200 # Find out which ABI we are using.
6201 echo 'int i;' > conftest.$ac_ext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>&5
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; then
6207 case `/usr/bin/file conftest.o` in
6209 case $lt_cv_prog_gnu_ld in
6210 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6212 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6224 need_locks="$enable_libtool_lock"
6228 rhapsody* | darwin*)
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6235 $as_echo_n "(cached) " >&6
6237 if test -n "$DSYMUTIL"; then
6238 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6258 if test -n "$DSYMUTIL"; then
6259 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6260 $as_echo "$DSYMUTIL" >&6; }
6262 { $as_echo "$as_me:$LINENO: result: no" >&5
6263 $as_echo "no" >&6; }
6268 if test -z "$ac_cv_prog_DSYMUTIL"; then
6269 ac_ct_DSYMUTIL=$DSYMUTIL
6270 # Extract the first word of "dsymutil", so it can be a program name with args.
6271 set dummy dsymutil; ac_word=$2
6272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6275 $as_echo_n "(cached) " >&6
6277 if test -n "$ac_ct_DSYMUTIL"; then
6278 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6298 if test -n "$ac_ct_DSYMUTIL"; then
6299 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6300 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6302 { $as_echo "$as_me:$LINENO: result: no" >&5
6303 $as_echo "no" >&6; }
6306 if test "x$ac_ct_DSYMUTIL" = x; then
6309 case $cross_compiling:$ac_tool_warned in
6311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6315 DSYMUTIL=$ac_ct_DSYMUTIL
6318 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6327 $as_echo_n "(cached) " >&6
6329 if test -n "$NMEDIT"; then
6330 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 NMEDIT=$ac_cv_prog_NMEDIT
6350 if test -n "$NMEDIT"; then
6351 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6352 $as_echo "$NMEDIT" >&6; }
6354 { $as_echo "$as_me:$LINENO: result: no" >&5
6355 $as_echo "no" >&6; }
6360 if test -z "$ac_cv_prog_NMEDIT"; then
6361 ac_ct_NMEDIT=$NMEDIT
6362 # Extract the first word of "nmedit", so it can be a program name with args.
6363 set dummy nmedit; ac_word=$2
6364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6367 $as_echo_n "(cached) " >&6
6369 if test -n "$ac_ct_NMEDIT"; then
6370 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6390 if test -n "$ac_ct_NMEDIT"; then
6391 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6392 $as_echo "$ac_ct_NMEDIT" >&6; }
6394 { $as_echo "$as_me:$LINENO: result: no" >&5
6395 $as_echo "no" >&6; }
6398 if test "x$ac_ct_NMEDIT" = x; then
6401 case $cross_compiling:$ac_tool_warned in
6403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6407 NMEDIT=$ac_ct_NMEDIT
6410 NMEDIT="$ac_cv_prog_NMEDIT"
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_LIPO+set}" = set; then
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$LIPO"; then
6422 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 LIPO=$ac_cv_prog_LIPO
6442 if test -n "$LIPO"; then
6443 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6444 $as_echo "$LIPO" >&6; }
6446 { $as_echo "$as_me:$LINENO: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_LIPO"; then
6454 # Extract the first word of "lipo", so it can be a program name with args.
6455 set dummy lipo; ac_word=$2
6456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_LIPO"; then
6462 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_LIPO="lipo"
6472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6482 if test -n "$ac_ct_LIPO"; then
6483 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6484 $as_echo "$ac_ct_LIPO" >&6; }
6486 { $as_echo "$as_me:$LINENO: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_LIPO" = x; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6502 LIPO="$ac_cv_prog_LIPO"
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}otool; ac_word=$2
6508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_prog_OTOOL+set}" = set; then
6511 $as_echo_n "(cached) " >&6
6513 if test -n "$OTOOL"; then
6514 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 OTOOL=$ac_cv_prog_OTOOL
6534 if test -n "$OTOOL"; then
6535 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6536 $as_echo "$OTOOL" >&6; }
6538 { $as_echo "$as_me:$LINENO: result: no" >&5
6539 $as_echo "no" >&6; }
6544 if test -z "$ac_cv_prog_OTOOL"; then
6546 # Extract the first word of "otool", so it can be a program name with args.
6547 set dummy otool; ac_word=$2
6548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6553 if test -n "$ac_ct_OTOOL"; then
6554 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_ac_ct_OTOOL="otool"
6564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6574 if test -n "$ac_ct_OTOOL"; then
6575 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6576 $as_echo "$ac_ct_OTOOL" >&6; }
6578 { $as_echo "$as_me:$LINENO: result: no" >&5
6579 $as_echo "no" >&6; }
6582 if test "x$ac_ct_OTOOL" = x; then
6585 case $cross_compiling:$ac_tool_warned in
6587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6594 OTOOL="$ac_cv_prog_OTOOL"
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6605 if test -n "$OTOOL64"; then
6606 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 OTOOL64=$ac_cv_prog_OTOOL64
6626 if test -n "$OTOOL64"; then
6627 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6628 $as_echo "$OTOOL64" >&6; }
6630 { $as_echo "$as_me:$LINENO: result: no" >&5
6631 $as_echo "no" >&6; }
6636 if test -z "$ac_cv_prog_OTOOL64"; then
6637 ac_ct_OTOOL64=$OTOOL64
6638 # Extract the first word of "otool64", so it can be a program name with args.
6639 set dummy otool64; ac_word=$2
6640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6645 if test -n "$ac_ct_OTOOL64"; then
6646 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_OTOOL64="otool64"
6656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6666 if test -n "$ac_ct_OTOOL64"; then
6667 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6668 $as_echo "$ac_ct_OTOOL64" >&6; }
6670 { $as_echo "$as_me:$LINENO: result: no" >&5
6671 $as_echo "no" >&6; }
6674 if test "x$ac_ct_OTOOL64" = x; then
6677 case $cross_compiling:$ac_tool_warned in
6679 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681 ac_tool_warned=yes ;;
6683 OTOOL64=$ac_ct_OTOOL64
6686 OTOOL64="$ac_cv_prog_OTOOL64"
6715 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6716 $as_echo_n "checking for -single_module linker flag... " >&6; }
6717 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6720 lt_cv_apple_cc_single_mod=no
6721 if test -z "${LT_MULTI_MODULE}"; then
6722 # By default we will add the -single_module flag. You can override
6723 # by either setting the environment variable LT_MULTI_MODULE
6724 # non-empty at configure time, or by adding -multi_module to the
6726 rm -rf libconftest.dylib*
6727 echo "int foo(void){return 1;}" > conftest.c
6728 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6729 -dynamiclib -Wl,-single_module conftest.c" >&5
6730 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6733 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6734 lt_cv_apple_cc_single_mod=yes
6736 cat conftest.err >&5
6738 rm -rf libconftest.dylib*
6742 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6743 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6744 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6745 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6746 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6747 $as_echo_n "(cached) " >&6
6749 lt_cv_ld_exported_symbols_list=no
6750 save_LDFLAGS=$LDFLAGS
6751 echo "_main" > conftest.sym
6752 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (ac_try="$ac_link"
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6775 $as_echo "$ac_try_echo") >&5
6776 (eval "$ac_link") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest$ac_exeext && {
6786 test "$cross_compiling" = yes ||
6787 $as_test_x conftest$ac_exeext
6789 lt_cv_ld_exported_symbols_list=yes
6791 $as_echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 lt_cv_ld_exported_symbols_list=no
6797 rm -rf conftest.dSYM
6798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799 conftest$ac_exeext conftest.$ac_ext
6800 LDFLAGS="$save_LDFLAGS"
6803 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6804 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6806 rhapsody* | darwin1.[012])
6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810 darwin*) # darwin 5.x on
6811 # if running on 10.5 or later, the deployment target defaults
6812 # to the OS version, if on x86, and 10.4, the deployment
6813 # target defaults to 10.4. Don't you love it?
6814 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6815 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6820 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6825 _lt_dar_single_mod='$single_module'
6827 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6828 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6830 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6832 if test "$DSYMUTIL" != ":"; then
6833 _lt_dsymutil='~$DSYMUTIL $lib || :'
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6847 # On Suns, sometimes $CPP names a directory.
6848 if test -n "$CPP" && test -d "$CPP"; then
6851 if test -z "$CPP"; then
6852 if test "${ac_cv_prog_CPP+set}" = set; then
6853 $as_echo_n "(cached) " >&6
6855 # Double quotes because CPP needs to be expanded
6856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6859 for ac_c_preproc_warn_flag in '' yes
6861 # Use a header file that comes with gcc, so configuring glibc
6862 # with a fresh cross-compiler works.
6863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 # <limits.h> exists even on freestanding compilers.
6865 # On the NeXT, cc -E runs the code through the compiler's parser,
6866 # not just through cpp. "Syntax error" is here to catch this case.
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6874 # include <limits.h>
6876 # include <assert.h>
6880 if { (ac_try="$ac_cpp conftest.$ac_ext"
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886 $as_echo "$ac_try_echo") >&5
6887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6889 grep -v '^ *+' conftest.er1 >conftest.err
6891 cat conftest.err >&5
6892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null && {
6894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895 test ! -s conftest.err
6899 $as_echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6902 # Broken: fails on valid input.
6906 rm -f conftest.err conftest.$ac_ext
6908 # OK, works on sane cases. Now check whether nonexistent headers
6909 # can be detected and how.
6910 cat >conftest.$ac_ext <<_ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h. */
6916 #include <ac_nonexistent.h>
6918 if { (ac_try="$ac_cpp conftest.$ac_ext"
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924 $as_echo "$ac_try_echo") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6927 grep -v '^ *+' conftest.er1 >conftest.err
6929 cat conftest.err >&5
6930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null && {
6932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6935 # Broken: success on invalid input.
6938 $as_echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6941 # Passes both tests.
6946 rm -f conftest.err conftest.$ac_ext
6949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6950 rm -f conftest.err conftest.$ac_ext
6951 if $ac_preproc_ok; then
6963 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6964 $as_echo "$CPP" >&6; }
6966 for ac_c_preproc_warn_flag in '' yes
6968 # Use a header file that comes with gcc, so configuring glibc
6969 # with a fresh cross-compiler works.
6970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 # <limits.h> exists even on freestanding compilers.
6972 # On the NeXT, cc -E runs the code through the compiler's parser,
6973 # not just through cpp. "Syntax error" is here to catch this case.
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6981 # include <limits.h>
6983 # include <assert.h>
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 # Broken: fails on valid input.
7013 rm -f conftest.err conftest.$ac_ext
7015 # OK, works on sane cases. Now check whether nonexistent headers
7016 # can be detected and how.
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 #include <ac_nonexistent.h>
7025 if { (ac_try="$ac_cpp conftest.$ac_ext"
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031 $as_echo "$ac_try_echo") >&5
7032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7034 grep -v '^ *+' conftest.er1 >conftest.err
7036 cat conftest.err >&5
7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null && {
7039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7042 # Broken: success on invalid input.
7045 $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7048 # Passes both tests.
7053 rm -f conftest.err conftest.$ac_ext
7056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7057 rm -f conftest.err conftest.$ac_ext
7058 if $ac_preproc_ok; then
7061 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7063 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7064 See \`config.log' for more details." >&5
7065 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7066 See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }; }
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7077 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7078 $as_echo_n "checking for ANSI C header files... " >&6; }
7079 if test "${ac_cv_header_stdc+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7082 cat >conftest.$ac_ext <<_ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7108 $as_echo "$ac_try_echo") >&5
7109 (eval "$ac_compile") 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest.$ac_objext; then
7119 ac_cv_header_stdc=yes
7121 $as_echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7124 ac_cv_header_stdc=no
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 if test $ac_cv_header_stdc = yes; then
7130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131 cat >conftest.$ac_ext <<_ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "memchr" >/dev/null 2>&1; then
7144 ac_cv_header_stdc=no
7150 if test $ac_cv_header_stdc = yes; then
7151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162 $EGREP "free" >/dev/null 2>&1; then
7165 ac_cv_header_stdc=no
7171 if test $ac_cv_header_stdc = yes; then
7172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7173 if test "$cross_compiling" = yes; then
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7184 #if ((' ' & 0x0FF) == 0x020)
7185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7188 # define ISLOWER(c) \
7189 (('a' <= (c) && (c) <= 'i') \
7190 || ('j' <= (c) && (c) <= 'r') \
7191 || ('s' <= (c) && (c) <= 'z'))
7192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7200 for (i = 0; i < 256; i++)
7201 if (XOR (islower (i), ISLOWER (i))
7202 || toupper (i) != TOUPPER (i))
7207 rm -f conftest$ac_exeext
7208 if { (ac_try="$ac_link"
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7214 $as_echo "$ac_try_echo") >&5
7215 (eval "$ac_link") 2>&5
7217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7219 { (case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224 $as_echo "$ac_try_echo") >&5
7225 (eval "$ac_try") 2>&5
7227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7231 $as_echo "$as_me: program exited with status $ac_status" >&5
7232 $as_echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7236 ac_cv_header_stdc=no
7238 rm -rf conftest.dSYM
7239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7246 $as_echo "$ac_cv_header_stdc" >&6; }
7247 if test $ac_cv_header_stdc = yes; then
7249 cat >>confdefs.h <<\_ACEOF
7250 #define STDC_HEADERS 1
7255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7266 inttypes.h stdint.h unistd.h
7268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7282 #include <$ac_header>
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7294 grep -v '^ *+' conftest.er1 >conftest.err
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 eval "$as_ac_Header=yes"
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 eval "$as_ac_Header=no"
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 ac_res=`eval 'as_val=${'$as_ac_Header'}
7313 $as_echo "$as_val"'`
7314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315 $as_echo "$ac_res" >&6; }
7316 as_val=`eval 'as_val=${'$as_ac_Header'}
7317 $as_echo "$as_val"'`
7318 if test "x$as_val" = x""yes; then
7319 cat >>confdefs.h <<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329 for ac_header in dlfcn.h
7331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7333 $as_echo_n "checking for $ac_header... " >&6; }
7334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7335 $as_echo_n "(cached) " >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7345 #include <$ac_header>
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 eval "$as_ac_Header=yes"
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 eval "$as_ac_Header=no"
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 ac_res=`eval 'as_val=${'$as_ac_Header'}
7376 $as_echo "$as_val"'`
7377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7378 $as_echo "$ac_res" >&6; }
7379 as_val=`eval 'as_val=${'$as_ac_Header'}
7380 $as_echo "$as_val"'`
7381 if test "x$as_val" = x""yes; then
7382 cat >>confdefs.h <<_ACEOF
7383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402 # Check whether --enable-shared was given.
7403 if test "${enable_shared+set}" = set; then
7404 enableval=$enable_shared; p=${PACKAGE-default}
7406 yes) enable_shared=yes ;;
7407 no) enable_shared=no ;;
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7414 if test "X$pkg" = "X$p"; then
7433 # Check whether --enable-static was given.
7434 if test "${enable_static+set}" = set; then
7435 enableval=$enable_static; p=${PACKAGE-default}
7437 yes) enable_static=yes ;;
7438 no) enable_static=no ;;
7441 # Look at the argument we got. We use all the common list separators.
7442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7443 for pkg in $enableval; do
7445 if test "X$pkg" = "X$p"; then
7465 # Check whether --with-pic was given.
7466 if test "${with_pic+set}" = set; then
7467 withval=$with_pic; pic_mode="$withval"
7473 test -z "$pic_mode" && pic_mode=default
7481 # Check whether --enable-fast-install was given.
7482 if test "${enable_fast_install+set}" = set; then
7483 enableval=$enable_fast_install; p=${PACKAGE-default}
7485 yes) enable_fast_install=yes ;;
7486 no) enable_fast_install=no ;;
7488 enable_fast_install=no
7489 # Look at the argument we got. We use all the common list separators.
7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491 for pkg in $enableval; do
7493 if test "X$pkg" = "X$p"; then
7494 enable_fast_install=yes
7501 enable_fast_install=yes
7514 # This can be used to rebuild libtool when needed
7515 LIBTOOL_DEPS="$ltmain"
7517 # Always use our own libtool.
7518 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7544 test -z "$LN_S" && LN_S="ln -s"
7559 if test -n "${ZSH_VERSION+set}" ; then
7560 setopt NO_GLOB_SUBST
7563 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7564 $as_echo_n "checking for objdir... " >&6; }
7565 if test "${lt_cv_objdir+set}" = set; then
7566 $as_echo_n "(cached) " >&6
7568 rm -f .libs 2>/dev/null
7569 mkdir .libs 2>/dev/null
7570 if test -d .libs; then
7573 # MS-DOS does not allow filenames that begin with a dot.
7576 rmdir .libs 2>/dev/null
7578 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7579 $as_echo "$lt_cv_objdir" >&6; }
7580 objdir=$lt_cv_objdir
7586 cat >>confdefs.h <<_ACEOF
7587 #define LT_OBJDIR "$lt_cv_objdir/"
7608 # AIX sometimes has problems with the GCC collect2 program. For some
7609 # reason, if we set the COLLECT_NAMES environment variable, the problems
7610 # vanish in a puff of smoke.
7611 if test "X${COLLECT_NAMES+set}" != Xset; then
7613 export COLLECT_NAMES
7618 # Sed substitution that helps us do robust quoting. It backslashifies
7619 # metacharacters that are still active within double-quoted strings.
7620 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7622 # Same as above, but do not quote variable references.
7623 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7625 # Sed substitution to delay expansion of an escaped shell variable in a
7626 # double_quote_subst'ed string.
7627 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7629 # Sed substitution to delay expansion of an escaped single quote.
7630 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7632 # Sed substitution to avoid accidental globbing in evaled expressions
7633 no_glob_subst='s/\*/\\\*/g'
7637 can_build_shared=yes
7639 # All known linkers require a `.a' archive for static linking (except MSVC,
7640 # which needs '.lib').
7643 with_gnu_ld="$lt_cv_prog_gnu_ld"
7646 old_CFLAGS="$CFLAGS"
7648 # Set sane defaults for various variables
7649 test -z "$CC" && CC=cc
7650 test -z "$LTCC" && LTCC=$CC
7651 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7652 test -z "$LD" && LD=ld
7653 test -z "$ac_objext" && ac_objext=o
7655 for cc_temp in $compiler""; do
7657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7666 # Only perform the check for file, if the check method requires it
7667 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7668 case $deplibs_check_method in
7670 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7671 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7672 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674 $as_echo_n "(cached) " >&6
7678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7681 lt_save_MAGIC_CMD="$MAGIC_CMD"
7682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684 for ac_dir in $ac_dummy; do
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/${ac_tool_prefix}file; then
7688 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7689 if test -n "$file_magic_test_file"; then
7690 case $deplibs_check_method in
7692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695 $EGREP "$file_magic_regex" > /dev/null; then
7700 *** Warning: the command libtool uses to detect shared libraries,
7701 *** $file_magic_cmd, produces output that libtool cannot recognize.
7702 *** The result is that libtool may fail to recognize shared libraries
7703 *** as such. This will affect the creation of libtool libraries that
7704 *** depend on shared libraries, but programs linked with such libtool
7705 *** libraries will work regardless of this problem. Nevertheless, you
7706 *** may want to report the problem to your system manager and/or to
7707 *** bug-libtool@gnu.org
7717 MAGIC_CMD="$lt_save_MAGIC_CMD"
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if test -n "$MAGIC_CMD"; then
7724 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725 $as_echo "$MAGIC_CMD" >&6; }
7727 { $as_echo "$as_me:$LINENO: result: no" >&5
7728 $as_echo "no" >&6; }
7735 if test -z "$lt_cv_path_MAGIC_CMD"; then
7736 if test -n "$ac_tool_prefix"; then
7737 { $as_echo "$as_me:$LINENO: checking for file" >&5
7738 $as_echo_n "checking for file... " >&6; }
7739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7740 $as_echo_n "(cached) " >&6
7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747 lt_save_MAGIC_CMD="$MAGIC_CMD"
7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750 for ac_dir in $ac_dummy; do
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/file; then
7754 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7755 if test -n "$file_magic_test_file"; then
7756 case $deplibs_check_method in
7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761 $EGREP "$file_magic_regex" > /dev/null; then
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such. This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem. Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7783 MAGIC_CMD="$lt_save_MAGIC_CMD"
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7791 $as_echo "$MAGIC_CMD" >&6; }
7793 { $as_echo "$as_me:$LINENO: result: no" >&5
7794 $as_echo "no" >&6; }
7807 # Use C for the default configuration in the libtool script
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817 # Source file extension for C test sources.
7820 # Object file extension for compiled C test sources.
7824 # Code to be used in simple compile tests
7825 lt_simple_compile_test_code="int some_variable = 0;"
7827 # Code to be used in simple link tests
7828 lt_simple_link_test_code='int main(){return(0);}'
7836 # If no C compiler was specified, use CC.
7839 # If no C compiler flags were specified, use CFLAGS.
7840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7842 # Allow CC to be a program name with arguments.
7845 # Save the default compiler, since it gets overwritten when the other
7846 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7847 compiler_DEFAULT=$CC
7849 # save warnings/boilerplate of simple test code
7850 ac_outfile=conftest.$ac_objext
7851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7853 _lt_compiler_boilerplate=`cat conftest.err`
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859 _lt_linker_boilerplate=`cat conftest.err`
7863 if test -n "$compiler"; then
7865 lt_prog_compiler_no_builtin_flag=
7867 if test "$GCC" = yes; then
7868 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7870 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7873 $as_echo_n "(cached) " >&6
7875 lt_cv_prog_compiler_rtti_exceptions=no
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="-fno-rtti -fno-exceptions"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 # The option is referenced via a variable to avoid confusing sed.
7884 lt_compile=`echo "$ac_compile" | $SED \
7885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887 -e 's:$: $lt_compiler_flag:'`
7888 (eval echo "\"\$as_me:7888: $lt_compile\"" >&5)
7889 (eval "$lt_compile" 2>conftest.err)
7891 cat conftest.err >&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 if (exit $ac_status) && test -s "$ac_outfile"; then
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings other than the usual output.
7896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_rtti_exceptions=yes
7905 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7921 lt_prog_compiler_wl=
7922 lt_prog_compiler_pic=
7923 lt_prog_compiler_static=
7925 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7928 if test "$GCC" = yes; then
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_static='-static'
7934 # All AIX code is PIC.
7935 if test "$host_cpu" = ia64; then
7936 # AIX 5 now supports IA64 processor
7937 lt_prog_compiler_static='-Bstatic'
7944 # see comment about AmigaOS4 .so support
7945 lt_prog_compiler_pic='-fPIC'
7948 # FIXME: we need at least 68020 code to build shared libraries, but
7949 # adding the `-m68020' flag to GCC prevents building anything better,
7951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7957 # PIC is the default for these OSes.
7960 mingw* | cygwin* | pw32* | os2* | cegcc*)
7961 # This hack is so that the source file can tell whether it is being
7962 # built for inclusion in a dll (and should export symbols for example).
7963 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7964 # (--disable-auto-import) libraries
7965 lt_prog_compiler_pic='-DDLL_EXPORT'
7968 darwin* | rhapsody*)
7969 # PIC is the default on this platform
7970 # Common symbols not allowed in MH_DYLIB files
7971 lt_prog_compiler_pic='-fno-common'
7975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7977 # sets the default TLS model and affects inlining.
7983 lt_prog_compiler_pic='-fPIC'
7989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990 # Instead, we relocate shared libraries at runtime.
7994 # Just because we use GCC doesn't mean we suddenly get shared libraries
7995 # on systems that don't support them.
7996 lt_prog_compiler_can_build_shared=no
8001 # QNX uses GNU C++, but need to define -shared option too, otherwise
8003 lt_prog_compiler_pic='-fPIC -shared'
8007 if test -d /usr/nec; then
8008 lt_prog_compiler_pic=-Kconform_pic
8013 lt_prog_compiler_pic='-fPIC'
8017 # PORTME Check for flag to pass linker flags through the system compiler.
8020 lt_prog_compiler_wl='-Wl,'
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8025 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8029 mingw* | cygwin* | pw32* | os2* | cegcc*)
8030 # This hack is so that the source file can tell whether it is being
8031 # built for inclusion in a dll (and should export symbols for example).
8032 lt_prog_compiler_pic='-DDLL_EXPORT'
8035 hpux9* | hpux10* | hpux11*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8044 lt_prog_compiler_pic='+Z'
8047 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8048 lt_prog_compiler_static='${wl}-a ${wl}archive'
8051 irix5* | irix6* | nonstopux*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # PIC (with -KPIC) is the default.
8054 lt_prog_compiler_static='-non_shared'
8057 linux* | k*bsd*-gnu)
8058 case $cc_basename in
8059 # old Intel for x86_64 which still supported -KPIC.
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-static'
8065 # icc used to be incompatible with GCC.
8066 # ICC 10 doesn't accept -KPIC any more.
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='-fPIC'
8070 lt_prog_compiler_static='-static'
8072 # Lahey Fortran 8.1.
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='--shared'
8076 lt_prog_compiler_static='--static'
8078 pgcc* | pgf77* | pgf90* | pgf95*)
8079 # Portland Group compilers (*not* the Pentium gcc compiler,
8080 # which looks to be a dead project)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-fpic'
8083 lt_prog_compiler_static='-Bstatic'
8086 lt_prog_compiler_wl='-Wl,'
8087 # All Alpha code is PIC.
8088 lt_prog_compiler_static='-non_shared'
8091 # IBM XL C 8.0/Fortran 10.1 on PPC
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-qpic'
8094 lt_prog_compiler_static='-qstaticlink'
8097 case `$CC -V 2>&1 | sed 5q` in
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_wl='-Wl,'
8105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_wl=''
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8121 # QNX uses GNU C++, but need to define -shared option too, otherwise
8123 lt_prog_compiler_pic='-fPIC -shared'
8126 osf3* | osf4* | osf5*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # All OSF/1 code is PIC.
8129 lt_prog_compiler_static='-non_shared'
8133 lt_prog_compiler_static='-non_shared'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 case $cc_basename in
8141 lt_prog_compiler_wl='-Qoption ld ';;
8143 lt_prog_compiler_wl='-Wl,';;
8148 lt_prog_compiler_wl='-Qoption ld '
8149 lt_prog_compiler_pic='-PIC'
8150 lt_prog_compiler_static='-Bstatic'
8153 sysv4 | sysv4.2uw2* | sysv4.3*)
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-KPIC'
8156 lt_prog_compiler_static='-Bstatic'
8160 if test -d /usr/nec ;then
8161 lt_prog_compiler_pic='-Kconform_pic'
8162 lt_prog_compiler_static='-Bstatic'
8166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_can_build_shared=no
8178 lt_prog_compiler_pic='-pic'
8179 lt_prog_compiler_static='-Bstatic'
8183 lt_prog_compiler_can_build_shared=no
8189 # For platforms which do not support PIC, -DPIC is meaningless:
8191 lt_prog_compiler_pic=
8194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8197 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8198 $as_echo "$lt_prog_compiler_pic" >&6; }
8206 # Check to make sure the PIC flag actually works.
8208 if test -n "$lt_prog_compiler_pic"; then
8209 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8210 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8211 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8214 lt_cv_prog_compiler_pic_works=no
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 # The option is referenced via a variable to avoid confusing sed.
8223 lt_compile=`echo "$ac_compile" | $SED \
8224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226 -e 's:$: $lt_compiler_flag:'`
8227 (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
8228 (eval "$lt_compile" 2>conftest.err)
8230 cat conftest.err >&5
8231 echo "$as_me:8231: \$? = $ac_status" >&5
8232 if (exit $ac_status) && test -s "$ac_outfile"; then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings other than the usual output.
8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_pic_works=yes
8244 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8245 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8247 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8248 case $lt_prog_compiler_pic in
8250 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8253 lt_prog_compiler_pic=
8254 lt_prog_compiler_can_build_shared=no
8265 # Check to make sure the static flag actually works.
8267 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8268 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8269 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8270 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8273 lt_cv_prog_compiler_static_works=no
8274 save_LDFLAGS="$LDFLAGS"
8275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8278 # The linker can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 if test -s conftest.err; then
8281 # Append any errors to the config.log.
8282 cat conftest.err 1>&5
8283 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8285 if diff conftest.exp conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_static_works=yes
8289 lt_cv_prog_compiler_static_works=yes
8293 LDFLAGS="$save_LDFLAGS"
8296 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8297 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8299 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8302 lt_prog_compiler_static=
8311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8313 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8314 $as_echo_n "(cached) " >&6
8316 lt_cv_prog_compiler_c_o=no
8317 $RM -r conftest 2>/dev/null
8321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8323 lt_compiler_flag="-o out/conftest2.$ac_objext"
8324 # Insert the option either (1) after the last *FLAGS variable, or
8325 # (2) before a word containing "conftest.", or (3) at the end.
8326 # Note that $ac_compile itself does not contain backslashes and begins
8327 # with a dollar sign (not a hyphen), so the echo should work correctly.
8328 lt_compile=`echo "$ac_compile" | $SED \
8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331 -e 's:$: $lt_compiler_flag:'`
8332 (eval echo "\"\$as_me:8332: $lt_compile\"" >&5)
8333 (eval "$lt_compile" 2>out/conftest.err)
8335 cat out/conftest.err >&5
8336 echo "$as_me:8336: \$? = $ac_status" >&5
8337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8339 # The compiler can only warn and ignore the option if not recognized
8340 # So say no if there are warnings
8341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8344 lt_cv_prog_compiler_c_o=yes
8349 # SGI C++ compiler will create directory out/ii_files/ for
8350 # template instantiation
8351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8352 $RM out/* && rmdir out
8358 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8366 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8369 $as_echo_n "(cached) " >&6
8371 lt_cv_prog_compiler_c_o=no
8372 $RM -r conftest 2>/dev/null
8376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378 lt_compiler_flag="-o out/conftest2.$ac_objext"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
8387 (eval echo "\"\$as_me:8387: $lt_compile\"" >&5)
8388 (eval "$lt_compile" 2>out/conftest.err)
8390 cat out/conftest.err >&5
8391 echo "$as_me:8391: \$? = $ac_status" >&5
8392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings
8396 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_c_o=yes
8404 # SGI C++ compiler will create directory out/ii_files/ for
8405 # template instantiation
8406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8407 $RM out/* && rmdir out
8413 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8414 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419 hard_links="nottested"
8420 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8421 # do not overwrite the value of need_locks provided by the user
8422 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8423 $as_echo_n "checking if we can lock with hard links... " >&6; }
8426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8428 ln conftest.a conftest.b 2>&5 || hard_links=no
8429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8430 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8431 $as_echo "$hard_links" >&6; }
8432 if test "$hard_links" = no; then
8433 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8446 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8447 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8450 allow_undefined_flag=
8451 always_export_symbols=no
8453 archive_expsym_cmds=
8454 compiler_needs_object=no
8455 enable_shared_with_static_runtimes=no
8456 export_dynamic_flag_spec=
8457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8458 hardcode_automatic=no
8460 hardcode_direct_absolute=no
8461 hardcode_libdir_flag_spec=
8462 hardcode_libdir_flag_spec_ld=
8463 hardcode_libdir_separator=
8465 hardcode_shlibpath_var=unsupported
8467 link_all_deplibs=unknown
8470 old_archive_from_new_cmds=
8471 old_archive_from_expsyms_cmds=
8472 thread_safe_flag_spec=
8473 whole_archive_flag_spec=
8474 # include_expsyms should be a list of space-separated symbols to be *always*
8475 # included in the symbol list
8477 # exclude_expsyms can be an extended regexp of symbols to exclude
8478 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8480 # as well as any symbol that contains `d'.
8481 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8483 # platforms (ab)use it in PIC code, but their linkers get confused if
8484 # the symbol is explicitly referenced. Since portable code cannot
8485 # rely on this symbol name, it's probably fine to never include it in
8486 # preloaded symbol tables.
8487 # Exclude shared library initialization/finalization symbols.
8488 extract_expsyms_cmds=
8491 cygwin* | mingw* | pw32* | cegcc*)
8492 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8493 # When not using gcc, we currently assume that we are using
8494 # Microsoft Visual C++.
8495 if test "$GCC" != yes; then
8500 # we just hope/assume this is gcc and not c89 (= MSVC++)
8509 if test "$with_gnu_ld" = yes; then
8510 # If archive_cmds runs LD, not CC, wlarc should be empty
8513 # Set some defaults for GNU ld with shared library support. These
8514 # are reset later if shared libraries are not supported. Putting them
8515 # here allows them to be overridden if necessary.
8516 runpath_var=LD_RUN_PATH
8517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518 export_dynamic_flag_spec='${wl}--export-dynamic'
8519 # ancient GNU ld didn't support --whole-archive et. al.
8520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8521 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8523 whole_archive_flag_spec=
8525 supports_anon_versioning=no
8526 case `$LD -v 2>&1` in
8527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8530 *\ 2.11.*) ;; # other 2.11 versions
8531 *) supports_anon_versioning=yes ;;
8534 # See if GNU ld supports shared libraries.
8537 # On AIX/PPC, the GNU linker is very broken
8538 if test "$host_cpu" != ia64; then
8542 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8543 *** to be unable to reliably create shared libraries on AIX.
8544 *** Therefore, libtool is disabling shared libraries support. If you
8545 *** really care for shared libraries, you may want to modify your PATH
8546 *** so that a non-GNU linker is found, and then restart.
8555 # see comment about AmigaOS4 .so support
8556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557 archive_expsym_cmds=''
8560 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)'
8561 hardcode_libdir_flag_spec='-L$libdir'
8562 hardcode_minus_L=yes
8568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569 allow_undefined_flag=unsupported
8570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8571 # support --undefined. This deserves some investigation. FIXME
8572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8578 cygwin* | mingw* | pw32* | cegcc*)
8579 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8580 # as there is no search path for DLLs.
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 allow_undefined_flag=unsupported
8583 always_export_symbols=no
8584 enable_shared_with_static_runtimes=yes
8585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589 # If the export-symbols file already is a .def file (1st line
8590 # is EXPORTS), use it as is; otherwise, prepend...
8591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8592 cp $export_symbols $output_objdir/$soname.def;
8594 echo EXPORTS > $output_objdir/$soname.def;
8595 cat $export_symbols >> $output_objdir/$soname.def;
8597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605 hardcode_shlibpath_var=no
8606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607 export_dynamic_flag_spec='${wl}-E'
8608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8609 # Instead, shared libraries are loaded at an image base (0x10000000 by
8610 # default) and relocated if they conflict, which is a slow very memory
8611 # consuming and fragmenting process. To avoid this, we pick a random,
8612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8615 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'
8618 gnu* | linux* | tpf* | k*bsd*-gnu)
8620 if test "$host_os" = linux-dietlibc; then
8621 case $cc_basename in
8622 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8625 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8626 && test "$tmp_diet" = no
8629 tmp_sharedflag='-shared'
8630 case $cc_basename,$host_cpu in
8631 pgcc*) # Portland Group C compiler
8632 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'
8633 tmp_addflag=' $pic_flag'
8635 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8636 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'
8637 tmp_addflag=' $pic_flag -Mnomain' ;;
8638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8639 tmp_addflag=' -i_dynamic' ;;
8640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8641 tmp_addflag=' -i_dynamic -nofor_main' ;;
8642 ifc* | ifort*) # Intel Fortran compiler
8643 tmp_addflag=' -nofor_main' ;;
8644 lf95*) # Lahey Fortran 8.1
8645 whole_archive_flag_spec=
8646 tmp_sharedflag='--shared' ;;
8647 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8648 tmp_sharedflag='-qmkshrobj'
8651 case `$CC -V 2>&1 | sed 5q` in
8652 *Sun\ C*) # Sun C 5.9
8653 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'
8654 compiler_needs_object=yes
8655 tmp_sharedflag='-G' ;;
8656 *Sun\ F*) # Sun Fortran 8.3
8657 tmp_sharedflag='-G' ;;
8659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8668 case $cc_basename in
8670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672 hardcode_libdir_flag_spec=
8673 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8674 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8675 if test "x$supports_anon_versioning" = xyes; then
8676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678 echo "local: *; };" >> $output_objdir/$libname.ver~
8679 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8704 *** create shared libraries on Solaris systems. Therefore, libtool
8705 *** is disabling shared libraries support. We urge you to upgrade GNU
8706 *** binutils to release 2.9.1 or newer. Another option is to modify
8707 *** your PATH or compiler configuration so that the native linker is
8708 *** used, and then restart.
8711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8720 case `$LD -v 2>&1` in
8721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8726 *** reliably create shared libraries on SCO systems. Therefore, libtool
8727 *** is disabling shared libraries support. We urge you to upgrade GNU
8728 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8729 *** your PATH or compiler configuration so that the native linker is
8730 *** used, and then restart.
8735 # For security reasons, it is highly recommended that you always
8736 # use absolute paths for naming shared libraries, and exclude the
8737 # DT_RUNPATH tag from executables and libraries. But doing so
8738 # requires that you compile everything twice, which is a pain.
8739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8754 hardcode_shlibpath_var=no
8758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767 if test "$ld_shlibs" = no; then
8769 hardcode_libdir_flag_spec=
8770 export_dynamic_flag_spec=
8771 whole_archive_flag_spec=
8774 # PORTME fill in a description of your system's linker (not GNU ld)
8777 allow_undefined_flag=unsupported
8778 always_export_symbols=yes
8779 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'
8780 # Note: this linker hardcodes the directories in LIBPATH if there
8781 # are no directories specified by -L.
8782 hardcode_minus_L=yes
8783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8784 # Neither direct hardcoding nor static linking is supported with a
8786 hardcode_direct=unsupported
8791 if test "$host_cpu" = ia64; then
8792 # On IA64, the linker does run time linking by default, so we don't
8793 # have to do anything special.
8794 aix_use_runtimelinking=no
8795 exp_sym_flag='-Bexport'
8798 # If we're using GNU nm, then we don't want the "-C" option.
8799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8801 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 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 aix_use_runtimelinking=no
8807 # Test if we are trying to use run time linking or normal
8808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8809 # need to do runtime linking.
8810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8811 for ld_flag in $LDFLAGS; do
8812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8813 aix_use_runtimelinking=yes
8820 exp_sym_flag='-bexport'
8821 no_entry_flag='-bnoentry'
8824 # When large executables or shared objects are built, AIX ld can
8825 # have problems creating the table of contents. If linking a library
8826 # or program results in "error TOC overflow" add -mminimal-toc to
8827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8832 hardcode_direct_absolute=yes
8833 hardcode_libdir_separator=':'
8834 link_all_deplibs=yes
8835 file_list_spec='${wl}-f,'
8837 if test "$GCC" = yes; then
8838 case $host_os in aix4.[012]|aix4.[012].*)
8839 # We only want to do this on AIX 4.2 and lower, the check
8840 # below for broken collect2 doesn't work under 4.3+
8841 collect2name=`${CC} -print-prog-name=collect2`
8842 if test -f "$collect2name" &&
8843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8845 # We have reworked collect2
8848 # We have old collect2
8849 hardcode_direct=unsupported
8850 # It fails to find uninstalled libraries when the uninstalled
8851 # path is not listed in the libpath. Setting hardcode_minus_L
8852 # to unsupported forces relinking
8853 hardcode_minus_L=yes
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_libdir_separator=
8859 shared_flag='-shared'
8860 if test "$aix_use_runtimelinking" = yes; then
8861 shared_flag="$shared_flag "'${wl}-G'
8865 if test "$host_cpu" = ia64; then
8866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8867 # chokes on -Wl,-G. The following line is correct:
8870 if test "$aix_use_runtimelinking" = yes; then
8871 shared_flag='${wl}-G'
8873 shared_flag='${wl}-bM:SRE'
8878 export_dynamic_flag_spec='${wl}-bexpall'
8879 # It seems that -bexpall does not export symbols beginning with
8880 # underscore (_), so it is better to generate a list of symbols to export.
8881 always_export_symbols=yes
8882 if test "$aix_use_runtimelinking" = yes; then
8883 # Warning - without using the other runtime loading flags (-brtl),
8884 # -berok will link without error, but may produce a broken library.
8885 allow_undefined_flag='-berok'
8886 # Determine the default libpath from the value encoded in an
8888 cat >conftest.$ac_ext <<_ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (ac_try="$ac_link"
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8910 $as_echo "$ac_try_echo") >&5
8911 (eval "$ac_link") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest$ac_exeext && {
8921 test "$cross_compiling" = yes ||
8922 $as_test_x conftest$ac_exeext
8925 lt_aix_libpath_sed='
8926 /Import File Strings/,/^$/ {
8932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933 # Check for a 64-bit object if we didn't find anything.
8934 if test -z "$aix_libpath"; then
8935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8938 $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8944 rm -rf conftest.dSYM
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 conftest$ac_exeext conftest.$ac_ext
8947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8950 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 if test "$host_cpu" = ia64; then
8953 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8954 allow_undefined_flag="-z nodefs"
8955 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 # Determine the default libpath from the value encoded in an
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (ac_try="$ac_link"
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_link") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest$ac_exeext && {
8992 test "$cross_compiling" = yes ||
8993 $as_test_x conftest$ac_exeext
8996 lt_aix_libpath_sed='
8997 /Import File Strings/,/^$/ {
9003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004 # Check for a 64-bit object if we didn't find anything.
9005 if test -z "$aix_libpath"; then
9006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9009 $as_echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9015 rm -rf conftest.dSYM
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021 # Warning - without using the other run time loading flags,
9022 # -berok will link without error, but may produce a broken library.
9023 no_undefined_flag=' ${wl}-bernotok'
9024 allow_undefined_flag=' ${wl}-berok'
9025 # Exported symbols can be pulled into shared objects from archives
9026 whole_archive_flag_spec='$convenience'
9027 archive_cmds_need_lc=yes
9028 # This is similar to how AIX traditionally builds its shared libraries.
9029 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'
9037 # see comment about AmigaOS4 .so support
9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039 archive_expsym_cmds=''
9042 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)'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_minus_L=yes
9050 export_dynamic_flag_spec=-rdynamic
9053 cygwin* | mingw* | pw32* | cegcc*)
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 # hardcode_libdir_flag_spec is actually meaningless, as there is
9057 # no search path for DLLs.
9058 hardcode_libdir_flag_spec=' '
9059 allow_undefined_flag=unsupported
9060 # Tell ltmain to make .lib files, not .a files.
9062 # Tell ltmain to make .dll files, not .so files.
9064 # FIXME: Setting linknames here is a bad hack.
9065 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9066 # The linker will automatically build a .lib file if we build a DLL.
9067 old_archive_from_new_cmds='true'
9068 # FIXME: Should let the user specify the lib program.
9069 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9070 fix_srcfile_path='`cygpath -w "$srcfile"`'
9071 enable_shared_with_static_runtimes=yes
9074 darwin* | rhapsody*)
9077 archive_cmds_need_lc=no
9079 hardcode_automatic=yes
9080 hardcode_shlibpath_var=unsupported
9081 whole_archive_flag_spec=''
9082 link_all_deplibs=yes
9083 allow_undefined_flag="$_lt_dar_allow_undefined"
9084 case $cc_basename in
9085 ifort*) _lt_dar_can_shared=yes ;;
9086 *) _lt_dar_can_shared=$GCC ;;
9088 if test "$_lt_dar_can_shared" = "yes"; then
9089 output_verbose_link_cmd=echo
9090 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9091 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9092 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}"
9093 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}"
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_shlibpath_var=no
9111 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9112 # support. Future versions do this automatically, but an explicit c++rt0.o
9113 # does not break anything, and helps significantly (at the cost of a little
9116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9117 hardcode_libdir_flag_spec='-R$libdir'
9119 hardcode_shlibpath_var=no
9122 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126 hardcode_minus_L=yes
9127 hardcode_shlibpath_var=no
9130 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9131 freebsd* | dragonfly*)
9132 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9133 hardcode_libdir_flag_spec='-R$libdir'
9135 hardcode_shlibpath_var=no
9139 if test "$GCC" = yes; then
9140 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 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 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9145 hardcode_libdir_separator=:
9148 # hardcode_minus_L: Not really in the search PATH,
9149 # but as the default location of the library.
9150 hardcode_minus_L=yes
9151 export_dynamic_flag_spec='${wl}-E'
9155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160 if test "$with_gnu_ld" = no; then
9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162 hardcode_libdir_flag_spec_ld='+b $libdir'
9163 hardcode_libdir_separator=:
9165 hardcode_direct_absolute=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9177 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9199 if test "$with_gnu_ld" = no; then
9200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201 hardcode_libdir_separator=:
9206 hardcode_shlibpath_var=no
9210 hardcode_direct_absolute=yes
9211 export_dynamic_flag_spec='${wl}-E'
9213 # hardcode_minus_L: Not really in the search PATH,
9214 # but as the default location of the library.
9215 hardcode_minus_L=yes
9221 irix5* | irix6* | nonstopux*)
9222 if test "$GCC" = yes; then
9223 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'
9224 # Try to use the -exported_symbol ld option, if it does not
9225 # work, assume that -exports_file does not work either and
9226 # implicitly export all symbols.
9227 save_LDFLAGS="$LDFLAGS"
9228 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9229 cat >conftest.$ac_ext <<_ACEOF
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (ac_try="$ac_link"
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239 $as_echo "$ac_try_echo") >&5
9240 (eval "$ac_link") 2>conftest.er1
9242 grep -v '^ *+' conftest.er1 >conftest.err
9244 cat conftest.err >&5
9245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext && {
9250 test "$cross_compiling" = yes ||
9251 $as_test_x conftest$ac_exeext
9253 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'
9256 $as_echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9262 rm -rf conftest.dSYM
9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LDFLAGS="$save_LDFLAGS"
9267 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'
9268 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 archive_cmds_need_lc='no'
9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272 hardcode_libdir_separator=:
9274 link_all_deplibs=yes
9278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9283 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_shlibpath_var=no
9289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 hardcode_libdir_separator=:
9293 hardcode_shlibpath_var=no
9300 if test -f /usr/libexec/ld.so; then
9302 hardcode_shlibpath_var=no
9303 hardcode_direct_absolute=yes
9304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9306 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308 export_dynamic_flag_spec='${wl}-E'
9311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_libdir_flag_spec='-R$libdir'
9316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9329 allow_undefined_flag=unsupported
9330 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'
9331 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9335 if test "$GCC" = yes; then
9336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9337 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 allow_undefined_flag=' -expect_unresolved \*'
9340 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 archive_cmds_need_lc='no'
9343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344 hardcode_libdir_separator=:
9347 osf4* | osf5*) # as osf3* with the addition of -msym flag
9348 if test "$GCC" = yes; then
9349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9350 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'
9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 allow_undefined_flag=' -expect_unresolved \*'
9354 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'
9355 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~
9356 $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 # Both c and cxx compiler support -rpath directly
9359 hardcode_libdir_flag_spec='-rpath $libdir'
9361 archive_cmds_need_lc='no'
9362 hardcode_libdir_separator=:
9366 no_undefined_flag=' -z defs'
9367 if test "$GCC" = yes; then
9369 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9371 $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 case `$CC -V 2>&1` in
9376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9382 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_shlibpath_var=no
9391 solaris2.[0-5] | solaris2.[0-5].*) ;;
9393 # The compiler driver will combine and reorder linker options,
9394 # but understands `-z linker_flag'. GCC discards it without `$wl',
9395 # but is careful enough not to reorder.
9396 # Supported since Solaris 2.6 (maybe 2.5.1?)
9397 if test "$GCC" = yes; then
9398 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9404 link_all_deplibs=yes
9408 if test "x$host_vendor" = xsequent; then
9409 # Use $CC to link under sequent, because it throws in some extra .o
9410 # files that make .init and .fini sections work.
9411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_minus_L=yes
9418 hardcode_shlibpath_var=no
9422 case $host_vendor in
9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425 hardcode_direct=yes # is this really true???
9428 ## LD is ld it makes a PLAMLIB
9429 ## CC just makes a GrossModule.
9430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9431 reload_cmds='$CC -r -o $output$reload_objs'
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9439 runpath_var='LD_RUN_PATH'
9440 hardcode_shlibpath_var=no
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_shlibpath_var=no
9446 export_dynamic_flag_spec='-Bexport'
9450 if test -d /usr/nec; then
9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_shlibpath_var=no
9453 runpath_var=LD_RUN_PATH
9454 hardcode_runpath_var=yes
9459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9460 no_undefined_flag='${wl}-z,text'
9461 archive_cmds_need_lc=no
9462 hardcode_shlibpath_var=no
9463 runpath_var='LD_RUN_PATH'
9465 if test "$GCC" = yes; then
9466 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9474 sysv5* | sco3.2v5* | sco5v6*)
9475 # Note: We can NOT use -z defs as we might desire, because we do not
9476 # link with -lc, and that would cause any symbols used from libc to
9477 # always be unresolved, which means just about no library would
9478 # ever link correctly. If we're not using GNU ld we use -z text
9479 # though, which does catch some bad symbols but isn't as heavy-handed
9481 no_undefined_flag='${wl}-z,text'
9482 allow_undefined_flag='${wl}-z,nodefs'
9483 archive_cmds_need_lc=no
9484 hardcode_shlibpath_var=no
9485 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9486 hardcode_libdir_separator=':'
9487 link_all_deplibs=yes
9488 export_dynamic_flag_spec='${wl}-Bexport'
9489 runpath_var='LD_RUN_PATH'
9491 if test "$GCC" = yes; then
9492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_shlibpath_var=no
9511 if test x$host_vendor = xsni; then
9513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514 export_dynamic_flag_spec='${wl}-Blargedynsym'
9520 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9521 $as_echo "$ld_shlibs" >&6; }
9522 test "$ld_shlibs" = no && can_build_shared=no
9524 with_gnu_ld=$with_gnu_ld
9541 # Do we need to explicitly link libc?
9543 case "x$archive_cmds_need_lc" in
9545 # Assume -lc should be added
9546 archive_cmds_need_lc=yes
9548 if test "$enable_shared" = yes && test "$GCC" = yes; then
9549 case $archive_cmds in
9551 # FIXME: we may have to deal with multi-command sequences.
9554 # Test whether the compiler implicitly links with -lc since on some
9555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9556 # to ld, don't add -lc before -lgcc.
9557 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } 2>conftest.err; then
9569 libobjs=conftest.$ac_objext
9571 wl=$lt_prog_compiler_wl
9572 pic_flag=$lt_prog_compiler_pic
9578 lt_save_allow_undefined_flag=$allow_undefined_flag
9579 allow_undefined_flag=
9580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }
9586 archive_cmds_need_lc=no
9588 archive_cmds_need_lc=yes
9590 allow_undefined_flag=$lt_save_allow_undefined_flag
9592 cat conftest.err 1>&5
9595 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9596 $as_echo "$archive_cmds_need_lc" >&6; }
9759 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9760 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9762 if test "$GCC" = yes; then
9764 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9765 *) lt_awk_arg="/^libraries:/" ;;
9767 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9768 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9769 # if the path contains ";" then we assume it to be the separator
9770 # otherwise default to the standard path separator (i.e. ":") - it is
9771 # assumed that no part of a normal pathname contains ";" but that should
9772 # okay in the real world where ";" in dirpaths is itself problematic.
9773 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9775 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9777 # Ok, now we have the path, separated by spaces, we can step through it
9778 # and add multilib dir if necessary.
9779 lt_tmp_lt_search_path_spec=
9780 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9781 for lt_sys_path in $lt_search_path_spec; do
9782 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9783 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9785 test -d "$lt_sys_path" && \
9786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9789 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9790 BEGIN {RS=" "; FS="/|\n";} {
9793 for (lt_i = NF; lt_i > 0; lt_i--) {
9794 if ($lt_i != "" && $lt_i != ".") {
9795 if ($lt_i == "..") {
9798 if (lt_count == 0) {
9799 lt_foo="/" $lt_i lt_foo;
9806 if (lt_foo != "") { lt_freq[lt_foo]++; }
9807 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9809 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9814 libname_spec='lib$name'
9822 shlibpath_overrides_runpath=unknown
9824 dynamic_linker="$host_os ld.so"
9825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9826 need_lib_prefix=unknown
9827 hardcode_into_libs=no
9829 # when you set need_version to no, make sure it does not cause -set_version
9830 # flags to be left without arguments
9831 need_version=unknown
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9837 shlibpath_var=LIBPATH
9839 # AIX 3 has no versioning support, so we append a major version to the name.
9840 soname_spec='${libname}${release}${shared_ext}$major'
9847 hardcode_into_libs=yes
9848 if test "$host_cpu" = ia64; then
9849 # AIX 5 supports IA64
9850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9851 shlibpath_var=LD_LIBRARY_PATH
9853 # With GCC up to 2.95.x, collect2 would create an import file
9854 # for dependence libraries. The import file would start with
9855 # the line `#! .'. This would cause the generated library to
9856 # depend on `.', always an invalid library. This was fixed in
9857 # development snapshots of GCC prior to 3.0.
9859 aix4 | aix4.[01] | aix4.[01].*)
9860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9862 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9870 # soname into executable. Probably we can add versioning support to
9871 # collect2, so additional links can be useful in future.
9872 if test "$aix_use_runtimelinking" = yes; then
9873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9874 # instead of lib<name>.a to let people know that these are not
9875 # typical AIX shared libraries.
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878 # We preserve .a as extension for shared libraries through AIX4.2
9879 # and later when we are not doing run time linking.
9880 library_names_spec='${libname}${release}.a $libname.a'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LIBPATH
9890 # Since July 2007 AmigaOS4 officially supports .so libraries.
9891 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895 library_names_spec='$libname.ixlibrary $libname.a'
9896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9897 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'
9903 library_names_spec='${libname}${shared_ext}'
9904 dynamic_linker="$host_os ld.so"
9905 shlibpath_var=LIBRARY_PATH
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9922 cygwin* | mingw* | pw32* | cegcc*)
9923 version_type=windows
9928 case $GCC,$host_os in
9929 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9930 library_names_spec='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
9936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname~
9938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9942 dlpath=$dir/\$dldll~
9944 shlibpath_overrides_runpath=yes
9948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9953 # MinGW DLLs use traditional 'lib' prefix
9954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9957 # It is most probably a Windows format PATH printed by
9958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9959 # path with ; separators, and with drive letters. We can handle the
9960 # drive letters (cygwin fileutils understands them), so leave them,
9961 # especially as we might pass files found there to a mingw objdump,
9962 # which wouldn't understand a cygwinified path. Ahh.
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9969 # pw32 DLLs use 'pw' prefix rather than 'lib'
9970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9979 dynamic_linker='Win32 ld.exe'
9980 # FIXME: first we should search . and the directory the executable is in
9984 darwin* | rhapsody*)
9985 dynamic_linker="$host_os dyld"
9989 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9990 soname_spec='${libname}${release}${major}$shared_ext'
9991 shlibpath_overrides_runpath=yes
9992 shlibpath_var=DYLD_LIBRARY_PATH
9993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 shlibpath_var=LD_LIBRARY_PATH
10012 freebsd* | dragonfly*)
10013 # DragonFly does not have aout. When/if they implement a new
10014 # versioning mechanism, adjust this.
10015 if test -x /usr/bin/objformat; then
10016 objformat=`/usr/bin/objformat`
10019 freebsd[123]*) objformat=aout ;;
10020 *) objformat=elf ;;
10023 version_type=freebsd-$objformat
10024 case $version_type in
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10035 shlibpath_var=LD_LIBRARY_PATH
10038 shlibpath_overrides_runpath=yes
10040 freebsd3.[01]* | freebsdelf3.[01]*)
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10049 *) # from 4.6 on, and DragonFly
10050 shlibpath_overrides_runpath=yes
10051 hardcode_into_libs=yes
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 hardcode_into_libs=yes
10066 hpux9* | hpux10* | hpux11*)
10067 # Give a soname corresponding to the major version so that dld.sl refuses to
10068 # link against other versions.
10075 hardcode_into_libs=yes
10076 dynamic_linker="$host_os dld.so"
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 if test "X$HPUX_IA64_MODE" = X32; then
10082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10090 hardcode_into_libs=yes
10091 dynamic_linker="$host_os dld.sl"
10092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10101 dynamic_linker="$host_os dld.sl"
10102 shlibpath_var=SHLIB_PATH
10103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10108 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10109 postinstall_cmds='chmod 555 $lib'
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=no
10121 hardcode_into_libs=yes
10124 irix5* | irix6* | nonstopux*)
10126 nonstopux*) version_type=nonstopux ;;
10128 if test "$lt_cv_prog_gnu_ld" = yes; then
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10139 irix5* | nonstopux*)
10140 libsuff= shlibsuff=
10143 case $LD in # libtool.m4 will add one of these switches to LD
10144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145 libsuff= shlibsuff= libmagic=32-bit;;
10146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147 libsuff=32 shlibsuff=N32 libmagic=N32;;
10148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150 *) libsuff= shlibsuff= libmagic=never-match;;
10154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155 shlibpath_overrides_runpath=no
10156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158 hardcode_into_libs=yes
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10166 # This must be Linux ELF.
10167 linux* | k*bsd*-gnu)
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 # Some binutils ld are patched to set DT_RUNPATH
10177 save_LDFLAGS=$LDFLAGS
10178 save_libdir=$libdir
10179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203 $as_echo "$ac_try_echo") >&5
10204 (eval "$ac_link") 2>conftest.er1
10206 grep -v '^ *+' conftest.er1 >conftest.err
10208 cat conftest.err >&5
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && {
10211 test -z "$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10213 } && test -s conftest$ac_exeext && {
10214 test "$cross_compiling" = yes ||
10215 $as_test_x conftest$ac_exeext
10217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10218 shlibpath_overrides_runpath=yes
10222 $as_echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10228 rm -rf conftest.dSYM
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LDFLAGS=$save_LDFLAGS
10232 libdir=$save_libdir
10234 # This implies no fast_install, which is unacceptable.
10235 # Some rework will be needed to allow for fast_install
10236 # before this can be enabled.
10237 hardcode_into_libs=yes
10239 # Add ABI-specific directories to the system library path.
10240 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10242 # Append ld.so.conf contents to the search path
10243 if test -f /etc/ld.so.conf; then
10244 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' ' '`
10245 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10248 # We used to test for /lib/ld.so.1 and disable shared libraries on
10249 # powerpc, because MkLinux only supported shared libraries with the
10250 # GNU dynamic linker. Since this was broken with cross compilers,
10251 # most powerpc-linux boxes support dynamic linking these days and
10252 # people can always --disable-shared, the test was removed, and we
10253 # assume the GNU/Linux dynamic linker is in use.
10254 dynamic_linker='GNU/Linux ld.so'
10261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264 dynamic_linker='NetBSD (a.out) ld.so'
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 dynamic_linker='NetBSD ld.elf_so'
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10291 dynamic_linker='ldqnx.so'
10296 sys_lib_dlsearch_path_spec="/usr/lib"
10298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10301 *) need_version=no ;;
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10308 openbsd2.[89] | openbsd2.[89].*)
10309 shlibpath_overrides_runpath=no
10312 shlibpath_overrides_runpath=yes
10316 shlibpath_overrides_runpath=yes
10321 libname_spec='$name'
10324 library_names_spec='$libname${shared_ext} $libname.a'
10325 dynamic_linker='OS/2 ld.exe'
10326 shlibpath_var=LIBPATH
10329 osf3* | osf4* | osf5*)
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 hardcode_into_libs=yes
10353 # ldd complains unless libraries are executable
10354 postinstall_cmds='chmod +x $lib'
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 if test "$with_gnu_ld" = yes; then
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 case $host_vendor in
10376 shlibpath_overrides_runpath=no
10378 runpath_var=LD_RUN_PATH
10386 shlibpath_overrides_runpath=no
10387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10393 if test -d /usr/nec ;then
10395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396 soname_spec='$libname${shared_ext}.$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402 version_type=freebsd-elf
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 shlibpath_overrides_runpath=yes
10409 hardcode_into_libs=yes
10410 if test "$with_gnu_ld" = yes; then
10411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10420 sys_lib_dlsearch_path_spec='/usr/lib'
10424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10445 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446 $as_echo "$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450 if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10547 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10548 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10550 if test -n "$hardcode_libdir_flag_spec" ||
10551 test -n "$runpath_var" ||
10552 test "X$hardcode_automatic" = "Xyes" ; then
10554 # We can hardcode non-existent directories.
10555 if test "$hardcode_direct" != no &&
10556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557 # have to relink, otherwise we might link with an installed library
10558 # when we should be linking with a yet-to-be-installed one
10559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10560 test "$hardcode_minus_L" != no; then
10561 # Linking always hardcodes the temporary library directory.
10562 hardcode_action=relink
10564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565 hardcode_action=immediate
10568 # We cannot hardcode anything, or else we can only hardcode existing
10570 hardcode_action=unsupported
10572 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10573 $as_echo "$hardcode_action" >&6; }
10575 if test "$hardcode_action" = relink ||
10576 test "$inherit_rpath" = yes; then
10577 # Fast installation is not supported
10578 enable_fast_install=no
10579 elif test "$shlibpath_overrides_runpath" = yes ||
10580 test "$enable_shared" = no; then
10581 # Fast installation is not necessary
10582 enable_fast_install=needless
10590 if test "x$enable_dlopen" != xyes; then
10591 enable_dlopen=unknown
10592 enable_dlopen_self=unknown
10593 enable_dlopen_self_static=unknown
10600 lt_cv_dlopen="load_add_on"
10602 lt_cv_dlopen_self=yes
10605 mingw* | pw32* | cegcc*)
10606 lt_cv_dlopen="LoadLibrary"
10611 lt_cv_dlopen="dlopen"
10616 # if libdl is installed we need to link against it
10617 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10620 $as_echo_n "(cached) " >&6
10622 ac_check_lib_save_LIBS=$LIBS
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10631 /* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (ac_try="$ac_link"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653 $as_echo "$ac_try_echo") >&5
10654 (eval "$ac_link") 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest$ac_exeext && {
10664 test "$cross_compiling" = yes ||
10665 $as_test_x conftest$ac_exeext
10667 ac_cv_lib_dl_dlopen=yes
10669 $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_cv_lib_dl_dlopen=no
10675 rm -rf conftest.dSYM
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10686 lt_cv_dlopen="dyld"
10688 lt_cv_dlopen_self=yes
10695 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10696 $as_echo_n "checking for shl_load... " >&6; }
10697 if test "${ac_cv_func_shl_load+set}" = set; then
10698 $as_echo_n "(cached) " >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708 #define shl_load innocuous_shl_load
10710 /* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char shl_load (); below.
10712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713 <limits.h> exists even on freestanding compilers. */
10716 # include <limits.h>
10718 # include <assert.h>
10723 /* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10730 /* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733 #if defined __stub_shl_load || defined __stub___shl_load
10740 return shl_load ();
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (ac_try="$ac_link"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752 $as_echo "$ac_try_echo") >&5
10753 (eval "$ac_link") 2>conftest.er1
10755 grep -v '^ *+' conftest.er1 >conftest.err
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && {
10760 test -z "$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 } && test -s conftest$ac_exeext && {
10763 test "$cross_compiling" = yes ||
10764 $as_test_x conftest$ac_exeext
10766 ac_cv_func_shl_load=yes
10768 $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10771 ac_cv_func_shl_load=no
10774 rm -rf conftest.dSYM
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10778 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779 $as_echo "$ac_cv_func_shl_load" >&6; }
10780 if test "x$ac_cv_func_shl_load" = x""yes; then
10781 lt_cv_dlopen="shl_load"
10783 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10784 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10785 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10786 $as_echo_n "(cached) " >&6
10788 ac_check_lib_save_LIBS=$LIBS
10790 cat >conftest.$ac_ext <<_ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10797 /* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10807 return shl_load ();
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (ac_try="$ac_link"
10814 case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10819 $as_echo "$ac_try_echo") >&5
10820 (eval "$ac_link") 2>conftest.er1
10822 grep -v '^ *+' conftest.er1 >conftest.err
10824 cat conftest.err >&5
10825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && {
10827 test -z "$ac_c_werror_flag" ||
10828 test ! -s conftest.err
10829 } && test -s conftest$ac_exeext && {
10830 test "$cross_compiling" = yes ||
10831 $as_test_x conftest$ac_exeext
10833 ac_cv_lib_dld_shl_load=yes
10835 $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 ac_cv_lib_dld_shl_load=no
10841 rm -rf conftest.dSYM
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10847 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10848 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10851 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10852 $as_echo_n "checking for dlopen... " >&6; }
10853 if test "${ac_cv_func_dlopen+set}" = set; then
10854 $as_echo_n "(cached) " >&6
10856 cat >conftest.$ac_ext <<_ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10864 #define dlopen innocuous_dlopen
10866 /* System header to define __stub macros and hopefully few prototypes,
10867 which can conflict with char dlopen (); below.
10868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869 <limits.h> exists even on freestanding compilers. */
10872 # include <limits.h>
10874 # include <assert.h>
10879 /* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10886 /* The GNU C library defines this for functions which it implements
10887 to always fail with ENOSYS. Some functions are actually named
10888 something starting with __ and the normal name is an alias. */
10889 #if defined __stub_dlopen || defined __stub___dlopen
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10922 ac_cv_func_dlopen=yes
10924 $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_cv_func_dlopen=no
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10934 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10935 $as_echo "$ac_cv_func_dlopen" >&6; }
10936 if test "x$ac_cv_func_dlopen" = x""yes; then
10937 lt_cv_dlopen="dlopen"
10939 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10942 $as_echo_n "(cached) " >&6
10944 ac_check_lib_save_LIBS=$LIBS
10946 cat >conftest.$ac_ext <<_ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
10978 grep -v '^ *+' conftest.er1 >conftest.err
10980 cat conftest.err >&5
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10989 ac_cv_lib_dl_dlopen=yes
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_cv_lib_dl_dlopen=no
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11010 $as_echo_n "(cached) " >&6
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lsvld $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11057 ac_cv_lib_svld_dlopen=yes
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 ac_cv_lib_svld_dlopen=no
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11075 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11080 ac_check_lib_save_LIBS=$LIBS
11082 cat >conftest.$ac_ext <<_ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11089 /* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11099 return dld_link ();
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (ac_try="$ac_link"
11106 case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111 $as_echo "$ac_try_echo") >&5
11112 (eval "$ac_link") 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest$ac_exeext && {
11122 test "$cross_compiling" = yes ||
11123 $as_test_x conftest$ac_exeext
11125 ac_cv_lib_dld_dld_link=yes
11127 $as_echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ac_cv_lib_dld_dld_link=no
11133 rm -rf conftest.dSYM
11134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11162 if test "x$lt_cv_dlopen" != xno; then
11168 case $lt_cv_dlopen in
11170 save_CPPFLAGS="$CPPFLAGS"
11171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173 save_LDFLAGS="$LDFLAGS"
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11177 LIBS="$lt_cv_dlopen_libs $LIBS"
11179 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181 if test "${lt_cv_dlopen_self+set}" = set; then
11182 $as_echo_n "(cached) " >&6
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self=cross
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11200 # define LT_DLGLOBAL RTLD_GLOBAL
11203 # define LT_DLGLOBAL DL_GLOBAL
11205 # define LT_DLGLOBAL 0
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11216 # define LT_DLLAZY_OR_NOW DL_LAZY
11219 # define LT_DLLAZY_OR_NOW RTLD_NOW
11222 # define LT_DLLAZY_OR_NOW DL_NOW
11224 # define LT_DLLAZY_OR_NOW 0
11231 void fnord() { int i=42;}
11234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11235 int status = $lt_dlunknown;
11239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11241 /* dlclose (self); */
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11254 (./conftest; exit; ) >&5 2>/dev/null
11256 case x$lt_status in
11257 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11258 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11259 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11262 # compilation failed
11263 lt_cv_dlopen_self=no
11270 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11271 $as_echo "$lt_cv_dlopen_self" >&6; }
11273 if test "x$lt_cv_dlopen_self" = xyes; then
11274 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11275 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11276 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11277 if test "${lt_cv_dlopen_self_static+set}" = set; then
11278 $as_echo_n "(cached) " >&6
11280 if test "$cross_compiling" = yes; then :
11281 lt_cv_dlopen_self_static=cross
11283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11284 lt_status=$lt_dlunknown
11285 cat > conftest.$ac_ext <<_LT_EOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11296 # define LT_DLGLOBAL RTLD_GLOBAL
11299 # define LT_DLGLOBAL DL_GLOBAL
11301 # define LT_DLGLOBAL 0
11305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11306 find out it does not work in some platform. */
11307 #ifndef LT_DLLAZY_OR_NOW
11309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11312 # define LT_DLLAZY_OR_NOW DL_LAZY
11315 # define LT_DLLAZY_OR_NOW RTLD_NOW
11318 # define LT_DLLAZY_OR_NOW DL_NOW
11320 # define LT_DLLAZY_OR_NOW 0
11327 void fnord() { int i=42;}
11330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331 int status = $lt_dlunknown;
11335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337 /* dlclose (self); */
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11350 (./conftest; exit; ) >&5 2>/dev/null
11352 case x$lt_status in
11353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11358 # compilation failed
11359 lt_cv_dlopen_self_static=no
11366 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11367 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11370 CPPFLAGS="$save_CPPFLAGS"
11371 LDFLAGS="$save_LDFLAGS"
11376 case $lt_cv_dlopen_self in
11377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11378 *) enable_dlopen_self=unknown ;;
11381 case $lt_cv_dlopen_self_static in
11382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11383 *) enable_dlopen_self_static=unknown ;;
11405 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11406 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11407 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11410 { $as_echo "$as_me:$LINENO: result: yes" >&5
11411 $as_echo "yes" >&6; }
11413 # FIXME - insert some real tests, host_os isn't really good enough
11416 if test -n "$STRIP" ; then
11417 striplib="$STRIP -x"
11418 old_striplib="$STRIP -S"
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423 $as_echo "no" >&6; }
11427 { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11444 # Report which library types will actually be built
11445 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11446 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11447 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11448 $as_echo "$can_build_shared" >&6; }
11450 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11451 $as_echo_n "checking whether to build shared libraries... " >&6; }
11452 test "$can_build_shared" = "no" && enable_shared=no
11454 # On AIX, shared libraries and static libraries use the same namespace, and
11455 # are all built from PIC.
11458 test "$enable_shared" = yes && enable_static=no
11459 if test -n "$RANLIB"; then
11460 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11461 postinstall_cmds='$RANLIB $lib'
11466 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11467 test "$enable_shared" = yes && enable_static=no
11471 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11472 $as_echo "$enable_shared" >&6; }
11474 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11475 $as_echo_n "checking whether to build static libraries... " >&6; }
11476 # Make sure either enable_shared or enable_static is yes.
11477 test "$enable_shared" = yes || enable_static=yes
11478 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11479 $as_echo "$enable_static" >&6; }
11486 ac_cpp='$CPP $CPPFLAGS'
11487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505 ac_config_commands="$ac_config_commands libtool"
11510 # Only expand once:
11513 # By default we simply use the C compiler to build assembly code.
11515 test "${CCAS+set}" = set || CCAS=$CC
11516 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11520 depcc="$CCAS" am_compiler_list=
11522 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11523 $as_echo_n "checking dependency style of $depcc... " >&6; }
11524 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11525 $as_echo_n "(cached) " >&6
11527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11528 # We make a subdir and do the tests there. Otherwise we can end up
11529 # making bogus files that we don't know about and never remove. For
11530 # instance it was reported that on HP-UX the gcc test will end up
11531 # making a dummy file named `D' -- because `-MD' means `put the output
11534 # Copy depcomp to subdir because otherwise we won't find it if we're
11535 # using a relative directory.
11536 cp "$am_depcomp" conftest.dir
11538 # We will build objects and dependencies in a subdirectory because
11539 # it helps to detect inapplicable dependency modes. For instance
11540 # both Tru64's cc and ICC support -MD to output dependencies as a
11541 # side effect of compilation, but ICC will put the dependencies in
11542 # the current directory while Tru64 will put them in the object
11546 am_cv_CCAS_dependencies_compiler_type=none
11547 if test "$am_compiler_list" = ""; then
11548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11550 am__universal=false
11553 for depmode in $am_compiler_list; do
11554 # Setup a source with many dependencies, because some compilers
11555 # like to wrap large dependency lists on column 80 (with \), and
11556 # we should not choose a depcomp mode which is confused by this.
11558 # We need to recreate these files for each test, as the compiler may
11559 # overwrite some of them when testing with obscure command lines.
11560 # This happens at least with the AIX C compiler.
11562 for i in 1 2 3 4 5 6; do
11563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11565 # Solaris 8's {/usr,}/bin/sh.
11566 touch sub/conftst$i.h
11568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11571 # mode. It turns out that the SunPro C++ compiler does not properly
11572 # handle `-M -o', and we need to detect this. Also, some Intel
11573 # versions had trouble with output in subdirs
11574 am__obj=sub/conftest.${OBJEXT-o}
11575 am__minus_obj="-o $am__obj"
11578 # This depmode causes a compiler race in universal mode.
11579 test "$am__universal" = false || continue
11582 # after this tag, mechanisms are not by side-effect, so they'll
11583 # only be used when explicitly requested
11584 if test "x$enable_dependency_tracking" = xyes; then
11590 msvisualcpp | msvcmsys)
11591 # This compiler won't grok `-c -o', but also, the minuso test has
11592 # not run yet. These depmodes are late enough in the game, and
11593 # so weak that their functioning should not be impacted.
11594 am__obj=conftest.${OBJEXT-o}
11599 if depmode=$depmode \
11600 source=sub/conftest.c object=$am__obj \
11601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11603 >/dev/null 2>conftest.err &&
11604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11608 # icc doesn't choke on unknown options, it will just issue warnings
11609 # or remarks (even with -Werror). So we grep stderr for any message
11610 # that says an option was ignored or not supported.
11611 # When given -MP, icc 7.0 and 7.1 complain thusly:
11612 # icc: Command line warning: ignoring option '-M'; no argument required
11613 # The diagnosis changed in icc 8.0:
11614 # icc: Command line remark: option '-MP' not supported
11615 if (grep 'ignoring option' conftest.err ||
11616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11617 am_cv_CCAS_dependencies_compiler_type=$depmode
11624 rm -rf conftest.dir
11626 am_cv_CCAS_dependencies_compiler_type=none
11630 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11631 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11632 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11635 test "x$enable_dependency_tracking" != xno \
11636 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11637 am__fastdepCCAS_TRUE=
11638 am__fastdepCCAS_FALSE='#'
11640 am__fastdepCCAS_TRUE='#'
11641 am__fastdepCCAS_FALSE=
11647 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11648 $as_echo_n "checking zfs author... " >&6; }
11649 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11650 $as_echo "$ZFS_META_AUTHOR" >&6; }
11652 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11653 $as_echo_n "checking zfs license... " >&6; }
11654 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11655 $as_echo "$ZFS_META_LICENSE" >&6; }
11662 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11663 $as_echo_n "checking whether $RPM is available... " >&6; }
11664 if tmp=$($RPM --version 2>/dev/null); then
11666 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11668 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11669 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11674 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11675 $as_echo "$HAVE_RPM" >&6; }
11680 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11681 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11682 if tmp=$($RPMBUILD --version 2>/dev/null); then
11684 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11686 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11687 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11692 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11693 $as_echo "$HAVE_RPMBUILD" >&6; }
11708 DPKGBUILD=dpkg-buildpackage
11710 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11711 $as_echo_n "checking whether $DPKG is available... " >&6; }
11712 if tmp=$($DPKG --version 2>/dev/null); then
11714 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11716 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11717 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11722 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11723 $as_echo "$HAVE_DPKG" >&6; }
11728 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11729 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11730 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11732 DPKGBUILD_VERSION=$(echo $tmp | \
11733 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11735 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11736 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11741 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11742 $as_echo "$HAVE_DPKGBUILD" >&6; }
11758 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11759 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11760 if tmp=$($ALIEN --version 2>/dev/null); then
11762 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11764 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11765 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11770 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11771 $as_echo "$HAVE_ALIEN" >&6; }
11781 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11782 $as_echo_n "checking linux distribution... " >&6; }
11783 if test -f /etc/redhat-release ; then
11785 elif test -f /etc/fedora-release ; then
11787 elif test -f /etc/lsb-release ; then
11789 elif test -f /etc/debian_version ; then
11791 elif test -f /etc/SuSE-release ; then
11793 elif test -f /etc/slackware-version ; then
11795 elif test -f /etc/gentoo-release ; then
11800 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11801 $as_echo "$VENDOR" >&6; }
11804 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11805 $as_echo_n "checking default package type... " >&6; }
11807 fedora) DEFAULT_PACKAGE=rpm ;;
11808 redhat) DEFAULT_PACKAGE=rpm ;;
11809 sles) DEFAULT_PACKAGE=rpm ;;
11810 ubuntu) DEFAULT_PACKAGE=deb ;;
11811 debian) DEFAULT_PACKAGE=deb ;;
11812 slackware) DEFAULT_PACKAGE=tgz ;;
11813 *) DEFAULT_PACKAGE=rpm ;;
11816 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11817 $as_echo "$DEFAULT_PACKAGE" >&6; }
11822 TARGET_ASM_DIR=asm-generic
11827 # Check whether --with-config was given.
11828 if test "${with_config+set}" = set; then
11829 withval=$with_config; ZFS_CONFIG="$withval"
11833 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11834 $as_echo_n "checking zfs config... " >&6; }
11835 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11836 $as_echo "$ZFS_CONFIG" >&6; };
11839 case "$ZFS_CONFIG" in
11843 # Check whether --with-linux was given.
11844 if test "${with_linux+set}" = set; then
11845 withval=$with_linux; kernelsrc="$withval"
11850 # Check whether --with-linux-obj was given.
11851 if test "${with_linux_obj+set}" = set; then
11852 withval=$with_linux_obj; kernelbuild="$withval"
11856 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11857 $as_echo_n "checking kernel source directory... " >&6; }
11858 if test -z "$kernelsrc"; then
11859 if test -e "/lib/modules/$(uname -r)/source"; then
11860 headersdir="/lib/modules/$(uname -r)/source"
11861 sourcelink=$(readlink -f "$headersdir")
11862 elif test -e "/lib/modules/$(uname -r)/build"; then
11863 headersdir="/lib/modules/$(uname -r)/build"
11864 sourcelink=$(readlink -f "$headersdir")
11866 sourcelink=$(ls -1d /usr/src/kernels/* \
11868 2>/dev/null | grep -v obj | tail -1)
11871 if test -n "$sourcelink" && test -e ${sourcelink}; then
11872 kernelsrc=`readlink -f ${sourcelink}`
11874 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11875 $as_echo "Not found" >&6; }
11876 { { $as_echo "$as_me:$LINENO: error:
11877 *** Please make sure the kernel devel package for your distribution
11878 *** is installed then try again. If that fails you can specify the
11879 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11880 $as_echo "$as_me: error:
11881 *** Please make sure the kernel devel package for your distribution
11882 *** is installed then try again. If that fails you can specify the
11883 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11884 { (exit 1); exit 1; }; }
11887 if test "$kernelsrc" = "NONE"; then
11892 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11893 $as_echo "$kernelsrc" >&6; }
11894 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11895 $as_echo_n "checking kernel build directory... " >&6; }
11896 if test -z "$kernelbuild"; then
11897 if test -e "/lib/modules/$(uname -r)/build"; then
11898 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11899 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11900 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11901 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11902 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11903 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11904 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11906 kernelbuild=${kernelsrc}
11909 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11910 $as_echo "$kernelbuild" >&6; }
11912 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11913 $as_echo_n "checking kernel source version... " >&6; }
11914 utsrelease1=$kernelbuild/include/linux/version.h
11915 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11916 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11917 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11918 utsrelease=linux/version.h
11919 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11920 utsrelease=linux/utsrelease.h
11921 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11922 utsrelease=generated/utsrelease.h
11925 if test "$utsrelease"; then
11926 kernsrcver=`(echo "#include <$utsrelease>";
11927 echo "kernsrcver=UTS_RELEASE") |
11928 cpp -I $kernelbuild/include |
11929 grep "^kernsrcver=" | cut -d \" -f 2`
11931 if test -z "$kernsrcver"; then
11932 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11933 $as_echo "Not found" >&6; }
11934 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11935 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11936 { (exit 1); exit 1; }; }
11939 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11940 $as_echo "Not found" >&6; }
11941 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11942 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11943 { (exit 1); exit 1; }; }
11946 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11947 $as_echo "$kernsrcver" >&6; }
11950 LINUX_OBJ=${kernelbuild}
11951 LINUX_VERSION=${kernsrcver}
11958 modpost=$LINUX/scripts/Makefile.modpost
11959 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11960 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11961 if test -f "$modpost"; then
11962 if grep -q Modules.symvers $modpost; then
11963 LINUX_SYMBOLS=Modules.symvers
11965 LINUX_SYMBOLS=Module.symvers
11968 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11969 { { $as_echo "$as_me:$LINENO: error:
11970 *** Please make sure the kernel devel package for your distribution
11971 *** is installed. If your building with a custom kernel make sure the
11972 *** kernel is configured, built, and the '--with-linux=PATH' configure
11973 *** option refers to the location of the kernel source." >&5
11974 $as_echo "$as_me: error:
11975 *** Please make sure the kernel devel package for your distribution
11976 *** is installed. If your building with a custom kernel make sure the
11977 *** kernel is configured, built, and the '--with-linux=PATH' configure
11978 *** option refers to the location of the kernel source." >&2;}
11979 { (exit 1); exit 1; }; }
11984 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11985 $as_echo "$LINUX_SYMBOLS" >&6; }
11991 # Check whether --with-spl was given.
11992 if test "${with_spl+set}" = set; then
11993 withval=$with_spl; splsrc="$withval"
11998 # Check whether --with-spl-obj was given.
11999 if test "${with_spl_obj+set}" = set; then
12000 withval=$with_spl_obj; splbuild="$withval"
12005 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12006 $as_echo_n "checking spl source directory... " >&6; }
12007 if test -z "$splsrc"; then
12008 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12009 2>/dev/null | tail -1`
12011 if test -z "$sourcelink" || test ! -e $sourcelink; then
12015 if test -e $sourcelink; then
12016 splsrc=`readlink -f ${sourcelink}`
12018 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12019 $as_echo "Not found" >&6; }
12020 { { $as_echo "$as_me:$LINENO: error:
12021 *** Please make sure the spl devel package for your distribution
12022 *** is installed then try again. If that fails you can specify the
12023 *** location of the spl source with the '--with-spl=PATH' option." >&5
12024 $as_echo "$as_me: error:
12025 *** Please make sure the spl devel package for your distribution
12026 *** is installed then try again. If that fails you can specify the
12027 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12028 { (exit 1); exit 1; }; }
12031 if test "$splsrc" = "NONE"; then
12037 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12038 $as_echo "$splsrc" >&6; }
12039 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12040 $as_echo_n "checking spl build directory... " >&6; }
12041 if test -z "$splbuild"; then
12044 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12045 $as_echo "$splbuild" >&6; }
12047 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12048 $as_echo_n "checking spl source version... " >&6; }
12049 if test -r $splbuild/spl_config.h &&
12050 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12052 splsrcver=`(echo "#include <spl_config.h>";
12053 echo "splsrcver=SPL_META_VERSION") |
12055 grep "^splsrcver=" | cut -d \" -f 2`
12058 if test -z "$splsrcver"; then
12059 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12060 $as_echo "Not found" >&6; }
12061 { { $as_echo "$as_me:$LINENO: error:
12062 *** Cannot determine the version of the spl source.
12063 *** Please prepare the spl source before running this script" >&5
12064 $as_echo "$as_me: error:
12065 *** Cannot determine the version of the spl source.
12066 *** Please prepare the spl source before running this script" >&2;}
12067 { (exit 1); exit 1; }; }
12070 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12071 $as_echo "$splsrcver" >&6; }
12074 SPL_OBJ=${splbuild}
12075 SPL_VERSION=${splsrcver}
12082 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12083 $as_echo_n "checking spl file name for module symbols... " >&6; }
12084 if test -r $SPL_OBJ/Module.symvers; then
12085 SPL_SYMBOLS=Module.symvers
12086 elif test -r $SPL_OBJ/Modules.symvers; then
12087 SPL_SYMBOLS=Modules.symvers
12088 elif test -r $SPL_OBJ/module/Module.symvers; then
12089 SPL_SYMBOLS=Module.symvers
12090 elif test -r $SPL_OBJ/module/Modules.symvers; then
12091 SPL_SYMBOLS=Modules.symvers
12093 SPL_SYMBOLS=$LINUX_SYMBOLS
12096 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12097 $as_echo "$SPL_SYMBOLS" >&6; }
12103 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12104 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12107 cat confdefs.h - <<_ACEOF >conftest.c
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12115 #ifndef AUTOCONF_INCLUDED
12116 #include <linux/config.h>
12123 #ifndef CONFIG_PREEMPT
12124 #error CONFIG_PREEMPT not #defined
12134 rm -Rf build && mkdir -p build
12135 echo "obj-m := conftest.o" >build/Makefile
12136 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12148 { $as_echo "$as_me:$LINENO: result: yes" >&5
12149 $as_echo "yes" >&6; }
12150 { { $as_echo "$as_me:$LINENO: error:
12151 *** Kernel built with CONFIG_PREEMPT which is not supported.
12152 ** You must rebuild your kernel without this option." >&5
12153 $as_echo "$as_me: error:
12154 *** Kernel built with CONFIG_PREEMPT which is not supported.
12155 ** You must rebuild your kernel without this option." >&2;}
12156 { (exit 1); exit 1; }; }
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 { $as_echo "$as_me:$LINENO: result: no" >&5
12163 $as_echo "no" >&6; }
12175 if test "$ZFS_META_LICENSE" = CDDL; then
12176 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12177 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12180 cat confdefs.h - <<_ACEOF >conftest.c
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12188 #ifndef AUTOCONF_INCLUDED
12189 #include <linux/config.h>
12196 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12197 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12207 rm -Rf build && mkdir -p build
12208 echo "obj-m := conftest.o" >build/Makefile
12209 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12221 { $as_echo "$as_me:$LINENO: result: yes" >&5
12222 $as_echo "yes" >&6; }
12223 { { $as_echo "$as_me:$LINENO: error:
12224 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12225 *** incompatible with the CDDL license. You must rebuild
12226 *** your kernel without this option." >&5
12227 $as_echo "$as_me: error:
12228 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12229 *** incompatible with the CDDL license. You must rebuild
12230 *** your kernel without this option." >&2;}
12231 { (exit 1); exit 1; }; }
12234 $as_echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 { $as_echo "$as_me:$LINENO: result: no" >&5
12238 $as_echo "no" >&6; }
12251 if test "$ZFS_META_LICENSE" = GPL; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define HAVE_GPL_ONLY_SYMBOLS 1
12260 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12261 $as_echo_n "checking block device operation prototypes... " >&6; }
12264 cat confdefs.h - <<_ACEOF >conftest.c
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12272 #include <linux/blkdev.h>
12278 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12279 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12280 int (*blk_ioctl) (struct block_device *, fmode_t,
12281 unsigned, unsigned long) = NULL;
12282 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12283 unsigned, unsigned long) = NULL;
12284 struct block_device_operations blk_ops = {
12286 .release = blk_release,
12287 .ioctl = blk_ioctl,
12288 .compat_ioctl = blk_compat_ioctl,
12291 blk_ops.open(NULL, 0);
12292 blk_ops.release(NULL, 0);
12293 blk_ops.ioctl(NULL, 0, 0, 0);
12294 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12303 rm -Rf build && mkdir -p build
12304 echo "obj-m := conftest.o" >build/Makefile
12305 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12317 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12318 $as_echo "struct block_device" >&6; }
12320 cat >>confdefs.h <<\_ACEOF
12321 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12326 $as_echo "$as_me: failed program was:" >&5
12327 sed 's/^/| /' conftest.$ac_ext >&5
12329 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12330 $as_echo "struct inode" >&6; }
12340 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12341 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12344 cat confdefs.h - <<_ACEOF >conftest.c
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12352 #include <linux/types.h>
12367 rm -Rf build && mkdir -p build
12368 echo "obj-m := conftest.o" >build/Makefile
12369 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12381 { $as_echo "$as_me:$LINENO: result: yes" >&5
12382 $as_echo "yes" >&6; }
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_FMODE_T 1
12390 $as_echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12393 { $as_echo "$as_me:$LINENO: result: no" >&5
12394 $as_echo "no" >&6; }
12405 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12406 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12409 cat confdefs.h - <<_ACEOF >conftest.c
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12417 #include <linux/kobject.h>
12424 val = KOBJ_NAME_LEN;
12433 rm -Rf build && mkdir -p build
12434 echo "obj-m := conftest.o" >build/Makefile
12435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12447 { $as_echo "$as_me:$LINENO: result: yes" >&5
12448 $as_echo "yes" >&6; }
12450 cat >>confdefs.h <<\_ACEOF
12451 #define HAVE_KOBJ_NAME_LEN 1
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 { $as_echo "$as_me:$LINENO: result: no" >&5
12460 $as_echo "no" >&6; }
12471 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12472 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12473 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12474 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12476 if test $rc -ne 0; then
12478 for file in fs/block_dev.c; do
12479 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12481 if test $rc -eq 0; then
12486 if test $export -eq 0; then
12487 { $as_echo "$as_me:$LINENO: result: no" >&5
12488 $as_echo "no" >&6; }
12491 { $as_echo "$as_me:$LINENO: result: yes" >&5
12492 $as_echo "yes" >&6; }
12494 cat >>confdefs.h <<\_ACEOF
12495 #define HAVE_BLKDEV_GET_BY_PATH 1
12500 { $as_echo "$as_me:$LINENO: result: yes" >&5
12501 $as_echo "yes" >&6; }
12503 cat >>confdefs.h <<\_ACEOF
12504 #define HAVE_BLKDEV_GET_BY_PATH 1
12511 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12512 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12513 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12516 if test $rc -ne 0; then
12518 for file in fs/block_dev.c; do
12519 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12521 if test $rc -eq 0; then
12526 if test $export -eq 0; then
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528 $as_echo "no" >&6; }
12531 { $as_echo "$as_me:$LINENO: result: yes" >&5
12532 $as_echo "yes" >&6; }
12534 cat >>confdefs.h <<\_ACEOF
12535 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12540 { $as_echo "$as_me:$LINENO: result: yes" >&5
12541 $as_echo "yes" >&6; }
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12551 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12552 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12555 cat confdefs.h - <<_ACEOF >conftest.c
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12563 #include <linux/buffer_head.h>
12569 struct block_device *bdev;
12570 invalidate_bdev(bdev);
12579 rm -Rf build && mkdir -p build
12580 echo "obj-m := conftest.o" >build/Makefile
12581 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12593 { $as_echo "$as_me:$LINENO: result: yes" >&5
12594 $as_echo "yes" >&6; }
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_1ARG_INVALIDATE_BDEV 1
12602 $as_echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 { $as_echo "$as_me:$LINENO: result: no" >&5
12606 $as_echo "no" >&6; }
12617 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12618 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12621 cat confdefs.h - <<_ACEOF >conftest.c
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12629 #include <linux/blkdev.h>
12635 struct block_device *bdev = NULL;
12636 bdev_logical_block_size(bdev);
12645 rm -Rf build && mkdir -p build
12646 echo "obj-m := conftest.o" >build/Makefile
12647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12659 { $as_echo "$as_me:$LINENO: result: yes" >&5
12660 $as_echo "yes" >&6; }
12662 cat >>confdefs.h <<\_ACEOF
12663 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12668 $as_echo "$as_me: failed program was:" >&5
12669 sed 's/^/| /' conftest.$ac_ext >&5
12671 { $as_echo "$as_me:$LINENO: result: no" >&5
12672 $as_echo "no" >&6; }
12683 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12684 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12685 EXTRA_KCFLAGS="-Werror"
12688 cat confdefs.h - <<_ACEOF >conftest.c
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12696 #include <linux/bio.h>
12703 (void)bio_empty_barrier(&bio);
12712 rm -Rf build && mkdir -p build
12713 echo "obj-m := conftest.o" >build/Makefile
12714 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12726 { $as_echo "$as_me:$LINENO: result: yes" >&5
12727 $as_echo "yes" >&6; }
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_BIO_EMPTY_BARRIER 1
12735 $as_echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 { $as_echo "$as_me:$LINENO: result: no" >&5
12739 $as_echo "no" >&6; }
12750 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12751 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12754 cat confdefs.h - <<_ACEOF >conftest.c
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12762 #include <linux/bio.h>
12769 flags = (1 << BIO_RW_FAILFAST);
12778 rm -Rf build && mkdir -p build
12779 echo "obj-m := conftest.o" >build/Makefile
12780 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12792 { $as_echo "$as_me:$LINENO: result: yes" >&5
12793 $as_echo "yes" >&6; }
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_BIO_RW_FAILFAST 1
12801 $as_echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 { $as_echo "$as_me:$LINENO: result: no" >&5
12805 $as_echo "no" >&6; }
12816 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12817 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12820 cat confdefs.h - <<_ACEOF >conftest.c
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12828 #include <linux/bio.h>
12835 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12836 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12837 (1 << BIO_RW_FAILFAST_DRIVER));
12846 rm -Rf build && mkdir -p build
12847 echo "obj-m := conftest.o" >build/Makefile
12848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12860 { $as_echo "$as_me:$LINENO: result: yes" >&5
12861 $as_echo "yes" >&6; }
12863 cat >>confdefs.h <<\_ACEOF
12864 #define HAVE_BIO_RW_FAILFAST_DTD 1
12869 $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12872 { $as_echo "$as_me:$LINENO: result: no" >&5
12873 $as_echo "no" >&6; }
12884 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12885 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12888 cat confdefs.h - <<_ACEOF >conftest.c
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12896 #include <linux/bio.h>
12903 flags = REQ_FAILFAST_MASK;
12912 rm -Rf build && mkdir -p build
12913 echo "obj-m := conftest.o" >build/Makefile
12914 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12926 { $as_echo "$as_me:$LINENO: result: yes" >&5
12927 $as_echo "yes" >&6; }
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_BIO_REQ_FAILFAST_MASK 1
12935 $as_echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 { $as_echo "$as_me:$LINENO: result: no" >&5
12939 $as_echo "no" >&6; }
12950 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12951 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12952 tmp_flags="$EXTRA_KCFLAGS"
12953 EXTRA_KCFLAGS="-Werror"
12956 cat confdefs.h - <<_ACEOF >conftest.c
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12964 #include <linux/bio.h>
12970 void (*wanted_end_io)(struct bio *, int) = NULL;
12971 bio_end_io_t *local_end_io;
12973 local_end_io = wanted_end_io;
12982 rm -Rf build && mkdir -p build
12983 echo "obj-m := conftest.o" >build/Makefile
12984 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12996 { $as_echo "$as_me:$LINENO: result: yes" >&5
12997 $as_echo "yes" >&6; }
12999 cat >>confdefs.h <<\_ACEOF
13000 #define HAVE_2ARGS_BIO_END_IO_T 1
13005 $as_echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13008 { $as_echo "$as_me:$LINENO: result: no" >&5
13009 $as_echo "no" >&6; }
13018 EXTRA_KCFLAGS="$tmp_flags"
13021 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13022 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13025 cat confdefs.h - <<_ACEOF >conftest.c
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13033 #include <linux/bio.h>
13040 flags = BIO_RW_SYNC;
13049 rm -Rf build && mkdir -p build
13050 echo "obj-m := conftest.o" >build/Makefile
13051 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13063 { $as_echo "$as_me:$LINENO: result: yes" >&5
13064 $as_echo "yes" >&6; }
13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_BIO_RW_SYNC 1
13072 $as_echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 { $as_echo "$as_me:$LINENO: result: no" >&5
13076 $as_echo "no" >&6; }
13087 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13088 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13091 cat confdefs.h - <<_ACEOF >conftest.c
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13099 #include <linux/bio.h>
13106 flags = BIO_RW_SYNCIO;
13115 rm -Rf build && mkdir -p build
13116 echo "obj-m := conftest.o" >build/Makefile
13117 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13129 { $as_echo "$as_me:$LINENO: result: yes" >&5
13130 $as_echo "yes" >&6; }
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_BIO_RW_SYNCIO 1
13138 $as_echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 { $as_echo "$as_me:$LINENO: result: no" >&5
13142 $as_echo "no" >&6; }
13153 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13154 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13157 cat confdefs.h - <<_ACEOF >conftest.c
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13165 #include <linux/bio.h>
13181 rm -Rf build && mkdir -p build
13182 echo "obj-m := conftest.o" >build/Makefile
13183 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13195 { $as_echo "$as_me:$LINENO: result: yes" >&5
13196 $as_echo "yes" >&6; }
13198 cat >>confdefs.h <<\_ACEOF
13199 #define HAVE_REQ_SYNC 1
13204 $as_echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 { $as_echo "$as_me:$LINENO: result: no" >&5
13208 $as_echo "no" >&6; }
13219 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13220 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13223 cat confdefs.h - <<_ACEOF >conftest.c
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13231 #include <linux/blkdev.h>
13237 struct request *req = NULL;
13238 (void) blk_end_request(req, 0, 0);
13247 rm -Rf build && mkdir -p build
13248 echo "obj-m := conftest.o" >build/Makefile
13249 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13261 { $as_echo "$as_me:$LINENO: result: yes" >&5
13262 $as_echo "yes" >&6; }
13264 cat >>confdefs.h <<\_ACEOF
13265 #define HAVE_BLK_END_REQUEST 1
13270 $as_echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13273 { $as_echo "$as_me:$LINENO: result: no" >&5
13274 $as_echo "no" >&6; }
13284 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13285 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13288 cat confdefs.h - <<_ACEOF >conftest.c
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13296 #include <linux/module.h>
13297 #include <linux/blkdev.h>
13299 MODULE_LICENSE("CDDL");
13305 struct request *req = NULL;
13306 (void) blk_end_request(req, 0, 0);
13315 rm -Rf build && mkdir -p build
13316 echo "obj-m := conftest.o" >build/Makefile
13317 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319 (eval $ac_try) 2>&5
13321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13329 { $as_echo "$as_me:$LINENO: result: no" >&5
13330 $as_echo "no" >&6; }
13333 $as_echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13336 { $as_echo "$as_me:$LINENO: result: yes" >&5
13337 $as_echo "yes" >&6; }
13339 cat >>confdefs.h <<\_ACEOF
13340 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13353 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13354 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13357 cat confdefs.h - <<_ACEOF >conftest.c
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13365 #include <linux/blkdev.h>
13371 struct request_queue *q = NULL;
13372 (void) blk_fetch_request(q);
13381 rm -Rf build && mkdir -p build
13382 echo "obj-m := conftest.o" >build/Makefile
13383 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; }; then
13395 { $as_echo "$as_me:$LINENO: result: yes" >&5
13396 $as_echo "yes" >&6; }
13398 cat >>confdefs.h <<\_ACEOF
13399 #define HAVE_BLK_FETCH_REQUEST 1
13404 $as_echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13407 { $as_echo "$as_me:$LINENO: result: no" >&5
13408 $as_echo "no" >&6; }
13419 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13420 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13423 cat confdefs.h - <<_ACEOF >conftest.c
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13431 #include <linux/blkdev.h>
13437 struct request_queue *q = NULL;
13438 struct request *req = NULL;
13439 blk_requeue_request(q, req);
13448 rm -Rf build && mkdir -p build
13449 echo "obj-m := conftest.o" >build/Makefile
13450 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13462 { $as_echo "$as_me:$LINENO: result: yes" >&5
13463 $as_echo "yes" >&6; }
13465 cat >>confdefs.h <<\_ACEOF
13466 #define HAVE_BLK_REQUEUE_REQUEST 1
13471 $as_echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 { $as_echo "$as_me:$LINENO: result: no" >&5
13475 $as_echo "no" >&6; }
13486 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13487 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13490 cat confdefs.h - <<_ACEOF >conftest.c
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13498 #include <linux/blkdev.h>
13504 struct request *req = NULL;
13505 (void) blk_rq_bytes(req);
13514 rm -Rf build && mkdir -p build
13515 echo "obj-m := conftest.o" >build/Makefile
13516 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13528 { $as_echo "$as_me:$LINENO: result: yes" >&5
13529 $as_echo "yes" >&6; }
13531 cat >>confdefs.h <<\_ACEOF
13532 #define HAVE_BLK_RQ_BYTES 1
13537 $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13551 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13552 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13555 cat confdefs.h - <<_ACEOF >conftest.c
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13563 #include <linux/module.h>
13564 #include <linux/blkdev.h>
13566 MODULE_LICENSE("CDDL");
13572 struct request *req = NULL;
13573 (void) blk_rq_bytes(req);
13582 rm -Rf build && mkdir -p build
13583 echo "obj-m := conftest.o" >build/Makefile
13584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13596 { $as_echo "$as_me:$LINENO: result: no" >&5
13597 $as_echo "no" >&6; }
13600 $as_echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13603 { $as_echo "$as_me:$LINENO: result: yes" >&5
13604 $as_echo "yes" >&6; }
13606 cat >>confdefs.h <<\_ACEOF
13607 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13620 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13621 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13624 cat confdefs.h - <<_ACEOF >conftest.c
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13632 #include <linux/blkdev.h>
13638 struct request *req = NULL;
13639 (void) blk_rq_pos(req);
13648 rm -Rf build && mkdir -p build
13649 echo "obj-m := conftest.o" >build/Makefile
13650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13662 { $as_echo "$as_me:$LINENO: result: yes" >&5
13663 $as_echo "yes" >&6; }
13665 cat >>confdefs.h <<\_ACEOF
13666 #define HAVE_BLK_RQ_POS 1
13671 $as_echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13674 { $as_echo "$as_me:$LINENO: result: no" >&5
13675 $as_echo "no" >&6; }
13686 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13687 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13690 cat confdefs.h - <<_ACEOF >conftest.c
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13698 #include <linux/blkdev.h>
13704 struct request *req = NULL;
13705 (void) blk_rq_sectors(req);
13714 rm -Rf build && mkdir -p build
13715 echo "obj-m := conftest.o" >build/Makefile
13716 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13728 { $as_echo "$as_me:$LINENO: result: yes" >&5
13729 $as_echo "yes" >&6; }
13731 cat >>confdefs.h <<\_ACEOF
13732 #define HAVE_BLK_RQ_SECTORS 1
13737 $as_echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 { $as_echo "$as_me:$LINENO: result: no" >&5
13741 $as_echo "no" >&6; }
13752 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13753 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13756 cat confdefs.h - <<_ACEOF >conftest.c
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13764 #include <linux/blkdev.h>
13770 struct gendisk *disk = NULL;
13771 (void) get_disk_ro(disk);
13780 rm -Rf build && mkdir -p build
13781 echo "obj-m := conftest.o" >build/Makefile
13782 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13794 { $as_echo "$as_me:$LINENO: result: yes" >&5
13795 $as_echo "yes" >&6; }
13797 cat >>confdefs.h <<\_ACEOF
13798 #define HAVE_GET_DISK_RO 1
13803 $as_echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 { $as_echo "$as_me:$LINENO: result: no" >&5
13807 $as_echo "no" >&6; }
13818 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13819 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13822 cat confdefs.h - <<_ACEOF >conftest.c
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13830 #include <linux/blkdev.h>
13836 struct request *req = NULL;
13837 (void) rq_is_sync(req);
13846 rm -Rf build && mkdir -p build
13847 echo "obj-m := conftest.o" >build/Makefile
13848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13860 { $as_echo "$as_me:$LINENO: result: yes" >&5
13861 $as_echo "yes" >&6; }
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_RQ_IS_SYNC 1
13869 $as_echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 { $as_echo "$as_me:$LINENO: result: no" >&5
13873 $as_echo "no" >&6; }
13884 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13885 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13888 cat confdefs.h - <<_ACEOF >conftest.c
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13896 #include <linux/blkdev.h>
13902 struct bio_vec *bv;
13903 struct req_iterator iter;
13904 struct request *req = NULL;
13905 rq_for_each_segment(bv, req, iter) { }
13914 rm -Rf build && mkdir -p build
13915 echo "obj-m := conftest.o" >build/Makefile
13916 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13928 { $as_echo "$as_me:$LINENO: result: yes" >&5
13929 $as_echo "yes" >&6; }
13931 cat >>confdefs.h <<\_ACEOF
13932 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13937 $as_echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 { $as_echo "$as_me:$LINENO: result: no" >&5
13941 $as_echo "no" >&6; }
13951 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13952 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13955 cat confdefs.h - <<_ACEOF >conftest.c
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13963 #include <linux/fs.h>
13964 #include <linux/xattr.h>
13966 const struct xattr_handler xattr_test_handler = {
13972 const struct xattr_handler *xattr_handlers[] = {
13973 &xattr_test_handler,
13980 struct super_block sb;
13982 sb.s_xattr = xattr_handlers;
13991 rm -Rf build && mkdir -p build
13992 echo "obj-m := conftest.o" >build/Makefile
13993 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14005 { $as_echo "$as_me:$LINENO: result: yes" >&5
14006 $as_echo "yes" >&6; }
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_CONST_XATTR_HANDLER 1
14014 $as_echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 { $as_echo "$as_me:$LINENO: result: no" >&5
14018 $as_echo "no" >&6; }
14029 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14030 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14033 cat confdefs.h - <<_ACEOF >conftest.c
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h. */
14041 #include <linux/xattr.h>
14047 int (*get)(struct dentry *dentry, const char *name,
14048 void *buffer, size_t size, int handler_flags) = NULL;
14049 struct xattr_handler xops;
14060 rm -Rf build && mkdir -p build
14061 echo "obj-m := conftest.o" >build/Makefile
14062 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14074 { $as_echo "$as_me:$LINENO: result: yes" >&5
14075 $as_echo "yes" >&6; }
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_DENTRY_XATTR_GET 1
14083 $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 { $as_echo "$as_me:$LINENO: result: no" >&5
14087 $as_echo "no" >&6; }
14098 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14099 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14102 cat confdefs.h - <<_ACEOF >conftest.c
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14110 #include <linux/xattr.h>
14116 int (*set)(struct dentry *dentry, const char *name,
14117 const void *buffer, size_t size, int flags,
14118 int handler_flags) = NULL;
14119 struct xattr_handler xops;
14130 rm -Rf build && mkdir -p build
14131 echo "obj-m := conftest.o" >build/Makefile
14132 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; }; then
14144 { $as_echo "$as_me:$LINENO: result: yes" >&5
14145 $as_echo "yes" >&6; }
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_DENTRY_XATTR_SET 1
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 { $as_echo "$as_me:$LINENO: result: no" >&5
14157 $as_echo "no" >&6; }
14168 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14169 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14172 cat confdefs.h - <<_ACEOF >conftest.c
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14180 #include <linux/fs.h>
14186 int (*fsync) (struct file *, int datasync) = NULL;
14187 struct file_operations fops;
14189 fops.fsync = fsync;
14198 rm -Rf build && mkdir -p build
14199 echo "obj-m := conftest.o" >build/Makefile
14200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14212 { $as_echo "$as_me:$LINENO: result: yes" >&5
14213 $as_echo "yes" >&6; }
14215 cat >>confdefs.h <<\_ACEOF
14216 #define HAVE_2ARGS_FSYNC 1
14221 $as_echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14224 { $as_echo "$as_me:$LINENO: result: no" >&5
14225 $as_echo "no" >&6; }
14236 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14237 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14240 cat confdefs.h - <<_ACEOF >conftest.c
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14248 #include <linux/fs.h>
14254 void (*evict_inode) (struct inode *) = NULL;
14255 struct super_operations sops;
14257 sops.evict_inode = evict_inode;
14266 rm -Rf build && mkdir -p build
14267 echo "obj-m := conftest.o" >build/Makefile
14268 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14280 { $as_echo "$as_me:$LINENO: result: yes" >&5
14281 $as_echo "yes" >&6; }
14283 cat >>confdefs.h <<\_ACEOF
14284 #define HAVE_EVICT_INODE 1
14289 $as_echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14292 { $as_echo "$as_me:$LINENO: result: no" >&5
14293 $as_echo "no" >&6; }
14304 if test "$LINUX_OBJ" != "$LINUX"; then
14305 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14310 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14311 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14317 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14318 $as_echo_n "checking for target asm dir... " >&6; }
14319 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14321 case $TARGET_ARCH in
14323 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14326 TARGET_ASM_DIR=asm-generic
14331 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14332 $as_echo "$TARGET_ASM_DIR" >&6; }
14335 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14336 $as_echo_n "checking for ioctl()... " >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 #include <unistd.h>
14346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14347 $EGREP "ioctl" >/dev/null 2>&1; then
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include <sys/ioctl.h>
14363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14364 $EGREP "ioctl" >/dev/null 2>&1; then
14371 cat >conftest.$ac_ext <<_ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <stropts.h>
14380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14381 $EGREP "ioctl" >/dev/null 2>&1; then
14389 if test $is_unistd = yes; then
14392 cat >>confdefs.h <<\_ACEOF
14393 #define HAVE_IOCTL_IN_UNISTD_H 1
14398 if test $is_sys_ioctl = yes; then
14401 cat >>confdefs.h <<\_ACEOF
14402 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14405 elif test $is_stropts = yes; then
14407 cat >>confdefs.h <<\_ACEOF
14408 #define HAVE_IOCTL_IN_STROPTS_H 1
14416 if test $result = no; then
14417 { $as_echo "$as_me:$LINENO: result: no" >&5
14418 $as_echo "no" >&6; }
14419 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14420 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14421 { (exit 1); exit 1; }; }
14423 { $as_echo "$as_me:$LINENO: result: yes" >&5
14424 $as_echo "yes" >&6; }
14430 if test "${ac_cv_header_zlib_h+set}" = set; then
14431 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14432 $as_echo_n "checking for zlib.h... " >&6; }
14433 if test "${ac_cv_header_zlib_h+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14437 $as_echo "$ac_cv_header_zlib_h" >&6; }
14439 # Is the header compilable?
14440 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14441 $as_echo_n "checking zlib.h usability... " >&6; }
14442 cat >conftest.$ac_ext <<_ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 $ac_includes_default
14451 rm -f conftest.$ac_objext
14452 if { (ac_try="$ac_compile"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458 $as_echo "$ac_try_echo") >&5
14459 (eval "$ac_compile") 2>conftest.er1
14461 grep -v '^ *+' conftest.er1 >conftest.err
14463 cat conftest.err >&5
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest.$ac_objext; then
14469 ac_header_compiler=yes
14471 $as_echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 ac_header_compiler=no
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14479 $as_echo "$ac_header_compiler" >&6; }
14481 # Is the header present?
14482 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14483 $as_echo_n "checking zlib.h presence... " >&6; }
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14492 if { (ac_try="$ac_cpp conftest.$ac_ext"
14493 case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14498 $as_echo "$ac_try_echo") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null && {
14506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14509 ac_header_preproc=yes
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_preproc=no
14517 rm -f conftest.err conftest.$ac_ext
14518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14519 $as_echo "$ac_header_preproc" >&6; }
14521 # So? What about this header?
14522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14524 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14525 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14526 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14527 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14528 ac_header_preproc=yes
14531 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14532 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
14534 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
14535 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14536 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
14538 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14540 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14542 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14546 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14547 $as_echo_n "checking for zlib.h... " >&6; }
14548 if test "${ac_cv_header_zlib_h+set}" = set; then
14549 $as_echo_n "(cached) " >&6
14551 ac_cv_header_zlib_h=$ac_header_preproc
14553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14554 $as_echo "$ac_cv_header_zlib_h" >&6; }
14557 if test "x$ac_cv_header_zlib_h" = x""yes; then
14560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14562 { { $as_echo "$as_me:$LINENO: error:
14563 *** zlib.h missing, zlib-devel package required
14564 See \`config.log' for more details." >&5
14565 $as_echo "$as_me: error:
14566 *** zlib.h missing, zlib-devel package required
14567 See \`config.log' for more details." >&2;}
14568 { (exit 1); exit 1; }; }; }
14574 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14575 $as_echo_n "checking for compress2 in -lz... " >&6; }
14576 if test "${ac_cv_lib_z_compress2+set}" = set; then
14577 $as_echo_n "(cached) " >&6
14579 ac_check_lib_save_LIBS=$LIBS
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14588 /* Override any GCC internal prototype to avoid an error.
14589 Use char because int might match the return type of a GCC
14590 builtin and then its argument prototype would still apply. */
14598 return compress2 ();
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611 (eval "$ac_link") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest$ac_exeext && {
14621 test "$cross_compiling" = yes ||
14622 $as_test_x conftest$ac_exeext
14624 ac_cv_lib_z_compress2=yes
14626 $as_echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14629 ac_cv_lib_z_compress2=no
14632 rm -rf conftest.dSYM
14633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14638 $as_echo "$ac_cv_lib_z_compress2" >&6; }
14639 if test "x$ac_cv_lib_z_compress2" = x""yes; then
14640 cat >>confdefs.h <<_ACEOF
14641 #define HAVE_LIBZ 1
14647 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14649 { { $as_echo "$as_me:$LINENO: error:
14650 *** compress2() missing, zlib-devel package required
14651 See \`config.log' for more details." >&5
14652 $as_echo "$as_me: error:
14653 *** compress2() missing, zlib-devel package required
14654 See \`config.log' for more details." >&2;}
14655 { (exit 1); exit 1; }; }; }
14660 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14661 $as_echo_n "checking for uncompress in -lz... " >&6; }
14662 if test "${ac_cv_lib_z_uncompress+set}" = set; then
14663 $as_echo_n "(cached) " >&6
14665 ac_check_lib_save_LIBS=$LIBS
14667 cat >conftest.$ac_ext <<_ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14680 char uncompress ();
14684 return uncompress ();
14689 rm -f conftest.$ac_objext conftest$ac_exeext
14690 if { (ac_try="$ac_link"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_link") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext && {
14707 test "$cross_compiling" = yes ||
14708 $as_test_x conftest$ac_exeext
14710 ac_cv_lib_z_uncompress=yes
14712 $as_echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14715 ac_cv_lib_z_uncompress=no
14718 rm -rf conftest.dSYM
14719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_lib_save_LIBS
14723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14724 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14725 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14726 cat >>confdefs.h <<_ACEOF
14727 #define HAVE_LIBZ 1
14733 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14735 { { $as_echo "$as_me:$LINENO: error:
14736 *** uncompress() missing, zlib-devel package required
14737 See \`config.log' for more details." >&5
14738 $as_echo "$as_me: error:
14739 *** uncompress() missing, zlib-devel package required
14740 See \`config.log' for more details." >&2;}
14741 { (exit 1); exit 1; }; }; }
14746 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14747 $as_echo_n "checking for crc32 in -lz... " >&6; }
14748 if test "${ac_cv_lib_z_crc32+set}" = set; then
14749 $as_echo_n "(cached) " >&6
14751 ac_check_lib_save_LIBS=$LIBS
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 /* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (ac_try="$ac_link"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14782 $as_echo "$ac_try_echo") >&5
14783 (eval "$ac_link") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest$ac_exeext && {
14793 test "$cross_compiling" = yes ||
14794 $as_test_x conftest$ac_exeext
14796 ac_cv_lib_z_crc32=yes
14798 $as_echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_lib_z_crc32=no
14804 rm -rf conftest.dSYM
14805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14810 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14811 if test "x$ac_cv_lib_z_crc32" = x""yes; then
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_LIBZ 1
14819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14821 { { $as_echo "$as_me:$LINENO: error:
14822 *** crc32() missing, zlib-devel package required
14823 See \`config.log' for more details." >&5
14824 $as_echo "$as_me: error:
14825 *** crc32() missing, zlib-devel package required
14826 See \`config.log' for more details." >&2;}
14827 { (exit 1); exit 1; }; }; }
14834 cat >>confdefs.h <<\_ACEOF
14835 #define HAVE_ZLIB 1
14842 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14843 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14844 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14845 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14846 $as_echo_n "(cached) " >&6
14848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14849 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14851 # Is the header compilable?
14852 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14853 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <uuid/uuid.h>
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14870 $as_echo "$ac_try_echo") >&5
14871 (eval "$ac_compile") 2>conftest.er1
14873 grep -v '^ *+' conftest.er1 >conftest.err
14875 cat conftest.err >&5
14876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); } && {
14878 test -z "$ac_c_werror_flag" ||
14879 test ! -s conftest.err
14880 } && test -s conftest.$ac_objext; then
14881 ac_header_compiler=yes
14883 $as_echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 ac_header_compiler=no
14889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14891 $as_echo "$ac_header_compiler" >&6; }
14893 # Is the header present?
14894 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14895 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 #include <uuid/uuid.h>
14904 if { (ac_try="$ac_cpp conftest.$ac_ext"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913 grep -v '^ *+' conftest.er1 >conftest.err
14915 cat conftest.err >&5
14916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } >/dev/null && {
14918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14919 test ! -s conftest.err
14921 ac_header_preproc=yes
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_header_preproc=no
14929 rm -f conftest.err conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14931 $as_echo "$ac_header_preproc" >&6; }
14933 # So? What about this header?
14934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14937 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14938 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14939 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14940 ac_header_preproc=yes
14943 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14944 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14945 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
14946 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
14947 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14948 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14949 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
14950 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
14951 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14952 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14953 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14954 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14958 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14959 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14960 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14961 $as_echo_n "(cached) " >&6
14963 ac_cv_header_uuid_uuid_h=$ac_header_preproc
14965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14966 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14969 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
14972 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14974 { { $as_echo "$as_me:$LINENO: error:
14975 *** uuid/uuid.h missing, libuuid-devel package required
14976 See \`config.log' for more details." >&5
14977 $as_echo "$as_me: error:
14978 *** uuid/uuid.h missing, libuuid-devel package required
14979 See \`config.log' for more details." >&2;}
14980 { (exit 1); exit 1; }; }; }
14986 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14987 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14988 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14989 $as_echo_n "(cached) " >&6
14991 ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-luuid $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char uuid_generate ();
15010 return uuid_generate ();
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (ac_try="$ac_link"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15022 $as_echo "$ac_try_echo") >&5
15023 (eval "$ac_link") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } && {
15030 test -z "$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15032 } && test -s conftest$ac_exeext && {
15033 test "$cross_compiling" = yes ||
15034 $as_test_x conftest$ac_exeext
15036 ac_cv_lib_uuid_uuid_generate=yes
15038 $as_echo "$as_me: failed program was:" >&5
15039 sed 's/^/| /' conftest.$ac_ext >&5
15041 ac_cv_lib_uuid_uuid_generate=no
15044 rm -rf conftest.dSYM
15045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15046 conftest$ac_exeext conftest.$ac_ext
15047 LIBS=$ac_check_lib_save_LIBS
15049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15050 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15051 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15052 cat >>confdefs.h <<_ACEOF
15053 #define HAVE_LIBUUID 1
15056 LIBS="-luuid $LIBS"
15059 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15061 { { $as_echo "$as_me:$LINENO: error:
15062 *** uuid_generate() missing, libuuid-devel package required
15063 See \`config.log' for more details." >&5
15064 $as_echo "$as_me: error:
15065 *** uuid_generate() missing, libuuid-devel package required
15066 See \`config.log' for more details." >&2;}
15067 { (exit 1); exit 1; }; }; }
15072 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15073 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15074 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15075 $as_echo_n "(cached) " >&6
15077 ac_check_lib_save_LIBS=$LIBS
15078 LIBS="-luuid $LIBS"
15079 cat >conftest.$ac_ext <<_ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15086 /* Override any GCC internal prototype to avoid an error.
15087 Use char because int might match the return type of a GCC
15088 builtin and then its argument prototype would still apply. */
15092 char uuid_is_null ();
15096 return uuid_is_null ();
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108 $as_echo "$ac_try_echo") >&5
15109 (eval "$ac_link") 2>conftest.er1
15111 grep -v '^ *+' conftest.er1 >conftest.err
15113 cat conftest.err >&5
15114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && {
15116 test -z "$ac_c_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest$ac_exeext && {
15119 test "$cross_compiling" = yes ||
15120 $as_test_x conftest$ac_exeext
15122 ac_cv_lib_uuid_uuid_is_null=yes
15124 $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 ac_cv_lib_uuid_uuid_is_null=no
15130 rm -rf conftest.dSYM
15131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15132 conftest$ac_exeext conftest.$ac_ext
15133 LIBS=$ac_check_lib_save_LIBS
15135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
15136 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15137 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_LIBUUID 1
15142 LIBS="-luuid $LIBS"
15145 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15147 { { $as_echo "$as_me:$LINENO: error:
15148 *** uuid_is_null() missing, libuuid-devel package required
15149 See \`config.log' for more details." >&5
15150 $as_echo "$as_me: error:
15151 *** uuid_is_null() missing, libuuid-devel package required
15152 See \`config.log' for more details." >&2;}
15153 { (exit 1); exit 1; }; }; }
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_LIBUUID 1
15167 # Check whether --with-blkid was given.
15168 if test "${with_blkid+set}" = set; then
15169 withval=$with_blkid;
15176 if test "x$with_blkid" != xno; then
15178 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15179 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15180 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15181 $as_echo_n "(cached) " >&6
15183 ac_check_lib_save_LIBS=$LIBS
15184 LIBS="-lblkid $LIBS"
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15198 char blkid_get_cache ();
15202 return blkid_get_cache ();
15207 rm -f conftest.$ac_objext conftest$ac_exeext
15208 if { (ac_try="$ac_link"
15209 case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15214 $as_echo "$ac_try_echo") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext && {
15225 test "$cross_compiling" = yes ||
15226 $as_test_x conftest$ac_exeext
15228 ac_cv_lib_blkid_blkid_get_cache=yes
15230 $as_echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_cv_lib_blkid_blkid_get_cache=no
15236 rm -rf conftest.dSYM
15237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LIBS=$ac_check_lib_save_LIBS
15241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15242 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15243 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15245 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15246 $as_echo_n "checking for blkid zfs support... " >&6; }
15249 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15250 >/dev/null 2>/dev/null
15251 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15252 dd of=$ZFS_DEV bs=1k count=8 \
15253 seek=132 conv=notrunc &>/dev/null \
15254 >/dev/null 2>/dev/null
15256 saved_LDFLAGS="$LDFLAGS"
15259 if test "$cross_compiling" = yes; then
15260 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15262 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15263 See \`config.log' for more details." >&5
15264 $as_echo "$as_me: error: cannot run test program while cross compiling
15265 See \`config.log' for more details." >&2;}
15266 { (exit 1); exit 1; }; }; }
15268 cat >conftest.$ac_ext <<_ACEOF
15271 cat confdefs.h >>conftest.$ac_ext
15272 cat >>conftest.$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15276 #include <blkid/blkid.h>
15285 if (blkid_get_cache(&cache, NULL) < 0)
15288 value = blkid_get_tag_value(cache, "TYPE",
15291 blkid_put_cache(cache);
15295 if (strcmp(value, "zfs")) {
15297 blkid_put_cache(cache);
15302 blkid_put_cache(cache);
15308 rm -f conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>&5
15318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15320 { (case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15325 $as_echo "$ac_try_echo") >&5
15326 (eval "$ac_try") 2>&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15332 { $as_echo "$as_me:$LINENO: result: yes" >&5
15333 $as_echo "yes" >&6; }
15337 cat >>confdefs.h <<\_ACEOF
15338 #define HAVE_LIBBLKID 1
15343 $as_echo "$as_me: program exited with status $ac_status" >&5
15344 $as_echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15347 ( exit $ac_status )
15350 { $as_echo "$as_me:$LINENO: result: no" >&5
15351 $as_echo "no" >&6; }
15352 if test "x$with_blkid" != xcheck; then
15353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15355 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15356 See \`config.log' for more details." >&5
15357 $as_echo "$as_me: error: --with-blkid given but unavailable
15358 See \`config.log' for more details." >&2;}
15359 { (exit 1); exit 1; }; }; }
15364 rm -rf conftest.dSYM
15365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15370 LDFLAGS="$saved_LDFLAGS"
15374 if test "x$with_blkid" != xcheck; then
15375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15377 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15378 See \`config.log' for more details." >&5
15379 $as_echo "$as_me: error: --with-blkid given but unavailable
15380 See \`config.log' for more details." >&2;}
15381 { (exit 1); exit 1; }; }; }
15394 # Check whether --with-selinux was given.
15395 if test "${with_selinux+set}" = set; then
15396 withval=$with_selinux;
15403 if test "x$with_selinux" != xno; then
15405 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15406 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15407 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15408 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15409 $as_echo_n "(cached) " >&6
15411 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15412 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15414 # Is the header compilable?
15415 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15416 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 $ac_includes_default
15424 #include <selinux/selinux.h>
15426 rm -f conftest.$ac_objext
15427 if { (ac_try="$ac_compile"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15433 $as_echo "$ac_try_echo") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } && {
15441 test -z "$ac_c_werror_flag" ||
15442 test ! -s conftest.err
15443 } && test -s conftest.$ac_objext; then
15444 ac_header_compiler=yes
15446 $as_echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_compiler=no
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15454 $as_echo "$ac_header_compiler" >&6; }
15456 # Is the header present?
15457 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15458 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 #include <selinux/selinux.h>
15467 if { (ac_try="$ac_cpp conftest.$ac_ext"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15473 $as_echo "$ac_try_echo") >&5
15474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } >/dev/null && {
15481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15482 test ! -s conftest.err
15484 ac_header_preproc=yes
15486 $as_echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15489 ac_header_preproc=no
15492 rm -f conftest.err conftest.$ac_ext
15493 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494 $as_echo "$ac_header_preproc" >&6; }
15496 # So? What about this header?
15497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15499 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15500 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15502 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15503 ac_header_preproc=yes
15506 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15507 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15508 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
15509 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
15510 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15511 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15512 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
15513 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15515 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15517 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15521 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15522 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15523 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15524 $as_echo_n "(cached) " >&6
15526 ac_cv_header_selinux_selinux_h=$ac_header_preproc
15528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15529 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15532 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
15534 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15535 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15536 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15537 $as_echo_n "(cached) " >&6
15539 ac_check_lib_save_LIBS=$LIBS
15540 LIBS="-lselinux $LIBS"
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15548 /* Override any GCC internal prototype to avoid an error.
15549 Use char because int might match the return type of a GCC
15550 builtin and then its argument prototype would still apply. */
15554 char is_selinux_enabled ();
15558 return is_selinux_enabled ();
15563 rm -f conftest.$ac_objext conftest$ac_exeext
15564 if { (ac_try="$ac_link"
15565 case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15570 $as_echo "$ac_try_echo") >&5
15571 (eval "$ac_link") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest$ac_exeext && {
15581 test "$cross_compiling" = yes ||
15582 $as_test_x conftest$ac_exeext
15584 ac_cv_lib_selinux_is_selinux_enabled=yes
15586 $as_echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_lib_selinux_is_selinux_enabled=no
15592 rm -rf conftest.dSYM
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594 conftest$ac_exeext conftest.$ac_ext
15595 LIBS=$ac_check_lib_save_LIBS
15597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15598 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15599 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15601 LIBSELINUX="-lselinux"
15604 cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_LIBSELINUX 1
15611 if test "x$with_selinux" != xcheck; then
15612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15614 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15615 See \`config.log' for more details." >&5
15616 $as_echo "$as_me: error: --with-selinux given but unavailable
15617 See \`config.log' for more details." >&2;}
15618 { (exit 1); exit 1; }; }; }
15628 if test "x$with_selinux" != xcheck; then
15629 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15631 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15632 See \`config.log' for more details." >&5
15633 $as_echo "$as_me: error: --with-selinux given but unavailable
15634 See \`config.log' for more details." >&2;}
15635 { (exit 1); exit 1; }; }; }
15646 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
15647 $as_echo_n "checking for selinux support... " >&6; }
15648 { $as_echo "$as_me:$LINENO: result: no" >&5
15649 $as_echo "no" >&6; }
15655 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
15656 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
15658 saved_flags="$CFLAGS"
15659 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15661 if test "$cross_compiling" = yes; then
15662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15664 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15665 See \`config.log' for more details." >&5
15666 $as_echo "$as_me: error: cannot run test program while cross compiling
15667 See \`config.log' for more details." >&2;}
15668 { (exit 1); exit 1; }; }; }
15670 cat >conftest.$ac_ext <<_ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15685 rm -f conftest$ac_exeext
15686 if { (ac_try="$ac_link"
15687 case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15692 $as_echo "$ac_try_echo") >&5
15693 (eval "$ac_link") 2>&5
15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15697 { (case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15702 $as_echo "$ac_try_echo") >&5
15703 (eval "$ac_try") 2>&5
15705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15708 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15709 { $as_echo "$as_me:$LINENO: result: yes" >&5
15710 $as_echo "yes" >&6; }
15713 $as_echo "$as_me: program exited with status $ac_status" >&5
15714 $as_echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15717 ( exit $ac_status )
15720 { $as_echo "$as_me:$LINENO: result: no" >&5
15721 $as_echo "no" >&6; }
15724 rm -rf conftest.dSYM
15725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15730 CFLAGS="$saved_flags"
15735 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15736 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
15738 saved_CFLAGS="$CFLAGS"
15739 CFLAGS="-fstack-check"
15740 saved_LDFLAGS="$LDFLAGS"
15741 LDFLAGS="-lpthread"
15743 if test "$cross_compiling" = yes; then
15744 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15746 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15747 See \`config.log' for more details." >&5
15748 $as_echo "$as_me: error: cannot run test program while cross compiling
15749 See \`config.log' for more details." >&2;}
15750 { (exit 1); exit 1; }; }; }
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15759 #include <pthread.h>
15760 #include <sys/resource.h>
15761 #include <unistd.h>
15762 #include <bits/local_lim.h>
15764 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15765 #define STACK_SIZE 8192
15766 #define BUFSIZE 4096
15768 void * func(void *arg)
15778 pthread_attr_t attr;
15783 setrlimit(RLIMIT_CORE, &l);
15784 pthread_attr_init(&attr);
15785 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
15786 pthread_attr_setguardsize(&attr, PAGESIZE);
15787 pthread_create(&tid, &attr, func, NULL);
15788 pthread_join(tid, NULL);
15794 rm -f conftest$ac_exeext
15795 if { (ac_try="$ac_link"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801 $as_echo "$ac_try_echo") >&5
15802 (eval "$ac_link") 2>&5
15804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15811 $as_echo "$ac_try_echo") >&5
15812 (eval "$ac_try") 2>&5
15814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; }; then
15817 { $as_echo "$as_me:$LINENO: result: no" >&5
15818 $as_echo "no" >&6; }
15821 $as_echo "$as_me: program exited with status $ac_status" >&5
15822 $as_echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ( exit $ac_status )
15828 cat >>confdefs.h <<\_ACEOF
15829 #define NPTL_GUARD_WITHIN_STACK 1
15832 { $as_echo "$as_me:$LINENO: result: yes" >&5
15833 $as_echo "yes" >&6; }
15836 rm -rf conftest.dSYM
15837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15841 CFLAGS="$saved_CFLAGS"
15842 LDFLAGS="$saved_LDFLAGS"
15848 # Check whether --with-linux was given.
15849 if test "${with_linux+set}" = set; then
15850 withval=$with_linux; kernelsrc="$withval"
15855 # Check whether --with-linux-obj was given.
15856 if test "${with_linux_obj+set}" = set; then
15857 withval=$with_linux_obj; kernelbuild="$withval"
15861 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15862 $as_echo_n "checking kernel source directory... " >&6; }
15863 if test -z "$kernelsrc"; then
15864 if test -e "/lib/modules/$(uname -r)/source"; then
15865 headersdir="/lib/modules/$(uname -r)/source"
15866 sourcelink=$(readlink -f "$headersdir")
15867 elif test -e "/lib/modules/$(uname -r)/build"; then
15868 headersdir="/lib/modules/$(uname -r)/build"
15869 sourcelink=$(readlink -f "$headersdir")
15871 sourcelink=$(ls -1d /usr/src/kernels/* \
15873 2>/dev/null | grep -v obj | tail -1)
15876 if test -n "$sourcelink" && test -e ${sourcelink}; then
15877 kernelsrc=`readlink -f ${sourcelink}`
15879 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15880 $as_echo "Not found" >&6; }
15881 { { $as_echo "$as_me:$LINENO: error:
15882 *** Please make sure the kernel devel package for your distribution
15883 *** is installed then try again. If that fails you can specify the
15884 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15885 $as_echo "$as_me: error:
15886 *** Please make sure the kernel devel package for your distribution
15887 *** is installed then try again. If that fails you can specify the
15888 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15889 { (exit 1); exit 1; }; }
15892 if test "$kernelsrc" = "NONE"; then
15897 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15898 $as_echo "$kernelsrc" >&6; }
15899 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15900 $as_echo_n "checking kernel build directory... " >&6; }
15901 if test -z "$kernelbuild"; then
15902 if test -e "/lib/modules/$(uname -r)/build"; then
15903 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15904 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15905 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15906 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15907 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15908 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15909 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15911 kernelbuild=${kernelsrc}
15914 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15915 $as_echo "$kernelbuild" >&6; }
15917 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15918 $as_echo_n "checking kernel source version... " >&6; }
15919 utsrelease1=$kernelbuild/include/linux/version.h
15920 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15921 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15922 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15923 utsrelease=linux/version.h
15924 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15925 utsrelease=linux/utsrelease.h
15926 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15927 utsrelease=generated/utsrelease.h
15930 if test "$utsrelease"; then
15931 kernsrcver=`(echo "#include <$utsrelease>";
15932 echo "kernsrcver=UTS_RELEASE") |
15933 cpp -I $kernelbuild/include |
15934 grep "^kernsrcver=" | cut -d \" -f 2`
15936 if test -z "$kernsrcver"; then
15937 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15938 $as_echo "Not found" >&6; }
15939 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15940 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15941 { (exit 1); exit 1; }; }
15944 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15945 $as_echo "Not found" >&6; }
15946 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15947 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15948 { (exit 1); exit 1; }; }
15951 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15952 $as_echo "$kernsrcver" >&6; }
15955 LINUX_OBJ=${kernelbuild}
15956 LINUX_VERSION=${kernsrcver}
15963 modpost=$LINUX/scripts/Makefile.modpost
15964 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15965 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15966 if test -f "$modpost"; then
15967 if grep -q Modules.symvers $modpost; then
15968 LINUX_SYMBOLS=Modules.symvers
15970 LINUX_SYMBOLS=Module.symvers
15973 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15974 { { $as_echo "$as_me:$LINENO: error:
15975 *** Please make sure the kernel devel package for your distribution
15976 *** is installed. If your building with a custom kernel make sure the
15977 *** kernel is configured, built, and the '--with-linux=PATH' configure
15978 *** option refers to the location of the kernel source." >&5
15979 $as_echo "$as_me: error:
15980 *** Please make sure the kernel devel package for your distribution
15981 *** is installed. If your building with a custom kernel make sure the
15982 *** kernel is configured, built, and the '--with-linux=PATH' configure
15983 *** option refers to the location of the kernel source." >&2;}
15984 { (exit 1); exit 1; }; }
15989 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15990 $as_echo "$LINUX_SYMBOLS" >&6; }
15996 # Check whether --with-spl was given.
15997 if test "${with_spl+set}" = set; then
15998 withval=$with_spl; splsrc="$withval"
16003 # Check whether --with-spl-obj was given.
16004 if test "${with_spl_obj+set}" = set; then
16005 withval=$with_spl_obj; splbuild="$withval"
16010 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16011 $as_echo_n "checking spl source directory... " >&6; }
16012 if test -z "$splsrc"; then
16013 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16014 2>/dev/null | tail -1`
16016 if test -z "$sourcelink" || test ! -e $sourcelink; then
16020 if test -e $sourcelink; then
16021 splsrc=`readlink -f ${sourcelink}`
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 spl devel package for your distribution
16027 *** is installed then try again. If that fails you can specify the
16028 *** location of the spl source with the '--with-spl=PATH' option." >&5
16029 $as_echo "$as_me: error:
16030 *** Please make sure the spl devel package for your distribution
16031 *** is installed then try again. If that fails you can specify the
16032 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16033 { (exit 1); exit 1; }; }
16036 if test "$splsrc" = "NONE"; then
16042 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16043 $as_echo "$splsrc" >&6; }
16044 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16045 $as_echo_n "checking spl build directory... " >&6; }
16046 if test -z "$splbuild"; then
16049 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16050 $as_echo "$splbuild" >&6; }
16052 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16053 $as_echo_n "checking spl source version... " >&6; }
16054 if test -r $splbuild/spl_config.h &&
16055 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16057 splsrcver=`(echo "#include <spl_config.h>";
16058 echo "splsrcver=SPL_META_VERSION") |
16060 grep "^splsrcver=" | cut -d \" -f 2`
16063 if test -z "$splsrcver"; then
16064 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16065 $as_echo "Not found" >&6; }
16066 { { $as_echo "$as_me:$LINENO: error:
16067 *** Cannot determine the version of the spl source.
16068 *** Please prepare the spl source before running this script" >&5
16069 $as_echo "$as_me: error:
16070 *** Cannot determine the version of the spl source.
16071 *** Please prepare the spl source before running this script" >&2;}
16072 { (exit 1); exit 1; }; }
16075 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16076 $as_echo "$splsrcver" >&6; }
16079 SPL_OBJ=${splbuild}
16080 SPL_VERSION=${splsrcver}
16087 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16088 $as_echo_n "checking spl file name for module symbols... " >&6; }
16089 if test -r $SPL_OBJ/Module.symvers; then
16090 SPL_SYMBOLS=Module.symvers
16091 elif test -r $SPL_OBJ/Modules.symvers; then
16092 SPL_SYMBOLS=Modules.symvers
16093 elif test -r $SPL_OBJ/module/Module.symvers; then
16094 SPL_SYMBOLS=Module.symvers
16095 elif test -r $SPL_OBJ/module/Modules.symvers; then
16096 SPL_SYMBOLS=Modules.symvers
16098 SPL_SYMBOLS=$LINUX_SYMBOLS
16101 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16102 $as_echo "$SPL_SYMBOLS" >&6; }
16108 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16109 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16112 cat confdefs.h - <<_ACEOF >conftest.c
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16120 #ifndef AUTOCONF_INCLUDED
16121 #include <linux/config.h>
16128 #ifndef CONFIG_PREEMPT
16129 #error CONFIG_PREEMPT not #defined
16139 rm -Rf build && mkdir -p build
16140 echo "obj-m := conftest.o" >build/Makefile
16141 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16153 { $as_echo "$as_me:$LINENO: result: yes" >&5
16154 $as_echo "yes" >&6; }
16155 { { $as_echo "$as_me:$LINENO: error:
16156 *** Kernel built with CONFIG_PREEMPT which is not supported.
16157 ** You must rebuild your kernel without this option." >&5
16158 $as_echo "$as_me: error:
16159 *** Kernel built with CONFIG_PREEMPT which is not supported.
16160 ** You must rebuild your kernel without this option." >&2;}
16161 { (exit 1); exit 1; }; }
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 { $as_echo "$as_me:$LINENO: result: no" >&5
16168 $as_echo "no" >&6; }
16180 if test "$ZFS_META_LICENSE" = CDDL; then
16181 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16182 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16185 cat confdefs.h - <<_ACEOF >conftest.c
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16193 #ifndef AUTOCONF_INCLUDED
16194 #include <linux/config.h>
16201 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16202 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16212 rm -Rf build && mkdir -p build
16213 echo "obj-m := conftest.o" >build/Makefile
16214 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16226 { $as_echo "$as_me:$LINENO: result: yes" >&5
16227 $as_echo "yes" >&6; }
16228 { { $as_echo "$as_me:$LINENO: error:
16229 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16230 *** incompatible with the CDDL license. You must rebuild
16231 *** your kernel without this option." >&5
16232 $as_echo "$as_me: error:
16233 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16234 *** incompatible with the CDDL license. You must rebuild
16235 *** your kernel without this option." >&2;}
16236 { (exit 1); exit 1; }; }
16239 $as_echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 { $as_echo "$as_me:$LINENO: result: no" >&5
16243 $as_echo "no" >&6; }
16256 if test "$ZFS_META_LICENSE" = GPL; then
16258 cat >>confdefs.h <<\_ACEOF
16259 #define HAVE_GPL_ONLY_SYMBOLS 1
16265 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16266 $as_echo_n "checking block device operation prototypes... " >&6; }
16269 cat confdefs.h - <<_ACEOF >conftest.c
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16277 #include <linux/blkdev.h>
16283 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16284 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16285 int (*blk_ioctl) (struct block_device *, fmode_t,
16286 unsigned, unsigned long) = NULL;
16287 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16288 unsigned, unsigned long) = NULL;
16289 struct block_device_operations blk_ops = {
16291 .release = blk_release,
16292 .ioctl = blk_ioctl,
16293 .compat_ioctl = blk_compat_ioctl,
16296 blk_ops.open(NULL, 0);
16297 blk_ops.release(NULL, 0);
16298 blk_ops.ioctl(NULL, 0, 0, 0);
16299 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16308 rm -Rf build && mkdir -p build
16309 echo "obj-m := conftest.o" >build/Makefile
16310 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16322 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16323 $as_echo "struct block_device" >&6; }
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16331 $as_echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16335 $as_echo "struct inode" >&6; }
16345 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16346 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16349 cat confdefs.h - <<_ACEOF >conftest.c
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16357 #include <linux/types.h>
16372 rm -Rf build && mkdir -p build
16373 echo "obj-m := conftest.o" >build/Makefile
16374 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381 (eval $ac_try) 2>&5
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; }; then
16386 { $as_echo "$as_me:$LINENO: result: yes" >&5
16387 $as_echo "yes" >&6; }
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_FMODE_T 1
16395 $as_echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16398 { $as_echo "$as_me:$LINENO: result: no" >&5
16399 $as_echo "no" >&6; }
16410 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16411 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16414 cat confdefs.h - <<_ACEOF >conftest.c
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16422 #include <linux/kobject.h>
16429 val = KOBJ_NAME_LEN;
16438 rm -Rf build && mkdir -p build
16439 echo "obj-m := conftest.o" >build/Makefile
16440 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447 (eval $ac_try) 2>&5
16449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); }; }; then
16452 { $as_echo "$as_me:$LINENO: result: yes" >&5
16453 $as_echo "yes" >&6; }
16455 cat >>confdefs.h <<\_ACEOF
16456 #define HAVE_KOBJ_NAME_LEN 1
16461 $as_echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16464 { $as_echo "$as_me:$LINENO: result: no" >&5
16465 $as_echo "no" >&6; }
16476 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16477 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16478 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16479 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16481 if test $rc -ne 0; then
16483 for file in fs/block_dev.c; do
16484 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16486 if test $rc -eq 0; then
16491 if test $export -eq 0; then
16492 { $as_echo "$as_me:$LINENO: result: no" >&5
16493 $as_echo "no" >&6; }
16496 { $as_echo "$as_me:$LINENO: result: yes" >&5
16497 $as_echo "yes" >&6; }
16499 cat >>confdefs.h <<\_ACEOF
16500 #define HAVE_BLKDEV_GET_BY_PATH 1
16505 { $as_echo "$as_me:$LINENO: result: yes" >&5
16506 $as_echo "yes" >&6; }
16508 cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_BLKDEV_GET_BY_PATH 1
16516 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16517 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16518 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16519 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16521 if test $rc -ne 0; then
16523 for file in fs/block_dev.c; do
16524 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16526 if test $rc -eq 0; then
16531 if test $export -eq 0; then
16532 { $as_echo "$as_me:$LINENO: result: no" >&5
16533 $as_echo "no" >&6; }
16536 { $as_echo "$as_me:$LINENO: result: yes" >&5
16537 $as_echo "yes" >&6; }
16539 cat >>confdefs.h <<\_ACEOF
16540 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16545 { $as_echo "$as_me:$LINENO: result: yes" >&5
16546 $as_echo "yes" >&6; }
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16556 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16557 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16560 cat confdefs.h - <<_ACEOF >conftest.c
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16568 #include <linux/buffer_head.h>
16574 struct block_device *bdev;
16575 invalidate_bdev(bdev);
16584 rm -Rf build && mkdir -p build
16585 echo "obj-m := conftest.o" >build/Makefile
16586 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16598 { $as_echo "$as_me:$LINENO: result: yes" >&5
16599 $as_echo "yes" >&6; }
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_1ARG_INVALIDATE_BDEV 1
16607 $as_echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 { $as_echo "$as_me:$LINENO: result: no" >&5
16611 $as_echo "no" >&6; }
16622 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16623 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16626 cat confdefs.h - <<_ACEOF >conftest.c
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16634 #include <linux/blkdev.h>
16640 struct block_device *bdev = NULL;
16641 bdev_logical_block_size(bdev);
16650 rm -Rf build && mkdir -p build
16651 echo "obj-m := conftest.o" >build/Makefile
16652 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16664 { $as_echo "$as_me:$LINENO: result: yes" >&5
16665 $as_echo "yes" >&6; }
16667 cat >>confdefs.h <<\_ACEOF
16668 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16673 $as_echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16676 { $as_echo "$as_me:$LINENO: result: no" >&5
16677 $as_echo "no" >&6; }
16688 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16689 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16690 EXTRA_KCFLAGS="-Werror"
16693 cat confdefs.h - <<_ACEOF >conftest.c
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16701 #include <linux/bio.h>
16708 (void)bio_empty_barrier(&bio);
16717 rm -Rf build && mkdir -p build
16718 echo "obj-m := conftest.o" >build/Makefile
16719 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; }; then
16731 { $as_echo "$as_me:$LINENO: result: yes" >&5
16732 $as_echo "yes" >&6; }
16734 cat >>confdefs.h <<\_ACEOF
16735 #define HAVE_BIO_EMPTY_BARRIER 1
16740 $as_echo "$as_me: failed program was:" >&5
16741 sed 's/^/| /' conftest.$ac_ext >&5
16743 { $as_echo "$as_me:$LINENO: result: no" >&5
16744 $as_echo "no" >&6; }
16755 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16756 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16759 cat confdefs.h - <<_ACEOF >conftest.c
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16767 #include <linux/bio.h>
16774 flags = (1 << BIO_RW_FAILFAST);
16783 rm -Rf build && mkdir -p build
16784 echo "obj-m := conftest.o" >build/Makefile
16785 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792 (eval $ac_try) 2>&5
16794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); }; }; then
16797 { $as_echo "$as_me:$LINENO: result: yes" >&5
16798 $as_echo "yes" >&6; }
16800 cat >>confdefs.h <<\_ACEOF
16801 #define HAVE_BIO_RW_FAILFAST 1
16806 $as_echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 { $as_echo "$as_me:$LINENO: result: no" >&5
16810 $as_echo "no" >&6; }
16821 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16822 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16825 cat confdefs.h - <<_ACEOF >conftest.c
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16833 #include <linux/bio.h>
16840 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16841 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16842 (1 << BIO_RW_FAILFAST_DRIVER));
16851 rm -Rf build && mkdir -p build
16852 echo "obj-m := conftest.o" >build/Makefile
16853 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16865 { $as_echo "$as_me:$LINENO: result: yes" >&5
16866 $as_echo "yes" >&6; }
16868 cat >>confdefs.h <<\_ACEOF
16869 #define HAVE_BIO_RW_FAILFAST_DTD 1
16874 $as_echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 { $as_echo "$as_me:$LINENO: result: no" >&5
16878 $as_echo "no" >&6; }
16889 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16890 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16893 cat confdefs.h - <<_ACEOF >conftest.c
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16901 #include <linux/bio.h>
16908 flags = REQ_FAILFAST_MASK;
16917 rm -Rf build && mkdir -p build
16918 echo "obj-m := conftest.o" >build/Makefile
16919 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16921 (eval $ac_try) 2>&5
16923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926 (eval $ac_try) 2>&5
16928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
16931 { $as_echo "$as_me:$LINENO: result: yes" >&5
16932 $as_echo "yes" >&6; }
16934 cat >>confdefs.h <<\_ACEOF
16935 #define HAVE_BIO_REQ_FAILFAST_MASK 1
16940 $as_echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 { $as_echo "$as_me:$LINENO: result: no" >&5
16944 $as_echo "no" >&6; }
16955 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
16956 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
16957 tmp_flags="$EXTRA_KCFLAGS"
16958 EXTRA_KCFLAGS="-Werror"
16961 cat confdefs.h - <<_ACEOF >conftest.c
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16969 #include <linux/bio.h>
16975 void (*wanted_end_io)(struct bio *, int) = NULL;
16976 bio_end_io_t *local_end_io;
16978 local_end_io = wanted_end_io;
16987 rm -Rf build && mkdir -p build
16988 echo "obj-m := conftest.o" >build/Makefile
16989 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991 (eval $ac_try) 2>&5
16993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17001 { $as_echo "$as_me:$LINENO: result: yes" >&5
17002 $as_echo "yes" >&6; }
17004 cat >>confdefs.h <<\_ACEOF
17005 #define HAVE_2ARGS_BIO_END_IO_T 1
17010 $as_echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17013 { $as_echo "$as_me:$LINENO: result: no" >&5
17014 $as_echo "no" >&6; }
17023 EXTRA_KCFLAGS="$tmp_flags"
17026 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
17027 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17030 cat confdefs.h - <<_ACEOF >conftest.c
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17038 #include <linux/bio.h>
17045 flags = BIO_RW_SYNC;
17054 rm -Rf build && mkdir -p build
17055 echo "obj-m := conftest.o" >build/Makefile
17056 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17068 { $as_echo "$as_me:$LINENO: result: yes" >&5
17069 $as_echo "yes" >&6; }
17071 cat >>confdefs.h <<\_ACEOF
17072 #define HAVE_BIO_RW_SYNC 1
17077 $as_echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 { $as_echo "$as_me:$LINENO: result: no" >&5
17081 $as_echo "no" >&6; }
17092 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17093 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17096 cat confdefs.h - <<_ACEOF >conftest.c
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17104 #include <linux/bio.h>
17111 flags = BIO_RW_SYNCIO;
17120 rm -Rf build && mkdir -p build
17121 echo "obj-m := conftest.o" >build/Makefile
17122 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129 (eval $ac_try) 2>&5
17131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); }; }; then
17134 { $as_echo "$as_me:$LINENO: result: yes" >&5
17135 $as_echo "yes" >&6; }
17137 cat >>confdefs.h <<\_ACEOF
17138 #define HAVE_BIO_RW_SYNCIO 1
17143 $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17146 { $as_echo "$as_me:$LINENO: result: no" >&5
17147 $as_echo "no" >&6; }
17158 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17159 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17162 cat confdefs.h - <<_ACEOF >conftest.c
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17170 #include <linux/bio.h>
17186 rm -Rf build && mkdir -p build
17187 echo "obj-m := conftest.o" >build/Makefile
17188 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17200 { $as_echo "$as_me:$LINENO: result: yes" >&5
17201 $as_echo "yes" >&6; }
17203 cat >>confdefs.h <<\_ACEOF
17204 #define HAVE_REQ_SYNC 1
17209 $as_echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17212 { $as_echo "$as_me:$LINENO: result: no" >&5
17213 $as_echo "no" >&6; }
17224 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17225 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17228 cat confdefs.h - <<_ACEOF >conftest.c
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17236 #include <linux/blkdev.h>
17242 struct request *req = NULL;
17243 (void) blk_end_request(req, 0, 0);
17252 rm -Rf build && mkdir -p build
17253 echo "obj-m := conftest.o" >build/Makefile
17254 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17266 { $as_echo "$as_me:$LINENO: result: yes" >&5
17267 $as_echo "yes" >&6; }
17269 cat >>confdefs.h <<\_ACEOF
17270 #define HAVE_BLK_END_REQUEST 1
17275 $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 { $as_echo "$as_me:$LINENO: result: no" >&5
17279 $as_echo "no" >&6; }
17289 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17290 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17293 cat confdefs.h - <<_ACEOF >conftest.c
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17301 #include <linux/module.h>
17302 #include <linux/blkdev.h>
17304 MODULE_LICENSE("CDDL");
17310 struct request *req = NULL;
17311 (void) blk_end_request(req, 0, 0);
17320 rm -Rf build && mkdir -p build
17321 echo "obj-m := conftest.o" >build/Makefile
17322 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17334 { $as_echo "$as_me:$LINENO: result: no" >&5
17335 $as_echo "no" >&6; }
17338 $as_echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 { $as_echo "$as_me:$LINENO: result: yes" >&5
17342 $as_echo "yes" >&6; }
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17358 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17359 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17362 cat confdefs.h - <<_ACEOF >conftest.c
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17370 #include <linux/blkdev.h>
17376 struct request_queue *q = NULL;
17377 (void) blk_fetch_request(q);
17386 rm -Rf build && mkdir -p build
17387 echo "obj-m := conftest.o" >build/Makefile
17388 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17390 (eval $ac_try) 2>&5
17392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17400 { $as_echo "$as_me:$LINENO: result: yes" >&5
17401 $as_echo "yes" >&6; }
17403 cat >>confdefs.h <<\_ACEOF
17404 #define HAVE_BLK_FETCH_REQUEST 1
17409 $as_echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 { $as_echo "$as_me:$LINENO: result: no" >&5
17413 $as_echo "no" >&6; }
17424 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17425 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17428 cat confdefs.h - <<_ACEOF >conftest.c
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17436 #include <linux/blkdev.h>
17442 struct request_queue *q = NULL;
17443 struct request *req = NULL;
17444 blk_requeue_request(q, req);
17453 rm -Rf build && mkdir -p build
17454 echo "obj-m := conftest.o" >build/Makefile
17455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17467 { $as_echo "$as_me:$LINENO: result: yes" >&5
17468 $as_echo "yes" >&6; }
17470 cat >>confdefs.h <<\_ACEOF
17471 #define HAVE_BLK_REQUEUE_REQUEST 1
17476 $as_echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 { $as_echo "$as_me:$LINENO: result: no" >&5
17480 $as_echo "no" >&6; }
17491 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17492 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17495 cat confdefs.h - <<_ACEOF >conftest.c
17498 cat confdefs.h >>conftest.$ac_ext
17499 cat >>conftest.$ac_ext <<_ACEOF
17500 /* end confdefs.h. */
17503 #include <linux/blkdev.h>
17509 struct request *req = NULL;
17510 (void) blk_rq_bytes(req);
17519 rm -Rf build && mkdir -p build
17520 echo "obj-m := conftest.o" >build/Makefile
17521 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17533 { $as_echo "$as_me:$LINENO: result: yes" >&5
17534 $as_echo "yes" >&6; }
17536 cat >>confdefs.h <<\_ACEOF
17537 #define HAVE_BLK_RQ_BYTES 1
17542 $as_echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17545 { $as_echo "$as_me:$LINENO: result: no" >&5
17546 $as_echo "no" >&6; }
17556 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17557 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17560 cat confdefs.h - <<_ACEOF >conftest.c
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17568 #include <linux/module.h>
17569 #include <linux/blkdev.h>
17571 MODULE_LICENSE("CDDL");
17577 struct request *req = NULL;
17578 (void) blk_rq_bytes(req);
17587 rm -Rf build && mkdir -p build
17588 echo "obj-m := conftest.o" >build/Makefile
17589 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17601 { $as_echo "$as_me:$LINENO: result: no" >&5
17602 $as_echo "no" >&6; }
17605 $as_echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17608 { $as_echo "$as_me:$LINENO: result: yes" >&5
17609 $as_echo "yes" >&6; }
17611 cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17625 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17626 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17629 cat confdefs.h - <<_ACEOF >conftest.c
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17637 #include <linux/blkdev.h>
17643 struct request *req = NULL;
17644 (void) blk_rq_pos(req);
17653 rm -Rf build && mkdir -p build
17654 echo "obj-m := conftest.o" >build/Makefile
17655 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17667 { $as_echo "$as_me:$LINENO: result: yes" >&5
17668 $as_echo "yes" >&6; }
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_BLK_RQ_POS 1
17676 $as_echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 { $as_echo "$as_me:$LINENO: result: no" >&5
17680 $as_echo "no" >&6; }
17691 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17692 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17695 cat confdefs.h - <<_ACEOF >conftest.c
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17703 #include <linux/blkdev.h>
17709 struct request *req = NULL;
17710 (void) blk_rq_sectors(req);
17719 rm -Rf build && mkdir -p build
17720 echo "obj-m := conftest.o" >build/Makefile
17721 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17733 { $as_echo "$as_me:$LINENO: result: yes" >&5
17734 $as_echo "yes" >&6; }
17736 cat >>confdefs.h <<\_ACEOF
17737 #define HAVE_BLK_RQ_SECTORS 1
17742 $as_echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 { $as_echo "$as_me:$LINENO: result: no" >&5
17746 $as_echo "no" >&6; }
17757 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17758 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17761 cat confdefs.h - <<_ACEOF >conftest.c
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h. */
17769 #include <linux/blkdev.h>
17775 struct gendisk *disk = NULL;
17776 (void) get_disk_ro(disk);
17785 rm -Rf build && mkdir -p build
17786 echo "obj-m := conftest.o" >build/Makefile
17787 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17799 { $as_echo "$as_me:$LINENO: result: yes" >&5
17800 $as_echo "yes" >&6; }
17802 cat >>confdefs.h <<\_ACEOF
17803 #define HAVE_GET_DISK_RO 1
17808 $as_echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 { $as_echo "$as_me:$LINENO: result: no" >&5
17812 $as_echo "no" >&6; }
17823 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
17824 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
17827 cat confdefs.h - <<_ACEOF >conftest.c
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17835 #include <linux/blkdev.h>
17841 struct request *req = NULL;
17842 (void) rq_is_sync(req);
17851 rm -Rf build && mkdir -p build
17852 echo "obj-m := conftest.o" >build/Makefile
17853 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17860 (eval $ac_try) 2>&5
17862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
17865 { $as_echo "$as_me:$LINENO: result: yes" >&5
17866 $as_echo "yes" >&6; }
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_RQ_IS_SYNC 1
17874 $as_echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 { $as_echo "$as_me:$LINENO: result: no" >&5
17878 $as_echo "no" >&6; }
17889 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
17890 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
17893 cat confdefs.h - <<_ACEOF >conftest.c
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17901 #include <linux/blkdev.h>
17907 struct bio_vec *bv;
17908 struct req_iterator iter;
17909 struct request *req = NULL;
17910 rq_for_each_segment(bv, req, iter) { }
17919 rm -Rf build && mkdir -p build
17920 echo "obj-m := conftest.o" >build/Makefile
17921 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17933 { $as_echo "$as_me:$LINENO: result: yes" >&5
17934 $as_echo "yes" >&6; }
17936 cat >>confdefs.h <<\_ACEOF
17937 #define HAVE_RQ_FOR_EACH_SEGMENT 1
17942 $as_echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17945 { $as_echo "$as_me:$LINENO: result: no" >&5
17946 $as_echo "no" >&6; }
17956 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
17957 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
17960 cat confdefs.h - <<_ACEOF >conftest.c
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17968 #include <linux/fs.h>
17969 #include <linux/xattr.h>
17971 const struct xattr_handler xattr_test_handler = {
17977 const struct xattr_handler *xattr_handlers[] = {
17978 &xattr_test_handler,
17985 struct super_block sb;
17987 sb.s_xattr = xattr_handlers;
17996 rm -Rf build && mkdir -p build
17997 echo "obj-m := conftest.o" >build/Makefile
17998 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; }; then
18010 { $as_echo "$as_me:$LINENO: result: yes" >&5
18011 $as_echo "yes" >&6; }
18013 cat >>confdefs.h <<\_ACEOF
18014 #define HAVE_CONST_XATTR_HANDLER 1
18019 $as_echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 { $as_echo "$as_me:$LINENO: result: no" >&5
18023 $as_echo "no" >&6; }
18034 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18035 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18038 cat confdefs.h - <<_ACEOF >conftest.c
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18046 #include <linux/xattr.h>
18052 int (*get)(struct dentry *dentry, const char *name,
18053 void *buffer, size_t size, int handler_flags) = NULL;
18054 struct xattr_handler xops;
18065 rm -Rf build && mkdir -p build
18066 echo "obj-m := conftest.o" >build/Makefile
18067 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074 (eval $ac_try) 2>&5
18076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); }; }; then
18079 { $as_echo "$as_me:$LINENO: result: yes" >&5
18080 $as_echo "yes" >&6; }
18082 cat >>confdefs.h <<\_ACEOF
18083 #define HAVE_DENTRY_XATTR_GET 1
18088 $as_echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.$ac_ext >&5
18091 { $as_echo "$as_me:$LINENO: result: no" >&5
18092 $as_echo "no" >&6; }
18103 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18104 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18107 cat confdefs.h - <<_ACEOF >conftest.c
18110 cat confdefs.h >>conftest.$ac_ext
18111 cat >>conftest.$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18115 #include <linux/xattr.h>
18121 int (*set)(struct dentry *dentry, const char *name,
18122 const void *buffer, size_t size, int flags,
18123 int handler_flags) = NULL;
18124 struct xattr_handler xops;
18135 rm -Rf build && mkdir -p build
18136 echo "obj-m := conftest.o" >build/Makefile
18137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18149 { $as_echo "$as_me:$LINENO: result: yes" >&5
18150 $as_echo "yes" >&6; }
18152 cat >>confdefs.h <<\_ACEOF
18153 #define HAVE_DENTRY_XATTR_SET 1
18158 $as_echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 { $as_echo "$as_me:$LINENO: result: no" >&5
18162 $as_echo "no" >&6; }
18173 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18174 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18177 cat confdefs.h - <<_ACEOF >conftest.c
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18185 #include <linux/fs.h>
18191 int (*fsync) (struct file *, int datasync) = NULL;
18192 struct file_operations fops;
18194 fops.fsync = fsync;
18203 rm -Rf build && mkdir -p build
18204 echo "obj-m := conftest.o" >build/Makefile
18205 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18217 { $as_echo "$as_me:$LINENO: result: yes" >&5
18218 $as_echo "yes" >&6; }
18220 cat >>confdefs.h <<\_ACEOF
18221 #define HAVE_2ARGS_FSYNC 1
18226 $as_echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 { $as_echo "$as_me:$LINENO: result: no" >&5
18230 $as_echo "no" >&6; }
18241 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18242 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18245 cat confdefs.h - <<_ACEOF >conftest.c
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h. */
18253 #include <linux/fs.h>
18259 void (*evict_inode) (struct inode *) = NULL;
18260 struct super_operations sops;
18262 sops.evict_inode = evict_inode;
18271 rm -Rf build && mkdir -p build
18272 echo "obj-m := conftest.o" >build/Makefile
18273 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18285 { $as_echo "$as_me:$LINENO: result: yes" >&5
18286 $as_echo "yes" >&6; }
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_EVICT_INODE 1
18294 $as_echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18297 { $as_echo "$as_me:$LINENO: result: no" >&5
18298 $as_echo "no" >&6; }
18309 if test "$LINUX_OBJ" != "$LINUX"; then
18310 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18315 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18316 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18322 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18323 $as_echo_n "checking for target asm dir... " >&6; }
18324 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18326 case $TARGET_ARCH in
18328 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18331 TARGET_ASM_DIR=asm-generic
18336 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18337 $as_echo "$TARGET_ASM_DIR" >&6; }
18340 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18341 $as_echo_n "checking for ioctl()... " >&6; }
18342 cat >conftest.$ac_ext <<_ACEOF
18345 cat confdefs.h >>conftest.$ac_ext
18346 cat >>conftest.$ac_ext <<_ACEOF
18347 /* end confdefs.h. */
18348 #include <unistd.h>
18351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18352 $EGREP "ioctl" >/dev/null 2>&1; then
18359 cat >conftest.$ac_ext <<_ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h. */
18365 #include <sys/ioctl.h>
18368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18369 $EGREP "ioctl" >/dev/null 2>&1; then
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <stropts.h>
18385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18386 $EGREP "ioctl" >/dev/null 2>&1; then
18394 if test $is_unistd = yes; then
18397 cat >>confdefs.h <<\_ACEOF
18398 #define HAVE_IOCTL_IN_UNISTD_H 1
18403 if test $is_sys_ioctl = yes; then
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18410 elif test $is_stropts = yes; then
18412 cat >>confdefs.h <<\_ACEOF
18413 #define HAVE_IOCTL_IN_STROPTS_H 1
18421 if test $result = no; then
18422 { $as_echo "$as_me:$LINENO: result: no" >&5
18423 $as_echo "no" >&6; }
18424 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18425 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18426 { (exit 1); exit 1; }; }
18428 { $as_echo "$as_me:$LINENO: result: yes" >&5
18429 $as_echo "yes" >&6; }
18435 if test "${ac_cv_header_zlib_h+set}" = set; then
18436 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18437 $as_echo_n "checking for zlib.h... " >&6; }
18438 if test "${ac_cv_header_zlib_h+set}" = set; then
18439 $as_echo_n "(cached) " >&6
18441 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18442 $as_echo "$ac_cv_header_zlib_h" >&6; }
18444 # Is the header compilable?
18445 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18446 $as_echo_n "checking zlib.h usability... " >&6; }
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 $ac_includes_default
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18463 $as_echo "$ac_try_echo") >&5
18464 (eval "$ac_compile") 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } && {
18471 test -z "$ac_c_werror_flag" ||
18472 test ! -s conftest.err
18473 } && test -s conftest.$ac_objext; then
18474 ac_header_compiler=yes
18476 $as_echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18479 ac_header_compiler=no
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18484 $as_echo "$ac_header_compiler" >&6; }
18486 # Is the header present?
18487 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18488 $as_echo_n "checking zlib.h presence... " >&6; }
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18497 if { (ac_try="$ac_cpp conftest.$ac_ext"
18498 case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18503 $as_echo "$ac_try_echo") >&5
18504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18506 grep -v '^ *+' conftest.er1 >conftest.err
18508 cat conftest.err >&5
18509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510 (exit $ac_status); } >/dev/null && {
18511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18512 test ! -s conftest.err
18514 ac_header_preproc=yes
18516 $as_echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18519 ac_header_preproc=no
18522 rm -f conftest.err conftest.$ac_ext
18523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18524 $as_echo "$ac_header_preproc" >&6; }
18526 # So? What about this header?
18527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18529 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18530 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18531 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18532 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18533 ac_header_preproc=yes
18536 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18537 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18538 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18539 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18540 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18541 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18542 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18543 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18544 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18545 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18546 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18547 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18551 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18552 $as_echo_n "checking for zlib.h... " >&6; }
18553 if test "${ac_cv_header_zlib_h+set}" = set; then
18554 $as_echo_n "(cached) " >&6
18556 ac_cv_header_zlib_h=$ac_header_preproc
18558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18559 $as_echo "$ac_cv_header_zlib_h" >&6; }
18562 if test "x$ac_cv_header_zlib_h" = x""yes; then
18565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18567 { { $as_echo "$as_me:$LINENO: error:
18568 *** zlib.h missing, zlib-devel package required
18569 See \`config.log' for more details." >&5
18570 $as_echo "$as_me: error:
18571 *** zlib.h missing, zlib-devel package required
18572 See \`config.log' for more details." >&2;}
18573 { (exit 1); exit 1; }; }; }
18579 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18580 $as_echo_n "checking for compress2 in -lz... " >&6; }
18581 if test "${ac_cv_lib_z_compress2+set}" = set; then
18582 $as_echo_n "(cached) " >&6
18584 ac_check_lib_save_LIBS=$LIBS
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18603 return compress2 ();
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18615 $as_echo "$ac_try_echo") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest$ac_exeext && {
18626 test "$cross_compiling" = yes ||
18627 $as_test_x conftest$ac_exeext
18629 ac_cv_lib_z_compress2=yes
18631 $as_echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18634 ac_cv_lib_z_compress2=no
18637 rm -rf conftest.dSYM
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639 conftest$ac_exeext conftest.$ac_ext
18640 LIBS=$ac_check_lib_save_LIBS
18642 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18643 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18644 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_LIBZ 1
18652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18654 { { $as_echo "$as_me:$LINENO: error:
18655 *** compress2() missing, zlib-devel package required
18656 See \`config.log' for more details." >&5
18657 $as_echo "$as_me: error:
18658 *** compress2() missing, zlib-devel package required
18659 See \`config.log' for more details." >&2;}
18660 { (exit 1); exit 1; }; }; }
18665 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18666 $as_echo_n "checking for uncompress in -lz... " >&6; }
18667 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18668 $as_echo_n "(cached) " >&6
18670 ac_check_lib_save_LIBS=$LIBS
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18685 char uncompress ();
18689 return uncompress ();
18694 rm -f conftest.$ac_objext conftest$ac_exeext
18695 if { (ac_try="$ac_link"
18696 case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18701 $as_echo "$ac_try_echo") >&5
18702 (eval "$ac_link") 2>conftest.er1
18704 grep -v '^ *+' conftest.er1 >conftest.err
18706 cat conftest.err >&5
18707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); } && {
18709 test -z "$ac_c_werror_flag" ||
18710 test ! -s conftest.err
18711 } && test -s conftest$ac_exeext && {
18712 test "$cross_compiling" = yes ||
18713 $as_test_x conftest$ac_exeext
18715 ac_cv_lib_z_uncompress=yes
18717 $as_echo "$as_me: failed program was:" >&5
18718 sed 's/^/| /' conftest.$ac_ext >&5
18720 ac_cv_lib_z_uncompress=no
18723 rm -rf conftest.dSYM
18724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18725 conftest$ac_exeext conftest.$ac_ext
18726 LIBS=$ac_check_lib_save_LIBS
18728 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18729 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18730 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18731 cat >>confdefs.h <<_ACEOF
18732 #define HAVE_LIBZ 1
18738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18740 { { $as_echo "$as_me:$LINENO: error:
18741 *** uncompress() missing, zlib-devel package required
18742 See \`config.log' for more details." >&5
18743 $as_echo "$as_me: error:
18744 *** uncompress() missing, zlib-devel package required
18745 See \`config.log' for more details." >&2;}
18746 { (exit 1); exit 1; }; }; }
18751 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
18752 $as_echo_n "checking for crc32 in -lz... " >&6; }
18753 if test "${ac_cv_lib_z_crc32+set}" = set; then
18754 $as_echo_n "(cached) " >&6
18756 ac_check_lib_save_LIBS=$LIBS
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_link") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest$ac_exeext && {
18798 test "$cross_compiling" = yes ||
18799 $as_test_x conftest$ac_exeext
18801 ac_cv_lib_z_crc32=yes
18803 $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_z_crc32=no
18809 rm -rf conftest.dSYM
18810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
18815 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18816 if test "x$ac_cv_lib_z_crc32" = x""yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_LIBZ 1
18824 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18826 { { $as_echo "$as_me:$LINENO: error:
18827 *** crc32() missing, zlib-devel package required
18828 See \`config.log' for more details." >&5
18829 $as_echo "$as_me: error:
18830 *** crc32() missing, zlib-devel package required
18831 See \`config.log' for more details." >&2;}
18832 { (exit 1); exit 1; }; }; }
18839 cat >>confdefs.h <<\_ACEOF
18840 #define HAVE_ZLIB 1
18847 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18848 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18849 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18850 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18851 $as_echo_n "(cached) " >&6
18853 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18854 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18856 # Is the header compilable?
18857 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18858 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18859 cat >conftest.$ac_ext <<_ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 $ac_includes_default
18866 #include <uuid/uuid.h>
18868 rm -f conftest.$ac_objext
18869 if { (ac_try="$ac_compile"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18875 $as_echo "$ac_try_echo") >&5
18876 (eval "$ac_compile") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest.$ac_objext; then
18886 ac_header_compiler=yes
18888 $as_echo "$as_me: failed program was:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 ac_header_compiler=no
18894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18895 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18896 $as_echo "$ac_header_compiler" >&6; }
18898 # Is the header present?
18899 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18900 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
18901 cat >conftest.$ac_ext <<_ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h. */
18907 #include <uuid/uuid.h>
18909 if { (ac_try="$ac_cpp conftest.$ac_ext"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } >/dev/null && {
18923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18926 ac_header_preproc=yes
18928 $as_echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_header_preproc=no
18934 rm -f conftest.err conftest.$ac_ext
18935 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18936 $as_echo "$ac_header_preproc" >&6; }
18938 # So? What about this header?
18939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18941 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18942 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18943 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18944 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18945 ac_header_preproc=yes
18948 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18949 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18950 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
18951 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
18952 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18953 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18954 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
18955 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
18956 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18957 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18958 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18959 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18963 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18964 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18965 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18966 $as_echo_n "(cached) " >&6
18968 ac_cv_header_uuid_uuid_h=$ac_header_preproc
18970 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18971 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18974 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18977 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18979 { { $as_echo "$as_me:$LINENO: error:
18980 *** uuid/uuid.h missing, libuuid-devel package required
18981 See \`config.log' for more details." >&5
18982 $as_echo "$as_me: error:
18983 *** uuid/uuid.h missing, libuuid-devel package required
18984 See \`config.log' for more details." >&2;}
18985 { (exit 1); exit 1; }; }; }
18991 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18992 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18993 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18994 $as_echo_n "(cached) " >&6
18996 ac_check_lib_save_LIBS=$LIBS
18997 LIBS="-luuid $LIBS"
18998 cat >conftest.$ac_ext <<_ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19005 /* Override any GCC internal prototype to avoid an error.
19006 Use char because int might match the return type of a GCC
19007 builtin and then its argument prototype would still apply. */
19011 char uuid_generate ();
19015 return uuid_generate ();
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (ac_try="$ac_link"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19027 $as_echo "$ac_try_echo") >&5
19028 (eval "$ac_link") 2>conftest.er1
19030 grep -v '^ *+' conftest.er1 >conftest.err
19032 cat conftest.err >&5
19033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } && {
19035 test -z "$ac_c_werror_flag" ||
19036 test ! -s conftest.err
19037 } && test -s conftest$ac_exeext && {
19038 test "$cross_compiling" = yes ||
19039 $as_test_x conftest$ac_exeext
19041 ac_cv_lib_uuid_uuid_generate=yes
19043 $as_echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_cv_lib_uuid_uuid_generate=no
19049 rm -rf conftest.dSYM
19050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19055 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19056 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19057 cat >>confdefs.h <<_ACEOF
19058 #define HAVE_LIBUUID 1
19061 LIBS="-luuid $LIBS"
19064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19066 { { $as_echo "$as_me:$LINENO: error:
19067 *** uuid_generate() missing, libuuid-devel package required
19068 See \`config.log' for more details." >&5
19069 $as_echo "$as_me: error:
19070 *** uuid_generate() missing, libuuid-devel package required
19071 See \`config.log' for more details." >&2;}
19072 { (exit 1); exit 1; }; }; }
19077 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19078 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19079 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19080 $as_echo_n "(cached) " >&6
19082 ac_check_lib_save_LIBS=$LIBS
19083 LIBS="-luuid $LIBS"
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19097 char uuid_is_null ();
19101 return uuid_is_null ();
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19113 $as_echo "$ac_try_echo") >&5
19114 (eval "$ac_link") 2>conftest.er1
19116 grep -v '^ *+' conftest.er1 >conftest.err
19118 cat conftest.err >&5
19119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest$ac_exeext && {
19124 test "$cross_compiling" = yes ||
19125 $as_test_x conftest$ac_exeext
19127 ac_cv_lib_uuid_uuid_is_null=yes
19129 $as_echo "$as_me: failed program was:" >&5
19130 sed 's/^/| /' conftest.$ac_ext >&5
19132 ac_cv_lib_uuid_uuid_is_null=no
19135 rm -rf conftest.dSYM
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19141 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19142 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define HAVE_LIBUUID 1
19147 LIBS="-luuid $LIBS"
19150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19152 { { $as_echo "$as_me:$LINENO: error:
19153 *** uuid_is_null() missing, libuuid-devel package required
19154 See \`config.log' for more details." >&5
19155 $as_echo "$as_me: error:
19156 *** uuid_is_null() missing, libuuid-devel package required
19157 See \`config.log' for more details." >&2;}
19158 { (exit 1); exit 1; }; }; }
19165 cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_LIBUUID 1
19172 # Check whether --with-blkid was given.
19173 if test "${with_blkid+set}" = set; then
19174 withval=$with_blkid;
19181 if test "x$with_blkid" != xno; then
19183 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19184 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19185 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19186 $as_echo_n "(cached) " >&6
19188 ac_check_lib_save_LIBS=$LIBS
19189 LIBS="-lblkid $LIBS"
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 /* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19203 char blkid_get_cache ();
19207 return blkid_get_cache ();
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (ac_try="$ac_link"
19214 case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19219 $as_echo "$ac_try_echo") >&5
19220 (eval "$ac_link") 2>conftest.er1
19222 grep -v '^ *+' conftest.er1 >conftest.err
19224 cat conftest.err >&5
19225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } && {
19227 test -z "$ac_c_werror_flag" ||
19228 test ! -s conftest.err
19229 } && test -s conftest$ac_exeext && {
19230 test "$cross_compiling" = yes ||
19231 $as_test_x conftest$ac_exeext
19233 ac_cv_lib_blkid_blkid_get_cache=yes
19235 $as_echo "$as_me: failed program was:" >&5
19236 sed 's/^/| /' conftest.$ac_ext >&5
19238 ac_cv_lib_blkid_blkid_get_cache=no
19241 rm -rf conftest.dSYM
19242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19243 conftest$ac_exeext conftest.$ac_ext
19244 LIBS=$ac_check_lib_save_LIBS
19246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19247 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19248 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19250 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19251 $as_echo_n "checking for blkid zfs support... " >&6; }
19254 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19255 >/dev/null 2>/dev/null
19256 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19257 dd of=$ZFS_DEV bs=1k count=8 \
19258 seek=132 conv=notrunc &>/dev/null \
19259 >/dev/null 2>/dev/null
19261 saved_LDFLAGS="$LDFLAGS"
19264 if test "$cross_compiling" = yes; then
19265 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19267 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19268 See \`config.log' for more details." >&5
19269 $as_echo "$as_me: error: cannot run test program while cross compiling
19270 See \`config.log' for more details." >&2;}
19271 { (exit 1); exit 1; }; }; }
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19281 #include <blkid/blkid.h>
19290 if (blkid_get_cache(&cache, NULL) < 0)
19293 value = blkid_get_tag_value(cache, "TYPE",
19296 blkid_put_cache(cache);
19300 if (strcmp(value, "zfs")) {
19302 blkid_put_cache(cache);
19307 blkid_put_cache(cache);
19313 rm -f conftest$ac_exeext
19314 if { (ac_try="$ac_link"
19315 case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19320 $as_echo "$ac_try_echo") >&5
19321 (eval "$ac_link") 2>&5
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19330 $as_echo "$ac_try_echo") >&5
19331 (eval "$ac_try") 2>&5
19333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19337 { $as_echo "$as_me:$LINENO: result: yes" >&5
19338 $as_echo "yes" >&6; }
19342 cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_LIBBLKID 1
19348 $as_echo "$as_me: program exited with status $ac_status" >&5
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ( exit $ac_status )
19355 { $as_echo "$as_me:$LINENO: result: no" >&5
19356 $as_echo "no" >&6; }
19357 if test "x$with_blkid" != xcheck; then
19358 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19360 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19361 See \`config.log' for more details." >&5
19362 $as_echo "$as_me: error: --with-blkid given but unavailable
19363 See \`config.log' for more details." >&2;}
19364 { (exit 1); exit 1; }; }; }
19369 rm -rf conftest.dSYM
19370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19375 LDFLAGS="$saved_LDFLAGS"
19379 if test "x$with_blkid" != xcheck; then
19380 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19382 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19383 See \`config.log' for more details." >&5
19384 $as_echo "$as_me: error: --with-blkid given but unavailable
19385 See \`config.log' for more details." >&2;}
19386 { (exit 1); exit 1; }; }; }
19399 # Check whether --with-selinux was given.
19400 if test "${with_selinux+set}" = set; then
19401 withval=$with_selinux;
19408 if test "x$with_selinux" != xno; then
19410 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19411 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19412 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19413 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19414 $as_echo_n "(cached) " >&6
19416 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19417 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19419 # Is the header compilable?
19420 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19421 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 $ac_includes_default
19429 #include <selinux/selinux.h>
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19438 $as_echo "$ac_try_echo") >&5
19439 (eval "$ac_compile") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest.$ac_objext; then
19449 ac_header_compiler=yes
19451 $as_echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_header_compiler=no
19457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19458 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19459 $as_echo "$ac_header_compiler" >&6; }
19461 # Is the header present?
19462 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19463 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 #include <selinux/selinux.h>
19472 if { (ac_try="$ac_cpp conftest.$ac_ext"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19478 $as_echo "$ac_try_echo") >&5
19479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19481 grep -v '^ *+' conftest.er1 >conftest.err
19483 cat conftest.err >&5
19484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } >/dev/null && {
19486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19487 test ! -s conftest.err
19489 ac_header_preproc=yes
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19494 ac_header_preproc=no
19497 rm -f conftest.err conftest.$ac_ext
19498 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19499 $as_echo "$ac_header_preproc" >&6; }
19501 # So? What about this header?
19502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19504 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19505 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19506 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19507 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19508 ac_header_preproc=yes
19511 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19512 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19513 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19514 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19515 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19516 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19517 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19518 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19519 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19520 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19521 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19522 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19526 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19527 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19528 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19529 $as_echo_n "(cached) " >&6
19531 ac_cv_header_selinux_selinux_h=$ac_header_preproc
19533 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19534 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19537 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19539 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19540 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19541 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19542 $as_echo_n "(cached) " >&6
19544 ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-lselinux $LIBS"
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 /* Override any GCC internal prototype to avoid an error.
19554 Use char because int might match the return type of a GCC
19555 builtin and then its argument prototype would still apply. */
19559 char is_selinux_enabled ();
19563 return is_selinux_enabled ();
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (ac_try="$ac_link"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19575 $as_echo "$ac_try_echo") >&5
19576 (eval "$ac_link") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1 >conftest.err
19580 cat conftest.err >&5
19581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } && {
19583 test -z "$ac_c_werror_flag" ||
19584 test ! -s conftest.err
19585 } && test -s conftest$ac_exeext && {
19586 test "$cross_compiling" = yes ||
19587 $as_test_x conftest$ac_exeext
19589 ac_cv_lib_selinux_is_selinux_enabled=yes
19591 $as_echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_lib_selinux_is_selinux_enabled=no
19597 rm -rf conftest.dSYM
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19603 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19604 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19606 LIBSELINUX="-lselinux"
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_LIBSELINUX 1
19616 if test "x$with_selinux" != xcheck; then
19617 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19619 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19620 See \`config.log' for more details." >&5
19621 $as_echo "$as_me: error: --with-selinux given but unavailable
19622 See \`config.log' for more details." >&2;}
19623 { (exit 1); exit 1; }; }; }
19633 if test "x$with_selinux" != xcheck; then
19634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19636 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19637 See \`config.log' for more details." >&5
19638 $as_echo "$as_me: error: --with-selinux given but unavailable
19639 See \`config.log' for more details." >&2;}
19640 { (exit 1); exit 1; }; }; }
19651 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19652 $as_echo_n "checking for selinux support... " >&6; }
19653 { $as_echo "$as_me:$LINENO: result: no" >&5
19654 $as_echo "no" >&6; }
19660 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19661 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19663 saved_flags="$CFLAGS"
19664 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19666 if test "$cross_compiling" = yes; then
19667 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19669 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19670 See \`config.log' for more details." >&5
19671 $as_echo "$as_me: error: cannot run test program while cross compiling
19672 See \`config.log' for more details." >&2;}
19673 { (exit 1); exit 1; }; }; }
19675 cat >conftest.$ac_ext <<_ACEOF
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19690 rm -f conftest$ac_exeext
19691 if { (ac_try="$ac_link"
19692 case "(($ac_try" in
19693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19694 *) ac_try_echo=$ac_try;;
19696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19697 $as_echo "$ac_try_echo") >&5
19698 (eval "$ac_link") 2>&5
19700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19702 { (case "(($ac_try" in
19703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704 *) ac_try_echo=$ac_try;;
19706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19707 $as_echo "$ac_try_echo") >&5
19708 (eval "$ac_try") 2>&5
19710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19713 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19714 { $as_echo "$as_me:$LINENO: result: yes" >&5
19715 $as_echo "yes" >&6; }
19718 $as_echo "$as_me: program exited with status $ac_status" >&5
19719 $as_echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19722 ( exit $ac_status )
19725 { $as_echo "$as_me:$LINENO: result: no" >&5
19726 $as_echo "no" >&6; }
19729 rm -rf conftest.dSYM
19730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19735 CFLAGS="$saved_flags"
19740 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19741 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19743 saved_CFLAGS="$CFLAGS"
19744 CFLAGS="-fstack-check"
19745 saved_LDFLAGS="$LDFLAGS"
19746 LDFLAGS="-lpthread"
19748 if test "$cross_compiling" = yes; then
19749 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19751 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19752 See \`config.log' for more details." >&5
19753 $as_echo "$as_me: error: cannot run test program while cross compiling
19754 See \`config.log' for more details." >&2;}
19755 { (exit 1); exit 1; }; }; }
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19764 #include <pthread.h>
19765 #include <sys/resource.h>
19766 #include <unistd.h>
19767 #include <bits/local_lim.h>
19769 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19770 #define STACK_SIZE 8192
19771 #define BUFSIZE 4096
19773 void * func(void *arg)
19783 pthread_attr_t attr;
19788 setrlimit(RLIMIT_CORE, &l);
19789 pthread_attr_init(&attr);
19790 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19791 pthread_attr_setguardsize(&attr, PAGESIZE);
19792 pthread_create(&tid, &attr, func, NULL);
19793 pthread_join(tid, NULL);
19799 rm -f conftest$ac_exeext
19800 if { (ac_try="$ac_link"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19806 $as_echo "$ac_try_echo") >&5
19807 (eval "$ac_link") 2>&5
19809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19811 { (case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19816 $as_echo "$ac_try_echo") >&5
19817 (eval "$ac_try") 2>&5
19819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19822 { $as_echo "$as_me:$LINENO: result: no" >&5
19823 $as_echo "no" >&6; }
19826 $as_echo "$as_me: program exited with status $ac_status" >&5
19827 $as_echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 ( exit $ac_status )
19833 cat >>confdefs.h <<\_ACEOF
19834 #define NPTL_GUARD_WITHIN_STACK 1
19837 { $as_echo "$as_me:$LINENO: result: yes" >&5
19838 $as_echo "yes" >&6; }
19841 rm -rf conftest.dSYM
19842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19846 CFLAGS="$saved_CFLAGS"
19847 LDFLAGS="$saved_LDFLAGS"
19852 { $as_echo "$as_me:$LINENO: result: Error!" >&5
19853 $as_echo "Error!" >&6; }
19854 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19855 user kernel|user|all|srpm" >&5
19856 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19857 user kernel|user|all|srpm" >&2;}
19858 { (exit 1); exit 1; }; } ;;
19861 if test "$ZFS_CONFIG" = user ||
19862 test "$ZFS_CONFIG" = all; then
19864 CONFIG_USER_FALSE='#'
19866 CONFIG_USER_TRUE='#'
19870 if test "$ZFS_CONFIG" = kernel ||
19871 test "$ZFS_CONFIG" = all; then
19872 CONFIG_KERNEL_TRUE=
19873 CONFIG_KERNEL_FALSE='#'
19875 CONFIG_KERNEL_TRUE='#'
19876 CONFIG_KERNEL_FALSE=
19881 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19882 $as_echo_n "checking whether debugging is enabled... " >&6; }
19883 # Check whether --enable-debug was given.
19884 if test "${enable_debug+set}" = set; then
19885 enableval=$enable_debug;
19891 if test "x$enable_debug" = xyes; then
19893 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
19894 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
19895 DEBUG_CFLAGS="-DDEBUG -Werror"
19896 DEBUG_STACKFLAGS="-fstack-check"
19900 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
19901 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
19902 DEBUG_CFLAGS="-DNDEBUG"
19903 DEBUG_STACKFLAGS=""
19910 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
19911 $as_echo "$enable_debug" >&6; }
19914 ac_config_files="$ac_config_files Makefile etc/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"
19917 cat >confcache <<\_ACEOF
19918 # This file is a shell script that caches the results of configure
19919 # tests run on this system so they can be shared between configure
19920 # scripts and configure runs, see configure's option --config-cache.
19921 # It is not useful on other systems. If it contains results you don't
19922 # want to keep, you may remove or edit it.
19924 # config.status only pays attention to the cache file if you give it
19925 # the --recheck option to rerun configure.
19927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19929 # following values.
19933 # The following way of writing the cache mishandles newlines in values,
19934 # but we know of no workaround that is simple, portable, and efficient.
19935 # So, we kill variables containing newlines.
19936 # Ultrix sh set writes to stderr and can't be redirected directly,
19937 # and sets the high bit in the cache file unless we assign to the vars.
19939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19940 eval ac_val=\$$ac_var
19944 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19948 _ | IFS | as_nl) ;; #(
19949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19950 *) $as_unset $ac_var ;;
19956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19957 *${as_nl}ac_space=\ *)
19958 # `set' does not quote correctly, so add quotes (double-quote
19959 # substitution turns \\\\ into \\, and sed turns \\ into \).
19962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19965 # `set' quotes correctly as required by POSIX, so do not add quotes.
19966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19980 if test -w "$cache_file"; then
19981 test "x$cache_file" != "x/dev/null" &&
19982 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19983 $as_echo "$as_me: updating cache $cache_file" >&6;}
19984 cat confcache >$cache_file
19986 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19993 # Let make expand exec_prefix.
19994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19996 DEFS=-DHAVE_CONFIG_H
20000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20001 # 1. Remove the extension, and $U if already installed.
20002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20003 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20005 # will be set to the directory where LIBOBJS objects are built.
20006 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20007 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20009 LIBOBJS=$ac_libobjs
20011 LTLIBOBJS=$ac_ltlibobjs
20014 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20015 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20016 Usually this means the macro was only invoked conditionally." >&5
20017 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20018 Usually this means the macro was only invoked conditionally." >&2;}
20019 { (exit 1); exit 1; }; }
20021 if test -n "$EXEEXT"; then
20023 am__EXEEXT_FALSE='#'
20025 am__EXEEXT_TRUE='#'
20029 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20030 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034 { (exit 1); exit 1; }; }
20036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20037 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20038 Usually this means the macro was only invoked conditionally." >&5
20039 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20040 Usually this means the macro was only invoked conditionally." >&2;}
20041 { (exit 1); exit 1; }; }
20043 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20044 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20045 Usually this means the macro was only invoked conditionally." >&5
20046 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20047 Usually this means the macro was only invoked conditionally." >&2;}
20048 { (exit 1); exit 1; }; }
20050 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20051 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20052 Usually this means the macro was only invoked conditionally." >&5
20053 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20054 Usually this means the macro was only invoked conditionally." >&2;}
20055 { (exit 1); exit 1; }; }
20057 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20058 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20059 Usually this means the macro was only invoked conditionally." >&5
20060 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20061 Usually this means the macro was only invoked conditionally." >&2;}
20062 { (exit 1); exit 1; }; }
20065 : ${CONFIG_STATUS=./config.status}
20067 ac_clean_files_save=$ac_clean_files
20068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20069 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20071 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20073 # Generated by $as_me.
20074 # Run this file to recreate the current configuration.
20075 # Compiler output produced by configure, useful for debugging
20076 # configure, is in config.log if it exists.
20079 ac_cs_recheck=false
20081 SHELL=\${CONFIG_SHELL-$SHELL}
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20085 ## --------------------- ##
20086 ## M4sh Initialization. ##
20087 ## --------------------- ##
20089 # Be more Bourne compatible
20090 DUALCASE=1; export DUALCASE # for MKS sh
20091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20095 # is contrary to our usage. Disable this feature.
20096 alias -g '${1+"$@"}'='"$@"'
20097 setopt NO_GLOB_SUBST
20099 case `(set -o) 2>/dev/null` in
20100 *posix*) set -o posix ;;
20109 # Avoid depending upon Character Ranges.
20110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20113 as_cr_digits='0123456789'
20114 as_cr_alnum=$as_cr_Letters$as_cr_digits
20119 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20120 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20123 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20124 as_echo='printf %s\n'
20125 as_echo_n='printf %s'
20127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20129 as_echo_n='/usr/ucb/echo -n'
20131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20132 as_echo_n_body='eval
20136 expr "X$arg" : "X\\(.*\\)$as_nl";
20137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20141 export as_echo_n_body
20142 as_echo_n='sh -c $as_echo_n_body as_echo'
20144 export as_echo_body
20145 as_echo='sh -c $as_echo_body as_echo'
20148 # The user is always right.
20149 if test "${PATH_SEPARATOR+set}" != set; then
20151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20157 # Support unset when possible.
20158 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20166 # We need space, tab and new line, in precisely that order. Quoting is
20167 # there to prevent editors from complaining about space-tab.
20168 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20169 # splitting by setting IFS to empty value.)
20172 # Find who we are. Look in the path if we contain no directory separator.
20174 *[\\/]* ) as_myself=$0 ;;
20175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20179 test -z "$as_dir" && as_dir=.
20180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20186 # We did not find ourselves, most probably we were run as `sh COMMAND'
20187 # in which case we are not to be found in the path.
20188 if test "x$as_myself" = x; then
20191 if test ! -f "$as_myself"; then
20192 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20193 { (exit 1); exit 1; }
20196 # Work around bugs in pre-3.0 UWIN ksh.
20197 for as_var in ENV MAIL MAILPATH
20198 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20210 # Required to use basename.
20211 if expr a : '\(a\)' >/dev/null 2>&1 &&
20212 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20219 as_basename=basename
20225 # Name of the executable.
20226 as_me=`$as_basename -- "$0" ||
20227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20228 X"$0" : 'X\(//\)$' \| \
20229 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20231 sed '/^.*\/\([^/][^/]*\)\/*$/{
20250 as_lineno_1=$LINENO
20251 as_lineno_2=$LINENO
20252 test "x$as_lineno_1" != "x$as_lineno_2" &&
20253 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20255 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20256 # uniformly replaced by the line number. The first 'sed' inserts a
20257 # line-number line after each line using $LINENO; the second 'sed'
20258 # does the real work. The second script uses 'N' to pair each
20259 # line-number line with the line containing $LINENO, and appends
20260 # trailing '-' during substitution so that $LINENO is not a special
20261 # case at line end.
20262 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20263 # scripts with optimization help from Paolo Bonzini. Blame Lee
20264 # E. McMahon (1931-1989) for sed's syntax. :-)
20276 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20279 ' >$as_me.lineno &&
20280 chmod +x "$as_me.lineno" ||
20281 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20282 { (exit 1); exit 1; }; }
20284 # Don't try to exec as it changes $[0], causing all sort of problems
20285 # (the dirname of $[0] is not the place where we might find the
20286 # original and so on. Autoconf is especially sensitive to this).
20287 . "./$as_me.lineno"
20288 # Exit status is that of the last command.
20293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20299 ECHO_C= ECHO_N= ECHO_T=
20300 case `echo -n x` in
20302 case `echo 'x\c'` in
20303 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20309 if expr a : '\(a\)' >/dev/null 2>&1 &&
20310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20316 rm -f conf$$ conf$$.exe conf$$.file
20317 if test -d conf$$.dir; then
20318 rm -f conf$$.dir/conf$$.file
20321 mkdir conf$$.dir 2>/dev/null
20323 if (echo >conf$$.file) 2>/dev/null; then
20324 if ln -s conf$$.file conf$$ 2>/dev/null; then
20326 # ... but there are two gotchas:
20327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20329 # In both cases, we have to default to `cp -p'.
20330 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20332 elif ln conf$$.file conf$$ 2>/dev/null; then
20340 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20341 rmdir conf$$.dir 2>/dev/null
20343 if mkdir -p . 2>/dev/null; then
20346 test -d ./-p && rmdir ./-p
20350 if test -x / >/dev/null 2>&1; then
20351 as_test_x='test -x'
20353 if ls -dL / >/dev/null 2>&1; then
20360 if test -d "$1"; then
20366 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20367 ???[sx]*):;;*)false;;esac;fi
20371 as_executable_p=$as_test_x
20373 # Sed expression to map a string onto a valid CPP name.
20374 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20376 # Sed expression to map a string onto a valid variable name.
20377 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20382 # Save the log message, to keep $[0] and so on meaningful, and to
20383 # report actual input values of CONFIG_FILES etc. instead of their
20384 # values after options handling.
20386 This file was extended by $as_me, which was
20387 generated by GNU Autoconf 2.63. Invocation command line was
20389 CONFIG_FILES = $CONFIG_FILES
20390 CONFIG_HEADERS = $CONFIG_HEADERS
20391 CONFIG_LINKS = $CONFIG_LINKS
20392 CONFIG_COMMANDS = $CONFIG_COMMANDS
20395 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20400 case $ac_config_files in *"
20401 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20404 case $ac_config_headers in *"
20405 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20410 # Files that config.status was made for.
20411 config_files="$ac_config_files"
20412 config_headers="$ac_config_headers"
20413 config_commands="$ac_config_commands"
20417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20419 \`$as_me' instantiates files from templates according to the
20420 current configuration.
20422 Usage: $0 [OPTION]... [FILE]...
20424 -h, --help print this help, then exit
20425 -V, --version print version number and configuration settings, then exit
20426 -q, --quiet, --silent
20427 do not print progress messages
20428 -d, --debug don't remove temporary files
20429 --recheck update $as_me by reconfiguring in the same conditions
20430 --file=FILE[:TEMPLATE]
20431 instantiate the configuration file FILE
20432 --header=FILE[:TEMPLATE]
20433 instantiate the configuration header FILE
20435 Configuration files:
20438 Configuration headers:
20441 Configuration commands:
20444 Report bugs to <bug-autoconf@gnu.org>."
20447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20450 configured by $0, generated by GNU Autoconf 2.63,
20451 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20453 Copyright (C) 2008 Free Software Foundation, Inc.
20454 This config.status script is free software; the Free Software Foundation
20455 gives unlimited permission to copy, distribute and modify it."
20462 test -n "\$AWK" || AWK=awk
20465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20466 # The default lists apply if the user does not specify any file.
20472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20484 # Handling of the options.
20485 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20487 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20488 $as_echo "$ac_cs_version"; exit ;;
20489 --debug | --debu | --deb | --de | --d | -d )
20491 --file | --fil | --fi | --f )
20494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20496 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20497 ac_need_defaults=false;;
20498 --header | --heade | --head | --hea )
20501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20503 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20504 ac_need_defaults=false;;
20506 # Conflict between --help and --header
20507 { $as_echo "$as_me: error: ambiguous option: $1
20508 Try \`$0 --help' for more information." >&2
20509 { (exit 1); exit 1; }; };;
20510 --help | --hel | -h )
20511 $as_echo "$ac_cs_usage"; exit ;;
20512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20513 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20516 # This is an error.
20517 -*) { $as_echo "$as_me: error: unrecognized option: $1
20518 Try \`$0 --help' for more information." >&2
20519 { (exit 1); exit 1; }; } ;;
20521 *) ac_config_targets="$ac_config_targets $1"
20522 ac_need_defaults=false ;;
20528 ac_configure_extra_args=
20530 if $ac_cs_silent; then
20532 ac_configure_extra_args="$ac_configure_extra_args --silent"
20536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20537 if \$ac_cs_recheck; then
20538 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20540 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20541 CONFIG_SHELL='$SHELL'
20542 export CONFIG_SHELL
20547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20552 ## Running $as_me. ##
20558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20562 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20565 # The HP-UX ksh and POSIX shell print the target directory to stdout
20566 # if CDPATH is set.
20567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20569 sed_quote_subst='$sed_quote_subst'
20570 double_quote_subst='$double_quote_subst'
20571 delay_variable_subst='$delay_variable_subst'
20572 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20573 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20574 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20575 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20576 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20577 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20578 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20579 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20580 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20581 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20582 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20583 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20584 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20585 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20586 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20587 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20588 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20589 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20590 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20591 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20592 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20593 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20594 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20595 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20596 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20597 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20598 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20599 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20600 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20601 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20602 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20603 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20604 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20605 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20606 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20607 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20608 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20609 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20610 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20611 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20612 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20613 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20614 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20615 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20616 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"`'
20617 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"`'
20618 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20619 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20620 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20621 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20622 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20623 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20624 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20625 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20626 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20627 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20628 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20629 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20630 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20631 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20632 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20633 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20634 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20635 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20636 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20637 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20638 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20639 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20640 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20641 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20642 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20643 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20644 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20645 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20646 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20647 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20648 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20649 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20650 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20651 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20652 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20653 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20654 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20655 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20656 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20657 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20658 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20659 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20660 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20661 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20662 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20663 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20664 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20665 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20666 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20667 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20668 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20669 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20670 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20671 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20672 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20673 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20674 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20675 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20676 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20677 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20678 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20679 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20680 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20681 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20682 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20683 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20684 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20685 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20686 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20687 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20688 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20689 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20692 LTCFLAGS='$LTCFLAGS'
20693 compiler='$compiler_DEFAULT'
20695 # Quote evaled strings.
20707 deplibs_check_method \
20716 lt_cv_sys_global_symbol_pipe \
20717 lt_cv_sys_global_symbol_to_cdecl \
20718 lt_cv_sys_global_symbol_to_c_name_address \
20719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20722 lt_prog_compiler_no_builtin_flag \
20723 lt_prog_compiler_wl \
20724 lt_prog_compiler_pic \
20725 lt_prog_compiler_static \
20726 lt_cv_prog_compiler_c_o \
20734 export_dynamic_flag_spec \
20735 whole_archive_flag_spec \
20736 compiler_needs_object \
20738 allow_undefined_flag \
20739 no_undefined_flag \
20740 hardcode_libdir_flag_spec \
20741 hardcode_libdir_flag_spec_ld \
20742 hardcode_libdir_separator \
20747 variables_saved_for_relink \
20749 library_names_spec \
20754 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20755 *[\\\\\\\`\\"\\\$]*)
20756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20764 # Double-quote double-evaled strings.
20765 for var in reload_cmds \
20766 old_postinstall_cmds \
20767 old_postuninstall_cmds \
20769 extract_expsyms_cmds \
20770 old_archive_from_new_cmds \
20771 old_archive_from_expsyms_cmds \
20773 archive_expsym_cmds \
20775 module_expsym_cmds \
20776 export_symbols_cmds \
20779 postuninstall_cmds \
20781 sys_lib_search_path_spec \
20782 sys_lib_dlsearch_path_spec; do
20783 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20784 *[\\\\\\\`\\"\\\$]*)
20785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20793 # Fix-up fallback echo if it was mangled by the above quoting rules.
20795 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20799 ac_aux_dir='$ac_aux_dir'
20800 xsi_shell='$xsi_shell'
20801 lt_shell_append='$lt_shell_append'
20803 # See if we are running on zsh, and set the options which allow our
20804 # commands through without removal of \ escapes INIT.
20805 if test -n "\${ZSH_VERSION+set}" ; then
20806 setopt NO_GLOB_SUBST
20812 TIMESTAMP='$TIMESTAMP'
20821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20823 # Handling of arguments.
20824 for ac_config_target in $ac_config_targets
20826 case $ac_config_target in
20827 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
20828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20829 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20831 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20832 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20833 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
20834 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20835 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
20836 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
20837 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
20838 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
20839 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
20840 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
20841 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
20842 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
20843 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
20844 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
20845 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
20846 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
20847 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
20848 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
20849 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
20850 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
20851 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
20852 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
20853 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
20854 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
20855 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
20856 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
20857 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
20858 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
20859 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
20860 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
20861 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
20862 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
20863 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
20864 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
20865 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
20866 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
20867 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
20868 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
20869 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
20870 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
20871 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
20872 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20873 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
20874 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
20875 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
20876 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
20877 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
20878 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20879 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
20880 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
20881 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
20882 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
20883 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
20884 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
20885 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
20886 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
20888 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20889 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20890 { (exit 1); exit 1; }; };;
20895 # If the user did not use the arguments to specify the items to instantiate,
20896 # then the envvar interface is used. Set only those that are not.
20897 # We use the long form for the default assignment because of an extremely
20898 # bizarre bug on SunOS 4.1.3.
20899 if $ac_need_defaults; then
20900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20901 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20902 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20905 # Have a temporary directory for convenience. Make it in the build tree
20906 # simply because there is no reason against having it here, and in addition,
20907 # creating and moving files from /tmp can sometimes cause problems.
20908 # Hook for its removal unless debugging.
20909 # Note that there is a small window in which the directory will not be cleaned:
20910 # after its creation but before its name has been assigned to `$tmp'.
20914 trap 'exit_status=$?
20915 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20917 trap '{ (exit 1); exit 1; }' 1 2 13 15
20919 # Create a (secure) tmp directory for tmp files.
20922 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20923 test -n "$tmp" && test -d "$tmp"
20926 tmp=./conf$$-$RANDOM
20927 (umask 077 && mkdir "$tmp")
20930 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20931 { (exit 1); exit 1; }
20934 # Set up the scripts for CONFIG_FILES section.
20935 # No need to generate them if there are no CONFIG_FILES.
20936 # This happens for instance with `./config.status config.h'.
20937 if test -n "$CONFIG_FILES"; then
20941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20942 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20945 ac_cs_awk_cr=$ac_cr
20948 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20953 echo "cat >conf$$subs.awk <<_ACEOF" &&
20954 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20956 } >conf$$subs.sh ||
20957 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20958 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20959 { (exit 1); exit 1; }; }
20960 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20962 for ac_last_try in false false false false false :; do
20963 . ./conf$$subs.sh ||
20964 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20965 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20966 { (exit 1); exit 1; }; }
20968 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20969 if test $ac_delim_n = $ac_delim_num; then
20971 elif $ac_last_try; then
20972 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20973 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20974 { (exit 1); exit 1; }; }
20976 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20979 rm -f conf$$subs.sh
20981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20982 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20986 s/^/S["/; s/!.*/"]=/
20996 s/\(.\{148\}\).*/\1/
20998 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21003 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21010 s/\(.\{148\}\).*/\1/
21012 s/["\\]/\\&/g; s/^/"/; s/$/"/
21016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21021 ' <conf$$subs.awk | sed '
21026 ' >>$CONFIG_STATUS || ac_write_fail=1
21027 rm -f conf$$subs.awk
21028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21030 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21031 for (key in S) S_is_set[key] = 1
21037 nfields = split(line, field, "@")
21039 len = length(field[1])
21040 for (i = 2; i < nfields; i++) {
21042 keylen = length(key)
21043 if (S_is_set[key]) {
21045 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21046 len += length(value) + length(field[++i])
21057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21058 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21062 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21063 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21064 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21065 { (exit 1); exit 1; }; }
21068 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21069 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21070 # trailing colons and then remove the whole line if VPATH becomes empty
21071 # (actually we leave an empty line to preserve line numbers).
21072 if test "x$srcdir" = x.; then
21073 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21074 s/:*\$(srcdir):*/:/
21075 s/:*\${srcdir}:*/:/
21077 s/^\([^=]*=[ ]*\):*/\1/
21083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21084 fi # test -n "$CONFIG_FILES"
21086 # Set up the scripts for CONFIG_HEADERS section.
21087 # No need to generate them if there are no CONFIG_HEADERS.
21088 # This happens for instance with `./config.status Makefile'.
21089 if test -n "$CONFIG_HEADERS"; then
21090 cat >"$tmp/defines.awk" <<\_ACAWK ||
21094 # Transform confdefs.h into an awk script `defines.awk', embedded as
21095 # here-document in config.status, that substitutes the proper values into
21096 # config.h.in to produce config.h.
21098 # Create a delimiter string that does not exist in confdefs.h, to ease
21099 # handling of long lines.
21101 for ac_last_try in false false :; do
21102 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21103 if test -z "$ac_t"; then
21105 elif $ac_last_try; then
21106 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21107 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21108 { (exit 1); exit 1; }; }
21110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21114 # For the awk script, D is an array of macro values keyed by name,
21115 # likewise P contains macro parameters if any. Preserve backslash
21116 # newline sequences.
21118 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21120 s/.\{148\}/&'"$ac_delim"'/g
21123 s/^[ ]*#[ ]*define[ ][ ]*/ /
21130 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21132 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21137 D["\1"]=" \3\\\\\\n"\\/p
21139 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21144 s/.\{148\}/&'"$ac_delim"'/g
21149 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21152 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21154 ' <confdefs.h | sed '
21155 s/'"$ac_delim"'/"\\\
21156 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21159 for (key in D) D_is_set[key] = 1
21162 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21164 split(line, arg, " ")
21165 if (arg[1] == "#") {
21169 defundef = substr(arg[1], 2)
21172 split(mac1, mac2, "(") #)
21174 prefix = substr(line, 1, index(line, defundef) - 1)
21175 if (D_is_set[macro]) {
21176 # Preserve the white space surrounding the "#".
21177 print prefix "define", macro P[macro] D[macro]
21180 # Replace #undef with comments. This is necessary, for example,
21181 # in the case of _POSIX_SOURCE, which is predefined and required
21182 # on some systems where configure will not decide to define it.
21183 if (defundef == "undef") {
21184 print "/*", prefix defundef, macro, "*/"
21192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21193 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21194 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21195 { (exit 1); exit 1; }; }
21196 fi # test -n "$CONFIG_HEADERS"
21199 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21204 :[FHLC]) ac_mode=$ac_tag; continue;;
21206 case $ac_mode$ac_tag in
21208 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21209 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21210 { (exit 1); exit 1; }; };;
21211 :[FH]-) ac_tag=-:-;;
21212 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21229 -) ac_f="$tmp/stdin";;
21230 *) # Look for the file first in the build tree, then in the source tree
21231 # (if the path is not absolute). The absolute path cannot be DOS-style,
21232 # because $ac_f cannot contain `:'.
21236 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21238 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21239 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21240 { (exit 1); exit 1; }; };;
21242 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21243 ac_file_inputs="$ac_file_inputs '$ac_f'"
21246 # Let's still pretend it is `configure' which instantiates (i.e., don't
21247 # use $as_me), people would be surprised to read:
21248 # /* config.h. Generated by config.status. */
21249 configure_input='Generated from '`
21250 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21252 if test x"$ac_file" != x-; then
21253 configure_input="$ac_file. $configure_input"
21254 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21255 $as_echo "$as_me: creating $ac_file" >&6;}
21257 # Neutralize special characters interpreted by sed in replacement strings.
21258 case $configure_input in #(
21259 *\&* | *\|* | *\\* )
21260 ac_sed_conf_input=`$as_echo "$configure_input" |
21261 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21262 *) ac_sed_conf_input=$configure_input;;
21266 *:-:* | *:-) cat >"$tmp/stdin" \
21267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21269 { (exit 1); exit 1; }; } ;;
21274 ac_dir=`$as_dirname -- "$ac_file" ||
21275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21276 X"$ac_file" : 'X\(//\)[^/]' \| \
21277 X"$ac_file" : 'X\(//\)$' \| \
21278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21279 $as_echo X"$ac_file" |
21280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21284 /^X\(\/\/\)[^/].*/{
21299 -*) as_dir=./$as_dir;;
21301 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21306 *) as_qdir=$as_dir;;
21308 as_dirs="'$as_qdir' $as_dirs"
21309 as_dir=`$as_dirname -- "$as_dir" ||
21310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21311 X"$as_dir" : 'X\(//\)[^/]' \| \
21312 X"$as_dir" : 'X\(//\)$' \| \
21313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21314 $as_echo X"$as_dir" |
21315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21319 /^X\(\/\/\)[^/].*/{
21332 test -d "$as_dir" && break
21334 test -z "$as_dirs" || eval "mkdir $as_dirs"
21335 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21336 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21337 { (exit 1); exit 1; }; }; }
21341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21344 # A ".." for each directory in $ac_dir_suffix.
21345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21346 case $ac_top_builddir_sub in
21347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21351 ac_abs_top_builddir=$ac_pwd
21352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21353 # for backward compatibility:
21354 ac_top_builddir=$ac_top_build_prefix
21357 .) # We are building in place.
21359 ac_top_srcdir=$ac_top_builddir_sub
21360 ac_abs_top_srcdir=$ac_pwd ;;
21361 [\\/]* | ?:[\\/]* ) # Absolute name.
21362 ac_srcdir=$srcdir$ac_dir_suffix;
21363 ac_top_srcdir=$srcdir
21364 ac_abs_top_srcdir=$srcdir ;;
21365 *) # Relative name.
21366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21367 ac_top_srcdir=$ac_top_build_prefix$srcdir
21368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21383 ac_MKDIR_P=$MKDIR_P
21385 [\\/$]* | ?:[\\/]* ) ;;
21386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21391 # If the template does not know about datarootdir, expand it.
21392 # FIXME: This hack should be removed a few years after 2.60.
21393 ac_datarootdir_hack=; ac_datarootdir_seen=
21406 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21407 *datarootdir*) ac_datarootdir_seen=yes;;
21408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21409 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21410 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21413 ac_datarootdir_hack='
21414 s&@datadir@&$datadir&g
21415 s&@docdir@&$docdir&g
21416 s&@infodir@&$infodir&g
21417 s&@localedir@&$localedir&g
21418 s&@mandir@&$mandir&g
21419 s&\\\${datarootdir}&$datarootdir&g' ;;
21423 # Neutralize VPATH when `$srcdir' = `.'.
21424 # Shell code in configure.ac might set extrasub.
21425 # FIXME: do we really want to maintain this feature?
21426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21427 ac_sed_extra="$ac_vpsub
21430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21433 s|@configure_input@|$ac_sed_conf_input|;t t
21434 s&@top_builddir@&$ac_top_builddir_sub&;t t
21435 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21436 s&@srcdir@&$ac_srcdir&;t t
21437 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21438 s&@top_srcdir@&$ac_top_srcdir&;t t
21439 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21440 s&@builddir@&$ac_builddir&;t t
21441 s&@abs_builddir@&$ac_abs_builddir&;t t
21442 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21443 s&@INSTALL@&$ac_INSTALL&;t t
21444 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21445 $ac_datarootdir_hack
21447 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21448 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21449 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21450 { (exit 1); exit 1; }; }
21452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21453 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21455 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21456 which seems to be undefined. Please make sure it is defined." >&5
21457 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21458 which seems to be undefined. Please make sure it is defined." >&2;}
21462 -) cat "$tmp/out" && rm -f "$tmp/out";;
21463 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21465 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21466 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21467 { (exit 1); exit 1; }; }
21473 if test x"$ac_file" != x-; then
21475 $as_echo "/* $configure_input */" \
21476 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21477 } >"$tmp/config.h" \
21478 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21479 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21480 { (exit 1); exit 1; }; }
21481 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21482 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21483 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21486 mv "$tmp/config.h" "$ac_file" \
21487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21488 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21489 { (exit 1); exit 1; }; }
21492 $as_echo "/* $configure_input */" \
21493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21494 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21495 $as_echo "$as_me: error: could not create -" >&2;}
21496 { (exit 1); exit 1; }; }
21498 # Compute "$ac_file"'s index in $config_headers.
21501 for _am_header in $config_headers :; do
21502 case $_am_header in
21503 $_am_arg | $_am_arg:* )
21506 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21509 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21510 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21511 X"$_am_arg" : 'X\(//\)[^/]' \| \
21512 X"$_am_arg" : 'X\(//\)$' \| \
21513 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21514 $as_echo X"$_am_arg" |
21515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21519 /^X\(\/\/\)[^/].*/{
21531 s/.*/./; q'`/stamp-h$_am_stamp_count
21534 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21535 $as_echo "$as_me: executing $ac_file commands" >&6;}
21540 case $ac_file$ac_mode in
21542 (mv zfs_config.h zfs_config.h.tmp &&
21543 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
21544 rm zfs_config.h.tmp) || exit 1 ;;
21545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21546 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21547 # are listed without --file. Let's play safe and only enable the eval
21548 # if we detect the quoting.
21549 case $CONFIG_FILES in
21550 *\'*) eval set x "$CONFIG_FILES" ;;
21551 *) set x $CONFIG_FILES ;;
21556 # Strip MF so we end up with the name of the file.
21557 mf=`echo "$mf" | sed -e 's/:.*$//'`
21558 # Check whether this is an Automake generated Makefile or not.
21559 # We used to match only the files named `Makefile.in', but
21560 # some people rename them; so instead we look at the file content.
21561 # Grep'ing the first line is not enough: some people post-process
21562 # each Makefile.in and add a new line on top of each file to say so.
21563 # Grep'ing the whole file is not good either: AIX grep has a line
21564 # limit of 2048, but all sed's we know have understand at least 4000.
21565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21566 dirpart=`$as_dirname -- "$mf" ||
21567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21568 X"$mf" : 'X\(//\)[^/]' \| \
21569 X"$mf" : 'X\(//\)$' \| \
21570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21576 /^X\(\/\/\)[^/].*/{
21592 # Extract the definition of DEPDIR, am__include, and am__quote
21593 # from the Makefile without running `make'.
21594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21595 test -z "$DEPDIR" && continue
21596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21597 test -z "am__include" && continue
21598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21599 # When using ansi2knr, U may be empty or an underscore; expand it
21600 U=`sed -n 's/^U = //p' < "$mf"`
21601 # Find all dependency output files, they are included files with
21602 # $(DEPDIR) in their names. We invoke sed twice because it is the
21603 # simplest approach to changing $(DEPDIR) to its actual value in the
21605 for file in `sed -n "
21606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21608 # Make sure the directory exists.
21609 test -f "$dirpart/$file" && continue
21610 fdir=`$as_dirname -- "$file" ||
21611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21612 X"$file" : 'X\(//\)[^/]' \| \
21613 X"$file" : 'X\(//\)$' \| \
21614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21615 $as_echo X"$file" |
21616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21620 /^X\(\/\/\)[^/].*/{
21633 { as_dir=$dirpart/$fdir
21635 -*) as_dir=./$as_dir;;
21637 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21641 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21642 *) as_qdir=$as_dir;;
21644 as_dirs="'$as_qdir' $as_dirs"
21645 as_dir=`$as_dirname -- "$as_dir" ||
21646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647 X"$as_dir" : 'X\(//\)[^/]' \| \
21648 X"$as_dir" : 'X\(//\)$' \| \
21649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21650 $as_echo X"$as_dir" |
21651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655 /^X\(\/\/\)[^/].*/{
21668 test -d "$as_dir" && break
21670 test -z "$as_dirs" || eval "mkdir $as_dirs"
21671 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21672 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21673 { (exit 1); exit 1; }; }; }
21674 # echo "creating $dirpart/$file"
21675 echo '# dummy' > "$dirpart/$file"
21682 # See if we are running on zsh, and set the options which allow our
21683 # commands through without removal of \ escapes.
21684 if test -n "${ZSH_VERSION+set}" ; then
21685 setopt NO_GLOB_SUBST
21688 cfgfile="${ofile}T"
21689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21692 cat <<_LT_EOF >> "$cfgfile"
21695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21701 # 2006, 2007, 2008 Free Software Foundation, Inc.
21702 # Written by Gordon Matzigkeit, 1996
21704 # This file is part of GNU Libtool.
21706 # GNU Libtool is free software; you can redistribute it and/or
21707 # modify it under the terms of the GNU General Public License as
21708 # published by the Free Software Foundation; either version 2 of
21709 # the License, or (at your option) any later version.
21711 # As a special exception to the GNU General Public License,
21712 # if you distribute this file as part of a program or library that
21713 # is built using GNU Libtool, you may include this file under the
21714 # same distribution terms that you use for the rest of that program.
21716 # GNU Libtool is distributed in the hope that it will be useful,
21717 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21719 # GNU General Public License for more details.
21721 # You should have received a copy of the GNU General Public License
21722 # along with GNU Libtool; see the file COPYING. If not, a copy
21723 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21724 # obtained by writing to the Free Software Foundation, Inc.,
21725 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21728 # The names of the tagged configurations supported by this script.
21731 # ### BEGIN LIBTOOL CONFIG
21733 # Which release of libtool.m4 was used?
21734 macro_version=$macro_version
21735 macro_revision=$macro_revision
21737 # Whether or not to build shared libraries.
21738 build_libtool_libs=$enable_shared
21740 # Whether or not to build static libraries.
21741 build_old_libs=$enable_static
21743 # What type of objects to build.
21746 # Whether or not to optimize for fast installation.
21747 fast_install=$enable_fast_install
21750 host_alias=$host_alias
21754 # The build system.
21755 build_alias=$build_alias
21759 # A sed program that does not truncate output.
21762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21763 Xsed="\$SED -e 1s/^X//"
21765 # A grep program that handles long lines.
21771 # A literal string matcher.
21774 # A BSD- or MS-compatible name lister.
21777 # Whether we need soft or hard links.
21780 # What is the maximum length of a command?
21781 max_cmd_len=$max_cmd_len
21783 # Object file suffix (normally "o").
21786 # Executable file suffix (normally "").
21789 # whether the shell understands "unset".
21792 # turn spaces into newlines.
21795 # turn newlines into spaces.
21798 # How to create reloadable object files.
21799 reload_flag=$lt_reload_flag
21800 reload_cmds=$lt_reload_cmds
21802 # An object symbol dumper.
21803 OBJDUMP=$lt_OBJDUMP
21805 # Method to check whether dependent libraries are shared objects.
21806 deplibs_check_method=$lt_deplibs_check_method
21808 # Command to use when deplibs_check_method == "file_magic".
21809 file_magic_cmd=$lt_file_magic_cmd
21813 AR_FLAGS=$lt_AR_FLAGS
21815 # A symbol stripping program.
21818 # Commands used to install an old-style archive.
21820 old_postinstall_cmds=$lt_old_postinstall_cmds
21821 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21826 # LTCC compiler flags.
21827 LTCFLAGS=$lt_CFLAGS
21829 # Take the output of nm and produce a listing of raw symbols and C names.
21830 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21832 # Transform the output of nm in a proper C declaration.
21833 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21835 # Transform the output of nm in a C name address pair.
21836 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21838 # Transform the output of nm in a C name address pair when lib prefix is needed.
21839 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21841 # The name of the directory that contains temporary libtool files.
21844 # Shell to use when invoking shell scripts.
21847 # An echo program that does not interpret backslashes.
21850 # Used to examine libraries when file_magic_cmd begins with "file".
21851 MAGIC_CMD=$MAGIC_CMD
21853 # Must we lock files when doing compilation?
21854 need_locks=$lt_need_locks
21856 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21857 DSYMUTIL=$lt_DSYMUTIL
21859 # Tool to change global to local symbols on Mac OS X.
21862 # Tool to manipulate fat objects and archives on Mac OS X.
21865 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21868 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21869 OTOOL64=$lt_OTOOL64
21871 # Old archive suffix (normally "a").
21874 # Shared library suffix (normally ".so").
21875 shrext_cmds=$lt_shrext_cmds
21877 # The commands to extract the exported symbol list from a shared archive.
21878 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21880 # Variables whose values should be saved in libtool wrapper scripts and
21881 # restored at link time.
21882 variables_saved_for_relink=$lt_variables_saved_for_relink
21884 # Do we need the "lib" prefix for modules?
21885 need_lib_prefix=$need_lib_prefix
21887 # Do we need a version for libraries?
21888 need_version=$need_version
21890 # Library versioning type.
21891 version_type=$version_type
21893 # Shared library runtime path variable.
21894 runpath_var=$runpath_var
21896 # Shared library path variable.
21897 shlibpath_var=$shlibpath_var
21899 # Is shlibpath searched before the hard-coded library search path?
21900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21902 # Format of library name prefix.
21903 libname_spec=$lt_libname_spec
21905 # List of archive names. First name is the real one, the rest are links.
21906 # The last name is the one that the linker finds with -lNAME
21907 library_names_spec=$lt_library_names_spec
21909 # The coded name of the library, if different from the real name.
21910 soname_spec=$lt_soname_spec
21912 # Command to use after installation of a shared archive.
21913 postinstall_cmds=$lt_postinstall_cmds
21915 # Command to use after uninstallation of a shared archive.
21916 postuninstall_cmds=$lt_postuninstall_cmds
21918 # Commands used to finish a libtool library installation in a directory.
21919 finish_cmds=$lt_finish_cmds
21921 # As "finish_cmds", except a single script fragment to be evaled but
21923 finish_eval=$lt_finish_eval
21925 # Whether we should hardcode library paths into libraries.
21926 hardcode_into_libs=$hardcode_into_libs
21928 # Compile-time system search path for libraries.
21929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21931 # Run-time system search path for libraries.
21932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21934 # Whether dlopen is supported.
21935 dlopen_support=$enable_dlopen
21937 # Whether dlopen of programs is supported.
21938 dlopen_self=$enable_dlopen_self
21940 # Whether dlopen of statically linked programs is supported.
21941 dlopen_self_static=$enable_dlopen_self_static
21943 # Commands to strip libraries.
21944 old_striplib=$lt_old_striplib
21945 striplib=$lt_striplib
21948 # The linker used to build libraries.
21951 # Commands used to build an old-style archive.
21952 old_archive_cmds=$lt_old_archive_cmds
21954 # A language specific compiler.
21957 # Is the compiler the GNU compiler?
21960 # Compiler flag to turn off builtin functions.
21961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21963 # How to pass a linker flag through the compiler.
21964 wl=$lt_lt_prog_compiler_wl
21966 # Additional compiler flags for building library objects.
21967 pic_flag=$lt_lt_prog_compiler_pic
21969 # Compiler flag to prevent dynamic linking.
21970 link_static_flag=$lt_lt_prog_compiler_static
21972 # Does compiler simultaneously support -c and -o options?
21973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21975 # Whether or not to add -lc for building shared libraries.
21976 build_libtool_need_lc=$archive_cmds_need_lc
21978 # Whether or not to disallow shared libs when runtime libs are static.
21979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21981 # Compiler flag to allow reflexive dlopens.
21982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21984 # Compiler flag to generate shared objects directly from archives.
21985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21987 # Whether the compiler copes with passing no objects directly.
21988 compiler_needs_object=$lt_compiler_needs_object
21990 # Create an old-style archive from a shared archive.
21991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21993 # Create a temporary old-style archive to link instead of a shared archive.
21994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21996 # Commands used to build a shared archive.
21997 archive_cmds=$lt_archive_cmds
21998 archive_expsym_cmds=$lt_archive_expsym_cmds
22000 # Commands used to build a loadable module if different from building
22001 # a shared archive.
22002 module_cmds=$lt_module_cmds
22003 module_expsym_cmds=$lt_module_expsym_cmds
22005 # Whether we are building with GNU ld or not.
22006 with_gnu_ld=$lt_with_gnu_ld
22008 # Flag that allows shared libraries with undefined symbols to be built.
22009 allow_undefined_flag=$lt_allow_undefined_flag
22011 # Flag that enforces no undefined symbols.
22012 no_undefined_flag=$lt_no_undefined_flag
22014 # Flag to hardcode \$libdir into a binary during linking.
22015 # This must work even if \$libdir does not exist
22016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22018 # If ld is used when linking, flag to hardcode \$libdir into a binary
22019 # during linking. This must work even if \$libdir does not exist.
22020 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22022 # Whether we need a single "-rpath" flag with a separated argument.
22023 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22025 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22026 # DIR into the resulting binary.
22027 hardcode_direct=$hardcode_direct
22029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22030 # DIR into the resulting binary and the resulting library dependency is
22031 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22032 # library is relocated.
22033 hardcode_direct_absolute=$hardcode_direct_absolute
22035 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22036 # into the resulting binary.
22037 hardcode_minus_L=$hardcode_minus_L
22039 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22040 # into the resulting binary.
22041 hardcode_shlibpath_var=$hardcode_shlibpath_var
22043 # Set to "yes" if building a shared library automatically hardcodes DIR
22044 # into the library and all subsequent libraries and executables linked
22046 hardcode_automatic=$hardcode_automatic
22048 # Set to yes if linker adds runtime paths of dependent libraries
22049 # to runtime path list.
22050 inherit_rpath=$inherit_rpath
22052 # Whether libtool must link a program against all its dependency libraries.
22053 link_all_deplibs=$link_all_deplibs
22055 # Fix the shell variable \$srcfile for the compiler.
22056 fix_srcfile_path=$lt_fix_srcfile_path
22058 # Set to "yes" if exported symbols are required.
22059 always_export_symbols=$always_export_symbols
22061 # The commands to list exported symbols.
22062 export_symbols_cmds=$lt_export_symbols_cmds
22064 # Symbols that should not be listed in the preloaded symbols.
22065 exclude_expsyms=$lt_exclude_expsyms
22067 # Symbols that must always be exported.
22068 include_expsyms=$lt_include_expsyms
22070 # Commands necessary for linking programs (against libraries) with templates.
22071 prelink_cmds=$lt_prelink_cmds
22073 # Specify filename containing input files.
22074 file_list_spec=$lt_file_list_spec
22076 # How to hardcode a shared library path into an executable.
22077 hardcode_action=$hardcode_action
22079 # ### END LIBTOOL CONFIG
22085 cat <<\_LT_EOF >> "$cfgfile"
22086 # AIX sometimes has problems with the GCC collect2 program. For some
22087 # reason, if we set the COLLECT_NAMES environment variable, the problems
22088 # vanish in a puff of smoke.
22089 if test "X${COLLECT_NAMES+set}" != Xset; then
22091 export COLLECT_NAMES
22098 ltmain="$ac_aux_dir/ltmain.sh"
22101 # We use sed instead of cat because bash on DJGPP gets confused if
22102 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22103 # text mode, it properly converts lines to CR/LF. This bash problem
22104 # is reportedly fixed, but why not run on old versions too?
22105 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22106 || (rm -f "$cfgfile"; exit 1)
22110 cat << \_LT_EOF >> "$cfgfile"
22112 # func_dirname file append nondir_replacement
22113 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22114 # otherwise set result to NONDIR_REPLACEMENT.
22118 */*) func_dirname_result="${1%/*}${2}" ;;
22119 * ) func_dirname_result="${3}" ;;
22123 # func_basename file
22126 func_basename_result="${1##*/}"
22129 # func_dirname_and_basename file append nondir_replacement
22130 # perform func_basename and func_dirname in a single function
22132 # dirname: Compute the dirname of FILE. If nonempty,
22133 # add APPEND to the result, otherwise set result
22134 # to NONDIR_REPLACEMENT.
22135 # value returned in "$func_dirname_result"
22136 # basename: Compute filename of FILE.
22137 # value retuned in "$func_basename_result"
22138 # Implementation must be kept synchronized with func_dirname
22139 # and func_basename. For efficiency, we do not delegate to
22140 # those functions but instead duplicate the functionality here.
22141 func_dirname_and_basename ()
22144 */*) func_dirname_result="${1%/*}${2}" ;;
22145 * ) func_dirname_result="${3}" ;;
22147 func_basename_result="${1##*/}"
22150 # func_stripname prefix suffix name
22151 # strip PREFIX and SUFFIX off of NAME.
22152 # PREFIX and SUFFIX must not contain globbing or regex special
22153 # characters, hashes, percent signs, but SUFFIX may contain a leading
22154 # dot (in which case that matches only a dot).
22157 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22158 # positional parameters, so assign one to ordinary parameter first.
22159 func_stripname_result=${3}
22160 func_stripname_result=${func_stripname_result#"${1}"}
22161 func_stripname_result=${func_stripname_result%"${2}"}
22167 func_opt_split_opt=${1%%=*}
22168 func_opt_split_arg=${1#*=}
22175 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22176 *) func_lo2o_result=${1} ;;
22180 # func_xform libobj-or-source
22183 func_xform_result=${1%.*}.lo
22186 # func_arith arithmetic-term...
22189 func_arith_result=$(( $* ))
22193 # STRING may not start with a hyphen.
22196 func_len_result=${#1}
22201 *) # Bourne compatible functions.
22202 cat << \_LT_EOF >> "$cfgfile"
22204 # func_dirname file append nondir_replacement
22205 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22206 # otherwise set result to NONDIR_REPLACEMENT.
22209 # Extract subdirectory from the argument.
22210 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22211 if test "X$func_dirname_result" = "X${1}"; then
22212 func_dirname_result="${3}"
22214 func_dirname_result="$func_dirname_result${2}"
22218 # func_basename file
22221 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22225 # func_stripname prefix suffix name
22226 # strip PREFIX and SUFFIX off of NAME.
22227 # PREFIX and SUFFIX must not contain globbing or regex special
22228 # characters, hashes, percent signs, but SUFFIX may contain a leading
22229 # dot (in which case that matches only a dot).
22230 # func_strip_suffix prefix name
22234 .*) func_stripname_result=`$ECHO "X${3}" \
22235 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22236 *) func_stripname_result=`$ECHO "X${3}" \
22237 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22242 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22243 my_sed_long_arg='1s/^-[^=]*=//'
22248 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22249 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22255 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22258 # func_xform libobj-or-source
22261 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22264 # func_arith arithmetic-term...
22267 func_arith_result=`expr "$@"`
22271 # STRING may not start with a hyphen.
22274 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22280 case $lt_shell_append in
22282 cat << \_LT_EOF >> "$cfgfile"
22284 # func_append var value
22285 # Append VALUE to the end of shell variable VAR.
22293 cat << \_LT_EOF >> "$cfgfile"
22295 # func_append var value
22296 # Append VALUE to the end of shell variable VAR.
22307 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22308 || (rm -f "$cfgfile"; exit 1)
22310 mv -f "$cfgfile" "$ofile" ||
22311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22320 { (exit 0); exit 0; }
22322 chmod +x $CONFIG_STATUS
22323 ac_clean_files=$ac_clean_files_save
22325 test $ac_write_fail = 0 ||
22326 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22327 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22328 { (exit 1); exit 1; }; }
22331 # configure is writing to config.log, and then calls config.status.
22332 # config.status does its own redirection, appending to config.log.
22333 # Unfortunately, on DOS this fails, as config.log is still kept open
22334 # by configure, so config.status won't be able to write to it; its
22335 # output is simply discarded. So we exec the FD to /dev/null,
22336 # effectively closing config.log, so it can be properly (re)opened and
22337 # appended to by config.status. When coming back to configure, we
22338 # need to make the FD available again.
22339 if test "$no_create" != yes; then
22341 ac_config_status_args=
22342 test "$silent" = yes &&
22343 ac_config_status_args="$ac_config_status_args --quiet"
22345 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22347 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22348 # would make configure fail if this is the last instruction.
22349 $ac_cs_success || { (exit 1); exit 1; }
22351 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22352 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22353 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}