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
813 NO_UNUSED_BUT_SET_VARIABLE
841 am__fastdepCCAS_FALSE
890 INSTALL_STRIP_PROGRAM
908 MAINTAINER_MODE_FALSE
959 program_transform_name
971 enable_option_checking
972 enable_maintainer_mode
974 enable_dependency_tracking
992 ac_precious_vars='build_alias
1005 # Initialize some variables set by options.
1007 ac_init_version=false
1008 ac_unrecognized_opts=
1009 ac_unrecognized_sep=
1010 # The variables have the same names as the options, with
1011 # dashes changed to underlines.
1012 cache_file=/dev/null
1019 program_transform_name=s,x,x,
1027 # Installation directory options.
1028 # These are left unexpanded so users can "make install exec_prefix=/foo"
1029 # and all the variables that are supposed to be based on exec_prefix
1030 # by default will actually change.
1031 # Use braces instead of parens because sh, perl, etc. also accept them.
1032 # (The list follows the same order as the GNU Coding Standards.)
1033 bindir='${exec_prefix}/bin'
1034 sbindir='${exec_prefix}/sbin'
1035 libexecdir='${exec_prefix}/libexec'
1036 datarootdir='${prefix}/share'
1037 datadir='${datarootdir}'
1038 sysconfdir='${prefix}/etc'
1039 sharedstatedir='${prefix}/com'
1040 localstatedir='${prefix}/var'
1041 includedir='${prefix}/include'
1042 oldincludedir='/usr/include'
1043 docdir='${datarootdir}/doc/${PACKAGE}'
1044 infodir='${datarootdir}/info'
1049 libdir='${exec_prefix}/lib'
1050 localedir='${datarootdir}/locale'
1051 mandir='${datarootdir}/man'
1057 # If the previous option needs an argument, assign it.
1058 if test -n "$ac_prev"; then
1059 eval $ac_prev=\$ac_option
1065 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069 # Accept the important Cygnus configure options, so we can diagnose typos.
1071 case $ac_dashdash$ac_option in
1075 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1078 bindir=$ac_optarg ;;
1080 -build | --build | --buil | --bui | --bu)
1081 ac_prev=build_alias ;;
1082 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1083 build_alias=$ac_optarg ;;
1085 -cache-file | --cache-file | --cache-fil | --cache-fi \
1086 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1087 ac_prev=cache_file ;;
1088 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1089 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1090 cache_file=$ac_optarg ;;
1092 --config-cache | -C)
1093 cache_file=config.cache ;;
1095 -datadir | --datadir | --datadi | --datad)
1097 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1098 datadir=$ac_optarg ;;
1100 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1101 | --dataroo | --dataro | --datar)
1102 ac_prev=datarootdir ;;
1103 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1104 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1105 datarootdir=$ac_optarg ;;
1107 -disable-* | --disable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_$ac_useropt"
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval enable_$ac_useropt=no ;;
1124 -docdir | --docdir | --docdi | --doc | --do)
1126 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1127 docdir=$ac_optarg ;;
1129 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1132 dvidir=$ac_optarg ;;
1134 -enable-* | --enable-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "enable_$ac_useropt"
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval enable_$ac_useropt=\$ac_optarg ;;
1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153 | --exec | --exe | --ex)
1154 ac_prev=exec_prefix ;;
1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157 | --exec=* | --exe=* | --ex=*)
1158 exec_prefix=$ac_optarg ;;
1160 -gas | --gas | --ga | --g)
1161 # Obsolete; use --with-gas.
1164 -help | --help | --hel | --he | -h)
1165 ac_init_help=long ;;
1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167 ac_init_help=recursive ;;
1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169 ac_init_help=short ;;
1171 -host | --host | --hos | --ho)
1172 ac_prev=host_alias ;;
1173 -host=* | --host=* | --hos=* | --ho=*)
1174 host_alias=$ac_optarg ;;
1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180 htmldir=$ac_optarg ;;
1182 -includedir | --includedir | --includedi | --included | --include \
1183 | --includ | --inclu | --incl | --inc)
1184 ac_prev=includedir ;;
1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186 | --includ=* | --inclu=* | --incl=* | --inc=*)
1187 includedir=$ac_optarg ;;
1189 -infodir | --infodir | --infodi | --infod | --info | --inf)
1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192 infodir=$ac_optarg ;;
1194 -libdir | --libdir | --libdi | --libd)
1196 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197 libdir=$ac_optarg ;;
1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200 | --libexe | --libex | --libe)
1201 ac_prev=libexecdir ;;
1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203 | --libexe=* | --libex=* | --libe=*)
1204 libexecdir=$ac_optarg ;;
1206 -localedir | --localedir | --localedi | --localed | --locale)
1207 ac_prev=localedir ;;
1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209 localedir=$ac_optarg ;;
1211 -localstatedir | --localstatedir | --localstatedi | --localstated \
1212 | --localstate | --localstat | --localsta | --localst | --locals)
1213 ac_prev=localstatedir ;;
1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216 localstatedir=$ac_optarg ;;
1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221 mandir=$ac_optarg ;;
1223 -nfp | --nfp | --nf)
1224 # Obsolete; use --without-fp.
1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 | --no-cr | --no-c | -n)
1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237 | --oldin | --oldi | --old | --ol | --o)
1238 ac_prev=oldincludedir ;;
1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242 oldincludedir=$ac_optarg ;;
1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247 prefix=$ac_optarg ;;
1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250 | --program-pre | --program-pr | --program-p)
1251 ac_prev=program_prefix ;;
1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254 program_prefix=$ac_optarg ;;
1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257 | --program-suf | --program-su | --program-s)
1258 ac_prev=program_suffix ;;
1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261 program_suffix=$ac_optarg ;;
1263 -program-transform-name | --program-transform-name \
1264 | --program-transform-nam | --program-transform-na \
1265 | --program-transform-n | --program-transform- \
1266 | --program-transform | --program-transfor \
1267 | --program-transfo | --program-transf \
1268 | --program-trans | --program-tran \
1269 | --progr-tra | --program-tr | --program-t)
1270 ac_prev=program_transform_name ;;
1271 -program-transform-name=* | --program-transform-name=* \
1272 | --program-transform-nam=* | --program-transform-na=* \
1273 | --program-transform-n=* | --program-transform-=* \
1274 | --program-transform=* | --program-transfor=* \
1275 | --program-transfo=* | --program-transf=* \
1276 | --program-trans=* | --program-tran=* \
1277 | --progr-tra=* | --program-tr=* | --program-t=*)
1278 program_transform_name=$ac_optarg ;;
1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283 pdfdir=$ac_optarg ;;
1285 -psdir | --psdir | --psdi | --psd | --ps)
1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1298 sbindir=$ac_optarg ;;
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1309 sharedstatedir=$ac_optarg ;;
1311 -site | --site | --sit)
1313 -site=* | --site=* | --sit=*)
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1354 eval with_$ac_useropt=\$ac_optarg ;;
1356 -without-* | --without-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1361 { (exit 1); exit 1; }; }
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1371 eval with_$ac_useropt=no ;;
1374 # Obsolete; use --with-x.
1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378 | --x-incl | --x-inc | --x-in | --x-i)
1379 ac_prev=x_includes ;;
1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382 x_includes=$ac_optarg ;;
1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386 ac_prev=x_libraries ;;
1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389 x_libraries=$ac_optarg ;;
1391 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1392 Try \`$0 --help' for more information." >&2
1393 { (exit 1); exit 1; }; }
1397 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1400 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1401 { (exit 1); exit 1; }; }
1402 eval $ac_envvar=\$ac_optarg
1403 export $ac_envvar ;;
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1416 if test -n "$ac_prev"; then
1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1419 { (exit 1); exit 1; }; }
1422 if test -n "$ac_unrecognized_opts"; then
1423 case $enable_option_checking in
1425 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1426 { (exit 1); exit 1; }; } ;;
1427 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 # Check all directory arguments for consistency.
1432 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433 datadir sysconfdir sharedstatedir localstatedir includedir \
1434 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435 libdir localedir mandir
1437 eval ac_val=\$$ac_var
1438 # Remove trailing slashes.
1441 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442 eval $ac_var=\$ac_val;;
1444 # Be sure to have absolute directory names.
1446 [\\/$]* | ?:[\\/]* ) continue;;
1447 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1450 { (exit 1); exit 1; }; }
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1458 target=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x; then
1462 if test "x$build_alias" = x; then
1463 cross_compiling=maybe
1464 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1465 If a cross compiler is detected then cross compile mode will be used." >&2
1466 elif test "x$build_alias" != "x$host_alias"; then
1472 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474 test "$silent" = yes && exec 6>/dev/null
1477 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1478 ac_ls_di=`ls -di .` &&
1479 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1480 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1481 { (exit 1); exit 1; }; }
1482 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1483 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1484 { (exit 1); exit 1; }; }
1487 # Find the source files, if location was not specified.
1488 if test -z "$srcdir"; then
1489 ac_srcdir_defaulted=yes
1490 # Try the directory containing this script, then the parent directory.
1491 ac_confdir=`$as_dirname -- "$as_myself" ||
1492 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1493 X"$as_myself" : 'X\(//\)[^/]' \| \
1494 X"$as_myself" : 'X\(//\)$' \| \
1495 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1496 $as_echo X"$as_myself" |
1497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1519 ac_srcdir_defaulted=no
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1523 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1524 { (exit 1); exit 1; }; }
1526 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1529 { (exit 1); exit 1; }; }
1531 # When building in place, set srcdir=.
1532 if test "$ac_abs_confdir" = "$ac_pwd"; then
1535 # Remove unnecessary trailing slashes from srcdir.
1536 # Double slashes in file names in object file debugging info
1537 # mess up M-x gdb in Emacs.
1539 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 for ac_var in $ac_precious_vars; do
1542 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1543 eval ac_env_${ac_var}_value=\$${ac_var}
1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1545 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 # Report the --help message.
1551 if test "$ac_init_help" = "long"; then
1552 # Omit some internal or obsolete options to make the list less imposing.
1553 # This message is too long to be a string in the A/UX 3.1 sh.
1555 \`configure' configures this package to adapt to many kinds of systems.
1557 Usage: $0 [OPTION]... [VAR=VALUE]...
1559 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1560 VAR=VALUE. See below for descriptions of some of the useful variables.
1562 Defaults for the options are specified in brackets.
1565 -h, --help display this help and exit
1566 --help=short display options specific to this package
1567 --help=recursive display the short help of all the included packages
1568 -V, --version display version information and exit
1569 -q, --quiet, --silent do not print \`checking...' messages
1570 --cache-file=FILE cache test results in FILE [disabled]
1571 -C, --config-cache alias for \`--cache-file=config.cache'
1572 -n, --no-create do not create output files
1573 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1575 Installation directories:
1576 --prefix=PREFIX install architecture-independent files in PREFIX
1577 [$ac_default_prefix]
1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1581 By default, \`make install' will install all the files in
1582 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1583 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1584 for instance \`--prefix=\$HOME'.
1586 For better control, use the options below.
1588 Fine tuning of the installation directories:
1589 --bindir=DIR user executables [EPREFIX/bin]
1590 --sbindir=DIR system admin executables [EPREFIX/sbin]
1591 --libexecdir=DIR program executables [EPREFIX/libexec]
1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1595 --libdir=DIR object code libraries [EPREFIX/lib]
1596 --includedir=DIR C header files [PREFIX/include]
1597 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1600 --infodir=DIR info documentation [DATAROOTDIR/info]
1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1602 --mandir=DIR man documentation [DATAROOTDIR/man]
1603 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1604 --htmldir=DIR html documentation [DOCDIR]
1605 --dvidir=DIR dvi documentation [DOCDIR]
1606 --pdfdir=DIR pdf documentation [DOCDIR]
1607 --psdir=DIR ps documentation [DOCDIR]
1613 --program-prefix=PREFIX prepend PREFIX to installed program names
1614 --program-suffix=SUFFIX append SUFFIX to installed program names
1615 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1618 --build=BUILD configure for building on BUILD [guessed]
1619 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1620 --target=TARGET configure for building compilers for TARGET [HOST]
1624 if test -n "$ac_init_help"; then
1629 --disable-option-checking ignore unrecognized --enable/--with options
1630 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1631 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1632 --enable-maintainer-mode enable make rules and dependencies not useful
1633 (and sometimes confusing) to the casual installer
1634 --enable-silent-rules less verbose build output (undo: `make V=1')
1635 --disable-silent-rules verbose build output (undo: `make V=0')
1636 --disable-dependency-tracking speeds up one-time build
1637 --enable-dependency-tracking do not reject slow dependency extractors
1638 --enable-shared[=PKGS] build shared libraries [default=yes]
1639 --enable-static[=PKGS] build static libraries [default=yes]
1640 --enable-fast-install[=PKGS]
1641 optimize for fast installation [default=yes]
1642 --disable-libtool-lock avoid locking (might break parallel builds)
1643 --enable-debug Enable generic debug support [default=no]
1646 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1647 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1648 --with-pic try to use only PIC/non-PIC objects [default=use
1650 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1651 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1652 --with-linux=PATH Path to kernel source
1653 --with-linux-obj=PATH Path to kernel build objects
1654 --with-spl=PATH Path to spl source
1655 --with-spl-obj=PATH Path to spl build objects
1656 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1657 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1658 --with-blkid support blkid caching [default=check]
1659 --with-selinux support selinux [default=check]
1661 Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1670 CCAS assembler compiler command (defaults to CC)
1671 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1673 Use these variables to override the choices made by `configure' or to help
1674 it to find libraries and programs with nonstandard names/locations.
1680 if test "$ac_init_help" = "recursive"; then
1681 # If there are subdirs, report their specific --help.
1682 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1683 test -d "$ac_dir" ||
1684 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1692 # A ".." for each directory in $ac_dir_suffix.
1693 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694 case $ac_top_builddir_sub in
1695 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1696 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1699 ac_abs_top_builddir=$ac_pwd
1700 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1701 # for backward compatibility:
1702 ac_top_builddir=$ac_top_build_prefix
1705 .) # We are building in place.
1707 ac_top_srcdir=$ac_top_builddir_sub
1708 ac_abs_top_srcdir=$ac_pwd ;;
1709 [\\/]* | ?:[\\/]* ) # Absolute name.
1710 ac_srcdir=$srcdir$ac_dir_suffix;
1711 ac_top_srcdir=$srcdir
1712 ac_abs_top_srcdir=$srcdir ;;
1714 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715 ac_top_srcdir=$ac_top_build_prefix$srcdir
1716 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720 cd "$ac_dir" || { ac_status=$?; continue; }
1721 # Check for guested configure.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1729 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1739 generated by GNU Autoconf 2.63
1741 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1742 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1743 This configure script is free software; the Free Software Foundation
1744 gives unlimited permission to copy, distribute and modify it.
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1752 It was created by $as_me, which was
1753 generated by GNU Autoconf 2.63. Invocation command line was
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 test -z "$as_dir" && as_dir=.
1789 $as_echo "PATH: $as_dir"
1805 # Keep a trace of the command line.
1806 # Strip out --no-create and --no-recursion so they do not pile up.
1807 # Strip out --silent because we don't want to record it for future runs.
1808 # Also quote any args containing shell meta-characters.
1809 # Make two passes to allow for proper duplicate-argument suppression.
1813 ac_must_keep_next=false
1819 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1821 | -silent | --silent | --silen | --sile | --sil)
1824 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1829 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1830 if test $ac_must_keep_next = true; then
1831 ac_must_keep_next=false # Got value, back to normal.
1834 *=* | --config-cache | -C | -disable-* | --disable-* \
1835 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1836 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1837 | -with-* | --with-* | -without-* | --without-* | --x)
1838 case "$ac_configure_args0 " in
1839 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1842 -* ) ac_must_keep_next=true ;;
1845 ac_configure_args="$ac_configure_args '$ac_arg'"
1850 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1851 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1853 # When interrupted or exit'd, cleanup temporary files, and complete
1854 # config.log. We remove comments because anyway the quotes in there
1855 # would cause problems or look ugly.
1856 # WARNING: Use '\'' to represent an apostrophe within the trap.
1857 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1858 trap 'exit_status=$?
1859 # Save into config.log some information that might help in debugging.
1864 ## ---------------- ##
1865 ## Cache variables. ##
1866 ## ---------------- ##
1869 # The following way of writing the cache mishandles newlines in values,
1871 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1872 eval ac_val=\$$ac_var
1876 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1877 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880 _ | IFS | as_nl) ;; #(
1881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1882 *) $as_unset $ac_var ;;
1887 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1888 *${as_nl}ac_space=\ *)
1890 "s/'\''/'\''\\\\'\'''\''/g;
1891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1902 ## ----------------- ##
1903 ## Output variables. ##
1904 ## ----------------- ##
1907 for ac_var in $ac_subst_vars
1909 eval ac_val=\$$ac_var
1911 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 $as_echo "$ac_var='\''$ac_val'\''"
1917 if test -n "$ac_subst_files"; then
1919 ## ------------------- ##
1920 ## File substitutions. ##
1921 ## ------------------- ##
1924 for ac_var in $ac_subst_files
1926 eval ac_val=\$$ac_var
1928 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930 $as_echo "$ac_var='\''$ac_val'\''"
1935 if test -s confdefs.h; then
1945 test "$ac_signal" != 0 &&
1946 $as_echo "$as_me: caught signal $ac_signal"
1947 $as_echo "$as_me: exit $exit_status"
1949 rm -f core *.core core.conftest.* &&
1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1953 for ac_signal in 1 2 13 15; do
1954 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1959 rm -f -r conftest* confdefs.h
1961 # Predefined preprocessor variables.
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_NAME "$PACKAGE_NAME"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_STRING "$PACKAGE_STRING"
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988 # Let the site file select an alternate cache file if it wants to.
1989 # Prefer an explicitly selected file to automatically selected ones.
1992 if test -n "$CONFIG_SITE"; then
1993 ac_site_file1=$CONFIG_SITE
1994 elif test "x$prefix" != xNONE; then
1995 ac_site_file1=$prefix/share/config.site
1996 ac_site_file2=$prefix/etc/config.site
1998 ac_site_file1=$ac_default_prefix/share/config.site
1999 ac_site_file2=$ac_default_prefix/etc/config.site
2001 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2003 test "x$ac_site_file" = xNONE && continue
2004 if test -r "$ac_site_file"; then
2005 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2006 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2007 sed 's/^/| /' "$ac_site_file" >&5
2012 if test -r "$cache_file"; then
2013 # Some versions of bash will fail to source /dev/null (special
2014 # files actually), so we avoid doing that.
2015 if test -f "$cache_file"; then
2016 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2017 $as_echo "$as_me: loading cache $cache_file" >&6;}
2019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2020 *) . "./$cache_file";;
2024 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2025 $as_echo "$as_me: creating cache $cache_file" >&6;}
2029 # Check that the precious variables saved in the cache have kept the same
2031 ac_cache_corrupted=false
2032 for ac_var in $ac_precious_vars; do
2033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2034 eval ac_new_set=\$ac_env_${ac_var}_set
2035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2036 eval ac_new_val=\$ac_env_${ac_var}_value
2037 case $ac_old_set,$ac_new_set in
2039 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2041 ac_cache_corrupted=: ;;
2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2048 if test "x$ac_old_val" != "x$ac_new_val"; then
2049 # differences in whitespace do not lead to failure.
2050 ac_old_val_w=`echo x $ac_old_val`
2051 ac_new_val_w=`echo x $ac_new_val`
2052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2053 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2055 ac_cache_corrupted=:
2057 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2059 eval $ac_var=\$ac_old_val
2061 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2062 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2063 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2064 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2067 # Pass precious variables to config.status.
2068 if test "$ac_new_set" = set; then
2070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2071 *) ac_arg=$ac_var=$ac_new_val ;;
2073 case " $ac_configure_args " in
2074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2075 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2079 if $ac_cache_corrupted; then
2080 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2082 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2084 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2085 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2086 { (exit 1); exit 1; }; }
2106 ac_cpp='$CPP $CPPFLAGS'
2107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2124 $as_echo_n "checking metadata... " >&6; }
2127 _zfs_ac_meta_got_file=no
2128 if test -f "$META"; then
2129 _zfs_ac_meta_got_file=yes
2131 ZFS_META_NAME=`perl -n\
2132 -e "BEGIN { \\$key=shift @ARGV; }"\
2133 -e "next unless s/^\s*\\$key[:=]//i;"\
2134 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2137 -e "s/^(['\"])(.*)\1/\\$2/;"\
2139 -e "END { print \\$val if defined \\$val; }"\
2140 '(?:NAME|PROJECT|PACKAGE)' $META`;
2141 if test -n "$ZFS_META_NAME"; then
2143 cat >>confdefs.h <<_ACEOF
2144 #define ZFS_META_NAME "$ZFS_META_NAME"
2150 ZFS_META_VERSION=`perl -n\
2151 -e "BEGIN { \\$key=shift @ARGV; }"\
2152 -e "next unless s/^\s*\\$key[:=]//i;"\
2153 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2156 -e "s/^(['\"])(.*)\1/\\$2/;"\
2158 -e "END { print \\$val if defined \\$val; }"\
2160 if test -n "$ZFS_META_VERSION"; then
2162 cat >>confdefs.h <<_ACEOF
2163 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2169 ZFS_META_RELEASE=`perl -n\
2170 -e "BEGIN { \\$key=shift @ARGV; }"\
2171 -e "next unless s/^\s*\\$key[:=]//i;"\
2172 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2175 -e "s/^(['\"])(.*)\1/\\$2/;"\
2177 -e "END { print \\$val if defined \\$val; }"\
2179 if test -n "$ZFS_META_RELEASE"; then
2181 cat >>confdefs.h <<_ACEOF
2182 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2188 ZFS_META_LICENSE=`perl -n\
2189 -e "BEGIN { \\$key=shift @ARGV; }"\
2190 -e "next unless s/^\s*\\$key[:=]//i;"\
2191 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2194 -e "s/^(['\"])(.*)\1/\\$2/;"\
2196 -e "END { print \\$val if defined \\$val; }"\
2198 if test -n "$ZFS_META_LICENSE"; then
2200 cat >>confdefs.h <<_ACEOF
2201 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2207 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2208 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2209 test -n "$ZFS_META_RELEASE" &&
2210 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2212 cat >>confdefs.h <<_ACEOF
2213 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2219 ZFS_META_DATA=`perl -n\
2220 -e "BEGIN { \\$key=shift @ARGV; }"\
2221 -e "next unless s/^\s*\\$key[:=]//i;"\
2222 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2225 -e "s/^(['\"])(.*)\1/\\$2/;"\
2227 -e "END { print \\$val if defined \\$val; }"\
2229 if test -n "$ZFS_META_DATA"; then
2231 cat >>confdefs.h <<_ACEOF
2232 #define ZFS_META_DATA "$ZFS_META_DATA"
2238 ZFS_META_AUTHOR=`perl -n\
2239 -e "BEGIN { \\$key=shift @ARGV; }"\
2240 -e "next unless s/^\s*\\$key[:=]//i;"\
2241 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2244 -e "s/^(['\"])(.*)\1/\\$2/;"\
2246 -e "END { print \\$val if defined \\$val; }"\
2248 if test -n "$ZFS_META_AUTHOR"; then
2250 cat >>confdefs.h <<_ACEOF
2251 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2258 ZFS_META_LT_CURRENT=`perl -n\
2259 -e "BEGIN { \\$key=shift @ARGV; }"\
2260 -e "next unless s/^\s*\\$key[:=]//i;"\
2261 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2264 -e "s/^(['\"])(.*)\1/\\$2/;"\
2266 -e "END { print \\$val if defined \\$val; }"\
2267 'LT_CURRENT' $META`;
2268 ZFS_META_LT_REVISION=`perl -n\
2269 -e "BEGIN { \\$key=shift @ARGV; }"\
2270 -e "next unless s/^\s*\\$key[:=]//i;"\
2271 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2274 -e "s/^(['\"])(.*)\1/\\$2/;"\
2276 -e "END { print \\$val if defined \\$val; }"\
2277 'LT_REVISION' $META`;
2278 ZFS_META_LT_AGE=`perl -n\
2279 -e "BEGIN { \\$key=shift @ARGV; }"\
2280 -e "next unless s/^\s*\\$key[:=]//i;"\
2281 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2284 -e "s/^(['\"])(.*)\1/\\$2/;"\
2286 -e "END { print \\$val if defined \\$val; }"\
2288 if test -n "$ZFS_META_LT_CURRENT" \
2289 -o -n "$ZFS_META_LT_REVISION" \
2290 -o -n "$ZFS_META_LT_AGE"; then
2291 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2292 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2293 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2295 cat >>confdefs.h <<_ACEOF
2296 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2300 cat >>confdefs.h <<_ACEOF
2301 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2305 cat >>confdefs.h <<_ACEOF
2306 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2315 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2316 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2320 for ac_dir in config "$srcdir"/config; do
2321 if test -f "$ac_dir/install-sh"; then
2323 ac_install_sh="$ac_aux_dir/install-sh -c"
2325 elif test -f "$ac_dir/install.sh"; then
2327 ac_install_sh="$ac_aux_dir/install.sh -c"
2329 elif test -f "$ac_dir/shtool"; then
2331 ac_install_sh="$ac_aux_dir/shtool install -c"
2335 if test -z "$ac_aux_dir"; then
2336 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2337 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2338 { (exit 1); exit 1; }; }
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2350 # Make sure we can run config.sub.
2351 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2352 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2353 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2354 { (exit 1); exit 1; }; }
2356 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2357 $as_echo_n "checking build system type... " >&6; }
2358 if test "${ac_cv_build+set}" = set; then
2359 $as_echo_n "(cached) " >&6
2361 ac_build_alias=$build_alias
2362 test "x$ac_build_alias" = x &&
2363 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2364 test "x$ac_build_alias" = x &&
2365 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2366 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2367 { (exit 1); exit 1; }; }
2368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2369 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2370 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2371 { (exit 1); exit 1; }; }
2374 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2378 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2379 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2380 { (exit 1); exit 1; }; };;
2383 ac_save_IFS=$IFS; IFS='-'
2389 # Remember, the first character of IFS is used to create $*,
2390 # except with old shells:
2393 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2396 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2397 $as_echo_n "checking host system type... " >&6; }
2398 if test "${ac_cv_host+set}" = set; then
2399 $as_echo_n "(cached) " >&6
2401 if test "x$host_alias" = x; then
2402 ac_cv_host=$ac_cv_build
2404 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2405 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2406 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2407 { (exit 1); exit 1; }; }
2411 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2412 $as_echo "$ac_cv_host" >&6; }
2415 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2416 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2417 { (exit 1); exit 1; }; };;
2420 ac_save_IFS=$IFS; IFS='-'
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2433 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2434 $as_echo_n "checking target system type... " >&6; }
2435 if test "${ac_cv_target+set}" = set; then
2436 $as_echo_n "(cached) " >&6
2438 if test "x$target_alias" = x; then
2439 ac_cv_target=$ac_cv_host
2441 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2442 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2443 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2444 { (exit 1); exit 1; }; }
2448 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2449 $as_echo "$ac_cv_target" >&6; }
2450 case $ac_cv_target in
2452 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2453 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2454 { (exit 1); exit 1; }; };;
2456 target=$ac_cv_target
2457 ac_save_IFS=$IFS; IFS='-'
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2467 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2470 # The aliases save the names the user supplied, while $host etc.
2471 # will get canonicalized.
2472 test -n "$target_alias" &&
2473 test "$program_prefix$program_suffix$program_transform_name" = \
2475 program_prefix=${target_alias}-
2477 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2478 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2479 # Check whether --enable-maintainer-mode was given.
2480 if test "${enable_maintainer_mode+set}" = set; then
2481 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2483 USE_MAINTAINER_MODE=no
2486 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2487 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2488 if test $USE_MAINTAINER_MODE = yes; then
2489 MAINTAINER_MODE_TRUE=
2490 MAINTAINER_MODE_FALSE='#'
2492 MAINTAINER_MODE_TRUE='#'
2493 MAINTAINER_MODE_FALSE=
2496 MAINT=$MAINTAINER_MODE_TRUE
2499 # Check whether --enable-silent-rules was given.
2500 if test "${enable_silent_rules+set}" = set; then
2501 enableval=$enable_silent_rules;
2504 case $enable_silent_rules in
2505 yes) AM_DEFAULT_VERBOSITY=0;;
2506 no) AM_DEFAULT_VERBOSITY=1;;
2507 *) AM_DEFAULT_VERBOSITY=1;;
2511 am__api_version='1.11'
2513 # Find a good install program. We prefer a C program (faster),
2514 # so one script is as good as another. But avoid the broken or
2515 # incompatible versions:
2516 # SysV /etc/install, /usr/sbin/install
2517 # SunOS /usr/etc/install
2518 # IRIX /sbin/install
2520 # AmigaOS /C/install, which installs bootblocks on floppy discs
2521 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2522 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2523 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2524 # OS/2's system install, which has a completely different semantic
2525 # ./install, which can be erroneously created by make from ./install.sh.
2526 # Reject install programs that cannot install multiple files.
2527 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2528 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2529 if test -z "$INSTALL"; then
2530 if test "${ac_cv_path_install+set}" = set; then
2531 $as_echo_n "(cached) " >&6
2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 test -z "$as_dir" && as_dir=.
2538 # Account for people who put trailing slashes in PATH elements.
2540 ./ | .// | /cC/* | \
2541 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2542 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2545 # OSF1 and SCO ODT 3.0 have their own names for install.
2546 # Don't use installbsd from OSF since it installs stuff as root
2548 for ac_prog in ginstall scoinst install; do
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2551 if test $ac_prog = install &&
2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553 # AIX install. It has an incompatible calling convention.
2555 elif test $ac_prog = install &&
2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # program-specific install script used by HP pwplus--don't use.
2560 rm -rf conftest.one conftest.two conftest.dir
2561 echo one > conftest.one
2562 echo two > conftest.two
2564 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2565 test -s conftest.one && test -s conftest.two &&
2566 test -s conftest.dir/conftest.one &&
2567 test -s conftest.dir/conftest.two
2569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582 rm -rf conftest.one conftest.two conftest.dir
2585 if test "${ac_cv_path_install+set}" = set; then
2586 INSTALL=$ac_cv_path_install
2588 # As a last resort, use the slow shell script. Don't cache a
2589 # value for INSTALL within a source directory, because that will
2590 # break other packages using the cache if that directory is
2591 # removed, or if the value is a relative name.
2592 INSTALL=$ac_install_sh
2595 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2596 $as_echo "$INSTALL" >&6; }
2598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2599 # It thinks the first close brace ends the variable substitution.
2600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2606 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2607 $as_echo_n "checking whether build environment is sane... " >&6; }
2610 echo timestamp > conftest.file
2611 # Reject unsafe characters in $srcdir or the absolute working directory
2612 # name. Accept space and tab only in the latter.
2616 *[\\\"\#\$\&\'\`$am_lf]*)
2617 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2618 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2619 { (exit 1); exit 1; }; };;
2622 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2623 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2624 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2625 { (exit 1); exit 1; }; };;
2628 # Do `set' in a subshell so we don't clobber the current shell's
2629 # arguments. Must try -L first in case configure is actually a
2630 # symlink; some systems play weird games with the mod time of symlinks
2631 # (eg FreeBSD returns the mod time of the symlink's containing
2634 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2635 if test "$*" = "X"; then
2637 set X `ls -t "$srcdir/configure" conftest.file`
2640 if test "$*" != "X $srcdir/configure conftest.file" \
2641 && test "$*" != "X conftest.file $srcdir/configure"; then
2643 # If neither matched, then we have a broken ls. This can happen
2644 # if, for instance, CONFIG_SHELL is bash and it inherits a
2645 # broken ls alias from the environment. This has actually
2646 # happened. Such a system could not be considered "sane".
2647 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2648 alias in your environment" >&5
2649 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2650 alias in your environment" >&2;}
2651 { (exit 1); exit 1; }; }
2654 test "$2" = conftest.file
2660 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2661 Check your system clock" >&5
2662 $as_echo "$as_me: error: newly created file is older than distributed files!
2663 Check your system clock" >&2;}
2664 { (exit 1); exit 1; }; }
2666 { $as_echo "$as_me:$LINENO: result: yes" >&5
2667 $as_echo "yes" >&6; }
2668 test "$program_prefix" != NONE &&
2669 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2670 # Use a double $ so make ignores it.
2671 test "$program_suffix" != NONE &&
2672 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2673 # Double any \ or $.
2674 # By default was `s,x,x', remove it if useless.
2675 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2676 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2678 # expand $ac_aux_dir to an absolute path
2679 am_aux_dir=`cd $ac_aux_dir && pwd`
2681 if test x"${MISSING+set}" != xset; then
2684 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2686 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2689 # Use eval to expand $SHELL
2690 if eval "$MISSING --run true"; then
2691 am_missing_run="$MISSING --run "
2694 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2695 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2698 if test x"${install_sh}" != xset; then
2701 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2703 install_sh="\${SHELL} $am_aux_dir/install-sh"
2707 # Installed binaries are usually stripped using `strip' when the user
2708 # run `make install-strip'. However `strip' might not be the right
2709 # tool to use in cross-compilation environments, therefore Automake
2710 # will honor the `STRIP' environment variable to overrule this program.
2711 if test "$cross_compiling" != no; then
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}strip; ac_word=$2
2715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if test "${ac_cv_prog_STRIP+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$STRIP"; then
2721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 STRIP=$ac_cv_prog_STRIP
2741 if test -n "$STRIP"; then
2742 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2743 $as_echo "$STRIP" >&6; }
2745 { $as_echo "$as_me:$LINENO: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$ac_cv_prog_STRIP"; then
2753 # Extract the first word of "strip", so it can be a program name with args.
2754 set dummy strip; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$ac_ct_STRIP"; then
2761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_STRIP="strip"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2781 if test -n "$ac_ct_STRIP"; then
2782 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2783 $as_echo "$ac_ct_STRIP" >&6; }
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2789 if test "x$ac_ct_STRIP" = x; then
2792 case $cross_compiling:$ac_tool_warned in
2794 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2801 STRIP="$ac_cv_prog_STRIP"
2805 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2808 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2809 if test -z "$MKDIR_P"; then
2810 if test "${ac_cv_path_mkdir+set}" = set; then
2811 $as_echo_n "(cached) " >&6
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2817 test -z "$as_dir" && as_dir=.
2818 for ac_prog in mkdir gmkdir; do
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2821 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2822 'mkdir (GNU coreutils) '* | \
2823 'mkdir (coreutils) '* | \
2824 'mkdir (fileutils) '4.1*)
2825 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2835 if test "${ac_cv_path_mkdir+set}" = set; then
2836 MKDIR_P="$ac_cv_path_mkdir -p"
2838 # As a last resort, use the slow shell script. Don't cache a
2839 # value for MKDIR_P within a source directory, because that will
2840 # break other packages using the cache if that directory is
2841 # removed, or if the value is a relative name.
2842 test -d ./--version && rmdir ./--version
2843 MKDIR_P="$ac_install_sh -d"
2846 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2847 $as_echo "$MKDIR_P" >&6; }
2851 [\\/$]* | ?:[\\/]*) ;;
2852 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2855 for ac_prog in gawk mawk nawk awk
2857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2858 set dummy $ac_prog; ac_word=$2
2859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_AWK+set}" = set; then
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$AWK"; then
2865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_AWK="$ac_prog"
2875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$AWK"; then
2886 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2887 $as_echo "$AWK" >&6; }
2889 { $as_echo "$as_me:$LINENO: result: no" >&5
2890 $as_echo "no" >&6; }
2894 test -n "$AWK" && break
2897 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2898 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2900 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2901 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2902 $as_echo_n "(cached) " >&6
2904 cat >conftest.make <<\_ACEOF
2907 @echo '@@@%%%=$(MAKE)=@@@%%%'
2909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2910 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2912 eval ac_cv_prog_make_${ac_make}_set=yes;;
2914 eval ac_cv_prog_make_${ac_make}_set=no;;
2918 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2919 { $as_echo "$as_me:$LINENO: result: yes" >&5
2920 $as_echo "yes" >&6; }
2923 { $as_echo "$as_me:$LINENO: result: no" >&5
2924 $as_echo "no" >&6; }
2925 SET_MAKE="MAKE=${MAKE-make}"
2928 rm -rf .tst 2>/dev/null
2929 mkdir .tst 2>/dev/null
2930 if test -d .tst; then
2935 rmdir .tst 2>/dev/null
2937 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2938 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2939 # is not polluted with repeated "-I."
2940 am__isrc=' -I$(srcdir)'
2941 # test to see if srcdir already configured
2942 if test -f $srcdir/config.status; then
2943 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2944 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2945 { (exit 1); exit 1; }; }
2949 # test whether we have cygpath
2950 if test -z "$CYGPATH_W"; then
2951 if (cygpath --version) >/dev/null 2>/dev/null; then
2952 CYGPATH_W='cygpath -w'
2959 # Define the identity of the package.
2960 PACKAGE=$ZFS_META_NAME
2961 VERSION=$ZFS_META_VERSION
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE "$PACKAGE"
2969 cat >>confdefs.h <<_ACEOF
2970 #define VERSION "$VERSION"
2973 # Some tools Automake needs.
2975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2989 # We need awk for the "check" target. The system "awk" is bad on
2991 # Always define AMTAR for backward compatibility.
2993 AMTAR=${AMTAR-"${am_missing_run}tar"}
2995 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3001 ac_config_headers="$ac_config_headers zfs_config.h"
3004 # Find a good install program. We prefer a C program (faster),
3005 # so one script is as good as another. But avoid the broken or
3006 # incompatible versions:
3007 # SysV /etc/install, /usr/sbin/install
3008 # SunOS /usr/etc/install
3009 # IRIX /sbin/install
3011 # AmigaOS /C/install, which installs bootblocks on floppy discs
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # OS/2's system install, which has a completely different semantic
3016 # ./install, which can be erroneously created by make from ./install.sh.
3017 # Reject install programs that cannot install multiple files.
3018 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3020 if test -z "$INSTALL"; then
3021 if test "${ac_cv_path_install+set}" = set; then
3022 $as_echo_n "(cached) " >&6
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 test -z "$as_dir" && as_dir=.
3029 # Account for people who put trailing slashes in PATH elements.
3031 ./ | .// | /cC/* | \
3032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3036 # OSF1 and SCO ODT 3.0 have their own names for install.
3037 # Don't use installbsd from OSF since it installs stuff as root
3039 for ac_prog in ginstall scoinst install; do
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3042 if test $ac_prog = install &&
3043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044 # AIX install. It has an incompatible calling convention.
3046 elif test $ac_prog = install &&
3047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # program-specific install script used by HP pwplus--don't use.
3051 rm -rf conftest.one conftest.two conftest.dir
3052 echo one > conftest.one
3053 echo two > conftest.two
3055 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3056 test -s conftest.one && test -s conftest.two &&
3057 test -s conftest.dir/conftest.one &&
3058 test -s conftest.dir/conftest.two
3060 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3073 rm -rf conftest.one conftest.two conftest.dir
3076 if test "${ac_cv_path_install+set}" = set; then
3077 INSTALL=$ac_cv_path_install
3079 # As a last resort, use the slow shell script. Don't cache a
3080 # value for INSTALL within a source directory, because that will
3081 # break other packages using the cache if that directory is
3082 # removed, or if the value is a relative name.
3083 INSTALL=$ac_install_sh
3086 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3087 $as_echo "$INSTALL" >&6; }
3089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3090 # It thinks the first close brace ends the variable substitution.
3091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3135 { $as_echo "$as_me:$LINENO: result: no" >&5
3136 $as_echo "no" >&6; }
3141 if test -z "$ac_cv_prog_CC"; then
3143 # Extract the first word of "gcc", so it can be a program name with args.
3144 set dummy gcc; ac_word=$2
3145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3148 $as_echo_n "(cached) " >&6
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CC="gcc"
3161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3175 { $as_echo "$as_me:$LINENO: result: no" >&5
3176 $as_echo "no" >&6; }
3179 if test "x$ac_ct_CC" = x; then
3182 case $cross_compiling:$ac_tool_warned in
3184 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3194 if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}cc; ac_word=$2
3198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_CC="${ac_tool_prefix}cc"
3214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:$LINENO: result: no" >&5
3229 $as_echo "no" >&6; }
3235 if test -z "$CC"; then
3236 # Extract the first word of "cc", so it can be a program name with args.
3237 set dummy cc; ac_word=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3255 ac_prog_rejected=yes
3259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test $ac_prog_rejected = yes; then
3267 # We found a bogon in the path, so make sure we never use it.
3268 set dummy $ac_cv_prog_CC
3270 if test $# != 0; then
3271 # We chose a different compiler from the bogus one.
3272 # However, it has the same basename, so the bogon will be chosen
3273 # first if we set CC to just the basename; use the full file name.
3275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3285 { $as_echo "$as_me:$LINENO: result: no" >&5
3286 $as_echo "no" >&6; }
3291 if test -z "$CC"; then
3292 if test -n "$ac_tool_prefix"; then
3293 for ac_prog in cl.exe
3295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_CC+set}" = set; then
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3332 test -n "$CC" && break
3335 if test -z "$CC"; then
3337 for ac_prog in cl.exe
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set dummy $ac_prog; ac_word=$2
3341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC="$ac_prog"
3357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3371 { $as_echo "$as_me:$LINENO: result: no" >&5
3372 $as_echo "no" >&6; }
3376 test -n "$ac_ct_CC" && break
3379 if test "x$ac_ct_CC" = x; then
3382 case $cross_compiling:$ac_tool_warned in
3384 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3395 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3398 See \`config.log' for more details." >&5
3399 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3400 See \`config.log' for more details." >&2;}
3401 { (exit 1); exit 1; }; }; }
3403 # Provide some information about the compiler.
3404 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3407 { (ac_try="$ac_compiler --version >&5"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3413 $as_echo "$ac_try_echo") >&5
3414 (eval "$ac_compiler --version >&5") 2>&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }
3418 { (ac_try="$ac_compiler -v >&5"
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3424 $as_echo "$ac_try_echo") >&5
3425 (eval "$ac_compiler -v >&5") 2>&5
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }
3429 { (ac_try="$ac_compiler -V >&5"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435 $as_echo "$ac_try_echo") >&5
3436 (eval "$ac_compiler -V >&5") 2>&5
3438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3461 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3462 $as_echo_n "checking for C compiler default output file name... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3469 for ac_file in $ac_files
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 if { (ac_try="$ac_link_default"
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484 $as_echo "$ac_try_echo") >&5
3485 (eval "$ac_link_default") 2>&5
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; then
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3494 for ac_file in $ac_files ''
3496 test -f "$ac_file" || continue
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3501 # We found the default executable, but exeext='' is most
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3525 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3526 $as_echo "$ac_file" >&6; }
3527 if test -z "$ac_file"; then
3528 $as_echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3534 See \`config.log' for more details." >&5
3535 $as_echo "$as_me: error: C compiler cannot create executables
3536 See \`config.log' for more details." >&2;}
3537 { (exit 77); exit 77; }; }; }
3540 ac_exeext=$ac_cv_exeext
3542 # Check that the compiler produces executables we can run. If not, either
3543 # the compiler is broken, or we cross compile.
3544 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3545 $as_echo_n "checking whether the C compiler works... " >&6; }
3546 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3547 # If not cross compiling, check that we can run a simple program.
3548 if test "$cross_compiling" != yes; then
3549 if { ac_try='./$ac_file'
3550 { (case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_try") 2>&5
3558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; }; then
3562 if test "$cross_compiling" = maybe; then
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3568 If you meant to cross compile, use \`--host'.
3569 See \`config.log' for more details." >&5
3570 $as_echo "$as_me: error: cannot run C compiled programs.
3571 If you meant to cross compile, use \`--host'.
3572 See \`config.log' for more details." >&2;}
3573 { (exit 1); exit 1; }; }; }
3577 { $as_echo "$as_me:$LINENO: result: yes" >&5
3578 $as_echo "yes" >&6; }
3580 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581 ac_clean_files=$ac_clean_files_save
3582 # Check that the compiler produces executables we can run. If not, either
3583 # the compiler is broken, or we cross compile.
3584 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3585 $as_echo_n "checking whether we are cross compiling... " >&6; }
3586 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3587 $as_echo "$cross_compiling" >&6; }
3589 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3590 $as_echo_n "checking for suffix of executables... " >&6; }
3591 if { (ac_try="$ac_link"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3597 $as_echo "$ac_try_echo") >&5
3598 (eval "$ac_link") 2>&5
3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; then
3602 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3603 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3604 # work properly (i.e., refer to `conftest.exe'), while it won't with
3606 for ac_file in conftest.exe conftest conftest.*; do
3607 test -f "$ac_file" || continue
3609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3610 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3618 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3619 See \`config.log' for more details." >&5
3620 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3621 See \`config.log' for more details." >&2;}
3622 { (exit 1); exit 1; }; }; }
3625 rm -f conftest$ac_cv_exeext
3626 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3627 $as_echo "$ac_cv_exeext" >&6; }
3629 rm -f conftest.$ac_ext
3630 EXEEXT=$ac_cv_exeext
3632 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3633 $as_echo_n "checking for suffix of object files... " >&6; }
3634 if test "${ac_cv_objext+set}" = set; then
3635 $as_echo_n "(cached) " >&6
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.o conftest.obj
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; then
3664 for ac_file in conftest.o conftest.obj conftest.*; do
3665 test -f "$ac_file" || continue;
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3679 See \`config.log' for more details." >&5
3680 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3681 See \`config.log' for more details." >&2;}
3682 { (exit 1); exit 1; }; }; }
3685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3688 $as_echo "$ac_cv_objext" >&6; }
3689 OBJEXT=$ac_cv_objext
3691 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721 $as_echo "$ac_try_echo") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3724 grep -v '^ *+' conftest.er1 >conftest.err
3726 cat conftest.err >&5
3727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_c_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3734 $as_echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3744 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3746 if test $ac_compiler_gnu = yes; then
3751 ac_test_CFLAGS=${CFLAGS+set}
3752 ac_save_CFLAGS=$CFLAGS
3753 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3755 if test "${ac_cv_prog_cc_g+set}" = set; then
3756 $as_echo_n "(cached) " >&6
3758 ac_save_c_werror_flag=$ac_c_werror_flag
3759 ac_c_werror_flag=yes
3762 cat >conftest.$ac_ext <<_ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3784 $as_echo "$ac_try_echo") >&5
3785 (eval "$ac_compile") 2>conftest.er1
3787 grep -v '^ *+' conftest.er1 >conftest.err
3789 cat conftest.err >&5
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } && {
3792 test -z "$ac_c_werror_flag" ||
3793 test ! -s conftest.err
3794 } && test -s conftest.$ac_objext; then
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3816 rm -f conftest.$ac_objext
3817 if { (ac_try="$ac_compile"
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3823 $as_echo "$ac_try_echo") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3836 $as_echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3863 $as_echo "$ac_try_echo") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3876 $as_echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 ac_c_werror_flag=$ac_save_c_werror_flag
3891 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3892 $as_echo "$ac_cv_prog_cc_g" >&6; }
3893 if test "$ac_test_CFLAGS" = set; then
3894 CFLAGS=$ac_save_CFLAGS
3895 elif test $ac_cv_prog_cc_g = yes; then
3896 if test "$GCC" = yes; then
3902 if test "$GCC" = yes; then
3908 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3909 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3910 if test "${ac_cv_prog_cc_c89+set}" = set; then
3911 $as_echo_n "(cached) " >&6
3913 ac_cv_prog_cc_c89=no
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3923 #include <sys/types.h>
3924 #include <sys/stat.h>
3925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3926 struct buf { int x; };
3927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3928 static char *e (p, i)
3934 static char *f (char * (*g) (char **, int), char **p, ...)
3939 s = g (p, va_arg (v,int));
3944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3945 function prototypes and stuff, but not '\xHH' hex character constants.
3946 These don't provoke an error unfortunately, instead are silently treated
3947 as 'x'. The following induces an error, until -std is added to get
3948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3949 array size at least. It's necessary to write '\x00'==0 to get something
3950 that's true only with -std. */
3951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3954 inside strings and character constants. */
3956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958 int test (int i, double x);
3959 struct s1 {int (*f) (int a);};
3960 struct s2 {int (*f) (double a);};
3961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 CC="$ac_save_CC $ac_arg"
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3983 $as_echo "$ac_try_echo") >&5
3984 (eval "$ac_compile") 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest.$ac_objext; then
3994 ac_cv_prog_cc_c89=$ac_arg
3996 $as_echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.$ac_ext >&5
4002 rm -f core conftest.err conftest.$ac_objext
4003 test "x$ac_cv_prog_cc_c89" != "xno" && break
4005 rm -f conftest.$ac_ext
4010 case "x$ac_cv_prog_cc_c89" in
4012 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4013 $as_echo "none needed" >&6; } ;;
4015 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4016 $as_echo "unsupported" >&6; } ;;
4018 CC="$CC $ac_cv_prog_cc_c89"
4019 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4020 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029 DEPDIR="${am__leading_dot}deps"
4031 ac_config_commands="$ac_config_commands depfiles"
4034 am_make=${MAKE-make}
4035 cat > confinc << 'END'
4037 @echo this is the am__doit target
4040 # If we don't find an include directive, just comment out the code.
4041 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4042 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4046 # First try GNU make style include.
4047 echo "include confinc" > confmf
4048 # Ignore all kinds of additional output from `make'.
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4056 # Now try BSD make style include.
4057 if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4069 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4070 $as_echo "$_am_result" >&6; }
4071 rm -f confinc confmf
4073 # Check whether --enable-dependency-tracking was given.
4074 if test "${enable_dependency_tracking+set}" = set; then
4075 enableval=$enable_dependency_tracking;
4078 if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4082 if test "x$enable_dependency_tracking" != xno; then
4092 depcc="$CC" am_compiler_list=
4094 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4095 $as_echo_n "checking dependency style of $depcc... " >&6; }
4096 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4097 $as_echo_n "(cached) " >&6
4099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4100 # We make a subdir and do the tests there. Otherwise we can end up
4101 # making bogus files that we don't know about and never remove. For
4102 # instance it was reported that on HP-UX the gcc test will end up
4103 # making a dummy file named `D' -- because `-MD' means `put the output
4106 # Copy depcomp to subdir because otherwise we won't find it if we're
4107 # using a relative directory.
4108 cp "$am_depcomp" conftest.dir
4110 # We will build objects and dependencies in a subdirectory because
4111 # it helps to detect inapplicable dependency modes. For instance
4112 # both Tru64's cc and ICC support -MD to output dependencies as a
4113 # side effect of compilation, but ICC will put the dependencies in
4114 # the current directory while Tru64 will put them in the object
4118 am_cv_CC_dependencies_compiler_type=none
4119 if test "$am_compiler_list" = ""; then
4120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4123 case " $depcc " in #(
4124 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4127 for depmode in $am_compiler_list; do
4128 # Setup a source with many dependencies, because some compilers
4129 # like to wrap large dependency lists on column 80 (with \), and
4130 # we should not choose a depcomp mode which is confused by this.
4132 # We need to recreate these files for each test, as the compiler may
4133 # overwrite some of them when testing with obscure command lines.
4134 # This happens at least with the AIX C compiler.
4136 for i in 1 2 3 4 5 6; do
4137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4139 # Solaris 8's {/usr,}/bin/sh.
4140 touch sub/conftst$i.h
4142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4144 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4145 # mode. It turns out that the SunPro C++ compiler does not properly
4146 # handle `-M -o', and we need to detect this. Also, some Intel
4147 # versions had trouble with output in subdirs
4148 am__obj=sub/conftest.${OBJEXT-o}
4149 am__minus_obj="-o $am__obj"
4152 # This depmode causes a compiler race in universal mode.
4153 test "$am__universal" = false || continue
4156 # after this tag, mechanisms are not by side-effect, so they'll
4157 # only be used when explicitly requested
4158 if test "x$enable_dependency_tracking" = xyes; then
4164 msvisualcpp | msvcmsys)
4165 # This compiler won't grok `-c -o', but also, the minuso test has
4166 # not run yet. These depmodes are late enough in the game, and
4167 # so weak that their functioning should not be impacted.
4168 am__obj=conftest.${OBJEXT-o}
4173 if depmode=$depmode \
4174 source=sub/conftest.c object=$am__obj \
4175 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4176 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4177 >/dev/null 2>conftest.err &&
4178 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4179 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4180 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4181 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4182 # icc doesn't choke on unknown options, it will just issue warnings
4183 # or remarks (even with -Werror). So we grep stderr for any message
4184 # that says an option was ignored or not supported.
4185 # When given -MP, icc 7.0 and 7.1 complain thusly:
4186 # icc: Command line warning: ignoring option '-M'; no argument required
4187 # The diagnosis changed in icc 8.0:
4188 # icc: Command line remark: option '-MP' not supported
4189 if (grep 'ignoring option' conftest.err ||
4190 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4191 am_cv_CC_dependencies_compiler_type=$depmode
4200 am_cv_CC_dependencies_compiler_type=none
4204 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4205 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4206 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4209 test "x$enable_dependency_tracking" != xno \
4210 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4212 am__fastdepCC_FALSE='#'
4214 am__fastdepCC_TRUE='#'
4215 am__fastdepCC_FALSE=
4221 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4222 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4227 macro_version='2.2.6b'
4228 macro_revision='1.3017'
4242 ltmain="$ac_aux_dir/ltmain.sh"
4244 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4245 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4246 if test "${ac_cv_path_SED+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4249 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4250 for ac_i in 1 2 3 4 5 6 7; do
4251 ac_script="$ac_script$as_nl$ac_script"
4253 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4254 $as_unset ac_script || ac_script=
4255 if test -z "$SED"; then
4256 ac_path_SED_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in sed gsed; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4267 # Check for GNU ac_path_SED and select it if it is found.
4268 # Check for GNU $ac_path_SED
4269 case `"$ac_path_SED" --version 2>&1` in
4271 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4274 $as_echo_n 0123456789 >"conftest.in"
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo '' >> "conftest.nl"
4281 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 ac_count=`expr $ac_count + 1`
4284 if test $ac_count -gt ${ac_path_SED_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_SED="$ac_path_SED"
4287 ac_path_SED_max=$ac_count
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 $ac_path_SED_found && break 3
4300 if test -z "$ac_cv_path_SED"; then
4301 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4302 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4303 { (exit 1); exit 1; }; }
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4311 $as_echo "$ac_cv_path_SED" >&6; }
4312 SED="$ac_cv_path_SED"
4315 test -z "$SED" && SED=sed
4316 Xsed="$SED -e 1s/^X//"
4328 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4329 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4330 if test "${ac_cv_path_GREP+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4333 if test -z "$GREP"; then
4334 ac_path_GREP_found=false
4335 # Loop through the user's path and test for each of PROGNAME-LIST
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340 test -z "$as_dir" && as_dir=.
4341 for ac_prog in grep ggrep; do
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4344 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4345 # Check for GNU ac_path_GREP and select it if it is found.
4346 # Check for GNU $ac_path_GREP
4347 case `"$ac_path_GREP" --version 2>&1` in
4349 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4352 $as_echo_n 0123456789 >"conftest.in"
4355 cat "conftest.in" "conftest.in" >"conftest.tmp"
4356 mv "conftest.tmp" "conftest.in"
4357 cp "conftest.in" "conftest.nl"
4358 $as_echo 'GREP' >> "conftest.nl"
4359 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4361 ac_count=`expr $ac_count + 1`
4362 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4363 # Best one so far, save it but keep looking for a better one
4364 ac_cv_path_GREP="$ac_path_GREP"
4365 ac_path_GREP_max=$ac_count
4367 # 10*(2^10) chars as input seems more than enough
4368 test $ac_count -gt 10 && break
4370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373 $ac_path_GREP_found && break 3
4378 if test -z "$ac_cv_path_GREP"; then
4379 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4380 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4381 { (exit 1); exit 1; }; }
4384 ac_cv_path_GREP=$GREP
4388 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4389 $as_echo "$ac_cv_path_GREP" >&6; }
4390 GREP="$ac_cv_path_GREP"
4393 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4394 $as_echo_n "checking for egrep... " >&6; }
4395 if test "${ac_cv_path_EGREP+set}" = set; then
4396 $as_echo_n "(cached) " >&6
4398 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399 then ac_cv_path_EGREP="$GREP -E"
4401 if test -z "$EGREP"; then
4402 ac_path_EGREP_found=false
4403 # Loop through the user's path and test for each of PROGNAME-LIST
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408 test -z "$as_dir" && as_dir=.
4409 for ac_prog in egrep; do
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4413 # Check for GNU ac_path_EGREP and select it if it is found.
4414 # Check for GNU $ac_path_EGREP
4415 case `"$ac_path_EGREP" --version 2>&1` in
4417 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4420 $as_echo_n 0123456789 >"conftest.in"
4423 cat "conftest.in" "conftest.in" >"conftest.tmp"
4424 mv "conftest.tmp" "conftest.in"
4425 cp "conftest.in" "conftest.nl"
4426 $as_echo 'EGREP' >> "conftest.nl"
4427 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429 ac_count=`expr $ac_count + 1`
4430 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431 # Best one so far, save it but keep looking for a better one
4432 ac_cv_path_EGREP="$ac_path_EGREP"
4433 ac_path_EGREP_max=$ac_count
4435 # 10*(2^10) chars as input seems more than enough
4436 test $ac_count -gt 10 && break
4438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4441 $ac_path_EGREP_found && break 3
4446 if test -z "$ac_cv_path_EGREP"; then
4447 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4448 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4449 { (exit 1); exit 1; }; }
4452 ac_cv_path_EGREP=$EGREP
4457 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4458 $as_echo "$ac_cv_path_EGREP" >&6; }
4459 EGREP="$ac_cv_path_EGREP"
4462 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4463 $as_echo_n "checking for fgrep... " >&6; }
4464 if test "${ac_cv_path_FGREP+set}" = set; then
4465 $as_echo_n "(cached) " >&6
4467 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4468 then ac_cv_path_FGREP="$GREP -F"
4470 if test -z "$FGREP"; then
4471 ac_path_FGREP_found=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4477 test -z "$as_dir" && as_dir=.
4478 for ac_prog in fgrep; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4481 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4482 # Check for GNU ac_path_FGREP and select it if it is found.
4483 # Check for GNU $ac_path_FGREP
4484 case `"$ac_path_FGREP" --version 2>&1` in
4486 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4489 $as_echo_n 0123456789 >"conftest.in"
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'FGREP' >> "conftest.nl"
4496 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498 ac_count=`expr $ac_count + 1`
4499 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_FGREP="$ac_path_FGREP"
4502 ac_path_FGREP_max=$ac_count
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4510 $ac_path_FGREP_found && break 3
4515 if test -z "$ac_cv_path_FGREP"; then
4516 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4517 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4518 { (exit 1); exit 1; }; }
4521 ac_cv_path_FGREP=$FGREP
4526 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4527 $as_echo "$ac_cv_path_FGREP" >&6; }
4528 FGREP="$ac_cv_path_FGREP"
4531 test -z "$GREP" && GREP=grep
4551 # Check whether --with-gnu-ld was given.
4552 if test "${with_gnu_ld+set}" = set; then
4553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4559 if test "$GCC" = yes; then
4560 # Check if gcc -print-prog-name=ld gives a path.
4561 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4562 $as_echo_n "checking for ld used by $CC... " >&6; }
4565 # gcc leaves a trailing carriage return which upsets mingw
4566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4571 # Accept absolute paths.
4573 re_direlt='/[^/][^/]*/\.\./'
4574 # Canonicalize the pathname of ld
4575 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4576 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4577 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4579 test -z "$LD" && LD="$ac_prog"
4582 # If it fails, then pretend we aren't using GCC.
4586 # If it is relative, then search for the first ld in PATH.
4590 elif test "$with_gnu_ld" = yes; then
4591 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4592 $as_echo_n "checking for GNU ld... " >&6; }
4594 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4595 $as_echo_n "checking for non-GNU ld... " >&6; }
4597 if test "${lt_cv_path_LD+set}" = set; then
4598 $as_echo_n "(cached) " >&6
4600 if test -z "$LD"; then
4601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4602 for ac_dir in $PATH; do
4604 test -z "$ac_dir" && ac_dir=.
4605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4606 lt_cv_path_LD="$ac_dir/$ac_prog"
4607 # Check to see if the program is GNU ld. I'd rather use --version,
4608 # but apparently some variants of GNU ld only accept -v.
4609 # Break only if it was the GNU/non-GNU ld that we prefer.
4610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4611 *GNU* | *'with BFD'*)
4612 test "$with_gnu_ld" != no && break
4615 test "$with_gnu_ld" != yes && break
4622 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4627 if test -n "$LD"; then
4628 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4629 $as_echo "$LD" >&6; }
4631 { $as_echo "$as_me:$LINENO: result: no" >&5
4632 $as_echo "no" >&6; }
4634 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4635 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4636 { (exit 1); exit 1; }; }
4637 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4639 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4640 $as_echo_n "(cached) " >&6
4642 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4643 case `$LD -v 2>&1 </dev/null` in
4644 *GNU* | *'with BFD'*)
4645 lt_cv_prog_gnu_ld=yes
4648 lt_cv_prog_gnu_ld=no
4652 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4653 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4654 with_gnu_ld=$lt_cv_prog_gnu_ld
4664 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4665 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4666 if test "${lt_cv_path_NM+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$NM"; then
4670 # Let the user override the test.
4673 lt_nm_to_check="${ac_tool_prefix}nm"
4674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4675 lt_nm_to_check="$lt_nm_to_check nm"
4677 for lt_tmp_nm in $lt_nm_to_check; do
4678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4681 test -z "$ac_dir" && ac_dir=.
4682 tmp_nm="$ac_dir/$lt_tmp_nm"
4683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4684 # Check to see if the nm accepts a BSD-compat flag.
4685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4686 # nm: unknown option "B" ignored
4687 # Tru64's nm complains that /dev/null is an invalid object file
4688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4689 */dev/null* | *'Invalid file or object type'*)
4690 lt_cv_path_NM="$tmp_nm -B"
4694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4696 lt_cv_path_NM="$tmp_nm -p"
4700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4701 continue # so that we can try to find one that supports BSD flags
4710 : ${lt_cv_path_NM=no}
4713 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4714 $as_echo "$lt_cv_path_NM" >&6; }
4715 if test "$lt_cv_path_NM" != "no"; then
4718 # Didn't find any BSD compatible name lister, look for dumpbin.
4719 if test -n "$ac_tool_prefix"; then
4720 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 $as_echo_n "checking for $ac_word... " >&6; }
4726 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$DUMPBIN"; then
4730 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 test -z "$as_dir" && as_dir=.
4737 for ac_exec_ext in '' $ac_executable_extensions; do
4738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4739 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 DUMPBIN=$ac_cv_prog_DUMPBIN
4750 if test -n "$DUMPBIN"; then
4751 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4752 $as_echo "$DUMPBIN" >&6; }
4754 { $as_echo "$as_me:$LINENO: result: no" >&5
4755 $as_echo "no" >&6; }
4759 test -n "$DUMPBIN" && break
4762 if test -z "$DUMPBIN"; then
4763 ac_ct_DUMPBIN=$DUMPBIN
4764 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4766 # Extract the first word of "$ac_prog", so it can be a program name with args.
4767 set dummy $ac_prog; ac_word=$2
4768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4794 if test -n "$ac_ct_DUMPBIN"; then
4795 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4796 $as_echo "$ac_ct_DUMPBIN" >&6; }
4798 { $as_echo "$as_me:$LINENO: result: no" >&5
4799 $as_echo "no" >&6; }
4803 test -n "$ac_ct_DUMPBIN" && break
4806 if test "x$ac_ct_DUMPBIN" = x; then
4809 case $cross_compiling:$ac_tool_warned in
4811 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813 ac_tool_warned=yes ;;
4815 DUMPBIN=$ac_ct_DUMPBIN
4820 if test "$DUMPBIN" != ":"; then
4824 test -z "$NM" && NM=nm
4831 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4832 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4833 if test "${lt_cv_nm_interface+set}" = set; then
4834 $as_echo_n "(cached) " >&6
4836 lt_cv_nm_interface="BSD nm"
4837 echo "int some_variable = 0;" > conftest.$ac_ext
4838 (eval echo "\"\$as_me:4838: $ac_compile\"" >&5)
4839 (eval "$ac_compile" 2>conftest.err)
4840 cat conftest.err >&5
4841 (eval echo "\"\$as_me:4841: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4842 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4843 cat conftest.err >&5
4844 (eval echo "\"\$as_me:4844: output\"" >&5)
4845 cat conftest.out >&5
4846 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4847 lt_cv_nm_interface="MS dumpbin"
4851 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4852 $as_echo "$lt_cv_nm_interface" >&6; }
4854 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4855 $as_echo_n "checking whether ln -s works... " >&6; }
4857 if test "$LN_S" = "ln -s"; then
4858 { $as_echo "$as_me:$LINENO: result: yes" >&5
4859 $as_echo "yes" >&6; }
4861 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4862 $as_echo "no, using $LN_S" >&6; }
4865 # find the maximum length of command line arguments
4866 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4867 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4868 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4869 $as_echo_n "(cached) " >&6
4876 # On DJGPP, this test can blow up pretty badly due to problems in libc
4877 # (any single argument exceeding 2000 bytes causes a buffer overrun
4878 # during glob expansion). Even if it were fixed, the result of this
4879 # check would be larger than it should be.
4880 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4884 # Under GNU Hurd, this test is not required because there is
4885 # no limit to the length of command line arguments.
4886 # Libtool will interpret -1 as no limit whatsoever
4887 lt_cv_sys_max_cmd_len=-1;
4890 cygwin* | mingw* | cegcc*)
4891 # On Win9x/ME, this test blows up -- it succeeds, but takes
4892 # about 5 minutes as the teststring grows exponentially.
4893 # Worse, since 9x/ME are not pre-emptively multitasking,
4894 # you end up with a "frozen" computer, even though with patience
4895 # the test eventually succeeds (with a max line length of 256k).
4896 # Instead, let's just punt: use the minimum linelength reported by
4897 # all of the supported platforms: 8192 (on NT/2K/XP).
4898 lt_cv_sys_max_cmd_len=8192;
4902 # On AmigaOS with pdksh, this test takes hours, literally.
4903 # So we just punt and use a minimum line length of 8192.
4904 lt_cv_sys_max_cmd_len=8192;
4907 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4908 # This has been around since 386BSD, at least. Likely further.
4909 if test -x /sbin/sysctl; then
4910 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911 elif test -x /usr/sbin/sysctl; then
4912 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4914 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4916 # And add a safety zone
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4922 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923 lt_cv_sys_max_cmd_len=196608
4927 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4928 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4929 # nice to cause kernel panics so lets avoid the loop below.
4930 # First set a reasonable default.
4931 lt_cv_sys_max_cmd_len=16384
4933 if test -x /sbin/sysconfig; then
4934 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4935 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4940 lt_cv_sys_max_cmd_len=102400
4942 sysv5* | sco5v6* | sysv4.2uw2*)
4943 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4944 if test -n "$kargmax"; then
4945 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4947 lt_cv_sys_max_cmd_len=32768
4951 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4952 if test -n "$lt_cv_sys_max_cmd_len"; then
4953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4956 # Make teststring a little bigger before we do anything with it.
4957 # a 1K string should be a reasonable start.
4958 for i in 1 2 3 4 5 6 7 8 ; do
4959 teststring=$teststring$teststring
4961 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4962 # If test is not a shell built-in, we'll probably end up computing a
4963 # maximum length that is only half of the actual maximum length, but
4965 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4966 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4967 test $i != 17 # 1/2 MB should be enough
4970 teststring=$teststring$teststring
4972 # Only check the string length outside the loop.
4973 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4975 # Add a significant safety factor because C++ compilers can tack on
4976 # massive amounts of additional arguments before passing them to the
4977 # linker. It appears as though 1/2 is a usable value.
4978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4985 if test -n $lt_cv_sys_max_cmd_len ; then
4986 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4987 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4989 { $as_echo "$as_me:$LINENO: result: none" >&5
4990 $as_echo "none" >&6; }
4992 max_cmd_len=$lt_cv_sys_max_cmd_len
5003 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5004 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5005 # Try some XSI features
5008 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5010 && eval 'test $(( 1 + 1 )) -eq 2 \
5011 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5013 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5014 $as_echo "$xsi_shell" >&6; }
5017 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5018 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5020 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5022 && lt_shell_append=yes
5023 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5024 $as_echo "$lt_shell_append" >&6; }
5027 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5037 # test EBCDIC or ASCII
5038 case `echo X|tr X '\101'` in
5039 A) # ASCII based system
5040 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5041 lt_SP2NL='tr \040 \012'
5042 lt_NL2SP='tr \015\012 \040\040'
5044 *) # EBCDIC based system
5045 lt_SP2NL='tr \100 \n'
5046 lt_NL2SP='tr \r\n \100\100'
5058 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5059 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5060 if test "${lt_cv_ld_reload_flag+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5063 lt_cv_ld_reload_flag='-r'
5065 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5066 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5067 reload_flag=$lt_cv_ld_reload_flag
5068 case $reload_flag in
5070 *) reload_flag=" $reload_flag" ;;
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5075 if test "$GCC" = yes; then
5076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5091 if test -n "$ac_tool_prefix"; then
5092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5093 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5099 if test -n "$OBJDUMP"; then
5100 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 test -z "$as_dir" && as_dir=.
5107 for ac_exec_ext in '' $ac_executable_extensions; do
5108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5109 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 OBJDUMP=$ac_cv_prog_OBJDUMP
5120 if test -n "$OBJDUMP"; then
5121 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5122 $as_echo "$OBJDUMP" >&6; }
5124 { $as_echo "$as_me:$LINENO: result: no" >&5
5125 $as_echo "no" >&6; }
5130 if test -z "$ac_cv_prog_OBJDUMP"; then
5131 ac_ct_OBJDUMP=$OBJDUMP
5132 # Extract the first word of "objdump", so it can be a program name with args.
5133 set dummy objdump; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5139 if test -n "$ac_ct_OBJDUMP"; then
5140 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5160 if test -n "$ac_ct_OBJDUMP"; then
5161 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5162 $as_echo "$ac_ct_OBJDUMP" >&6; }
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5168 if test "x$ac_ct_OBJDUMP" = x; then
5171 case $cross_compiling:$ac_tool_warned in
5173 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5175 ac_tool_warned=yes ;;
5177 OBJDUMP=$ac_ct_OBJDUMP
5180 OBJDUMP="$ac_cv_prog_OBJDUMP"
5183 test -z "$OBJDUMP" && OBJDUMP=objdump
5193 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5194 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5195 if test "${lt_cv_deplibs_check_method+set}" = set; then
5196 $as_echo_n "(cached) " >&6
5198 lt_cv_file_magic_cmd='$MAGIC_CMD'
5199 lt_cv_file_magic_test_file=
5200 lt_cv_deplibs_check_method='unknown'
5201 # Need to set the preceding variable on all platforms that support
5202 # interlibrary dependencies.
5203 # 'none' -- dependencies not supported.
5204 # `unknown' -- same as none, but documents that we really don't know.
5205 # 'pass_all' -- all dependencies passed with no checks.
5206 # 'test_compile' -- check by making test program.
5207 # 'file_magic [[regex]]' -- check by looking for files in library path
5208 # which responds to the $file_magic_cmd with a given extended regex.
5209 # If you have `file' or equivalent on your system and you're not sure
5210 # whether `pass_all' will *always* work, you probably want this one.
5214 lt_cv_deplibs_check_method=pass_all
5218 lt_cv_deplibs_check_method=pass_all
5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5223 lt_cv_file_magic_cmd='/usr/bin/file -L'
5224 lt_cv_file_magic_test_file=/shlib/libc.so
5228 # func_win32_libid is a shell function defined in ltmain.sh
5229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5230 lt_cv_file_magic_cmd='func_win32_libid'
5234 # Base MSYS/MinGW do not provide the 'file' command needed by
5235 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5236 # unless we find 'file', for example because we are cross-compiling.
5237 if ( file / ) >/dev/null 2>&1; then
5238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239 lt_cv_file_magic_cmd='func_win32_libid'
5241 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5242 lt_cv_file_magic_cmd='$OBJDUMP -f'
5247 # use the weaker test based on 'objdump'. See mingw*.
5248 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5249 lt_cv_file_magic_cmd='$OBJDUMP -f'
5252 darwin* | rhapsody*)
5253 lt_cv_deplibs_check_method=pass_all
5256 freebsd* | dragonfly*)
5257 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5260 # Not sure whether the presence of OpenBSD here was a mistake.
5261 # Let's accept both of them until this is cleared up.
5262 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5268 lt_cv_deplibs_check_method=pass_all
5273 lt_cv_deplibs_check_method=pass_all
5276 hpux10.20* | hpux11*)
5277 lt_cv_file_magic_cmd=/usr/bin/file
5280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5281 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5284 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]'
5285 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5289 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5295 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5299 irix5* | irix6* | nonstopux*)
5301 *-32|*"-32 ") libmagic=32-bit;;
5302 *-n32|*"-n32 ") libmagic=N32;;
5303 *-64|*"-64 ") libmagic=64-bit;;
5304 *) libmagic=never-match;;
5306 lt_cv_deplibs_check_method=pass_all
5309 # This must be Linux ELF.
5310 linux* | k*bsd*-gnu)
5311 lt_cv_deplibs_check_method=pass_all
5315 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5324 lt_cv_file_magic_cmd=/usr/bin/file
5325 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5329 lt_cv_deplibs_check_method=pass_all
5333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5340 osf3* | osf4* | osf5*)
5341 lt_cv_deplibs_check_method=pass_all
5345 lt_cv_deplibs_check_method=pass_all
5349 lt_cv_deplibs_check_method=pass_all
5352 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5353 lt_cv_deplibs_check_method=pass_all
5357 case $host_vendor in
5359 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]'
5360 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5363 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_file_magic_cmd='/bin/file'
5367 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5370 lt_cv_file_magic_cmd='/bin/file'
5371 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5372 lt_cv_file_magic_test_file=/lib/libc.so
5375 lt_cv_deplibs_check_method=pass_all
5378 lt_cv_deplibs_check_method=pass_all
5384 lt_cv_deplibs_check_method=pass_all
5389 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5390 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5391 file_magic_cmd=$lt_cv_file_magic_cmd
5392 deplibs_check_method=$lt_cv_deplibs_check_method
5393 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}ar; ac_word=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_AR+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 if test -n "$AR"; then
5436 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5437 $as_echo "$AR" >&6; }
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test -z "$ac_cv_prog_AR"; then
5447 # Extract the first word of "ar", so it can be a program name with args.
5448 set dummy ar; ac_word=$2
5449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_AR="ar"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475 if test -n "$ac_ct_AR"; then
5476 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5477 $as_echo "$ac_ct_AR" >&6; }
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480 $as_echo "no" >&6; }
5483 if test "x$ac_ct_AR" = x; then
5486 case $cross_compiling:$ac_tool_warned in
5488 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5498 test -z "$AR" && AR=ar
5499 test -z "$AR_FLAGS" && AR_FLAGS=cru
5511 if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5513 set dummy ${ac_tool_prefix}strip; ac_word=$2
5514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_prog_STRIP+set}" = set; then
5517 $as_echo_n "(cached) " >&6
5519 if test -n "$STRIP"; then
5520 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5529 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 STRIP=$ac_cv_prog_STRIP
5540 if test -n "$STRIP"; then
5541 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5542 $as_echo "$STRIP" >&6; }
5544 { $as_echo "$as_me:$LINENO: result: no" >&5
5545 $as_echo "no" >&6; }
5550 if test -z "$ac_cv_prog_STRIP"; then
5552 # Extract the first word of "strip", so it can be a program name with args.
5553 set dummy strip; ac_word=$2
5554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5557 $as_echo_n "(cached) " >&6
5559 if test -n "$ac_ct_STRIP"; then
5560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_ac_ct_STRIP="strip"
5570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5580 if test -n "$ac_ct_STRIP"; then
5581 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5582 $as_echo "$ac_ct_STRIP" >&6; }
5584 { $as_echo "$as_me:$LINENO: result: no" >&5
5585 $as_echo "no" >&6; }
5588 if test "x$ac_ct_STRIP" = x; then
5591 case $cross_compiling:$ac_tool_warned in
5593 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595 ac_tool_warned=yes ;;
5600 STRIP="$ac_cv_prog_STRIP"
5603 test -z "$STRIP" && STRIP=:
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_RANLIB+set}" = set; then
5616 $as_echo_n "(cached) " >&6
5618 if test -n "$RANLIB"; then
5619 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 RANLIB=$ac_cv_prog_RANLIB
5639 if test -n "$RANLIB"; then
5640 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5641 $as_echo "$RANLIB" >&6; }
5643 { $as_echo "$as_me:$LINENO: result: no" >&5
5644 $as_echo "no" >&6; }
5649 if test -z "$ac_cv_prog_RANLIB"; then
5650 ac_ct_RANLIB=$RANLIB
5651 # Extract the first word of "ranlib", so it can be a program name with args.
5652 set dummy ranlib; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5658 if test -n "$ac_ct_RANLIB"; then
5659 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_RANLIB="ranlib"
5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5679 if test -n "$ac_ct_RANLIB"; then
5680 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5681 $as_echo "$ac_ct_RANLIB" >&6; }
5683 { $as_echo "$as_me:$LINENO: result: no" >&5
5684 $as_echo "no" >&6; }
5687 if test "x$ac_ct_RANLIB" = x; then
5690 case $cross_compiling:$ac_tool_warned in
5692 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5696 RANLIB=$ac_ct_RANLIB
5699 RANLIB="$ac_cv_prog_RANLIB"
5702 test -z "$RANLIB" && RANLIB=:
5709 # Determine commands to create old-style static archives.
5710 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5711 old_postinstall_cmds='chmod 644 $oldlib'
5712 old_postuninstall_cmds=
5714 if test -n "$RANLIB"; then
5717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5720 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5723 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5759 # If no C compiler was specified, use CC.
5762 # If no C compiler flags were specified, use CFLAGS.
5763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5765 # Allow CC to be a program name with arguments.
5769 # Check for command to grab the raw symbol name followed by C symbol from nm.
5770 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5772 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5773 $as_echo_n "(cached) " >&6
5776 # These are sane defaults that work on at least a few old systems.
5777 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5779 # Character class describing NM global symbol codes.
5780 symcode='[BCDEGRST]'
5782 # Regexp to match symbols that can be accessed directly from C.
5783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5785 # Define system-specific variables.
5790 cygwin* | mingw* | pw32* | cegcc*)
5791 symcode='[ABCDGISTW]'
5794 if test "$host_cpu" = ia64; then
5795 symcode='[ABCDEGRST]'
5799 symcode='[BCDEGRST]'
5802 symcode='[BCDEGQRST]'
5813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5821 # If we're using GNU nm, then use its standard symbol codes.
5822 case `$NM -V 2>&1` in
5823 *GNU* | *'with BFD'*)
5824 symcode='[ABCDGIRSTW]' ;;
5827 # Transform an extracted symbol line into a proper C declaration.
5828 # Some systems (esp. on ia64) link data and code symbols differently,
5829 # so use this general approach.
5830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5832 # Transform an extracted symbol line into symbol name and symbol address
5833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5834 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'"
5836 # Handle CRLF in mingw tool chain
5840 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5844 # Try without a prefix underscore, then with it.
5845 for ac_symprfx in "" "_"; do
5847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5848 symxfrm="\\1 $ac_symprfx\\2 \\2"
5850 # Write the raw and C identifiers.
5851 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5852 # Fake it for dumpbin and say T for any non-static function
5853 # and D for any global variable.
5854 # Also find C++ and __fastcall symbols from MSVC++,
5855 # which start with @ or ?.
5856 lt_cv_sys_global_symbol_pipe="$AWK '"\
5857 " {last_section=section; section=\$ 3};"\
5858 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5859 " \$ 0!~/External *\|/{next};"\
5860 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5861 " {if(hide[section]) next};"\
5862 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5863 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5864 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5865 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5866 " ' prfx=^$ac_symprfx"
5868 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5871 # Check to see that the pipe works correctly.
5875 cat > conftest.$ac_ext <<_LT_EOF
5880 void nm_test_func(void);
5881 void nm_test_func(void){}
5885 int main(){nm_test_var='a';nm_test_func();return(0);}
5888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889 (eval $ac_compile) 2>&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; then
5893 # Now try to grab the symbols.
5895 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5896 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && test -s "$nlist"; then
5900 # Try sorting and uniquifying the output.
5901 if sort "$nlist" | uniq > "$nlist"T; then
5902 mv -f "$nlist"T "$nlist"
5907 # Make sure that we snagged all the symbols we need.
5908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910 cat <<_LT_EOF > conftest.$ac_ext
5916 # Now generate the symbol file.
5917 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5919 cat <<_LT_EOF >> conftest.$ac_ext
5921 /* The mapping between symbol names and symbols. */
5926 lt__PROGRAM__LTX_preloaded_symbols[] =
5928 { "@PROGRAM@", (void *) 0 },
5930 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5931 cat <<\_LT_EOF >> conftest.$ac_ext
5935 /* This works around a problem in FreeBSD linker */
5936 #ifdef FREEBSD_WORKAROUND
5937 static const void *lt_preloaded_setup() {
5938 return lt__PROGRAM__LTX_preloaded_symbols;
5946 # Now try linking the two files.
5947 mv conftest.$ac_objext conftstm.$ac_objext
5948 lt_save_LIBS="$LIBS"
5949 lt_save_CFLAGS="$CFLAGS"
5950 LIBS="conftstm.$ac_objext"
5951 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5953 (eval $ac_link) 2>&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5959 LIBS="$lt_save_LIBS"
5960 CFLAGS="$lt_save_CFLAGS"
5962 echo "cannot find nm_test_func in $nlist" >&5
5965 echo "cannot find nm_test_var in $nlist" >&5
5968 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5971 echo "$progname: failed program was:" >&5
5972 cat conftest.$ac_ext >&5
5974 rm -rf conftest* conftst*
5976 # Do not use the global_symbol_pipe unless it works.
5977 if test "$pipe_works" = yes; then
5980 lt_cv_sys_global_symbol_pipe=
5986 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5987 lt_cv_sys_global_symbol_to_cdecl=
5989 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5990 { $as_echo "$as_me:$LINENO: result: failed" >&5
5991 $as_echo "failed" >&6; }
5993 { $as_echo "$as_me:$LINENO: result: ok" >&5
5994 $as_echo "ok" >&6; }
6019 # Check whether --enable-libtool-lock was given.
6020 if test "${enable_libtool_lock+set}" = set; then
6021 enableval=$enable_libtool_lock;
6024 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6026 # Some flags need to be propagated to the compiler or linker for good
6030 # Find out which ABI we are using.
6031 echo 'int i;' > conftest.$ac_ext
6032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6033 (eval $ac_compile) 2>&5
6035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; then
6037 case `/usr/bin/file conftest.$ac_objext` in
6049 # Find out which ABI we are using.
6050 echo '#line 6050 "configure"' > conftest.$ac_ext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }; then
6056 if test "$lt_cv_prog_gnu_ld" = yes; then
6057 case `/usr/bin/file conftest.$ac_objext` in
6059 LD="${LD-ld} -melf32bsmip"
6062 LD="${LD-ld} -melf32bmipn32"
6065 LD="${LD-ld} -melf64bmip"
6069 case `/usr/bin/file conftest.$ac_objext` in
6085 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6086 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6087 # Find out which ABI we are using.
6088 echo 'int i;' > conftest.$ac_ext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>&5
6092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; then
6094 case `/usr/bin/file conftest.o` in
6097 x86_64-*kfreebsd*-gnu)
6098 LD="${LD-ld} -m elf_i386_fbsd"
6101 LD="${LD-ld} -m elf_i386"
6103 ppc64-*linux*|powerpc64-*linux*)
6104 LD="${LD-ld} -m elf32ppclinux"
6107 LD="${LD-ld} -m elf_s390"
6110 LD="${LD-ld} -m elf32_sparc"
6116 x86_64-*kfreebsd*-gnu)
6117 LD="${LD-ld} -m elf_x86_64_fbsd"
6120 LD="${LD-ld} -m elf_x86_64"
6122 ppc*-*linux*|powerpc*-*linux*)
6123 LD="${LD-ld} -m elf64ppc"
6125 s390*-*linux*|s390*-*tpf*)
6126 LD="${LD-ld} -m elf64_s390"
6129 LD="${LD-ld} -m elf64_sparc"
6139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6140 SAVE_CFLAGS="$CFLAGS"
6141 CFLAGS="$CFLAGS -belf"
6142 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6143 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6144 if test "${lt_cv_cc_needs_belf+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153 cat >conftest.$ac_ext <<_ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (ac_try="$ac_link"
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6175 $as_echo "$ac_try_echo") >&5
6176 (eval "$ac_link") 2>conftest.er1
6178 grep -v '^ *+' conftest.er1 >conftest.err
6180 cat conftest.err >&5
6181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } && {
6183 test -z "$ac_c_werror_flag" ||
6184 test ! -s conftest.err
6185 } && test -s conftest$ac_exeext && {
6186 test "$cross_compiling" = yes ||
6187 $as_test_x conftest$ac_exeext
6189 lt_cv_cc_needs_belf=yes
6191 $as_echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 lt_cv_cc_needs_belf=no
6197 rm -rf conftest.dSYM
6198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6199 conftest$ac_exeext conftest.$ac_ext
6201 ac_cpp='$CPP $CPPFLAGS'
6202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6208 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6211 CFLAGS="$SAVE_CFLAGS"
6215 # Find out which ABI we are using.
6216 echo 'int i;' > conftest.$ac_ext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>&5
6220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; then
6222 case `/usr/bin/file conftest.o` in
6224 case $lt_cv_prog_gnu_ld in
6225 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6227 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6239 need_locks="$enable_libtool_lock"
6243 rhapsody* | darwin*)
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6252 if test -n "$DSYMUTIL"; then
6253 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6273 if test -n "$DSYMUTIL"; then
6274 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6275 $as_echo "$DSYMUTIL" >&6; }
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6283 if test -z "$ac_cv_prog_DSYMUTIL"; then
6284 ac_ct_DSYMUTIL=$DSYMUTIL
6285 # Extract the first word of "dsymutil", so it can be a program name with args.
6286 set dummy dsymutil; ac_word=$2
6287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$ac_ct_DSYMUTIL"; then
6293 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6313 if test -n "$ac_ct_DSYMUTIL"; then
6314 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6315 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318 $as_echo "no" >&6; }
6321 if test "x$ac_ct_DSYMUTIL" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6330 DSYMUTIL=$ac_ct_DSYMUTIL
6333 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6336 if test -n "$ac_tool_prefix"; then
6337 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$NMEDIT"; then
6345 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 NMEDIT=$ac_cv_prog_NMEDIT
6365 if test -n "$NMEDIT"; then
6366 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6367 $as_echo "$NMEDIT" >&6; }
6369 { $as_echo "$as_me:$LINENO: result: no" >&5
6370 $as_echo "no" >&6; }
6375 if test -z "$ac_cv_prog_NMEDIT"; then
6376 ac_ct_NMEDIT=$NMEDIT
6377 # Extract the first word of "nmedit", so it can be a program name with args.
6378 set dummy nmedit; ac_word=$2
6379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6382 $as_echo_n "(cached) " >&6
6384 if test -n "$ac_ct_NMEDIT"; then
6385 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6405 if test -n "$ac_ct_NMEDIT"; then
6406 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6407 $as_echo "$ac_ct_NMEDIT" >&6; }
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410 $as_echo "no" >&6; }
6413 if test "x$ac_ct_NMEDIT" = x; then
6416 case $cross_compiling:$ac_tool_warned in
6418 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6422 NMEDIT=$ac_ct_NMEDIT
6425 NMEDIT="$ac_cv_prog_NMEDIT"
6428 if test -n "$ac_tool_prefix"; then
6429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6430 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_LIPO+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$LIPO"; then
6437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 LIPO=$ac_cv_prog_LIPO
6457 if test -n "$LIPO"; then
6458 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6459 $as_echo "$LIPO" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6467 if test -z "$ac_cv_prog_LIPO"; then
6469 # Extract the first word of "lipo", so it can be a program name with args.
6470 set dummy lipo; ac_word=$2
6471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$ac_ct_LIPO"; then
6477 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_LIPO="lipo"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6497 if test -n "$ac_ct_LIPO"; then
6498 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6499 $as_echo "$ac_ct_LIPO" >&6; }
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502 $as_echo "no" >&6; }
6505 if test "x$ac_ct_LIPO" = x; then
6508 case $cross_compiling:$ac_tool_warned in
6510 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512 ac_tool_warned=yes ;;
6517 LIPO="$ac_cv_prog_LIPO"
6520 if test -n "$ac_tool_prefix"; then
6521 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}otool; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_OTOOL+set}" = set; then
6526 $as_echo_n "(cached) " >&6
6528 if test -n "$OTOOL"; then
6529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 OTOOL=$ac_cv_prog_OTOOL
6549 if test -n "$OTOOL"; then
6550 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6551 $as_echo "$OTOOL" >&6; }
6553 { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6559 if test -z "$ac_cv_prog_OTOOL"; then
6561 # Extract the first word of "otool", so it can be a program name with args.
6562 set dummy otool; ac_word=$2
6563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6568 if test -n "$ac_ct_OTOOL"; then
6569 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_ac_ct_OTOOL="otool"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6589 if test -n "$ac_ct_OTOOL"; then
6590 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6591 $as_echo "$ac_ct_OTOOL" >&6; }
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594 $as_echo "no" >&6; }
6597 if test "x$ac_ct_OTOOL" = x; then
6600 case $cross_compiling:$ac_tool_warned in
6602 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6604 ac_tool_warned=yes ;;
6609 OTOOL="$ac_cv_prog_OTOOL"
6612 if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6614 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$OTOOL64"; then
6621 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 OTOOL64=$ac_cv_prog_OTOOL64
6641 if test -n "$OTOOL64"; then
6642 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6643 $as_echo "$OTOOL64" >&6; }
6645 { $as_echo "$as_me:$LINENO: result: no" >&5
6646 $as_echo "no" >&6; }
6651 if test -z "$ac_cv_prog_OTOOL64"; then
6652 ac_ct_OTOOL64=$OTOOL64
6653 # Extract the first word of "otool64", so it can be a program name with args.
6654 set dummy otool64; ac_word=$2
6655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$ac_ct_OTOOL64"; then
6661 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_ac_ct_OTOOL64="otool64"
6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6681 if test -n "$ac_ct_OTOOL64"; then
6682 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6683 $as_echo "$ac_ct_OTOOL64" >&6; }
6685 { $as_echo "$as_me:$LINENO: result: no" >&5
6686 $as_echo "no" >&6; }
6689 if test "x$ac_ct_OTOOL64" = x; then
6692 case $cross_compiling:$ac_tool_warned in
6694 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696 ac_tool_warned=yes ;;
6698 OTOOL64=$ac_ct_OTOOL64
6701 OTOOL64="$ac_cv_prog_OTOOL64"
6730 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6731 $as_echo_n "checking for -single_module linker flag... " >&6; }
6732 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6735 lt_cv_apple_cc_single_mod=no
6736 if test -z "${LT_MULTI_MODULE}"; then
6737 # By default we will add the -single_module flag. You can override
6738 # by either setting the environment variable LT_MULTI_MODULE
6739 # non-empty at configure time, or by adding -multi_module to the
6741 rm -rf libconftest.dylib*
6742 echo "int foo(void){return 1;}" > conftest.c
6743 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6744 -dynamiclib -Wl,-single_module conftest.c" >&5
6745 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6746 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6748 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6749 lt_cv_apple_cc_single_mod=yes
6751 cat conftest.err >&5
6753 rm -rf libconftest.dylib*
6757 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6758 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6759 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6760 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6761 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6762 $as_echo_n "(cached) " >&6
6764 lt_cv_ld_exported_symbols_list=no
6765 save_LDFLAGS=$LDFLAGS
6766 echo "_main" > conftest.sym
6767 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791 (eval "$ac_link") 2>conftest.er1
6793 grep -v '^ *+' conftest.er1 >conftest.err
6795 cat conftest.err >&5
6796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } && {
6798 test -z "$ac_c_werror_flag" ||
6799 test ! -s conftest.err
6800 } && test -s conftest$ac_exeext && {
6801 test "$cross_compiling" = yes ||
6802 $as_test_x conftest$ac_exeext
6804 lt_cv_ld_exported_symbols_list=yes
6806 $as_echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6809 lt_cv_ld_exported_symbols_list=no
6812 rm -rf conftest.dSYM
6813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814 conftest$ac_exeext conftest.$ac_ext
6815 LDFLAGS="$save_LDFLAGS"
6818 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6819 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6821 rhapsody* | darwin1.[012])
6822 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6824 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6825 darwin*) # darwin 5.x on
6826 # if running on 10.5 or later, the deployment target defaults
6827 # to the OS version, if on x86, and 10.4, the deployment
6828 # target defaults to 10.4. Don't you love it?
6829 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6830 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6839 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6840 _lt_dar_single_mod='$single_module'
6842 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6843 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6845 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6847 if test "$DSYMUTIL" != ":"; then
6848 _lt_dsymutil='~$DSYMUTIL $lib || :'
6856 ac_cpp='$CPP $CPPFLAGS'
6857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6860 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6861 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6862 # On Suns, sometimes $CPP names a directory.
6863 if test -n "$CPP" && test -d "$CPP"; then
6866 if test -z "$CPP"; then
6867 if test "${ac_cv_prog_CPP+set}" = set; then
6868 $as_echo_n "(cached) " >&6
6870 # Double quotes because CPP needs to be expanded
6871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6874 for ac_c_preproc_warn_flag in '' yes
6876 # Use a header file that comes with gcc, so configuring glibc
6877 # with a fresh cross-compiler works.
6878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6879 # <limits.h> exists even on freestanding compilers.
6880 # On the NeXT, cc -E runs the code through the compiler's parser,
6881 # not just through cpp. "Syntax error" is here to catch this case.
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6889 # include <limits.h>
6891 # include <assert.h>
6895 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898 *) ac_try_echo=$ac_try;;
6900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6901 $as_echo "$ac_try_echo") >&5
6902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } >/dev/null && {
6909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6914 $as_echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6917 # Broken: fails on valid input.
6921 rm -f conftest.err conftest.$ac_ext
6923 # OK, works on sane cases. Now check whether nonexistent headers
6924 # can be detected and how.
6925 cat >conftest.$ac_ext <<_ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 #include <ac_nonexistent.h>
6933 if { (ac_try="$ac_cpp conftest.$ac_ext"
6935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6936 *) ac_try_echo=$ac_try;;
6938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6939 $as_echo "$ac_try_echo") >&5
6940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6942 grep -v '^ *+' conftest.er1 >conftest.err
6944 cat conftest.err >&5
6945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null && {
6947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6948 test ! -s conftest.err
6950 # Broken: success on invalid input.
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 # Passes both tests.
6961 rm -f conftest.err conftest.$ac_ext
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then
6978 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6979 $as_echo "$CPP" >&6; }
6981 for ac_c_preproc_warn_flag in '' yes
6983 # Use a header file that comes with gcc, so configuring glibc
6984 # with a fresh cross-compiler works.
6985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986 # <limits.h> exists even on freestanding compilers.
6987 # On the NeXT, cc -E runs the code through the compiler's parser,
6988 # not just through cpp. "Syntax error" is here to catch this case.
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6996 # include <limits.h>
6998 # include <assert.h>
7002 if { (ac_try="$ac_cpp conftest.$ac_ext"
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008 $as_echo "$ac_try_echo") >&5
7009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7011 grep -v '^ *+' conftest.er1 >conftest.err
7013 cat conftest.err >&5
7014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } >/dev/null && {
7016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7017 test ! -s conftest.err
7021 $as_echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 # Broken: fails on valid input.
7028 rm -f conftest.err conftest.$ac_ext
7030 # OK, works on sane cases. Now check whether nonexistent headers
7031 # can be detected and how.
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <ac_nonexistent.h>
7040 if { (ac_try="$ac_cpp conftest.$ac_ext"
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7046 $as_echo "$ac_try_echo") >&5
7047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null && {
7054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7057 # Broken: success on invalid input.
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 # Passes both tests.
7068 rm -f conftest.err conftest.$ac_ext
7071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7072 rm -f conftest.err conftest.$ac_ext
7073 if $ac_preproc_ok; then
7076 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7078 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7079 See \`config.log' for more details." >&5
7080 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7081 See \`config.log' for more details." >&2;}
7082 { (exit 1); exit 1; }; }; }
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7092 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7093 $as_echo_n "checking for ANSI C header files... " >&6; }
7094 if test "${ac_cv_header_stdc+set}" = set; then
7095 $as_echo_n "(cached) " >&6
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7116 rm -f conftest.$ac_objext
7117 if { (ac_try="$ac_compile"
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7123 $as_echo "$ac_try_echo") >&5
7124 (eval "$ac_compile") 2>conftest.er1
7126 grep -v '^ *+' conftest.er1 >conftest.err
7128 cat conftest.err >&5
7129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest.$ac_objext; then
7134 ac_cv_header_stdc=yes
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7139 ac_cv_header_stdc=no
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144 if test $ac_cv_header_stdc = yes; then
7145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7156 $EGREP "memchr" >/dev/null 2>&1; then
7159 ac_cv_header_stdc=no
7165 if test $ac_cv_header_stdc = yes; then
7166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7177 $EGREP "free" >/dev/null 2>&1; then
7180 ac_cv_header_stdc=no
7186 if test $ac_cv_header_stdc = yes; then
7187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7188 if test "$cross_compiling" = yes; then
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7199 #if ((' ' & 0x0FF) == 0x020)
7200 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7201 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7203 # define ISLOWER(c) \
7204 (('a' <= (c) && (c) <= 'i') \
7205 || ('j' <= (c) && (c) <= 'r') \
7206 || ('s' <= (c) && (c) <= 'z'))
7207 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7215 for (i = 0; i < 256; i++)
7216 if (XOR (islower (i), ISLOWER (i))
7217 || toupper (i) != TOUPPER (i))
7222 rm -f conftest$ac_exeext
7223 if { (ac_try="$ac_link"
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_link") 2>&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7234 { (case "(($ac_try" in
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7239 $as_echo "$ac_try_echo") >&5
7240 (eval "$ac_try") 2>&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7246 $as_echo "$as_me: program exited with status $ac_status" >&5
7247 $as_echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_header_stdc=no
7253 rm -rf conftest.dSYM
7254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7261 $as_echo "$ac_cv_header_stdc" >&6; }
7262 if test $ac_cv_header_stdc = yes; then
7264 cat >>confdefs.h <<\_ACEOF
7265 #define STDC_HEADERS 1
7270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7281 inttypes.h stdint.h unistd.h
7283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7285 $as_echo_n "checking for $ac_header... " >&6; }
7286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287 $as_echo_n "(cached) " >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7297 #include <$ac_header>
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307 (eval "$ac_compile") 2>conftest.er1
7309 grep -v '^ *+' conftest.er1 >conftest.err
7311 cat conftest.err >&5
7312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } && {
7314 test -z "$ac_c_werror_flag" ||
7315 test ! -s conftest.err
7316 } && test -s conftest.$ac_objext; then
7317 eval "$as_ac_Header=yes"
7319 $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 eval "$as_ac_Header=no"
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 ac_res=`eval 'as_val=${'$as_ac_Header'}
7328 $as_echo "$as_val"'`
7329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7330 $as_echo "$ac_res" >&6; }
7331 as_val=`eval 'as_val=${'$as_ac_Header'}
7332 $as_echo "$as_val"'`
7333 if test "x$as_val" = x""yes; then
7334 cat >>confdefs.h <<_ACEOF
7335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344 for ac_header in dlfcn.h
7346 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7348 $as_echo_n "checking for $ac_header... " >&6; }
7349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7350 $as_echo_n "(cached) " >&6
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 $ac_includes_default
7360 #include <$ac_header>
7362 rm -f conftest.$ac_objext
7363 if { (ac_try="$ac_compile"
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7369 $as_echo "$ac_try_echo") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7372 grep -v '^ *+' conftest.er1 >conftest.err
7374 cat conftest.err >&5
7375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7380 eval "$as_ac_Header=yes"
7382 $as_echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7385 eval "$as_ac_Header=no"
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 ac_res=`eval 'as_val=${'$as_ac_Header'}
7391 $as_echo "$as_val"'`
7392 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7393 $as_echo "$ac_res" >&6; }
7394 as_val=`eval 'as_val=${'$as_ac_Header'}
7395 $as_echo "$as_val"'`
7396 if test "x$as_val" = x""yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7417 # Check whether --enable-shared was given.
7418 if test "${enable_shared+set}" = set; then
7419 enableval=$enable_shared; p=${PACKAGE-default}
7421 yes) enable_shared=yes ;;
7422 no) enable_shared=no ;;
7425 # Look at the argument we got. We use all the common list separators.
7426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7427 for pkg in $enableval; do
7429 if test "X$pkg" = "X$p"; then
7448 # Check whether --enable-static was given.
7449 if test "${enable_static+set}" = set; then
7450 enableval=$enable_static; p=${PACKAGE-default}
7452 yes) enable_static=yes ;;
7453 no) enable_static=no ;;
7456 # Look at the argument we got. We use all the common list separators.
7457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7458 for pkg in $enableval; do
7460 if test "X$pkg" = "X$p"; then
7480 # Check whether --with-pic was given.
7481 if test "${with_pic+set}" = set; then
7482 withval=$with_pic; pic_mode="$withval"
7488 test -z "$pic_mode" && pic_mode=default
7496 # Check whether --enable-fast-install was given.
7497 if test "${enable_fast_install+set}" = set; then
7498 enableval=$enable_fast_install; p=${PACKAGE-default}
7500 yes) enable_fast_install=yes ;;
7501 no) enable_fast_install=no ;;
7503 enable_fast_install=no
7504 # Look at the argument we got. We use all the common list separators.
7505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7506 for pkg in $enableval; do
7508 if test "X$pkg" = "X$p"; then
7509 enable_fast_install=yes
7516 enable_fast_install=yes
7529 # This can be used to rebuild libtool when needed
7530 LIBTOOL_DEPS="$ltmain"
7532 # Always use our own libtool.
7533 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7559 test -z "$LN_S" && LN_S="ln -s"
7574 if test -n "${ZSH_VERSION+set}" ; then
7575 setopt NO_GLOB_SUBST
7578 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7579 $as_echo_n "checking for objdir... " >&6; }
7580 if test "${lt_cv_objdir+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7583 rm -f .libs 2>/dev/null
7584 mkdir .libs 2>/dev/null
7585 if test -d .libs; then
7588 # MS-DOS does not allow filenames that begin with a dot.
7591 rmdir .libs 2>/dev/null
7593 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7594 $as_echo "$lt_cv_objdir" >&6; }
7595 objdir=$lt_cv_objdir
7601 cat >>confdefs.h <<_ACEOF
7602 #define LT_OBJDIR "$lt_cv_objdir/"
7623 # AIX sometimes has problems with the GCC collect2 program. For some
7624 # reason, if we set the COLLECT_NAMES environment variable, the problems
7625 # vanish in a puff of smoke.
7626 if test "X${COLLECT_NAMES+set}" != Xset; then
7628 export COLLECT_NAMES
7633 # Sed substitution that helps us do robust quoting. It backslashifies
7634 # metacharacters that are still active within double-quoted strings.
7635 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7637 # Same as above, but do not quote variable references.
7638 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7640 # Sed substitution to delay expansion of an escaped shell variable in a
7641 # double_quote_subst'ed string.
7642 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7644 # Sed substitution to delay expansion of an escaped single quote.
7645 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7647 # Sed substitution to avoid accidental globbing in evaled expressions
7648 no_glob_subst='s/\*/\\\*/g'
7652 can_build_shared=yes
7654 # All known linkers require a `.a' archive for static linking (except MSVC,
7655 # which needs '.lib').
7658 with_gnu_ld="$lt_cv_prog_gnu_ld"
7661 old_CFLAGS="$CFLAGS"
7663 # Set sane defaults for various variables
7664 test -z "$CC" && CC=cc
7665 test -z "$LTCC" && LTCC=$CC
7666 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7667 test -z "$LD" && LD=ld
7668 test -z "$ac_objext" && ac_objext=o
7670 for cc_temp in $compiler""; do
7672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7678 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7681 # Only perform the check for file, if the check method requires it
7682 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7683 case $deplibs_check_method in
7685 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7686 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7687 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7688 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7689 $as_echo_n "(cached) " >&6
7693 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7696 lt_save_MAGIC_CMD="$MAGIC_CMD"
7697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7699 for ac_dir in $ac_dummy; do
7701 test -z "$ac_dir" && ac_dir=.
7702 if test -f $ac_dir/${ac_tool_prefix}file; then
7703 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7704 if test -n "$file_magic_test_file"; then
7705 case $deplibs_check_method in
7707 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7709 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7710 $EGREP "$file_magic_regex" > /dev/null; then
7715 *** Warning: the command libtool uses to detect shared libraries,
7716 *** $file_magic_cmd, produces output that libtool cannot recognize.
7717 *** The result is that libtool may fail to recognize shared libraries
7718 *** as such. This will affect the creation of libtool libraries that
7719 *** depend on shared libraries, but programs linked with such libtool
7720 *** libraries will work regardless of this problem. Nevertheless, you
7721 *** may want to report the problem to your system manager and/or to
7722 *** bug-libtool@gnu.org
7732 MAGIC_CMD="$lt_save_MAGIC_CMD"
7737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7738 if test -n "$MAGIC_CMD"; then
7739 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7740 $as_echo "$MAGIC_CMD" >&6; }
7742 { $as_echo "$as_me:$LINENO: result: no" >&5
7743 $as_echo "no" >&6; }
7750 if test -z "$lt_cv_path_MAGIC_CMD"; then
7751 if test -n "$ac_tool_prefix"; then
7752 { $as_echo "$as_me:$LINENO: checking for file" >&5
7753 $as_echo_n "checking for file... " >&6; }
7754 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7755 $as_echo_n "(cached) " >&6
7759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7762 lt_save_MAGIC_CMD="$MAGIC_CMD"
7763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7765 for ac_dir in $ac_dummy; do
7767 test -z "$ac_dir" && ac_dir=.
7768 if test -f $ac_dir/file; then
7769 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7770 if test -n "$file_magic_test_file"; then
7771 case $deplibs_check_method in
7773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7776 $EGREP "$file_magic_regex" > /dev/null; then
7781 *** Warning: the command libtool uses to detect shared libraries,
7782 *** $file_magic_cmd, produces output that libtool cannot recognize.
7783 *** The result is that libtool may fail to recognize shared libraries
7784 *** as such. This will affect the creation of libtool libraries that
7785 *** depend on shared libraries, but programs linked with such libtool
7786 *** libraries will work regardless of this problem. Nevertheless, you
7787 *** may want to report the problem to your system manager and/or to
7788 *** bug-libtool@gnu.org
7798 MAGIC_CMD="$lt_save_MAGIC_CMD"
7803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7804 if test -n "$MAGIC_CMD"; then
7805 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7806 $as_echo "$MAGIC_CMD" >&6; }
7808 { $as_echo "$as_me:$LINENO: result: no" >&5
7809 $as_echo "no" >&6; }
7822 # Use C for the default configuration in the libtool script
7826 ac_cpp='$CPP $CPPFLAGS'
7827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832 # Source file extension for C test sources.
7835 # Object file extension for compiled C test sources.
7839 # Code to be used in simple compile tests
7840 lt_simple_compile_test_code="int some_variable = 0;"
7842 # Code to be used in simple link tests
7843 lt_simple_link_test_code='int main(){return(0);}'
7851 # If no C compiler was specified, use CC.
7854 # If no C compiler flags were specified, use CFLAGS.
7855 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7857 # Allow CC to be a program name with arguments.
7860 # Save the default compiler, since it gets overwritten when the other
7861 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7862 compiler_DEFAULT=$CC
7864 # save warnings/boilerplate of simple test code
7865 ac_outfile=conftest.$ac_objext
7866 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868 _lt_compiler_boilerplate=`cat conftest.err`
7871 ac_outfile=conftest.$ac_objext
7872 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7874 _lt_linker_boilerplate=`cat conftest.err`
7878 if test -n "$compiler"; then
7880 lt_prog_compiler_no_builtin_flag=
7882 if test "$GCC" = yes; then
7883 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7885 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7886 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7887 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7890 lt_cv_prog_compiler_rtti_exceptions=no
7891 ac_outfile=conftest.$ac_objext
7892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7893 lt_compiler_flag="-fno-rtti -fno-exceptions"
7894 # Insert the option either (1) after the last *FLAGS variable, or
7895 # (2) before a word containing "conftest.", or (3) at the end.
7896 # Note that $ac_compile itself does not contain backslashes and begins
7897 # with a dollar sign (not a hyphen), so the echo should work correctly.
7898 # The option is referenced via a variable to avoid confusing sed.
7899 lt_compile=`echo "$ac_compile" | $SED \
7900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7902 -e 's:$: $lt_compiler_flag:'`
7903 (eval echo "\"\$as_me:7903: $lt_compile\"" >&5)
7904 (eval "$lt_compile" 2>conftest.err)
7906 cat conftest.err >&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 if (exit $ac_status) && test -s "$ac_outfile"; then
7909 # The compiler can only warn and ignore the option if not recognized
7910 # So say no if there are warnings other than the usual output.
7911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7914 lt_cv_prog_compiler_rtti_exceptions=yes
7920 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7921 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7923 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7936 lt_prog_compiler_wl=
7937 lt_prog_compiler_pic=
7938 lt_prog_compiler_static=
7940 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7943 if test "$GCC" = yes; then
7944 lt_prog_compiler_wl='-Wl,'
7945 lt_prog_compiler_static='-static'
7949 # All AIX code is PIC.
7950 if test "$host_cpu" = ia64; then
7951 # AIX 5 now supports IA64 processor
7952 lt_prog_compiler_static='-Bstatic'
7959 # see comment about AmigaOS4 .so support
7960 lt_prog_compiler_pic='-fPIC'
7963 # FIXME: we need at least 68020 code to build shared libraries, but
7964 # adding the `-m68020' flag to GCC prevents building anything better,
7966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7972 # PIC is the default for these OSes.
7975 mingw* | cygwin* | pw32* | os2* | cegcc*)
7976 # This hack is so that the source file can tell whether it is being
7977 # built for inclusion in a dll (and should export symbols for example).
7978 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7979 # (--disable-auto-import) libraries
7980 lt_prog_compiler_pic='-DDLL_EXPORT'
7983 darwin* | rhapsody*)
7984 # PIC is the default on this platform
7985 # Common symbols not allowed in MH_DYLIB files
7986 lt_prog_compiler_pic='-fno-common'
7990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7992 # sets the default TLS model and affects inlining.
7998 lt_prog_compiler_pic='-fPIC'
8004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8005 # Instead, we relocate shared libraries at runtime.
8009 # Just because we use GCC doesn't mean we suddenly get shared libraries
8010 # on systems that don't support them.
8011 lt_prog_compiler_can_build_shared=no
8016 # QNX uses GNU C++, but need to define -shared option too, otherwise
8018 lt_prog_compiler_pic='-fPIC -shared'
8022 if test -d /usr/nec; then
8023 lt_prog_compiler_pic=-Kconform_pic
8028 lt_prog_compiler_pic='-fPIC'
8032 # PORTME Check for flag to pass linker flags through the system compiler.
8035 lt_prog_compiler_wl='-Wl,'
8036 if test "$host_cpu" = ia64; then
8037 # AIX 5 now supports IA64 processor
8038 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8044 mingw* | cygwin* | pw32* | os2* | cegcc*)
8045 # This hack is so that the source file can tell whether it is being
8046 # built for inclusion in a dll (and should export symbols for example).
8047 lt_prog_compiler_pic='-DDLL_EXPORT'
8050 hpux9* | hpux10* | hpux11*)
8051 lt_prog_compiler_wl='-Wl,'
8052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8059 lt_prog_compiler_pic='+Z'
8062 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8063 lt_prog_compiler_static='${wl}-a ${wl}archive'
8066 irix5* | irix6* | nonstopux*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC (with -KPIC) is the default.
8069 lt_prog_compiler_static='-non_shared'
8072 linux* | k*bsd*-gnu)
8073 case $cc_basename in
8074 # old Intel for x86_64 which still supported -KPIC.
8076 lt_prog_compiler_wl='-Wl,'
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-static'
8080 # icc used to be incompatible with GCC.
8081 # ICC 10 doesn't accept -KPIC any more.
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='-fPIC'
8085 lt_prog_compiler_static='-static'
8087 # Lahey Fortran 8.1.
8089 lt_prog_compiler_wl='-Wl,'
8090 lt_prog_compiler_pic='--shared'
8091 lt_prog_compiler_static='--static'
8093 pgcc* | pgf77* | pgf90* | pgf95*)
8094 # Portland Group compilers (*not* the Pentium gcc compiler,
8095 # which looks to be a dead project)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-fpic'
8098 lt_prog_compiler_static='-Bstatic'
8101 lt_prog_compiler_wl='-Wl,'
8102 # All Alpha code is PIC.
8103 lt_prog_compiler_static='-non_shared'
8106 # IBM XL C 8.0/Fortran 10.1 on PPC
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-qpic'
8109 lt_prog_compiler_static='-qstaticlink'
8112 case `$CC -V 2>&1 | sed 5q` in
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_wl='-Wl,'
8120 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8121 lt_prog_compiler_pic='-KPIC'
8122 lt_prog_compiler_static='-Bstatic'
8123 lt_prog_compiler_wl=''
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8136 # QNX uses GNU C++, but need to define -shared option too, otherwise
8138 lt_prog_compiler_pic='-fPIC -shared'
8141 osf3* | osf4* | osf5*)
8142 lt_prog_compiler_wl='-Wl,'
8143 # All OSF/1 code is PIC.
8144 lt_prog_compiler_static='-non_shared'
8148 lt_prog_compiler_static='-non_shared'
8152 lt_prog_compiler_pic='-KPIC'
8153 lt_prog_compiler_static='-Bstatic'
8154 case $cc_basename in
8156 lt_prog_compiler_wl='-Qoption ld ';;
8158 lt_prog_compiler_wl='-Wl,';;
8163 lt_prog_compiler_wl='-Qoption ld '
8164 lt_prog_compiler_pic='-PIC'
8165 lt_prog_compiler_static='-Bstatic'
8168 sysv4 | sysv4.2uw2* | sysv4.3*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-Bstatic'
8175 if test -d /usr/nec ;then
8176 lt_prog_compiler_pic='-Kconform_pic'
8177 lt_prog_compiler_static='-Bstatic'
8181 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='-KPIC'
8184 lt_prog_compiler_static='-Bstatic'
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_can_build_shared=no
8193 lt_prog_compiler_pic='-pic'
8194 lt_prog_compiler_static='-Bstatic'
8198 lt_prog_compiler_can_build_shared=no
8204 # For platforms which do not support PIC, -DPIC is meaningless:
8206 lt_prog_compiler_pic=
8209 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8212 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8213 $as_echo "$lt_prog_compiler_pic" >&6; }
8221 # Check to make sure the PIC flag actually works.
8223 if test -n "$lt_prog_compiler_pic"; then
8224 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8225 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8226 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8227 $as_echo_n "(cached) " >&6
8229 lt_cv_prog_compiler_pic_works=no
8230 ac_outfile=conftest.$ac_objext
8231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8232 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8233 # Insert the option either (1) after the last *FLAGS variable, or
8234 # (2) before a word containing "conftest.", or (3) at the end.
8235 # Note that $ac_compile itself does not contain backslashes and begins
8236 # with a dollar sign (not a hyphen), so the echo should work correctly.
8237 # The option is referenced via a variable to avoid confusing sed.
8238 lt_compile=`echo "$ac_compile" | $SED \
8239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241 -e 's:$: $lt_compiler_flag:'`
8242 (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243 (eval "$lt_compile" 2>conftest.err)
8245 cat conftest.err >&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 if (exit $ac_status) && test -s "$ac_outfile"; then
8248 # The compiler can only warn and ignore the option if not recognized
8249 # So say no if there are warnings other than the usual output.
8250 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8253 lt_cv_prog_compiler_pic_works=yes
8259 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8260 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8262 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8263 case $lt_prog_compiler_pic in
8265 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8268 lt_prog_compiler_pic=
8269 lt_prog_compiler_can_build_shared=no
8280 # Check to make sure the static flag actually works.
8282 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8283 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8284 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8285 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8286 $as_echo_n "(cached) " >&6
8288 lt_cv_prog_compiler_static_works=no
8289 save_LDFLAGS="$LDFLAGS"
8290 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8291 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8292 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8293 # The linker can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 if test -s conftest.err; then
8296 # Append any errors to the config.log.
8297 cat conftest.err 1>&5
8298 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8300 if diff conftest.exp conftest.er2 >/dev/null; then
8301 lt_cv_prog_compiler_static_works=yes
8304 lt_cv_prog_compiler_static_works=yes
8308 LDFLAGS="$save_LDFLAGS"
8311 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8312 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8314 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8317 lt_prog_compiler_static=
8326 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8328 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8329 $as_echo_n "(cached) " >&6
8331 lt_cv_prog_compiler_c_o=no
8332 $RM -r conftest 2>/dev/null
8336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338 lt_compiler_flag="-o out/conftest2.$ac_objext"
8339 # Insert the option either (1) after the last *FLAGS variable, or
8340 # (2) before a word containing "conftest.", or (3) at the end.
8341 # Note that $ac_compile itself does not contain backslashes and begins
8342 # with a dollar sign (not a hyphen), so the echo should work correctly.
8343 lt_compile=`echo "$ac_compile" | $SED \
8344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8346 -e 's:$: $lt_compiler_flag:'`
8347 (eval echo "\"\$as_me:8347: $lt_compile\"" >&5)
8348 (eval "$lt_compile" 2>out/conftest.err)
8350 cat out/conftest.err >&5
8351 echo "$as_me:8351: \$? = $ac_status" >&5
8352 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8354 # The compiler can only warn and ignore the option if not recognized
8355 # So say no if there are warnings
8356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8359 lt_cv_prog_compiler_c_o=yes
8364 # SGI C++ compiler will create directory out/ii_files/ for
8365 # template instantiation
8366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8367 $RM out/* && rmdir out
8373 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8374 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8381 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8382 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8383 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8384 $as_echo_n "(cached) " >&6
8386 lt_cv_prog_compiler_c_o=no
8387 $RM -r conftest 2>/dev/null
8391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393 lt_compiler_flag="-o out/conftest2.$ac_objext"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 lt_compile=`echo "$ac_compile" | $SED \
8399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401 -e 's:$: $lt_compiler_flag:'`
8402 (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
8403 (eval "$lt_compile" 2>out/conftest.err)
8405 cat out/conftest.err >&5
8406 echo "$as_me:8406: \$? = $ac_status" >&5
8407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings
8411 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8412 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8413 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_c_o=yes
8419 # SGI C++ compiler will create directory out/ii_files/ for
8420 # template instantiation
8421 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8422 $RM out/* && rmdir out
8428 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8429 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8434 hard_links="nottested"
8435 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8436 # do not overwrite the value of need_locks provided by the user
8437 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8438 $as_echo_n "checking if we can lock with hard links... " >&6; }
8441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443 ln conftest.a conftest.b 2>&5 || hard_links=no
8444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8445 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8446 $as_echo "$hard_links" >&6; }
8447 if test "$hard_links" = no; then
8448 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8449 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8462 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8465 allow_undefined_flag=
8466 always_export_symbols=no
8468 archive_expsym_cmds=
8469 compiler_needs_object=no
8470 enable_shared_with_static_runtimes=no
8471 export_dynamic_flag_spec=
8472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8473 hardcode_automatic=no
8475 hardcode_direct_absolute=no
8476 hardcode_libdir_flag_spec=
8477 hardcode_libdir_flag_spec_ld=
8478 hardcode_libdir_separator=
8480 hardcode_shlibpath_var=unsupported
8482 link_all_deplibs=unknown
8485 old_archive_from_new_cmds=
8486 old_archive_from_expsyms_cmds=
8487 thread_safe_flag_spec=
8488 whole_archive_flag_spec=
8489 # include_expsyms should be a list of space-separated symbols to be *always*
8490 # included in the symbol list
8492 # exclude_expsyms can be an extended regexp of symbols to exclude
8493 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8494 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8495 # as well as any symbol that contains `d'.
8496 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8497 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8498 # platforms (ab)use it in PIC code, but their linkers get confused if
8499 # the symbol is explicitly referenced. Since portable code cannot
8500 # rely on this symbol name, it's probably fine to never include it in
8501 # preloaded symbol tables.
8502 # Exclude shared library initialization/finalization symbols.
8503 extract_expsyms_cmds=
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8508 # When not using gcc, we currently assume that we are using
8509 # Microsoft Visual C++.
8510 if test "$GCC" != yes; then
8515 # we just hope/assume this is gcc and not c89 (= MSVC++)
8524 if test "$with_gnu_ld" = yes; then
8525 # If archive_cmds runs LD, not CC, wlarc should be empty
8528 # Set some defaults for GNU ld with shared library support. These
8529 # are reset later if shared libraries are not supported. Putting them
8530 # here allows them to be overridden if necessary.
8531 runpath_var=LD_RUN_PATH
8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8533 export_dynamic_flag_spec='${wl}--export-dynamic'
8534 # ancient GNU ld didn't support --whole-archive et. al.
8535 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8536 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8538 whole_archive_flag_spec=
8540 supports_anon_versioning=no
8541 case `$LD -v 2>&1` in
8542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8545 *\ 2.11.*) ;; # other 2.11 versions
8546 *) supports_anon_versioning=yes ;;
8549 # See if GNU ld supports shared libraries.
8552 # On AIX/PPC, the GNU linker is very broken
8553 if test "$host_cpu" != ia64; then
8557 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8558 *** to be unable to reliably create shared libraries on AIX.
8559 *** Therefore, libtool is disabling shared libraries support. If you
8560 *** really care for shared libraries, you may want to modify your PATH
8561 *** so that a non-GNU linker is found, and then restart.
8570 # see comment about AmigaOS4 .so support
8571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572 archive_expsym_cmds=''
8575 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)'
8576 hardcode_libdir_flag_spec='-L$libdir'
8577 hardcode_minus_L=yes
8583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8584 allow_undefined_flag=unsupported
8585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8586 # support --undefined. This deserves some investigation. FIXME
8587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8593 cygwin* | mingw* | pw32* | cegcc*)
8594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8595 # as there is no search path for DLLs.
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 allow_undefined_flag=unsupported
8598 always_export_symbols=no
8599 enable_shared_with_static_runtimes=yes
8600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8604 # If the export-symbols file already is a .def file (1st line
8605 # is EXPORTS), use it as is; otherwise, prepend...
8606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8607 cp $export_symbols $output_objdir/$soname.def;
8609 echo EXPORTS > $output_objdir/$soname.def;
8610 cat $export_symbols >> $output_objdir/$soname.def;
8612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8620 hardcode_shlibpath_var=no
8621 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8622 export_dynamic_flag_spec='${wl}-E'
8623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8624 # Instead, shared libraries are loaded at an image base (0x10000000 by
8625 # default) and relocated if they conflict, which is a slow very memory
8626 # consuming and fragmenting process. To avoid this, we pick a random,
8627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8630 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'
8633 gnu* | linux* | tpf* | k*bsd*-gnu)
8635 if test "$host_os" = linux-dietlibc; then
8636 case $cc_basename in
8637 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8640 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8641 && test "$tmp_diet" = no
8644 tmp_sharedflag='-shared'
8645 case $cc_basename,$host_cpu in
8646 pgcc*) # Portland Group C compiler
8647 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'
8648 tmp_addflag=' $pic_flag'
8650 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8651 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'
8652 tmp_addflag=' $pic_flag -Mnomain' ;;
8653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8654 tmp_addflag=' -i_dynamic' ;;
8655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8656 tmp_addflag=' -i_dynamic -nofor_main' ;;
8657 ifc* | ifort*) # Intel Fortran compiler
8658 tmp_addflag=' -nofor_main' ;;
8659 lf95*) # Lahey Fortran 8.1
8660 whole_archive_flag_spec=
8661 tmp_sharedflag='--shared' ;;
8662 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8663 tmp_sharedflag='-qmkshrobj'
8666 case `$CC -V 2>&1 | sed 5q` in
8667 *Sun\ C*) # Sun C 5.9
8668 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'
8669 compiler_needs_object=yes
8670 tmp_sharedflag='-G' ;;
8671 *Sun\ F*) # Sun Fortran 8.3
8672 tmp_sharedflag='-G' ;;
8674 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 if test "x$supports_anon_versioning" = xyes; then
8677 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8678 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8679 echo "local: *; };" >> $output_objdir/$libname.ver~
8680 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8683 case $cc_basename in
8685 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8686 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8687 hardcode_libdir_flag_spec=
8688 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8689 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8690 if test "x$supports_anon_versioning" = xyes; then
8691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8693 echo "local: *; };" >> $output_objdir/$libname.ver~
8694 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8719 *** create shared libraries on Solaris systems. Therefore, libtool
8720 *** is disabling shared libraries support. We urge you to upgrade GNU
8721 *** binutils to release 2.9.1 or newer. Another option is to modify
8722 *** your PATH or compiler configuration so that the native linker is
8723 *** used, and then restart.
8726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8735 case `$LD -v 2>&1` in
8736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8741 *** reliably create shared libraries on SCO systems. Therefore, libtool
8742 *** is disabling shared libraries support. We urge you to upgrade GNU
8743 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8744 *** your PATH or compiler configuration so that the native linker is
8745 *** used, and then restart.
8750 # For security reasons, it is highly recommended that you always
8751 # use absolute paths for naming shared libraries, and exclude the
8752 # DT_RUNPATH tag from executables and libraries. But doing so
8753 # requires that you compile everything twice, which is a pain.
8754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8769 hardcode_shlibpath_var=no
8773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782 if test "$ld_shlibs" = no; then
8784 hardcode_libdir_flag_spec=
8785 export_dynamic_flag_spec=
8786 whole_archive_flag_spec=
8789 # PORTME fill in a description of your system's linker (not GNU ld)
8792 allow_undefined_flag=unsupported
8793 always_export_symbols=yes
8794 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'
8795 # Note: this linker hardcodes the directories in LIBPATH if there
8796 # are no directories specified by -L.
8797 hardcode_minus_L=yes
8798 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8799 # Neither direct hardcoding nor static linking is supported with a
8801 hardcode_direct=unsupported
8806 if test "$host_cpu" = ia64; then
8807 # On IA64, the linker does run time linking by default, so we don't
8808 # have to do anything special.
8809 aix_use_runtimelinking=no
8810 exp_sym_flag='-Bexport'
8813 # If we're using GNU nm, then we don't want the "-C" option.
8814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8815 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8816 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'
8818 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'
8820 aix_use_runtimelinking=no
8822 # Test if we are trying to use run time linking or normal
8823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8824 # need to do runtime linking.
8825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8826 for ld_flag in $LDFLAGS; do
8827 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8828 aix_use_runtimelinking=yes
8835 exp_sym_flag='-bexport'
8836 no_entry_flag='-bnoentry'
8839 # When large executables or shared objects are built, AIX ld can
8840 # have problems creating the table of contents. If linking a library
8841 # or program results in "error TOC overflow" add -mminimal-toc to
8842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8847 hardcode_direct_absolute=yes
8848 hardcode_libdir_separator=':'
8849 link_all_deplibs=yes
8850 file_list_spec='${wl}-f,'
8852 if test "$GCC" = yes; then
8853 case $host_os in aix4.[012]|aix4.[012].*)
8854 # We only want to do this on AIX 4.2 and lower, the check
8855 # below for broken collect2 doesn't work under 4.3+
8856 collect2name=`${CC} -print-prog-name=collect2`
8857 if test -f "$collect2name" &&
8858 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8860 # We have reworked collect2
8863 # We have old collect2
8864 hardcode_direct=unsupported
8865 # It fails to find uninstalled libraries when the uninstalled
8866 # path is not listed in the libpath. Setting hardcode_minus_L
8867 # to unsupported forces relinking
8868 hardcode_minus_L=yes
8869 hardcode_libdir_flag_spec='-L$libdir'
8870 hardcode_libdir_separator=
8874 shared_flag='-shared'
8875 if test "$aix_use_runtimelinking" = yes; then
8876 shared_flag="$shared_flag "'${wl}-G'
8880 if test "$host_cpu" = ia64; then
8881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8882 # chokes on -Wl,-G. The following line is correct:
8885 if test "$aix_use_runtimelinking" = yes; then
8886 shared_flag='${wl}-G'
8888 shared_flag='${wl}-bM:SRE'
8893 export_dynamic_flag_spec='${wl}-bexpall'
8894 # It seems that -bexpall does not export symbols beginning with
8895 # underscore (_), so it is better to generate a list of symbols to export.
8896 always_export_symbols=yes
8897 if test "$aix_use_runtimelinking" = yes; then
8898 # Warning - without using the other runtime loading flags (-brtl),
8899 # -berok will link without error, but may produce a broken library.
8900 allow_undefined_flag='-berok'
8901 # Determine the default libpath from the value encoded in an
8903 cat >conftest.$ac_ext <<_ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926 (eval "$ac_link") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext && {
8936 test "$cross_compiling" = yes ||
8937 $as_test_x conftest$ac_exeext
8940 lt_aix_libpath_sed='
8941 /Import File Strings/,/^$/ {
8947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8948 # Check for a 64-bit object if we didn't find anything.
8949 if test -z "$aix_libpath"; then
8950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8959 rm -rf conftest.dSYM
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961 conftest$ac_exeext conftest.$ac_ext
8962 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8964 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8965 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"
8967 if test "$host_cpu" = ia64; then
8968 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8969 allow_undefined_flag="-z nodefs"
8970 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"
8972 # Determine the default libpath from the value encoded in an
8974 cat >conftest.$ac_ext <<_ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h. */
8989 rm -f conftest.$ac_objext conftest$ac_exeext
8990 if { (ac_try="$ac_link"
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8996 $as_echo "$ac_try_echo") >&5
8997 (eval "$ac_link") 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest$ac_exeext && {
9007 test "$cross_compiling" = yes ||
9008 $as_test_x conftest$ac_exeext
9011 lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 # Check for a 64-bit object if we didn't find anything.
9020 if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024 $as_echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -rf conftest.dSYM
9031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9032 conftest$ac_exeext conftest.$ac_ext
9033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9036 # Warning - without using the other run time loading flags,
9037 # -berok will link without error, but may produce a broken library.
9038 no_undefined_flag=' ${wl}-bernotok'
9039 allow_undefined_flag=' ${wl}-berok'
9040 # Exported symbols can be pulled into shared objects from archives
9041 whole_archive_flag_spec='$convenience'
9042 archive_cmds_need_lc=yes
9043 # This is similar to how AIX traditionally builds its shared libraries.
9044 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'
9052 # see comment about AmigaOS4 .so support
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds=''
9057 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)'
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9065 export_dynamic_flag_spec=-rdynamic
9068 cygwin* | mingw* | pw32* | cegcc*)
9069 # When not using gcc, we currently assume that we are using
9070 # Microsoft Visual C++.
9071 # hardcode_libdir_flag_spec is actually meaningless, as there is
9072 # no search path for DLLs.
9073 hardcode_libdir_flag_spec=' '
9074 allow_undefined_flag=unsupported
9075 # Tell ltmain to make .lib files, not .a files.
9077 # Tell ltmain to make .dll files, not .so files.
9079 # FIXME: Setting linknames here is a bad hack.
9080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9081 # The linker will automatically build a .lib file if we build a DLL.
9082 old_archive_from_new_cmds='true'
9083 # FIXME: Should let the user specify the lib program.
9084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085 fix_srcfile_path='`cygpath -w "$srcfile"`'
9086 enable_shared_with_static_runtimes=yes
9089 darwin* | rhapsody*)
9092 archive_cmds_need_lc=no
9094 hardcode_automatic=yes
9095 hardcode_shlibpath_var=unsupported
9096 whole_archive_flag_spec=''
9097 link_all_deplibs=yes
9098 allow_undefined_flag="$_lt_dar_allow_undefined"
9099 case $cc_basename in
9100 ifort*) _lt_dar_can_shared=yes ;;
9101 *) _lt_dar_can_shared=$GCC ;;
9103 if test "$_lt_dar_can_shared" = "yes"; then
9104 output_verbose_link_cmd=echo
9105 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9106 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9107 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}"
9108 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}"
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_shlibpath_var=no
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9134 hardcode_shlibpath_var=no
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9150 hardcode_shlibpath_var=no
9154 if test "$GCC" = yes; then
9155 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'
9157 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'
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9170 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_flag_spec_ld='+b $libdir'
9178 hardcode_libdir_separator=:
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9189 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9214 if test "$with_gnu_ld" = no; then
9215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216 hardcode_libdir_separator=:
9221 hardcode_shlibpath_var=no
9225 hardcode_direct_absolute=yes
9226 export_dynamic_flag_spec='${wl}-E'
9228 # hardcode_minus_L: Not really in the search PATH,
9229 # but as the default location of the library.
9230 hardcode_minus_L=yes
9236 irix5* | irix6* | nonstopux*)
9237 if test "$GCC" = yes; then
9238 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'
9239 # Try to use the -exported_symbol ld option, if it does not
9240 # work, assume that -exports_file does not work either and
9241 # implicitly export all symbols.
9242 save_LDFLAGS="$LDFLAGS"
9243 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9244 cat >conftest.$ac_ext <<_ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9254 $as_echo "$ac_try_echo") >&5
9255 (eval "$ac_link") 2>conftest.er1
9257 grep -v '^ *+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } && {
9262 test -z "$ac_c_werror_flag" ||
9263 test ! -s conftest.err
9264 } && test -s conftest$ac_exeext && {
9265 test "$cross_compiling" = yes ||
9266 $as_test_x conftest$ac_exeext
9268 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'
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9277 rm -rf conftest.dSYM
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 LDFLAGS="$save_LDFLAGS"
9282 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'
9283 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'
9285 archive_cmds_need_lc='no'
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 hardcode_libdir_separator=:
9289 link_all_deplibs=yes
9293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9296 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9298 hardcode_libdir_flag_spec='-R$libdir'
9300 hardcode_shlibpath_var=no
9304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
9308 hardcode_shlibpath_var=no
9315 if test -f /usr/libexec/ld.so; then
9317 hardcode_shlibpath_var=no
9318 hardcode_direct_absolute=yes
9319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9322 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9323 export_dynamic_flag_spec='${wl}-E'
9326 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-R$libdir'
9331 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9332 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_minus_L=yes
9344 allow_undefined_flag=unsupported
9345 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'
9346 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9350 if test "$GCC" = yes; then
9351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9352 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'
9354 allow_undefined_flag=' -expect_unresolved \*'
9355 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'
9357 archive_cmds_need_lc='no'
9358 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9359 hardcode_libdir_separator=:
9362 osf4* | osf5*) # as osf3* with the addition of -msym flag
9363 if test "$GCC" = yes; then
9364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9365 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'
9366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 allow_undefined_flag=' -expect_unresolved \*'
9369 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'
9370 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~
9371 $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'
9373 # Both c and cxx compiler support -rpath directly
9374 hardcode_libdir_flag_spec='-rpath $libdir'
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_separator=:
9381 no_undefined_flag=' -z defs'
9382 if test "$GCC" = yes; then
9384 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9386 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9388 case `$CC -V 2>&1` in
9391 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9397 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9403 hardcode_libdir_flag_spec='-R$libdir'
9404 hardcode_shlibpath_var=no
9406 solaris2.[0-5] | solaris2.[0-5].*) ;;
9408 # The compiler driver will combine and reorder linker options,
9409 # but understands `-z linker_flag'. GCC discards it without `$wl',
9410 # but is careful enough not to reorder.
9411 # Supported since Solaris 2.6 (maybe 2.5.1?)
9412 if test "$GCC" = yes; then
9413 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9419 link_all_deplibs=yes
9423 if test "x$host_vendor" = xsequent; then
9424 # Use $CC to link under sequent, because it throws in some extra .o
9425 # files that make .init and .fini sections work.
9426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_libdir_flag_spec='-L$libdir'
9432 hardcode_minus_L=yes
9433 hardcode_shlibpath_var=no
9437 case $host_vendor in
9439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9440 hardcode_direct=yes # is this really true???
9443 ## LD is ld it makes a PLAMLIB
9444 ## CC just makes a GrossModule.
9445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9446 reload_cmds='$CC -r -o $output$reload_objs'
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9454 runpath_var='LD_RUN_PATH'
9455 hardcode_shlibpath_var=no
9459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_shlibpath_var=no
9461 export_dynamic_flag_spec='-Bexport'
9465 if test -d /usr/nec; then
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_shlibpath_var=no
9468 runpath_var=LD_RUN_PATH
9469 hardcode_runpath_var=yes
9474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9475 no_undefined_flag='${wl}-z,text'
9476 archive_cmds_need_lc=no
9477 hardcode_shlibpath_var=no
9478 runpath_var='LD_RUN_PATH'
9480 if test "$GCC" = yes; then
9481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 sysv5* | sco3.2v5* | sco5v6*)
9490 # Note: We can NOT use -z defs as we might desire, because we do not
9491 # link with -lc, and that would cause any symbols used from libc to
9492 # always be unresolved, which means just about no library would
9493 # ever link correctly. If we're not using GNU ld we use -z text
9494 # though, which does catch some bad symbols but isn't as heavy-handed
9496 no_undefined_flag='${wl}-z,text'
9497 allow_undefined_flag='${wl}-z,nodefs'
9498 archive_cmds_need_lc=no
9499 hardcode_shlibpath_var=no
9500 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9501 hardcode_libdir_separator=':'
9502 link_all_deplibs=yes
9503 export_dynamic_flag_spec='${wl}-Bexport'
9504 runpath_var='LD_RUN_PATH'
9506 if test "$GCC" = yes; then
9507 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_shlibpath_var=no
9526 if test x$host_vendor = xsni; then
9528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9529 export_dynamic_flag_spec='${wl}-Blargedynsym'
9535 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9536 $as_echo "$ld_shlibs" >&6; }
9537 test "$ld_shlibs" = no && can_build_shared=no
9539 with_gnu_ld=$with_gnu_ld
9556 # Do we need to explicitly link libc?
9558 case "x$archive_cmds_need_lc" in
9560 # Assume -lc should be added
9561 archive_cmds_need_lc=yes
9563 if test "$enable_shared" = yes && test "$GCC" = yes; then
9564 case $archive_cmds in
9566 # FIXME: we may have to deal with multi-command sequences.
9569 # Test whether the compiler implicitly links with -lc since on some
9570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9571 # to ld, don't add -lc before -lgcc.
9572 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9578 (eval $ac_compile) 2>&5
9580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } 2>conftest.err; then
9584 libobjs=conftest.$ac_objext
9586 wl=$lt_prog_compiler_wl
9587 pic_flag=$lt_prog_compiler_pic
9593 lt_save_allow_undefined_flag=$allow_undefined_flag
9594 allow_undefined_flag=
9595 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9596 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }
9601 archive_cmds_need_lc=no
9603 archive_cmds_need_lc=yes
9605 allow_undefined_flag=$lt_save_allow_undefined_flag
9607 cat conftest.err 1>&5
9610 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9611 $as_echo "$archive_cmds_need_lc" >&6; }
9774 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9777 if test "$GCC" = yes; then
9779 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9780 *) lt_awk_arg="/^libraries:/" ;;
9782 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9783 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9784 # if the path contains ";" then we assume it to be the separator
9785 # otherwise default to the standard path separator (i.e. ":") - it is
9786 # assumed that no part of a normal pathname contains ";" but that should
9787 # okay in the real world where ";" in dirpaths is itself problematic.
9788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9792 # Ok, now we have the path, separated by spaces, we can step through it
9793 # and add multilib dir if necessary.
9794 lt_tmp_lt_search_path_spec=
9795 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9796 for lt_sys_path in $lt_search_path_spec; do
9797 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9800 test -d "$lt_sys_path" && \
9801 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9804 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9805 BEGIN {RS=" "; FS="/|\n";} {
9808 for (lt_i = NF; lt_i > 0; lt_i--) {
9809 if ($lt_i != "" && $lt_i != ".") {
9810 if ($lt_i == "..") {
9813 if (lt_count == 0) {
9814 lt_foo="/" $lt_i lt_foo;
9821 if (lt_foo != "") { lt_freq[lt_foo]++; }
9822 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9824 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9826 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9829 libname_spec='lib$name'
9837 shlibpath_overrides_runpath=unknown
9839 dynamic_linker="$host_os ld.so"
9840 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9841 need_lib_prefix=unknown
9842 hardcode_into_libs=no
9844 # when you set need_version to no, make sure it does not cause -set_version
9845 # flags to be left without arguments
9846 need_version=unknown
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9852 shlibpath_var=LIBPATH
9854 # AIX 3 has no versioning support, so we append a major version to the name.
9855 soname_spec='${libname}${release}${shared_ext}$major'
9862 hardcode_into_libs=yes
9863 if test "$host_cpu" = ia64; then
9864 # AIX 5 supports IA64
9865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9866 shlibpath_var=LD_LIBRARY_PATH
9868 # With GCC up to 2.95.x, collect2 would create an import file
9869 # for dependence libraries. The import file would start with
9870 # the line `#! .'. This would cause the generated library to
9871 # depend on `.', always an invalid library. This was fixed in
9872 # development snapshots of GCC prior to 3.0.
9874 aix4 | aix4.[01] | aix4.[01].*)
9875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9885 # soname into executable. Probably we can add versioning support to
9886 # collect2, so additional links can be useful in future.
9887 if test "$aix_use_runtimelinking" = yes; then
9888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9889 # instead of lib<name>.a to let people know that these are not
9890 # typical AIX shared libraries.
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 # We preserve .a as extension for shared libraries through AIX4.2
9894 # and later when we are not doing run time linking.
9895 library_names_spec='${libname}${release}.a $libname.a'
9896 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LIBPATH
9905 # Since July 2007 AmigaOS4 officially supports .so libraries.
9906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 library_names_spec='$libname.ixlibrary $libname.a'
9911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9912 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'
9918 library_names_spec='${libname}${shared_ext}'
9919 dynamic_linker="$host_os ld.so"
9920 shlibpath_var=LIBRARY_PATH
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9932 # the default ld.so.conf also contains /usr/contrib/lib and
9933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9934 # libtool to hard-code these into programs
9937 cygwin* | mingw* | pw32* | cegcc*)
9938 version_type=windows
9943 case $GCC,$host_os in
9944 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9945 library_names_spec='$libname.dll.a'
9946 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9947 postinstall_cmds='base_file=`basename \${file}`~
9948 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9949 dldir=$destdir/`dirname \$dlpath`~
9950 test -d \$dldir || mkdir -p \$dldir~
9951 $install_prog $dir/$dlname \$dldir/$dlname~
9952 chmod a+x \$dldir/$dlname~
9953 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9954 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9956 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9957 dlpath=$dir/\$dldll~
9959 shlibpath_overrides_runpath=yes
9963 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9964 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9968 # MinGW DLLs use traditional 'lib' prefix
9969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9970 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9971 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9972 # It is most probably a Windows format PATH printed by
9973 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9974 # path with ; separators, and with drive letters. We can handle the
9975 # drive letters (cygwin fileutils understands them), so leave them,
9976 # especially as we might pass files found there to a mingw objdump,
9977 # which wouldn't understand a cygwinified path. Ahh.
9978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9984 # pw32 DLLs use 'pw' prefix rather than 'lib'
9985 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9991 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9994 dynamic_linker='Win32 ld.exe'
9995 # FIXME: first we should search . and the directory the executable is in
9999 darwin* | rhapsody*)
10000 dynamic_linker="$host_os dyld"
10001 version_type=darwin
10004 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10005 soname_spec='${libname}${release}${major}$shared_ext'
10006 shlibpath_overrides_runpath=yes
10007 shlibpath_var=DYLD_LIBRARY_PATH
10008 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10010 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10019 soname_spec='${libname}${release}${shared_ext}$major'
10020 shlibpath_var=LD_LIBRARY_PATH
10027 freebsd* | dragonfly*)
10028 # DragonFly does not have aout. When/if they implement a new
10029 # versioning mechanism, adjust this.
10030 if test -x /usr/bin/objformat; then
10031 objformat=`/usr/bin/objformat`
10034 freebsd[123]*) objformat=aout ;;
10035 *) objformat=elf ;;
10038 version_type=freebsd-$objformat
10039 case $version_type in
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10050 shlibpath_var=LD_LIBRARY_PATH
10053 shlibpath_overrides_runpath=yes
10055 freebsd3.[01]* | freebsdelf3.[01]*)
10056 shlibpath_overrides_runpath=yes
10057 hardcode_into_libs=yes
10059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10064 *) # from 4.6 on, and DragonFly
10065 shlibpath_overrides_runpath=yes
10066 hardcode_into_libs=yes
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 hardcode_into_libs=yes
10081 hpux9* | hpux10* | hpux11*)
10082 # Give a soname corresponding to the major version so that dld.sl refuses to
10083 # link against other versions.
10090 hardcode_into_libs=yes
10091 dynamic_linker="$host_os dld.so"
10092 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
10097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10105 hardcode_into_libs=yes
10106 dynamic_linker="$host_os dld.sl"
10107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10116 dynamic_linker="$host_os dld.sl"
10117 shlibpath_var=SHLIB_PATH
10118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10120 soname_spec='${libname}${release}${shared_ext}$major'
10123 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10124 postinstall_cmds='chmod 555 $lib'
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 shlibpath_overrides_runpath=no
10136 hardcode_into_libs=yes
10139 irix5* | irix6* | nonstopux*)
10141 nonstopux*) version_type=nonstopux ;;
10143 if test "$lt_cv_prog_gnu_ld" = yes; then
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10154 irix5* | nonstopux*)
10155 libsuff= shlibsuff=
10158 case $LD in # libtool.m4 will add one of these switches to LD
10159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10160 libsuff= shlibsuff= libmagic=32-bit;;
10161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10162 libsuff=32 shlibsuff=N32 libmagic=N32;;
10163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10164 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10165 *) libsuff= shlibsuff= libmagic=never-match;;
10169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10170 shlibpath_overrides_runpath=no
10171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10173 hardcode_into_libs=yes
10176 # No shared lib support for Linux oldld, aout, or coff.
10177 linux*oldld* | linux*aout* | linux*coff*)
10181 # This must be Linux ELF.
10182 linux* | k*bsd*-gnu)
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 soname_spec='${libname}${release}${shared_ext}$major'
10188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 shlibpath_overrides_runpath=no
10191 # Some binutils ld are patched to set DT_RUNPATH
10192 save_LDFLAGS=$LDFLAGS
10193 save_libdir=$libdir
10194 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10195 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10211 rm -f conftest.$ac_objext conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10218 $as_echo "$ac_try_echo") >&5
10219 (eval "$ac_link") 2>conftest.er1
10221 grep -v '^ *+' conftest.er1 >conftest.err
10223 cat conftest.err >&5
10224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && {
10226 test -z "$ac_c_werror_flag" ||
10227 test ! -s conftest.err
10228 } && test -s conftest$ac_exeext && {
10229 test "$cross_compiling" = yes ||
10230 $as_test_x conftest$ac_exeext
10232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10233 shlibpath_overrides_runpath=yes
10237 $as_echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.$ac_ext >&5
10243 rm -rf conftest.dSYM
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10246 LDFLAGS=$save_LDFLAGS
10247 libdir=$save_libdir
10249 # This implies no fast_install, which is unacceptable.
10250 # Some rework will be needed to allow for fast_install
10251 # before this can be enabled.
10252 hardcode_into_libs=yes
10254 # Add ABI-specific directories to the system library path.
10255 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10257 # Append ld.so.conf contents to the search path
10258 if test -f /etc/ld.so.conf; then
10259 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' ' '`
10260 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10263 # We used to test for /lib/ld.so.1 and disable shared libraries on
10264 # powerpc, because MkLinux only supported shared libraries with the
10265 # GNU dynamic linker. Since this was broken with cross compilers,
10266 # most powerpc-linux boxes support dynamic linking these days and
10267 # people can always --disable-shared, the test was removed, and we
10268 # assume the GNU/Linux dynamic linker is in use.
10269 dynamic_linker='GNU/Linux ld.so'
10276 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10279 dynamic_linker='NetBSD (a.out) ld.so'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 dynamic_linker='NetBSD ld.elf_so'
10285 shlibpath_var=LD_LIBRARY_PATH
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=no
10305 hardcode_into_libs=yes
10306 dynamic_linker='ldqnx.so'
10311 sys_lib_dlsearch_path_spec="/usr/lib"
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10327 shlibpath_overrides_runpath=yes
10331 shlibpath_overrides_runpath=yes
10336 libname_spec='$name'
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10344 osf3* | osf4* | osf5*)
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 shlibpath_overrides_runpath=yes
10367 hardcode_into_libs=yes
10368 # ldd complains unless libraries are executable
10369 postinstall_cmds='chmod +x $lib'
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10375 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10376 shlibpath_var=LD_LIBRARY_PATH
10377 shlibpath_overrides_runpath=yes
10378 if test "$with_gnu_ld" = yes; then
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 case $host_vendor in
10391 shlibpath_overrides_runpath=no
10393 runpath_var=LD_RUN_PATH
10401 shlibpath_overrides_runpath=no
10402 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10408 if test -d /usr/nec ;then
10410 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411 soname_spec='$libname${shared_ext}.$major'
10412 shlibpath_var=LD_LIBRARY_PATH
10416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10417 version_type=freebsd-elf
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=yes
10424 hardcode_into_libs=yes
10425 if test "$with_gnu_ld" = yes; then
10426 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10428 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10435 sys_lib_dlsearch_path_spec='/usr/lib'
10439 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446 hardcode_into_libs=yes
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 shlibpath_var=LD_LIBRARY_PATH
10460 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10461 $as_echo "$dynamic_linker" >&6; }
10462 test "$dynamic_linker" = no && can_build_shared=no
10464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10465 if test "$GCC" = yes; then
10466 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10469 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10470 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10473 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10562 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10563 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 if test -n "$hardcode_libdir_flag_spec" ||
10566 test -n "$runpath_var" ||
10567 test "X$hardcode_automatic" = "Xyes" ; then
10569 # We can hardcode non-existent directories.
10570 if test "$hardcode_direct" != no &&
10571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572 # have to relink, otherwise we might link with an installed library
10573 # when we should be linking with a yet-to-be-installed one
10574 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575 test "$hardcode_minus_L" != no; then
10576 # Linking always hardcodes the temporary library directory.
10577 hardcode_action=relink
10579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580 hardcode_action=immediate
10583 # We cannot hardcode anything, or else we can only hardcode existing
10585 hardcode_action=unsupported
10587 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10588 $as_echo "$hardcode_action" >&6; }
10590 if test "$hardcode_action" = relink ||
10591 test "$inherit_rpath" = yes; then
10592 # Fast installation is not supported
10593 enable_fast_install=no
10594 elif test "$shlibpath_overrides_runpath" = yes ||
10595 test "$enable_shared" = no; then
10596 # Fast installation is not necessary
10597 enable_fast_install=needless
10605 if test "x$enable_dlopen" != xyes; then
10606 enable_dlopen=unknown
10607 enable_dlopen_self=unknown
10608 enable_dlopen_self_static=unknown
10615 lt_cv_dlopen="load_add_on"
10617 lt_cv_dlopen_self=yes
10620 mingw* | pw32* | cegcc*)
10621 lt_cv_dlopen="LoadLibrary"
10626 lt_cv_dlopen="dlopen"
10631 # if libdl is installed we need to link against it
10632 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10633 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10634 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10635 $as_echo_n "(cached) " >&6
10637 ac_check_lib_save_LIBS=$LIBS
10639 cat >conftest.$ac_ext <<_ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10646 /* Override any GCC internal prototype to avoid an error.
10647 Use char because int might match the return type of a GCC
10648 builtin and then its argument prototype would still apply. */
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (ac_try="$ac_link"
10663 case "(($ac_try" in
10664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10668 $as_echo "$ac_try_echo") >&5
10669 (eval "$ac_link") 2>conftest.er1
10671 grep -v '^ *+' conftest.er1 >conftest.err
10673 cat conftest.err >&5
10674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest$ac_exeext && {
10679 test "$cross_compiling" = yes ||
10680 $as_test_x conftest$ac_exeext
10682 ac_cv_lib_dl_dlopen=yes
10684 $as_echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10687 ac_cv_lib_dl_dlopen=no
10690 rm -rf conftest.dSYM
10691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 lt_cv_dlopen="dyld"
10703 lt_cv_dlopen_self=yes
10710 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10711 $as_echo_n "checking for shl_load... " >&6; }
10712 if test "${ac_cv_func_shl_load+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10715 cat >conftest.$ac_ext <<_ACEOF
10718 cat confdefs.h >>conftest.$ac_ext
10719 cat >>conftest.$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define shl_load innocuous_shl_load
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char shl_load (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10731 # include <limits.h>
10733 # include <assert.h>
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10745 /* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748 #if defined __stub_shl_load || defined __stub___shl_load
10755 return shl_load ();
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767 $as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>conftest.er1
10770 grep -v '^ *+' conftest.er1 >conftest.err
10772 cat conftest.err >&5
10773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && {
10775 test -z "$ac_c_werror_flag" ||
10776 test ! -s conftest.err
10777 } && test -s conftest$ac_exeext && {
10778 test "$cross_compiling" = yes ||
10779 $as_test_x conftest$ac_exeext
10781 ac_cv_func_shl_load=yes
10783 $as_echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10786 ac_cv_func_shl_load=no
10789 rm -rf conftest.dSYM
10790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10791 conftest$ac_exeext conftest.$ac_ext
10793 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10794 $as_echo "$ac_cv_func_shl_load" >&6; }
10795 if test "x$ac_cv_func_shl_load" = x""yes; then
10796 lt_cv_dlopen="shl_load"
10798 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10799 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10800 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10801 $as_echo_n "(cached) " >&6
10803 ac_check_lib_save_LIBS=$LIBS
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10822 return shl_load ();
10827 rm -f conftest.$ac_objext conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10834 $as_echo "$ac_try_echo") >&5
10835 (eval "$ac_link") 2>conftest.er1
10837 grep -v '^ *+' conftest.er1 >conftest.err
10839 cat conftest.err >&5
10840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } && {
10842 test -z "$ac_c_werror_flag" ||
10843 test ! -s conftest.err
10844 } && test -s conftest$ac_exeext && {
10845 test "$cross_compiling" = yes ||
10846 $as_test_x conftest$ac_exeext
10848 ac_cv_lib_dld_shl_load=yes
10850 $as_echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ac_cv_lib_dld_shl_load=no
10856 rm -rf conftest.dSYM
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10862 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10863 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10866 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10867 $as_echo_n "checking for dlopen... " >&6; }
10868 if test "${ac_cv_func_dlopen+set}" = set; then
10869 $as_echo_n "(cached) " >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10879 #define dlopen innocuous_dlopen
10881 /* System header to define __stub macros and hopefully few prototypes,
10882 which can conflict with char dlopen (); below.
10883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10884 <limits.h> exists even on freestanding compilers. */
10887 # include <limits.h>
10889 # include <assert.h>
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10901 /* The GNU C library defines this for functions which it implements
10902 to always fail with ENOSYS. Some functions are actually named
10903 something starting with __ and the normal name is an alias. */
10904 #if defined __stub_dlopen || defined __stub___dlopen
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest$ac_exeext && {
10934 test "$cross_compiling" = yes ||
10935 $as_test_x conftest$ac_exeext
10937 ac_cv_func_dlopen=yes
10939 $as_echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_func_dlopen=no
10945 rm -rf conftest.dSYM
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10949 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10950 $as_echo "$ac_cv_func_dlopen" >&6; }
10951 if test "x$ac_cv_func_dlopen" = x""yes; then
10952 lt_cv_dlopen="dlopen"
10954 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10956 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10957 $as_echo_n "(cached) " >&6
10959 ac_check_lib_save_LIBS=$LIBS
10961 cat >conftest.$ac_ext <<_ACEOF
10964 cat confdefs.h >>conftest.$ac_ext
10965 cat >>conftest.$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10968 /* Override any GCC internal prototype to avoid an error.
10969 Use char because int might match the return type of a GCC
10970 builtin and then its argument prototype would still apply. */
10983 rm -f conftest.$ac_objext conftest$ac_exeext
10984 if { (ac_try="$ac_link"
10985 case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10990 $as_echo "$ac_try_echo") >&5
10991 (eval "$ac_link") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest$ac_exeext && {
11001 test "$cross_compiling" = yes ||
11002 $as_test_x conftest$ac_exeext
11004 ac_cv_lib_dl_dlopen=yes
11006 $as_echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11009 ac_cv_lib_dl_dlopen=no
11012 rm -rf conftest.dSYM
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11018 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11019 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11023 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11024 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11025 $as_echo_n "(cached) " >&6
11027 ac_check_lib_save_LIBS=$LIBS
11028 LIBS="-lsvld $LIBS"
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 /* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11058 $as_echo "$ac_try_echo") >&5
11059 (eval "$ac_link") 2>conftest.er1
11061 grep -v '^ *+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest$ac_exeext && {
11069 test "$cross_compiling" = yes ||
11070 $as_test_x conftest$ac_exeext
11072 ac_cv_lib_svld_dlopen=yes
11074 $as_echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_lib_svld_dlopen=no
11080 rm -rf conftest.dSYM
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS=$ac_check_lib_save_LIBS
11085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11086 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11087 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11090 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11091 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11093 $as_echo_n "(cached) " >&6
11095 ac_check_lib_save_LIBS=$LIBS
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11114 return dld_link ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127 (eval "$ac_link") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } && {
11134 test -z "$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11136 } && test -s conftest$ac_exeext && {
11137 test "$cross_compiling" = yes ||
11138 $as_test_x conftest$ac_exeext
11140 ac_cv_lib_dld_dld_link=yes
11142 $as_echo "$as_me: failed program was:" >&5
11143 sed 's/^/| /' conftest.$ac_ext >&5
11145 ac_cv_lib_dld_dld_link=no
11148 rm -rf conftest.dSYM
11149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150 conftest$ac_exeext conftest.$ac_ext
11151 LIBS=$ac_check_lib_save_LIBS
11153 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11154 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11155 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11177 if test "x$lt_cv_dlopen" != xno; then
11183 case $lt_cv_dlopen in
11185 save_CPPFLAGS="$CPPFLAGS"
11186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11188 save_LDFLAGS="$LDFLAGS"
11189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11192 LIBS="$lt_cv_dlopen_libs $LIBS"
11194 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11195 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11196 if test "${lt_cv_dlopen_self+set}" = set; then
11197 $as_echo_n "(cached) " >&6
11199 if test "$cross_compiling" = yes; then :
11200 lt_cv_dlopen_self=cross
11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11203 lt_status=$lt_dlunknown
11204 cat > conftest.$ac_ext <<_LT_EOF
11205 #line 11205 "configure"
11206 #include "confdefs.h"
11215 # define LT_DLGLOBAL RTLD_GLOBAL
11218 # define LT_DLGLOBAL DL_GLOBAL
11220 # define LT_DLGLOBAL 0
11224 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11225 find out it does not work in some platform. */
11226 #ifndef LT_DLLAZY_OR_NOW
11228 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11231 # define LT_DLLAZY_OR_NOW DL_LAZY
11234 # define LT_DLLAZY_OR_NOW RTLD_NOW
11237 # define LT_DLLAZY_OR_NOW DL_NOW
11239 # define LT_DLLAZY_OR_NOW 0
11246 void fnord() { int i=42;}
11249 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11250 int status = $lt_dlunknown;
11254 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11255 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11256 /* dlclose (self); */
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>&5
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11269 (./conftest; exit; ) >&5 2>/dev/null
11271 case x$lt_status in
11272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11274 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11277 # compilation failed
11278 lt_cv_dlopen_self=no
11285 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11286 $as_echo "$lt_cv_dlopen_self" >&6; }
11288 if test "x$lt_cv_dlopen_self" = xyes; then
11289 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11290 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11291 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11292 if test "${lt_cv_dlopen_self_static+set}" = set; then
11293 $as_echo_n "(cached) " >&6
11295 if test "$cross_compiling" = yes; then :
11296 lt_cv_dlopen_self_static=cross
11298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11299 lt_status=$lt_dlunknown
11300 cat > conftest.$ac_ext <<_LT_EOF
11301 #line 11301 "configure"
11302 #include "confdefs.h"
11311 # define LT_DLGLOBAL RTLD_GLOBAL
11314 # define LT_DLGLOBAL DL_GLOBAL
11316 # define LT_DLGLOBAL 0
11320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11321 find out it does not work in some platform. */
11322 #ifndef LT_DLLAZY_OR_NOW
11324 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11327 # define LT_DLLAZY_OR_NOW DL_LAZY
11330 # define LT_DLLAZY_OR_NOW RTLD_NOW
11333 # define LT_DLLAZY_OR_NOW DL_NOW
11335 # define LT_DLLAZY_OR_NOW 0
11342 void fnord() { int i=42;}
11345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346 int status = $lt_dlunknown;
11350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11351 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11352 /* dlclose (self); */
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>&5
11363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11365 (./conftest; exit; ) >&5 2>/dev/null
11367 case x$lt_status in
11368 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11369 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11370 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11373 # compilation failed
11374 lt_cv_dlopen_self_static=no
11381 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11382 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11385 CPPFLAGS="$save_CPPFLAGS"
11386 LDFLAGS="$save_LDFLAGS"
11391 case $lt_cv_dlopen_self in
11392 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11393 *) enable_dlopen_self=unknown ;;
11396 case $lt_cv_dlopen_self_static in
11397 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11398 *) enable_dlopen_self_static=unknown ;;
11420 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11421 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11422 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11425 { $as_echo "$as_me:$LINENO: result: yes" >&5
11426 $as_echo "yes" >&6; }
11428 # FIXME - insert some real tests, host_os isn't really good enough
11431 if test -n "$STRIP" ; then
11432 striplib="$STRIP -x"
11433 old_striplib="$STRIP -S"
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438 $as_echo "no" >&6; }
11442 { $as_echo "$as_me:$LINENO: result: no" >&5
11443 $as_echo "no" >&6; }
11459 # Report which library types will actually be built
11460 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11461 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11462 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11463 $as_echo "$can_build_shared" >&6; }
11465 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11466 $as_echo_n "checking whether to build shared libraries... " >&6; }
11467 test "$can_build_shared" = "no" && enable_shared=no
11469 # On AIX, shared libraries and static libraries use the same namespace, and
11470 # are all built from PIC.
11473 test "$enable_shared" = yes && enable_static=no
11474 if test -n "$RANLIB"; then
11475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11476 postinstall_cmds='$RANLIB $lib'
11481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11482 test "$enable_shared" = yes && enable_static=no
11486 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11487 $as_echo "$enable_shared" >&6; }
11489 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11490 $as_echo_n "checking whether to build static libraries... " >&6; }
11491 # Make sure either enable_shared or enable_static is yes.
11492 test "$enable_shared" = yes || enable_static=yes
11493 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11494 $as_echo "$enable_static" >&6; }
11501 ac_cpp='$CPP $CPPFLAGS'
11502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11520 ac_config_commands="$ac_config_commands libtool"
11525 # Only expand once:
11528 # By default we simply use the C compiler to build assembly code.
11530 test "${CCAS+set}" = set || CCAS=$CC
11531 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11535 depcc="$CCAS" am_compiler_list=
11537 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11538 $as_echo_n "checking dependency style of $depcc... " >&6; }
11539 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11540 $as_echo_n "(cached) " >&6
11542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11543 # We make a subdir and do the tests there. Otherwise we can end up
11544 # making bogus files that we don't know about and never remove. For
11545 # instance it was reported that on HP-UX the gcc test will end up
11546 # making a dummy file named `D' -- because `-MD' means `put the output
11549 # Copy depcomp to subdir because otherwise we won't find it if we're
11550 # using a relative directory.
11551 cp "$am_depcomp" conftest.dir
11553 # We will build objects and dependencies in a subdirectory because
11554 # it helps to detect inapplicable dependency modes. For instance
11555 # both Tru64's cc and ICC support -MD to output dependencies as a
11556 # side effect of compilation, but ICC will put the dependencies in
11557 # the current directory while Tru64 will put them in the object
11561 am_cv_CCAS_dependencies_compiler_type=none
11562 if test "$am_compiler_list" = ""; then
11563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11565 am__universal=false
11568 for depmode in $am_compiler_list; do
11569 # Setup a source with many dependencies, because some compilers
11570 # like to wrap large dependency lists on column 80 (with \), and
11571 # we should not choose a depcomp mode which is confused by this.
11573 # We need to recreate these files for each test, as the compiler may
11574 # overwrite some of them when testing with obscure command lines.
11575 # This happens at least with the AIX C compiler.
11577 for i in 1 2 3 4 5 6; do
11578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11579 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11580 # Solaris 8's {/usr,}/bin/sh.
11581 touch sub/conftst$i.h
11583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11585 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11586 # mode. It turns out that the SunPro C++ compiler does not properly
11587 # handle `-M -o', and we need to detect this. Also, some Intel
11588 # versions had trouble with output in subdirs
11589 am__obj=sub/conftest.${OBJEXT-o}
11590 am__minus_obj="-o $am__obj"
11593 # This depmode causes a compiler race in universal mode.
11594 test "$am__universal" = false || continue
11597 # after this tag, mechanisms are not by side-effect, so they'll
11598 # only be used when explicitly requested
11599 if test "x$enable_dependency_tracking" = xyes; then
11605 msvisualcpp | msvcmsys)
11606 # This compiler won't grok `-c -o', but also, the minuso test has
11607 # not run yet. These depmodes are late enough in the game, and
11608 # so weak that their functioning should not be impacted.
11609 am__obj=conftest.${OBJEXT-o}
11614 if depmode=$depmode \
11615 source=sub/conftest.c object=$am__obj \
11616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11618 >/dev/null 2>conftest.err &&
11619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11623 # icc doesn't choke on unknown options, it will just issue warnings
11624 # or remarks (even with -Werror). So we grep stderr for any message
11625 # that says an option was ignored or not supported.
11626 # When given -MP, icc 7.0 and 7.1 complain thusly:
11627 # icc: Command line warning: ignoring option '-M'; no argument required
11628 # The diagnosis changed in icc 8.0:
11629 # icc: Command line remark: option '-MP' not supported
11630 if (grep 'ignoring option' conftest.err ||
11631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11632 am_cv_CCAS_dependencies_compiler_type=$depmode
11639 rm -rf conftest.dir
11641 am_cv_CCAS_dependencies_compiler_type=none
11645 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11646 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11647 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11650 test "x$enable_dependency_tracking" != xno \
11651 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11652 am__fastdepCCAS_TRUE=
11653 am__fastdepCCAS_FALSE='#'
11655 am__fastdepCCAS_TRUE='#'
11656 am__fastdepCCAS_FALSE=
11662 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11663 $as_echo_n "checking zfs author... " >&6; }
11664 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11665 $as_echo "$ZFS_META_AUTHOR" >&6; }
11667 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11668 $as_echo_n "checking zfs license... " >&6; }
11669 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11670 $as_echo "$ZFS_META_LICENSE" >&6; }
11674 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11675 $as_echo_n "checking linux distribution... " >&6; }
11676 if test -f /etc/redhat-release ; then
11678 elif test -f /etc/fedora-release ; then
11680 elif test -f /etc/gentoo-release ; then
11682 elif test -f /etc/debian_version ; then
11684 elif test -f /etc/SuSE-release ; then
11686 elif test -f /etc/slackware-version ; then
11688 elif test -f /etc/arch-release ; then
11690 elif test -f /etc/lsb-release ; then
11692 elif test -f /etc/lunar.release ; then
11697 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11698 $as_echo "$VENDOR" >&6; }
11701 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11702 $as_echo_n "checking default package type... " >&6; }
11704 redhat) DEFAULT_PACKAGE=rpm ;;
11705 fedora) DEFAULT_PACKAGE=rpm ;;
11706 ubuntu) DEFAULT_PACKAGE=deb ;;
11707 debian) DEFAULT_PACKAGE=deb ;;
11708 sles) DEFAULT_PACKAGE=rpm ;;
11709 slackware) DEFAULT_PACKAGE=tgz ;;
11710 gentoo) DEFAULT_PACKAGE=tgz ;;
11711 lunar) DEFAULT_PACKAGE=tgz ;;
11712 arch) DEFAULT_PACKAGE=arch;;
11713 *) DEFAULT_PACKAGE=rpm ;;
11716 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11717 $as_echo "$DEFAULT_PACKAGE" >&6; }
11720 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11721 $as_echo_n "checking default init directory... " >&6; }
11723 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11724 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11727 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11728 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11731 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11732 $as_echo_n "checking default init script type... " >&6; }
11734 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11735 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11736 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11737 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11738 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11739 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11740 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11741 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11742 arch) DEFAULT_INIT_SCRIPT=arch ;;
11743 *) DEFAULT_INIT_SCRIPT=lsb ;;
11746 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11747 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11754 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11755 $as_echo_n "checking whether $RPM is available... " >&6; }
11756 if tmp=$($RPM --version 2>/dev/null); then
11758 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11760 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11761 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11766 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11767 $as_echo "$HAVE_RPM" >&6; }
11772 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11773 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11774 if tmp=$($RPMBUILD --version 2>/dev/null); then
11776 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11778 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11779 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11784 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11785 $as_echo "$HAVE_RPMBUILD" >&6; }
11800 DPKGBUILD=dpkg-buildpackage
11802 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11803 $as_echo_n "checking whether $DPKG is available... " >&6; }
11804 if tmp=$($DPKG --version 2>/dev/null); then
11806 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11808 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11809 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11814 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11815 $as_echo "$HAVE_DPKG" >&6; }
11820 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11821 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11822 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11824 DPKGBUILD_VERSION=$(echo $tmp | \
11825 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11827 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11828 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11833 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11834 $as_echo "$HAVE_DPKGBUILD" >&6; }
11850 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11851 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11852 if tmp=$($ALIEN --version 2>/dev/null); then
11854 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11856 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11857 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11862 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11863 $as_echo "$HAVE_ALIEN" >&6; }
11873 if test "$VENDOR" = "arch"; then
11878 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11879 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11880 tmp=$($PACMAN --version 2>/dev/null)
11881 if test -n "$tmp"; then
11883 PACMAN_VERSION=$(echo $tmp |
11884 $AWK '/Pacman/ { print $3 }' |
11887 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11888 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11893 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11894 $as_echo "$HAVE_PACMAN" >&6; }
11899 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11900 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11901 tmp=$($MAKEPKG --version 2>/dev/null)
11902 if test -n "$tmp"; then
11904 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11906 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11907 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11912 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11913 $as_echo "$HAVE_MAKEPKG" >&6; }
11930 TARGET_ASM_DIR=asm-generic
11935 # Check whether --with-config was given.
11936 if test "${with_config+set}" = set; then
11937 withval=$with_config; ZFS_CONFIG="$withval"
11941 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11942 $as_echo_n "checking zfs config... " >&6; }
11943 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11944 $as_echo "$ZFS_CONFIG" >&6; };
11949 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11950 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11952 saved_flags="$CFLAGS"
11953 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11955 if test "$cross_compiling" = yes; then
11956 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11958 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11959 See \`config.log' for more details." >&5
11960 $as_echo "$as_me: error: cannot run test program while cross compiling
11961 See \`config.log' for more details." >&2;}
11962 { (exit 1); exit 1; }; }; }
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11979 rm -f conftest$ac_exeext
11980 if { (ac_try="$ac_link"
11981 case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11986 $as_echo "$ac_try_echo") >&5
11987 (eval "$ac_link") 2>&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997 (eval "$ac_try") 2>&5
11999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12002 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12003 { $as_echo "$as_me:$LINENO: result: yes" >&5
12004 $as_echo "yes" >&6; }
12007 $as_echo "$as_me: program exited with status $ac_status" >&5
12008 $as_echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12011 ( exit $ac_status )
12013 NO_UNUSED_BUT_SET_VARIABLE=
12014 { $as_echo "$as_me:$LINENO: result: no" >&5
12015 $as_echo "no" >&6; }
12018 rm -rf conftest.dSYM
12019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12024 CFLAGS="$saved_flags"
12029 case "$ZFS_CONFIG" in
12033 # Check whether --with-linux was given.
12034 if test "${with_linux+set}" = set; then
12035 withval=$with_linux; kernelsrc="$withval"
12040 # Check whether --with-linux-obj was given.
12041 if test "${with_linux_obj+set}" = set; then
12042 withval=$with_linux_obj; kernelbuild="$withval"
12046 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12047 $as_echo_n "checking kernel source directory... " >&6; }
12048 if test -z "$kernelsrc"; then
12050 if test -e "/lib/modules/$(uname -r)/source"; then
12052 headersdir="/lib/modules/$(uname -r)/source"
12053 sourcelink=$(readlink -f "$headersdir")
12055 elif test -e "/lib/modules/$(uname -r)/build"; then
12057 headersdir="/lib/modules/$(uname -r)/build"
12058 sourcelink=$(readlink -f "$headersdir")
12062 sourcelink=$(ls -1d /usr/src/kernels/* \
12064 2>/dev/null | grep -v obj | tail -1)
12069 if test -n "$sourcelink" && test -e ${sourcelink}; then
12071 kernelsrc=`readlink -f ${sourcelink}`
12075 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12076 $as_echo "Not found" >&6; }
12077 { { $as_echo "$as_me:$LINENO: error:
12078 *** Please make sure the kernel devel package for your distribution
12079 *** is installed then try again. If that fails you can specify the
12080 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12081 $as_echo "$as_me: error:
12082 *** Please make sure the kernel devel package for your distribution
12083 *** is installed then try again. If that fails you can specify the
12084 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12085 { (exit 1); exit 1; }; }
12092 if test "$kernelsrc" = "NONE"; then
12102 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12103 $as_echo "$kernelsrc" >&6; }
12104 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12105 $as_echo_n "checking kernel build directory... " >&6; }
12106 if test -z "$kernelbuild"; then
12108 if test -e "/lib/modules/$(uname -r)/build"; then
12110 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12112 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12114 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12116 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12118 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12120 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12122 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12126 kernelbuild=${kernelsrc}
12133 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12134 $as_echo "$kernelbuild" >&6; }
12136 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12137 $as_echo_n "checking kernel source version... " >&6; }
12138 utsrelease1=$kernelbuild/include/linux/version.h
12139 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12140 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12141 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12143 utsrelease=linux/version.h
12145 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12147 utsrelease=linux/utsrelease.h
12149 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12151 utsrelease=generated/utsrelease.h
12156 if test "$utsrelease"; then
12158 kernsrcver=`(echo "#include <$utsrelease>";
12159 echo "kernsrcver=UTS_RELEASE") |
12160 cpp -I $kernelbuild/include |
12161 grep "^kernsrcver=" | cut -d \" -f 2`
12163 if test -z "$kernsrcver"; then
12165 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12166 $as_echo "Not found" >&6; }
12167 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12168 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12169 { (exit 1); exit 1; }; }
12176 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12177 $as_echo "Not found" >&6; }
12178 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12179 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12180 { (exit 1); exit 1; }; }
12185 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12186 $as_echo "$kernsrcver" >&6; }
12189 LINUX_OBJ=${kernelbuild}
12190 LINUX_VERSION=${kernsrcver}
12197 modpost=$LINUX/scripts/Makefile.modpost
12198 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12199 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12200 if test -f "$modpost"; then
12202 if grep -q Modules.symvers $modpost; then
12204 LINUX_SYMBOLS=Modules.symvers
12208 LINUX_SYMBOLS=Module.symvers
12213 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12215 { { $as_echo "$as_me:$LINENO: error:
12216 *** Please make sure the kernel devel package for your distribution
12217 *** is installed. If your building with a custom kernel make sure the
12218 *** kernel is configured, built, and the '--with-linux=PATH' configure
12219 *** option refers to the location of the kernel source." >&5
12220 $as_echo "$as_me: error:
12221 *** Please make sure the kernel devel package for your distribution
12222 *** is installed. If your building with a custom kernel make sure the
12223 *** kernel is configured, built, and the '--with-linux=PATH' configure
12224 *** option refers to the location of the kernel source." >&2;}
12225 { (exit 1); exit 1; }; }
12236 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12237 $as_echo "$LINUX_SYMBOLS" >&6; }
12243 # Check whether --with-spl was given.
12244 if test "${with_spl+set}" = set; then
12245 withval=$with_spl; splsrc="$withval"
12250 # Check whether --with-spl-obj was given.
12251 if test "${with_spl_obj+set}" = set; then
12252 withval=$with_spl_obj; splbuild="$withval"
12257 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12258 $as_echo_n "checking spl source directory... " >&6; }
12259 if test -z "$splsrc"; then
12261 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12262 2>/dev/null | tail -1`
12264 if test -z "$sourcelink" || test ! -e $sourcelink; then
12271 if test -e $sourcelink; then
12273 splsrc=`readlink -f ${sourcelink}`
12277 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12278 $as_echo "Not found" >&6; }
12279 { { $as_echo "$as_me:$LINENO: error:
12280 *** Please make sure the spl devel package for your distribution
12281 *** is installed then try again. If that fails you can specify the
12282 *** location of the spl source with the '--with-spl=PATH' option." >&5
12283 $as_echo "$as_me: error:
12284 *** Please make sure the spl devel package for your distribution
12285 *** is installed then try again. If that fails you can specify the
12286 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12287 { (exit 1); exit 1; }; }
12294 if test "$splsrc" = "NONE"; then
12305 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12306 $as_echo "$splsrc" >&6; }
12307 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12308 $as_echo_n "checking spl build directory... " >&6; }
12309 if test -z "$splbuild"; then
12315 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12316 $as_echo "$splbuild" >&6; }
12318 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12319 $as_echo_n "checking spl source version... " >&6; }
12320 if test -r $splbuild/spl_config.h &&
12321 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12324 splsrcver=`(echo "#include <spl_config.h>";
12325 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12327 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12332 if test -z "$splsrcver"; then
12334 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12335 $as_echo "Not found" >&6; }
12336 { { $as_echo "$as_me:$LINENO: error:
12337 *** Cannot determine the version of the spl source.
12338 *** Please prepare the spl source before running this script" >&5
12339 $as_echo "$as_me: error:
12340 *** Cannot determine the version of the spl source.
12341 *** Please prepare the spl source before running this script" >&2;}
12342 { (exit 1); exit 1; }; }
12347 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12348 $as_echo "$splsrcver" >&6; }
12351 SPL_OBJ=${splbuild}
12352 SPL_VERSION=${splsrcver}
12359 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12360 $as_echo_n "checking spl file name for module symbols... " >&6; }
12361 if test -r $SPL_OBJ/Module.symvers; then
12363 SPL_SYMBOLS=Module.symvers
12365 elif test -r $SPL_OBJ/Modules.symvers; then
12367 SPL_SYMBOLS=Modules.symvers
12369 elif test -r $SPL_OBJ/module/Module.symvers; then
12371 SPL_SYMBOLS=Module.symvers
12373 elif test -r $SPL_OBJ/module/Modules.symvers; then
12375 SPL_SYMBOLS=Modules.symvers
12379 SPL_SYMBOLS=$LINUX_SYMBOLS
12384 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12385 $as_echo "$SPL_SYMBOLS" >&6; }
12391 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12392 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12395 cat confdefs.h - <<_ACEOF >conftest.c
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12403 #include <linux/module.h>
12409 #ifndef CONFIG_PREEMPT
12410 #error CONFIG_PREEMPT not #defined
12420 rm -Rf build && mkdir -p build
12421 echo "obj-m := conftest.o" >build/Makefile
12422 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12434 { $as_echo "$as_me:$LINENO: result: yes" >&5
12435 $as_echo "yes" >&6; }
12436 { { $as_echo "$as_me:$LINENO: error:
12437 *** Kernel built with CONFIG_PREEMPT which is not supported.
12438 *** You must rebuild your kernel without this option." >&5
12439 $as_echo "$as_me: error:
12440 *** Kernel built with CONFIG_PREEMPT which is not supported.
12441 *** You must rebuild your kernel without this option." >&2;}
12442 { (exit 1); exit 1; }; }
12445 $as_echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 { $as_echo "$as_me:$LINENO: result: no" >&5
12449 $as_echo "no" >&6; }
12461 if test "$ZFS_META_LICENSE" = CDDL; then
12463 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12464 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12467 cat confdefs.h - <<_ACEOF >conftest.c
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12475 #include <linux/module.h>
12481 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12482 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12492 rm -Rf build && mkdir -p build
12493 echo "obj-m := conftest.o" >build/Makefile
12494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496 (eval $ac_try) 2>&5
12498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12506 { $as_echo "$as_me:$LINENO: result: yes" >&5
12507 $as_echo "yes" >&6; }
12508 { { $as_echo "$as_me:$LINENO: error:
12509 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12510 *** incompatible with the CDDL license. You must rebuild
12511 *** your kernel without this option." >&5
12512 $as_echo "$as_me: error:
12513 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12514 *** incompatible with the CDDL license. You must rebuild
12515 *** your kernel without this option." >&2;}
12516 { (exit 1); exit 1; }; }
12519 $as_echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 { $as_echo "$as_me:$LINENO: result: no" >&5
12523 $as_echo "no" >&6; }
12538 if test "$ZFS_META_LICENSE" = GPL; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_GPL_ONLY_SYMBOLS 1
12550 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12551 $as_echo_n "checking block device operation prototypes... " >&6; }
12552 tmp_flags="$EXTRA_KCFLAGS"
12553 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12556 cat confdefs.h - <<_ACEOF >conftest.c
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12564 #include <linux/blkdev.h>
12570 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12571 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12572 int (*blk_ioctl) (struct block_device *, fmode_t,
12573 unsigned, unsigned long) = NULL;
12574 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12575 unsigned, unsigned long) = NULL;
12576 struct block_device_operations blk_ops = {
12578 .release = blk_release,
12579 .ioctl = blk_ioctl,
12580 .compat_ioctl = blk_compat_ioctl,
12583 blk_ops.open(NULL, 0);
12584 blk_ops.release(NULL, 0);
12585 blk_ops.ioctl(NULL, 0, 0, 0);
12586 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12595 rm -Rf build && mkdir -p build
12596 echo "obj-m := conftest.o" >build/Makefile
12597 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12609 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12610 $as_echo "struct block_device" >&6; }
12612 cat >>confdefs.h <<\_ACEOF
12613 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12618 $as_echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12622 $as_echo "struct inode" >&6; }
12631 EXTRA_KCFLAGS="$tmp_flags"
12633 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12634 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12637 cat confdefs.h - <<_ACEOF >conftest.c
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12645 #include <linux/types.h>
12651 fmode_t *ptr __attribute__ ((unused));
12660 rm -Rf build && mkdir -p build
12661 echo "obj-m := conftest.o" >build/Makefile
12662 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12674 { $as_echo "$as_me:$LINENO: result: yes" >&5
12675 $as_echo "yes" >&6; }
12677 cat >>confdefs.h <<\_ACEOF
12678 #define HAVE_FMODE_T 1
12683 $as_echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12686 { $as_echo "$as_me:$LINENO: result: no" >&5
12687 $as_echo "no" >&6; }
12698 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12699 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12702 cat confdefs.h - <<_ACEOF >conftest.c
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12710 #include <linux/kobject.h>
12716 int val __attribute__ ((unused));
12717 val = KOBJ_NAME_LEN;
12726 rm -Rf build && mkdir -p build
12727 echo "obj-m := conftest.o" >build/Makefile
12728 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730 (eval $ac_try) 2>&5
12732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12740 { $as_echo "$as_me:$LINENO: result: yes" >&5
12741 $as_echo "yes" >&6; }
12743 cat >>confdefs.h <<\_ACEOF
12744 #define HAVE_KOBJ_NAME_LEN 1
12749 $as_echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12752 { $as_echo "$as_me:$LINENO: result: no" >&5
12753 $as_echo "no" >&6; }
12764 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12765 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12766 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12767 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12769 if test $rc -ne 0; then
12772 for file in fs/block_dev.c; do
12773 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12775 if test $rc -eq 0; then
12783 if test $export -eq 0; then
12785 { $as_echo "$as_me:$LINENO: result: no" >&5
12786 $as_echo "no" >&6; }
12791 { $as_echo "$as_me:$LINENO: result: yes" >&5
12792 $as_echo "yes" >&6; }
12794 cat >>confdefs.h <<\_ACEOF
12795 #define HAVE_BLKDEV_GET_BY_PATH 1
12804 { $as_echo "$as_me:$LINENO: result: yes" >&5
12805 $as_echo "yes" >&6; }
12807 cat >>confdefs.h <<\_ACEOF
12808 #define HAVE_BLKDEV_GET_BY_PATH 1
12817 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12818 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12819 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12820 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12822 if test $rc -ne 0; then
12825 for file in fs/block_dev.c; do
12826 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12828 if test $rc -eq 0; then
12836 if test $export -eq 0; then
12838 { $as_echo "$as_me:$LINENO: result: no" >&5
12839 $as_echo "no" >&6; }
12844 { $as_echo "$as_me:$LINENO: result: yes" >&5
12845 $as_echo "yes" >&6; }
12847 cat >>confdefs.h <<\_ACEOF
12848 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12857 { $as_echo "$as_me:$LINENO: result: yes" >&5
12858 $as_echo "yes" >&6; }
12860 cat >>confdefs.h <<\_ACEOF
12861 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12870 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12871 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12874 cat confdefs.h - <<_ACEOF >conftest.c
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12882 #include <linux/buffer_head.h>
12888 struct block_device *bdev = NULL;
12889 invalidate_bdev(bdev);
12898 rm -Rf build && mkdir -p build
12899 echo "obj-m := conftest.o" >build/Makefile
12900 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12912 { $as_echo "$as_me:$LINENO: result: yes" >&5
12913 $as_echo "yes" >&6; }
12915 cat >>confdefs.h <<\_ACEOF
12916 #define HAVE_1ARG_INVALIDATE_BDEV 1
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 { $as_echo "$as_me:$LINENO: result: no" >&5
12925 $as_echo "no" >&6; }
12936 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12937 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12938 tmp_flags="$EXTRA_KCFLAGS"
12939 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12942 cat confdefs.h - <<_ACEOF >conftest.c
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12950 #include <linux/blkdev.h>
12956 struct block_device *bdev = NULL;
12957 bdev_logical_block_size(bdev);
12966 rm -Rf build && mkdir -p build
12967 echo "obj-m := conftest.o" >build/Makefile
12968 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12980 { $as_echo "$as_me:$LINENO: result: yes" >&5
12981 $as_echo "yes" >&6; }
12983 cat >>confdefs.h <<\_ACEOF
12984 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12989 $as_echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 { $as_echo "$as_me:$LINENO: result: no" >&5
12993 $as_echo "no" >&6; }
13002 EXTRA_KCFLAGS="$tmp_flags"
13005 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13006 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13007 EXTRA_KCFLAGS="-Werror"
13010 cat confdefs.h - <<_ACEOF >conftest.c
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13018 #include <linux/bio.h>
13025 (void)bio_empty_barrier(&bio);
13034 rm -Rf build && mkdir -p build
13035 echo "obj-m := conftest.o" >build/Makefile
13036 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13048 { $as_echo "$as_me:$LINENO: result: yes" >&5
13049 $as_echo "yes" >&6; }
13051 cat >>confdefs.h <<\_ACEOF
13052 #define HAVE_BIO_EMPTY_BARRIER 1
13057 $as_echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 { $as_echo "$as_me:$LINENO: result: no" >&5
13061 $as_echo "no" >&6; }
13072 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13073 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13076 cat confdefs.h - <<_ACEOF >conftest.c
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13084 #include <linux/bio.h>
13090 int flags __attribute__ ((unused));
13091 flags = (1 << BIO_RW_FAILFAST);
13100 rm -Rf build && mkdir -p build
13101 echo "obj-m := conftest.o" >build/Makefile
13102 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13114 { $as_echo "$as_me:$LINENO: result: yes" >&5
13115 $as_echo "yes" >&6; }
13117 cat >>confdefs.h <<\_ACEOF
13118 #define HAVE_BIO_RW_FAILFAST 1
13123 $as_echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13126 { $as_echo "$as_me:$LINENO: result: no" >&5
13127 $as_echo "no" >&6; }
13138 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13139 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13142 cat confdefs.h - <<_ACEOF >conftest.c
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13150 #include <linux/bio.h>
13156 int flags __attribute__ ((unused));
13157 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13158 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13159 (1 << BIO_RW_FAILFAST_DRIVER));
13168 rm -Rf build && mkdir -p build
13169 echo "obj-m := conftest.o" >build/Makefile
13170 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13182 { $as_echo "$as_me:$LINENO: result: yes" >&5
13183 $as_echo "yes" >&6; }
13185 cat >>confdefs.h <<\_ACEOF
13186 #define HAVE_BIO_RW_FAILFAST_DTD 1
13191 $as_echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 { $as_echo "$as_me:$LINENO: result: no" >&5
13195 $as_echo "no" >&6; }
13206 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13207 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13210 cat confdefs.h - <<_ACEOF >conftest.c
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13218 #include <linux/bio.h>
13224 int flags __attribute__ ((unused));
13225 flags = REQ_FAILFAST_MASK;
13234 rm -Rf build && mkdir -p build
13235 echo "obj-m := conftest.o" >build/Makefile
13236 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13243 (eval $ac_try) 2>&5
13245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; }; then
13248 { $as_echo "$as_me:$LINENO: result: yes" >&5
13249 $as_echo "yes" >&6; }
13251 cat >>confdefs.h <<\_ACEOF
13252 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13257 $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 { $as_echo "$as_me:$LINENO: result: no" >&5
13261 $as_echo "no" >&6; }
13272 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13273 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13274 tmp_flags="$EXTRA_KCFLAGS"
13275 EXTRA_KCFLAGS="-Werror"
13278 cat confdefs.h - <<_ACEOF >conftest.c
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13286 #include <linux/bio.h>
13292 void (*wanted_end_io)(struct bio *, int) = NULL;
13293 bio_end_io_t *local_end_io __attribute__ ((unused));
13295 local_end_io = wanted_end_io;
13304 rm -Rf build && mkdir -p build
13305 echo "obj-m := conftest.o" >build/Makefile
13306 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13318 { $as_echo "$as_me:$LINENO: result: yes" >&5
13319 $as_echo "yes" >&6; }
13321 cat >>confdefs.h <<\_ACEOF
13322 #define HAVE_2ARGS_BIO_END_IO_T 1
13327 $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 { $as_echo "$as_me:$LINENO: result: no" >&5
13331 $as_echo "no" >&6; }
13340 EXTRA_KCFLAGS="$tmp_flags"
13343 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13344 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13347 cat confdefs.h - <<_ACEOF >conftest.c
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13355 #include <linux/bio.h>
13361 int flags __attribute__ ((unused));
13362 flags = BIO_RW_SYNC;
13371 rm -Rf build && mkdir -p build
13372 echo "obj-m := conftest.o" >build/Makefile
13373 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13385 { $as_echo "$as_me:$LINENO: result: yes" >&5
13386 $as_echo "yes" >&6; }
13388 cat >>confdefs.h <<\_ACEOF
13389 #define HAVE_BIO_RW_SYNC 1
13394 $as_echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 { $as_echo "$as_me:$LINENO: result: no" >&5
13398 $as_echo "no" >&6; }
13409 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13410 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13413 cat confdefs.h - <<_ACEOF >conftest.c
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13421 #include <linux/bio.h>
13427 int flags __attribute__ ((unused));
13428 flags = BIO_RW_SYNCIO;
13437 rm -Rf build && mkdir -p build
13438 echo "obj-m := conftest.o" >build/Makefile
13439 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13451 { $as_echo "$as_me:$LINENO: result: yes" >&5
13452 $as_echo "yes" >&6; }
13454 cat >>confdefs.h <<\_ACEOF
13455 #define HAVE_BIO_RW_SYNCIO 1
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 { $as_echo "$as_me:$LINENO: result: no" >&5
13464 $as_echo "no" >&6; }
13475 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13476 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13479 cat confdefs.h - <<_ACEOF >conftest.c
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13487 #include <linux/bio.h>
13493 int flags __attribute__ ((unused));
13503 rm -Rf build && mkdir -p build
13504 echo "obj-m := conftest.o" >build/Makefile
13505 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13517 { $as_echo "$as_me:$LINENO: result: yes" >&5
13518 $as_echo "yes" >&6; }
13520 cat >>confdefs.h <<\_ACEOF
13521 #define HAVE_REQ_SYNC 1
13526 $as_echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 { $as_echo "$as_me:$LINENO: result: no" >&5
13530 $as_echo "no" >&6; }
13541 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13542 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13543 tmp_flags="$EXTRA_KCFLAGS"
13544 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13547 cat confdefs.h - <<_ACEOF >conftest.c
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13555 #include <linux/blkdev.h>
13561 struct request *req = NULL;
13562 (void) blk_end_request(req, 0, 0);
13571 rm -Rf build && mkdir -p build
13572 echo "obj-m := conftest.o" >build/Makefile
13573 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13585 { $as_echo "$as_me:$LINENO: result: yes" >&5
13586 $as_echo "yes" >&6; }
13588 cat >>confdefs.h <<\_ACEOF
13589 #define HAVE_BLK_END_REQUEST 1
13594 $as_echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 { $as_echo "$as_me:$LINENO: result: no" >&5
13598 $as_echo "no" >&6; }
13608 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13609 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13612 cat confdefs.h - <<_ACEOF >conftest.c
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13620 #include <linux/module.h>
13621 #include <linux/blkdev.h>
13623 MODULE_LICENSE("CDDL");
13629 struct request *req = NULL;
13630 (void) blk_end_request(req, 0, 0);
13639 rm -Rf build && mkdir -p build
13640 echo "obj-m := conftest.o" >build/Makefile
13641 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13648 (eval $ac_try) 2>&5
13650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); }; }; then
13653 { $as_echo "$as_me:$LINENO: result: no" >&5
13654 $as_echo "no" >&6; }
13657 $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 { $as_echo "$as_me:$LINENO: result: yes" >&5
13661 $as_echo "yes" >&6; }
13663 cat >>confdefs.h <<\_ACEOF
13664 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13675 EXTRA_KCFLAGS="$tmp_flags"
13678 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13679 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13680 tmp_flags="$EXTRA_KCFLAGS"
13681 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13684 cat confdefs.h - <<_ACEOF >conftest.c
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13692 #include <linux/blkdev.h>
13698 struct request_queue *q = NULL;
13699 (void) blk_queue_flush(q, REQ_FLUSH);
13708 rm -Rf build && mkdir -p build
13709 echo "obj-m := conftest.o" >build/Makefile
13710 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13722 { $as_echo "$as_me:$LINENO: result: yes" >&5
13723 $as_echo "yes" >&6; }
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_BLK_QUEUE_FLUSH 1
13731 $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 { $as_echo "$as_me:$LINENO: result: no" >&5
13735 $as_echo "no" >&6; }
13745 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13746 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13749 cat confdefs.h - <<_ACEOF >conftest.c
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13757 #include <linux/module.h>
13758 #include <linux/blkdev.h>
13760 MODULE_LICENSE("CDDL");
13766 struct request_queue *q = NULL;
13767 (void) blk_queue_flush(q, REQ_FLUSH);
13776 rm -Rf build && mkdir -p build
13777 echo "obj-m := conftest.o" >build/Makefile
13778 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13790 { $as_echo "$as_me:$LINENO: result: no" >&5
13791 $as_echo "no" >&6; }
13794 $as_echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 { $as_echo "$as_me:$LINENO: result: yes" >&5
13798 $as_echo "yes" >&6; }
13800 cat >>confdefs.h <<\_ACEOF
13801 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13812 EXTRA_KCFLAGS="$tmp_flags"
13815 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13816 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13817 tmp_flags="$EXTRA_KCFLAGS"
13818 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13821 cat confdefs.h - <<_ACEOF >conftest.c
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13829 #include <linux/blkdev.h>
13835 struct request_queue *q = NULL;
13836 (void) blk_fetch_request(q);
13845 rm -Rf build && mkdir -p build
13846 echo "obj-m := conftest.o" >build/Makefile
13847 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13859 { $as_echo "$as_me:$LINENO: result: yes" >&5
13860 $as_echo "yes" >&6; }
13862 cat >>confdefs.h <<\_ACEOF
13863 #define HAVE_BLK_FETCH_REQUEST 1
13868 $as_echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13871 { $as_echo "$as_me:$LINENO: result: no" >&5
13872 $as_echo "no" >&6; }
13881 EXTRA_KCFLAGS="$tmp_flags"
13884 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13885 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13886 tmp_flags="$EXTRA_KCFLAGS"
13887 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13890 cat confdefs.h - <<_ACEOF >conftest.c
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13898 #include <linux/blkdev.h>
13904 struct request_queue *q = NULL;
13905 struct request *req = NULL;
13906 blk_requeue_request(q, req);
13915 rm -Rf build && mkdir -p build
13916 echo "obj-m := conftest.o" >build/Makefile
13917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13929 { $as_echo "$as_me:$LINENO: result: yes" >&5
13930 $as_echo "yes" >&6; }
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_BLK_REQUEUE_REQUEST 1
13938 $as_echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 { $as_echo "$as_me:$LINENO: result: no" >&5
13942 $as_echo "no" >&6; }
13951 EXTRA_KCFLAGS="$tmp_flags"
13954 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13955 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13956 tmp_flags="$EXTRA_KCFLAGS"
13957 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13960 cat confdefs.h - <<_ACEOF >conftest.c
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h. */
13968 #include <linux/blkdev.h>
13974 struct request *req = NULL;
13975 (void) blk_rq_bytes(req);
13984 rm -Rf build && mkdir -p build
13985 echo "obj-m := conftest.o" >build/Makefile
13986 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13998 { $as_echo "$as_me:$LINENO: result: yes" >&5
13999 $as_echo "yes" >&6; }
14001 cat >>confdefs.h <<\_ACEOF
14002 #define HAVE_BLK_RQ_BYTES 1
14007 $as_echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14010 { $as_echo "$as_me:$LINENO: result: no" >&5
14011 $as_echo "no" >&6; }
14021 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14022 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14025 cat confdefs.h - <<_ACEOF >conftest.c
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14033 #include <linux/module.h>
14034 #include <linux/blkdev.h>
14036 MODULE_LICENSE("CDDL");
14042 struct request *req = NULL;
14043 (void) blk_rq_bytes(req);
14052 rm -Rf build && mkdir -p build
14053 echo "obj-m := conftest.o" >build/Makefile
14054 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14066 { $as_echo "$as_me:$LINENO: result: no" >&5
14067 $as_echo "no" >&6; }
14070 $as_echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14073 { $as_echo "$as_me:$LINENO: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14088 EXTRA_KCFLAGS="$tmp_flags"
14091 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14092 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14093 tmp_flags="$EXTRA_KCFLAGS"
14094 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14097 cat confdefs.h - <<_ACEOF >conftest.c
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14105 #include <linux/blkdev.h>
14111 struct request *req = NULL;
14112 (void) blk_rq_pos(req);
14121 rm -Rf build && mkdir -p build
14122 echo "obj-m := conftest.o" >build/Makefile
14123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14135 { $as_echo "$as_me:$LINENO: result: yes" >&5
14136 $as_echo "yes" >&6; }
14138 cat >>confdefs.h <<\_ACEOF
14139 #define HAVE_BLK_RQ_POS 1
14144 $as_echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14147 { $as_echo "$as_me:$LINENO: result: no" >&5
14148 $as_echo "no" >&6; }
14157 EXTRA_KCFLAGS="$tmp_flags"
14160 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14161 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14162 tmp_flags="$EXTRA_KCFLAGS"
14163 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14166 cat confdefs.h - <<_ACEOF >conftest.c
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14174 #include <linux/blkdev.h>
14180 struct request *req = NULL;
14181 (void) blk_rq_sectors(req);
14190 rm -Rf build && mkdir -p build
14191 echo "obj-m := conftest.o" >build/Makefile
14192 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14204 { $as_echo "$as_me:$LINENO: result: yes" >&5
14205 $as_echo "yes" >&6; }
14207 cat >>confdefs.h <<\_ACEOF
14208 #define HAVE_BLK_RQ_SECTORS 1
14213 $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 { $as_echo "$as_me:$LINENO: result: no" >&5
14217 $as_echo "no" >&6; }
14226 EXTRA_KCFLAGS="$tmp_flags"
14229 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14230 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14231 tmp_flags="$EXTRA_KCFLAGS"
14232 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14235 cat confdefs.h - <<_ACEOF >conftest.c
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14243 #include <linux/blkdev.h>
14249 struct gendisk *disk = NULL;
14250 (void) get_disk_ro(disk);
14259 rm -Rf build && mkdir -p build
14260 echo "obj-m := conftest.o" >build/Makefile
14261 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14263 (eval $ac_try) 2>&5
14265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14273 { $as_echo "$as_me:$LINENO: result: yes" >&5
14274 $as_echo "yes" >&6; }
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_GET_DISK_RO 1
14282 $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 { $as_echo "$as_me:$LINENO: result: no" >&5
14286 $as_echo "no" >&6; }
14295 EXTRA_KCFLAGS="$tmp_flags"
14298 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14299 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14300 tmp_flags="$EXTRA_KCFLAGS"
14301 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14304 cat confdefs.h - <<_ACEOF >conftest.c
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14312 #include <linux/blkdev.h>
14318 struct request *req = NULL;
14319 (void) rq_is_sync(req);
14328 rm -Rf build && mkdir -p build
14329 echo "obj-m := conftest.o" >build/Makefile
14330 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14342 { $as_echo "$as_me:$LINENO: result: yes" >&5
14343 $as_echo "yes" >&6; }
14345 cat >>confdefs.h <<\_ACEOF
14346 #define HAVE_RQ_IS_SYNC 1
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 { $as_echo "$as_me:$LINENO: result: no" >&5
14355 $as_echo "no" >&6; }
14364 EXTRA_KCFLAGS="$tmp_flags"
14367 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14368 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14369 tmp_flags="$EXTRA_KCFLAGS"
14370 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14373 cat confdefs.h - <<_ACEOF >conftest.c
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14381 #include <linux/blkdev.h>
14387 struct bio_vec *bv;
14388 struct req_iterator iter;
14389 struct request *req = NULL;
14390 rq_for_each_segment(bv, req, iter) { }
14399 rm -Rf build && mkdir -p build
14400 echo "obj-m := conftest.o" >build/Makefile
14401 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14413 { $as_echo "$as_me:$LINENO: result: yes" >&5
14414 $as_echo "yes" >&6; }
14416 cat >>confdefs.h <<\_ACEOF
14417 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14422 $as_echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14425 { $as_echo "$as_me:$LINENO: result: no" >&5
14426 $as_echo "no" >&6; }
14435 EXTRA_KCFLAGS="$tmp_flags"
14437 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14438 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14441 cat confdefs.h - <<_ACEOF >conftest.c
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14449 #include <linux/fs.h>
14450 #include <linux/xattr.h>
14452 const struct xattr_handler xattr_test_handler = {
14458 const struct xattr_handler *xattr_handlers[] = {
14459 &xattr_test_handler,
14466 struct super_block sb __attribute__ ((unused));
14468 sb.s_xattr = xattr_handlers;
14477 rm -Rf build && mkdir -p build
14478 echo "obj-m := conftest.o" >build/Makefile
14479 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481 (eval $ac_try) 2>&5
14483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14491 { $as_echo "$as_me:$LINENO: result: yes" >&5
14492 $as_echo "yes" >&6; }
14494 cat >>confdefs.h <<\_ACEOF
14495 #define HAVE_CONST_XATTR_HANDLER 1
14500 $as_echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 { $as_echo "$as_me:$LINENO: result: no" >&5
14504 $as_echo "no" >&6; }
14515 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14516 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14519 cat confdefs.h - <<_ACEOF >conftest.c
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14527 #include <linux/xattr.h>
14533 int (*get)(struct dentry *dentry, const char *name,
14534 void *buffer, size_t size, int handler_flags) = NULL;
14535 struct xattr_handler xops __attribute__ ((unused));
14546 rm -Rf build && mkdir -p build
14547 echo "obj-m := conftest.o" >build/Makefile
14548 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555 (eval $ac_try) 2>&5
14557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); }; }; then
14560 { $as_echo "$as_me:$LINENO: result: yes" >&5
14561 $as_echo "yes" >&6; }
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_DENTRY_XATTR_GET 1
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 { $as_echo "$as_me:$LINENO: result: no" >&5
14573 $as_echo "no" >&6; }
14584 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14585 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14588 cat confdefs.h - <<_ACEOF >conftest.c
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14596 #include <linux/xattr.h>
14602 int (*set)(struct dentry *dentry, const char *name,
14603 const void *buffer, size_t size, int flags,
14604 int handler_flags) = NULL;
14605 struct xattr_handler xops __attribute__ ((unused));
14616 rm -Rf build && mkdir -p build
14617 echo "obj-m := conftest.o" >build/Makefile
14618 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14630 { $as_echo "$as_me:$LINENO: result: yes" >&5
14631 $as_echo "yes" >&6; }
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_DENTRY_XATTR_SET 1
14639 $as_echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14642 { $as_echo "$as_me:$LINENO: result: no" >&5
14643 $as_echo "no" >&6; }
14654 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
14655 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
14659 cat confdefs.h - <<_ACEOF >conftest.c
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14667 #include <linux/fs.h>
14673 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
14674 struct super_operations sops __attribute__ ((unused));
14676 sops.show_options = show_options;
14685 rm -Rf build && mkdir -p build
14686 echo "obj-m := conftest.o" >build/Makefile
14687 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14699 { $as_echo "$as_me:$LINENO: result: yes" >&5
14700 $as_echo "yes" >&6; }
14702 cat >>confdefs.h <<\_ACEOF
14703 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
14708 $as_echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 { $as_echo "$as_me:$LINENO: result: no" >&5
14712 $as_echo "no" >&6; }
14723 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
14724 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14728 cat confdefs.h - <<_ACEOF >conftest.c
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14736 #include <linux/fs.h>
14742 int (*fsync) (struct file *, struct dentry *, int) = NULL;
14743 struct file_operations fops __attribute__ ((unused));
14745 fops.fsync = fsync;
14754 rm -Rf build && mkdir -p build
14755 echo "obj-m := conftest.o" >build/Makefile
14756 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14768 { $as_echo "$as_me:$LINENO: result: dentry" >&5
14769 $as_echo "dentry" >&6; }
14771 cat >>confdefs.h <<\_ACEOF
14772 #define HAVE_FSYNC_WITH_DENTRY 1
14777 $as_echo "$as_me: failed program was:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14792 cat confdefs.h - <<_ACEOF >conftest.c
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14800 #include <linux/fs.h>
14806 int (*fsync) (struct file *, int) = NULL;
14807 struct file_operations fops __attribute__ ((unused));
14809 fops.fsync = fsync;
14818 rm -Rf build && mkdir -p build
14819 echo "obj-m := conftest.o" >build/Makefile
14820 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14832 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
14833 $as_echo "no dentry" >&6; }
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_FSYNC_WITHOUT_DENTRY 1
14841 $as_echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14856 cat confdefs.h - <<_ACEOF >conftest.c
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14864 #include <linux/fs.h>
14870 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
14871 struct file_operations fops __attribute__ ((unused));
14873 fops.fsync = fsync;
14882 rm -Rf build && mkdir -p build
14883 echo "obj-m := conftest.o" >build/Makefile
14884 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14896 { $as_echo "$as_me:$LINENO: result: range" >&5
14897 $as_echo "range" >&6; }
14899 cat >>confdefs.h <<\_ACEOF
14900 #define HAVE_FSYNC_RANGE 1
14905 $as_echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14919 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14920 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14923 cat confdefs.h - <<_ACEOF >conftest.c
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h. */
14931 #include <linux/fs.h>
14937 void (*evict_inode) (struct inode *) = NULL;
14938 struct super_operations sops __attribute__ ((unused)) = {
14939 .evict_inode = evict_inode,
14949 rm -Rf build && mkdir -p build
14950 echo "obj-m := conftest.o" >build/Makefile
14951 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14953 (eval $ac_try) 2>&5
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14963 { $as_echo "$as_me:$LINENO: result: yes" >&5
14964 $as_echo "yes" >&6; }
14966 cat >>confdefs.h <<\_ACEOF
14967 #define HAVE_EVICT_INODE 1
14972 $as_echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 { $as_echo "$as_me:$LINENO: result: no" >&5
14976 $as_echo "no" >&6; }
14987 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
14988 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14991 cat confdefs.h - <<_ACEOF >conftest.c
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14999 #include <linux/fs.h>
15005 int (*nr_cached_objects)(struct super_block *)
15006 __attribute__ ((unused)) = NULL;
15007 struct super_operations sops __attribute__ ((unused)) = {
15008 .nr_cached_objects = nr_cached_objects,
15018 rm -Rf build && mkdir -p build
15019 echo "obj-m := conftest.o" >build/Makefile
15020 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15032 { $as_echo "$as_me:$LINENO: result: yes" >&5
15033 $as_echo "yes" >&6; }
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_NR_CACHED_OBJECTS 1
15041 $as_echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 { $as_echo "$as_me:$LINENO: result: no" >&5
15045 $as_echo "no" >&6; }
15056 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15057 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15060 cat confdefs.h - <<_ACEOF >conftest.c
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15068 #include <linux/fs.h>
15074 void (*free_cached_objects)(struct super_block *, int)
15075 __attribute__ ((unused)) = NULL;
15076 struct super_operations sops __attribute__ ((unused)) = {
15077 .free_cached_objects = free_cached_objects,
15087 rm -Rf build && mkdir -p build
15088 echo "obj-m := conftest.o" >build/Makefile
15089 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15101 { $as_echo "$as_me:$LINENO: result: yes" >&5
15102 $as_echo "yes" >&6; }
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_FREE_CACHED_OBJECTS 1
15110 $as_echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 { $as_echo "$as_me:$LINENO: result: no" >&5
15114 $as_echo "no" >&6; }
15125 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15126 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15127 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15128 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15130 if test $rc -ne 0; then
15133 for file in fs/inode.c; do
15134 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
15136 if test $rc -eq 0; then
15144 if test $export -eq 0; then
15146 { $as_echo "$as_me:$LINENO: result: no" >&5
15147 $as_echo "no" >&6; }
15152 { $as_echo "$as_me:$LINENO: result: yes" >&5
15153 $as_echo "yes" >&6; }
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_INSERT_INODE_LOCKED 1
15165 { $as_echo "$as_me:$LINENO: result: yes" >&5
15166 $as_echo "yes" >&6; }
15168 cat >>confdefs.h <<\_ACEOF
15169 #define HAVE_INSERT_INODE_LOCKED 1
15178 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
15179 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
15180 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
15181 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15183 if test $rc -ne 0; then
15186 for file in fs/dcache.c; do
15187 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
15189 if test $rc -eq 0; then
15197 if test $export -eq 0; then
15199 { $as_echo "$as_me:$LINENO: result: no" >&5
15200 $as_echo "no" >&6; }
15205 { $as_echo "$as_me:$LINENO: result: yes" >&5
15206 $as_echo "yes" >&6; }
15208 cat >>confdefs.h <<\_ACEOF
15209 #define HAVE_D_OBTAIN_ALIAS 1
15218 { $as_echo "$as_me:$LINENO: result: yes" >&5
15219 $as_echo "yes" >&6; }
15221 cat >>confdefs.h <<\_ACEOF
15222 #define HAVE_D_OBTAIN_ALIAS 1
15231 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15232 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15233 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
15234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15236 if test $rc -ne 0; then
15239 for file in fs/block_dev.c; do
15240 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
15242 if test $rc -eq 0; then
15250 if test $export -eq 0; then
15252 { $as_echo "$as_me:$LINENO: result: no" >&5
15253 $as_echo "no" >&6; }
15258 { $as_echo "$as_me:$LINENO: result: yes" >&5
15259 $as_echo "yes" >&6; }
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15271 { $as_echo "$as_me:$LINENO: result: yes" >&5
15272 $as_echo "yes" >&6; }
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15284 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15285 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15286 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15287 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15289 if test $rc -ne 0; then
15292 for file in mm/truncate.c; do
15293 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15295 if test $rc -eq 0; then
15303 if test $export -eq 0; then
15305 { $as_echo "$as_me:$LINENO: result: no" >&5
15306 $as_echo "no" >&6; }
15311 { $as_echo "$as_me:$LINENO: result: yes" >&5
15312 $as_echo "yes" >&6; }
15314 cat >>confdefs.h <<\_ACEOF
15315 #define HAVE_TRUNCATE_SETSIZE 1
15324 { $as_echo "$as_me:$LINENO: result: yes" >&5
15325 $as_echo "yes" >&6; }
15327 cat >>confdefs.h <<\_ACEOF
15328 #define HAVE_TRUNCATE_SETSIZE 1
15337 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15338 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15339 tmp_flags="$EXTRA_KCFLAGS"
15340 EXTRA_KCFLAGS="-Werror"
15343 cat confdefs.h - <<_ACEOF >conftest.c
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15351 #include <linux/security.h>
15357 struct inode *ip __attribute__ ((unused)) = NULL;
15358 struct inode *dip __attribute__ ((unused)) = NULL;
15359 const struct qstr *str __attribute__ ((unused)) = NULL;
15360 char *name __attribute__ ((unused)) = NULL;
15361 void *value __attribute__ ((unused)) = NULL;
15362 size_t len __attribute__ ((unused)) = 0;
15364 security_inode_init_security(ip, dip, str, &name, &value, &len);
15373 rm -Rf build && mkdir -p build
15374 echo "obj-m := conftest.o" >build/Makefile
15375 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15387 { $as_echo "$as_me:$LINENO: result: yes" >&5
15388 $as_echo "yes" >&6; }
15390 cat >>confdefs.h <<\_ACEOF
15391 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
15396 $as_echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 { $as_echo "$as_me:$LINENO: result: no" >&5
15400 $as_echo "no" >&6; }
15409 EXTRA_KCFLAGS="$tmp_flags"
15412 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
15413 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
15414 tmp_flags="$EXTRA_KCFLAGS"
15415 EXTRA_KCFLAGS="-Werror"
15418 cat confdefs.h - <<_ACEOF >conftest.c
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15426 #include <linux/security.h>
15432 struct inode *ip __attribute__ ((unused)) = NULL;
15433 struct inode *dip __attribute__ ((unused)) = NULL;
15434 const struct qstr *str __attribute__ ((unused)) = NULL;
15435 initxattrs func __attribute__ ((unused)) = NULL;
15437 security_inode_init_security(ip, dip, str, func, NULL);
15446 rm -Rf build && mkdir -p build
15447 echo "obj-m := conftest.o" >build/Makefile
15448 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15460 { $as_echo "$as_me:$LINENO: result: yes" >&5
15461 $as_echo "yes" >&6; }
15463 cat >>confdefs.h <<\_ACEOF
15464 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
15469 $as_echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15472 { $as_echo "$as_me:$LINENO: result: no" >&5
15473 $as_echo "no" >&6; }
15482 EXTRA_KCFLAGS="$tmp_flags"
15485 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
15486 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
15487 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
15488 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15490 if test $rc -ne 0; then
15493 for file in fs/super.c; do
15494 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
15496 if test $rc -eq 0; then
15504 if test $export -eq 0; then
15506 { $as_echo "$as_me:$LINENO: result: no" >&5
15507 $as_echo "no" >&6; }
15512 { $as_echo "$as_me:$LINENO: result: yes" >&5
15513 $as_echo "yes" >&6; }
15515 cat >>confdefs.h <<\_ACEOF
15516 #define HAVE_MOUNT_NODEV 1
15525 { $as_echo "$as_me:$LINENO: result: yes" >&5
15526 $as_echo "yes" >&6; }
15528 cat >>confdefs.h <<\_ACEOF
15529 #define HAVE_MOUNT_NODEV 1
15538 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
15539 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
15542 cat confdefs.h - <<_ACEOF >conftest.c
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15550 #include <linux/fs.h>
15556 int (*shrink)(struct shrinker *, struct shrink_control *sc)
15557 __attribute__ ((unused)) = NULL;
15558 struct super_block sb __attribute__ ((unused)) = {
15559 .s_shrink.shrink = shrink,
15560 .s_shrink.seeks = DEFAULT_SEEKS,
15561 .s_shrink.batch = 0,
15571 rm -Rf build && mkdir -p build
15572 echo "obj-m := conftest.o" >build/Makefile
15573 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15580 (eval $ac_try) 2>&5
15582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15585 { $as_echo "$as_me:$LINENO: result: yes" >&5
15586 $as_echo "yes" >&6; }
15588 cat >>confdefs.h <<\_ACEOF
15589 #define HAVE_SHRINK 1
15595 $as_echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15598 { $as_echo "$as_me:$LINENO: result: no" >&5
15599 $as_echo "no" >&6; }
15610 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
15611 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
15614 cat confdefs.h - <<_ACEOF >conftest.c
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h. */
15622 #include <linux/fs.h>
15628 struct super_block sb __attribute__ ((unused));
15638 rm -Rf build && mkdir -p build
15639 echo "obj-m := conftest.o" >build/Makefile
15640 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647 (eval $ac_try) 2>&5
15649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
15652 { $as_echo "$as_me:$LINENO: result: yes" >&5
15653 $as_echo "yes" >&6; }
15655 cat >>confdefs.h <<\_ACEOF
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 { $as_echo "$as_me:$LINENO: result: no" >&5
15665 $as_echo "no" >&6; }
15676 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
15677 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
15678 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
15679 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15681 if test $rc -ne 0; then
15684 for file in mm/backing-dev.c; do
15685 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
15687 if test $rc -eq 0; then
15695 if test $export -eq 0; then
15697 { $as_echo "$as_me:$LINENO: result: no" >&5
15698 $as_echo "no" >&6; }
15703 { $as_echo "$as_me:$LINENO: result: yes" >&5
15704 $as_echo "yes" >&6; }
15706 cat >>confdefs.h <<\_ACEOF
15707 #define HAVE_BDI_SETUP_AND_REGISTER 1
15716 { $as_echo "$as_me:$LINENO: result: yes" >&5
15717 $as_echo "yes" >&6; }
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_BDI_SETUP_AND_REGISTER 1
15729 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
15730 $as_echo_n "checking whether set_nlink() is available... " >&6; }
15733 cat confdefs.h - <<_ACEOF >conftest.c
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15741 #include <linux/fs.h>
15748 unsigned int link = 0;
15749 (void) set_nlink(&node, link);
15758 rm -Rf build && mkdir -p build
15759 echo "obj-m := conftest.o" >build/Makefile
15760 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15772 { $as_echo "$as_me:$LINENO: result: yes" >&5
15773 $as_echo "yes" >&6; }
15775 cat >>confdefs.h <<\_ACEOF
15776 #define HAVE_SET_NLINK 1
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 { $as_echo "$as_me:$LINENO: result: no" >&5
15785 $as_echo "no" >&6; }
15796 if test "$LINUX_OBJ" != "$LINUX"; then
15798 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15805 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
15806 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
15807 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
15814 # Check whether --with-udevdir was given.
15815 if test "${with_udevdir+set}" = set; then
15816 withval=$with_udevdir; udevdir=$withval
15818 udevdir='${exec_prefix}/lib/udev'
15823 # Check whether --with-udevruledir was given.
15824 if test "${with_udevruledir+set}" = set; then
15825 withval=$with_udevruledir; udevruledir=$withval
15827 udevruledir='${udevdir}/rules.d'
15835 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
15836 $as_echo_n "checking for target asm dir... " >&6; }
15837 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
15839 case $TARGET_ARCH in
15841 TARGET_ASM_DIR=asm-${TARGET_ARCH}
15844 TARGET_ASM_DIR=asm-generic
15849 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
15850 $as_echo "$TARGET_ASM_DIR" >&6; }
15853 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
15854 $as_echo_n "checking for ioctl()... " >&6; }
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15861 #include <unistd.h>
15864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15865 $EGREP "ioctl" >/dev/null 2>&1; then
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 #include <sys/ioctl.h>
15881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882 $EGREP "ioctl" >/dev/null 2>&1; then
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <stropts.h>
15898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15899 $EGREP "ioctl" >/dev/null 2>&1; then
15907 if test $is_unistd = yes; then
15910 cat >>confdefs.h <<\_ACEOF
15911 #define HAVE_IOCTL_IN_UNISTD_H 1
15916 if test $is_sys_ioctl = yes; then
15919 cat >>confdefs.h <<\_ACEOF
15920 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
15923 elif test $is_stropts = yes; then
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_IOCTL_IN_STROPTS_H 1
15934 if test $result = no; then
15935 { $as_echo "$as_me:$LINENO: result: no" >&5
15936 $as_echo "no" >&6; }
15937 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
15938 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
15939 { (exit 1); exit 1; }; }
15941 { $as_echo "$as_me:$LINENO: result: yes" >&5
15942 $as_echo "yes" >&6; }
15948 if test "${ac_cv_header_zlib_h+set}" = set; then
15949 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15950 $as_echo_n "checking for zlib.h... " >&6; }
15951 if test "${ac_cv_header_zlib_h+set}" = set; then
15952 $as_echo_n "(cached) " >&6
15954 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15955 $as_echo "$ac_cv_header_zlib_h" >&6; }
15957 # Is the header compilable?
15958 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
15959 $as_echo_n "checking zlib.h usability... " >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 $ac_includes_default
15969 rm -f conftest.$ac_objext
15970 if { (ac_try="$ac_compile"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_compile") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } && {
15984 test -z "$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 } && test -s conftest.$ac_objext; then
15987 ac_header_compiler=yes
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_header_compiler=no
15995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15997 $as_echo "$ac_header_compiler" >&6; }
15999 # Is the header present?
16000 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16001 $as_echo_n "checking zlib.h presence... " >&6; }
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16010 if { (ac_try="$ac_cpp conftest.$ac_ext"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16016 $as_echo "$ac_try_echo") >&5
16017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16019 grep -v '^ *+' conftest.er1 >conftest.err
16021 cat conftest.err >&5
16022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); } >/dev/null && {
16024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16025 test ! -s conftest.err
16027 ac_header_preproc=yes
16029 $as_echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16032 ac_header_preproc=no
16035 rm -f conftest.err conftest.$ac_ext
16036 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16037 $as_echo "$ac_header_preproc" >&6; }
16039 # So? What about this header?
16040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16042 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16043 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16044 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16045 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
16046 ac_header_preproc=yes
16049 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16050 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16051 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16052 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16053 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16054 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16055 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16056 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16058 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16059 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16060 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16064 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16065 $as_echo_n "checking for zlib.h... " >&6; }
16066 if test "${ac_cv_header_zlib_h+set}" = set; then
16067 $as_echo_n "(cached) " >&6
16069 ac_cv_header_zlib_h=$ac_header_preproc
16071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16072 $as_echo "$ac_cv_header_zlib_h" >&6; }
16075 if test "x$ac_cv_header_zlib_h" = x""yes; then
16078 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16080 { { $as_echo "$as_me:$LINENO: error:
16081 *** zlib.h missing, zlib-devel package required
16082 See \`config.log' for more details." >&5
16083 $as_echo "$as_me: error:
16084 *** zlib.h missing, zlib-devel package required
16085 See \`config.log' for more details." >&2;}
16086 { (exit 1); exit 1; }; }; }
16092 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16093 $as_echo_n "checking for compress2 in -lz... " >&6; }
16094 if test "${ac_cv_lib_z_compress2+set}" = set; then
16095 $as_echo_n "(cached) " >&6
16097 ac_check_lib_save_LIBS=$LIBS
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16106 /* Override any GCC internal prototype to avoid an error.
16107 Use char because int might match the return type of a GCC
16108 builtin and then its argument prototype would still apply. */
16116 return compress2 ();
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128 $as_echo "$ac_try_echo") >&5
16129 (eval "$ac_link") 2>conftest.er1
16131 grep -v '^ *+' conftest.er1 >conftest.err
16133 cat conftest.err >&5
16134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest$ac_exeext && {
16139 test "$cross_compiling" = yes ||
16140 $as_test_x conftest$ac_exeext
16142 ac_cv_lib_z_compress2=yes
16144 $as_echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 ac_cv_lib_z_compress2=no
16150 rm -rf conftest.dSYM
16151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16152 conftest$ac_exeext conftest.$ac_ext
16153 LIBS=$ac_check_lib_save_LIBS
16155 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16156 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16157 if test "x$ac_cv_lib_z_compress2" = x""yes; then
16158 cat >>confdefs.h <<_ACEOF
16159 #define HAVE_LIBZ 1
16165 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16167 { { $as_echo "$as_me:$LINENO: error:
16168 *** compress2() missing, zlib-devel package required
16169 See \`config.log' for more details." >&5
16170 $as_echo "$as_me: error:
16171 *** compress2() missing, zlib-devel package required
16172 See \`config.log' for more details." >&2;}
16173 { (exit 1); exit 1; }; }; }
16178 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16179 $as_echo_n "checking for uncompress in -lz... " >&6; }
16180 if test "${ac_cv_lib_z_uncompress+set}" = set; then
16181 $as_echo_n "(cached) " >&6
16183 ac_check_lib_save_LIBS=$LIBS
16185 cat >conftest.$ac_ext <<_ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16192 /* Override any GCC internal prototype to avoid an error.
16193 Use char because int might match the return type of a GCC
16194 builtin and then its argument prototype would still apply. */
16198 char uncompress ();
16202 return uncompress ();
16207 rm -f conftest.$ac_objext conftest$ac_exeext
16208 if { (ac_try="$ac_link"
16209 case "(($ac_try" in
16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211 *) ac_try_echo=$ac_try;;
16213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16214 $as_echo "$ac_try_echo") >&5
16215 (eval "$ac_link") 2>conftest.er1
16217 grep -v '^ *+' conftest.er1 >conftest.err
16219 cat conftest.err >&5
16220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } && {
16222 test -z "$ac_c_werror_flag" ||
16223 test ! -s conftest.err
16224 } && test -s conftest$ac_exeext && {
16225 test "$cross_compiling" = yes ||
16226 $as_test_x conftest$ac_exeext
16228 ac_cv_lib_z_uncompress=yes
16230 $as_echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16233 ac_cv_lib_z_uncompress=no
16236 rm -rf conftest.dSYM
16237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16242 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16243 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16244 cat >>confdefs.h <<_ACEOF
16245 #define HAVE_LIBZ 1
16251 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16253 { { $as_echo "$as_me:$LINENO: error:
16254 *** uncompress() missing, zlib-devel package required
16255 See \`config.log' for more details." >&5
16256 $as_echo "$as_me: error:
16257 *** uncompress() missing, zlib-devel package required
16258 See \`config.log' for more details." >&2;}
16259 { (exit 1); exit 1; }; }; }
16264 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16265 $as_echo_n "checking for crc32 in -lz... " >&6; }
16266 if test "${ac_cv_lib_z_crc32+set}" = set; then
16267 $as_echo_n "(cached) " >&6
16269 ac_check_lib_save_LIBS=$LIBS
16271 cat >conftest.$ac_ext <<_ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16300 $as_echo "$ac_try_echo") >&5
16301 (eval "$ac_link") 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest$ac_exeext && {
16311 test "$cross_compiling" = yes ||
16312 $as_test_x conftest$ac_exeext
16314 ac_cv_lib_z_crc32=yes
16316 $as_echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16319 ac_cv_lib_z_crc32=no
16322 rm -rf conftest.dSYM
16323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16324 conftest$ac_exeext conftest.$ac_ext
16325 LIBS=$ac_check_lib_save_LIBS
16327 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16328 $as_echo "$ac_cv_lib_z_crc32" >&6; }
16329 if test "x$ac_cv_lib_z_crc32" = x""yes; then
16330 cat >>confdefs.h <<_ACEOF
16331 #define HAVE_LIBZ 1
16337 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16339 { { $as_echo "$as_me:$LINENO: error:
16340 *** crc32() missing, zlib-devel package required
16341 See \`config.log' for more details." >&5
16342 $as_echo "$as_me: error:
16343 *** crc32() missing, zlib-devel package required
16344 See \`config.log' for more details." >&2;}
16345 { (exit 1); exit 1; }; }; }
16352 cat >>confdefs.h <<\_ACEOF
16353 #define HAVE_ZLIB 1
16360 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16361 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16362 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16363 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16367 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16369 # Is the header compilable?
16370 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
16371 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 $ac_includes_default
16379 #include <uuid/uuid.h>
16381 rm -f conftest.$ac_objext
16382 if { (ac_try="$ac_compile"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16388 $as_echo "$ac_try_echo") >&5
16389 (eval "$ac_compile") 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && {
16396 test -z "$ac_c_werror_flag" ||
16397 test ! -s conftest.err
16398 } && test -s conftest.$ac_objext; then
16399 ac_header_compiler=yes
16401 $as_echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16404 ac_header_compiler=no
16407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16409 $as_echo "$ac_header_compiler" >&6; }
16411 # Is the header present?
16412 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
16413 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 #include <uuid/uuid.h>
16422 if { (ac_try="$ac_cpp conftest.$ac_ext"
16423 case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1 >conftest.err
16433 cat conftest.err >&5
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } >/dev/null && {
16436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16439 ac_header_preproc=yes
16441 $as_echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ac_header_preproc=no
16447 rm -f conftest.err conftest.$ac_ext
16448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16449 $as_echo "$ac_header_preproc" >&6; }
16451 # So? What about this header?
16452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16454 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
16455 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16456 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
16457 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
16458 ac_header_preproc=yes
16461 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
16462 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
16463 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
16464 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
16465 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
16466 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
16467 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
16468 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
16469 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
16470 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
16471 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
16472 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
16476 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16477 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16478 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16479 $as_echo_n "(cached) " >&6
16481 ac_cv_header_uuid_uuid_h=$ac_header_preproc
16483 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16484 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16487 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
16490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16492 { { $as_echo "$as_me:$LINENO: error:
16493 *** uuid/uuid.h missing, libuuid-devel package required
16494 See \`config.log' for more details." >&5
16495 $as_echo "$as_me: error:
16496 *** uuid/uuid.h missing, libuuid-devel package required
16497 See \`config.log' for more details." >&2;}
16498 { (exit 1); exit 1; }; }; }
16504 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
16505 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16506 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
16507 $as_echo_n "(cached) " >&6
16509 ac_check_lib_save_LIBS=$LIBS
16510 LIBS="-luuid $LIBS"
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16518 /* Override any GCC internal prototype to avoid an error.
16519 Use char because int might match the return type of a GCC
16520 builtin and then its argument prototype would still apply. */
16524 char uuid_generate ();
16528 return uuid_generate ();
16533 rm -f conftest.$ac_objext conftest$ac_exeext
16534 if { (ac_try="$ac_link"
16535 case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16540 $as_echo "$ac_try_echo") >&5
16541 (eval "$ac_link") 2>conftest.er1
16543 grep -v '^ *+' conftest.er1 >conftest.err
16545 cat conftest.err >&5
16546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && {
16548 test -z "$ac_c_werror_flag" ||
16549 test ! -s conftest.err
16550 } && test -s conftest$ac_exeext && {
16551 test "$cross_compiling" = yes ||
16552 $as_test_x conftest$ac_exeext
16554 ac_cv_lib_uuid_uuid_generate=yes
16556 $as_echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ac_cv_lib_uuid_uuid_generate=no
16562 rm -rf conftest.dSYM
16563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16564 conftest$ac_exeext conftest.$ac_ext
16565 LIBS=$ac_check_lib_save_LIBS
16567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
16568 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16569 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
16570 cat >>confdefs.h <<_ACEOF
16571 #define HAVE_LIBUUID 1
16574 LIBS="-luuid $LIBS"
16577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16579 { { $as_echo "$as_me:$LINENO: error:
16580 *** uuid_generate() missing, libuuid-devel package required
16581 See \`config.log' for more details." >&5
16582 $as_echo "$as_me: error:
16583 *** uuid_generate() missing, libuuid-devel package required
16584 See \`config.log' for more details." >&2;}
16585 { (exit 1); exit 1; }; }; }
16590 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
16591 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
16592 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
16593 $as_echo_n "(cached) " >&6
16595 ac_check_lib_save_LIBS=$LIBS
16596 LIBS="-luuid $LIBS"
16597 cat >conftest.$ac_ext <<_ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16604 /* Override any GCC internal prototype to avoid an error.
16605 Use char because int might match the return type of a GCC
16606 builtin and then its argument prototype would still apply. */
16610 char uuid_is_null ();
16614 return uuid_is_null ();
16619 rm -f conftest.$ac_objext conftest$ac_exeext
16620 if { (ac_try="$ac_link"
16621 case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16626 $as_echo "$ac_try_echo") >&5
16627 (eval "$ac_link") 2>conftest.er1
16629 grep -v '^ *+' conftest.er1 >conftest.err
16631 cat conftest.err >&5
16632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); } && {
16634 test -z "$ac_c_werror_flag" ||
16635 test ! -s conftest.err
16636 } && test -s conftest$ac_exeext && {
16637 test "$cross_compiling" = yes ||
16638 $as_test_x conftest$ac_exeext
16640 ac_cv_lib_uuid_uuid_is_null=yes
16642 $as_echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_lib_uuid_uuid_is_null=no
16648 rm -rf conftest.dSYM
16649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16650 conftest$ac_exeext conftest.$ac_ext
16651 LIBS=$ac_check_lib_save_LIBS
16653 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
16654 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
16655 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define HAVE_LIBUUID 1
16660 LIBS="-luuid $LIBS"
16663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16665 { { $as_echo "$as_me:$LINENO: error:
16666 *** uuid_is_null() missing, libuuid-devel package required
16667 See \`config.log' for more details." >&5
16668 $as_echo "$as_me: error:
16669 *** uuid_is_null() missing, libuuid-devel package required
16670 See \`config.log' for more details." >&2;}
16671 { (exit 1); exit 1; }; }; }
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE_LIBUUID 1
16685 # Check whether --with-blkid was given.
16686 if test "${with_blkid+set}" = set; then
16687 withval=$with_blkid;
16694 if test "x$with_blkid" != xno; then
16696 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
16697 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
16698 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
16699 $as_echo_n "(cached) " >&6
16701 ac_check_lib_save_LIBS=$LIBS
16702 LIBS="-lblkid $LIBS"
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16716 char blkid_get_cache ();
16720 return blkid_get_cache ();
16725 rm -f conftest.$ac_objext conftest$ac_exeext
16726 if { (ac_try="$ac_link"
16727 case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16732 $as_echo "$ac_try_echo") >&5
16733 (eval "$ac_link") 2>conftest.er1
16735 grep -v '^ *+' conftest.er1 >conftest.err
16737 cat conftest.err >&5
16738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } && {
16740 test -z "$ac_c_werror_flag" ||
16741 test ! -s conftest.err
16742 } && test -s conftest$ac_exeext && {
16743 test "$cross_compiling" = yes ||
16744 $as_test_x conftest$ac_exeext
16746 ac_cv_lib_blkid_blkid_get_cache=yes
16748 $as_echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_blkid_blkid_get_cache=no
16754 rm -rf conftest.dSYM
16755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16756 conftest$ac_exeext conftest.$ac_ext
16757 LIBS=$ac_check_lib_save_LIBS
16759 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
16760 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
16761 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
16763 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
16764 $as_echo_n "checking for blkid zfs support... " >&6; }
16767 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
16768 >/dev/null 2>/dev/null
16769 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
16770 dd of=$ZFS_DEV bs=1k count=8 \
16771 seek=132 conv=notrunc &>/dev/null \
16772 >/dev/null 2>/dev/null
16774 saved_LDFLAGS="$LDFLAGS"
16777 if test "$cross_compiling" = yes; then
16778 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16780 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16781 See \`config.log' for more details." >&5
16782 $as_echo "$as_me: error: cannot run test program while cross compiling
16783 See \`config.log' for more details." >&2;}
16784 { (exit 1); exit 1; }; }; }
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16794 #include <blkid/blkid.h>
16803 if (blkid_get_cache(&cache, NULL) < 0)
16806 value = blkid_get_tag_value(cache, "TYPE",
16809 blkid_put_cache(cache);
16813 if (strcmp(value, "zfs")) {
16815 blkid_put_cache(cache);
16820 blkid_put_cache(cache);
16826 rm -f conftest$ac_exeext
16827 if { (ac_try="$ac_link"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16833 $as_echo "$ac_try_echo") >&5
16834 (eval "$ac_link") 2>&5
16836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16838 { (case "(($ac_try" in
16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840 *) ac_try_echo=$ac_try;;
16842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16843 $as_echo "$ac_try_echo") >&5
16844 (eval "$ac_try") 2>&5
16846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16850 { $as_echo "$as_me:$LINENO: result: yes" >&5
16851 $as_echo "yes" >&6; }
16855 cat >>confdefs.h <<\_ACEOF
16856 #define HAVE_LIBBLKID 1
16861 $as_echo "$as_me: program exited with status $ac_status" >&5
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ( exit $ac_status )
16868 { $as_echo "$as_me:$LINENO: result: no" >&5
16869 $as_echo "no" >&6; }
16870 if test "x$with_blkid" != xcheck; then
16871 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16873 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16874 See \`config.log' for more details." >&5
16875 $as_echo "$as_me: error: --with-blkid given but unavailable
16876 See \`config.log' for more details." >&2;}
16877 { (exit 1); exit 1; }; }; }
16882 rm -rf conftest.dSYM
16883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16888 LDFLAGS="$saved_LDFLAGS"
16892 if test "x$with_blkid" != xcheck; then
16893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16895 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16896 See \`config.log' for more details." >&5
16897 $as_echo "$as_me: error: --with-blkid given but unavailable
16898 See \`config.log' for more details." >&2;}
16899 { (exit 1); exit 1; }; }; }
16912 # Check whether --with-selinux was given.
16913 if test "${with_selinux+set}" = set; then
16914 withval=$with_selinux;
16921 if test "x$with_selinux" != xno; then
16923 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16924 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16925 $as_echo_n "checking for selinux/selinux.h... " >&6; }
16926 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16927 $as_echo_n "(cached) " >&6
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16930 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16932 # Is the header compilable?
16933 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
16934 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
16935 cat >conftest.$ac_ext <<_ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 $ac_includes_default
16942 #include <selinux/selinux.h>
16944 rm -f conftest.$ac_objext
16945 if { (ac_try="$ac_compile"
16946 case "(($ac_try" in
16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16948 *) ac_try_echo=$ac_try;;
16950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16951 $as_echo "$ac_try_echo") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16962 ac_header_compiler=yes
16964 $as_echo "$as_me: failed program was:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_header_compiler=no
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16972 $as_echo "$ac_header_compiler" >&6; }
16974 # Is the header present?
16975 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
16976 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 #include <selinux/selinux.h>
16985 if { (ac_try="$ac_cpp conftest.$ac_ext"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16991 $as_echo "$ac_try_echo") >&5
16992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } >/dev/null && {
16999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17000 test ! -s conftest.err
17002 ac_header_preproc=yes
17004 $as_echo "$as_me: failed program was:" >&5
17005 sed 's/^/| /' conftest.$ac_ext >&5
17007 ac_header_preproc=no
17010 rm -f conftest.err conftest.$ac_ext
17011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17012 $as_echo "$ac_header_preproc" >&6; }
17014 # So? What about this header?
17015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17017 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17018 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17019 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17020 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17021 ac_header_preproc=yes
17024 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17025 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17026 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
17027 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
17028 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17029 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17030 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
17031 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
17032 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17033 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17034 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17035 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17039 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17040 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17041 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17042 $as_echo_n "(cached) " >&6
17044 ac_cv_header_selinux_selinux_h=$ac_header_preproc
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17047 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17050 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17052 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17053 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17054 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17055 $as_echo_n "(cached) " >&6
17057 ac_check_lib_save_LIBS=$LIBS
17058 LIBS="-lselinux $LIBS"
17059 cat >conftest.$ac_ext <<_ACEOF
17062 cat confdefs.h >>conftest.$ac_ext
17063 cat >>conftest.$ac_ext <<_ACEOF
17064 /* end confdefs.h. */
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17072 char is_selinux_enabled ();
17076 return is_selinux_enabled ();
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17088 $as_echo "$ac_try_echo") >&5
17089 (eval "$ac_link") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest$ac_exeext && {
17099 test "$cross_compiling" = yes ||
17100 $as_test_x conftest$ac_exeext
17102 ac_cv_lib_selinux_is_selinux_enabled=yes
17104 $as_echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_lib_selinux_is_selinux_enabled=no
17110 rm -rf conftest.dSYM
17111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS=$ac_check_lib_save_LIBS
17115 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17116 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17117 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17119 LIBSELINUX="-lselinux"
17122 cat >>confdefs.h <<\_ACEOF
17123 #define HAVE_LIBSELINUX 1
17129 if test "x$with_selinux" != xcheck; then
17130 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17132 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17133 See \`config.log' for more details." >&5
17134 $as_echo "$as_me: error: --with-selinux given but unavailable
17135 See \`config.log' for more details." >&2;}
17136 { (exit 1); exit 1; }; }; }
17146 if test "x$with_selinux" != xcheck; then
17147 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17149 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17150 See \`config.log' for more details." >&5
17151 $as_echo "$as_me: error: --with-selinux given but unavailable
17152 See \`config.log' for more details." >&2;}
17153 { (exit 1); exit 1; }; }; }
17164 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17165 $as_echo_n "checking for selinux support... " >&6; }
17166 { $as_echo "$as_me:$LINENO: result: no" >&5
17167 $as_echo "no" >&6; }
17173 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17174 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17176 saved_flags="$CFLAGS"
17177 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17179 if test "$cross_compiling" = yes; then
17180 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17182 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17183 See \`config.log' for more details." >&5
17184 $as_echo "$as_me: error: cannot run test program while cross compiling
17185 See \`config.log' for more details." >&2;}
17186 { (exit 1); exit 1; }; }; }
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17203 rm -f conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17210 $as_echo "$ac_try_echo") >&5
17211 (eval "$ac_link") 2>&5
17213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17220 $as_echo "$ac_try_echo") >&5
17221 (eval "$ac_try") 2>&5
17223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17226 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17227 { $as_echo "$as_me:$LINENO: result: yes" >&5
17228 $as_echo "yes" >&6; }
17231 $as_echo "$as_me: program exited with status $ac_status" >&5
17232 $as_echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ( exit $ac_status )
17238 { $as_echo "$as_me:$LINENO: result: no" >&5
17239 $as_echo "no" >&6; }
17242 rm -rf conftest.dSYM
17243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17248 CFLAGS="$saved_flags"
17253 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17254 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17256 saved_CFLAGS="$CFLAGS"
17257 CFLAGS="-fstack-check"
17258 saved_LDFLAGS="$LDFLAGS"
17259 LDFLAGS="-lpthread"
17261 if test "$cross_compiling" = yes; then
17262 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17264 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17265 See \`config.log' for more details." >&5
17266 $as_echo "$as_me: error: cannot run test program while cross compiling
17267 See \`config.log' for more details." >&2;}
17268 { (exit 1); exit 1; }; }; }
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 #include <pthread.h>
17278 #include <sys/resource.h>
17279 #include <unistd.h>
17280 #include <bits/local_lim.h>
17282 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17283 #define STACK_SIZE 8192
17284 #define BUFSIZE 4096
17286 void * func(void *arg)
17296 pthread_attr_t attr;
17301 setrlimit(RLIMIT_CORE, &l);
17302 pthread_attr_init(&attr);
17303 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17304 pthread_attr_setguardsize(&attr, PAGESIZE);
17305 pthread_create(&tid, &attr, func, NULL);
17306 pthread_join(tid, NULL);
17312 rm -f conftest$ac_exeext
17313 if { (ac_try="$ac_link"
17314 case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17319 $as_echo "$ac_try_echo") >&5
17320 (eval "$ac_link") 2>&5
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17329 $as_echo "$ac_try_echo") >&5
17330 (eval "$ac_try") 2>&5
17332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17335 { $as_echo "$as_me:$LINENO: result: no" >&5
17336 $as_echo "no" >&6; }
17339 $as_echo "$as_me: program exited with status $ac_status" >&5
17340 $as_echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ( exit $ac_status )
17346 cat >>confdefs.h <<\_ACEOF
17347 #define NPTL_GUARD_WITHIN_STACK 1
17350 { $as_echo "$as_me:$LINENO: result: yes" >&5
17351 $as_echo "yes" >&6; }
17354 rm -rf conftest.dSYM
17355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17359 CFLAGS="$saved_CFLAGS"
17360 LDFLAGS="$saved_LDFLAGS"
17366 # Check whether --with-linux was given.
17367 if test "${with_linux+set}" = set; then
17368 withval=$with_linux; kernelsrc="$withval"
17373 # Check whether --with-linux-obj was given.
17374 if test "${with_linux_obj+set}" = set; then
17375 withval=$with_linux_obj; kernelbuild="$withval"
17379 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
17380 $as_echo_n "checking kernel source directory... " >&6; }
17381 if test -z "$kernelsrc"; then
17383 if test -e "/lib/modules/$(uname -r)/source"; then
17385 headersdir="/lib/modules/$(uname -r)/source"
17386 sourcelink=$(readlink -f "$headersdir")
17388 elif test -e "/lib/modules/$(uname -r)/build"; then
17390 headersdir="/lib/modules/$(uname -r)/build"
17391 sourcelink=$(readlink -f "$headersdir")
17395 sourcelink=$(ls -1d /usr/src/kernels/* \
17397 2>/dev/null | grep -v obj | tail -1)
17402 if test -n "$sourcelink" && test -e ${sourcelink}; then
17404 kernelsrc=`readlink -f ${sourcelink}`
17408 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17409 $as_echo "Not found" >&6; }
17410 { { $as_echo "$as_me:$LINENO: error:
17411 *** Please make sure the kernel devel package for your distribution
17412 *** is installed then try again. If that fails you can specify the
17413 *** location of the kernel source with the '--with-linux=PATH' option." >&5
17414 $as_echo "$as_me: error:
17415 *** Please make sure the kernel devel package for your distribution
17416 *** is installed then try again. If that fails you can specify the
17417 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
17418 { (exit 1); exit 1; }; }
17425 if test "$kernelsrc" = "NONE"; then
17435 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
17436 $as_echo "$kernelsrc" >&6; }
17437 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
17438 $as_echo_n "checking kernel build directory... " >&6; }
17439 if test -z "$kernelbuild"; then
17441 if test -e "/lib/modules/$(uname -r)/build"; then
17443 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
17445 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
17447 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
17449 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
17451 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
17453 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
17455 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
17459 kernelbuild=${kernelsrc}
17466 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
17467 $as_echo "$kernelbuild" >&6; }
17469 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
17470 $as_echo_n "checking kernel source version... " >&6; }
17471 utsrelease1=$kernelbuild/include/linux/version.h
17472 utsrelease2=$kernelbuild/include/linux/utsrelease.h
17473 utsrelease3=$kernelbuild/include/generated/utsrelease.h
17474 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
17476 utsrelease=linux/version.h
17478 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
17480 utsrelease=linux/utsrelease.h
17482 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
17484 utsrelease=generated/utsrelease.h
17489 if test "$utsrelease"; then
17491 kernsrcver=`(echo "#include <$utsrelease>";
17492 echo "kernsrcver=UTS_RELEASE") |
17493 cpp -I $kernelbuild/include |
17494 grep "^kernsrcver=" | cut -d \" -f 2`
17496 if test -z "$kernsrcver"; then
17498 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17499 $as_echo "Not found" >&6; }
17500 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
17501 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
17502 { (exit 1); exit 1; }; }
17509 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17510 $as_echo "Not found" >&6; }
17511 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
17512 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
17513 { (exit 1); exit 1; }; }
17518 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
17519 $as_echo "$kernsrcver" >&6; }
17522 LINUX_OBJ=${kernelbuild}
17523 LINUX_VERSION=${kernsrcver}
17530 modpost=$LINUX/scripts/Makefile.modpost
17531 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
17532 $as_echo_n "checking kernel file name for module symbols... " >&6; }
17533 if test -f "$modpost"; then
17535 if grep -q Modules.symvers $modpost; then
17537 LINUX_SYMBOLS=Modules.symvers
17541 LINUX_SYMBOLS=Module.symvers
17546 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
17548 { { $as_echo "$as_me:$LINENO: error:
17549 *** Please make sure the kernel devel package for your distribution
17550 *** is installed. If your building with a custom kernel make sure the
17551 *** kernel is configured, built, and the '--with-linux=PATH' configure
17552 *** option refers to the location of the kernel source." >&5
17553 $as_echo "$as_me: error:
17554 *** Please make sure the kernel devel package for your distribution
17555 *** is installed. If your building with a custom kernel make sure the
17556 *** kernel is configured, built, and the '--with-linux=PATH' configure
17557 *** option refers to the location of the kernel source." >&2;}
17558 { (exit 1); exit 1; }; }
17569 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
17570 $as_echo "$LINUX_SYMBOLS" >&6; }
17576 # Check whether --with-spl was given.
17577 if test "${with_spl+set}" = set; then
17578 withval=$with_spl; splsrc="$withval"
17583 # Check whether --with-spl-obj was given.
17584 if test "${with_spl_obj+set}" = set; then
17585 withval=$with_spl_obj; splbuild="$withval"
17590 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
17591 $as_echo_n "checking spl source directory... " >&6; }
17592 if test -z "$splsrc"; then
17594 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
17595 2>/dev/null | tail -1`
17597 if test -z "$sourcelink" || test ! -e $sourcelink; then
17604 if test -e $sourcelink; then
17606 splsrc=`readlink -f ${sourcelink}`
17610 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17611 $as_echo "Not found" >&6; }
17612 { { $as_echo "$as_me:$LINENO: error:
17613 *** Please make sure the spl devel package for your distribution
17614 *** is installed then try again. If that fails you can specify the
17615 *** location of the spl source with the '--with-spl=PATH' option." >&5
17616 $as_echo "$as_me: error:
17617 *** Please make sure the spl devel package for your distribution
17618 *** is installed then try again. If that fails you can specify the
17619 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
17620 { (exit 1); exit 1; }; }
17627 if test "$splsrc" = "NONE"; then
17638 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
17639 $as_echo "$splsrc" >&6; }
17640 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
17641 $as_echo_n "checking spl build directory... " >&6; }
17642 if test -z "$splbuild"; then
17648 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
17649 $as_echo "$splbuild" >&6; }
17651 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
17652 $as_echo_n "checking spl source version... " >&6; }
17653 if test -r $splbuild/spl_config.h &&
17654 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
17657 splsrcver=`(echo "#include <spl_config.h>";
17658 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
17660 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
17665 if test -z "$splsrcver"; then
17667 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17668 $as_echo "Not found" >&6; }
17669 { { $as_echo "$as_me:$LINENO: error:
17670 *** Cannot determine the version of the spl source.
17671 *** Please prepare the spl source before running this script" >&5
17672 $as_echo "$as_me: error:
17673 *** Cannot determine the version of the spl source.
17674 *** Please prepare the spl source before running this script" >&2;}
17675 { (exit 1); exit 1; }; }
17680 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
17681 $as_echo "$splsrcver" >&6; }
17684 SPL_OBJ=${splbuild}
17685 SPL_VERSION=${splsrcver}
17692 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
17693 $as_echo_n "checking spl file name for module symbols... " >&6; }
17694 if test -r $SPL_OBJ/Module.symvers; then
17696 SPL_SYMBOLS=Module.symvers
17698 elif test -r $SPL_OBJ/Modules.symvers; then
17700 SPL_SYMBOLS=Modules.symvers
17702 elif test -r $SPL_OBJ/module/Module.symvers; then
17704 SPL_SYMBOLS=Module.symvers
17706 elif test -r $SPL_OBJ/module/Modules.symvers; then
17708 SPL_SYMBOLS=Modules.symvers
17712 SPL_SYMBOLS=$LINUX_SYMBOLS
17717 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
17718 $as_echo "$SPL_SYMBOLS" >&6; }
17724 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
17725 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
17728 cat confdefs.h - <<_ACEOF >conftest.c
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17736 #include <linux/module.h>
17742 #ifndef CONFIG_PREEMPT
17743 #error CONFIG_PREEMPT not #defined
17753 rm -Rf build && mkdir -p build
17754 echo "obj-m := conftest.o" >build/Makefile
17755 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17767 { $as_echo "$as_me:$LINENO: result: yes" >&5
17768 $as_echo "yes" >&6; }
17769 { { $as_echo "$as_me:$LINENO: error:
17770 *** Kernel built with CONFIG_PREEMPT which is not supported.
17771 *** You must rebuild your kernel without this option." >&5
17772 $as_echo "$as_me: error:
17773 *** Kernel built with CONFIG_PREEMPT which is not supported.
17774 *** You must rebuild your kernel without this option." >&2;}
17775 { (exit 1); exit 1; }; }
17778 $as_echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 { $as_echo "$as_me:$LINENO: result: no" >&5
17782 $as_echo "no" >&6; }
17794 if test "$ZFS_META_LICENSE" = CDDL; then
17796 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
17797 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
17800 cat confdefs.h - <<_ACEOF >conftest.c
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17808 #include <linux/module.h>
17814 #ifndef CONFIG_DEBUG_LOCK_ALLOC
17815 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
17825 rm -Rf build && mkdir -p build
17826 echo "obj-m := conftest.o" >build/Makefile
17827 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17839 { $as_echo "$as_me:$LINENO: result: yes" >&5
17840 $as_echo "yes" >&6; }
17841 { { $as_echo "$as_me:$LINENO: error:
17842 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17843 *** incompatible with the CDDL license. You must rebuild
17844 *** your kernel without this option." >&5
17845 $as_echo "$as_me: error:
17846 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17847 *** incompatible with the CDDL license. You must rebuild
17848 *** your kernel without this option." >&2;}
17849 { (exit 1); exit 1; }; }
17852 $as_echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 { $as_echo "$as_me:$LINENO: result: no" >&5
17856 $as_echo "no" >&6; }
17871 if test "$ZFS_META_LICENSE" = GPL; then
17874 cat >>confdefs.h <<\_ACEOF
17875 #define HAVE_GPL_ONLY_SYMBOLS 1
17883 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
17884 $as_echo_n "checking block device operation prototypes... " >&6; }
17885 tmp_flags="$EXTRA_KCFLAGS"
17886 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
17889 cat confdefs.h - <<_ACEOF >conftest.c
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17897 #include <linux/blkdev.h>
17903 int (*blk_open) (struct block_device *, fmode_t) = NULL;
17904 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
17905 int (*blk_ioctl) (struct block_device *, fmode_t,
17906 unsigned, unsigned long) = NULL;
17907 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
17908 unsigned, unsigned long) = NULL;
17909 struct block_device_operations blk_ops = {
17911 .release = blk_release,
17912 .ioctl = blk_ioctl,
17913 .compat_ioctl = blk_compat_ioctl,
17916 blk_ops.open(NULL, 0);
17917 blk_ops.release(NULL, 0);
17918 blk_ops.ioctl(NULL, 0, 0, 0);
17919 blk_ops.compat_ioctl(NULL, 0, 0, 0);
17928 rm -Rf build && mkdir -p build
17929 echo "obj-m := conftest.o" >build/Makefile
17930 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17942 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
17943 $as_echo "struct block_device" >&6; }
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
17951 $as_echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
17955 $as_echo "struct inode" >&6; }
17964 EXTRA_KCFLAGS="$tmp_flags"
17966 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
17967 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
17970 cat confdefs.h - <<_ACEOF >conftest.c
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17978 #include <linux/types.h>
17984 fmode_t *ptr __attribute__ ((unused));
17993 rm -Rf build && mkdir -p build
17994 echo "obj-m := conftest.o" >build/Makefile
17995 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18002 (eval $ac_try) 2>&5
18004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; }; then
18007 { $as_echo "$as_me:$LINENO: result: yes" >&5
18008 $as_echo "yes" >&6; }
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_FMODE_T 1
18016 $as_echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 { $as_echo "$as_me:$LINENO: result: no" >&5
18020 $as_echo "no" >&6; }
18031 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18032 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18035 cat confdefs.h - <<_ACEOF >conftest.c
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h. */
18043 #include <linux/kobject.h>
18049 int val __attribute__ ((unused));
18050 val = KOBJ_NAME_LEN;
18059 rm -Rf build && mkdir -p build
18060 echo "obj-m := conftest.o" >build/Makefile
18061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068 (eval $ac_try) 2>&5
18070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18073 { $as_echo "$as_me:$LINENO: result: yes" >&5
18074 $as_echo "yes" >&6; }
18076 cat >>confdefs.h <<\_ACEOF
18077 #define HAVE_KOBJ_NAME_LEN 1
18082 $as_echo "$as_me: failed program was:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 { $as_echo "$as_me:$LINENO: result: no" >&5
18086 $as_echo "no" >&6; }
18097 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18098 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18099 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18100 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18102 if test $rc -ne 0; then
18105 for file in fs/block_dev.c; do
18106 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
18108 if test $rc -eq 0; then
18116 if test $export -eq 0; then
18118 { $as_echo "$as_me:$LINENO: result: no" >&5
18119 $as_echo "no" >&6; }
18124 { $as_echo "$as_me:$LINENO: result: yes" >&5
18125 $as_echo "yes" >&6; }
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_BLKDEV_GET_BY_PATH 1
18137 { $as_echo "$as_me:$LINENO: result: yes" >&5
18138 $as_echo "yes" >&6; }
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_BLKDEV_GET_BY_PATH 1
18150 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
18151 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
18152 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18153 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18155 if test $rc -ne 0; then
18158 for file in fs/block_dev.c; do
18159 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
18161 if test $rc -eq 0; then
18169 if test $export -eq 0; then
18171 { $as_echo "$as_me:$LINENO: result: no" >&5
18172 $as_echo "no" >&6; }
18177 { $as_echo "$as_me:$LINENO: result: yes" >&5
18178 $as_echo "yes" >&6; }
18180 cat >>confdefs.h <<\_ACEOF
18181 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18190 { $as_echo "$as_me:$LINENO: result: yes" >&5
18191 $as_echo "yes" >&6; }
18193 cat >>confdefs.h <<\_ACEOF
18194 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18203 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
18204 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
18207 cat confdefs.h - <<_ACEOF >conftest.c
18210 cat confdefs.h >>conftest.$ac_ext
18211 cat >>conftest.$ac_ext <<_ACEOF
18212 /* end confdefs.h. */
18215 #include <linux/buffer_head.h>
18221 struct block_device *bdev = NULL;
18222 invalidate_bdev(bdev);
18231 rm -Rf build && mkdir -p build
18232 echo "obj-m := conftest.o" >build/Makefile
18233 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240 (eval $ac_try) 2>&5
18242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
18245 { $as_echo "$as_me:$LINENO: result: yes" >&5
18246 $as_echo "yes" >&6; }
18248 cat >>confdefs.h <<\_ACEOF
18249 #define HAVE_1ARG_INVALIDATE_BDEV 1
18254 $as_echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 { $as_echo "$as_me:$LINENO: result: no" >&5
18258 $as_echo "no" >&6; }
18269 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18270 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
18271 tmp_flags="$EXTRA_KCFLAGS"
18272 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18275 cat confdefs.h - <<_ACEOF >conftest.c
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18283 #include <linux/blkdev.h>
18289 struct block_device *bdev = NULL;
18290 bdev_logical_block_size(bdev);
18299 rm -Rf build && mkdir -p build
18300 echo "obj-m := conftest.o" >build/Makefile
18301 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18313 { $as_echo "$as_me:$LINENO: result: yes" >&5
18314 $as_echo "yes" >&6; }
18316 cat >>confdefs.h <<\_ACEOF
18317 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
18322 $as_echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 { $as_echo "$as_me:$LINENO: result: no" >&5
18326 $as_echo "no" >&6; }
18335 EXTRA_KCFLAGS="$tmp_flags"
18338 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18339 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18340 EXTRA_KCFLAGS="-Werror"
18343 cat confdefs.h - <<_ACEOF >conftest.c
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18351 #include <linux/bio.h>
18358 (void)bio_empty_barrier(&bio);
18367 rm -Rf build && mkdir -p build
18368 echo "obj-m := conftest.o" >build/Makefile
18369 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18381 { $as_echo "$as_me:$LINENO: result: yes" >&5
18382 $as_echo "yes" >&6; }
18384 cat >>confdefs.h <<\_ACEOF
18385 #define HAVE_BIO_EMPTY_BARRIER 1
18390 $as_echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 { $as_echo "$as_me:$LINENO: result: no" >&5
18394 $as_echo "no" >&6; }
18405 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
18406 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
18409 cat confdefs.h - <<_ACEOF >conftest.c
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18417 #include <linux/bio.h>
18423 int flags __attribute__ ((unused));
18424 flags = (1 << BIO_RW_FAILFAST);
18433 rm -Rf build && mkdir -p build
18434 echo "obj-m := conftest.o" >build/Makefile
18435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18437 (eval $ac_try) 2>&5
18439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; }; then
18447 { $as_echo "$as_me:$LINENO: result: yes" >&5
18448 $as_echo "yes" >&6; }
18450 cat >>confdefs.h <<\_ACEOF
18451 #define HAVE_BIO_RW_FAILFAST 1
18456 $as_echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 { $as_echo "$as_me:$LINENO: result: no" >&5
18460 $as_echo "no" >&6; }
18471 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
18472 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
18475 cat confdefs.h - <<_ACEOF >conftest.c
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h. */
18483 #include <linux/bio.h>
18489 int flags __attribute__ ((unused));
18490 flags = ((1 << BIO_RW_FAILFAST_DEV) |
18491 (1 << BIO_RW_FAILFAST_TRANSPORT) |
18492 (1 << BIO_RW_FAILFAST_DRIVER));
18501 rm -Rf build && mkdir -p build
18502 echo "obj-m := conftest.o" >build/Makefile
18503 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18515 { $as_echo "$as_me:$LINENO: result: yes" >&5
18516 $as_echo "yes" >&6; }
18518 cat >>confdefs.h <<\_ACEOF
18519 #define HAVE_BIO_RW_FAILFAST_DTD 1
18524 $as_echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 { $as_echo "$as_me:$LINENO: result: no" >&5
18528 $as_echo "no" >&6; }
18539 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
18540 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
18543 cat confdefs.h - <<_ACEOF >conftest.c
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18551 #include <linux/bio.h>
18557 int flags __attribute__ ((unused));
18558 flags = REQ_FAILFAST_MASK;
18567 rm -Rf build && mkdir -p build
18568 echo "obj-m := conftest.o" >build/Makefile
18569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576 (eval $ac_try) 2>&5
18578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; }; then
18581 { $as_echo "$as_me:$LINENO: result: yes" >&5
18582 $as_echo "yes" >&6; }
18584 cat >>confdefs.h <<\_ACEOF
18585 #define HAVE_BIO_REQ_FAILFAST_MASK 1
18590 $as_echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18593 { $as_echo "$as_me:$LINENO: result: no" >&5
18594 $as_echo "no" >&6; }
18605 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
18606 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
18607 tmp_flags="$EXTRA_KCFLAGS"
18608 EXTRA_KCFLAGS="-Werror"
18611 cat confdefs.h - <<_ACEOF >conftest.c
18614 cat confdefs.h >>conftest.$ac_ext
18615 cat >>conftest.$ac_ext <<_ACEOF
18616 /* end confdefs.h. */
18619 #include <linux/bio.h>
18625 void (*wanted_end_io)(struct bio *, int) = NULL;
18626 bio_end_io_t *local_end_io __attribute__ ((unused));
18628 local_end_io = wanted_end_io;
18637 rm -Rf build && mkdir -p build
18638 echo "obj-m := conftest.o" >build/Makefile
18639 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18651 { $as_echo "$as_me:$LINENO: result: yes" >&5
18652 $as_echo "yes" >&6; }
18654 cat >>confdefs.h <<\_ACEOF
18655 #define HAVE_2ARGS_BIO_END_IO_T 1
18660 $as_echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 { $as_echo "$as_me:$LINENO: result: no" >&5
18664 $as_echo "no" >&6; }
18673 EXTRA_KCFLAGS="$tmp_flags"
18676 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
18677 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
18680 cat confdefs.h - <<_ACEOF >conftest.c
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h. */
18688 #include <linux/bio.h>
18694 int flags __attribute__ ((unused));
18695 flags = BIO_RW_SYNC;
18704 rm -Rf build && mkdir -p build
18705 echo "obj-m := conftest.o" >build/Makefile
18706 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18718 { $as_echo "$as_me:$LINENO: result: yes" >&5
18719 $as_echo "yes" >&6; }
18721 cat >>confdefs.h <<\_ACEOF
18722 #define HAVE_BIO_RW_SYNC 1
18727 $as_echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 { $as_echo "$as_me:$LINENO: result: no" >&5
18731 $as_echo "no" >&6; }
18742 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
18743 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
18746 cat confdefs.h - <<_ACEOF >conftest.c
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18754 #include <linux/bio.h>
18760 int flags __attribute__ ((unused));
18761 flags = BIO_RW_SYNCIO;
18770 rm -Rf build && mkdir -p build
18771 echo "obj-m := conftest.o" >build/Makefile
18772 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18784 { $as_echo "$as_me:$LINENO: result: yes" >&5
18785 $as_echo "yes" >&6; }
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_BIO_RW_SYNCIO 1
18793 $as_echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18796 { $as_echo "$as_me:$LINENO: result: no" >&5
18797 $as_echo "no" >&6; }
18808 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
18809 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
18812 cat confdefs.h - <<_ACEOF >conftest.c
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18820 #include <linux/bio.h>
18826 int flags __attribute__ ((unused));
18836 rm -Rf build && mkdir -p build
18837 echo "obj-m := conftest.o" >build/Makefile
18838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845 (eval $ac_try) 2>&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); }; }; then
18850 { $as_echo "$as_me:$LINENO: result: yes" >&5
18851 $as_echo "yes" >&6; }
18853 cat >>confdefs.h <<\_ACEOF
18854 #define HAVE_REQ_SYNC 1
18859 $as_echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 { $as_echo "$as_me:$LINENO: result: no" >&5
18863 $as_echo "no" >&6; }
18874 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
18875 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
18876 tmp_flags="$EXTRA_KCFLAGS"
18877 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18880 cat confdefs.h - <<_ACEOF >conftest.c
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18888 #include <linux/blkdev.h>
18894 struct request *req = NULL;
18895 (void) blk_end_request(req, 0, 0);
18904 rm -Rf build && mkdir -p build
18905 echo "obj-m := conftest.o" >build/Makefile
18906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913 (eval $ac_try) 2>&5
18915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); }; }; then
18918 { $as_echo "$as_me:$LINENO: result: yes" >&5
18919 $as_echo "yes" >&6; }
18921 cat >>confdefs.h <<\_ACEOF
18922 #define HAVE_BLK_END_REQUEST 1
18927 $as_echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 { $as_echo "$as_me:$LINENO: result: no" >&5
18931 $as_echo "no" >&6; }
18941 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
18942 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
18945 cat confdefs.h - <<_ACEOF >conftest.c
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18953 #include <linux/module.h>
18954 #include <linux/blkdev.h>
18956 MODULE_LICENSE("CDDL");
18962 struct request *req = NULL;
18963 (void) blk_end_request(req, 0, 0);
18972 rm -Rf build && mkdir -p build
18973 echo "obj-m := conftest.o" >build/Makefile
18974 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18986 { $as_echo "$as_me:$LINENO: result: no" >&5
18987 $as_echo "no" >&6; }
18990 $as_echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 { $as_echo "$as_me:$LINENO: result: yes" >&5
18994 $as_echo "yes" >&6; }
18996 cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
19008 EXTRA_KCFLAGS="$tmp_flags"
19011 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19012 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19013 tmp_flags="$EXTRA_KCFLAGS"
19014 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19017 cat confdefs.h - <<_ACEOF >conftest.c
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19025 #include <linux/blkdev.h>
19031 struct request_queue *q = NULL;
19032 (void) blk_queue_flush(q, REQ_FLUSH);
19041 rm -Rf build && mkdir -p build
19042 echo "obj-m := conftest.o" >build/Makefile
19043 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19055 { $as_echo "$as_me:$LINENO: result: yes" >&5
19056 $as_echo "yes" >&6; }
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_BLK_QUEUE_FLUSH 1
19064 $as_echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 { $as_echo "$as_me:$LINENO: result: no" >&5
19068 $as_echo "no" >&6; }
19078 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19079 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19082 cat confdefs.h - <<_ACEOF >conftest.c
19085 cat confdefs.h >>conftest.$ac_ext
19086 cat >>conftest.$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19090 #include <linux/module.h>
19091 #include <linux/blkdev.h>
19093 MODULE_LICENSE("CDDL");
19099 struct request_queue *q = NULL;
19100 (void) blk_queue_flush(q, REQ_FLUSH);
19109 rm -Rf build && mkdir -p build
19110 echo "obj-m := conftest.o" >build/Makefile
19111 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118 (eval $ac_try) 2>&5
19120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); }; }; then
19123 { $as_echo "$as_me:$LINENO: result: no" >&5
19124 $as_echo "no" >&6; }
19127 $as_echo "$as_me: failed program was:" >&5
19128 sed 's/^/| /' conftest.$ac_ext >&5
19130 { $as_echo "$as_me:$LINENO: result: yes" >&5
19131 $as_echo "yes" >&6; }
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
19145 EXTRA_KCFLAGS="$tmp_flags"
19148 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
19149 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
19150 tmp_flags="$EXTRA_KCFLAGS"
19151 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19154 cat confdefs.h - <<_ACEOF >conftest.c
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19162 #include <linux/blkdev.h>
19168 struct request_queue *q = NULL;
19169 (void) blk_fetch_request(q);
19178 rm -Rf build && mkdir -p build
19179 echo "obj-m := conftest.o" >build/Makefile
19180 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19192 { $as_echo "$as_me:$LINENO: result: yes" >&5
19193 $as_echo "yes" >&6; }
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_BLK_FETCH_REQUEST 1
19201 $as_echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 { $as_echo "$as_me:$LINENO: result: no" >&5
19205 $as_echo "no" >&6; }
19214 EXTRA_KCFLAGS="$tmp_flags"
19217 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
19218 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
19219 tmp_flags="$EXTRA_KCFLAGS"
19220 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19223 cat confdefs.h - <<_ACEOF >conftest.c
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19231 #include <linux/blkdev.h>
19237 struct request_queue *q = NULL;
19238 struct request *req = NULL;
19239 blk_requeue_request(q, req);
19248 rm -Rf build && mkdir -p build
19249 echo "obj-m := conftest.o" >build/Makefile
19250 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19257 (eval $ac_try) 2>&5
19259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19262 { $as_echo "$as_me:$LINENO: result: yes" >&5
19263 $as_echo "yes" >&6; }
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_BLK_REQUEUE_REQUEST 1
19271 $as_echo "$as_me: failed program was:" >&5
19272 sed 's/^/| /' conftest.$ac_ext >&5
19274 { $as_echo "$as_me:$LINENO: result: no" >&5
19275 $as_echo "no" >&6; }
19284 EXTRA_KCFLAGS="$tmp_flags"
19287 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
19288 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
19289 tmp_flags="$EXTRA_KCFLAGS"
19290 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19293 cat confdefs.h - <<_ACEOF >conftest.c
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19301 #include <linux/blkdev.h>
19307 struct request *req = NULL;
19308 (void) blk_rq_bytes(req);
19317 rm -Rf build && mkdir -p build
19318 echo "obj-m := conftest.o" >build/Makefile
19319 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
19331 { $as_echo "$as_me:$LINENO: result: yes" >&5
19332 $as_echo "yes" >&6; }
19334 cat >>confdefs.h <<\_ACEOF
19335 #define HAVE_BLK_RQ_BYTES 1
19340 $as_echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19343 { $as_echo "$as_me:$LINENO: result: no" >&5
19344 $as_echo "no" >&6; }
19354 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
19355 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
19358 cat confdefs.h - <<_ACEOF >conftest.c
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19366 #include <linux/module.h>
19367 #include <linux/blkdev.h>
19369 MODULE_LICENSE("CDDL");
19375 struct request *req = NULL;
19376 (void) blk_rq_bytes(req);
19385 rm -Rf build && mkdir -p build
19386 echo "obj-m := conftest.o" >build/Makefile
19387 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19399 { $as_echo "$as_me:$LINENO: result: no" >&5
19400 $as_echo "no" >&6; }
19403 $as_echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 { $as_echo "$as_me:$LINENO: result: yes" >&5
19407 $as_echo "yes" >&6; }
19409 cat >>confdefs.h <<\_ACEOF
19410 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
19421 EXTRA_KCFLAGS="$tmp_flags"
19424 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
19425 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
19426 tmp_flags="$EXTRA_KCFLAGS"
19427 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19430 cat confdefs.h - <<_ACEOF >conftest.c
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h. */
19438 #include <linux/blkdev.h>
19444 struct request *req = NULL;
19445 (void) blk_rq_pos(req);
19454 rm -Rf build && mkdir -p build
19455 echo "obj-m := conftest.o" >build/Makefile
19456 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19468 { $as_echo "$as_me:$LINENO: result: yes" >&5
19469 $as_echo "yes" >&6; }
19471 cat >>confdefs.h <<\_ACEOF
19472 #define HAVE_BLK_RQ_POS 1
19477 $as_echo "$as_me: failed program was:" >&5
19478 sed 's/^/| /' conftest.$ac_ext >&5
19480 { $as_echo "$as_me:$LINENO: result: no" >&5
19481 $as_echo "no" >&6; }
19490 EXTRA_KCFLAGS="$tmp_flags"
19493 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
19494 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
19495 tmp_flags="$EXTRA_KCFLAGS"
19496 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19499 cat confdefs.h - <<_ACEOF >conftest.c
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19507 #include <linux/blkdev.h>
19513 struct request *req = NULL;
19514 (void) blk_rq_sectors(req);
19523 rm -Rf build && mkdir -p build
19524 echo "obj-m := conftest.o" >build/Makefile
19525 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19537 { $as_echo "$as_me:$LINENO: result: yes" >&5
19538 $as_echo "yes" >&6; }
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_BLK_RQ_SECTORS 1
19546 $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 { $as_echo "$as_me:$LINENO: result: no" >&5
19550 $as_echo "no" >&6; }
19559 EXTRA_KCFLAGS="$tmp_flags"
19562 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
19563 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
19564 tmp_flags="$EXTRA_KCFLAGS"
19565 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19568 cat confdefs.h - <<_ACEOF >conftest.c
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19576 #include <linux/blkdev.h>
19582 struct gendisk *disk = NULL;
19583 (void) get_disk_ro(disk);
19592 rm -Rf build && mkdir -p build
19593 echo "obj-m := conftest.o" >build/Makefile
19594 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601 (eval $ac_try) 2>&5
19603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); }; }; then
19606 { $as_echo "$as_me:$LINENO: result: yes" >&5
19607 $as_echo "yes" >&6; }
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_GET_DISK_RO 1
19615 $as_echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 { $as_echo "$as_me:$LINENO: result: no" >&5
19619 $as_echo "no" >&6; }
19628 EXTRA_KCFLAGS="$tmp_flags"
19631 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
19632 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
19633 tmp_flags="$EXTRA_KCFLAGS"
19634 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19637 cat confdefs.h - <<_ACEOF >conftest.c
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h. */
19645 #include <linux/blkdev.h>
19651 struct request *req = NULL;
19652 (void) rq_is_sync(req);
19661 rm -Rf build && mkdir -p build
19662 echo "obj-m := conftest.o" >build/Makefile
19663 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19675 { $as_echo "$as_me:$LINENO: result: yes" >&5
19676 $as_echo "yes" >&6; }
19678 cat >>confdefs.h <<\_ACEOF
19679 #define HAVE_RQ_IS_SYNC 1
19684 $as_echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19687 { $as_echo "$as_me:$LINENO: result: no" >&5
19688 $as_echo "no" >&6; }
19697 EXTRA_KCFLAGS="$tmp_flags"
19700 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
19701 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
19702 tmp_flags="$EXTRA_KCFLAGS"
19703 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19706 cat confdefs.h - <<_ACEOF >conftest.c
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19714 #include <linux/blkdev.h>
19720 struct bio_vec *bv;
19721 struct req_iterator iter;
19722 struct request *req = NULL;
19723 rq_for_each_segment(bv, req, iter) { }
19732 rm -Rf build && mkdir -p build
19733 echo "obj-m := conftest.o" >build/Makefile
19734 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19746 { $as_echo "$as_me:$LINENO: result: yes" >&5
19747 $as_echo "yes" >&6; }
19749 cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_RQ_FOR_EACH_SEGMENT 1
19755 $as_echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 { $as_echo "$as_me:$LINENO: result: no" >&5
19759 $as_echo "no" >&6; }
19768 EXTRA_KCFLAGS="$tmp_flags"
19770 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
19771 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
19774 cat confdefs.h - <<_ACEOF >conftest.c
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19782 #include <linux/fs.h>
19783 #include <linux/xattr.h>
19785 const struct xattr_handler xattr_test_handler = {
19791 const struct xattr_handler *xattr_handlers[] = {
19792 &xattr_test_handler,
19799 struct super_block sb __attribute__ ((unused));
19801 sb.s_xattr = xattr_handlers;
19810 rm -Rf build && mkdir -p build
19811 echo "obj-m := conftest.o" >build/Makefile
19812 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
19824 { $as_echo "$as_me:$LINENO: result: yes" >&5
19825 $as_echo "yes" >&6; }
19827 cat >>confdefs.h <<\_ACEOF
19828 #define HAVE_CONST_XATTR_HANDLER 1
19833 $as_echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19836 { $as_echo "$as_me:$LINENO: result: no" >&5
19837 $as_echo "no" >&6; }
19848 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
19849 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
19852 cat confdefs.h - <<_ACEOF >conftest.c
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19860 #include <linux/xattr.h>
19866 int (*get)(struct dentry *dentry, const char *name,
19867 void *buffer, size_t size, int handler_flags) = NULL;
19868 struct xattr_handler xops __attribute__ ((unused));
19879 rm -Rf build && mkdir -p build
19880 echo "obj-m := conftest.o" >build/Makefile
19881 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888 (eval $ac_try) 2>&5
19890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; }; then
19893 { $as_echo "$as_me:$LINENO: result: yes" >&5
19894 $as_echo "yes" >&6; }
19896 cat >>confdefs.h <<\_ACEOF
19897 #define HAVE_DENTRY_XATTR_GET 1
19902 $as_echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 { $as_echo "$as_me:$LINENO: result: no" >&5
19906 $as_echo "no" >&6; }
19917 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19918 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19921 cat confdefs.h - <<_ACEOF >conftest.c
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19929 #include <linux/xattr.h>
19935 int (*set)(struct dentry *dentry, const char *name,
19936 const void *buffer, size_t size, int flags,
19937 int handler_flags) = NULL;
19938 struct xattr_handler xops __attribute__ ((unused));
19949 rm -Rf build && mkdir -p build
19950 echo "obj-m := conftest.o" >build/Makefile
19951 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; }; then
19963 { $as_echo "$as_me:$LINENO: result: yes" >&5
19964 $as_echo "yes" >&6; }
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_DENTRY_XATTR_SET 1
19972 $as_echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 { $as_echo "$as_me:$LINENO: result: no" >&5
19976 $as_echo "no" >&6; }
19987 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
19988 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19992 cat confdefs.h - <<_ACEOF >conftest.c
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
20000 #include <linux/fs.h>
20006 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
20007 struct super_operations sops __attribute__ ((unused));
20009 sops.show_options = show_options;
20018 rm -Rf build && mkdir -p build
20019 echo "obj-m := conftest.o" >build/Makefile
20020 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20032 { $as_echo "$as_me:$LINENO: result: yes" >&5
20033 $as_echo "yes" >&6; }
20035 cat >>confdefs.h <<\_ACEOF
20036 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
20041 $as_echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 { $as_echo "$as_me:$LINENO: result: no" >&5
20045 $as_echo "no" >&6; }
20056 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
20057 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20061 cat confdefs.h - <<_ACEOF >conftest.c
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20069 #include <linux/fs.h>
20075 int (*fsync) (struct file *, struct dentry *, int) = NULL;
20076 struct file_operations fops __attribute__ ((unused));
20078 fops.fsync = fsync;
20087 rm -Rf build && mkdir -p build
20088 echo "obj-m := conftest.o" >build/Makefile
20089 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20101 { $as_echo "$as_me:$LINENO: result: dentry" >&5
20102 $as_echo "dentry" >&6; }
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_FSYNC_WITH_DENTRY 1
20110 $as_echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20125 cat confdefs.h - <<_ACEOF >conftest.c
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20133 #include <linux/fs.h>
20139 int (*fsync) (struct file *, int) = NULL;
20140 struct file_operations fops __attribute__ ((unused));
20142 fops.fsync = fsync;
20151 rm -Rf build && mkdir -p build
20152 echo "obj-m := conftest.o" >build/Makefile
20153 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20165 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
20166 $as_echo "no dentry" >&6; }
20168 cat >>confdefs.h <<\_ACEOF
20169 #define HAVE_FSYNC_WITHOUT_DENTRY 1
20174 $as_echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20189 cat confdefs.h - <<_ACEOF >conftest.c
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20197 #include <linux/fs.h>
20203 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
20204 struct file_operations fops __attribute__ ((unused));
20206 fops.fsync = fsync;
20215 rm -Rf build && mkdir -p build
20216 echo "obj-m := conftest.o" >build/Makefile
20217 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20229 { $as_echo "$as_me:$LINENO: result: range" >&5
20230 $as_echo "range" >&6; }
20232 cat >>confdefs.h <<\_ACEOF
20233 #define HAVE_FSYNC_RANGE 1
20238 $as_echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20252 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
20253 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20256 cat confdefs.h - <<_ACEOF >conftest.c
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20264 #include <linux/fs.h>
20270 void (*evict_inode) (struct inode *) = NULL;
20271 struct super_operations sops __attribute__ ((unused)) = {
20272 .evict_inode = evict_inode,
20282 rm -Rf build && mkdir -p build
20283 echo "obj-m := conftest.o" >build/Makefile
20284 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20286 (eval $ac_try) 2>&5
20288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20296 { $as_echo "$as_me:$LINENO: result: yes" >&5
20297 $as_echo "yes" >&6; }
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_EVICT_INODE 1
20305 $as_echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20308 { $as_echo "$as_me:$LINENO: result: no" >&5
20309 $as_echo "no" >&6; }
20320 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
20321 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20324 cat confdefs.h - <<_ACEOF >conftest.c
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20332 #include <linux/fs.h>
20338 int (*nr_cached_objects)(struct super_block *)
20339 __attribute__ ((unused)) = NULL;
20340 struct super_operations sops __attribute__ ((unused)) = {
20341 .nr_cached_objects = nr_cached_objects,
20351 rm -Rf build && mkdir -p build
20352 echo "obj-m := conftest.o" >build/Makefile
20353 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; }; then
20365 { $as_echo "$as_me:$LINENO: result: yes" >&5
20366 $as_echo "yes" >&6; }
20368 cat >>confdefs.h <<\_ACEOF
20369 #define HAVE_NR_CACHED_OBJECTS 1
20374 $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20377 { $as_echo "$as_me:$LINENO: result: no" >&5
20378 $as_echo "no" >&6; }
20389 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
20390 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20393 cat confdefs.h - <<_ACEOF >conftest.c
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h. */
20401 #include <linux/fs.h>
20407 void (*free_cached_objects)(struct super_block *, int)
20408 __attribute__ ((unused)) = NULL;
20409 struct super_operations sops __attribute__ ((unused)) = {
20410 .free_cached_objects = free_cached_objects,
20420 rm -Rf build && mkdir -p build
20421 echo "obj-m := conftest.o" >build/Makefile
20422 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20434 { $as_echo "$as_me:$LINENO: result: yes" >&5
20435 $as_echo "yes" >&6; }
20437 cat >>confdefs.h <<\_ACEOF
20438 #define HAVE_FREE_CACHED_OBJECTS 1
20443 $as_echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 { $as_echo "$as_me:$LINENO: result: no" >&5
20447 $as_echo "no" >&6; }
20458 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
20459 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
20460 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20461 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20463 if test $rc -ne 0; then
20466 for file in fs/inode.c; do
20467 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
20469 if test $rc -eq 0; then
20477 if test $export -eq 0; then
20479 { $as_echo "$as_me:$LINENO: result: no" >&5
20480 $as_echo "no" >&6; }
20485 { $as_echo "$as_me:$LINENO: result: yes" >&5
20486 $as_echo "yes" >&6; }
20488 cat >>confdefs.h <<\_ACEOF
20489 #define HAVE_INSERT_INODE_LOCKED 1
20498 { $as_echo "$as_me:$LINENO: result: yes" >&5
20499 $as_echo "yes" >&6; }
20501 cat >>confdefs.h <<\_ACEOF
20502 #define HAVE_INSERT_INODE_LOCKED 1
20511 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
20512 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
20513 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20516 if test $rc -ne 0; then
20519 for file in fs/dcache.c; do
20520 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
20522 if test $rc -eq 0; then
20530 if test $export -eq 0; then
20532 { $as_echo "$as_me:$LINENO: result: no" >&5
20533 $as_echo "no" >&6; }
20538 { $as_echo "$as_me:$LINENO: result: yes" >&5
20539 $as_echo "yes" >&6; }
20541 cat >>confdefs.h <<\_ACEOF
20542 #define HAVE_D_OBTAIN_ALIAS 1
20551 { $as_echo "$as_me:$LINENO: result: yes" >&5
20552 $as_echo "yes" >&6; }
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_D_OBTAIN_ALIAS 1
20564 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
20565 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
20566 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
20567 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20569 if test $rc -ne 0; then
20572 for file in fs/block_dev.c; do
20573 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
20575 if test $rc -eq 0; then
20583 if test $export -eq 0; then
20585 { $as_echo "$as_me:$LINENO: result: no" >&5
20586 $as_echo "no" >&6; }
20591 { $as_echo "$as_me:$LINENO: result: yes" >&5
20592 $as_echo "yes" >&6; }
20594 cat >>confdefs.h <<\_ACEOF
20595 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
20604 { $as_echo "$as_me:$LINENO: result: yes" >&5
20605 $as_echo "yes" >&6; }
20607 cat >>confdefs.h <<\_ACEOF
20608 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
20617 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
20618 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
20619 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
20620 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20622 if test $rc -ne 0; then
20625 for file in mm/truncate.c; do
20626 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
20628 if test $rc -eq 0; then
20636 if test $export -eq 0; then
20638 { $as_echo "$as_me:$LINENO: result: no" >&5
20639 $as_echo "no" >&6; }
20644 { $as_echo "$as_me:$LINENO: result: yes" >&5
20645 $as_echo "yes" >&6; }
20647 cat >>confdefs.h <<\_ACEOF
20648 #define HAVE_TRUNCATE_SETSIZE 1
20657 { $as_echo "$as_me:$LINENO: result: yes" >&5
20658 $as_echo "yes" >&6; }
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_TRUNCATE_SETSIZE 1
20670 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
20671 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
20672 tmp_flags="$EXTRA_KCFLAGS"
20673 EXTRA_KCFLAGS="-Werror"
20676 cat confdefs.h - <<_ACEOF >conftest.c
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20684 #include <linux/security.h>
20690 struct inode *ip __attribute__ ((unused)) = NULL;
20691 struct inode *dip __attribute__ ((unused)) = NULL;
20692 const struct qstr *str __attribute__ ((unused)) = NULL;
20693 char *name __attribute__ ((unused)) = NULL;
20694 void *value __attribute__ ((unused)) = NULL;
20695 size_t len __attribute__ ((unused)) = 0;
20697 security_inode_init_security(ip, dip, str, &name, &value, &len);
20706 rm -Rf build && mkdir -p build
20707 echo "obj-m := conftest.o" >build/Makefile
20708 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20720 { $as_echo "$as_me:$LINENO: result: yes" >&5
20721 $as_echo "yes" >&6; }
20723 cat >>confdefs.h <<\_ACEOF
20724 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
20729 $as_echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20732 { $as_echo "$as_me:$LINENO: result: no" >&5
20733 $as_echo "no" >&6; }
20742 EXTRA_KCFLAGS="$tmp_flags"
20745 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
20746 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
20747 tmp_flags="$EXTRA_KCFLAGS"
20748 EXTRA_KCFLAGS="-Werror"
20751 cat confdefs.h - <<_ACEOF >conftest.c
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20759 #include <linux/security.h>
20765 struct inode *ip __attribute__ ((unused)) = NULL;
20766 struct inode *dip __attribute__ ((unused)) = NULL;
20767 const struct qstr *str __attribute__ ((unused)) = NULL;
20768 initxattrs func __attribute__ ((unused)) = NULL;
20770 security_inode_init_security(ip, dip, str, func, NULL);
20779 rm -Rf build && mkdir -p build
20780 echo "obj-m := conftest.o" >build/Makefile
20781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20783 (eval $ac_try) 2>&5
20785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20793 { $as_echo "$as_me:$LINENO: result: yes" >&5
20794 $as_echo "yes" >&6; }
20796 cat >>confdefs.h <<\_ACEOF
20797 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
20802 $as_echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 { $as_echo "$as_me:$LINENO: result: no" >&5
20806 $as_echo "no" >&6; }
20815 EXTRA_KCFLAGS="$tmp_flags"
20818 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
20819 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
20820 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
20821 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20823 if test $rc -ne 0; then
20826 for file in fs/super.c; do
20827 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
20829 if test $rc -eq 0; then
20837 if test $export -eq 0; then
20839 { $as_echo "$as_me:$LINENO: result: no" >&5
20840 $as_echo "no" >&6; }
20845 { $as_echo "$as_me:$LINENO: result: yes" >&5
20846 $as_echo "yes" >&6; }
20848 cat >>confdefs.h <<\_ACEOF
20849 #define HAVE_MOUNT_NODEV 1
20858 { $as_echo "$as_me:$LINENO: result: yes" >&5
20859 $as_echo "yes" >&6; }
20861 cat >>confdefs.h <<\_ACEOF
20862 #define HAVE_MOUNT_NODEV 1
20871 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
20872 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
20875 cat confdefs.h - <<_ACEOF >conftest.c
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20883 #include <linux/fs.h>
20889 int (*shrink)(struct shrinker *, struct shrink_control *sc)
20890 __attribute__ ((unused)) = NULL;
20891 struct super_block sb __attribute__ ((unused)) = {
20892 .s_shrink.shrink = shrink,
20893 .s_shrink.seeks = DEFAULT_SEEKS,
20894 .s_shrink.batch = 0,
20904 rm -Rf build && mkdir -p build
20905 echo "obj-m := conftest.o" >build/Makefile
20906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; }; then
20918 { $as_echo "$as_me:$LINENO: result: yes" >&5
20919 $as_echo "yes" >&6; }
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_SHRINK 1
20928 $as_echo "$as_me: failed program was:" >&5
20929 sed 's/^/| /' conftest.$ac_ext >&5
20931 { $as_echo "$as_me:$LINENO: result: no" >&5
20932 $as_echo "no" >&6; }
20943 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
20944 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
20947 cat confdefs.h - <<_ACEOF >conftest.c
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h. */
20955 #include <linux/fs.h>
20961 struct super_block sb __attribute__ ((unused));
20971 rm -Rf build && mkdir -p build
20972 echo "obj-m := conftest.o" >build/Makefile
20973 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20975 (eval $ac_try) 2>&5
20977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980 (eval $ac_try) 2>&5
20982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; }; then
20985 { $as_echo "$as_me:$LINENO: result: yes" >&5
20986 $as_echo "yes" >&6; }
20988 cat >>confdefs.h <<\_ACEOF
20994 $as_echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 { $as_echo "$as_me:$LINENO: result: no" >&5
20998 $as_echo "no" >&6; }
21009 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
21010 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
21011 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21014 if test $rc -ne 0; then
21017 for file in mm/backing-dev.c; do
21018 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
21020 if test $rc -eq 0; then
21028 if test $export -eq 0; then
21030 { $as_echo "$as_me:$LINENO: result: no" >&5
21031 $as_echo "no" >&6; }
21036 { $as_echo "$as_me:$LINENO: result: yes" >&5
21037 $as_echo "yes" >&6; }
21039 cat >>confdefs.h <<\_ACEOF
21040 #define HAVE_BDI_SETUP_AND_REGISTER 1
21049 { $as_echo "$as_me:$LINENO: result: yes" >&5
21050 $as_echo "yes" >&6; }
21052 cat >>confdefs.h <<\_ACEOF
21053 #define HAVE_BDI_SETUP_AND_REGISTER 1
21062 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
21063 $as_echo_n "checking whether set_nlink() is available... " >&6; }
21066 cat confdefs.h - <<_ACEOF >conftest.c
21069 cat confdefs.h >>conftest.$ac_ext
21070 cat >>conftest.$ac_ext <<_ACEOF
21071 /* end confdefs.h. */
21074 #include <linux/fs.h>
21081 unsigned int link = 0;
21082 (void) set_nlink(&node, link);
21091 rm -Rf build && mkdir -p build
21092 echo "obj-m := conftest.o" >build/Makefile
21093 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100 (eval $ac_try) 2>&5
21102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); }; }; then
21105 { $as_echo "$as_me:$LINENO: result: yes" >&5
21106 $as_echo "yes" >&6; }
21108 cat >>confdefs.h <<\_ACEOF
21109 #define HAVE_SET_NLINK 1
21114 $as_echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 { $as_echo "$as_me:$LINENO: result: no" >&5
21118 $as_echo "no" >&6; }
21129 if test "$LINUX_OBJ" != "$LINUX"; then
21131 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
21138 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
21139 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
21140 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
21147 # Check whether --with-udevdir was given.
21148 if test "${with_udevdir+set}" = set; then
21149 withval=$with_udevdir; udevdir=$withval
21151 udevdir='${exec_prefix}/lib/udev'
21156 # Check whether --with-udevruledir was given.
21157 if test "${with_udevruledir+set}" = set; then
21158 withval=$with_udevruledir; udevruledir=$withval
21160 udevruledir='${udevdir}/rules.d'
21168 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
21169 $as_echo_n "checking for target asm dir... " >&6; }
21170 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
21172 case $TARGET_ARCH in
21174 TARGET_ASM_DIR=asm-${TARGET_ARCH}
21177 TARGET_ASM_DIR=asm-generic
21182 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
21183 $as_echo "$TARGET_ASM_DIR" >&6; }
21186 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
21187 $as_echo_n "checking for ioctl()... " >&6; }
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 #include <unistd.h>
21197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21198 $EGREP "ioctl" >/dev/null 2>&1; then
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 #include <sys/ioctl.h>
21214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21215 $EGREP "ioctl" >/dev/null 2>&1; then
21222 cat >conftest.$ac_ext <<_ACEOF
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21228 #include <stropts.h>
21231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21232 $EGREP "ioctl" >/dev/null 2>&1; then
21240 if test $is_unistd = yes; then
21243 cat >>confdefs.h <<\_ACEOF
21244 #define HAVE_IOCTL_IN_UNISTD_H 1
21249 if test $is_sys_ioctl = yes; then
21252 cat >>confdefs.h <<\_ACEOF
21253 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
21256 elif test $is_stropts = yes; then
21258 cat >>confdefs.h <<\_ACEOF
21259 #define HAVE_IOCTL_IN_STROPTS_H 1
21267 if test $result = no; then
21268 { $as_echo "$as_me:$LINENO: result: no" >&5
21269 $as_echo "no" >&6; }
21270 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
21271 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
21272 { (exit 1); exit 1; }; }
21274 { $as_echo "$as_me:$LINENO: result: yes" >&5
21275 $as_echo "yes" >&6; }
21281 if test "${ac_cv_header_zlib_h+set}" = set; then
21282 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
21283 $as_echo_n "checking for zlib.h... " >&6; }
21284 if test "${ac_cv_header_zlib_h+set}" = set; then
21285 $as_echo_n "(cached) " >&6
21287 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21288 $as_echo "$ac_cv_header_zlib_h" >&6; }
21290 # Is the header compilable?
21291 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
21292 $as_echo_n "checking zlib.h usability... " >&6; }
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 $ac_includes_default
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21309 $as_echo "$ac_try_echo") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21312 grep -v '^ *+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 ac_header_compiler=yes
21322 $as_echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_header_compiler=no
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21330 $as_echo "$ac_header_compiler" >&6; }
21332 # Is the header present?
21333 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
21334 $as_echo_n "checking zlib.h presence... " >&6; }
21335 cat >conftest.$ac_ext <<_ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h. */
21343 if { (ac_try="$ac_cpp conftest.$ac_ext"
21344 case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21349 $as_echo "$ac_try_echo") >&5
21350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21352 grep -v '^ *+' conftest.er1 >conftest.err
21354 cat conftest.err >&5
21355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356 (exit $ac_status); } >/dev/null && {
21357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21358 test ! -s conftest.err
21360 ac_header_preproc=yes
21362 $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 ac_header_preproc=no
21368 rm -f conftest.err conftest.$ac_ext
21369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21370 $as_echo "$ac_header_preproc" >&6; }
21372 # So? What about this header?
21373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21375 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21376 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21377 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21378 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21379 ac_header_preproc=yes
21382 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21383 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
21384 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21385 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21386 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21387 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21388 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21389 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
21390 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21391 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
21392 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21393 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
21397 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
21398 $as_echo_n "checking for zlib.h... " >&6; }
21399 if test "${ac_cv_header_zlib_h+set}" = set; then
21400 $as_echo_n "(cached) " >&6
21402 ac_cv_header_zlib_h=$ac_header_preproc
21404 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21405 $as_echo "$ac_cv_header_zlib_h" >&6; }
21408 if test "x$ac_cv_header_zlib_h" = x""yes; then
21411 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21413 { { $as_echo "$as_me:$LINENO: error:
21414 *** zlib.h missing, zlib-devel package required
21415 See \`config.log' for more details." >&5
21416 $as_echo "$as_me: error:
21417 *** zlib.h missing, zlib-devel package required
21418 See \`config.log' for more details." >&2;}
21419 { (exit 1); exit 1; }; }; }
21425 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
21426 $as_echo_n "checking for compress2 in -lz... " >&6; }
21427 if test "${ac_cv_lib_z_compress2+set}" = set; then
21428 $as_echo_n "(cached) " >&6
21430 ac_check_lib_save_LIBS=$LIBS
21432 cat >conftest.$ac_ext <<_ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21439 /* Override any GCC internal prototype to avoid an error.
21440 Use char because int might match the return type of a GCC
21441 builtin and then its argument prototype would still apply. */
21449 return compress2 ();
21454 rm -f conftest.$ac_objext conftest$ac_exeext
21455 if { (ac_try="$ac_link"
21456 case "(($ac_try" in
21457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458 *) ac_try_echo=$ac_try;;
21460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21461 $as_echo "$ac_try_echo") >&5
21462 (eval "$ac_link") 2>conftest.er1
21464 grep -v '^ *+' conftest.er1 >conftest.err
21466 cat conftest.err >&5
21467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); } && {
21469 test -z "$ac_c_werror_flag" ||
21470 test ! -s conftest.err
21471 } && test -s conftest$ac_exeext && {
21472 test "$cross_compiling" = yes ||
21473 $as_test_x conftest$ac_exeext
21475 ac_cv_lib_z_compress2=yes
21477 $as_echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_cv_lib_z_compress2=no
21483 rm -rf conftest.dSYM
21484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21485 conftest$ac_exeext conftest.$ac_ext
21486 LIBS=$ac_check_lib_save_LIBS
21488 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
21489 $as_echo "$ac_cv_lib_z_compress2" >&6; }
21490 if test "x$ac_cv_lib_z_compress2" = x""yes; then
21491 cat >>confdefs.h <<_ACEOF
21492 #define HAVE_LIBZ 1
21498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21500 { { $as_echo "$as_me:$LINENO: error:
21501 *** compress2() missing, zlib-devel package required
21502 See \`config.log' for more details." >&5
21503 $as_echo "$as_me: error:
21504 *** compress2() missing, zlib-devel package required
21505 See \`config.log' for more details." >&2;}
21506 { (exit 1); exit 1; }; }; }
21511 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
21512 $as_echo_n "checking for uncompress in -lz... " >&6; }
21513 if test "${ac_cv_lib_z_uncompress+set}" = set; then
21514 $as_echo_n "(cached) " >&6
21516 ac_check_lib_save_LIBS=$LIBS
21518 cat >conftest.$ac_ext <<_ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21525 /* Override any GCC internal prototype to avoid an error.
21526 Use char because int might match the return type of a GCC
21527 builtin and then its argument prototype would still apply. */
21531 char uncompress ();
21535 return uncompress ();
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21547 $as_echo "$ac_try_echo") >&5
21548 (eval "$ac_link") 2>conftest.er1
21550 grep -v '^ *+' conftest.er1 >conftest.err
21552 cat conftest.err >&5
21553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } && {
21555 test -z "$ac_c_werror_flag" ||
21556 test ! -s conftest.err
21557 } && test -s conftest$ac_exeext && {
21558 test "$cross_compiling" = yes ||
21559 $as_test_x conftest$ac_exeext
21561 ac_cv_lib_z_uncompress=yes
21563 $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_cv_lib_z_uncompress=no
21569 rm -rf conftest.dSYM
21570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571 conftest$ac_exeext conftest.$ac_ext
21572 LIBS=$ac_check_lib_save_LIBS
21574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
21575 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21576 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
21577 cat >>confdefs.h <<_ACEOF
21578 #define HAVE_LIBZ 1
21584 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21586 { { $as_echo "$as_me:$LINENO: error:
21587 *** uncompress() missing, zlib-devel package required
21588 See \`config.log' for more details." >&5
21589 $as_echo "$as_me: error:
21590 *** uncompress() missing, zlib-devel package required
21591 See \`config.log' for more details." >&2;}
21592 { (exit 1); exit 1; }; }; }
21597 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
21598 $as_echo_n "checking for crc32 in -lz... " >&6; }
21599 if test "${ac_cv_lib_z_crc32+set}" = set; then
21600 $as_echo_n "(cached) " >&6
21602 ac_check_lib_save_LIBS=$LIBS
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21611 /* Override any GCC internal prototype to avoid an error.
21612 Use char because int might match the return type of a GCC
21613 builtin and then its argument prototype would still apply. */
21626 rm -f conftest.$ac_objext conftest$ac_exeext
21627 if { (ac_try="$ac_link"
21628 case "(($ac_try" in
21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21630 *) ac_try_echo=$ac_try;;
21632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21633 $as_echo "$ac_try_echo") >&5
21634 (eval "$ac_link") 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest$ac_exeext && {
21644 test "$cross_compiling" = yes ||
21645 $as_test_x conftest$ac_exeext
21647 ac_cv_lib_z_crc32=yes
21649 $as_echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21652 ac_cv_lib_z_crc32=no
21655 rm -rf conftest.dSYM
21656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21657 conftest$ac_exeext conftest.$ac_ext
21658 LIBS=$ac_check_lib_save_LIBS
21660 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
21661 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21662 if test "x$ac_cv_lib_z_crc32" = x""yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define HAVE_LIBZ 1
21670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21672 { { $as_echo "$as_me:$LINENO: error:
21673 *** crc32() missing, zlib-devel package required
21674 See \`config.log' for more details." >&5
21675 $as_echo "$as_me: error:
21676 *** crc32() missing, zlib-devel package required
21677 See \`config.log' for more details." >&2;}
21678 { (exit 1); exit 1; }; }; }
21685 cat >>confdefs.h <<\_ACEOF
21686 #define HAVE_ZLIB 1
21693 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21694 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
21695 $as_echo_n "checking for uuid/uuid.h... " >&6; }
21696 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21697 $as_echo_n "(cached) " >&6
21699 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
21700 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
21702 # Is the header compilable?
21703 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
21704 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 $ac_includes_default
21712 #include <uuid/uuid.h>
21714 rm -f conftest.$ac_objext
21715 if { (ac_try="$ac_compile"
21716 case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21721 $as_echo "$ac_try_echo") >&5
21722 (eval "$ac_compile") 2>conftest.er1
21724 grep -v '^ *+' conftest.er1 >conftest.err
21726 cat conftest.err >&5
21727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && {
21729 test -z "$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 } && test -s conftest.$ac_objext; then
21732 ac_header_compiler=yes
21734 $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21737 ac_header_compiler=no
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21741 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21742 $as_echo "$ac_header_compiler" >&6; }
21744 # Is the header present?
21745 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
21746 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
21747 cat >conftest.$ac_ext <<_ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h. */
21753 #include <uuid/uuid.h>
21755 if { (ac_try="$ac_cpp conftest.$ac_ext"
21756 case "(($ac_try" in
21757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21758 *) ac_try_echo=$ac_try;;
21760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21761 $as_echo "$ac_try_echo") >&5
21762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21764 grep -v '^ *+' conftest.er1 >conftest.err
21766 cat conftest.err >&5
21767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } >/dev/null && {
21769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21770 test ! -s conftest.err
21772 ac_header_preproc=yes
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 ac_header_preproc=no
21780 rm -f conftest.err conftest.$ac_ext
21781 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21782 $as_echo "$ac_header_preproc" >&6; }
21784 # So? What about this header?
21785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21787 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21788 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21789 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
21790 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
21791 ac_header_preproc=yes
21794 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
21795 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
21796 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
21797 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
21798 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
21799 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
21800 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
21801 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
21802 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
21803 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
21804 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
21805 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
21809 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
21810 $as_echo_n "checking for uuid/uuid.h... " >&6; }
21811 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
21812 $as_echo_n "(cached) " >&6
21814 ac_cv_header_uuid_uuid_h=$ac_header_preproc
21816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
21817 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
21820 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
21823 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21825 { { $as_echo "$as_me:$LINENO: error:
21826 *** uuid/uuid.h missing, libuuid-devel package required
21827 See \`config.log' for more details." >&5
21828 $as_echo "$as_me: error:
21829 *** uuid/uuid.h missing, libuuid-devel package required
21830 See \`config.log' for more details." >&2;}
21831 { (exit 1); exit 1; }; }; }
21837 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
21838 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21839 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
21840 $as_echo_n "(cached) " >&6
21842 ac_check_lib_save_LIBS=$LIBS
21843 LIBS="-luuid $LIBS"
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21851 /* Override any GCC internal prototype to avoid an error.
21852 Use char because int might match the return type of a GCC
21853 builtin and then its argument prototype would still apply. */
21857 char uuid_generate ();
21861 return uuid_generate ();
21866 rm -f conftest.$ac_objext conftest$ac_exeext
21867 if { (ac_try="$ac_link"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21873 $as_echo "$ac_try_echo") >&5
21874 (eval "$ac_link") 2>conftest.er1
21876 grep -v '^ *+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest$ac_exeext && {
21884 test "$cross_compiling" = yes ||
21885 $as_test_x conftest$ac_exeext
21887 ac_cv_lib_uuid_uuid_generate=yes
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_cv_lib_uuid_uuid_generate=no
21895 rm -rf conftest.dSYM
21896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21897 conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
21901 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21902 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define HAVE_LIBUUID 1
21907 LIBS="-luuid $LIBS"
21910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21912 { { $as_echo "$as_me:$LINENO: error:
21913 *** uuid_generate() missing, libuuid-devel package required
21914 See \`config.log' for more details." >&5
21915 $as_echo "$as_me: error:
21916 *** uuid_generate() missing, libuuid-devel package required
21917 See \`config.log' for more details." >&2;}
21918 { (exit 1); exit 1; }; }; }
21923 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
21924 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21925 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
21926 $as_echo_n "(cached) " >&6
21928 ac_check_lib_save_LIBS=$LIBS
21929 LIBS="-luuid $LIBS"
21930 cat >conftest.$ac_ext <<_ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21937 /* Override any GCC internal prototype to avoid an error.
21938 Use char because int might match the return type of a GCC
21939 builtin and then its argument prototype would still apply. */
21943 char uuid_is_null ();
21947 return uuid_is_null ();
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (ac_try="$ac_link"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960 (eval "$ac_link") 2>conftest.er1
21962 grep -v '^ *+' conftest.er1 >conftest.err
21964 cat conftest.err >&5
21965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } && {
21967 test -z "$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21969 } && test -s conftest$ac_exeext && {
21970 test "$cross_compiling" = yes ||
21971 $as_test_x conftest$ac_exeext
21973 ac_cv_lib_uuid_uuid_is_null=yes
21975 $as_echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 ac_cv_lib_uuid_uuid_is_null=no
21981 rm -rf conftest.dSYM
21982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21983 conftest$ac_exeext conftest.$ac_ext
21984 LIBS=$ac_check_lib_save_LIBS
21986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21987 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21988 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
21989 cat >>confdefs.h <<_ACEOF
21990 #define HAVE_LIBUUID 1
21993 LIBS="-luuid $LIBS"
21996 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21998 { { $as_echo "$as_me:$LINENO: error:
21999 *** uuid_is_null() missing, libuuid-devel package required
22000 See \`config.log' for more details." >&5
22001 $as_echo "$as_me: error:
22002 *** uuid_is_null() missing, libuuid-devel package required
22003 See \`config.log' for more details." >&2;}
22004 { (exit 1); exit 1; }; }; }
22011 cat >>confdefs.h <<\_ACEOF
22012 #define HAVE_LIBUUID 1
22018 # Check whether --with-blkid was given.
22019 if test "${with_blkid+set}" = set; then
22020 withval=$with_blkid;
22027 if test "x$with_blkid" != xno; then
22029 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
22030 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
22031 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
22032 $as_echo_n "(cached) " >&6
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lblkid $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22049 char blkid_get_cache ();
22053 return blkid_get_cache ();
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22065 $as_echo "$ac_try_echo") >&5
22066 (eval "$ac_link") 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest$ac_exeext && {
22076 test "$cross_compiling" = yes ||
22077 $as_test_x conftest$ac_exeext
22079 ac_cv_lib_blkid_blkid_get_cache=yes
22081 $as_echo "$as_me: failed program was:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22084 ac_cv_lib_blkid_blkid_get_cache=no
22087 rm -rf conftest.dSYM
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
22093 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
22094 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
22096 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
22097 $as_echo_n "checking for blkid zfs support... " >&6; }
22100 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
22101 >/dev/null 2>/dev/null
22102 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
22103 dd of=$ZFS_DEV bs=1k count=8 \
22104 seek=132 conv=notrunc &>/dev/null \
22105 >/dev/null 2>/dev/null
22107 saved_LDFLAGS="$LDFLAGS"
22110 if test "$cross_compiling" = yes; then
22111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22113 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22114 See \`config.log' for more details." >&5
22115 $as_echo "$as_me: error: cannot run test program while cross compiling
22116 See \`config.log' for more details." >&2;}
22117 { (exit 1); exit 1; }; }; }
22119 cat >conftest.$ac_ext <<_ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22127 #include <blkid/blkid.h>
22136 if (blkid_get_cache(&cache, NULL) < 0)
22139 value = blkid_get_tag_value(cache, "TYPE",
22142 blkid_put_cache(cache);
22146 if (strcmp(value, "zfs")) {
22148 blkid_put_cache(cache);
22153 blkid_put_cache(cache);
22159 rm -f conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171 { (case "(($ac_try" in
22172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173 *) ac_try_echo=$ac_try;;
22175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22176 $as_echo "$ac_try_echo") >&5
22177 (eval "$ac_try") 2>&5
22179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22183 { $as_echo "$as_me:$LINENO: result: yes" >&5
22184 $as_echo "yes" >&6; }
22188 cat >>confdefs.h <<\_ACEOF
22189 #define HAVE_LIBBLKID 1
22194 $as_echo "$as_me: program exited with status $ac_status" >&5
22195 $as_echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22198 ( exit $ac_status )
22201 { $as_echo "$as_me:$LINENO: result: no" >&5
22202 $as_echo "no" >&6; }
22203 if test "x$with_blkid" != xcheck; then
22204 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22206 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
22207 See \`config.log' for more details." >&5
22208 $as_echo "$as_me: error: --with-blkid given but unavailable
22209 See \`config.log' for more details." >&2;}
22210 { (exit 1); exit 1; }; }; }
22215 rm -rf conftest.dSYM
22216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22221 LDFLAGS="$saved_LDFLAGS"
22225 if test "x$with_blkid" != xcheck; then
22226 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22228 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
22229 See \`config.log' for more details." >&5
22230 $as_echo "$as_me: error: --with-blkid given but unavailable
22231 See \`config.log' for more details." >&2;}
22232 { (exit 1); exit 1; }; }; }
22245 # Check whether --with-selinux was given.
22246 if test "${with_selinux+set}" = set; then
22247 withval=$with_selinux;
22254 if test "x$with_selinux" != xno; then
22256 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
22257 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
22258 $as_echo_n "checking for selinux/selinux.h... " >&6; }
22259 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
22260 $as_echo_n "(cached) " >&6
22262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
22263 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
22265 # Is the header compilable?
22266 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
22267 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 $ac_includes_default
22275 #include <selinux/selinux.h>
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22284 $as_echo "$ac_try_echo") >&5
22285 (eval "$ac_compile") 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
22289 cat conftest.err >&5
22290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest.$ac_objext; then
22295 ac_header_compiler=yes
22297 $as_echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22300 ac_header_compiler=no
22303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22305 $as_echo "$ac_header_compiler" >&6; }
22307 # Is the header present?
22308 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
22309 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 #include <selinux/selinux.h>
22318 if { (ac_try="$ac_cpp conftest.$ac_ext"
22319 case "(($ac_try" in
22320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22321 *) ac_try_echo=$ac_try;;
22323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22324 $as_echo "$ac_try_echo") >&5
22325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22327 grep -v '^ *+' conftest.er1 >conftest.err
22329 cat conftest.err >&5
22330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } >/dev/null && {
22332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22333 test ! -s conftest.err
22335 ac_header_preproc=yes
22337 $as_echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22340 ac_header_preproc=no
22343 rm -f conftest.err conftest.$ac_ext
22344 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22345 $as_echo "$ac_header_preproc" >&6; }
22347 # So? What about this header?
22348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22350 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
22351 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22352 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
22353 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
22354 ac_header_preproc=yes
22357 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
22358 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
22359 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
22360 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
22361 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
22362 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
22363 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
22364 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
22365 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
22366 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
22367 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
22368 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
22372 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
22373 $as_echo_n "checking for selinux/selinux.h... " >&6; }
22374 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
22375 $as_echo_n "(cached) " >&6
22377 ac_cv_header_selinux_selinux_h=$ac_header_preproc
22379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
22380 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
22383 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
22385 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
22386 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
22387 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
22388 $as_echo_n "(cached) " >&6
22390 ac_check_lib_save_LIBS=$LIBS
22391 LIBS="-lselinux $LIBS"
22392 cat >conftest.$ac_ext <<_ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22399 /* Override any GCC internal prototype to avoid an error.
22400 Use char because int might match the return type of a GCC
22401 builtin and then its argument prototype would still apply. */
22405 char is_selinux_enabled ();
22409 return is_selinux_enabled ();
22414 rm -f conftest.$ac_objext conftest$ac_exeext
22415 if { (ac_try="$ac_link"
22416 case "(($ac_try" in
22417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22418 *) ac_try_echo=$ac_try;;
22420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22421 $as_echo "$ac_try_echo") >&5
22422 (eval "$ac_link") 2>conftest.er1
22424 grep -v '^ *+' conftest.er1 >conftest.err
22426 cat conftest.err >&5
22427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } && {
22429 test -z "$ac_c_werror_flag" ||
22430 test ! -s conftest.err
22431 } && test -s conftest$ac_exeext && {
22432 test "$cross_compiling" = yes ||
22433 $as_test_x conftest$ac_exeext
22435 ac_cv_lib_selinux_is_selinux_enabled=yes
22437 $as_echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_cv_lib_selinux_is_selinux_enabled=no
22443 rm -rf conftest.dSYM
22444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22445 conftest$ac_exeext conftest.$ac_ext
22446 LIBS=$ac_check_lib_save_LIBS
22448 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
22449 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
22450 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
22452 LIBSELINUX="-lselinux"
22455 cat >>confdefs.h <<\_ACEOF
22456 #define HAVE_LIBSELINUX 1
22462 if test "x$with_selinux" != xcheck; then
22463 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22465 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
22466 See \`config.log' for more details." >&5
22467 $as_echo "$as_me: error: --with-selinux given but unavailable
22468 See \`config.log' for more details." >&2;}
22469 { (exit 1); exit 1; }; }; }
22479 if test "x$with_selinux" != xcheck; then
22480 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22482 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
22483 See \`config.log' for more details." >&5
22484 $as_echo "$as_me: error: --with-selinux given but unavailable
22485 See \`config.log' for more details." >&2;}
22486 { (exit 1); exit 1; }; }; }
22497 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
22498 $as_echo_n "checking for selinux support... " >&6; }
22499 { $as_echo "$as_me:$LINENO: result: no" >&5
22500 $as_echo "no" >&6; }
22506 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
22507 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
22509 saved_flags="$CFLAGS"
22510 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
22512 if test "$cross_compiling" = yes; then
22513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22515 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22516 See \`config.log' for more details." >&5
22517 $as_echo "$as_me: error: cannot run test program while cross compiling
22518 See \`config.log' for more details." >&2;}
22519 { (exit 1); exit 1; }; }; }
22521 cat >conftest.$ac_ext <<_ACEOF
22524 cat confdefs.h >>conftest.$ac_ext
22525 cat >>conftest.$ac_ext <<_ACEOF
22526 /* end confdefs.h. */
22536 rm -f conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22543 $as_echo "$ac_try_echo") >&5
22544 (eval "$ac_link") 2>&5
22546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22548 { (case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22553 $as_echo "$ac_try_echo") >&5
22554 (eval "$ac_try") 2>&5
22556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22559 FRAME_LARGER_THAN=-Wframe-larger-than=1024
22560 { $as_echo "$as_me:$LINENO: result: yes" >&5
22561 $as_echo "yes" >&6; }
22564 $as_echo "$as_me: program exited with status $ac_status" >&5
22565 $as_echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ( exit $ac_status )
22571 { $as_echo "$as_me:$LINENO: result: no" >&5
22572 $as_echo "no" >&6; }
22575 rm -rf conftest.dSYM
22576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22581 CFLAGS="$saved_flags"
22586 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
22587 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
22589 saved_CFLAGS="$CFLAGS"
22590 CFLAGS="-fstack-check"
22591 saved_LDFLAGS="$LDFLAGS"
22592 LDFLAGS="-lpthread"
22594 if test "$cross_compiling" = yes; then
22595 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22597 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22598 See \`config.log' for more details." >&5
22599 $as_echo "$as_me: error: cannot run test program while cross compiling
22600 See \`config.log' for more details." >&2;}
22601 { (exit 1); exit 1; }; }; }
22603 cat >conftest.$ac_ext <<_ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22610 #include <pthread.h>
22611 #include <sys/resource.h>
22612 #include <unistd.h>
22613 #include <bits/local_lim.h>
22615 #define PAGESIZE (sysconf(_SC_PAGESIZE))
22616 #define STACK_SIZE 8192
22617 #define BUFSIZE 4096
22619 void * func(void *arg)
22629 pthread_attr_t attr;
22634 setrlimit(RLIMIT_CORE, &l);
22635 pthread_attr_init(&attr);
22636 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
22637 pthread_attr_setguardsize(&attr, PAGESIZE);
22638 pthread_create(&tid, &attr, func, NULL);
22639 pthread_join(tid, NULL);
22645 rm -f conftest$ac_exeext
22646 if { (ac_try="$ac_link"
22647 case "(($ac_try" in
22648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22652 $as_echo "$ac_try_echo") >&5
22653 (eval "$ac_link") 2>&5
22655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22657 { (case "(($ac_try" in
22658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659 *) ac_try_echo=$ac_try;;
22661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22662 $as_echo "$ac_try_echo") >&5
22663 (eval "$ac_try") 2>&5
22665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22668 { $as_echo "$as_me:$LINENO: result: no" >&5
22669 $as_echo "no" >&6; }
22672 $as_echo "$as_me: program exited with status $ac_status" >&5
22673 $as_echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22676 ( exit $ac_status )
22679 cat >>confdefs.h <<\_ACEOF
22680 #define NPTL_GUARD_WITHIN_STACK 1
22683 { $as_echo "$as_me:$LINENO: result: yes" >&5
22684 $as_echo "yes" >&6; }
22687 rm -rf conftest.dSYM
22688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692 CFLAGS="$saved_CFLAGS"
22693 LDFLAGS="$saved_LDFLAGS"
22698 { $as_echo "$as_me:$LINENO: result: Error!" >&5
22699 $as_echo "Error!" >&6; }
22700 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
22701 user kernel|user|all|srpm" >&5
22702 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
22703 user kernel|user|all|srpm" >&2;}
22704 { (exit 1); exit 1; }; } ;;
22707 if test "$ZFS_CONFIG" = user ||
22708 test "$ZFS_CONFIG" = all; then
22710 CONFIG_USER_FALSE='#'
22712 CONFIG_USER_TRUE='#'
22716 if test "$ZFS_CONFIG" = kernel ||
22717 test "$ZFS_CONFIG" = all; then
22718 CONFIG_KERNEL_TRUE=
22719 CONFIG_KERNEL_FALSE='#'
22721 CONFIG_KERNEL_TRUE='#'
22722 CONFIG_KERNEL_FALSE=
22727 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
22728 $as_echo_n "checking whether debugging is enabled... " >&6; }
22729 # Check whether --enable-debug was given.
22730 if test "${enable_debug+set}" = set; then
22731 enableval=$enable_debug;
22737 if test "x$enable_debug" = xyes; then
22739 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
22740 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
22741 DEBUG_CFLAGS="-DDEBUG -Werror"
22742 DEBUG_STACKFLAGS="-fstack-check"
22746 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
22747 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
22748 DEBUG_CFLAGS="-DNDEBUG"
22749 DEBUG_STACKFLAGS=""
22756 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
22757 $as_echo "$enable_debug" >&6; }
22760 ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/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 cmd/sas_switch_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 PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh"
22763 cat >confcache <<\_ACEOF
22764 # This file is a shell script that caches the results of configure
22765 # tests run on this system so they can be shared between configure
22766 # scripts and configure runs, see configure's option --config-cache.
22767 # It is not useful on other systems. If it contains results you don't
22768 # want to keep, you may remove or edit it.
22770 # config.status only pays attention to the cache file if you give it
22771 # the --recheck option to rerun configure.
22773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22775 # following values.
22779 # The following way of writing the cache mishandles newlines in values,
22780 # but we know of no workaround that is simple, portable, and efficient.
22781 # So, we kill variables containing newlines.
22782 # Ultrix sh set writes to stderr and can't be redirected directly,
22783 # and sets the high bit in the cache file unless we assign to the vars.
22785 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22786 eval ac_val=\$$ac_var
22790 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22791 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22794 _ | IFS | as_nl) ;; #(
22795 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22796 *) $as_unset $ac_var ;;
22802 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22803 *${as_nl}ac_space=\ *)
22804 # `set' does not quote correctly, so add quotes (double-quote
22805 # substitution turns \\\\ into \\, and sed turns \\ into \).
22808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22811 # `set' quotes correctly as required by POSIX, so do not add quotes.
22812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22821 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22823 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22825 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22826 if test -w "$cache_file"; then
22827 test "x$cache_file" != "x/dev/null" &&
22828 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22829 $as_echo "$as_me: updating cache $cache_file" >&6;}
22830 cat confcache >$cache_file
22832 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22833 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22838 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22839 # Let make expand exec_prefix.
22840 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22842 DEFS=-DHAVE_CONFIG_H
22846 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22847 # 1. Remove the extension, and $U if already installed.
22848 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22849 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22851 # will be set to the directory where LIBOBJS objects are built.
22852 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22853 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22855 LIBOBJS=$ac_libobjs
22857 LTLIBOBJS=$ac_ltlibobjs
22860 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22861 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22862 Usually this means the macro was only invoked conditionally." >&5
22863 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22864 Usually this means the macro was only invoked conditionally." >&2;}
22865 { (exit 1); exit 1; }; }
22867 if test -n "$EXEEXT"; then
22869 am__EXEEXT_FALSE='#'
22871 am__EXEEXT_TRUE='#'
22875 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22876 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22877 Usually this means the macro was only invoked conditionally." >&5
22878 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22879 Usually this means the macro was only invoked conditionally." >&2;}
22880 { (exit 1); exit 1; }; }
22882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22883 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22884 Usually this means the macro was only invoked conditionally." >&5
22885 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22886 Usually this means the macro was only invoked conditionally." >&2;}
22887 { (exit 1); exit 1; }; }
22889 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22890 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
22891 Usually this means the macro was only invoked conditionally." >&5
22892 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
22893 Usually this means the macro was only invoked conditionally." >&2;}
22894 { (exit 1); exit 1; }; }
22896 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
22897 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
22898 Usually this means the macro was only invoked conditionally." >&5
22899 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
22900 Usually this means the macro was only invoked conditionally." >&2;}
22901 { (exit 1); exit 1; }; }
22903 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
22904 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
22905 Usually this means the macro was only invoked conditionally." >&5
22906 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
22907 Usually this means the macro was only invoked conditionally." >&2;}
22908 { (exit 1); exit 1; }; }
22911 : ${CONFIG_STATUS=./config.status}
22913 ac_clean_files_save=$ac_clean_files
22914 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22915 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22916 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22917 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22919 # Generated by $as_me.
22920 # Run this file to recreate the current configuration.
22921 # Compiler output produced by configure, useful for debugging
22922 # configure, is in config.log if it exists.
22925 ac_cs_recheck=false
22927 SHELL=\${CONFIG_SHELL-$SHELL}
22930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22931 ## --------------------- ##
22932 ## M4sh Initialization. ##
22933 ## --------------------- ##
22935 # Be more Bourne compatible
22936 DUALCASE=1; export DUALCASE # for MKS sh
22937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22941 # is contrary to our usage. Disable this feature.
22942 alias -g '${1+"$@"}'='"$@"'
22943 setopt NO_GLOB_SUBST
22945 case `(set -o) 2>/dev/null` in
22946 *posix*) set -o posix ;;
22955 # Avoid depending upon Character Ranges.
22956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22959 as_cr_digits='0123456789'
22960 as_cr_alnum=$as_cr_Letters$as_cr_digits
22965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22969 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22970 as_echo='printf %s\n'
22971 as_echo_n='printf %s'
22973 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22974 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22975 as_echo_n='/usr/ucb/echo -n'
22977 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22978 as_echo_n_body='eval
22982 expr "X$arg" : "X\\(.*\\)$as_nl";
22983 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22985 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22987 export as_echo_n_body
22988 as_echo_n='sh -c $as_echo_n_body as_echo'
22990 export as_echo_body
22991 as_echo='sh -c $as_echo_body as_echo'
22994 # The user is always right.
22995 if test "${PATH_SEPARATOR+set}" != set; then
22997 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22998 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23003 # Support unset when possible.
23004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23012 # We need space, tab and new line, in precisely that order. Quoting is
23013 # there to prevent editors from complaining about space-tab.
23014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23015 # splitting by setting IFS to empty value.)
23018 # Find who we are. Look in the path if we contain no directory separator.
23020 *[\\/]* ) as_myself=$0 ;;
23021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23022 for as_dir in $PATH
23025 test -z "$as_dir" && as_dir=.
23026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23032 # We did not find ourselves, most probably we were run as `sh COMMAND'
23033 # in which case we are not to be found in the path.
23034 if test "x$as_myself" = x; then
23037 if test ! -f "$as_myself"; then
23038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23039 { (exit 1); exit 1; }
23042 # Work around bugs in pre-3.0 UWIN ksh.
23043 for as_var in ENV MAIL MAILPATH
23044 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23056 # Required to use basename.
23057 if expr a : '\(a\)' >/dev/null 2>&1 &&
23058 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23064 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23065 as_basename=basename
23071 # Name of the executable.
23072 as_me=`$as_basename -- "$0" ||
23073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23074 X"$0" : 'X\(//\)$' \| \
23075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23077 sed '/^.*\/\([^/][^/]*\)\/*$/{
23096 as_lineno_1=$LINENO
23097 as_lineno_2=$LINENO
23098 test "x$as_lineno_1" != "x$as_lineno_2" &&
23099 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23101 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23102 # uniformly replaced by the line number. The first 'sed' inserts a
23103 # line-number line after each line using $LINENO; the second 'sed'
23104 # does the real work. The second script uses 'N' to pair each
23105 # line-number line with the line containing $LINENO, and appends
23106 # trailing '-' during substitution so that $LINENO is not a special
23107 # case at line end.
23108 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23109 # scripts with optimization help from Paolo Bonzini. Blame Lee
23110 # E. McMahon (1931-1989) for sed's syntax. :-)
23122 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23125 ' >$as_me.lineno &&
23126 chmod +x "$as_me.lineno" ||
23127 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23128 { (exit 1); exit 1; }; }
23130 # Don't try to exec as it changes $[0], causing all sort of problems
23131 # (the dirname of $[0] is not the place where we might find the
23132 # original and so on. Autoconf is especially sensitive to this).
23133 . "./$as_me.lineno"
23134 # Exit status is that of the last command.
23139 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23145 ECHO_C= ECHO_N= ECHO_T=
23146 case `echo -n x` in
23148 case `echo 'x\c'` in
23149 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23155 if expr a : '\(a\)' >/dev/null 2>&1 &&
23156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23162 rm -f conf$$ conf$$.exe conf$$.file
23163 if test -d conf$$.dir; then
23164 rm -f conf$$.dir/conf$$.file
23167 mkdir conf$$.dir 2>/dev/null
23169 if (echo >conf$$.file) 2>/dev/null; then
23170 if ln -s conf$$.file conf$$ 2>/dev/null; then
23172 # ... but there are two gotchas:
23173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23175 # In both cases, we have to default to `cp -p'.
23176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23178 elif ln conf$$.file conf$$ 2>/dev/null; then
23186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23187 rmdir conf$$.dir 2>/dev/null
23189 if mkdir -p . 2>/dev/null; then
23192 test -d ./-p && rmdir ./-p
23196 if test -x / >/dev/null 2>&1; then
23197 as_test_x='test -x'
23199 if ls -dL / >/dev/null 2>&1; then
23206 if test -d "$1"; then
23212 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23213 ???[sx]*):;;*)false;;esac;fi
23217 as_executable_p=$as_test_x
23219 # Sed expression to map a string onto a valid CPP name.
23220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23222 # Sed expression to map a string onto a valid variable name.
23223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23228 # Save the log message, to keep $[0] and so on meaningful, and to
23229 # report actual input values of CONFIG_FILES etc. instead of their
23230 # values after options handling.
23232 This file was extended by $as_me, which was
23233 generated by GNU Autoconf 2.63. Invocation command line was
23235 CONFIG_FILES = $CONFIG_FILES
23236 CONFIG_HEADERS = $CONFIG_HEADERS
23237 CONFIG_LINKS = $CONFIG_LINKS
23238 CONFIG_COMMANDS = $CONFIG_COMMANDS
23241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23246 case $ac_config_files in *"
23247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23250 case $ac_config_headers in *"
23251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23256 # Files that config.status was made for.
23257 config_files="$ac_config_files"
23258 config_headers="$ac_config_headers"
23259 config_commands="$ac_config_commands"
23263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23265 \`$as_me' instantiates files from templates according to the
23266 current configuration.
23268 Usage: $0 [OPTION]... [FILE]...
23270 -h, --help print this help, then exit
23271 -V, --version print version number and configuration settings, then exit
23272 -q, --quiet, --silent
23273 do not print progress messages
23274 -d, --debug don't remove temporary files
23275 --recheck update $as_me by reconfiguring in the same conditions
23276 --file=FILE[:TEMPLATE]
23277 instantiate the configuration file FILE
23278 --header=FILE[:TEMPLATE]
23279 instantiate the configuration header FILE
23281 Configuration files:
23284 Configuration headers:
23287 Configuration commands:
23290 Report bugs to <bug-autoconf@gnu.org>."
23293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23296 configured by $0, generated by GNU Autoconf 2.63,
23297 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23299 Copyright (C) 2008 Free Software Foundation, Inc.
23300 This config.status script is free software; the Free Software Foundation
23301 gives unlimited permission to copy, distribute and modify it."
23308 test -n "\$AWK" || AWK=awk
23311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23312 # The default lists apply if the user does not specify any file.
23318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23319 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23330 # Handling of the options.
23331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23334 $as_echo "$ac_cs_version"; exit ;;
23335 --debug | --debu | --deb | --de | --d | -d )
23337 --file | --fil | --fi | --f )
23340 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23342 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23343 ac_need_defaults=false;;
23344 --header | --heade | --head | --hea )
23347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23349 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23350 ac_need_defaults=false;;
23352 # Conflict between --help and --header
23353 { $as_echo "$as_me: error: ambiguous option: $1
23354 Try \`$0 --help' for more information." >&2
23355 { (exit 1); exit 1; }; };;
23356 --help | --hel | -h )
23357 $as_echo "$ac_cs_usage"; exit ;;
23358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23359 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23362 # This is an error.
23363 -*) { $as_echo "$as_me: error: unrecognized option: $1
23364 Try \`$0 --help' for more information." >&2
23365 { (exit 1); exit 1; }; } ;;
23367 *) ac_config_targets="$ac_config_targets $1"
23368 ac_need_defaults=false ;;
23374 ac_configure_extra_args=
23376 if $ac_cs_silent; then
23378 ac_configure_extra_args="$ac_configure_extra_args --silent"
23382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23383 if \$ac_cs_recheck; then
23384 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23386 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23387 CONFIG_SHELL='$SHELL'
23388 export CONFIG_SHELL
23393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23397 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23398 ## Running $as_me. ##
23404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23408 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23411 # The HP-UX ksh and POSIX shell print the target directory to stdout
23412 # if CDPATH is set.
23413 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23415 sed_quote_subst='$sed_quote_subst'
23416 double_quote_subst='$double_quote_subst'
23417 delay_variable_subst='$delay_variable_subst'
23418 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23419 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23420 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23421 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23422 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23423 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23424 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23425 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23426 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23427 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23428 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23429 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23430 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23431 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23432 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23433 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23434 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23435 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23436 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23437 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23438 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23439 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23440 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23441 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23442 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23443 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23444 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23445 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23446 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23447 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23448 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23449 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23450 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23451 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23452 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23453 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23454 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23455 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23456 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23457 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23458 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23459 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23460 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23461 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23462 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"`'
23463 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"`'
23464 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23465 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23466 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23467 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23468 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23469 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23470 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23471 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23472 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23473 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23474 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23475 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23476 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23477 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23478 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23479 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23480 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23481 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23482 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23483 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23484 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23485 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23486 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23487 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23488 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23489 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23490 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23491 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23492 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23493 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23494 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23495 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23496 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23497 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23498 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23499 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23500 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23501 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23502 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23503 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23504 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23505 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23506 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23507 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23508 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23509 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23510 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23511 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23512 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23513 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23514 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23515 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23516 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23517 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23518 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23519 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23520 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23521 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23522 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23523 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23524 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23525 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23526 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23527 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23528 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23529 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23530 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23531 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23532 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23533 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23534 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23535 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23538 LTCFLAGS='$LTCFLAGS'
23539 compiler='$compiler_DEFAULT'
23541 # Quote evaled strings.
23553 deplibs_check_method \
23562 lt_cv_sys_global_symbol_pipe \
23563 lt_cv_sys_global_symbol_to_cdecl \
23564 lt_cv_sys_global_symbol_to_c_name_address \
23565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23568 lt_prog_compiler_no_builtin_flag \
23569 lt_prog_compiler_wl \
23570 lt_prog_compiler_pic \
23571 lt_prog_compiler_static \
23572 lt_cv_prog_compiler_c_o \
23580 export_dynamic_flag_spec \
23581 whole_archive_flag_spec \
23582 compiler_needs_object \
23584 allow_undefined_flag \
23585 no_undefined_flag \
23586 hardcode_libdir_flag_spec \
23587 hardcode_libdir_flag_spec_ld \
23588 hardcode_libdir_separator \
23593 variables_saved_for_relink \
23595 library_names_spec \
23600 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23601 *[\\\\\\\`\\"\\\$]*)
23602 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23605 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23610 # Double-quote double-evaled strings.
23611 for var in reload_cmds \
23612 old_postinstall_cmds \
23613 old_postuninstall_cmds \
23615 extract_expsyms_cmds \
23616 old_archive_from_new_cmds \
23617 old_archive_from_expsyms_cmds \
23619 archive_expsym_cmds \
23621 module_expsym_cmds \
23622 export_symbols_cmds \
23625 postuninstall_cmds \
23627 sys_lib_search_path_spec \
23628 sys_lib_dlsearch_path_spec; do
23629 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23630 *[\\\\\\\`\\"\\\$]*)
23631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23639 # Fix-up fallback echo if it was mangled by the above quoting rules.
23641 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23645 ac_aux_dir='$ac_aux_dir'
23646 xsi_shell='$xsi_shell'
23647 lt_shell_append='$lt_shell_append'
23649 # See if we are running on zsh, and set the options which allow our
23650 # commands through without removal of \ escapes INIT.
23651 if test -n "\${ZSH_VERSION+set}" ; then
23652 setopt NO_GLOB_SUBST
23658 TIMESTAMP='$TIMESTAMP'
23667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23669 # Handling of arguments.
23670 for ac_config_target in $ac_config_targets
23672 case $ac_config_target in
23673 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
23674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23675 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23676 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23677 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
23678 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
23679 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
23680 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
23681 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
23682 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
23683 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
23684 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23685 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
23686 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23687 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
23688 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
23689 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
23690 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
23691 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
23692 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
23693 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
23694 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
23695 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
23696 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
23697 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
23698 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
23699 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
23700 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
23701 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
23702 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
23703 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
23704 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
23705 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
23706 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
23707 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
23708 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
23709 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
23710 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
23711 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
23712 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
23713 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
23714 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
23715 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
23716 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
23717 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
23718 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
23719 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
23720 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
23721 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
23722 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
23723 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
23724 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
23725 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
23726 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23727 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
23728 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
23729 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
23730 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
23731 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
23732 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
23733 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
23734 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
23735 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
23736 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
23737 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
23738 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
23739 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
23740 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
23741 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
23742 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
23744 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23745 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23746 { (exit 1); exit 1; }; };;
23751 # If the user did not use the arguments to specify the items to instantiate,
23752 # then the envvar interface is used. Set only those that are not.
23753 # We use the long form for the default assignment because of an extremely
23754 # bizarre bug on SunOS 4.1.3.
23755 if $ac_need_defaults; then
23756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23761 # Have a temporary directory for convenience. Make it in the build tree
23762 # simply because there is no reason against having it here, and in addition,
23763 # creating and moving files from /tmp can sometimes cause problems.
23764 # Hook for its removal unless debugging.
23765 # Note that there is a small window in which the directory will not be cleaned:
23766 # after its creation but before its name has been assigned to `$tmp'.
23770 trap 'exit_status=$?
23771 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23773 trap '{ (exit 1); exit 1; }' 1 2 13 15
23775 # Create a (secure) tmp directory for tmp files.
23778 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23779 test -n "$tmp" && test -d "$tmp"
23782 tmp=./conf$$-$RANDOM
23783 (umask 077 && mkdir "$tmp")
23786 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23787 { (exit 1); exit 1; }
23790 # Set up the scripts for CONFIG_FILES section.
23791 # No need to generate them if there are no CONFIG_FILES.
23792 # This happens for instance with `./config.status config.h'.
23793 if test -n "$CONFIG_FILES"; then
23797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23801 ac_cs_awk_cr=$ac_cr
23804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23809 echo "cat >conf$$subs.awk <<_ACEOF" &&
23810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23812 } >conf$$subs.sh ||
23813 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23814 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23815 { (exit 1); exit 1; }; }
23816 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23818 for ac_last_try in false false false false false :; do
23819 . ./conf$$subs.sh ||
23820 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23821 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23822 { (exit 1); exit 1; }; }
23824 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23825 if test $ac_delim_n = $ac_delim_num; then
23827 elif $ac_last_try; then
23828 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23829 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23830 { (exit 1); exit 1; }; }
23832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23835 rm -f conf$$subs.sh
23837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23838 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23842 s/^/S["/; s/!.*/"]=/
23852 s/\(.\{148\}\).*/\1/
23854 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23866 s/\(.\{148\}\).*/\1/
23868 s/["\\]/\\&/g; s/^/"/; s/$/"/
23872 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23877 ' <conf$$subs.awk | sed '
23882 ' >>$CONFIG_STATUS || ac_write_fail=1
23883 rm -f conf$$subs.awk
23884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23886 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23887 for (key in S) S_is_set[key] = 1
23893 nfields = split(line, field, "@")
23895 len = length(field[1])
23896 for (i = 2; i < nfields; i++) {
23898 keylen = length(key)
23899 if (S_is_set[key]) {
23901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23902 len += length(value) + length(field[++i])
23913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23914 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23915 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23918 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23919 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23920 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23921 { (exit 1); exit 1; }; }
23924 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23925 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23926 # trailing colons and then remove the whole line if VPATH becomes empty
23927 # (actually we leave an empty line to preserve line numbers).
23928 if test "x$srcdir" = x.; then
23929 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23930 s/:*\$(srcdir):*/:/
23931 s/:*\${srcdir}:*/:/
23933 s/^\([^=]*=[ ]*\):*/\1/
23939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23940 fi # test -n "$CONFIG_FILES"
23942 # Set up the scripts for CONFIG_HEADERS section.
23943 # No need to generate them if there are no CONFIG_HEADERS.
23944 # This happens for instance with `./config.status Makefile'.
23945 if test -n "$CONFIG_HEADERS"; then
23946 cat >"$tmp/defines.awk" <<\_ACAWK ||
23950 # Transform confdefs.h into an awk script `defines.awk', embedded as
23951 # here-document in config.status, that substitutes the proper values into
23952 # config.h.in to produce config.h.
23954 # Create a delimiter string that does not exist in confdefs.h, to ease
23955 # handling of long lines.
23957 for ac_last_try in false false :; do
23958 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23959 if test -z "$ac_t"; then
23961 elif $ac_last_try; then
23962 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23963 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23964 { (exit 1); exit 1; }; }
23966 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23970 # For the awk script, D is an array of macro values keyed by name,
23971 # likewise P contains macro parameters if any. Preserve backslash
23972 # newline sequences.
23974 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23976 s/.\{148\}/&'"$ac_delim"'/g
23979 s/^[ ]*#[ ]*define[ ][ ]*/ /
23986 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23988 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23993 D["\1"]=" \3\\\\\\n"\\/p
23995 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24000 s/.\{148\}/&'"$ac_delim"'/g
24005 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24008 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24010 ' <confdefs.h | sed '
24011 s/'"$ac_delim"'/"\\\
24012 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24015 for (key in D) D_is_set[key] = 1
24018 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24020 split(line, arg, " ")
24021 if (arg[1] == "#") {
24025 defundef = substr(arg[1], 2)
24028 split(mac1, mac2, "(") #)
24030 prefix = substr(line, 1, index(line, defundef) - 1)
24031 if (D_is_set[macro]) {
24032 # Preserve the white space surrounding the "#".
24033 print prefix "define", macro P[macro] D[macro]
24036 # Replace #undef with comments. This is necessary, for example,
24037 # in the case of _POSIX_SOURCE, which is predefined and required
24038 # on some systems where configure will not decide to define it.
24039 if (defundef == "undef") {
24040 print "/*", prefix defundef, macro, "*/"
24048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24049 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24050 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24051 { (exit 1); exit 1; }; }
24052 fi # test -n "$CONFIG_HEADERS"
24055 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24060 :[FHLC]) ac_mode=$ac_tag; continue;;
24062 case $ac_mode$ac_tag in
24064 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24065 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24066 { (exit 1); exit 1; }; };;
24067 :[FH]-) ac_tag=-:-;;
24068 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24085 -) ac_f="$tmp/stdin";;
24086 *) # Look for the file first in the build tree, then in the source tree
24087 # (if the path is not absolute). The absolute path cannot be DOS-style,
24088 # because $ac_f cannot contain `:'.
24092 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24094 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24095 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24096 { (exit 1); exit 1; }; };;
24098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24099 ac_file_inputs="$ac_file_inputs '$ac_f'"
24102 # Let's still pretend it is `configure' which instantiates (i.e., don't
24103 # use $as_me), people would be surprised to read:
24104 # /* config.h. Generated by config.status. */
24105 configure_input='Generated from '`
24106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24108 if test x"$ac_file" != x-; then
24109 configure_input="$ac_file. $configure_input"
24110 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24111 $as_echo "$as_me: creating $ac_file" >&6;}
24113 # Neutralize special characters interpreted by sed in replacement strings.
24114 case $configure_input in #(
24115 *\&* | *\|* | *\\* )
24116 ac_sed_conf_input=`$as_echo "$configure_input" |
24117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24118 *) ac_sed_conf_input=$configure_input;;
24122 *:-:* | *:-) cat >"$tmp/stdin" \
24123 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24124 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24125 { (exit 1); exit 1; }; } ;;
24130 ac_dir=`$as_dirname -- "$ac_file" ||
24131 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24132 X"$ac_file" : 'X\(//\)[^/]' \| \
24133 X"$ac_file" : 'X\(//\)$' \| \
24134 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24135 $as_echo X"$ac_file" |
24136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24140 /^X\(\/\/\)[^/].*/{
24155 -*) as_dir=./$as_dir;;
24157 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24161 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24162 *) as_qdir=$as_dir;;
24164 as_dirs="'$as_qdir' $as_dirs"
24165 as_dir=`$as_dirname -- "$as_dir" ||
24166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24167 X"$as_dir" : 'X\(//\)[^/]' \| \
24168 X"$as_dir" : 'X\(//\)$' \| \
24169 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24170 $as_echo X"$as_dir" |
24171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24175 /^X\(\/\/\)[^/].*/{
24188 test -d "$as_dir" && break
24190 test -z "$as_dirs" || eval "mkdir $as_dirs"
24191 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24192 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24193 { (exit 1); exit 1; }; }; }
24197 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24199 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24200 # A ".." for each directory in $ac_dir_suffix.
24201 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24202 case $ac_top_builddir_sub in
24203 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24204 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24207 ac_abs_top_builddir=$ac_pwd
24208 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24209 # for backward compatibility:
24210 ac_top_builddir=$ac_top_build_prefix
24213 .) # We are building in place.
24215 ac_top_srcdir=$ac_top_builddir_sub
24216 ac_abs_top_srcdir=$ac_pwd ;;
24217 [\\/]* | ?:[\\/]* ) # Absolute name.
24218 ac_srcdir=$srcdir$ac_dir_suffix;
24219 ac_top_srcdir=$srcdir
24220 ac_abs_top_srcdir=$srcdir ;;
24221 *) # Relative name.
24222 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24223 ac_top_srcdir=$ac_top_build_prefix$srcdir
24224 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24226 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24236 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24237 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24239 ac_MKDIR_P=$MKDIR_P
24241 [\\/$]* | ?:[\\/]* ) ;;
24242 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24247 # If the template does not know about datarootdir, expand it.
24248 # FIXME: This hack should be removed a few years after 2.60.
24249 ac_datarootdir_hack=; ac_datarootdir_seen=
24262 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24263 *datarootdir*) ac_datarootdir_seen=yes;;
24264 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24265 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24266 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24269 ac_datarootdir_hack='
24270 s&@datadir@&$datadir&g
24271 s&@docdir@&$docdir&g
24272 s&@infodir@&$infodir&g
24273 s&@localedir@&$localedir&g
24274 s&@mandir@&$mandir&g
24275 s&\\\${datarootdir}&$datarootdir&g' ;;
24279 # Neutralize VPATH when `$srcdir' = `.'.
24280 # Shell code in configure.ac might set extrasub.
24281 # FIXME: do we really want to maintain this feature?
24282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24283 ac_sed_extra="$ac_vpsub
24286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24289 s|@configure_input@|$ac_sed_conf_input|;t t
24290 s&@top_builddir@&$ac_top_builddir_sub&;t t
24291 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24292 s&@srcdir@&$ac_srcdir&;t t
24293 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24294 s&@top_srcdir@&$ac_top_srcdir&;t t
24295 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24296 s&@builddir@&$ac_builddir&;t t
24297 s&@abs_builddir@&$ac_abs_builddir&;t t
24298 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24299 s&@INSTALL@&$ac_INSTALL&;t t
24300 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24301 $ac_datarootdir_hack
24303 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24304 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24305 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24306 { (exit 1); exit 1; }; }
24308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24309 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24311 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24312 which seems to be undefined. Please make sure it is defined." >&5
24313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24314 which seems to be undefined. Please make sure it is defined." >&2;}
24318 -) cat "$tmp/out" && rm -f "$tmp/out";;
24319 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24321 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24322 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24323 { (exit 1); exit 1; }; }
24329 if test x"$ac_file" != x-; then
24331 $as_echo "/* $configure_input */" \
24332 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24333 } >"$tmp/config.h" \
24334 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24335 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24336 { (exit 1); exit 1; }; }
24337 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24338 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24339 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24342 mv "$tmp/config.h" "$ac_file" \
24343 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24344 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24345 { (exit 1); exit 1; }; }
24348 $as_echo "/* $configure_input */" \
24349 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24350 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24351 $as_echo "$as_me: error: could not create -" >&2;}
24352 { (exit 1); exit 1; }; }
24354 # Compute "$ac_file"'s index in $config_headers.
24357 for _am_header in $config_headers :; do
24358 case $_am_header in
24359 $_am_arg | $_am_arg:* )
24362 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24365 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24366 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24367 X"$_am_arg" : 'X\(//\)[^/]' \| \
24368 X"$_am_arg" : 'X\(//\)$' \| \
24369 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24370 $as_echo X"$_am_arg" |
24371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24375 /^X\(\/\/\)[^/].*/{
24387 s/.*/./; q'`/stamp-h$_am_stamp_count
24390 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24391 $as_echo "$as_me: executing $ac_file commands" >&6;}
24396 case $ac_file$ac_mode in
24398 (mv zfs_config.h zfs_config.h.tmp &&
24399 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
24400 rm zfs_config.h.tmp) || exit 1 ;;
24401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24402 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24403 # are listed without --file. Let's play safe and only enable the eval
24404 # if we detect the quoting.
24405 case $CONFIG_FILES in
24406 *\'*) eval set x "$CONFIG_FILES" ;;
24407 *) set x $CONFIG_FILES ;;
24412 # Strip MF so we end up with the name of the file.
24413 mf=`echo "$mf" | sed -e 's/:.*$//'`
24414 # Check whether this is an Automake generated Makefile or not.
24415 # We used to match only the files named `Makefile.in', but
24416 # some people rename them; so instead we look at the file content.
24417 # Grep'ing the first line is not enough: some people post-process
24418 # each Makefile.in and add a new line on top of each file to say so.
24419 # Grep'ing the whole file is not good either: AIX grep has a line
24420 # limit of 2048, but all sed's we know have understand at least 4000.
24421 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24422 dirpart=`$as_dirname -- "$mf" ||
24423 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$mf" : 'X\(//\)[^/]' \| \
24425 X"$mf" : 'X\(//\)$' \| \
24426 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24432 /^X\(\/\/\)[^/].*/{
24448 # Extract the definition of DEPDIR, am__include, and am__quote
24449 # from the Makefile without running `make'.
24450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24451 test -z "$DEPDIR" && continue
24452 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24453 test -z "am__include" && continue
24454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24455 # When using ansi2knr, U may be empty or an underscore; expand it
24456 U=`sed -n 's/^U = //p' < "$mf"`
24457 # Find all dependency output files, they are included files with
24458 # $(DEPDIR) in their names. We invoke sed twice because it is the
24459 # simplest approach to changing $(DEPDIR) to its actual value in the
24461 for file in `sed -n "
24462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24464 # Make sure the directory exists.
24465 test -f "$dirpart/$file" && continue
24466 fdir=`$as_dirname -- "$file" ||
24467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468 X"$file" : 'X\(//\)[^/]' \| \
24469 X"$file" : 'X\(//\)$' \| \
24470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24471 $as_echo X"$file" |
24472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24476 /^X\(\/\/\)[^/].*/{
24489 { as_dir=$dirpart/$fdir
24491 -*) as_dir=./$as_dir;;
24493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24497 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24498 *) as_qdir=$as_dir;;
24500 as_dirs="'$as_qdir' $as_dirs"
24501 as_dir=`$as_dirname -- "$as_dir" ||
24502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24503 X"$as_dir" : 'X\(//\)[^/]' \| \
24504 X"$as_dir" : 'X\(//\)$' \| \
24505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24506 $as_echo X"$as_dir" |
24507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24511 /^X\(\/\/\)[^/].*/{
24524 test -d "$as_dir" && break
24526 test -z "$as_dirs" || eval "mkdir $as_dirs"
24527 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24528 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24529 { (exit 1); exit 1; }; }; }
24530 # echo "creating $dirpart/$file"
24531 echo '# dummy' > "$dirpart/$file"
24538 # See if we are running on zsh, and set the options which allow our
24539 # commands through without removal of \ escapes.
24540 if test -n "${ZSH_VERSION+set}" ; then
24541 setopt NO_GLOB_SUBST
24544 cfgfile="${ofile}T"
24545 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24548 cat <<_LT_EOF >> "$cfgfile"
24551 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24552 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24553 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24554 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24556 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24557 # 2006, 2007, 2008 Free Software Foundation, Inc.
24558 # Written by Gordon Matzigkeit, 1996
24560 # This file is part of GNU Libtool.
24562 # GNU Libtool is free software; you can redistribute it and/or
24563 # modify it under the terms of the GNU General Public License as
24564 # published by the Free Software Foundation; either version 2 of
24565 # the License, or (at your option) any later version.
24567 # As a special exception to the GNU General Public License,
24568 # if you distribute this file as part of a program or library that
24569 # is built using GNU Libtool, you may include this file under the
24570 # same distribution terms that you use for the rest of that program.
24572 # GNU Libtool is distributed in the hope that it will be useful,
24573 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24575 # GNU General Public License for more details.
24577 # You should have received a copy of the GNU General Public License
24578 # along with GNU Libtool; see the file COPYING. If not, a copy
24579 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24580 # obtained by writing to the Free Software Foundation, Inc.,
24581 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24584 # The names of the tagged configurations supported by this script.
24587 # ### BEGIN LIBTOOL CONFIG
24589 # Which release of libtool.m4 was used?
24590 macro_version=$macro_version
24591 macro_revision=$macro_revision
24593 # Whether or not to build shared libraries.
24594 build_libtool_libs=$enable_shared
24596 # Whether or not to build static libraries.
24597 build_old_libs=$enable_static
24599 # What type of objects to build.
24602 # Whether or not to optimize for fast installation.
24603 fast_install=$enable_fast_install
24606 host_alias=$host_alias
24610 # The build system.
24611 build_alias=$build_alias
24615 # A sed program that does not truncate output.
24618 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24619 Xsed="\$SED -e 1s/^X//"
24621 # A grep program that handles long lines.
24627 # A literal string matcher.
24630 # A BSD- or MS-compatible name lister.
24633 # Whether we need soft or hard links.
24636 # What is the maximum length of a command?
24637 max_cmd_len=$max_cmd_len
24639 # Object file suffix (normally "o").
24642 # Executable file suffix (normally "").
24645 # whether the shell understands "unset".
24648 # turn spaces into newlines.
24651 # turn newlines into spaces.
24654 # How to create reloadable object files.
24655 reload_flag=$lt_reload_flag
24656 reload_cmds=$lt_reload_cmds
24658 # An object symbol dumper.
24659 OBJDUMP=$lt_OBJDUMP
24661 # Method to check whether dependent libraries are shared objects.
24662 deplibs_check_method=$lt_deplibs_check_method
24664 # Command to use when deplibs_check_method == "file_magic".
24665 file_magic_cmd=$lt_file_magic_cmd
24669 AR_FLAGS=$lt_AR_FLAGS
24671 # A symbol stripping program.
24674 # Commands used to install an old-style archive.
24676 old_postinstall_cmds=$lt_old_postinstall_cmds
24677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24682 # LTCC compiler flags.
24683 LTCFLAGS=$lt_CFLAGS
24685 # Take the output of nm and produce a listing of raw symbols and C names.
24686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24688 # Transform the output of nm in a proper C declaration.
24689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24691 # Transform the output of nm in a C name address pair.
24692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24694 # Transform the output of nm in a C name address pair when lib prefix is needed.
24695 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24697 # The name of the directory that contains temporary libtool files.
24700 # Shell to use when invoking shell scripts.
24703 # An echo program that does not interpret backslashes.
24706 # Used to examine libraries when file_magic_cmd begins with "file".
24707 MAGIC_CMD=$MAGIC_CMD
24709 # Must we lock files when doing compilation?
24710 need_locks=$lt_need_locks
24712 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24713 DSYMUTIL=$lt_DSYMUTIL
24715 # Tool to change global to local symbols on Mac OS X.
24718 # Tool to manipulate fat objects and archives on Mac OS X.
24721 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24724 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24725 OTOOL64=$lt_OTOOL64
24727 # Old archive suffix (normally "a").
24730 # Shared library suffix (normally ".so").
24731 shrext_cmds=$lt_shrext_cmds
24733 # The commands to extract the exported symbol list from a shared archive.
24734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24736 # Variables whose values should be saved in libtool wrapper scripts and
24737 # restored at link time.
24738 variables_saved_for_relink=$lt_variables_saved_for_relink
24740 # Do we need the "lib" prefix for modules?
24741 need_lib_prefix=$need_lib_prefix
24743 # Do we need a version for libraries?
24744 need_version=$need_version
24746 # Library versioning type.
24747 version_type=$version_type
24749 # Shared library runtime path variable.
24750 runpath_var=$runpath_var
24752 # Shared library path variable.
24753 shlibpath_var=$shlibpath_var
24755 # Is shlibpath searched before the hard-coded library search path?
24756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24758 # Format of library name prefix.
24759 libname_spec=$lt_libname_spec
24761 # List of archive names. First name is the real one, the rest are links.
24762 # The last name is the one that the linker finds with -lNAME
24763 library_names_spec=$lt_library_names_spec
24765 # The coded name of the library, if different from the real name.
24766 soname_spec=$lt_soname_spec
24768 # Command to use after installation of a shared archive.
24769 postinstall_cmds=$lt_postinstall_cmds
24771 # Command to use after uninstallation of a shared archive.
24772 postuninstall_cmds=$lt_postuninstall_cmds
24774 # Commands used to finish a libtool library installation in a directory.
24775 finish_cmds=$lt_finish_cmds
24777 # As "finish_cmds", except a single script fragment to be evaled but
24779 finish_eval=$lt_finish_eval
24781 # Whether we should hardcode library paths into libraries.
24782 hardcode_into_libs=$hardcode_into_libs
24784 # Compile-time system search path for libraries.
24785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24787 # Run-time system search path for libraries.
24788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24790 # Whether dlopen is supported.
24791 dlopen_support=$enable_dlopen
24793 # Whether dlopen of programs is supported.
24794 dlopen_self=$enable_dlopen_self
24796 # Whether dlopen of statically linked programs is supported.
24797 dlopen_self_static=$enable_dlopen_self_static
24799 # Commands to strip libraries.
24800 old_striplib=$lt_old_striplib
24801 striplib=$lt_striplib
24804 # The linker used to build libraries.
24807 # Commands used to build an old-style archive.
24808 old_archive_cmds=$lt_old_archive_cmds
24810 # A language specific compiler.
24813 # Is the compiler the GNU compiler?
24816 # Compiler flag to turn off builtin functions.
24817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24819 # How to pass a linker flag through the compiler.
24820 wl=$lt_lt_prog_compiler_wl
24822 # Additional compiler flags for building library objects.
24823 pic_flag=$lt_lt_prog_compiler_pic
24825 # Compiler flag to prevent dynamic linking.
24826 link_static_flag=$lt_lt_prog_compiler_static
24828 # Does compiler simultaneously support -c and -o options?
24829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24831 # Whether or not to add -lc for building shared libraries.
24832 build_libtool_need_lc=$archive_cmds_need_lc
24834 # Whether or not to disallow shared libs when runtime libs are static.
24835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24837 # Compiler flag to allow reflexive dlopens.
24838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24840 # Compiler flag to generate shared objects directly from archives.
24841 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24843 # Whether the compiler copes with passing no objects directly.
24844 compiler_needs_object=$lt_compiler_needs_object
24846 # Create an old-style archive from a shared archive.
24847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24849 # Create a temporary old-style archive to link instead of a shared archive.
24850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24852 # Commands used to build a shared archive.
24853 archive_cmds=$lt_archive_cmds
24854 archive_expsym_cmds=$lt_archive_expsym_cmds
24856 # Commands used to build a loadable module if different from building
24857 # a shared archive.
24858 module_cmds=$lt_module_cmds
24859 module_expsym_cmds=$lt_module_expsym_cmds
24861 # Whether we are building with GNU ld or not.
24862 with_gnu_ld=$lt_with_gnu_ld
24864 # Flag that allows shared libraries with undefined symbols to be built.
24865 allow_undefined_flag=$lt_allow_undefined_flag
24867 # Flag that enforces no undefined symbols.
24868 no_undefined_flag=$lt_no_undefined_flag
24870 # Flag to hardcode \$libdir into a binary during linking.
24871 # This must work even if \$libdir does not exist
24872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24874 # If ld is used when linking, flag to hardcode \$libdir into a binary
24875 # during linking. This must work even if \$libdir does not exist.
24876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24878 # Whether we need a single "-rpath" flag with a separated argument.
24879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24882 # DIR into the resulting binary.
24883 hardcode_direct=$hardcode_direct
24885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24886 # DIR into the resulting binary and the resulting library dependency is
24887 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24888 # library is relocated.
24889 hardcode_direct_absolute=$hardcode_direct_absolute
24891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24892 # into the resulting binary.
24893 hardcode_minus_L=$hardcode_minus_L
24895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24896 # into the resulting binary.
24897 hardcode_shlibpath_var=$hardcode_shlibpath_var
24899 # Set to "yes" if building a shared library automatically hardcodes DIR
24900 # into the library and all subsequent libraries and executables linked
24902 hardcode_automatic=$hardcode_automatic
24904 # Set to yes if linker adds runtime paths of dependent libraries
24905 # to runtime path list.
24906 inherit_rpath=$inherit_rpath
24908 # Whether libtool must link a program against all its dependency libraries.
24909 link_all_deplibs=$link_all_deplibs
24911 # Fix the shell variable \$srcfile for the compiler.
24912 fix_srcfile_path=$lt_fix_srcfile_path
24914 # Set to "yes" if exported symbols are required.
24915 always_export_symbols=$always_export_symbols
24917 # The commands to list exported symbols.
24918 export_symbols_cmds=$lt_export_symbols_cmds
24920 # Symbols that should not be listed in the preloaded symbols.
24921 exclude_expsyms=$lt_exclude_expsyms
24923 # Symbols that must always be exported.
24924 include_expsyms=$lt_include_expsyms
24926 # Commands necessary for linking programs (against libraries) with templates.
24927 prelink_cmds=$lt_prelink_cmds
24929 # Specify filename containing input files.
24930 file_list_spec=$lt_file_list_spec
24932 # How to hardcode a shared library path into an executable.
24933 hardcode_action=$hardcode_action
24935 # ### END LIBTOOL CONFIG
24941 cat <<\_LT_EOF >> "$cfgfile"
24942 # AIX sometimes has problems with the GCC collect2 program. For some
24943 # reason, if we set the COLLECT_NAMES environment variable, the problems
24944 # vanish in a puff of smoke.
24945 if test "X${COLLECT_NAMES+set}" != Xset; then
24947 export COLLECT_NAMES
24954 ltmain="$ac_aux_dir/ltmain.sh"
24957 # We use sed instead of cat because bash on DJGPP gets confused if
24958 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24959 # text mode, it properly converts lines to CR/LF. This bash problem
24960 # is reportedly fixed, but why not run on old versions too?
24961 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24962 || (rm -f "$cfgfile"; exit 1)
24966 cat << \_LT_EOF >> "$cfgfile"
24968 # func_dirname file append nondir_replacement
24969 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24970 # otherwise set result to NONDIR_REPLACEMENT.
24974 */*) func_dirname_result="${1%/*}${2}" ;;
24975 * ) func_dirname_result="${3}" ;;
24979 # func_basename file
24982 func_basename_result="${1##*/}"
24985 # func_dirname_and_basename file append nondir_replacement
24986 # perform func_basename and func_dirname in a single function
24988 # dirname: Compute the dirname of FILE. If nonempty,
24989 # add APPEND to the result, otherwise set result
24990 # to NONDIR_REPLACEMENT.
24991 # value returned in "$func_dirname_result"
24992 # basename: Compute filename of FILE.
24993 # value retuned in "$func_basename_result"
24994 # Implementation must be kept synchronized with func_dirname
24995 # and func_basename. For efficiency, we do not delegate to
24996 # those functions but instead duplicate the functionality here.
24997 func_dirname_and_basename ()
25000 */*) func_dirname_result="${1%/*}${2}" ;;
25001 * ) func_dirname_result="${3}" ;;
25003 func_basename_result="${1##*/}"
25006 # func_stripname prefix suffix name
25007 # strip PREFIX and SUFFIX off of NAME.
25008 # PREFIX and SUFFIX must not contain globbing or regex special
25009 # characters, hashes, percent signs, but SUFFIX may contain a leading
25010 # dot (in which case that matches only a dot).
25013 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25014 # positional parameters, so assign one to ordinary parameter first.
25015 func_stripname_result=${3}
25016 func_stripname_result=${func_stripname_result#"${1}"}
25017 func_stripname_result=${func_stripname_result%"${2}"}
25023 func_opt_split_opt=${1%%=*}
25024 func_opt_split_arg=${1#*=}
25031 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25032 *) func_lo2o_result=${1} ;;
25036 # func_xform libobj-or-source
25039 func_xform_result=${1%.*}.lo
25042 # func_arith arithmetic-term...
25045 func_arith_result=$(( $* ))
25049 # STRING may not start with a hyphen.
25052 func_len_result=${#1}
25057 *) # Bourne compatible functions.
25058 cat << \_LT_EOF >> "$cfgfile"
25060 # func_dirname file append nondir_replacement
25061 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
25062 # otherwise set result to NONDIR_REPLACEMENT.
25065 # Extract subdirectory from the argument.
25066 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25067 if test "X$func_dirname_result" = "X${1}"; then
25068 func_dirname_result="${3}"
25070 func_dirname_result="$func_dirname_result${2}"
25074 # func_basename file
25077 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25081 # func_stripname prefix suffix name
25082 # strip PREFIX and SUFFIX off of NAME.
25083 # PREFIX and SUFFIX must not contain globbing or regex special
25084 # characters, hashes, percent signs, but SUFFIX may contain a leading
25085 # dot (in which case that matches only a dot).
25086 # func_strip_suffix prefix name
25090 .*) func_stripname_result=`$ECHO "X${3}" \
25091 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25092 *) func_stripname_result=`$ECHO "X${3}" \
25093 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25098 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25099 my_sed_long_arg='1s/^-[^=]*=//'
25104 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25105 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25111 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25114 # func_xform libobj-or-source
25117 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
25120 # func_arith arithmetic-term...
25123 func_arith_result=`expr "$@"`
25127 # STRING may not start with a hyphen.
25130 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25136 case $lt_shell_append in
25138 cat << \_LT_EOF >> "$cfgfile"
25140 # func_append var value
25141 # Append VALUE to the end of shell variable VAR.
25149 cat << \_LT_EOF >> "$cfgfile"
25151 # func_append var value
25152 # Append VALUE to the end of shell variable VAR.
25163 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25164 || (rm -f "$cfgfile"; exit 1)
25166 mv -f "$cfgfile" "$ofile" ||
25167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25176 { (exit 0); exit 0; }
25178 chmod +x $CONFIG_STATUS
25179 ac_clean_files=$ac_clean_files_save
25181 test $ac_write_fail = 0 ||
25182 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25183 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25184 { (exit 1); exit 1; }; }
25187 # configure is writing to config.log, and then calls config.status.
25188 # config.status does its own redirection, appending to config.log.
25189 # Unfortunately, on DOS this fails, as config.log is still kept open
25190 # by configure, so config.status won't be able to write to it; its
25191 # output is simply discarded. So we exec the FD to /dev/null,
25192 # effectively closing config.log, so it can be properly (re)opened and
25193 # appended to by config.status. When coming back to configure, we
25194 # need to make the FD available again.
25195 if test "$no_create" != yes; then
25197 ac_config_status_args=
25198 test "$silent" = yes &&
25199 ac_config_status_args="$ac_config_status_args --quiet"
25201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25204 # would make configure fail if this is the last instruction.
25205 $ac_cs_success || { (exit 1); exit 1; }
25207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25208 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}