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
815 NO_UNUSED_BUT_SET_VARIABLE
843 am__fastdepCCAS_FALSE
892 INSTALL_STRIP_PROGRAM
910 MAINTAINER_MODE_FALSE
961 program_transform_name
973 enable_option_checking
974 enable_maintainer_mode
976 enable_dependency_tracking
997 ac_precious_vars
='build_alias
1010 # Initialize some variables set by options.
1012 ac_init_version
=false
1013 ac_unrecognized_opts
=
1014 ac_unrecognized_sep
=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file
=/dev
/null
1024 program_transform_name
=s
,x
,x
,
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir
='${exec_prefix}/bin'
1039 sbindir
='${exec_prefix}/sbin'
1040 libexecdir
='${exec_prefix}/libexec'
1041 datarootdir
='${prefix}/share'
1042 datadir
='${datarootdir}'
1043 sysconfdir
='${prefix}/etc'
1044 sharedstatedir
='${prefix}/com'
1045 localstatedir
='${prefix}/var'
1046 includedir
='${prefix}/include'
1047 oldincludedir
='/usr/include'
1048 docdir
='${datarootdir}/doc/${PACKAGE}'
1049 infodir
='${datarootdir}/info'
1054 libdir
='${exec_prefix}/lib'
1055 localedir
='${datarootdir}/locale'
1056 mandir
='${datarootdir}/man'
1062 # If the previous option needs an argument, assign it.
1063 if test -n "$ac_prev"; then
1064 eval $ac_prev=\
$ac_option
1070 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1074 # Accept the important Cygnus configure options, so we can diagnose typos.
1076 case $ac_dashdash$ac_option in
1080 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1082 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1083 bindir
=$ac_optarg ;;
1085 -build |
--build |
--buil |
--bui |
--bu)
1086 ac_prev
=build_alias
;;
1087 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1088 build_alias
=$ac_optarg ;;
1090 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1091 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1092 ac_prev
=cache_file
;;
1093 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1094 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1095 cache_file
=$ac_optarg ;;
1097 --config-cache |
-C)
1098 cache_file
=config.cache
;;
1100 -datadir |
--datadir |
--datadi |
--datad)
1102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1103 datadir
=$ac_optarg ;;
1105 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1106 |
--dataroo |
--dataro |
--datar)
1107 ac_prev
=datarootdir
;;
1108 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1109 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1110 datarootdir
=$ac_optarg ;;
1112 -disable-* |
--disable-*)
1113 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_
$ac_useropt"
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval enable_
$ac_useropt=no
;;
1129 -docdir |
--docdir |
--docdi |
--doc |
--do)
1131 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1132 docdir
=$ac_optarg ;;
1134 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1136 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1137 dvidir
=$ac_optarg ;;
1139 -enable-* |
--enable-*)
1140 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1143 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_
$ac_useropt"
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval enable_
$ac_useropt=\
$ac_optarg ;;
1156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1158 |
--exec |
--exe |
--ex)
1159 ac_prev
=exec_prefix
;;
1160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1162 |
--exec=* |
--exe=* |
--ex=*)
1163 exec_prefix
=$ac_optarg ;;
1165 -gas |
--gas |
--ga |
--g)
1166 # Obsolete; use --with-gas.
1169 -help |
--help |
--hel |
--he |
-h)
1170 ac_init_help
=long
;;
1171 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1172 ac_init_help
=recursive
;;
1173 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1174 ac_init_help
=short
;;
1176 -host |
--host |
--hos |
--ho)
1177 ac_prev
=host_alias
;;
1178 -host=* |
--host=* |
--hos=* |
--ho=*)
1179 host_alias
=$ac_optarg ;;
1181 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1183 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1185 htmldir
=$ac_optarg ;;
1187 -includedir |
--includedir |
--includedi |
--included |
--include \
1188 |
--includ |
--inclu |
--incl |
--inc)
1189 ac_prev
=includedir
;;
1190 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1191 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1192 includedir
=$ac_optarg ;;
1194 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1196 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1197 infodir
=$ac_optarg ;;
1199 -libdir |
--libdir |
--libdi |
--libd)
1201 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1202 libdir
=$ac_optarg ;;
1204 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1205 |
--libexe |
--libex |
--libe)
1206 ac_prev
=libexecdir
;;
1207 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1208 |
--libexe=* |
--libex=* |
--libe=*)
1209 libexecdir
=$ac_optarg ;;
1211 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1212 ac_prev
=localedir
;;
1213 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1214 localedir
=$ac_optarg ;;
1216 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1217 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1218 ac_prev
=localstatedir
;;
1219 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1220 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1221 localstatedir
=$ac_optarg ;;
1223 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1225 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1226 mandir
=$ac_optarg ;;
1228 -nfp |
--nfp |
--nf)
1229 # Obsolete; use --without-fp.
1232 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1233 |
--no-cr |
--no-c |
-n)
1236 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1237 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1240 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1241 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1242 |
--oldin |
--oldi |
--old |
--ol |
--o)
1243 ac_prev
=oldincludedir
;;
1244 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1245 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1246 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1247 oldincludedir
=$ac_optarg ;;
1249 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1251 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1252 prefix
=$ac_optarg ;;
1254 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1255 |
--program-pre |
--program-pr |
--program-p)
1256 ac_prev
=program_prefix
;;
1257 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1258 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1259 program_prefix
=$ac_optarg ;;
1261 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1262 |
--program-suf |
--program-su |
--program-s)
1263 ac_prev
=program_suffix
;;
1264 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1265 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1266 program_suffix
=$ac_optarg ;;
1268 -program-transform-name |
--program-transform-name \
1269 |
--program-transform-nam |
--program-transform-na \
1270 |
--program-transform-n |
--program-transform- \
1271 |
--program-transform |
--program-transfor \
1272 |
--program-transfo |
--program-transf \
1273 |
--program-trans |
--program-tran \
1274 |
--progr-tra |
--program-tr |
--program-t)
1275 ac_prev
=program_transform_name
;;
1276 -program-transform-name=* |
--program-transform-name=* \
1277 |
--program-transform-nam=* |
--program-transform-na=* \
1278 |
--program-transform-n=* |
--program-transform-=* \
1279 |
--program-transform=* |
--program-transfor=* \
1280 |
--program-transfo=* |
--program-transf=* \
1281 |
--program-trans=* |
--program-tran=* \
1282 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1283 program_transform_name
=$ac_optarg ;;
1285 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1287 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1288 pdfdir
=$ac_optarg ;;
1290 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1292 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1296 |
-silent |
--silent |
--silen |
--sile |
--sil)
1299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1303 sbindir
=$ac_optarg ;;
1305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1309 ac_prev
=sharedstatedir
;;
1310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1314 sharedstatedir
=$ac_optarg ;;
1316 -site |
--site |
--sit)
1318 -site=* |
--site=* |
--sit=*)
1321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1323 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1324 srcdir
=$ac_optarg ;;
1326 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1327 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1328 ac_prev
=sysconfdir
;;
1329 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1330 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1331 sysconfdir
=$ac_optarg ;;
1333 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1334 ac_prev
=target_alias
;;
1335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1336 target_alias
=$ac_optarg ;;
1338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1341 -version |
--version |
--versio |
--versi |
--vers |
-V)
1342 ac_init_version
=: ;;
1345 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1348 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1349 { (exit 1); exit 1; }; }
1350 ac_useropt_orig
=$ac_useropt
1351 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1356 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1357 ac_unrecognized_sep
=', ';;
1359 eval with_
$ac_useropt=\
$ac_optarg ;;
1361 -without-* |
--without-*)
1362 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1365 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1366 { (exit 1); exit 1; }; }
1367 ac_useropt_orig
=$ac_useropt
1368 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1373 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1374 ac_unrecognized_sep
=', ';;
1376 eval with_
$ac_useropt=no
;;
1379 # Obsolete; use --with-x.
1382 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1383 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1384 ac_prev
=x_includes
;;
1385 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1386 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1387 x_includes
=$ac_optarg ;;
1389 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1390 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1391 ac_prev
=x_libraries
;;
1392 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1393 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1394 x_libraries
=$ac_optarg ;;
1396 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1397 Try \`$0 --help' for more information." >&2
1398 { (exit 1); exit 1; }; }
1402 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1405 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406 { (exit 1); exit 1; }; }
1407 eval $ac_envvar=\
$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1414 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1421 if test -n "$ac_prev"; then
1422 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1423 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1424 { (exit 1); exit 1; }; }
1427 if test -n "$ac_unrecognized_opts"; then
1428 case $enable_option_checking in
1430 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1431 { (exit 1); exit 1; }; } ;;
1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436 # Check all directory arguments for consistency.
1437 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1438 datadir sysconfdir sharedstatedir localstatedir includedir \
1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1440 libdir localedir mandir
1442 eval ac_val
=\$
$ac_var
1443 # Remove trailing slashes.
1446 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1447 eval $ac_var=\
$ac_val;;
1449 # Be sure to have absolute directory names.
1451 [\\/$
]* | ?
:[\\/]* ) continue;;
1452 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1454 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1455 { (exit 1); exit 1; }; }
1458 # There might be people who depend on the old broken behavior: `$host'
1459 # used to hold the argument of --host etc.
1460 # FIXME: To remove some day.
1463 target
=$target_alias
1465 # FIXME: To remove some day.
1466 if test "x$host_alias" != x
; then
1467 if test "x$build_alias" = x
; then
1468 cross_compiling
=maybe
1469 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1470 If a cross compiler is detected then cross compile mode will be used." >&2
1471 elif test "x$build_alias" != "x$host_alias"; then
1477 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1479 test "$silent" = yes && exec 6>/dev
/null
1482 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1483 ac_ls_di
=`ls -di .` &&
1484 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1485 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1486 { (exit 1); exit 1; }; }
1487 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1488 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1489 { (exit 1); exit 1; }; }
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494 ac_srcdir_defaulted
=yes
1495 # Try the directory containing this script, then the parent directory.
1496 ac_confdir
=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498 X"$as_myself" : 'X\(//\)[^/]' \| \
1499 X"$as_myself" : 'X\(//\)$' \| \
1500 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1524 ac_srcdir_defaulted
=no
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1528 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1529 { (exit 1); exit 1; }; }
1531 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1534 { (exit 1); exit 1; }; }
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1544 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1546 for ac_var
in $ac_precious_vars; do
1547 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1548 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1549 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1550 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1554 # Report the --help message.
1556 if test "$ac_init_help" = "long"; then
1557 # Omit some internal or obsolete options to make the list less imposing.
1558 # This message is too long to be a string in the A/UX 3.1 sh.
1560 \`configure' configures this package to adapt to many kinds of systems.
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE. See below for descriptions of some of the useful variables.
1567 Defaults for the options are specified in brackets.
1570 -h, --help display this help and exit
1571 --help=short display options specific to this package
1572 --help=recursive display the short help of all the included packages
1573 -V, --version display version information and exit
1574 -q, --quiet, --silent do not print \`checking...' messages
1575 --cache-file=FILE cache test results in FILE [disabled]
1576 -C, --config-cache alias for \`--cache-file=config.cache'
1577 -n, --no-create do not create output files
1578 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1580 Installation directories:
1581 --prefix=PREFIX install architecture-independent files in PREFIX
1582 [$ac_default_prefix]
1583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1591 For better control, use the options below.
1593 Fine tuning of the installation directories:
1594 --bindir=DIR user executables [EPREFIX/bin]
1595 --sbindir=DIR system admin executables [EPREFIX/sbin]
1596 --libexecdir=DIR program executables [EPREFIX/libexec]
1597 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1598 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1599 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1600 --libdir=DIR object code libraries [EPREFIX/lib]
1601 --includedir=DIR C header files [PREFIX/include]
1602 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1603 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1604 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1605 --infodir=DIR info documentation [DATAROOTDIR/info]
1606 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1607 --mandir=DIR man documentation [DATAROOTDIR/man]
1608 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1609 --htmldir=DIR html documentation [DOCDIR]
1610 --dvidir=DIR dvi documentation [DOCDIR]
1611 --pdfdir=DIR pdf documentation [DOCDIR]
1612 --psdir=DIR ps documentation [DOCDIR]
1618 --program-prefix=PREFIX prepend PREFIX to installed program names
1619 --program-suffix=SUFFIX append SUFFIX to installed program names
1620 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1623 --build=BUILD configure
for building on BUILD
[guessed
]
1624 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1625 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1629 if test -n "$ac_init_help"; then
1634 --disable-option-checking ignore unrecognized
--enable/--with options
1635 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1636 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1637 --enable-maintainer-mode enable make rules and dependencies not useful
1638 (and sometimes confusing
) to the casual installer
1639 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1640 --disable-silent-rules verbose build output (undo: `make V
=0')
1641 --disable-dependency-tracking speeds up one-time build
1642 --enable-dependency-tracking do not reject slow dependency extractors
1643 --enable-shared[=PKGS] build shared libraries [default=yes]
1644 --enable-static[=PKGS] build static libraries [default=yes]
1645 --enable-fast-install[=PKGS]
1646 optimize for fast installation [default=yes]
1647 --disable-libtool-lock avoid locking (might break parallel builds)
1648 --enable-linux-builtin Configure for builtin in-tree kernel modules
1650 --enable-debug Enable generic debug support [default=no]
1651 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1656 --with-pic try to use only PIC/non-PIC objects [default=use
1658 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1659 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1660 --with-linux=PATH Path to kernel source
1661 --with-linux-obj=PATH Path to kernel build objects
1662 --with-spl=PATH Path to spl source
1663 --with-spl-obj=PATH Path to spl build objects
1664 --with-spl-timeout=SECS Wait SECS for symvers file to appear [default=0]
1665 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1666 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1667 --with-blkid support blkid caching [default=check]
1668 --with-selinux support selinux [default=check]
1670 Some influential environment variables:
1671 CC C compiler command
1672 CFLAGS C compiler flags
1673 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1674 nonstandard directory <lib dir>
1675 LIBS libraries to pass to the linker, e.g. -l<library>
1676 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1677 you have headers in a nonstandard directory <include dir>
1679 CCAS assembler compiler command (defaults to CC)
1680 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1682 Use these variables to override the choices made by `configure' or to
help
1683 it to
find libraries and programs with nonstandard names
/locations.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1698 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1700 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1705 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir
=$ac_pwd
1709 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir
=$ac_top_build_prefix
1714 .
) # We are building in place.
1716 ac_top_srcdir
=$ac_top_builddir_sub
1717 ac_abs_top_srcdir
=$ac_pwd ;;
1718 [\\/]* | ?
:[\\/]* ) # Absolute name.
1719 ac_srcdir
=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir
=$srcdir
1721 ac_abs_top_srcdir
=$srcdir ;;
1723 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1730 # Check for guested configure.
1731 if test -f "$ac_srcdir/configure.gnu"; then
1733 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1734 elif test -f "$ac_srcdir/configure"; then
1736 $SHELL "$ac_srcdir/configure" --help=recursive
1738 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1744 test -n "$ac_init_help" && exit $ac_status
1745 if $ac_init_version; then
1748 generated by GNU Autoconf
2.63
1750 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1751 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1752 This configure
script is free software
; the Free Software Foundation
1753 gives unlimited permission to copy
, distribute and modify it.
1757 cat >config.log
<<_ACEOF
1758 This file contains any messages produced by compilers while
1759 running configure, to aid debugging if configure makes a mistake.
1761 It was created by $as_me, which was
1762 generated by GNU Autoconf 2.63. Invocation command line was
1774 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1775 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1776 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1777 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1778 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1780 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1781 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1783 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1784 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1785 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1786 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1787 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1788 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1789 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir
=.
1798 $as_echo "PATH: $as_dir"
1814 # Keep a trace of the command line.
1815 # Strip out --no-create and --no-recursion so they do not pile up.
1816 # Strip out --silent because we don't want to record it for future runs.
1817 # Also quote any args containing shell meta-characters.
1818 # Make two passes to allow for proper duplicate-argument suppression.
1822 ac_must_keep_next
=false
1828 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1829 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1830 |
-silent |
--silent |
--silen |
--sile |
--sil)
1833 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1838 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1839 if test $ac_must_keep_next = true
; then
1840 ac_must_keep_next
=false
# Got value, back to normal.
1843 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1844 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1845 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1846 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1847 case "$ac_configure_args0 " in
1848 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 -* ) ac_must_keep_next
=true
;;
1854 ac_configure_args
="$ac_configure_args '$ac_arg'"
1859 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1860 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1862 # When interrupted or exit'd, cleanup temporary files, and complete
1863 # config.log. We remove comments because anyway the quotes in there
1864 # would cause problems or look ugly.
1865 # WARNING: Use '\'' to represent an apostrophe within the trap.
1866 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1867 trap 'exit_status=$?
1868 # Save into config.log some information that might help in debugging.
1873 ## ---------------- ##
1874 ## Cache variables. ##
1875 ## ---------------- ##
1878 # The following way of writing the cache mishandles newlines in values,
1880 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1881 eval ac_val=\$$ac_var
1885 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 _ | IFS | as_nl) ;; #(
1890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1891 *) $as_unset $ac_var ;;
1896 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1897 *${as_nl}ac_space=\ *)
1899 "s/'\''/'\''\\\\'\'''\''/g;
1900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1911 ## ----------------- ##
1912 ## Output variables. ##
1913 ## ----------------- ##
1916 for ac_var in $ac_subst_vars
1918 eval ac_val=\$$ac_var
1920 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922 $as_echo "$ac_var='\''$ac_val'\''"
1926 if test -n "$ac_subst_files"; then
1928 ## ------------------- ##
1929 ## File substitutions. ##
1930 ## ------------------- ##
1933 for ac_var
in $ac_subst_files
1935 eval ac_val
=\$
$ac_var
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939 $as_echo "$ac_var='\''$ac_val'\''"
1944 if test -s confdefs.h; then
1954 test "$ac_signal" != 0 &&
1955 $as_echo "$as_me: caught signal $ac_signal"
1956 $as_echo "$as_me: exit $exit_status"
1958 rm -f core *.core core.conftest.* &&
1959 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1962 for ac_signal
in 1 2 13 15; do
1963 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1967 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1968 rm -f -r conftest
* confdefs.h
1970 # Predefined preprocessor variables.
1972 cat >>confdefs.h
<<_ACEOF
1973 #define PACKAGE_NAME "$PACKAGE_NAME"
1977 cat >>confdefs.h
<<_ACEOF
1978 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982 cat >>confdefs.h
<<_ACEOF
1983 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1987 cat >>confdefs.h
<<_ACEOF
1988 #define PACKAGE_STRING "$PACKAGE_STRING"
1992 cat >>confdefs.h
<<_ACEOF
1993 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1997 # Let the site file select an alternate cache file if it wants to.
1998 # Prefer an explicitly selected file to automatically selected ones.
2001 if test -n "$CONFIG_SITE"; then
2002 ac_site_file1
=$CONFIG_SITE
2003 elif test "x$prefix" != xNONE
; then
2004 ac_site_file1
=$prefix/share
/config.site
2005 ac_site_file2
=$prefix/etc
/config.site
2007 ac_site_file1
=$ac_default_prefix/share
/config.site
2008 ac_site_file2
=$ac_default_prefix/etc
/config.site
2010 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2012 test "x$ac_site_file" = xNONE
&& continue
2013 if test -r "$ac_site_file"; then
2014 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2016 sed 's/^/| /' "$ac_site_file" >&5
2021 if test -r "$cache_file"; then
2022 # Some versions of bash will fail to source /dev/null (special
2023 # files actually), so we avoid doing that.
2024 if test -f "$cache_file"; then
2025 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2026 $as_echo "$as_me: loading cache $cache_file" >&6;}
2028 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2029 *) .
"./$cache_file";;
2033 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2034 $as_echo "$as_me: creating cache $cache_file" >&6;}
2038 # Check that the precious variables saved in the cache have kept the same
2040 ac_cache_corrupted
=false
2041 for ac_var
in $ac_precious_vars; do
2042 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2043 eval ac_new_set
=\
$ac_env_${ac_var}_set
2044 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2045 eval ac_new_val
=\
$ac_env_${ac_var}_value
2046 case $ac_old_set,$ac_new_set in
2048 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2049 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2050 ac_cache_corrupted
=: ;;
2052 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2053 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2054 ac_cache_corrupted
=: ;;
2057 if test "x$ac_old_val" != "x$ac_new_val"; then
2058 # differences in whitespace do not lead to failure.
2059 ac_old_val_w
=`echo x $ac_old_val`
2060 ac_new_val_w
=`echo x $ac_new_val`
2061 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2062 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2063 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2064 ac_cache_corrupted
=:
2066 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2067 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2068 eval $ac_var=\
$ac_old_val
2070 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2071 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2072 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2073 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2076 # Pass precious variables to config.status.
2077 if test "$ac_new_set" = set; then
2079 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2080 *) ac_arg
=$ac_var=$ac_new_val ;;
2082 case " $ac_configure_args " in
2083 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2084 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2088 if $ac_cache_corrupted; then
2089 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2091 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2092 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2093 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2094 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2095 { (exit 1); exit 1; }; }
2115 ac_cpp
='$CPP $CPPFLAGS'
2116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2122 ac_cpp
='$CPP $CPPFLAGS'
2123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2132 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2133 $as_echo_n "checking metadata... " >&6; }
2136 _zfs_ac_meta_got_file
=no
2137 if test -f "$META"; then
2138 _zfs_ac_meta_got_file
=yes
2140 ZFS_META_NAME
=`perl -n\
2141 -e "BEGIN { \\$key=shift @ARGV; }"\
2142 -e "next unless s/^\s*\\$key[:=]//i;"\
2143 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2146 -e "s/^(['\"])(.*)\1/\\$2/;"\
2148 -e "END { print \\$val if defined \\$val; }"\
2149 '(?:NAME|PROJECT|PACKAGE)' $META`;
2150 if test -n "$ZFS_META_NAME"; then
2152 cat >>confdefs.h
<<_ACEOF
2153 #define ZFS_META_NAME "$ZFS_META_NAME"
2159 ZFS_META_VERSION
=`perl -n\
2160 -e "BEGIN { \\$key=shift @ARGV; }"\
2161 -e "next unless s/^\s*\\$key[:=]//i;"\
2162 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2165 -e "s/^(['\"])(.*)\1/\\$2/;"\
2167 -e "END { print \\$val if defined \\$val; }"\
2169 if test -n "$ZFS_META_VERSION"; then
2171 cat >>confdefs.h
<<_ACEOF
2172 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2178 ZFS_META_RELEASE
=`perl -n\
2179 -e "BEGIN { \\$key=shift @ARGV; }"\
2180 -e "next unless s/^\s*\\$key[:=]//i;"\
2181 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2184 -e "s/^(['\"])(.*)\1/\\$2/;"\
2186 -e "END { print \\$val if defined \\$val; }"\
2188 if test -n "$ZFS_META_RELEASE"; then
2190 cat >>confdefs.h
<<_ACEOF
2191 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2197 ZFS_META_LICENSE
=`perl -n\
2198 -e "BEGIN { \\$key=shift @ARGV; }"\
2199 -e "next unless s/^\s*\\$key[:=]//i;"\
2200 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2203 -e "s/^(['\"])(.*)\1/\\$2/;"\
2205 -e "END { print \\$val if defined \\$val; }"\
2207 if test -n "$ZFS_META_LICENSE"; then
2209 cat >>confdefs.h
<<_ACEOF
2210 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2216 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2217 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2218 test -n "$ZFS_META_RELEASE" &&
2219 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2221 cat >>confdefs.h
<<_ACEOF
2222 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2228 ZFS_META_DATA
=`perl -n\
2229 -e "BEGIN { \\$key=shift @ARGV; }"\
2230 -e "next unless s/^\s*\\$key[:=]//i;"\
2231 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2234 -e "s/^(['\"])(.*)\1/\\$2/;"\
2236 -e "END { print \\$val if defined \\$val; }"\
2238 if test -n "$ZFS_META_DATA"; then
2240 cat >>confdefs.h
<<_ACEOF
2241 #define ZFS_META_DATA "$ZFS_META_DATA"
2247 ZFS_META_AUTHOR
=`perl -n\
2248 -e "BEGIN { \\$key=shift @ARGV; }"\
2249 -e "next unless s/^\s*\\$key[:=]//i;"\
2250 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2253 -e "s/^(['\"])(.*)\1/\\$2/;"\
2255 -e "END { print \\$val if defined \\$val; }"\
2257 if test -n "$ZFS_META_AUTHOR"; then
2259 cat >>confdefs.h
<<_ACEOF
2260 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2267 ZFS_META_LT_CURRENT
=`perl -n\
2268 -e "BEGIN { \\$key=shift @ARGV; }"\
2269 -e "next unless s/^\s*\\$key[:=]//i;"\
2270 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2273 -e "s/^(['\"])(.*)\1/\\$2/;"\
2275 -e "END { print \\$val if defined \\$val; }"\
2276 'LT_CURRENT' $META`;
2277 ZFS_META_LT_REVISION
=`perl -n\
2278 -e "BEGIN { \\$key=shift @ARGV; }"\
2279 -e "next unless s/^\s*\\$key[:=]//i;"\
2280 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2283 -e "s/^(['\"])(.*)\1/\\$2/;"\
2285 -e "END { print \\$val if defined \\$val; }"\
2286 'LT_REVISION' $META`;
2287 ZFS_META_LT_AGE
=`perl -n\
2288 -e "BEGIN { \\$key=shift @ARGV; }"\
2289 -e "next unless s/^\s*\\$key[:=]//i;"\
2290 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2293 -e "s/^(['\"])(.*)\1/\\$2/;"\
2295 -e "END { print \\$val if defined \\$val; }"\
2297 if test -n "$ZFS_META_LT_CURRENT" \
2298 -o -n "$ZFS_META_LT_REVISION" \
2299 -o -n "$ZFS_META_LT_AGE"; then
2300 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2301 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2302 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2304 cat >>confdefs.h
<<_ACEOF
2305 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2309 cat >>confdefs.h
<<_ACEOF
2310 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2314 cat >>confdefs.h
<<_ACEOF
2315 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2324 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2325 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2329 for ac_dir
in config
"$srcdir"/config
; do
2330 if test -f "$ac_dir/install-sh"; then
2332 ac_install_sh
="$ac_aux_dir/install-sh -c"
2334 elif test -f "$ac_dir/install.sh"; then
2336 ac_install_sh
="$ac_aux_dir/install.sh -c"
2338 elif test -f "$ac_dir/shtool"; then
2340 ac_install_sh
="$ac_aux_dir/shtool install -c"
2344 if test -z "$ac_aux_dir"; then
2345 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2346 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2347 { (exit 1); exit 1; }; }
2350 # These three variables are undocumented and unsupported,
2351 # and are intended to be withdrawn in a future Autoconf release.
2352 # They can cause serious problems if a builder's source tree is in a directory
2353 # whose full name contains unusual characters.
2354 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2355 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2356 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2359 # Make sure we can run config.sub.
2360 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2361 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2362 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2363 { (exit 1); exit 1; }; }
2365 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2366 $as_echo_n "checking build system type... " >&6; }
2367 if test "${ac_cv_build+set}" = set; then
2368 $as_echo_n "(cached) " >&6
2370 ac_build_alias
=$build_alias
2371 test "x$ac_build_alias" = x
&&
2372 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2373 test "x$ac_build_alias" = x
&&
2374 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2375 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2376 { (exit 1); exit 1; }; }
2377 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2378 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2379 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2380 { (exit 1); exit 1; }; }
2383 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2384 $as_echo "$ac_cv_build" >&6; }
2385 case $ac_cv_build in
2387 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2388 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2389 { (exit 1); exit 1; }; };;
2392 ac_save_IFS
=$IFS; IFS
='-'
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2402 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2405 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2406 $as_echo_n "checking host system type... " >&6; }
2407 if test "${ac_cv_host+set}" = set; then
2408 $as_echo_n "(cached) " >&6
2410 if test "x$host_alias" = x
; then
2411 ac_cv_host
=$ac_cv_build
2413 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2415 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2416 { (exit 1); exit 1; }; }
2420 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2424 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2425 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2426 { (exit 1); exit 1; }; };;
2429 ac_save_IFS
=$IFS; IFS
='-'
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2439 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2442 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2443 $as_echo_n "checking target system type... " >&6; }
2444 if test "${ac_cv_target+set}" = set; then
2445 $as_echo_n "(cached) " >&6
2447 if test "x$target_alias" = x
; then
2448 ac_cv_target
=$ac_cv_host
2450 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2451 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2452 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2453 { (exit 1); exit 1; }; }
2457 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2458 $as_echo "$ac_cv_target" >&6; }
2459 case $ac_cv_target in
2461 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2462 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2463 { (exit 1); exit 1; }; };;
2465 target
=$ac_cv_target
2466 ac_save_IFS
=$IFS; IFS
='-'
2472 # Remember, the first character of IFS is used to create $*,
2473 # except with old shells:
2476 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2479 # The aliases save the names the user supplied, while $host etc.
2480 # will get canonicalized.
2481 test -n "$target_alias" &&
2482 test "$program_prefix$program_suffix$program_transform_name" = \
2484 program_prefix
=${target_alias}-
2486 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2487 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2488 # Check whether --enable-maintainer-mode was given.
2489 if test "${enable_maintainer_mode+set}" = set; then
2490 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2492 USE_MAINTAINER_MODE
=no
2495 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2496 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2497 if test $USE_MAINTAINER_MODE = yes; then
2498 MAINTAINER_MODE_TRUE
=
2499 MAINTAINER_MODE_FALSE
='#'
2501 MAINTAINER_MODE_TRUE
='#'
2502 MAINTAINER_MODE_FALSE
=
2505 MAINT
=$MAINTAINER_MODE_TRUE
2508 # Check whether --enable-silent-rules was given.
2509 if test "${enable_silent_rules+set}" = set; then
2510 enableval
=$enable_silent_rules;
2513 case $enable_silent_rules in
2514 yes) AM_DEFAULT_VERBOSITY
=0;;
2515 no
) AM_DEFAULT_VERBOSITY
=1;;
2516 *) AM_DEFAULT_VERBOSITY
=1;;
2520 am__api_version='1.11'
2522 # Find a good install program. We prefer a C program (faster),
2523 # so one script is as good as another. But avoid the broken or
2524 # incompatible versions:
2525 # SysV /etc/install, /usr/sbin/install
2526 # SunOS /usr/etc/install
2527 # IRIX /sbin/install
2529 # AmigaOS /C/install, which installs bootblocks on floppy discs
2530 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2533 # OS/2's system install, which has a completely different semantic
2534 # ./install, which can be erroneously created by make from ./install.sh.
2535 # Reject install programs that cannot install multiple files.
2536 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2538 if test -z "$INSTALL"; then
2539 if test "${ac_cv_path_install+set}" = set; then
2540 $as_echo_n "(cached) " >&6
2542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir
=.
2547 # Account for people who put trailing slashes in PATH elements.
2549 .
/ | .
// |
/cC
/* | \
2550 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2551 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2554 # OSF1 and SCO ODT 3.0 have their own names for install.
2555 # Don't use installbsd from OSF since it installs stuff as root
2557 for ac_prog
in ginstall scoinst
install; do
2558 for ac_exec_ext
in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2560 if test $ac_prog = install &&
2561 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2562 # AIX install. It has an incompatible calling convention.
2564 elif test $ac_prog = install &&
2565 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2566 # program-specific install script used by HP pwplus--don't use.
2569 rm -rf conftest.one conftest.two conftest.dir
2570 echo one
> conftest.one
2571 echo two
> conftest.two
2573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2574 test -s conftest.one
&& test -s conftest.two
&&
2575 test -s conftest.dir
/conftest.one
&&
2576 test -s conftest.dir
/conftest.two
2578 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2591 rm -rf conftest.one conftest.two conftest.dir
2594 if test "${ac_cv_path_install+set}" = set; then
2595 INSTALL
=$ac_cv_path_install
2597 # As a last resort, use the slow shell script. Don't cache a
2598 # value for INSTALL within a source directory, because that will
2599 # break other packages using the cache if that directory is
2600 # removed, or if the value is a relative name.
2601 INSTALL
=$ac_install_sh
2604 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2605 $as_echo "$INSTALL" >&6; }
2607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2608 # It thinks the first close brace ends the variable substitution.
2609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2613 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2615 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2616 $as_echo_n "checking whether build environment is sane... " >&6; }
2619 echo timestamp
> conftest.
file
2620 # Reject unsafe characters in $srcdir or the absolute working directory
2621 # name. Accept space and tab only in the latter.
2625 *[\\\"\
#\$\&\'\`$am_lf]*)
2626 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2627 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2628 { (exit 1); exit 1; }; };;
2631 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2632 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2633 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2634 { (exit 1); exit 1; }; };;
2637 # Do `set' in a subshell so we don't clobber the current shell's
2638 # arguments. Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2643 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644 if test "$*" = "X"; then
2646 set X
`ls -t "$srcdir/configure" conftest.file`
2649 if test "$*" != "X $srcdir/configure conftest.file" \
2650 && test "$*" != "X conftest.file $srcdir/configure"; then
2652 # If neither matched, then we have a broken ls. This can happen
2653 # if, for instance, CONFIG_SHELL is bash and it inherits a
2654 # broken ls alias from the environment. This has actually
2655 # happened. Such a system could not be considered "sane".
2656 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2657 alias in your environment" >&5
2658 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2659 alias in your environment" >&2;}
2660 { (exit 1); exit 1; }; }
2663 test "$2" = conftest.
file
2669 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2670 Check your system clock" >&5
2671 $as_echo "$as_me: error: newly created file is older than distributed files!
2672 Check your system clock" >&2;}
2673 { (exit 1); exit 1; }; }
2675 { $as_echo "$as_me:$LINENO: result: yes" >&5
2676 $as_echo "yes" >&6; }
2677 test "$program_prefix" != NONE
&&
2678 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2679 # Use a double $ so make ignores it.
2680 test "$program_suffix" != NONE
&&
2681 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2682 # Double any \ or $.
2683 # By default was `s,x,x', remove it if useless.
2684 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2685 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2687 # expand $ac_aux_dir to an absolute path
2688 am_aux_dir
=`cd $ac_aux_dir && pwd`
2690 if test x
"${MISSING+set}" != xset
; then
2693 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2695 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2698 # Use eval to expand $SHELL
2699 if eval "$MISSING --run true"; then
2700 am_missing_run
="$MISSING --run "
2703 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2704 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2707 if test x
"${install_sh}" != xset
; then
2710 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2712 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2716 # Installed binaries are usually stripped using `strip' when the user
2717 # run `make install-strip'. However `strip' might not be the right
2718 # tool to use in cross-compilation environments, therefore Automake
2719 # will honor the `STRIP' environment variable to overrule this program.
2720 if test "$cross_compiling" != no
; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2723 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_STRIP+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2729 if test -n "$STRIP"; then
2730 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2736 test -z "$as_dir" && as_dir
=.
2737 for ac_exec_ext
in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 STRIP
=$ac_cv_prog_STRIP
2750 if test -n "$STRIP"; then
2751 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2752 $as_echo "$STRIP" >&6; }
2754 { $as_echo "$as_me:$LINENO: result: no" >&5
2755 $as_echo "no" >&6; }
2760 if test -z "$ac_cv_prog_STRIP"; then
2762 # Extract the first word of "strip", so it can be a program name with args.
2763 set dummy strip
; ac_word
=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$ac_ct_STRIP"; then
2770 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2772 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir
=.
2777 for ac_exec_ext
in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_ac_ct_STRIP
="strip"
2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2790 if test -n "$ac_ct_STRIP"; then
2791 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2792 $as_echo "$ac_ct_STRIP" >&6; }
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795 $as_echo "no" >&6; }
2798 if test "x$ac_ct_STRIP" = x
; then
2801 case $cross_compiling:$ac_tool_warned in
2803 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2805 ac_tool_warned
=yes ;;
2810 STRIP
="$ac_cv_prog_STRIP"
2814 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2816 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2817 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2818 if test -z "$MKDIR_P"; then
2819 if test "${ac_cv_path_mkdir+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2823 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_prog
in mkdir gmkdir
; do
2828 for ac_exec_ext
in '' $ac_executable_extensions; do
2829 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2830 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2831 'mkdir (GNU coreutils) '* | \
2832 'mkdir (coreutils) '* | \
2833 'mkdir (fileutils) '4.1*)
2834 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2844 if test "${ac_cv_path_mkdir+set}" = set; then
2845 MKDIR_P
="$ac_cv_path_mkdir -p"
2847 # As a last resort, use the slow shell script. Don't cache a
2848 # value for MKDIR_P within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the value is a relative name.
2851 test -d .
/--version && rmdir .
/--version
2852 MKDIR_P
="$ac_install_sh -d"
2855 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2856 $as_echo "$MKDIR_P" >&6; }
2860 [\\/$
]* | ?
:[\\/]*) ;;
2861 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2864 for ac_prog
in gawk mawk nawk
awk
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy
$ac_prog; ac_word
=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_AWK+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2873 if test -n "$AWK"; then
2874 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir
=.
2881 for ac_exec_ext
in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_AWK
="$ac_prog"
2884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$AWK"; then
2895 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2896 $as_echo "$AWK" >&6; }
2898 { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2903 test -n "$AWK" && break
2906 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2907 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2909 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2910 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2911 $as_echo_n "(cached) " >&6
2913 cat >conftest.
make <<\_ACEOF
2916 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2919 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2921 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2923 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2927 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2928 { $as_echo "$as_me:$LINENO: result: yes" >&5
2929 $as_echo "yes" >&6; }
2932 { $as_echo "$as_me:$LINENO: result: no" >&5
2933 $as_echo "no" >&6; }
2934 SET_MAKE
="MAKE=${MAKE-make}"
2937 rm -rf .tst
2>/dev
/null
2938 mkdir .tst
2>/dev
/null
2939 if test -d .tst
; then
2944 rmdir .tst
2>/dev
/null
2946 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2947 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2948 # is not polluted with repeated "-I."
2949 am__isrc
=' -I$(srcdir)'
2950 # test to see if srcdir already configured
2951 if test -f $srcdir/config.status
; then
2952 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2953 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2954 { (exit 1); exit 1; }; }
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2961 CYGPATH_W
='cygpath -w'
2968 # Define the identity of the package.
2969 PACKAGE
=$ZFS_META_NAME
2970 VERSION
=$ZFS_META_VERSION
2973 cat >>confdefs.h
<<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2978 cat >>confdefs.h
<<_ACEOF
2979 #define VERSION "$VERSION"
2982 # Some tools Automake needs.
2984 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2987 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2990 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2993 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2996 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2998 # We need awk for the "check" target. The system "awk" is bad on
3000 # Always define AMTAR for backward compatibility.
3002 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3004 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3010 ac_config_headers
="$ac_config_headers zfs_config.h"
3013 # Find a good install program. We prefer a C program (faster),
3014 # so one script is as good as another. But avoid the broken or
3015 # incompatible versions:
3016 # SysV /etc/install, /usr/sbin/install
3017 # SunOS /usr/etc/install
3018 # IRIX /sbin/install
3020 # AmigaOS /C/install, which installs bootblocks on floppy discs
3021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3024 # OS/2's system install, which has a completely different semantic
3025 # ./install, which can be erroneously created by make from ./install.sh.
3026 # Reject install programs that cannot install multiple files.
3027 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3028 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3029 if test -z "$INSTALL"; then
3030 if test "${ac_cv_path_install+set}" = set; then
3031 $as_echo_n "(cached) " >&6
3033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir
=.
3038 # Account for people who put trailing slashes in PATH elements.
3040 .
/ | .
// |
/cC
/* | \
3041 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3042 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3045 # OSF1 and SCO ODT 3.0 have their own names for install.
3046 # Don't use installbsd from OSF since it installs stuff as root
3048 for ac_prog
in ginstall scoinst
install; do
3049 for ac_exec_ext
in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3051 if test $ac_prog = install &&
3052 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3053 # AIX install. It has an incompatible calling convention.
3055 elif test $ac_prog = install &&
3056 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3057 # program-specific install script used by HP pwplus--don't use.
3060 rm -rf conftest.one conftest.two conftest.dir
3061 echo one
> conftest.one
3062 echo two
> conftest.two
3064 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3065 test -s conftest.one
&& test -s conftest.two
&&
3066 test -s conftest.dir
/conftest.one
&&
3067 test -s conftest.dir
/conftest.two
3069 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3082 rm -rf conftest.one conftest.two conftest.dir
3085 if test "${ac_cv_path_install+set}" = set; then
3086 INSTALL
=$ac_cv_path_install
3088 # As a last resort, use the slow shell script. Don't cache a
3089 # value for INSTALL within a source directory, because that will
3090 # break other packages using the cache if that directory is
3091 # removed, or if the value is a relative name.
3092 INSTALL
=$ac_install_sh
3095 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3096 $as_echo "$INSTALL" >&6; }
3098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3099 # It thinks the first close brace ends the variable substitution.
3100 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3102 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3104 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3107 ac_cpp
='$CPP $CPPFLAGS'
3108 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3113 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_CC+set}" = set; then
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC
="$CC" # Let the user override the test.
3122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir
=.
3127 for ac_exec_ext
in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3144 { $as_echo "$as_me:$LINENO: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$ac_cv_prog_CC"; then
3152 # Extract the first word of "gcc", so it can be a program name with args.
3153 set dummy gcc
; ac_word
=$2
3154 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC
="gcc"
3170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 $as_echo "$ac_ct_CC" >&6; }
3184 { $as_echo "$as_me:$LINENO: result: no" >&5
3185 $as_echo "no" >&6; }
3188 if test "x$ac_ct_CC" = x
; then
3191 case $cross_compiling:$ac_tool_warned in
3193 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned
=yes ;;
3203 if test -z "$CC"; then
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3206 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_prog_CC+set}" = set; then
3210 $as_echo_n "(cached) " >&6
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC
="$CC" # Let the user override the test.
3215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3219 test -z "$as_dir" && as_dir
=.
3220 for ac_exec_ext
in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3237 { $as_echo "$as_me:$LINENO: result: no" >&5
3238 $as_echo "no" >&6; }
3244 if test -z "$CC"; then
3245 # Extract the first word of "cc", so it can be a program name with args.
3246 set dummy cc
; ac_word
=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC
="$CC" # Let the user override the test.
3256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir
=.
3261 for ac_exec_ext
in '' $ac_executable_extensions; do
3262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3263 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3264 ac_prog_rejected
=yes
3268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 if test $ac_prog_rejected = yes; then
3276 # We found a bogon in the path, so make sure we never use it.
3277 set dummy
$ac_cv_prog_CC
3279 if test $# != 0; then
3280 # We chose a different compiler from the bogus one.
3281 # However, it has the same basename, so the bogon will be chosen
3282 # first if we set CC to just the basename; use the full file name.
3284 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3294 { $as_echo "$as_me:$LINENO: result: no" >&5
3295 $as_echo "no" >&6; }
3300 if test -z "$CC"; then
3301 if test -n "$ac_tool_prefix"; then
3302 for ac_prog
in cl.exe
3304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3305 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then
3309 $as_echo_n "(cached) " >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC
="$CC" # Let the user override the test.
3314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir
=.
3319 for ac_exec_ext
in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3336 { $as_echo "$as_me:$LINENO: result: no" >&5
3337 $as_echo "no" >&6; }
3341 test -n "$CC" && break
3344 if test -z "$CC"; then
3346 for ac_prog
in cl.exe
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy
$ac_prog; ac_word
=$2
3350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 $as_echo_n "checking for $ac_word... " >&6; }
3352 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3355 if test -n "$ac_ct_CC"; then
3356 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir
=.
3363 for ac_exec_ext
in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_ac_ct_CC
="$ac_prog"
3366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3376 if test -n "$ac_ct_CC"; then
3377 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3378 $as_echo "$ac_ct_CC" >&6; }
3380 { $as_echo "$as_me:$LINENO: result: no" >&5
3381 $as_echo "no" >&6; }
3385 test -n "$ac_ct_CC" && break
3388 if test "x$ac_ct_CC" = x
; then
3391 case $cross_compiling:$ac_tool_warned in
3393 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3395 ac_tool_warned
=yes ;;
3404 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details." >&5
3408 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3409 See \`config.log' for more details." >&2;}
3410 { (exit 1); exit 1; }; }; }
3412 # Provide some information about the compiler.
3413 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3416 { (ac_try
="$ac_compiler --version >&5"
3418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_compiler --version >&5") 2>&5
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }
3427 { (ac_try="$ac_compiler -v >&5"
3429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3430 *) ac_try_echo
=$ac_try;;
3432 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_compiler -v >&5") 2>&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }
3438 { (ac_try
="$ac_compiler -V >&5"
3440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445 (eval "$ac_compiler -V >&5") 2>&5
3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }
3450 cat >conftest.$ac_ext <<_ACEOF
3453 cat confdefs.h >>conftest.$ac_ext
3454 cat >>conftest.$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3465 ac_clean_files_save=$ac_clean_files
3466 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3467 # Try to create an executable without -o first, disregard a.out.
3468 # It will help us diagnose broken compilers, and finding out an intuition
3470 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3471 $as_echo_n "checking for C compiler default output file name... " >&6; }
3472 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3474 # The possible output files:
3475 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3478 for ac_file in $ac_files
3481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3482 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3487 if { (ac_try="$ac_link_default"
3489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3490 *) ac_try_echo
=$ac_try;;
3492 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_link_default") 2>&5
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; then
3498 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3499 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3500 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3501 # so that the user can short-circuit this test for compilers unknown to
3503 for ac_file
in $ac_files ''
3505 test -f "$ac_file" ||
continue
3507 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3510 # We found the default executable, but exeext='' is most
3514 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3516 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518 # We set ac_cv_exeext here because the later test for it is not
3519 # safe: cross compilers may not add the suffix if given an `-o'
3520 # argument, so we may need to know it at that point already.
3521 # Even if this section looks crufty: it has the advantage of
3528 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3534 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3535 $as_echo "$ac_file" >&6; }
3536 if test -z "$ac_file"; then
3537 $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.
$ac_ext >&5
3540 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3542 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3543 See \`config.log' for more details." >&5
3544 $as_echo "$as_me: error: C compiler cannot create executables
3545 See \`config.log' for more details." >&2;}
3546 { (exit 77); exit 77; }; }; }
3549 ac_exeext
=$ac_cv_exeext
3551 # Check that the compiler produces executables we can run. If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3554 $as_echo_n "checking whether the C compiler works... " >&6; }
3555 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3556 # If not cross compiling, check that we can run a simple program.
3557 if test "$cross_compiling" != yes; then
3558 if { ac_try
='./$ac_file'
3559 { (case "(($ac_try" in
3560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3564 $as_echo "$ac_try_echo") >&5
3565 (eval "$ac_try") 2>&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3571 if test "$cross_compiling" = maybe; then
3574 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3577 If you meant to cross compile
, use \
`--host'.
3578 See \`config.log
' for more details." >&5
3579 $as_echo "$as_me: error: cannot run C compiled programs.
3580 If you meant to cross compile, use \`--host'.
3581 See \
`config.log' for more details." >&2;}
3582 { (exit 1); exit 1; }; }; }
3586 { $as_echo "$as_me:$LINENO: result: yes" >&5
3587 $as_echo "yes" >&6; }
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3590 ac_clean_files=$ac_clean_files_save
3591 # Check that the compiler produces executables we can run. If not, either
3592 # the compiler is broken, or we cross compile.
3593 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3594 $as_echo_n "checking whether we are cross compiling... " >&6; }
3595 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3598 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3599 $as_echo_n "checking for suffix of executables... " >&6; }
3600 if { (ac_try="$ac_link"
3602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3603 *) ac_try_echo
=$ac_try;;
3605 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3606 $as_echo "$ac_try_echo") >&5
3607 (eval "$ac_link") 2>&5
3609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; then
3611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3613 # work properly (i.e., refer to `conftest.exe'), while it won't with
3615 for ac_file
in conftest.exe conftest conftest.
*; do
3616 test -f "$ac_file" ||
continue
3618 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3619 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details." >&5
3629 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3630 See \`config.log' for more details." >&2;}
3631 { (exit 1); exit 1; }; }; }
3634 rm -f conftest
$ac_cv_exeext
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3636 $as_echo "$ac_cv_exeext" >&6; }
3638 rm -f conftest.
$ac_ext
3639 EXEEXT
=$ac_cv_exeext
3641 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3642 $as_echo_n "checking for suffix of object files... " >&6; }
3643 if test "${ac_cv_objext+set}" = set; then
3644 $as_echo_n "(cached) " >&6
3646 cat >conftest.
$ac_ext <<_ACEOF
3649 cat confdefs.h
>>conftest.
$ac_ext
3650 cat >>conftest.
$ac_ext <<_ACEOF
3651 /* end confdefs.h. */
3661 rm -f conftest.o conftest.obj
3662 if { (ac_try
="$ac_compile"
3664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669 (eval "$ac_compile") 2>&5
3671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; then
3673 for ac_file in conftest.o conftest.obj conftest.*; do
3674 test -f "$ac_file" || continue;
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3677 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3688 See \
`config.log' for more details." >&5
3689 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3690 See \`config.log
' for more details." >&2;}
3691 { (exit 1); exit 1; }; }; }
3694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3696 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3697 $as_echo "$ac_cv_objext" >&6; }
3698 OBJEXT=$ac_cv_objext
3700 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3702 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3703 $as_echo_n "(cached) " >&6
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3723 rm -f conftest.$ac_objext
3724 if { (ac_try="$ac_compile"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3730 $as_echo "$ac_try_echo") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^
*+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3743 $as_echo "$as_me: failed program was:" >&5
3744 sed 's
/^
/|
/' conftest.$ac_ext >&5
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3755 if test $ac_compiler_gnu = yes; then
3760 ac_test_CFLAGS=${CFLAGS+set}
3761 ac_save_CFLAGS=$CFLAGS
3762 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3764 if test "${ac_cv_prog_cc_g+set}" = set; then
3765 $as_echo_n "(cached) " >&6
3767 ac_save_c_werror_flag=$ac_c_werror_flag
3768 ac_c_werror_flag=yes
3771 cat >conftest.$ac_ext <<_ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3796 grep -v '^
*+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's
/^
/|
/' conftest.$ac_ext >&5
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3825 rm -f conftest.$ac_objext
3826 if { (ac_try="$ac_compile"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^
*+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's
/^
/|
/' conftest.$ac_ext >&5
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3872 $as_echo "$ac_try_echo") >&5
3873 (eval "$ac_compile") 2>conftest.er1
3875 grep -v '^
*+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest.$ac_objext; then
3885 $as_echo "$as_me: failed program was:" >&5
3886 sed 's
/^
/|
/' conftest.$ac_ext >&5
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_c_werror_flag=$ac_save_c_werror_flag
3900 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3901 $as_echo "$ac_cv_prog_cc_g" >&6; }
3902 if test "$ac_test_CFLAGS" = set; then
3903 CFLAGS=$ac_save_CFLAGS
3904 elif test $ac_cv_prog_cc_g = yes; then
3905 if test "$GCC" = yes; then
3911 if test "$GCC" = yes; then
3917 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3919 if test "${ac_cv_prog_cc_c89+set}" = set; then
3920 $as_echo_n "(cached) " >&6
3922 ac_cv_prog_cc_c89=no
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 #include <sys/types.h>
3933 #include <sys/stat.h>
3934 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3935 struct buf
{ int x
; };
3936 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3937 static char
*e
(p
, i
)
3943 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3948 s
= g
(p
, va_arg
(v
,int
));
3953 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3954 function prototypes and stuff
, but not
'\xHH' hex character constants.
3955 These don
't provoke an error unfortunately, instead are silently treated
3956 as 'x
'. The following induces an error, until -std is added to get
3957 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3958 array size at least. It's necessary to
write '\x00'==0 to get something
3959 that
's true only with -std. */
3960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3963 inside strings and character constants. */
3965 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3967 int test (int i, double x);
3968 struct s1 {int (*f) (int a);};
3969 struct s2 {int (*f) (double a);};
3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3984 CC="$ac_save_CC $ac_arg"
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3992 $as_echo "$ac_try_echo") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3995 grep -v '^
*+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } && {
4000 test -z "$ac_c_werror_flag" ||
4001 test ! -s conftest.err
4002 } && test -s conftest.$ac_objext; then
4003 ac_cv_prog_cc_c89=$ac_arg
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's
/^
/|
/' conftest.$ac_ext >&5
4011 rm -f core conftest.err conftest.$ac_objext
4012 test "x$ac_cv_prog_cc_c89" != "xno" && break
4014 rm -f conftest.$ac_ext
4019 case "x$ac_cv_prog_cc_c89" in
4021 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4024 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4027 CC="$CC $ac_cv_prog_cc_c89"
4028 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4036 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 DEPDIR="${am__leading_dot}deps"
4040 ac_config_commands="$ac_config_commands depfiles"
4043 am_make=${MAKE-make}
4044 cat > confinc << 'END
'
4046 @echo this is the am__doit target
4049 # If we don't
find an include directive
, just comment out the code.
4050 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4051 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4055 # First try GNU make style include.
4056 echo "include confinc" > confmf
4057 # Ignore all kinds of additional output from `make'.
4058 case `$am_make -s -f confmf 2> /dev/null` in #(
4059 *the\ am__doit\ target
*)
4065 # Now try BSD make style include.
4066 if test "$am__include" = "#"; then
4067 echo '.include "confinc"' > confmf
4068 case `$am_make -s -f confmf 2> /dev/null` in #(
4069 *the\ am__doit\ target
*)
4070 am__include
=.include
4078 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4079 $as_echo "$_am_result" >&6; }
4080 rm -f confinc confmf
4082 # Check whether --enable-dependency-tracking was given.
4083 if test "${enable_dependency_tracking+set}" = set; then
4084 enableval
=$enable_dependency_tracking;
4087 if test "x$enable_dependency_tracking" != xno
; then
4088 am_depcomp
="$ac_aux_dir/depcomp"
4091 if test "x$enable_dependency_tracking" != xno; then
4101 depcc
="$CC" am_compiler_list
=
4103 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4104 $as_echo_n "checking dependency style of $depcc... " >&6; }
4105 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4106 $as_echo_n "(cached) " >&6
4108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109 # We make a subdir and do the tests there. Otherwise we can end up
4110 # making bogus files that we don't know about and never remove. For
4111 # instance it was reported that on HP-UX the gcc test will end up
4112 # making a dummy file named `D' -- because `-MD' means `put the output
4115 # Copy depcomp to subdir because otherwise we won't find it if we're
4116 # using a relative directory.
4117 cp "$am_depcomp" conftest.dir
4119 # We will build objects and dependencies in a subdirectory because
4120 # it helps to detect inapplicable dependency modes. For instance
4121 # both Tru64's cc and ICC support -MD to output dependencies as a
4122 # side effect of compilation, but ICC will put the dependencies in
4123 # the current directory while Tru64 will put them in the object
4127 am_cv_CC_dependencies_compiler_type
=none
4128 if test "$am_compiler_list" = ""; then
4129 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4132 case " $depcc " in #(
4133 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4136 for depmode
in $am_compiler_list; do
4137 # Setup a source with many dependencies, because some compilers
4138 # like to wrap large dependency lists on column 80 (with \), and
4139 # we should not choose a depcomp mode which is confused by this.
4141 # We need to recreate these files for each test, as the compiler may
4142 # overwrite some of them when testing with obscure command lines.
4143 # This happens at least with the AIX C compiler.
4145 for i
in 1 2 3 4 5 6; do
4146 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148 # Solaris 8's {/usr,}/bin/sh.
4149 touch sub
/conftst
$i.h
4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154 # mode. It turns out that the SunPro C++ compiler does not properly
4155 # handle `-M -o', and we need to detect this. Also, some Intel
4156 # versions had trouble with output in subdirs
4157 am__obj
=sub
/conftest.
${OBJEXT-o}
4158 am__minus_obj
="-o $am__obj"
4161 # This depmode causes a compiler race in universal mode.
4162 test "$am__universal" = false ||
continue
4165 # after this tag, mechanisms are not by side-effect, so they'll
4166 # only be used when explicitly requested
4167 if test "x$enable_dependency_tracking" = xyes
; then
4173 msvisualcpp | msvcmsys
)
4174 # This compiler won't grok `-c -o', but also, the minuso test has
4175 # not run yet. These depmodes are late enough in the game, and
4176 # so weak that their functioning should not be impacted.
4177 am__obj
=conftest.
${OBJEXT-o}
4182 if depmode
=$depmode \
4183 source=sub
/conftest.c object
=$am__obj \
4184 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4185 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4186 >/dev
/null
2>conftest.err
&&
4187 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4188 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4189 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4190 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4191 # icc doesn't choke on unknown options, it will just issue warnings
4192 # or remarks (even with -Werror). So we grep stderr for any message
4193 # that says an option was ignored or not supported.
4194 # When given -MP, icc 7.0 and 7.1 complain thusly:
4195 # icc: Command line warning: ignoring option '-M'; no argument required
4196 # The diagnosis changed in icc 8.0:
4197 # icc: Command line remark: option '-MP' not supported
4198 if (grep 'ignoring option' conftest.err ||
4199 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4200 am_cv_CC_dependencies_compiler_type
=$depmode
4209 am_cv_CC_dependencies_compiler_type
=none
4213 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4214 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4215 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4218 test "x$enable_dependency_tracking" != xno \
4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4221 am__fastdepCC_FALSE
='#'
4223 am__fastdepCC_TRUE
='#'
4224 am__fastdepCC_FALSE
=
4230 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4231 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4236 macro_version
='2.2.6b'
4237 macro_revision
='1.3017'
4251 ltmain
="$ac_aux_dir/ltmain.sh"
4253 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4255 if test "${ac_cv_path_SED+set}" = set; then
4256 $as_echo_n "(cached) " >&6
4258 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4259 for ac_i
in 1 2 3 4 5 6 7; do
4260 ac_script
="$ac_script$as_nl$ac_script"
4262 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4263 $as_unset ac_script || ac_script
=
4264 if test -z "$SED"; then
4265 ac_path_SED_found
=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir
=.
4272 for ac_prog
in sed gsed
; do
4273 for ac_exec_ext
in '' $ac_executable_extensions; do
4274 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4276 # Check for GNU ac_path_SED and select it if it is found.
4277 # Check for GNU $ac_path_SED
4278 case `"$ac_path_SED" --version 2>&1` in
4280 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4283 $as_echo_n 0123456789 >"conftest.in"
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo '' >> "conftest.nl"
4290 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4291 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4292 ac_count
=`expr $ac_count + 1`
4293 if test $ac_count -gt ${ac_path_SED_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_SED
="$ac_path_SED"
4296 ac_path_SED_max
=$ac_count
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4301 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4304 $ac_path_SED_found && break 3
4309 if test -z "$ac_cv_path_SED"; then
4310 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4311 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4312 { (exit 1); exit 1; }; }
4319 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4320 $as_echo "$ac_cv_path_SED" >&6; }
4321 SED
="$ac_cv_path_SED"
4324 test -z "$SED" && SED
=sed
4325 Xsed
="$SED -e 1s/^X//"
4337 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339 if test "${ac_cv_path_GREP+set}" = set; then
4340 $as_echo_n "(cached) " >&6
4342 if test -z "$GREP"; then
4343 ac_path_GREP_found
=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4349 test -z "$as_dir" && as_dir
=.
4350 for ac_prog
in grep ggrep
; do
4351 for ac_exec_ext
in '' $ac_executable_extensions; do
4352 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4353 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355 # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4358 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4361 $as_echo_n 0123456789 >"conftest.in"
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'GREP' >> "conftest.nl"
4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4369 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4370 ac_count
=`expr $ac_count + 1`
4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_GREP
="$ac_path_GREP"
4374 ac_path_GREP_max
=$ac_count
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4379 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4382 $ac_path_GREP_found && break 3
4387 if test -z "$ac_cv_path_GREP"; then
4388 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390 { (exit 1); exit 1; }; }
4393 ac_cv_path_GREP
=$GREP
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4398 $as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP
="$ac_cv_path_GREP"
4402 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4403 $as_echo_n "checking for egrep... " >&6; }
4404 if test "${ac_cv_path_EGREP+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4407 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4408 then ac_cv_path_EGREP
="$GREP -E"
4410 if test -z "$EGREP"; then
4411 ac_path_EGREP_found
=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_prog
in egrep; do
4419 for ac_exec_ext
in '' $ac_executable_extensions; do
4420 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4421 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4422 # Check for GNU ac_path_EGREP and select it if it is found.
4423 # Check for GNU $ac_path_EGREP
4424 case `"$ac_path_EGREP" --version 2>&1` in
4426 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4429 $as_echo_n 0123456789 >"conftest.in"
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'EGREP' >> "conftest.nl"
4436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4437 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4438 ac_count
=`expr $ac_count + 1`
4439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_EGREP
="$ac_path_EGREP"
4442 ac_path_EGREP_max
=$ac_count
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4447 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4450 $ac_path_EGREP_found && break 3
4455 if test -z "$ac_cv_path_EGREP"; then
4456 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4457 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4458 { (exit 1); exit 1; }; }
4461 ac_cv_path_EGREP
=$EGREP
4466 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4467 $as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP
="$ac_cv_path_EGREP"
4471 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4472 $as_echo_n "checking for fgrep... " >&6; }
4473 if test "${ac_cv_path_FGREP+set}" = set; then
4474 $as_echo_n "(cached) " >&6
4476 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4477 then ac_cv_path_FGREP
="$GREP -F"
4479 if test -z "$FGREP"; then
4480 ac_path_FGREP_found
=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4483 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4486 test -z "$as_dir" && as_dir
=.
4487 for ac_prog
in fgrep
; do
4488 for ac_exec_ext
in '' $ac_executable_extensions; do
4489 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4490 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4491 # Check for GNU ac_path_FGREP and select it if it is found.
4492 # Check for GNU $ac_path_FGREP
4493 case `"$ac_path_FGREP" --version 2>&1` in
4495 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4498 $as_echo_n 0123456789 >"conftest.in"
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo 'FGREP' >> "conftest.nl"
4505 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4506 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4507 ac_count
=`expr $ac_count + 1`
4508 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_FGREP
="$ac_path_FGREP"
4511 ac_path_FGREP_max
=$ac_count
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4516 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4519 $ac_path_FGREP_found && break 3
4524 if test -z "$ac_cv_path_FGREP"; then
4525 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4526 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4527 { (exit 1); exit 1; }; }
4530 ac_cv_path_FGREP
=$FGREP
4535 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4536 $as_echo "$ac_cv_path_FGREP" >&6; }
4537 FGREP
="$ac_cv_path_FGREP"
4540 test -z "$GREP" && GREP
=grep
4560 # Check whether --with-gnu-ld was given.
4561 if test "${with_gnu_ld+set}" = set; then
4562 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4568 if test "$GCC" = yes; then
4569 # Check if gcc -print-prog-name=ld gives a path.
4570 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4571 $as_echo_n "checking for ld used by $CC... " >&6; }
4574 # gcc leaves a trailing carriage return which upsets mingw
4575 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4577 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4580 # Accept absolute paths.
4582 re_direlt
='/[^/][^/]*/\.\./'
4583 # Canonicalize the pathname of ld
4584 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4585 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4586 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4588 test -z "$LD" && LD
="$ac_prog"
4591 # If it fails, then pretend we aren't using GCC.
4595 # If it is relative, then search for the first ld in PATH.
4599 elif test "$with_gnu_ld" = yes; then
4600 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4601 $as_echo_n "checking for GNU ld... " >&6; }
4603 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4604 $as_echo_n "checking for non-GNU ld... " >&6; }
4606 if test "${lt_cv_path_LD+set}" = set; then
4607 $as_echo_n "(cached) " >&6
4609 if test -z "$LD"; then
4610 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4611 for ac_dir
in $PATH; do
4613 test -z "$ac_dir" && ac_dir
=.
4614 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4615 lt_cv_path_LD
="$ac_dir/$ac_prog"
4616 # Check to see if the program is GNU ld. I'd rather use --version,
4617 # but apparently some variants of GNU ld only accept -v.
4618 # Break only if it was the GNU/non-GNU ld that we prefer.
4619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4620 *GNU
* |
*'with BFD'*)
4621 test "$with_gnu_ld" != no
&& break
4624 test "$with_gnu_ld" != yes && break
4631 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4636 if test -n "$LD"; then
4637 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4638 $as_echo "$LD" >&6; }
4640 { $as_echo "$as_me:$LINENO: result: no" >&5
4641 $as_echo "no" >&6; }
4643 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4644 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4645 { (exit 1); exit 1; }; }
4646 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4648 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4652 case `$LD -v 2>&1 </dev/null` in
4653 *GNU
* |
*'with BFD'*)
4654 lt_cv_prog_gnu_ld
=yes
4657 lt_cv_prog_gnu_ld
=no
4661 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4663 with_gnu_ld
=$lt_cv_prog_gnu_ld
4673 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4674 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4675 if test "${lt_cv_path_NM+set}" = set; then
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$NM"; then
4679 # Let the user override the test.
4682 lt_nm_to_check
="${ac_tool_prefix}nm"
4683 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4684 lt_nm_to_check
="$lt_nm_to_check nm"
4686 for lt_tmp_nm
in $lt_nm_to_check; do
4687 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4688 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4690 test -z "$ac_dir" && ac_dir
=.
4691 tmp_nm
="$ac_dir/$lt_tmp_nm"
4692 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4693 # Check to see if the nm accepts a BSD-compat flag.
4694 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4695 # nm: unknown option "B" ignored
4696 # Tru64's nm complains that /dev/null is an invalid object file
4697 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4698 */dev
/null
* |
*'Invalid file or object type'*)
4699 lt_cv_path_NM
="$tmp_nm -B"
4703 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4705 lt_cv_path_NM
="$tmp_nm -p"
4709 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4710 continue # so that we can try to find one that supports BSD flags
4719 : ${lt_cv_path_NM=no}
4722 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4723 $as_echo "$lt_cv_path_NM" >&6; }
4724 if test "$lt_cv_path_NM" != "no"; then
4727 # Didn't find any BSD compatible name lister, look for dumpbin.
4728 if test -n "$ac_tool_prefix"; then
4729 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$DUMPBIN"; then
4739 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir
=.
4746 for ac_exec_ext
in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 DUMPBIN
=$ac_cv_prog_DUMPBIN
4759 if test -n "$DUMPBIN"; then
4760 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4761 $as_echo "$DUMPBIN" >&6; }
4763 { $as_echo "$as_me:$LINENO: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$DUMPBIN" && break
4771 if test -z "$DUMPBIN"; then
4772 ac_ct_DUMPBIN
=$DUMPBIN
4773 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4775 # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy
$ac_prog; ac_word
=$2
4777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$ac_ct_DUMPBIN"; then
4783 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir
=.
4790 for ac_exec_ext
in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4803 if test -n "$ac_ct_DUMPBIN"; then
4804 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4805 $as_echo "$ac_ct_DUMPBIN" >&6; }
4807 { $as_echo "$as_me:$LINENO: result: no" >&5
4808 $as_echo "no" >&6; }
4812 test -n "$ac_ct_DUMPBIN" && break
4815 if test "x$ac_ct_DUMPBIN" = x
; then
4818 case $cross_compiling:$ac_tool_warned in
4820 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned
=yes ;;
4824 DUMPBIN
=$ac_ct_DUMPBIN
4829 if test "$DUMPBIN" != ":"; then
4833 test -z "$NM" && NM
=nm
4840 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4841 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4842 if test "${lt_cv_nm_interface+set}" = set; then
4843 $as_echo_n "(cached) " >&6
4845 lt_cv_nm_interface
="BSD nm"
4846 echo "int some_variable = 0;" > conftest.
$ac_ext
4847 (eval echo "\"\$as_me:4847: $ac_compile\"" >&5)
4848 (eval "$ac_compile" 2>conftest.err
)
4849 cat conftest.err
>&5
4850 (eval echo "\"\$as_me:4850: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4851 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4852 cat conftest.err
>&5
4853 (eval echo "\"\$as_me:4853: output\"" >&5)
4854 cat conftest.out
>&5
4855 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4856 lt_cv_nm_interface
="MS dumpbin"
4860 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4861 $as_echo "$lt_cv_nm_interface" >&6; }
4863 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4864 $as_echo_n "checking whether ln -s works... " >&6; }
4866 if test "$LN_S" = "ln -s"; then
4867 { $as_echo "$as_me:$LINENO: result: yes" >&5
4868 $as_echo "yes" >&6; }
4870 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4871 $as_echo "no, using $LN_S" >&6; }
4874 # find the maximum length of command line arguments
4875 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4876 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4877 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4878 $as_echo_n "(cached) " >&6
4885 # On DJGPP, this test can blow up pretty badly due to problems in libc
4886 # (any single argument exceeding 2000 bytes causes a buffer overrun
4887 # during glob expansion). Even if it were fixed, the result of this
4888 # check would be larger than it should be.
4889 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4893 # Under GNU Hurd, this test is not required because there is
4894 # no limit to the length of command line arguments.
4895 # Libtool will interpret -1 as no limit whatsoever
4896 lt_cv_sys_max_cmd_len
=-1;
4899 cygwin
* | mingw
* | cegcc
*)
4900 # On Win9x/ME, this test blows up -- it succeeds, but takes
4901 # about 5 minutes as the teststring grows exponentially.
4902 # Worse, since 9x/ME are not pre-emptively multitasking,
4903 # you end up with a "frozen" computer, even though with patience
4904 # the test eventually succeeds (with a max line length of 256k).
4905 # Instead, let's just punt: use the minimum linelength reported by
4906 # all of the supported platforms: 8192 (on NT/2K/XP).
4907 lt_cv_sys_max_cmd_len
=8192;
4911 # On AmigaOS with pdksh, this test takes hours, literally.
4912 # So we just punt and use a minimum line length of 8192.
4913 lt_cv_sys_max_cmd_len
=8192;
4916 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4917 # This has been around since 386BSD, at least. Likely further.
4918 if test -x /sbin
/sysctl
; then
4919 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4920 elif test -x /usr
/sbin
/sysctl
; then
4921 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4923 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4925 # And add a safety zone
4926 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4927 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4931 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4932 lt_cv_sys_max_cmd_len
=196608
4936 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4937 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4938 # nice to cause kernel panics so lets avoid the loop below.
4939 # First set a reasonable default.
4940 lt_cv_sys_max_cmd_len
=16384
4942 if test -x /sbin
/sysconfig
; then
4943 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4944 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4949 lt_cv_sys_max_cmd_len
=102400
4951 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4952 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4953 if test -n "$kargmax"; then
4954 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4956 lt_cv_sys_max_cmd_len
=32768
4960 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4961 if test -n "$lt_cv_sys_max_cmd_len"; then
4962 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4963 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4965 # Make teststring a little bigger before we do anything with it.
4966 # a 1K string should be a reasonable start.
4967 for i
in 1 2 3 4 5 6 7 8 ; do
4968 teststring
=$teststring$teststring
4970 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4971 # If test is not a shell built-in, we'll probably end up computing a
4972 # maximum length that is only half of the actual maximum length, but
4974 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4975 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4976 test $i != 17 # 1/2 MB should be enough
4979 teststring
=$teststring$teststring
4981 # Only check the string length outside the loop.
4982 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4984 # Add a significant safety factor because C++ compilers can tack on
4985 # massive amounts of additional arguments before passing them to the
4986 # linker. It appears as though 1/2 is a usable value.
4987 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4994 if test -n $lt_cv_sys_max_cmd_len ; then
4995 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4996 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4998 { $as_echo "$as_me:$LINENO: result: none" >&5
4999 $as_echo "none" >&6; }
5001 max_cmd_len
=$lt_cv_sys_max_cmd_len
5012 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5013 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5014 # Try some XSI features
5017 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5019 && eval 'test $(( 1 + 1 )) -eq 2 \
5020 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5022 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5023 $as_echo "$xsi_shell" >&6; }
5026 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5027 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5029 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5031 && lt_shell_append=yes
5032 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5033 $as_echo "$lt_shell_append" >&6; }
5036 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5046 # test EBCDIC or ASCII
5047 case `echo X|tr X '\101'` in
5048 A) # ASCII based system
5049 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5050 lt_SP2NL='tr \040 \012'
5051 lt_NL2SP='tr \015\012 \040\040'
5053 *) # EBCDIC based system
5054 lt_SP2NL='tr \100 \n'
5055 lt_NL2SP='tr \r\n \100\100'
5067 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5068 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5069 if test "${lt_cv_ld_reload_flag+set}" = set; then
5070 $as_echo_n "(cached
) " >&6
5072 lt_cv_ld_reload_flag='-r'
5074 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5075 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5076 reload_flag=$lt_cv_ld_reload_flag
5077 case $reload_flag in
5079 *) reload_flag=" $reload_flag" ;;
5081 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5084 if test "$GCC" = yes; then
5085 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5103 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5104 $as_echo_n "checking
for $ac_word...
" >&6; }
5105 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5106 $as_echo_n "(cached
) " >&6
5108 if test -n "$OBJDUMP"; then
5109 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5119 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5128 OBJDUMP=$ac_cv_prog_OBJDUMP
5129 if test -n "$OBJDUMP"; then
5130 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5131 $as_echo "$OBJDUMP" >&6; }
5133 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5134 $as_echo "no
" >&6; }
5139 if test -z "$ac_cv_prog_OBJDUMP"; then
5140 ac_ct_OBJDUMP=$OBJDUMP
5141 # Extract the first word of "objdump
", so it can be a program name with args.
5142 set dummy objdump; ac_word=$2
5143 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5144 $as_echo_n "checking
for $ac_word...
" >&6; }
5145 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5146 $as_echo_n "(cached
) " >&6
5148 if test -n "$ac_ct_OBJDUMP"; then
5149 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5159 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5168 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5169 if test -n "$ac_ct_OBJDUMP"; then
5170 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5171 $as_echo "$ac_ct_OBJDUMP" >&6; }
5173 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5174 $as_echo "no
" >&6; }
5177 if test "x
$ac_ct_OBJDUMP" = x; then
5180 case $cross_compiling:$ac_tool_warned in
5182 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5183 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5184 ac_tool_warned=yes ;;
5186 OBJDUMP=$ac_ct_OBJDUMP
5189 OBJDUMP="$ac_cv_prog_OBJDUMP"
5192 test -z "$OBJDUMP" && OBJDUMP=objdump
5202 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5203 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5204 if test "${lt_cv_deplibs_check_method+set}" = set; then
5205 $as_echo_n "(cached
) " >&6
5207 lt_cv_file_magic_cmd='$MAGIC_CMD'
5208 lt_cv_file_magic_test_file=
5209 lt_cv_deplibs_check_method='unknown'
5210 # Need to set the preceding variable on all platforms that support
5211 # interlibrary dependencies.
5212 # 'none' -- dependencies not supported.
5213 # `unknown' -- same as none, but documents that we really don't know.
5214 # 'pass_all' -- all dependencies passed with no checks.
5215 # 'test_compile' -- check by making test program.
5216 # 'file_magic [[regex]]' -- check by looking for files in library path
5217 # which responds to the $file_magic_cmd with a given extended regex.
5218 # If you have `file' or equivalent on your system and you're not sure
5219 # whether `pass_all' will *always* work, you probably want this one.
5223 lt_cv_deplibs_check_method=pass_all
5227 lt_cv_deplibs_check_method=pass_all
5231 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5232 lt_cv_file_magic_cmd='/usr/bin/file -L'
5233 lt_cv_file_magic_test_file=/shlib/libc.so
5237 # func_win32_libid is a shell function defined in ltmain.sh
5238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5239 lt_cv_file_magic_cmd='func_win32_libid'
5243 # Base MSYS/MinGW do not provide the 'file' command needed by
5244 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5245 # unless we find 'file', for example because we are cross-compiling.
5246 if ( file / ) >/dev/null 2>&1; then
5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248 lt_cv_file_magic_cmd='func_win32_libid'
5250 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5251 lt_cv_file_magic_cmd='$OBJDUMP -f'
5256 # use the weaker test based on 'objdump'. See mingw*.
5257 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5258 lt_cv_file_magic_cmd='$OBJDUMP -f'
5261 darwin* | rhapsody*)
5262 lt_cv_deplibs_check_method=pass_all
5265 freebsd* | dragonfly*)
5266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5269 # Not sure whether the presence of OpenBSD here was a mistake.
5270 # Let's accept both of them until this is cleared up.
5271 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5277 lt_cv_deplibs_check_method=pass_all
5282 lt_cv_deplibs_check_method=pass_all
5285 hpux10.20* | hpux11*)
5286 lt_cv_file_magic_cmd=/usr/bin/file
5289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5290 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5293 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]'
5294 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5298 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5304 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5308 irix5* | irix6* | nonstopux*)
5310 *-32|*"-32 ") libmagic=32-bit;;
5311 *-n32|*"-n32 ") libmagic=N32;;
5312 *-64|*"-64 ") libmagic=64-bit;;
5313 *) libmagic=never-match;;
5315 lt_cv_deplibs_check_method=pass_all
5318 # This must be Linux ELF.
5319 linux* | k*bsd*-gnu)
5320 lt_cv_deplibs_check_method=pass_all
5324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5333 lt_cv_file_magic_cmd=/usr/bin/file
5334 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5338 lt_cv_deplibs_check_method=pass_all
5342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5349 osf3* | osf4* | osf5*)
5350 lt_cv_deplibs_check_method=pass_all
5354 lt_cv_deplibs_check_method=pass_all
5358 lt_cv_deplibs_check_method=pass_all
5361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5362 lt_cv_deplibs_check_method=pass_all
5366 case $host_vendor in
5368 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]'
5369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5372 lt_cv_deplibs_check_method=pass_all
5375 lt_cv_file_magic_cmd='/bin/file'
5376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5379 lt_cv_file_magic_cmd='/bin/file'
5380 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5381 lt_cv_file_magic_test_file=/lib/libc.so
5384 lt_cv_deplibs_check_method=pass_all
5387 lt_cv_deplibs_check_method=pass_all
5393 lt_cv_deplibs_check_method=pass_all
5398 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5399 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5400 file_magic_cmd=$lt_cv_file_magic_cmd
5401 deplibs_check_method=$lt_cv_deplibs_check_method
5402 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}ar; ac_word=$2
5418 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5419 $as_echo_n "checking
for $ac_word...
" >&6; }
5420 if test "${ac_cv_prog_AR+set}" = set; then
5421 $as_echo_n "(cached
) " >&6
5423 if test -n "$AR"; then
5424 ac_cv_prog_AR="$AR" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_AR="${ac_tool_prefix}ar"
5434 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5444 if test -n "$AR"; then
5445 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5446 $as_echo "$AR" >&6; }
5448 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5449 $as_echo "no
" >&6; }
5454 if test -z "$ac_cv_prog_AR"; then
5456 # Extract the first word of "ar", so it can be a program name with args.
5457 set dummy ar; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5459 $as_echo_n "checking
for $ac_word...
" >&6; }
5460 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5461 $as_echo_n "(cached
) " >&6
5463 if test -n "$ac_ct_AR"; then
5464 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_ac_ct_AR="ar"
5474 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5483 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5484 if test -n "$ac_ct_AR"; then
5485 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5486 $as_echo "$ac_ct_AR" >&6; }
5488 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5489 $as_echo "no
" >&6; }
5492 if test "x
$ac_ct_AR" = x; then
5495 case $cross_compiling:$ac_tool_warned in
5497 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5498 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5499 ac_tool_warned=yes ;;
5507 test -z "$AR" && AR=ar
5508 test -z "$AR_FLAGS" && AR_FLAGS=cru
5520 if test -n "$ac_tool_prefix"; then
5521 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5522 set dummy ${ac_tool_prefix}strip; ac_word=$2
5523 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5524 $as_echo_n "checking
for $ac_word...
" >&6; }
5525 if test "${ac_cv_prog_STRIP+set}" = set; then
5526 $as_echo_n "(cached
) " >&6
5528 if test -n "$STRIP"; then
5529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5539 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5548 STRIP=$ac_cv_prog_STRIP
5549 if test -n "$STRIP"; then
5550 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5551 $as_echo "$STRIP" >&6; }
5553 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5554 $as_echo "no
" >&6; }
5559 if test -z "$ac_cv_prog_STRIP"; then
5561 # Extract the first word of "strip
", so it can be a program name with args.
5562 set dummy strip; ac_word=$2
5563 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5564 $as_echo_n "checking
for $ac_word...
" >&6; }
5565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5566 $as_echo_n "(cached
) " >&6
5568 if test -n "$ac_ct_STRIP"; then
5569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_ac_ct_STRIP="strip
"
5579 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5589 if test -n "$ac_ct_STRIP"; then
5590 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5591 $as_echo "$ac_ct_STRIP" >&6; }
5593 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5594 $as_echo "no
" >&6; }
5597 if test "x
$ac_ct_STRIP" = x; then
5600 case $cross_compiling:$ac_tool_warned in
5602 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5603 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5604 ac_tool_warned=yes ;;
5609 STRIP="$ac_cv_prog_STRIP"
5612 test -z "$STRIP" && STRIP=:
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5622 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5623 $as_echo_n "checking
for $ac_word...
" >&6; }
5624 if test "${ac_cv_prog_RANLIB+set}" = set; then
5625 $as_echo_n "(cached
) " >&6
5627 if test -n "$RANLIB"; then
5628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5638 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5647 RANLIB=$ac_cv_prog_RANLIB
5648 if test -n "$RANLIB"; then
5649 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5650 $as_echo "$RANLIB" >&6; }
5652 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5653 $as_echo "no
" >&6; }
5658 if test -z "$ac_cv_prog_RANLIB"; then
5659 ac_ct_RANLIB=$RANLIB
5660 # Extract the first word of "ranlib
", so it can be a program name with args.
5661 set dummy ranlib; ac_word=$2
5662 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5663 $as_echo_n "checking
for $ac_word...
" >&6; }
5664 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5665 $as_echo_n "(cached
) " >&6
5667 if test -n "$ac_ct_RANLIB"; then
5668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5678 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5688 if test -n "$ac_ct_RANLIB"; then
5689 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5690 $as_echo "$ac_ct_RANLIB" >&6; }
5692 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5693 $as_echo "no
" >&6; }
5696 if test "x
$ac_ct_RANLIB" = x; then
5699 case $cross_compiling:$ac_tool_warned in
5701 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5702 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5703 ac_tool_warned=yes ;;
5705 RANLIB=$ac_ct_RANLIB
5708 RANLIB="$ac_cv_prog_RANLIB"
5711 test -z "$RANLIB" && RANLIB=:
5718 # Determine commands to create old-style static archives.
5719 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5720 old_postinstall_cmds='chmod 644 $oldlib'
5721 old_postuninstall_cmds=
5723 if test -n "$RANLIB"; then
5726 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5729 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5732 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5768 # If no C compiler was specified, use CC.
5771 # If no C compiler flags were specified, use CFLAGS.
5772 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5774 # Allow CC to be a program name with arguments.
5778 # Check for command to grab the raw symbol name followed by C symbol from nm.
5779 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5780 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5781 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5782 $as_echo_n "(cached
) " >&6
5785 # These are sane defaults that work on at least a few old systems.
5786 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5788 # Character class describing NM global symbol codes.
5789 symcode='[BCDEGRST]'
5791 # Regexp to match symbols that can be accessed directly from C.
5792 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5794 # Define system-specific variables.
5799 cygwin* | mingw* | pw32* | cegcc*)
5800 symcode='[ABCDGISTW]'
5803 if test "$host_cpu" = ia64; then
5804 symcode='[ABCDEGRST]'
5808 symcode='[BCDEGRST]'
5811 symcode='[BCDEGQRST]'
5822 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5830 # If we're using GNU nm, then use its standard symbol codes.
5831 case `$NM -V 2>&1` in
5832 *GNU* | *'with BFD'*)
5833 symcode='[ABCDGIRSTW]' ;;
5836 # Transform an extracted symbol line into a proper C declaration.
5837 # Some systems (esp. on ia64) link data and code symbols differently,
5838 # so use this general approach.
5839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5841 # Transform an extracted symbol line into symbol name and symbol address
5842 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5843 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'"
5845 # Handle CRLF in mingw tool chain
5849 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5853 # Try without a prefix underscore, then with it.
5854 for ac_symprfx in "" "_
"; do
5856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5857 symxfrm="\\1 $ac_symprfx\\2 \\2"
5859 # Write the raw and C identifiers.
5860 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5861 # Fake it for dumpbin and say T for any non-static function
5862 # and D for any global variable.
5863 # Also find C++ and __fastcall symbols from MSVC++,
5864 # which start with @ or ?.
5865 lt_cv_sys_global_symbol_pipe="$AWK '"\
5866 " {last_section=section; section=\$ 3};"\
5867 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5868 " \$ 0!~/External *\|/{next};"\
5869 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5870 " {if(hide[section]) next};"\
5871 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5872 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5873 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5874 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5875 " ' prfx
=^
$ac_symprfx"
5877 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5880 # Check to see that the pipe works correctly.
5884 cat > conftest.$ac_ext <<_LT_EOF
5889 void nm_test_func(void);
5890 void nm_test_func(void){}
5894 int main(){nm_test_var='a';nm_test_func();return(0);}
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5901 (exit $ac_status); }; then
5902 # Now try to grab the symbols.
5904 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5905 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5907 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5908 (exit $ac_status); } && test -s "$nlist"; then
5909 # Try sorting and uniquifying the output.
5910 if sort "$nlist" | uniq > "$nlist"T; then
5911 mv -f "$nlist"T "$nlist"
5916 # Make sure that we snagged all the symbols we need.
5917 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5918 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5919 cat <<_LT_EOF > conftest.$ac_ext
5925 # Now generate the symbol file.
5926 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5928 cat <<_LT_EOF >> conftest.$ac_ext
5930 /* The mapping between symbol names and symbols. */
5935 lt__PROGRAM__LTX_preloaded_symbols[] =
5937 { "@PROGRAM@
", (void *) 0 },
5939 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5940 cat <<\_LT_EOF >> conftest.$ac_ext
5944 /* This works around a problem in FreeBSD linker */
5945 #ifdef FREEBSD_WORKAROUND
5946 static const void *lt_preloaded_setup() {
5947 return lt__PROGRAM__LTX_preloaded_symbols;
5955 # Now try linking the two files.
5956 mv conftest.$ac_objext conftstm.$ac_objext
5957 lt_save_LIBS="$LIBS"
5958 lt_save_CFLAGS="$CFLAGS"
5959 LIBS="conftstm.
$ac_objext"
5960 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5962 (eval $ac_link) 2>&5
5964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5965 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5968 LIBS="$lt_save_LIBS"
5969 CFLAGS="$lt_save_CFLAGS"
5971 echo "cannot
find nm_test_func
in $nlist" >&5
5974 echo "cannot
find nm_test_var
in $nlist" >&5
5977 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5980 echo "$progname: failed program was
:" >&5
5981 cat conftest.$ac_ext >&5
5983 rm -rf conftest* conftst*
5985 # Do not use the global_symbol_pipe unless it works.
5986 if test "$pipe_works" = yes; then
5989 lt_cv_sys_global_symbol_pipe=
5995 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5996 lt_cv_sys_global_symbol_to_cdecl=
5998 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5999 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
6000 $as_echo "failed
" >&6; }
6002 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
6003 $as_echo "ok
" >&6; }
6028 # Check whether --enable-libtool-lock was given.
6029 if test "${enable_libtool_lock+set}" = set; then
6030 enableval=$enable_libtool_lock;
6033 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6035 # Some flags need to be propagated to the compiler or linker for good
6039 # Find out which ABI we are using.
6040 echo 'int i;' > conftest.$ac_ext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>&5
6044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6045 (exit $ac_status); }; then
6046 case `/usr/bin/file conftest.$ac_objext` in
6058 # Find out which ABI we are using.
6059 echo '#line 6059 "configure
"' > conftest.$ac_ext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>&5
6063 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6064 (exit $ac_status); }; then
6065 if test "$lt_cv_prog_gnu_ld" = yes; then
6066 case `/usr/bin/file conftest.$ac_objext` in
6068 LD="${LD-ld} -melf32bsmip"
6071 LD="${LD-ld} -melf32bmipn32"
6074 LD="${LD-ld} -melf64bmip"
6078 case `/usr/bin/file conftest.$ac_objext` in
6094 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6095 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6096 # Find out which ABI we are using.
6097 echo 'int i;' > conftest.$ac_ext
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>&5
6101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6102 (exit $ac_status); }; then
6103 case `/usr/bin/file conftest.o` in
6106 x86_64-*kfreebsd*-gnu)
6107 LD="${LD-ld} -m elf_i386_fbsd
"
6110 LD="${LD-ld} -m elf_i386
"
6112 ppc64-*linux*|powerpc64-*linux*)
6113 LD="${LD-ld} -m elf32ppclinux
"
6116 LD="${LD-ld} -m elf_s390
"
6119 LD="${LD-ld} -m elf32_sparc
"
6125 x86_64-*kfreebsd*-gnu)
6126 LD="${LD-ld} -m elf_x86_64_fbsd
"
6129 LD="${LD-ld} -m elf_x86_64
"
6131 ppc*-*linux*|powerpc*-*linux*)
6132 LD="${LD-ld} -m elf64ppc
"
6134 s390*-*linux*|s390*-*tpf*)
6135 LD="${LD-ld} -m elf64_s390
"
6138 LD="${LD-ld} -m elf64_sparc
"
6148 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6149 SAVE_CFLAGS="$CFLAGS"
6150 CFLAGS="$CFLAGS -belf"
6151 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6152 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6153 if test "${lt_cv_cc_needs_belf+set}" = set; then
6154 $as_echo_n "(cached
) " >&6
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162 cat >conftest.$ac_ext <<_ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (ac_try="$ac_link"
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6184 $as_echo "$ac_try_echo") >&5
6185 (eval "$ac_link") 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6191 (exit $ac_status); } && {
6192 test -z "$ac_c_werror_flag" ||
6193 test ! -s conftest.err
6194 } && test -s conftest$ac_exeext && {
6195 test "$cross_compiling" = yes ||
6196 $as_test_x conftest$ac_exeext
6198 lt_cv_cc_needs_belf=yes
6200 $as_echo "$as_me: failed program was
:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 lt_cv_cc_needs_belf=no
6206 rm -rf conftest.dSYM
6207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6208 conftest$ac_exeext conftest.$ac_ext
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6217 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6218 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6219 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6220 CFLAGS="$SAVE_CFLAGS"
6224 # Find out which ABI we are using.
6225 echo 'int i;' > conftest.$ac_ext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227 (eval $ac_compile) 2>&5
6229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6230 (exit $ac_status); }; then
6231 case `/usr/bin/file conftest.o` in
6233 case $lt_cv_prog_gnu_ld in
6234 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6236 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6248 need_locks="$enable_libtool_lock"
6252 rhapsody* | darwin*)
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6256 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6257 $as_echo_n "checking
for $ac_word...
" >&6; }
6258 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6259 $as_echo_n "(cached
) " >&6
6261 if test -n "$DSYMUTIL"; then
6262 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6272 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6281 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6282 if test -n "$DSYMUTIL"; then
6283 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6284 $as_echo "$DSYMUTIL" >&6; }
6286 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6287 $as_echo "no
" >&6; }
6292 if test -z "$ac_cv_prog_DSYMUTIL"; then
6293 ac_ct_DSYMUTIL=$DSYMUTIL
6294 # Extract the first word of "dsymutil
", so it can be a program name with args.
6295 set dummy dsymutil; ac_word=$2
6296 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6297 $as_echo_n "checking
for $ac_word...
" >&6; }
6298 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6299 $as_echo_n "(cached
) " >&6
6301 if test -n "$ac_ct_DSYMUTIL"; then
6302 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6312 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6322 if test -n "$ac_ct_DSYMUTIL"; then
6323 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6324 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6326 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6327 $as_echo "no
" >&6; }
6330 if test "x
$ac_ct_DSYMUTIL" = x; then
6333 case $cross_compiling:$ac_tool_warned in
6335 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6336 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6337 ac_tool_warned=yes ;;
6339 DSYMUTIL=$ac_ct_DSYMUTIL
6342 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6348 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6349 $as_echo_n "checking
for $ac_word...
" >&6; }
6350 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6351 $as_echo_n "(cached
) " >&6
6353 if test -n "$NMEDIT"; then
6354 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6364 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6373 NMEDIT=$ac_cv_prog_NMEDIT
6374 if test -n "$NMEDIT"; then
6375 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6376 $as_echo "$NMEDIT" >&6; }
6378 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6379 $as_echo "no
" >&6; }
6384 if test -z "$ac_cv_prog_NMEDIT"; then
6385 ac_ct_NMEDIT=$NMEDIT
6386 # Extract the first word of "nmedit
", so it can be a program name with args.
6387 set dummy nmedit; ac_word=$2
6388 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6389 $as_echo_n "checking
for $ac_word...
" >&6; }
6390 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6391 $as_echo_n "(cached
) " >&6
6393 if test -n "$ac_ct_NMEDIT"; then
6394 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6404 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6413 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6414 if test -n "$ac_ct_NMEDIT"; then
6415 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6416 $as_echo "$ac_ct_NMEDIT" >&6; }
6418 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6419 $as_echo "no
" >&6; }
6422 if test "x
$ac_ct_NMEDIT" = x; then
6425 case $cross_compiling:$ac_tool_warned in
6427 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6428 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6429 ac_tool_warned=yes ;;
6431 NMEDIT=$ac_ct_NMEDIT
6434 NMEDIT="$ac_cv_prog_NMEDIT"
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6440 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6441 $as_echo_n "checking
for $ac_word...
" >&6; }
6442 if test "${ac_cv_prog_LIPO+set}" = set; then
6443 $as_echo_n "(cached
) " >&6
6445 if test -n "$LIPO"; then
6446 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6456 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6465 LIPO=$ac_cv_prog_LIPO
6466 if test -n "$LIPO"; then
6467 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6468 $as_echo "$LIPO" >&6; }
6470 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6471 $as_echo "no
" >&6; }
6476 if test -z "$ac_cv_prog_LIPO"; then
6478 # Extract the first word of "lipo
", so it can be a program name with args.
6479 set dummy lipo; ac_word=$2
6480 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6481 $as_echo_n "checking
for $ac_word...
" >&6; }
6482 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6483 $as_echo_n "(cached
) " >&6
6485 if test -n "$ac_ct_LIPO"; then
6486 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_LIPO="lipo
"
6496 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6505 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6506 if test -n "$ac_ct_LIPO"; then
6507 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6508 $as_echo "$ac_ct_LIPO" >&6; }
6510 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6511 $as_echo "no
" >&6; }
6514 if test "x
$ac_ct_LIPO" = x; then
6517 case $cross_compiling:$ac_tool_warned in
6519 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6520 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6521 ac_tool_warned=yes ;;
6526 LIPO="$ac_cv_prog_LIPO"
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool; ac_word=$2
6532 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6533 $as_echo_n "checking
for $ac_word...
" >&6; }
6534 if test "${ac_cv_prog_OTOOL+set}" = set; then
6535 $as_echo_n "(cached
) " >&6
6537 if test -n "$OTOOL"; then
6538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6548 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6557 OTOOL=$ac_cv_prog_OTOOL
6558 if test -n "$OTOOL"; then
6559 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6560 $as_echo "$OTOOL" >&6; }
6562 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6563 $as_echo "no
" >&6; }
6568 if test -z "$ac_cv_prog_OTOOL"; then
6570 # Extract the first word of "otool
", so it can be a program name with args.
6571 set dummy otool; ac_word=$2
6572 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6573 $as_echo_n "checking
for $ac_word...
" >&6; }
6574 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6575 $as_echo_n "(cached
) " >&6
6577 if test -n "$ac_ct_OTOOL"; then
6578 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_OTOOL="otool
"
6588 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6597 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6598 if test -n "$ac_ct_OTOOL"; then
6599 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6600 $as_echo "$ac_ct_OTOOL" >&6; }
6602 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6603 $as_echo "no
" >&6; }
6606 if test "x
$ac_ct_OTOOL" = x; then
6609 case $cross_compiling:$ac_tool_warned in
6611 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6612 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6613 ac_tool_warned=yes ;;
6618 OTOOL="$ac_cv_prog_OTOOL"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6624 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6625 $as_echo_n "checking
for $ac_word...
" >&6; }
6626 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6627 $as_echo_n "(cached
) " >&6
6629 if test -n "$OTOOL64"; then
6630 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6640 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6649 OTOOL64=$ac_cv_prog_OTOOL64
6650 if test -n "$OTOOL64"; then
6651 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6652 $as_echo "$OTOOL64" >&6; }
6654 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6655 $as_echo "no
" >&6; }
6660 if test -z "$ac_cv_prog_OTOOL64"; then
6661 ac_ct_OTOOL64=$OTOOL64
6662 # Extract the first word of "otool64
", so it can be a program name with args.
6663 set dummy otool64; ac_word=$2
6664 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6665 $as_echo_n "checking
for $ac_word...
" >&6; }
6666 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6667 $as_echo_n "(cached
) " >&6
6669 if test -n "$ac_ct_OTOOL64"; then
6670 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6680 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6690 if test -n "$ac_ct_OTOOL64"; then
6691 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6692 $as_echo "$ac_ct_OTOOL64" >&6; }
6694 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6695 $as_echo "no
" >&6; }
6698 if test "x
$ac_ct_OTOOL64" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6704 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6705 ac_tool_warned=yes ;;
6707 OTOOL64=$ac_ct_OTOOL64
6710 OTOOL64="$ac_cv_prog_OTOOL64"
6739 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6740 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6741 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6742 $as_echo_n "(cached
) " >&6
6744 lt_cv_apple_cc_single_mod=no
6745 if test -z "${LT_MULTI_MODULE}"; then
6746 # By default we will add the -single_module flag. You can override
6747 # by either setting the environment variable LT_MULTI_MODULE
6748 # non-empty at configure time, or by adding -multi_module to the
6750 rm -rf libconftest.dylib*
6751 echo "int foo
(void
){return 1;}" > conftest.c
6752 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c
" >&5
6754 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6757 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6758 lt_cv_apple_cc_single_mod=yes
6760 cat conftest.err >&5
6762 rm -rf libconftest.dylib*
6766 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6767 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6768 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6769 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6770 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6771 $as_echo_n "(cached
) " >&6
6773 lt_cv_ld_exported_symbols_list=no
6774 save_LDFLAGS=$LDFLAGS
6775 echo "_main
" > conftest.sym
6776 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6777 cat >conftest.$ac_ext <<_ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6799 $as_echo "$ac_try_echo") >&5
6800 (eval "$ac_link") 2>conftest.er1
6802 grep -v '^ *+' conftest.er1 >conftest.err
6804 cat conftest.err >&5
6805 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6806 (exit $ac_status); } && {
6807 test -z "$ac_c_werror_flag" ||
6808 test ! -s conftest.err
6809 } && test -s conftest$ac_exeext && {
6810 test "$cross_compiling" = yes ||
6811 $as_test_x conftest$ac_exeext
6813 lt_cv_ld_exported_symbols_list=yes
6815 $as_echo "$as_me: failed program was
:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 lt_cv_ld_exported_symbols_list=no
6821 rm -rf conftest.dSYM
6822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6823 conftest$ac_exeext conftest.$ac_ext
6824 LDFLAGS="$save_LDFLAGS"
6827 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6828 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6830 rhapsody* | darwin1.[012])
6831 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6833 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6834 darwin*) # darwin 5.x on
6835 # if running on 10.5 or later, the deployment target defaults
6836 # to the OS version, if on x86, and 10.4, the deployment
6837 # target defaults to 10.4. Don't you love it?
6838 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6839 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6840 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6844 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6848 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6849 _lt_dar_single_mod='$single_module'
6851 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6852 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6854 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6856 if test "$DSYMUTIL" != ":"; then
6857 _lt_dsymutil='~$DSYMUTIL $lib || :'
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6869 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6870 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6871 # On Suns, sometimes $CPP names a directory.
6872 if test -n "$CPP" && test -d "$CPP"; then
6875 if test -z "$CPP"; then
6876 if test "${ac_cv_prog_CPP+set}" = set; then
6877 $as_echo_n "(cached
) " >&6
6879 # Double quotes because CPP needs to be expanded
6880 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6883 for ac_c_preproc_warn_flag in '' yes
6885 # Use a header file that comes with gcc, so configuring glibc
6886 # with a fresh cross-compiler works.
6887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6888 # <limits.h> exists even on freestanding compilers.
6889 # On the NeXT, cc -E runs the code through the compiler's parser,
6890 # not just through cpp. "Syntax error
" is here to catch this case.
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6898 # include <limits.h>
6900 # include <assert.h>
6904 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6917 (exit $ac_status); } >/dev/null && {
6918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6923 $as_echo "$as_me: failed program was
:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 # Broken: fails on valid input.
6930 rm -f conftest.err conftest.$ac_ext
6932 # OK, works on sane cases. Now check whether nonexistent headers
6933 # can be detected and how.
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6940 #include <ac_nonexistent.h>
6942 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945 *) ac_try_echo=$ac_try;;
6947 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6948 $as_echo "$ac_try_echo") >&5
6949 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6951 grep -v '^ *+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6955 (exit $ac_status); } >/dev/null && {
6956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6957 test ! -s conftest.err
6959 # Broken: success on invalid input.
6962 $as_echo "$as_me: failed program was
:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 # Passes both tests.
6970 rm -f conftest.err conftest.$ac_ext
6973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6974 rm -f conftest.err conftest.$ac_ext
6975 if $ac_preproc_ok; then
6987 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6988 $as_echo "$CPP" >&6; }
6990 for ac_c_preproc_warn_flag in '' yes
6992 # Use a header file that comes with gcc, so configuring glibc
6993 # with a fresh cross-compiler works.
6994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6995 # <limits.h> exists even on freestanding compilers.
6996 # On the NeXT, cc -E runs the code through the compiler's parser,
6997 # not just through cpp. "Syntax error
" is here to catch this case.
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7005 # include <limits.h>
7007 # include <assert.h>
7011 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7024 (exit $ac_status); } >/dev/null && {
7025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7030 $as_echo "$as_me: failed program was
:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7037 rm -f conftest.err conftest.$ac_ext
7039 # OK, works on sane cases. Now check whether nonexistent headers
7040 # can be detected and how.
7041 cat >conftest.$ac_ext <<_ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 #include <ac_nonexistent.h>
7049 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7055 $as_echo "$ac_try_echo") >&5
7056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7062 (exit $ac_status); } >/dev/null && {
7063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7066 # Broken: success on invalid input.
7069 $as_echo "$as_me: failed program was
:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 # Passes both tests.
7077 rm -f conftest.err conftest.$ac_ext
7080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7081 rm -f conftest.err conftest.$ac_ext
7082 if $ac_preproc_ok; then
7085 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7087 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7088 See \`config.log' for more details.
" >&5
7089 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7090 See \
`config.log' for more details." >&2;}
7091 { (exit 1); exit 1; }; }; }
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7101 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7102 $as_echo_n "checking for ANSI C header files... " >&6; }
7103 if test "${ac_cv_header_stdc+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7125 rm -f conftest.$ac_objext
7126 if { (ac_try="$ac_compile"
7128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7129 *) ac_try_echo
=$ac_try;;
7131 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7132 $as_echo "$ac_try_echo") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7135 grep -v '^ *+' conftest.er1
>conftest.err
7137 cat conftest.err
>&5
7138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.
$ac_objext; then
7143 ac_cv_header_stdc
=yes
7145 $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.
$ac_ext >&5
7148 ac_cv_header_stdc
=no
7151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7153 if test $ac_cv_header_stdc = yes; then
7154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7155 cat >conftest.
$ac_ext <<_ACEOF
7158 cat confdefs.h
>>conftest.
$ac_ext
7159 cat >>conftest.
$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7165 $EGREP "memchr" >/dev
/null
2>&1; then
7168 ac_cv_header_stdc
=no
7174 if test $ac_cv_header_stdc = yes; then
7175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7176 cat >conftest.
$ac_ext <<_ACEOF
7179 cat confdefs.h
>>conftest.
$ac_ext
7180 cat >>conftest.
$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7186 $EGREP "free" >/dev
/null
2>&1; then
7189 ac_cv_header_stdc
=no
7195 if test $ac_cv_header_stdc = yes; then
7196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7197 if test "$cross_compiling" = yes; then
7200 cat >conftest.
$ac_ext <<_ACEOF
7203 cat confdefs.h
>>conftest.
$ac_ext
7204 cat >>conftest.
$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7208 #if ((' ' & 0x0FF) == 0x020)
7209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7212 # define ISLOWER(c) \
7213 (('a' <= (c) && (c) <= 'i') \
7214 || ('j' <= (c) && (c) <= 'r') \
7215 || ('s' <= (c) && (c) <= 'z'))
7216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7224 for (i = 0; i < 256; i++)
7225 if (XOR (islower (i), ISLOWER (i))
7226 || toupper (i) != TOUPPER (i))
7231 rm -f conftest
$ac_exeext
7232 if { (ac_try
="$ac_link"
7234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239 (eval "$ac_link") 2>&5
7241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7243 { (case "(($ac_try" in
7244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7245 *) ac_try_echo
=$ac_try;;
7247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_try") 2>&5
7251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7255 $as_echo "$as_me: program exited with status $ac_status" >&5
7256 $as_echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.
$ac_ext >&5
7260 ac_cv_header_stdc
=no
7262 rm -rf conftest.dSYM
7263 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7269 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7270 $as_echo "$ac_cv_header_stdc" >&6; }
7271 if test $ac_cv_header_stdc = yes; then
7273 cat >>confdefs.h
<<\_ACEOF
7274 #define STDC_HEADERS 1
7279 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7289 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7290 inttypes.h stdint.h unistd.h
7292 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7293 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 $as_echo_n "checking for $ac_header... " >&6; }
7295 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7296 $as_echo_n "(cached) " >&6
7298 cat >conftest.
$ac_ext <<_ACEOF
7301 cat confdefs.h
>>conftest.
$ac_ext
7302 cat >>conftest.
$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7306 #include <$ac_header>
7308 rm -f conftest.
$ac_objext
7309 if { (ac_try
="$ac_compile"
7311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7315 $as_echo "$ac_try_echo") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1 >conftest.err
7320 cat conftest.err >&5
7321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 eval "$as_ac_Header=yes"
7328 $as_echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 eval "$as_ac_Header=no"
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 ac_res=`eval 'as_val=${'$as_ac_Header'}
7337 $as_echo "$as_val"'`
7338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7339 $as_echo "$ac_res" >&6; }
7340 as_val=`eval 'as_val=${'$as_ac_Header'}
7341 $as_echo "$as_val"'`
7342 if test "x$as_val" = x""yes; then
7343 cat >>confdefs.h <<_ACEOF
7344 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7353 for ac_header in dlfcn.h
7355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7357 $as_echo_n "checking for $ac_header... " >&6; }
7358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7359 $as_echo_n "(cached) " >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7369 #include <$ac_header>
7371 rm -f conftest.$ac_objext
7372 if { (ac_try="$ac_compile"
7374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7375 *) ac_try_echo
=$ac_try;;
7377 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1
>conftest.err
7383 cat conftest.err
>&5
7384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.
$ac_objext; then
7389 eval "$as_ac_Header=yes"
7391 $as_echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.
$ac_ext >&5
7394 eval "$as_ac_Header=no"
7397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7399 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7400 $as_echo "$as_val"'`
7401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7402 $as_echo "$ac_res" >&6; }
7403 as_val
=`eval 'as_val=${'$as_ac_Header'}
7404 $as_echo "$as_val"'`
7405 if test "x$as_val" = x
""yes; then
7406 cat >>confdefs.h
<<_ACEOF
7407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7426 # Check whether --enable-shared was given.
7427 if test "${enable_shared+set}" = set; then
7428 enableval
=$enable_shared; p
=${PACKAGE-default}
7430 yes) enable_shared
=yes ;;
7431 no
) enable_shared
=no
;;
7434 # Look at the argument we got. We use all the common list separators.
7435 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7436 for pkg
in $enableval; do
7438 if test "X$pkg" = "X$p"; then
7457 # Check whether --enable-static was given.
7458 if test "${enable_static+set}" = set; then
7459 enableval
=$enable_static; p
=${PACKAGE-default}
7461 yes) enable_static
=yes ;;
7462 no
) enable_static
=no
;;
7465 # Look at the argument we got. We use all the common list separators.
7466 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7467 for pkg
in $enableval; do
7469 if test "X$pkg" = "X$p"; then
7489 # Check whether --with-pic was given.
7490 if test "${with_pic+set}" = set; then
7491 withval
=$with_pic; pic_mode
="$withval"
7497 test -z "$pic_mode" && pic_mode
=default
7505 # Check whether --enable-fast-install was given.
7506 if test "${enable_fast_install+set}" = set; then
7507 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7509 yes) enable_fast_install
=yes ;;
7510 no
) enable_fast_install
=no
;;
7512 enable_fast_install
=no
7513 # Look at the argument we got. We use all the common list separators.
7514 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7515 for pkg
in $enableval; do
7517 if test "X$pkg" = "X$p"; then
7518 enable_fast_install
=yes
7525 enable_fast_install
=yes
7538 # This can be used to rebuild libtool when needed
7539 LIBTOOL_DEPS
="$ltmain"
7541 # Always use our own libtool.
7542 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7568 test -z "$LN_S" && LN_S
="ln -s"
7583 if test -n "${ZSH_VERSION+set}" ; then
7584 setopt NO_GLOB_SUBST
7587 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7588 $as_echo_n "checking for objdir... " >&6; }
7589 if test "${lt_cv_objdir+set}" = set; then
7590 $as_echo_n "(cached) " >&6
7592 rm -f .libs
2>/dev
/null
7593 mkdir .libs
2>/dev
/null
7594 if test -d .libs
; then
7597 # MS-DOS does not allow filenames that begin with a dot.
7600 rmdir .libs
2>/dev
/null
7602 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7603 $as_echo "$lt_cv_objdir" >&6; }
7604 objdir
=$lt_cv_objdir
7610 cat >>confdefs.h
<<_ACEOF
7611 #define LT_OBJDIR "$lt_cv_objdir/"
7632 # AIX sometimes has problems with the GCC collect2 program. For some
7633 # reason, if we set the COLLECT_NAMES environment variable, the problems
7634 # vanish in a puff of smoke.
7635 if test "X${COLLECT_NAMES+set}" != Xset
; then
7637 export COLLECT_NAMES
7642 # Sed substitution that helps us do robust quoting. It backslashifies
7643 # metacharacters that are still active within double-quoted strings.
7644 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7646 # Same as above, but do not quote variable references.
7647 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7649 # Sed substitution to delay expansion of an escaped shell variable in a
7650 # double_quote_subst'ed string.
7651 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7653 # Sed substitution to delay expansion of an escaped single quote.
7654 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7656 # Sed substitution to avoid accidental globbing in evaled expressions
7657 no_glob_subst
='s/\*/\\\*/g'
7661 can_build_shared
=yes
7663 # All known linkers require a `.a' archive for static linking (except MSVC,
7664 # which needs '.lib').
7667 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7670 old_CFLAGS
="$CFLAGS"
7672 # Set sane defaults for various variables
7673 test -z "$CC" && CC
=cc
7674 test -z "$LTCC" && LTCC
=$CC
7675 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7676 test -z "$LD" && LD
=ld
7677 test -z "$ac_objext" && ac_objext
=o
7679 for cc_temp
in $compiler""; do
7681 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7682 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7687 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7690 # Only perform the check for file, if the check method requires it
7691 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7692 case $deplibs_check_method in
7694 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7695 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7696 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7697 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7698 $as_echo_n "(cached) " >&6
7702 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7705 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7706 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7707 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7708 for ac_dir
in $ac_dummy; do
7710 test -z "$ac_dir" && ac_dir
=.
7711 if test -f $ac_dir/${ac_tool_prefix}file; then
7712 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7713 if test -n "$file_magic_test_file"; then
7714 case $deplibs_check_method in
7716 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7717 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7718 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7719 $EGREP "$file_magic_regex" > /dev
/null
; then
7724 *** Warning: the command libtool uses to detect shared libraries,
7725 *** $file_magic_cmd, produces output that libtool cannot recognize.
7726 *** The result is that libtool may fail to recognize shared libraries
7727 *** as such. This will affect the creation of libtool libraries that
7728 *** depend on shared libraries, but programs linked with such libtool
7729 *** libraries will work regardless of this problem. Nevertheless, you
7730 *** may want to report the problem to your system manager and/or to
7731 *** bug-libtool@gnu.org
7741 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7746 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7747 if test -n "$MAGIC_CMD"; then
7748 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7749 $as_echo "$MAGIC_CMD" >&6; }
7751 { $as_echo "$as_me:$LINENO: result: no" >&5
7752 $as_echo "no" >&6; }
7759 if test -z "$lt_cv_path_MAGIC_CMD"; then
7760 if test -n "$ac_tool_prefix"; then
7761 { $as_echo "$as_me:$LINENO: checking for file" >&5
7762 $as_echo_n "checking for file... " >&6; }
7763 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7764 $as_echo_n "(cached) " >&6
7768 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7771 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7772 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7773 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7774 for ac_dir
in $ac_dummy; do
7776 test -z "$ac_dir" && ac_dir
=.
7777 if test -f $ac_dir/file; then
7778 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7779 if test -n "$file_magic_test_file"; then
7780 case $deplibs_check_method in
7782 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7784 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7785 $EGREP "$file_magic_regex" > /dev
/null
; then
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such. This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem. Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** bug-libtool@gnu.org
7807 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7812 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7817 { $as_echo "$as_me:$LINENO: result: no" >&5
7818 $as_echo "no" >&6; }
7831 # Use C for the default configuration in the libtool script
7835 ac_cpp
='$CPP $CPPFLAGS'
7836 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7837 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7838 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7841 # Source file extension for C test sources.
7844 # Object file extension for compiled C test sources.
7848 # Code to be used in simple compile tests
7849 lt_simple_compile_test_code
="int some_variable = 0;"
7851 # Code to be used in simple link tests
7852 lt_simple_link_test_code
='int main(){return(0);}'
7860 # If no C compiler was specified, use CC.
7863 # If no C compiler flags were specified, use CFLAGS.
7864 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7866 # Allow CC to be a program name with arguments.
7869 # Save the default compiler, since it gets overwritten when the other
7870 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7871 compiler_DEFAULT
=$CC
7873 # save warnings/boilerplate of simple test code
7874 ac_outfile
=conftest.
$ac_objext
7875 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7876 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7877 _lt_compiler_boilerplate
=`cat conftest.err`
7880 ac_outfile
=conftest.
$ac_objext
7881 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7882 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7883 _lt_linker_boilerplate
=`cat conftest.err`
7887 if test -n "$compiler"; then
7889 lt_prog_compiler_no_builtin_flag
=
7891 if test "$GCC" = yes; then
7892 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7894 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7895 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7896 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7897 $as_echo_n "(cached) " >&6
7899 lt_cv_prog_compiler_rtti_exceptions
=no
7900 ac_outfile
=conftest.
$ac_objext
7901 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7902 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7903 # Insert the option either (1) after the last *FLAGS variable, or
7904 # (2) before a word containing "conftest.", or (3) at the end.
7905 # Note that $ac_compile itself does not contain backslashes and begins
7906 # with a dollar sign (not a hyphen), so the echo should work correctly.
7907 # The option is referenced via a variable to avoid confusing sed.
7908 lt_compile
=`echo "$ac_compile" | $SED \
7909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911 -e 's:$: $lt_compiler_flag:'`
7912 (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
7913 (eval "$lt_compile" 2>conftest.err
)
7915 cat conftest.err
>&5
7916 echo "$as_me:7916: \$? = $ac_status" >&5
7917 if (exit $ac_status) && test -s "$ac_outfile"; then
7918 # The compiler can only warn and ignore the option if not recognized
7919 # So say no if there are warnings other than the usual output.
7920 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7921 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7922 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7923 lt_cv_prog_compiler_rtti_exceptions
=yes
7929 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7930 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7932 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7933 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7945 lt_prog_compiler_wl
=
7946 lt_prog_compiler_pic
=
7947 lt_prog_compiler_static
=
7949 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7952 if test "$GCC" = yes; then
7953 lt_prog_compiler_wl
='-Wl,'
7954 lt_prog_compiler_static
='-static'
7958 # All AIX code is PIC.
7959 if test "$host_cpu" = ia64
; then
7960 # AIX 5 now supports IA64 processor
7961 lt_prog_compiler_static
='-Bstatic'
7968 # see comment about AmigaOS4 .so support
7969 lt_prog_compiler_pic
='-fPIC'
7972 # FIXME: we need at least 68020 code to build shared libraries, but
7973 # adding the `-m68020' flag to GCC prevents building anything better,
7975 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7980 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7981 # PIC is the default for these OSes.
7984 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7985 # This hack is so that the source file can tell whether it is being
7986 # built for inclusion in a dll (and should export symbols for example).
7987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7988 # (--disable-auto-import) libraries
7989 lt_prog_compiler_pic
='-DDLL_EXPORT'
7992 darwin
* | rhapsody
*)
7993 # PIC is the default on this platform
7994 # Common symbols not allowed in MH_DYLIB files
7995 lt_prog_compiler_pic
='-fno-common'
7999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8001 # sets the default TLS model and affects inlining.
8007 lt_prog_compiler_pic
='-fPIC'
8013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8014 # Instead, we relocate shared libraries at runtime.
8018 # Just because we use GCC doesn't mean we suddenly get shared libraries
8019 # on systems that don't support them.
8020 lt_prog_compiler_can_build_shared
=no
8025 # QNX uses GNU C++, but need to define -shared option too, otherwise
8027 lt_prog_compiler_pic
='-fPIC -shared'
8031 if test -d /usr
/nec
; then
8032 lt_prog_compiler_pic
=-Kconform_pic
8037 lt_prog_compiler_pic
='-fPIC'
8041 # PORTME Check for flag to pass linker flags through the system compiler.
8044 lt_prog_compiler_wl
='-Wl,'
8045 if test "$host_cpu" = ia64
; then
8046 # AIX 5 now supports IA64 processor
8047 lt_prog_compiler_static
='-Bstatic'
8049 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8053 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8054 # This hack is so that the source file can tell whether it is being
8055 # built for inclusion in a dll (and should export symbols for example).
8056 lt_prog_compiler_pic
='-DDLL_EXPORT'
8059 hpux9
* | hpux10
* | hpux11
*)
8060 lt_prog_compiler_wl
='-Wl,'
8061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8068 lt_prog_compiler_pic
='+Z'
8071 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8072 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8075 irix5
* | irix6
* | nonstopux
*)
8076 lt_prog_compiler_wl
='-Wl,'
8077 # PIC (with -KPIC) is the default.
8078 lt_prog_compiler_static
='-non_shared'
8081 linux
* | k
*bsd
*-gnu)
8082 case $cc_basename in
8083 # old Intel for x86_64 which still supported -KPIC.
8085 lt_prog_compiler_wl
='-Wl,'
8086 lt_prog_compiler_pic
='-KPIC'
8087 lt_prog_compiler_static
='-static'
8089 # icc used to be incompatible with GCC.
8090 # ICC 10 doesn't accept -KPIC any more.
8092 lt_prog_compiler_wl
='-Wl,'
8093 lt_prog_compiler_pic
='-fPIC'
8094 lt_prog_compiler_static
='-static'
8096 # Lahey Fortran 8.1.
8098 lt_prog_compiler_wl
='-Wl,'
8099 lt_prog_compiler_pic
='--shared'
8100 lt_prog_compiler_static
='--static'
8102 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8103 # Portland Group compilers (*not* the Pentium gcc compiler,
8104 # which looks to be a dead project)
8105 lt_prog_compiler_wl
='-Wl,'
8106 lt_prog_compiler_pic
='-fpic'
8107 lt_prog_compiler_static
='-Bstatic'
8110 lt_prog_compiler_wl
='-Wl,'
8111 # All Alpha code is PIC.
8112 lt_prog_compiler_static
='-non_shared'
8115 # IBM XL C 8.0/Fortran 10.1 on PPC
8116 lt_prog_compiler_wl
='-Wl,'
8117 lt_prog_compiler_pic
='-qpic'
8118 lt_prog_compiler_static
='-qstaticlink'
8121 case `$CC -V 2>&1 | sed 5q` in
8124 lt_prog_compiler_pic
='-KPIC'
8125 lt_prog_compiler_static
='-Bstatic'
8126 lt_prog_compiler_wl
='-Wl,'
8129 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8130 lt_prog_compiler_pic
='-KPIC'
8131 lt_prog_compiler_static
='-Bstatic'
8132 lt_prog_compiler_wl
=''
8140 lt_prog_compiler_pic
='-KPIC'
8141 lt_prog_compiler_static
='-Bstatic'
8145 # QNX uses GNU C++, but need to define -shared option too, otherwise
8147 lt_prog_compiler_pic
='-fPIC -shared'
8150 osf3
* | osf4
* | osf5
*)
8151 lt_prog_compiler_wl
='-Wl,'
8152 # All OSF/1 code is PIC.
8153 lt_prog_compiler_static
='-non_shared'
8157 lt_prog_compiler_static
='-non_shared'
8161 lt_prog_compiler_pic
='-KPIC'
8162 lt_prog_compiler_static
='-Bstatic'
8163 case $cc_basename in
8165 lt_prog_compiler_wl
='-Qoption ld ';;
8167 lt_prog_compiler_wl
='-Wl,';;
8172 lt_prog_compiler_wl
='-Qoption ld '
8173 lt_prog_compiler_pic
='-PIC'
8174 lt_prog_compiler_static
='-Bstatic'
8177 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8178 lt_prog_compiler_wl
='-Wl,'
8179 lt_prog_compiler_pic
='-KPIC'
8180 lt_prog_compiler_static
='-Bstatic'
8184 if test -d /usr
/nec
;then
8185 lt_prog_compiler_pic
='-Kconform_pic'
8186 lt_prog_compiler_static
='-Bstatic'
8190 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8191 lt_prog_compiler_wl
='-Wl,'
8192 lt_prog_compiler_pic
='-KPIC'
8193 lt_prog_compiler_static
='-Bstatic'
8197 lt_prog_compiler_wl
='-Wl,'
8198 lt_prog_compiler_can_build_shared
=no
8202 lt_prog_compiler_pic
='-pic'
8203 lt_prog_compiler_static
='-Bstatic'
8207 lt_prog_compiler_can_build_shared
=no
8213 # For platforms which do not support PIC, -DPIC is meaningless:
8215 lt_prog_compiler_pic
=
8218 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8221 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8222 $as_echo "$lt_prog_compiler_pic" >&6; }
8230 # Check to make sure the PIC flag actually works.
8232 if test -n "$lt_prog_compiler_pic"; then
8233 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8235 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8236 $as_echo_n "(cached) " >&6
8238 lt_cv_prog_compiler_pic_works
=no
8239 ac_outfile
=conftest.
$ac_objext
8240 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8241 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 # The option is referenced via a variable to avoid confusing sed.
8247 lt_compile
=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:8251: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>conftest.err
)
8254 cat conftest.err
>&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s "$ac_outfile"; then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings other than the usual output.
8259 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8260 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8261 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8262 lt_cv_prog_compiler_pic_works
=yes
8268 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8271 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8272 case $lt_prog_compiler_pic in
8274 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8277 lt_prog_compiler_pic
=
8278 lt_prog_compiler_can_build_shared
=no
8289 # Check to make sure the static flag actually works.
8291 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8292 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8293 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8294 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8297 lt_cv_prog_compiler_static_works
=no
8298 save_LDFLAGS
="$LDFLAGS"
8299 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8300 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8301 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8302 # The linker can only warn and ignore the option if not recognized
8303 # So say no if there are warnings
8304 if test -s conftest.err
; then
8305 # Append any errors to the config.log.
8306 cat conftest.err
1>&5
8307 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8308 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8309 if diff conftest.exp conftest.er2
>/dev
/null
; then
8310 lt_cv_prog_compiler_static_works
=yes
8313 lt_cv_prog_compiler_static_works
=yes
8317 LDFLAGS
="$save_LDFLAGS"
8320 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8321 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8323 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8326 lt_prog_compiler_static
=
8335 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8336 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8338 $as_echo_n "(cached) " >&6
8340 lt_cv_prog_compiler_c_o
=no
8341 $RM -r conftest
2>/dev
/null
8345 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8347 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8348 # Insert the option either (1) after the last *FLAGS variable, or
8349 # (2) before a word containing "conftest.", or (3) at the end.
8350 # Note that $ac_compile itself does not contain backslashes and begins
8351 # with a dollar sign (not a hyphen), so the echo should work correctly.
8352 lt_compile
=`echo "$ac_compile" | $SED \
8353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8355 -e 's:$: $lt_compiler_flag:'`
8356 (eval echo "\"\$as_me:8356: $lt_compile\"" >&5)
8357 (eval "$lt_compile" 2>out
/conftest.err
)
8359 cat out
/conftest.err
>&5
8360 echo "$as_me:8360: \$? = $ac_status" >&5
8361 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8363 # The compiler can only warn and ignore the option if not recognized
8364 # So say no if there are warnings
8365 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8366 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8367 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8368 lt_cv_prog_compiler_c_o
=yes
8373 # SGI C++ compiler will create directory out/ii_files/ for
8374 # template instantiation
8375 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8376 $RM out
/* && rmdir out
8382 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8383 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8390 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8393 $as_echo_n "(cached) " >&6
8395 lt_cv_prog_compiler_c_o
=no
8396 $RM -r conftest
2>/dev
/null
8400 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8402 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8403 # Insert the option either (1) after the last *FLAGS variable, or
8404 # (2) before a word containing "conftest.", or (3) at the end.
8405 # Note that $ac_compile itself does not contain backslashes and begins
8406 # with a dollar sign (not a hyphen), so the echo should work correctly.
8407 lt_compile
=`echo "$ac_compile" | $SED \
8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8410 -e 's:$: $lt_compiler_flag:'`
8411 (eval echo "\"\$as_me:8411: $lt_compile\"" >&5)
8412 (eval "$lt_compile" 2>out
/conftest.err
)
8414 cat out
/conftest.err
>&5
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8418 # The compiler can only warn and ignore the option if not recognized
8419 # So say no if there are warnings
8420 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8421 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8422 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8423 lt_cv_prog_compiler_c_o
=yes
8428 # SGI C++ compiler will create directory out/ii_files/ for
8429 # template instantiation
8430 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8431 $RM out
/* && rmdir out
8437 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8443 hard_links
="nottested"
8444 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8445 # do not overwrite the value of need_locks provided by the user
8446 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8447 $as_echo_n "checking if we can lock with hard links... " >&6; }
8450 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8452 ln conftest.a conftest.b
2>&5 || hard_links
=no
8453 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8454 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8455 $as_echo "$hard_links" >&6; }
8456 if test "$hard_links" = no
; then
8457 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8458 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8470 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8471 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474 allow_undefined_flag
=
8475 always_export_symbols
=no
8477 archive_expsym_cmds
=
8478 compiler_needs_object
=no
8479 enable_shared_with_static_runtimes
=no
8480 export_dynamic_flag_spec
=
8481 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8482 hardcode_automatic
=no
8484 hardcode_direct_absolute
=no
8485 hardcode_libdir_flag_spec
=
8486 hardcode_libdir_flag_spec_ld
=
8487 hardcode_libdir_separator
=
8489 hardcode_shlibpath_var
=unsupported
8491 link_all_deplibs
=unknown
8494 old_archive_from_new_cmds
=
8495 old_archive_from_expsyms_cmds
=
8496 thread_safe_flag_spec
=
8497 whole_archive_flag_spec
=
8498 # include_expsyms should be a list of space-separated symbols to be *always*
8499 # included in the symbol list
8501 # exclude_expsyms can be an extended regexp of symbols to exclude
8502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8504 # as well as any symbol that contains `d'.
8505 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8507 # platforms (ab)use it in PIC code, but their linkers get confused if
8508 # the symbol is explicitly referenced. Since portable code cannot
8509 # rely on this symbol name, it's probably fine to never include it in
8510 # preloaded symbol tables.
8511 # Exclude shared library initialization/finalization symbols.
8512 extract_expsyms_cmds
=
8515 cygwin
* | mingw
* | pw32
* | cegcc
*)
8516 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8517 # When not using gcc, we currently assume that we are using
8518 # Microsoft Visual C++.
8519 if test "$GCC" != yes; then
8524 # we just hope/assume this is gcc and not c89 (= MSVC++)
8533 if test "$with_gnu_ld" = yes; then
8534 # If archive_cmds runs LD, not CC, wlarc should be empty
8537 # Set some defaults for GNU ld with shared library support. These
8538 # are reset later if shared libraries are not supported. Putting them
8539 # here allows them to be overridden if necessary.
8540 runpath_var
=LD_RUN_PATH
8541 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8542 export_dynamic_flag_spec
='${wl}--export-dynamic'
8543 # ancient GNU ld didn't support --whole-archive et. al.
8544 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8545 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8547 whole_archive_flag_spec
=
8549 supports_anon_versioning
=no
8550 case `$LD -v 2>&1` in
8551 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8552 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8553 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8554 *\
2.11.
*) ;; # other 2.11 versions
8555 *) supports_anon_versioning
=yes ;;
8558 # See if GNU ld supports shared libraries.
8561 # On AIX/PPC, the GNU linker is very broken
8562 if test "$host_cpu" != ia64
; then
8566 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8567 *** to be unable to reliably create shared libraries on AIX.
8568 *** Therefore, libtool is disabling shared libraries support. If you
8569 *** really care for shared libraries, you may want to modify your PATH
8570 *** so that a non-GNU linker is found, and then restart.
8579 # see comment about AmigaOS4 .so support
8580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 archive_expsym_cmds
=''
8584 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)'
8585 hardcode_libdir_flag_spec
='-L$libdir'
8586 hardcode_minus_L
=yes
8592 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8593 allow_undefined_flag
=unsupported
8594 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8595 # support --undefined. This deserves some investigation. FIXME
8596 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602 cygwin
* | mingw
* | pw32
* | cegcc
*)
8603 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8604 # as there is no search path for DLLs.
8605 hardcode_libdir_flag_spec
='-L$libdir'
8606 allow_undefined_flag
=unsupported
8607 always_export_symbols
=no
8608 enable_shared_with_static_runtimes
=yes
8609 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8611 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8612 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8613 # If the export-symbols file already is a .def file (1st line
8614 # is EXPORTS), use it as is; otherwise, prepend...
8615 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8616 cp $export_symbols $output_objdir/$soname.def;
8618 echo EXPORTS > $output_objdir/$soname.def;
8619 cat $export_symbols >> $output_objdir/$soname.def;
8621 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8629 hardcode_shlibpath_var
=no
8630 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8631 export_dynamic_flag_spec
='${wl}-E'
8632 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8633 # Instead, shared libraries are loaded at an image base (0x10000000 by
8634 # default) and relocated if they conflict, which is a slow very memory
8635 # consuming and fragmenting process. To avoid this, we pick a random,
8636 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8637 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8638 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8639 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'
8642 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8644 if test "$host_os" = linux-dietlibc
; then
8645 case $cc_basename in
8646 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8649 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8650 && test "$tmp_diet" = no
8653 tmp_sharedflag
='-shared'
8654 case $cc_basename,$host_cpu in
8655 pgcc
*) # Portland Group C compiler
8656 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'
8657 tmp_addflag
=' $pic_flag'
8659 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8660 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'
8661 tmp_addflag
=' $pic_flag -Mnomain' ;;
8662 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8663 tmp_addflag
=' -i_dynamic' ;;
8664 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8665 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8666 ifc
* | ifort
*) # Intel Fortran compiler
8667 tmp_addflag
=' -nofor_main' ;;
8668 lf95
*) # Lahey Fortran 8.1
8669 whole_archive_flag_spec
=
8670 tmp_sharedflag
='--shared' ;;
8671 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8672 tmp_sharedflag
='-qmkshrobj'
8675 case `$CC -V 2>&1 | sed 5q` in
8676 *Sun\ C
*) # Sun C 5.9
8677 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'
8678 compiler_needs_object
=yes
8679 tmp_sharedflag
='-G' ;;
8680 *Sun\ F
*) # Sun Fortran 8.3
8681 tmp_sharedflag
='-G' ;;
8683 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 if test "x$supports_anon_versioning" = xyes
; then
8686 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8687 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8688 echo "local: *; };" >> $output_objdir/$libname.ver~
8689 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8692 case $cc_basename in
8694 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8695 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8696 hardcode_libdir_flag_spec
=
8697 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8698 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8699 if test "x$supports_anon_versioning" = xyes
; then
8700 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8701 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8702 echo "local: *; };" >> $output_objdir/$libname.ver~
8703 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8713 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8714 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8717 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8727 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8728 *** create shared libraries on Solaris systems. Therefore, libtool
8729 *** is disabling shared libraries support. We urge you to upgrade GNU
8730 *** binutils to release 2.9.1 or newer. Another option is to modify
8731 *** your PATH or compiler configuration so that the native linker is
8732 *** used, and then restart.
8735 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8736 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8743 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8744 case `$LD -v 2>&1` in
8745 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8749 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8750 *** reliably create shared libraries on SCO systems. Therefore, libtool
8751 *** is disabling shared libraries support. We urge you to upgrade GNU
8752 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8753 *** your PATH or compiler configuration so that the native linker is
8754 *** used, and then restart.
8759 # For security reasons, it is highly recommended that you always
8760 # use absolute paths for naming shared libraries, and exclude the
8761 # DT_RUNPATH tag from executables and libraries. But doing so
8762 # requires that you compile everything twice, which is a pain.
8763 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8764 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8765 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8778 hardcode_shlibpath_var
=no
8782 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8783 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8791 if test "$ld_shlibs" = no
; then
8793 hardcode_libdir_flag_spec
=
8794 export_dynamic_flag_spec
=
8795 whole_archive_flag_spec
=
8798 # PORTME fill in a description of your system's linker (not GNU ld)
8801 allow_undefined_flag
=unsupported
8802 always_export_symbols
=yes
8803 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'
8804 # Note: this linker hardcodes the directories in LIBPATH if there
8805 # are no directories specified by -L.
8806 hardcode_minus_L
=yes
8807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8808 # Neither direct hardcoding nor static linking is supported with a
8810 hardcode_direct
=unsupported
8815 if test "$host_cpu" = ia64
; then
8816 # On IA64, the linker does run time linking by default, so we don't
8817 # have to do anything special.
8818 aix_use_runtimelinking
=no
8819 exp_sym_flag
='-Bexport'
8822 # If we're using GNU nm, then we don't want the "-C" option.
8823 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8824 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8825 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'
8827 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'
8829 aix_use_runtimelinking
=no
8831 # Test if we are trying to use run time linking or normal
8832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8833 # need to do runtime linking.
8834 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8835 for ld_flag
in $LDFLAGS; do
8836 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8837 aix_use_runtimelinking
=yes
8844 exp_sym_flag
='-bexport'
8845 no_entry_flag
='-bnoentry'
8848 # When large executables or shared objects are built, AIX ld can
8849 # have problems creating the table of contents. If linking a library
8850 # or program results in "error TOC overflow" add -mminimal-toc to
8851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8856 hardcode_direct_absolute
=yes
8857 hardcode_libdir_separator
=':'
8858 link_all_deplibs
=yes
8859 file_list_spec
='${wl}-f,'
8861 if test "$GCC" = yes; then
8862 case $host_os in aix4.
[012]|aix4.
[012].
*)
8863 # We only want to do this on AIX 4.2 and lower, the check
8864 # below for broken collect2 doesn't work under 4.3+
8865 collect2name
=`${CC} -print-prog-name=collect2`
8866 if test -f "$collect2name" &&
8867 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8869 # We have reworked collect2
8872 # We have old collect2
8873 hardcode_direct
=unsupported
8874 # It fails to find uninstalled libraries when the uninstalled
8875 # path is not listed in the libpath. Setting hardcode_minus_L
8876 # to unsupported forces relinking
8877 hardcode_minus_L
=yes
8878 hardcode_libdir_flag_spec
='-L$libdir'
8879 hardcode_libdir_separator
=
8883 shared_flag
='-shared'
8884 if test "$aix_use_runtimelinking" = yes; then
8885 shared_flag
="$shared_flag "'${wl}-G'
8889 if test "$host_cpu" = ia64
; then
8890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8891 # chokes on -Wl,-G. The following line is correct:
8894 if test "$aix_use_runtimelinking" = yes; then
8895 shared_flag
='${wl}-G'
8897 shared_flag
='${wl}-bM:SRE'
8902 export_dynamic_flag_spec
='${wl}-bexpall'
8903 # It seems that -bexpall does not export symbols beginning with
8904 # underscore (_), so it is better to generate a list of symbols to export.
8905 always_export_symbols
=yes
8906 if test "$aix_use_runtimelinking" = yes; then
8907 # Warning - without using the other runtime loading flags (-brtl),
8908 # -berok will link without error, but may produce a broken library.
8909 allow_undefined_flag
='-berok'
8910 # Determine the default libpath from the value encoded in an
8912 cat >conftest.
$ac_ext <<_ACEOF
8915 cat confdefs.h
>>conftest.
$ac_ext
8916 cat >>conftest.
$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8927 rm -f conftest.
$ac_objext conftest
$ac_exeext
8928 if { (ac_try
="$ac_link"
8930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8931 *) ac_try_echo=$ac_try;;
8933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8934 $as_echo "$ac_try_echo") >&5
8935 (eval "$ac_link") 2>conftest.er1
8937 grep -v '^ *+' conftest.er1 >conftest.err
8939 cat conftest.err >&5
8940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } && {
8942 test -z "$ac_c_werror_flag" ||
8943 test ! -s conftest.err
8944 } && test -s conftest$ac_exeext && {
8945 test "$cross_compiling" = yes ||
8946 $as_test_x conftest$ac_exeext
8949 lt_aix_libpath_sed='
8950 /Import File Strings/,/^$/ {
8956 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8957 # Check for a 64-bit object if we didn't find anything.
8958 if test -z "$aix_libpath"; then
8959 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8962 $as_echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8968 rm -rf conftest.dSYM
8969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8970 conftest$ac_exeext conftest.$ac_ext
8971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8973 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8974 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"
8976 if test "$host_cpu" = ia64; then
8977 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8978 allow_undefined_flag="-z nodefs"
8979 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"
8981 # Determine the default libpath from the value encoded in an
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (ac_try="$ac_link"
9001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9002 *) ac_try_echo
=$ac_try;;
9004 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9005 $as_echo "$ac_try_echo") >&5
9006 (eval "$ac_link") 2>conftest.er1
9008 grep -v '^ *+' conftest.er1
>conftest.err
9010 cat conftest.err
>&5
9011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest
$ac_exeext && {
9016 test "$cross_compiling" = yes ||
9017 $as_test_x conftest
$ac_exeext
9020 lt_aix_libpath_sed
='
9021 /Import File Strings/,/^$/ {
9027 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 # Check for a 64-bit object if we didn't find anything.
9029 if test -z "$aix_libpath"; then
9030 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033 $as_echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.
$ac_ext >&5
9039 rm -rf conftest.dSYM
9040 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9041 conftest
$ac_exeext conftest.
$ac_ext
9042 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9044 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9045 # Warning - without using the other run time loading flags,
9046 # -berok will link without error, but may produce a broken library.
9047 no_undefined_flag
=' ${wl}-bernotok'
9048 allow_undefined_flag
=' ${wl}-berok'
9049 # Exported symbols can be pulled into shared objects from archives
9050 whole_archive_flag_spec
='$convenience'
9051 archive_cmds_need_lc
=yes
9052 # This is similar to how AIX traditionally builds its shared libraries.
9053 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'
9061 # see comment about AmigaOS4 .so support
9062 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 archive_expsym_cmds
=''
9066 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)'
9067 hardcode_libdir_flag_spec
='-L$libdir'
9068 hardcode_minus_L
=yes
9074 export_dynamic_flag_spec
=-rdynamic
9077 cygwin
* | mingw
* | pw32
* | cegcc
*)
9078 # When not using gcc, we currently assume that we are using
9079 # Microsoft Visual C++.
9080 # hardcode_libdir_flag_spec is actually meaningless, as there is
9081 # no search path for DLLs.
9082 hardcode_libdir_flag_spec
=' '
9083 allow_undefined_flag
=unsupported
9084 # Tell ltmain to make .lib files, not .a files.
9086 # Tell ltmain to make .dll files, not .so files.
9088 # FIXME: Setting linknames here is a bad hack.
9089 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9090 # The linker will automatically build a .lib file if we build a DLL.
9091 old_archive_from_new_cmds
='true'
9092 # FIXME: Should let the user specify the lib program.
9093 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9094 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9095 enable_shared_with_static_runtimes
=yes
9098 darwin
* | rhapsody
*)
9101 archive_cmds_need_lc
=no
9103 hardcode_automatic
=yes
9104 hardcode_shlibpath_var
=unsupported
9105 whole_archive_flag_spec
=''
9106 link_all_deplibs
=yes
9107 allow_undefined_flag
="$_lt_dar_allow_undefined"
9108 case $cc_basename in
9109 ifort
*) _lt_dar_can_shared
=yes ;;
9110 *) _lt_dar_can_shared
=$GCC ;;
9112 if test "$_lt_dar_can_shared" = "yes"; then
9113 output_verbose_link_cmd
=echo
9114 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9115 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9116 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}"
9117 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}"
9126 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_libdir_flag_spec
='-L$libdir'
9128 hardcode_shlibpath_var
=no
9135 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9136 # support. Future versions do this automatically, but an explicit c++rt0.o
9137 # does not break anything, and helps significantly (at the cost of a little
9140 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9141 hardcode_libdir_flag_spec
='-R$libdir'
9143 hardcode_shlibpath_var
=no
9146 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9148 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9150 hardcode_minus_L
=yes
9151 hardcode_shlibpath_var
=no
9154 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9155 freebsd
* | dragonfly
*)
9156 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9157 hardcode_libdir_flag_spec
='-R$libdir'
9159 hardcode_shlibpath_var
=no
9163 if test "$GCC" = yes; then
9164 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'
9166 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'
9168 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9169 hardcode_libdir_separator
=:
9172 # hardcode_minus_L: Not really in the search PATH,
9173 # but as the default location of the library.
9174 hardcode_minus_L
=yes
9175 export_dynamic_flag_spec
='${wl}-E'
9179 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9180 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9182 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9184 if test "$with_gnu_ld" = no
; then
9185 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9186 hardcode_libdir_flag_spec_ld
='+b $libdir'
9187 hardcode_libdir_separator
=:
9189 hardcode_direct_absolute
=yes
9190 export_dynamic_flag_spec
='${wl}-E'
9191 # hardcode_minus_L: Not really in the search PATH,
9192 # but as the default location of the library.
9193 hardcode_minus_L
=yes
9198 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9201 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9219 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9223 if test "$with_gnu_ld" = no
; then
9224 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9225 hardcode_libdir_separator
=:
9230 hardcode_shlibpath_var
=no
9234 hardcode_direct_absolute
=yes
9235 export_dynamic_flag_spec
='${wl}-E'
9237 # hardcode_minus_L: Not really in the search PATH,
9238 # but as the default location of the library.
9239 hardcode_minus_L
=yes
9245 irix5
* | irix6
* | nonstopux
*)
9246 if test "$GCC" = yes; then
9247 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'
9248 # Try to use the -exported_symbol ld option, if it does not
9249 # work, assume that -exports_file does not work either and
9250 # implicitly export all symbols.
9251 save_LDFLAGS
="$LDFLAGS"
9252 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9253 cat >conftest.
$ac_ext <<_ACEOF
9256 rm -f conftest.
$ac_objext conftest
$ac_exeext
9257 if { (ac_try
="$ac_link"
9259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264 (eval "$ac_link") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest$ac_exeext && {
9274 test "$cross_compiling" = yes ||
9275 $as_test_x conftest$ac_exeext
9277 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'
9280 $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9286 rm -rf conftest.dSYM
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 LDFLAGS="$save_LDFLAGS"
9291 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'
9292 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'
9294 archive_cmds_need_lc='no'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 hardcode_libdir_separator=:
9298 link_all_deplibs=yes
9302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9303 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9305 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9307 hardcode_libdir_flag_spec='-R$libdir'
9309 hardcode_shlibpath_var=no
9313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9317 hardcode_shlibpath_var=no
9324 if test -f /usr/libexec/ld.so; then
9326 hardcode_shlibpath_var=no
9327 hardcode_direct_absolute=yes
9328 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9332 export_dynamic_flag_spec='${wl}-E'
9335 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_libdir_flag_spec='-R$libdir'
9340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9351 hardcode_libdir_flag_spec='-L$libdir'
9352 hardcode_minus_L=yes
9353 allow_undefined_flag=unsupported
9354 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'
9355 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9359 if test "$GCC" = yes; then
9360 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9361 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'
9363 allow_undefined_flag=' -expect_unresolved \*'
9364 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'
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator=:
9371 osf4* | osf5*) # as osf3* with the addition of -msym flag
9372 if test "$GCC" = yes; then
9373 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9374 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'
9375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9377 allow_undefined_flag=' -expect_unresolved \*'
9378 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'
9379 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~
9380 $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'
9382 # Both c and cxx compiler support -rpath directly
9383 hardcode_libdir_flag_spec='-rpath $libdir'
9385 archive_cmds_need_lc='no'
9386 hardcode_libdir_separator=:
9390 no_undefined_flag=' -z defs'
9391 if test "$GCC" = yes; then
9393 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9395 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9397 case `$CC -V 2>&1` in
9400 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9402 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9406 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9412 hardcode_libdir_flag_spec='-R$libdir'
9413 hardcode_shlibpath_var=no
9415 solaris2.[0-5] | solaris2.[0-5].*) ;;
9417 # The compiler driver will combine and reorder linker options,
9418 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9419 # but is careful enough not to reorder.
9420 # Supported since Solaris 2.6 (maybe 2.5.1?)
9421 if test "$GCC" = yes; then
9422 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9424 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9428 link_all_deplibs
=yes
9432 if test "x$host_vendor" = xsequent
; then
9433 # Use $CC to link under sequent, because it throws in some extra .o
9434 # files that make .init and .fini sections work.
9435 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_libdir_flag_spec
='-L$libdir'
9441 hardcode_minus_L
=yes
9442 hardcode_shlibpath_var
=no
9446 case $host_vendor in
9448 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_direct
=yes # is this really true???
9452 ## LD is ld it makes a PLAMLIB
9453 ## CC just makes a GrossModule.
9454 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9455 reload_cmds
='$CC -r -o $output$reload_objs'
9459 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9463 runpath_var
='LD_RUN_PATH'
9464 hardcode_shlibpath_var
=no
9468 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_shlibpath_var
=no
9470 export_dynamic_flag_spec
='-Bexport'
9474 if test -d /usr
/nec
; then
9475 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_shlibpath_var
=no
9477 runpath_var
=LD_RUN_PATH
9478 hardcode_runpath_var
=yes
9483 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9484 no_undefined_flag
='${wl}-z,text'
9485 archive_cmds_need_lc
=no
9486 hardcode_shlibpath_var
=no
9487 runpath_var
='LD_RUN_PATH'
9489 if test "$GCC" = yes; then
9490 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 sysv5
* | sco3.2v5
* | sco5v6
*)
9499 # Note: We can NOT use -z defs as we might desire, because we do not
9500 # link with -lc, and that would cause any symbols used from libc to
9501 # always be unresolved, which means just about no library would
9502 # ever link correctly. If we're not using GNU ld we use -z text
9503 # though, which does catch some bad symbols but isn't as heavy-handed
9505 no_undefined_flag
='${wl}-z,text'
9506 allow_undefined_flag
='${wl}-z,nodefs'
9507 archive_cmds_need_lc
=no
9508 hardcode_shlibpath_var
=no
9509 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9510 hardcode_libdir_separator
=':'
9511 link_all_deplibs
=yes
9512 export_dynamic_flag_spec
='${wl}-Bexport'
9513 runpath_var
='LD_RUN_PATH'
9515 if test "$GCC" = yes; then
9516 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9526 hardcode_libdir_flag_spec
='-L$libdir'
9527 hardcode_shlibpath_var
=no
9535 if test x
$host_vendor = xsni
; then
9537 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9538 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9544 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9545 $as_echo "$ld_shlibs" >&6; }
9546 test "$ld_shlibs" = no
&& can_build_shared
=no
9548 with_gnu_ld
=$with_gnu_ld
9565 # Do we need to explicitly link libc?
9567 case "x$archive_cmds_need_lc" in
9569 # Assume -lc should be added
9570 archive_cmds_need_lc
=yes
9572 if test "$enable_shared" = yes && test "$GCC" = yes; then
9573 case $archive_cmds in
9575 # FIXME: we may have to deal with multi-command sequences.
9578 # Test whether the compiler implicitly links with -lc since on some
9579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9580 # to ld, don't add -lc before -lgcc.
9581 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9584 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>&5
9589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } 2>conftest.err
; then
9593 libobjs
=conftest.
$ac_objext
9595 wl
=$lt_prog_compiler_wl
9596 pic_flag
=$lt_prog_compiler_pic
9602 lt_save_allow_undefined_flag
=$allow_undefined_flag
9603 allow_undefined_flag
=
9604 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9605 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }
9610 archive_cmds_need_lc
=no
9612 archive_cmds_need_lc
=yes
9614 allow_undefined_flag
=$lt_save_allow_undefined_flag
9616 cat conftest.err
1>&5
9619 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9620 $as_echo "$archive_cmds_need_lc" >&6; }
9783 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9784 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9786 if test "$GCC" = yes; then
9788 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9789 *) lt_awk_arg
="/^libraries:/" ;;
9791 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9792 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9793 # if the path contains ";" then we assume it to be the separator
9794 # otherwise default to the standard path separator (i.e. ":") - it is
9795 # assumed that no part of a normal pathname contains ";" but that should
9796 # okay in the real world where ";" in dirpaths is itself problematic.
9797 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9799 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9801 # Ok, now we have the path, separated by spaces, we can step through it
9802 # and add multilib dir if necessary.
9803 lt_tmp_lt_search_path_spec
=
9804 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9805 for lt_sys_path
in $lt_search_path_spec; do
9806 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9807 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9809 test -d "$lt_sys_path" && \
9810 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9813 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9814 BEGIN {RS=" "; FS="/|\n";} {
9817 for (lt_i = NF; lt_i > 0; lt_i--) {
9818 if ($lt_i != "" && $lt_i != ".") {
9819 if ($lt_i == "..") {
9822 if (lt_count == 0) {
9823 lt_foo="/" $lt_i lt_foo;
9830 if (lt_foo != "") { lt_freq[lt_foo]++; }
9831 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9833 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9835 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9838 libname_spec
='lib$name'
9846 shlibpath_overrides_runpath
=unknown
9848 dynamic_linker
="$host_os ld.so"
9849 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9850 need_lib_prefix
=unknown
9851 hardcode_into_libs
=no
9853 # when you set need_version to no, make sure it does not cause -set_version
9854 # flags to be left without arguments
9855 need_version
=unknown
9860 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9861 shlibpath_var
=LIBPATH
9863 # AIX 3 has no versioning support, so we append a major version to the name.
9864 soname_spec
='${libname}${release}${shared_ext}$major'
9871 hardcode_into_libs
=yes
9872 if test "$host_cpu" = ia64
; then
9873 # AIX 5 supports IA64
9874 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9875 shlibpath_var
=LD_LIBRARY_PATH
9877 # With GCC up to 2.95.x, collect2 would create an import file
9878 # for dependence libraries. The import file would start with
9879 # the line `#! .'. This would cause the generated library to
9880 # depend on `.', always an invalid library. This was fixed in
9881 # development snapshots of GCC prior to 3.0.
9883 aix4 | aix4.
[01] | aix4.
[01].
*)
9884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9886 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9893 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9894 # soname into executable. Probably we can add versioning support to
9895 # collect2, so additional links can be useful in future.
9896 if test "$aix_use_runtimelinking" = yes; then
9897 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9898 # instead of lib<name>.a to let people know that these are not
9899 # typical AIX shared libraries.
9900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 # We preserve .a as extension for shared libraries through AIX4.2
9903 # and later when we are not doing run time linking.
9904 library_names_spec
='${libname}${release}.a $libname.a'
9905 soname_spec
='${libname}${release}${shared_ext}$major'
9907 shlibpath_var
=LIBPATH
9914 # Since July 2007 AmigaOS4 officially supports .so libraries.
9915 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919 library_names_spec
='$libname.ixlibrary $libname.a'
9920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9921 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'
9927 library_names_spec
='${libname}${shared_ext}'
9928 dynamic_linker
="$host_os ld.so"
9929 shlibpath_var
=LIBRARY_PATH
9935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec
='${libname}${release}${shared_ext}$major'
9937 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9938 shlibpath_var
=LD_LIBRARY_PATH
9939 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9940 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9941 # the default ld.so.conf also contains /usr/contrib/lib and
9942 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9943 # libtool to hard-code these into programs
9946 cygwin
* | mingw
* | pw32
* | cegcc
*)
9947 version_type
=windows
9952 case $GCC,$host_os in
9953 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9954 library_names_spec
='$libname.dll.a'
9955 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9956 postinstall_cmds
='base_file=`basename \${file}`~
9957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9958 dldir=$destdir/`dirname \$dlpath`~
9959 test -d \$dldir || mkdir -p \$dldir~
9960 $install_prog $dir/$dlname \$dldir/$dlname~
9961 chmod a+x \$dldir/$dlname~
9962 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9963 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9965 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9966 dlpath=$dir/\$dldll~
9968 shlibpath_overrides_runpath
=yes
9972 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9973 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9979 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9980 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9981 # It is most probably a Windows format PATH printed by
9982 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9983 # path with ; separators, and with drive letters. We can handle the
9984 # drive letters (cygwin fileutils understands them), so leave them,
9985 # especially as we might pass files found there to a mingw objdump,
9986 # which wouldn't understand a cygwinified path. Ahh.
9987 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9989 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9993 # pw32 DLLs use 'pw' prefix rather than 'lib'
9994 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10000 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10003 dynamic_linker
='Win32 ld.exe'
10004 # FIXME: first we should search . and the directory the executable is in
10008 darwin
* | rhapsody
*)
10009 dynamic_linker
="$host_os dyld"
10010 version_type
=darwin
10013 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10014 soname_spec
='${libname}${release}${major}$shared_ext'
10015 shlibpath_overrides_runpath
=yes
10016 shlibpath_var
=DYLD_LIBRARY_PATH
10017 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10019 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10020 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10027 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10028 soname_spec
='${libname}${release}${shared_ext}$major'
10029 shlibpath_var
=LD_LIBRARY_PATH
10036 freebsd
* | dragonfly
*)
10037 # DragonFly does not have aout. When/if they implement a new
10038 # versioning mechanism, adjust this.
10039 if test -x /usr
/bin
/objformat
; then
10040 objformat
=`/usr/bin/objformat`
10043 freebsd
[123]*) objformat
=aout
;;
10044 *) objformat
=elf
;;
10047 version_type
=freebsd-
$objformat
10048 case $version_type in
10050 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10055 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10059 shlibpath_var
=LD_LIBRARY_PATH
10062 shlibpath_overrides_runpath
=yes
10064 freebsd3.
[01]* | freebsdelf3.
[01]*)
10065 shlibpath_overrides_runpath
=yes
10066 hardcode_into_libs
=yes
10068 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10069 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10070 shlibpath_overrides_runpath
=no
10071 hardcode_into_libs
=yes
10073 *) # from 4.6 on, and DragonFly
10074 shlibpath_overrides_runpath
=yes
10075 hardcode_into_libs
=yes
10084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10085 soname_spec
='${libname}${release}${shared_ext}$major'
10086 shlibpath_var
=LD_LIBRARY_PATH
10087 hardcode_into_libs
=yes
10090 hpux9
* | hpux10
* | hpux11
*)
10091 # Give a soname corresponding to the major version so that dld.sl refuses to
10092 # link against other versions.
10099 hardcode_into_libs
=yes
10100 dynamic_linker
="$host_os dld.so"
10101 shlibpath_var
=LD_LIBRARY_PATH
10102 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec
='${libname}${release}${shared_ext}$major'
10105 if test "X$HPUX_IA64_MODE" = X32
; then
10106 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10108 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10110 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10114 hardcode_into_libs
=yes
10115 dynamic_linker
="$host_os dld.sl"
10116 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10117 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10118 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119 soname_spec
='${libname}${release}${shared_ext}$major'
10120 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10121 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10125 dynamic_linker
="$host_os dld.sl"
10126 shlibpath_var
=SHLIB_PATH
10127 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec
='${libname}${release}${shared_ext}$major'
10132 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10133 postinstall_cmds
='chmod 555 $lib'
10140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10141 soname_spec
='${libname}${release}${shared_ext}$major'
10142 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10143 shlibpath_var
=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath
=no
10145 hardcode_into_libs
=yes
10148 irix5
* | irix6
* | nonstopux
*)
10150 nonstopux
*) version_type
=nonstopux
;;
10152 if test "$lt_cv_prog_gnu_ld" = yes; then
10160 soname_spec
='${libname}${release}${shared_ext}$major'
10161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10163 irix5
* | nonstopux
*)
10164 libsuff
= shlibsuff
=
10167 case $LD in # libtool.m4 will add one of these switches to LD
10168 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10169 libsuff
= shlibsuff
= libmagic
=32-bit;;
10170 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10171 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10172 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10173 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10174 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10178 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10179 shlibpath_overrides_runpath
=no
10180 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10181 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10182 hardcode_into_libs
=yes
10185 # No shared lib support for Linux oldld, aout, or coff.
10186 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10190 # This must be Linux ELF.
10191 linux
* | k
*bsd
*-gnu)
10195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196 soname_spec
='${libname}${release}${shared_ext}$major'
10197 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10198 shlibpath_var
=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath
=no
10200 # Some binutils ld are patched to set DT_RUNPATH
10201 save_LDFLAGS
=$LDFLAGS
10202 save_libdir
=$libdir
10203 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10204 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10205 cat >conftest.
$ac_ext <<_ACEOF
10208 cat confdefs.h
>>conftest.
$ac_ext
10209 cat >>conftest.
$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10220 rm -f conftest.
$ac_objext conftest
$ac_exeext
10221 if { (ac_try
="$ac_link"
10222 case "(($ac_try" in
10223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10224 *) ac_try_echo=$ac_try;;
10226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10227 $as_echo "$ac_try_echo") >&5
10228 (eval "$ac_link") 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_c_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext && {
10238 test "$cross_compiling" = yes ||
10239 $as_test_x conftest$ac_exeext
10241 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10242 shlibpath_overrides_runpath=yes
10246 $as_echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10252 rm -rf conftest.dSYM
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LDFLAGS=$save_LDFLAGS
10256 libdir=$save_libdir
10258 # This implies no fast_install, which is unacceptable.
10259 # Some rework will be needed to allow for fast_install
10260 # before this can be enabled.
10261 hardcode_into_libs=yes
10263 # Add ABI-specific directories to the system library path.
10264 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10266 # Append ld.so.conf contents to the search path
10267 if test -f /etc/ld.so.conf; then
10268 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' ' '`
10269 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10272 # We used to test for /lib/ld.so.1 and disable shared libraries on
10273 # powerpc, because MkLinux only supported shared libraries with the
10274 # GNU dynamic linker. Since this was broken with cross compilers,
10275 # most powerpc-linux boxes support dynamic linking these days and
10276 # people can always --disable-shared, the test was removed, and we
10277 # assume the GNU/Linux dynamic linker is in use.
10278 dynamic_linker='GNU/Linux ld.so'
10285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10288 dynamic_linker='NetBSD (a.out) ld.so'
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 dynamic_linker='NetBSD ld.elf_so'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10296 hardcode_into_libs=yes
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 shlibpath_overrides_runpath=no
10314 hardcode_into_libs=yes
10315 dynamic_linker='ldqnx.so'
10320 sys_lib_dlsearch_path_spec="/usr/lib"
10322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10324 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10325 *) need_version=no ;;
10327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10329 shlibpath_var=LD_LIBRARY_PATH
10330 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10332 openbsd2.[89] | openbsd2.[89].*)
10333 shlibpath_overrides_runpath=no
10336 shlibpath_overrides_runpath=yes
10340 shlibpath_overrides_runpath=yes
10345 libname_spec='$name'
10348 library_names_spec='$libname${shared_ext} $libname.a'
10349 dynamic_linker='OS/2 ld.exe'
10350 shlibpath_var=LIBPATH
10353 osf3* | osf4* | osf5*)
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=yes
10376 hardcode_into_libs=yes
10377 # ldd complains unless libraries are executable
10378 postinstall_cmds='chmod +x $lib'
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10385 shlibpath_var=LD_LIBRARY_PATH
10386 shlibpath_overrides_runpath=yes
10387 if test "$with_gnu_ld" = yes; then
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 case $host_vendor in
10400 shlibpath_overrides_runpath=no
10402 runpath_var=LD_RUN_PATH
10410 shlibpath_overrides_runpath=no
10411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10417 if test -d /usr/nec ;then
10419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10420 soname_spec='$libname${shared_ext}.$major'
10421 shlibpath_var=LD_LIBRARY_PATH
10425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10426 version_type=freebsd-elf
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10434 if test "$with_gnu_ld" = yes; then
10435 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10444 sys_lib_dlsearch_path_spec='/usr/lib'
10448 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=no
10455 hardcode_into_libs=yes
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10469 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10470 $as_echo "$dynamic_linker" >&6; }
10471 test "$dynamic_linker" = no && can_build_shared=no
10473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10474 if test "$GCC" = yes; then
10475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10479 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10481 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10482 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10571 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10572 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10574 if test -n "$hardcode_libdir_flag_spec" ||
10575 test -n "$runpath_var" ||
10576 test "X$hardcode_automatic" = "Xyes" ; then
10578 # We can hardcode non-existent directories.
10579 if test "$hardcode_direct" != no &&
10580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10581 # have to relink, otherwise we might link with an installed library
10582 # when we should be linking with a yet-to-be-installed one
10583 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10584 test "$hardcode_minus_L" != no; then
10585 # Linking always hardcodes the temporary library directory.
10586 hardcode_action=relink
10588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10589 hardcode_action=immediate
10592 # We cannot hardcode anything, or else we can only hardcode existing
10594 hardcode_action=unsupported
10596 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10597 $as_echo "$hardcode_action" >&6; }
10599 if test "$hardcode_action" = relink ||
10600 test "$inherit_rpath" = yes; then
10601 # Fast installation is not supported
10602 enable_fast_install=no
10603 elif test "$shlibpath_overrides_runpath" = yes ||
10604 test "$enable_shared" = no; then
10605 # Fast installation is not necessary
10606 enable_fast_install=needless
10614 if test "x$enable_dlopen" != xyes; then
10615 enable_dlopen=unknown
10616 enable_dlopen_self=unknown
10617 enable_dlopen_self_static=unknown
10624 lt_cv_dlopen="load_add_on"
10626 lt_cv_dlopen_self=yes
10629 mingw* | pw32* | cegcc*)
10630 lt_cv_dlopen="LoadLibrary"
10635 lt_cv_dlopen="dlopen"
10640 # if libdl is installed we need to link against it
10641 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10643 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10644 $as_echo_n "(cached) " >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10674 *) ac_try_echo
=$ac_try;;
10676 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_link") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1
>conftest.err
10682 cat conftest.err
>&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest
$ac_exeext && {
10688 test "$cross_compiling" = yes ||
10689 $as_test_x conftest
$ac_exeext
10691 ac_cv_lib_dl_dlopen
=yes
10693 $as_echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.
$ac_ext >&5
10696 ac_cv_lib_dl_dlopen
=no
10699 rm -rf conftest.dSYM
10700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10701 conftest
$ac_exeext conftest.
$ac_ext
10702 LIBS
=$ac_check_lib_save_LIBS
10704 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10706 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10707 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10710 lt_cv_dlopen
="dyld"
10712 lt_cv_dlopen_self
=yes
10719 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10720 $as_echo_n "checking for shl_load... " >&6; }
10721 if test "${ac_cv_func_shl_load+set}" = set; then
10722 $as_echo_n "(cached) " >&6
10724 cat >conftest.
$ac_ext <<_ACEOF
10727 cat confdefs.h
>>conftest.
$ac_ext
10728 cat >>conftest.
$ac_ext <<_ACEOF
10729 /* end confdefs.h. */
10730 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10732 #define shl_load innocuous_shl_load
10734 /* System header to define __stub macros and hopefully few prototypes,
10735 which can conflict with char shl_load (); below.
10736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10737 <limits.h> exists even on freestanding compilers. */
10740 # include <limits.h>
10742 # include <assert.h>
10747 /* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
10754 /* The GNU C library defines this for functions which it implements
10755 to always fail with ENOSYS. Some functions are actually named
10756 something starting with __ and the normal name is an alias. */
10757 #if defined __stub_shl_load || defined __stub___shl_load
10764 return shl_load ();
10769 rm -f conftest.
$ac_objext conftest
$ac_exeext
10770 if { (ac_try
="$ac_link"
10771 case "(($ac_try" in
10772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10790 ac_cv_func_shl_load=yes
10792 $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10795 ac_cv_func_shl_load=no
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10802 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10803 $as_echo "$ac_cv_func_shl_load" >&6; }
10804 if test "x$ac_cv_func_shl_load" = x""yes; then
10805 lt_cv_dlopen="shl_load"
10807 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10808 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10809 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10810 $as_echo_n "(cached) " >&6
10812 ac_check_lib_save_LIBS=$LIBS
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10821 /* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10831 return shl_load ();
10836 rm -f conftest.$ac_objext conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10840 *) ac_try_echo
=$ac_try;;
10842 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10843 $as_echo "$ac_try_echo") >&5
10844 (eval "$ac_link") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1
>conftest.err
10848 cat conftest.err
>&5
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest
$ac_exeext && {
10854 test "$cross_compiling" = yes ||
10855 $as_test_x conftest
$ac_exeext
10857 ac_cv_lib_dld_shl_load
=yes
10859 $as_echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.
$ac_ext >&5
10862 ac_cv_lib_dld_shl_load
=no
10865 rm -rf conftest.dSYM
10866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10867 conftest
$ac_exeext conftest.
$ac_ext
10868 LIBS
=$ac_check_lib_save_LIBS
10870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10871 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10872 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10873 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10875 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10876 $as_echo_n "checking for dlopen... " >&6; }
10877 if test "${ac_cv_func_dlopen+set}" = set; then
10878 $as_echo_n "(cached) " >&6
10880 cat >conftest.
$ac_ext <<_ACEOF
10883 cat confdefs.h
>>conftest.
$ac_ext
10884 cat >>conftest.
$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10888 #define dlopen innocuous_dlopen
10890 /* System header to define __stub macros and hopefully few prototypes,
10891 which can conflict with char dlopen (); below.
10892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10893 <limits.h> exists even on freestanding compilers. */
10896 # include <limits.h>
10898 # include <assert.h>
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10910 /* The GNU C library defines this for functions which it implements
10911 to always fail with ENOSYS. Some functions are actually named
10912 something starting with __ and the normal name is an alias. */
10913 #if defined __stub_dlopen || defined __stub___dlopen
10925 rm -f conftest.
$ac_objext conftest
$ac_exeext
10926 if { (ac_try
="$ac_link"
10927 case "(($ac_try" in
10928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10932 $as_echo "$ac_try_echo") >&5
10933 (eval "$ac_link") 2>conftest.er1
10935 grep -v '^ *+' conftest.er1 >conftest.err
10937 cat conftest.err >&5
10938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } && {
10940 test -z "$ac_c_werror_flag" ||
10941 test ! -s conftest.err
10942 } && test -s conftest$ac_exeext && {
10943 test "$cross_compiling" = yes ||
10944 $as_test_x conftest$ac_exeext
10946 ac_cv_func_dlopen=yes
10948 $as_echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 ac_cv_func_dlopen=no
10954 rm -rf conftest.dSYM
10955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10956 conftest$ac_exeext conftest.$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10959 $as_echo "$ac_cv_func_dlopen" >&6; }
10960 if test "x$ac_cv_func_dlopen" = x""yes; then
10961 lt_cv_dlopen="dlopen"
10963 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10964 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10965 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10966 $as_echo_n "(cached) " >&6
10968 ac_check_lib_save_LIBS=$LIBS
10970 cat >conftest.$ac_ext <<_ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10977 /* Override any GCC internal prototype to avoid an error.
10978 Use char because int might match the return type of a GCC
10979 builtin and then its argument prototype would still apply. */
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (ac_try="$ac_link"
10994 case "(($ac_try" in
10995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10996 *) ac_try_echo
=$ac_try;;
10998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_link") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest
$ac_exeext && {
11010 test "$cross_compiling" = yes ||
11011 $as_test_x conftest
$ac_exeext
11013 ac_cv_lib_dl_dlopen
=yes
11015 $as_echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.
$ac_ext >&5
11018 ac_cv_lib_dl_dlopen
=no
11021 rm -rf conftest.dSYM
11022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11023 conftest
$ac_exeext conftest.
$ac_ext
11024 LIBS
=$ac_check_lib_save_LIBS
11026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11028 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11029 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11031 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11034 $as_echo_n "(cached) " >&6
11036 ac_check_lib_save_LIBS
=$LIBS
11037 LIBS
="-lsvld $LIBS"
11038 cat >conftest.
$ac_ext <<_ACEOF
11041 cat confdefs.h
>>conftest.
$ac_ext
11042 cat >>conftest.
$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11060 rm -f conftest.
$ac_objext conftest
$ac_exeext
11061 if { (ac_try
="$ac_link"
11062 case "(($ac_try" in
11063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1 >conftest.err
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11081 ac_cv_lib_svld_dlopen=yes
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_lib_svld_dlopen=no
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11095 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11096 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11097 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11099 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11100 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11102 $as_echo_n "(cached) " >&6
11104 ac_check_lib_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11123 return dld_link ();
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11132 *) ac_try_echo
=$ac_try;;
11134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11135 $as_echo "$ac_try_echo") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1
>conftest.err
11140 cat conftest.err
>&5
11141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } && {
11143 test -z "$ac_c_werror_flag" ||
11144 test ! -s conftest.err
11145 } && test -s conftest
$ac_exeext && {
11146 test "$cross_compiling" = yes ||
11147 $as_test_x conftest
$ac_exeext
11149 ac_cv_lib_dld_dld_link
=yes
11151 $as_echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.
$ac_ext >&5
11154 ac_cv_lib_dld_dld_link
=no
11157 rm -rf conftest.dSYM
11158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11159 conftest
$ac_exeext conftest.
$ac_ext
11160 LIBS
=$ac_check_lib_save_LIBS
11162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11163 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11164 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11165 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11186 if test "x$lt_cv_dlopen" != xno
; then
11192 case $lt_cv_dlopen in
11194 save_CPPFLAGS
="$CPPFLAGS"
11195 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11197 save_LDFLAGS
="$LDFLAGS"
11198 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11201 LIBS
="$lt_cv_dlopen_libs $LIBS"
11203 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11204 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11205 if test "${lt_cv_dlopen_self+set}" = set; then
11206 $as_echo_n "(cached) " >&6
11208 if test "$cross_compiling" = yes; then :
11209 lt_cv_dlopen_self
=cross
11211 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11212 lt_status
=$lt_dlunknown
11213 cat > conftest.
$ac_ext <<_LT_EOF
11214 #line 11214 "configure"
11215 #include "confdefs.h"
11224 # define LT_DLGLOBAL RTLD_GLOBAL
11227 # define LT_DLGLOBAL DL_GLOBAL
11229 # define LT_DLGLOBAL 0
11233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234 find out it does not work in some platform. */
11235 #ifndef LT_DLLAZY_OR_NOW
11237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11240 # define LT_DLLAZY_OR_NOW DL_LAZY
11243 # define LT_DLLAZY_OR_NOW RTLD_NOW
11246 # define LT_DLLAZY_OR_NOW DL_NOW
11248 # define LT_DLLAZY_OR_NOW 0
11255 void fnord() { int i=42;}
11258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11259 int status = $lt_dlunknown;
11263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11265 /* dlclose (self); */
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>&5
11276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11278 (.
/conftest
; exit; ) >&5 2>/dev
/null
11280 case x
$lt_status in
11281 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11282 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11283 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11286 # compilation failed
11287 lt_cv_dlopen_self
=no
11294 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11295 $as_echo "$lt_cv_dlopen_self" >&6; }
11297 if test "x$lt_cv_dlopen_self" = xyes
; then
11298 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11299 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11300 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11301 if test "${lt_cv_dlopen_self_static+set}" = set; then
11302 $as_echo_n "(cached) " >&6
11304 if test "$cross_compiling" = yes; then :
11305 lt_cv_dlopen_self_static
=cross
11307 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11308 lt_status
=$lt_dlunknown
11309 cat > conftest.
$ac_ext <<_LT_EOF
11310 #line 11310 "configure"
11311 #include "confdefs.h"
11320 # define LT_DLGLOBAL RTLD_GLOBAL
11323 # define LT_DLGLOBAL DL_GLOBAL
11325 # define LT_DLGLOBAL 0
11329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11330 find out it does not work in some platform. */
11331 #ifndef LT_DLLAZY_OR_NOW
11333 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11336 # define LT_DLLAZY_OR_NOW DL_LAZY
11339 # define LT_DLLAZY_OR_NOW RTLD_NOW
11342 # define LT_DLLAZY_OR_NOW DL_NOW
11344 # define LT_DLLAZY_OR_NOW 0
11351 void fnord() { int i=42;}
11354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11355 int status = $lt_dlunknown;
11359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11361 /* dlclose (self); */
11369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11370 (eval $ac_link) 2>&5
11372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11374 (.
/conftest
; exit; ) >&5 2>/dev
/null
11376 case x
$lt_status in
11377 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11378 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11379 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11382 # compilation failed
11383 lt_cv_dlopen_self_static
=no
11390 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11391 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11394 CPPFLAGS
="$save_CPPFLAGS"
11395 LDFLAGS
="$save_LDFLAGS"
11400 case $lt_cv_dlopen_self in
11401 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11402 *) enable_dlopen_self
=unknown
;;
11405 case $lt_cv_dlopen_self_static in
11406 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11407 *) enable_dlopen_self_static
=unknown
;;
11429 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11430 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11431 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11432 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11433 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11434 { $as_echo "$as_me:$LINENO: result: yes" >&5
11435 $as_echo "yes" >&6; }
11437 # FIXME - insert some real tests, host_os isn't really good enough
11440 if test -n "$STRIP" ; then
11441 striplib
="$STRIP -x"
11442 old_striplib
="$STRIP -S"
11443 { $as_echo "$as_me:$LINENO: result: yes" >&5
11444 $as_echo "yes" >&6; }
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447 $as_echo "no" >&6; }
11451 { $as_echo "$as_me:$LINENO: result: no" >&5
11452 $as_echo "no" >&6; }
11468 # Report which library types will actually be built
11469 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11470 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11471 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11472 $as_echo "$can_build_shared" >&6; }
11474 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11475 $as_echo_n "checking whether to build shared libraries... " >&6; }
11476 test "$can_build_shared" = "no" && enable_shared
=no
11478 # On AIX, shared libraries and static libraries use the same namespace, and
11479 # are all built from PIC.
11482 test "$enable_shared" = yes && enable_static
=no
11483 if test -n "$RANLIB"; then
11484 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11485 postinstall_cmds
='$RANLIB $lib'
11490 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11491 test "$enable_shared" = yes && enable_static
=no
11495 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11496 $as_echo "$enable_shared" >&6; }
11498 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11499 $as_echo_n "checking whether to build static libraries... " >&6; }
11500 # Make sure either enable_shared or enable_static is yes.
11501 test "$enable_shared" = yes || enable_static
=yes
11502 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11503 $as_echo "$enable_static" >&6; }
11510 ac_cpp
='$CPP $CPPFLAGS'
11511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11529 ac_config_commands
="$ac_config_commands libtool"
11534 # Only expand once:
11537 # By default we simply use the C compiler to build assembly code.
11539 test "${CCAS+set}" = set || CCAS
=$CC
11540 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11544 depcc
="$CCAS" am_compiler_list
=
11546 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11547 $as_echo_n "checking dependency style of $depcc... " >&6; }
11548 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11549 $as_echo_n "(cached) " >&6
11551 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11552 # We make a subdir and do the tests there. Otherwise we can end up
11553 # making bogus files that we don't know about and never remove. For
11554 # instance it was reported that on HP-UX the gcc test will end up
11555 # making a dummy file named `D' -- because `-MD' means `put the output
11558 # Copy depcomp to subdir because otherwise we won't find it if we're
11559 # using a relative directory.
11560 cp "$am_depcomp" conftest.dir
11562 # We will build objects and dependencies in a subdirectory because
11563 # it helps to detect inapplicable dependency modes. For instance
11564 # both Tru64's cc and ICC support -MD to output dependencies as a
11565 # side effect of compilation, but ICC will put the dependencies in
11566 # the current directory while Tru64 will put them in the object
11570 am_cv_CCAS_dependencies_compiler_type
=none
11571 if test "$am_compiler_list" = ""; then
11572 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11574 am__universal
=false
11577 for depmode
in $am_compiler_list; do
11578 # Setup a source with many dependencies, because some compilers
11579 # like to wrap large dependency lists on column 80 (with \), and
11580 # we should not choose a depcomp mode which is confused by this.
11582 # We need to recreate these files for each test, as the compiler may
11583 # overwrite some of them when testing with obscure command lines.
11584 # This happens at least with the AIX C compiler.
11586 for i
in 1 2 3 4 5 6; do
11587 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11589 # Solaris 8's {/usr,}/bin/sh.
11590 touch sub
/conftst
$i.h
11592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11595 # mode. It turns out that the SunPro C++ compiler does not properly
11596 # handle `-M -o', and we need to detect this. Also, some Intel
11597 # versions had trouble with output in subdirs
11598 am__obj
=sub
/conftest.
${OBJEXT-o}
11599 am__minus_obj
="-o $am__obj"
11602 # This depmode causes a compiler race in universal mode.
11603 test "$am__universal" = false ||
continue
11606 # after this tag, mechanisms are not by side-effect, so they'll
11607 # only be used when explicitly requested
11608 if test "x$enable_dependency_tracking" = xyes
; then
11614 msvisualcpp | msvcmsys
)
11615 # This compiler won't grok `-c -o', but also, the minuso test has
11616 # not run yet. These depmodes are late enough in the game, and
11617 # so weak that their functioning should not be impacted.
11618 am__obj
=conftest.
${OBJEXT-o}
11623 if depmode
=$depmode \
11624 source=sub
/conftest.c object
=$am__obj \
11625 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11626 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11627 >/dev
/null
2>conftest.err
&&
11628 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11629 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11630 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11631 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11632 # icc doesn't choke on unknown options, it will just issue warnings
11633 # or remarks (even with -Werror). So we grep stderr for any message
11634 # that says an option was ignored or not supported.
11635 # When given -MP, icc 7.0 and 7.1 complain thusly:
11636 # icc: Command line warning: ignoring option '-M'; no argument required
11637 # The diagnosis changed in icc 8.0:
11638 # icc: Command line remark: option '-MP' not supported
11639 if (grep 'ignoring option' conftest.err ||
11640 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11641 am_cv_CCAS_dependencies_compiler_type
=$depmode
11648 rm -rf conftest.dir
11650 am_cv_CCAS_dependencies_compiler_type
=none
11654 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11655 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11656 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11659 test "x$enable_dependency_tracking" != xno \
11660 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11661 am__fastdepCCAS_TRUE
=
11662 am__fastdepCCAS_FALSE
='#'
11664 am__fastdepCCAS_TRUE
='#'
11665 am__fastdepCCAS_FALSE
=
11671 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11672 $as_echo_n "checking zfs author... " >&6; }
11673 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11674 $as_echo "$ZFS_META_AUTHOR" >&6; }
11676 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11677 $as_echo_n "checking zfs license... " >&6; }
11678 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11679 $as_echo "$ZFS_META_LICENSE" >&6; }
11683 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11684 $as_echo_n "checking linux distribution... " >&6; }
11685 if test -f /etc
/toss-release
; then
11687 elif test -f /etc
/fedora-release
; then
11689 elif test -f /etc
/redhat-release
; then
11691 elif test -f /etc
/gentoo-release
; then
11693 elif test -f /etc
/arch-release
; then
11695 elif test -f /etc
/SuSE-release
; then
11697 elif test -f /etc
/slackware-version
; then
11699 elif test -f /etc
/lunar.release
; then
11701 elif test -f /etc
/lsb-release
; then
11703 elif test -f /etc
/debian_version
; then
11708 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11709 $as_echo "$VENDOR" >&6; }
11712 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11713 $as_echo_n "checking default package type... " >&6; }
11715 toss
) DEFAULT_PACKAGE
=rpm
;;
11716 redhat
) DEFAULT_PACKAGE
=rpm
;;
11717 fedora
) DEFAULT_PACKAGE
=rpm
;;
11718 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11719 arch
) DEFAULT_PACKAGE
=arch
;;
11720 sles
) DEFAULT_PACKAGE
=rpm
;;
11721 slackware
) DEFAULT_PACKAGE
=tgz
;;
11722 lunar
) DEFAULT_PACKAGE
=tgz
;;
11723 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11724 debian
) DEFAULT_PACKAGE
=deb
;;
11725 *) DEFAULT_PACKAGE
=rpm
;;
11728 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11729 $as_echo "$DEFAULT_PACKAGE" >&6; }
11732 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11733 $as_echo_n "checking default init directory... " >&6; }
11735 arch
) DEFAULT_INIT_DIR
=$sysconfdir/rc.d
;;
11736 *) DEFAULT_INIT_DIR
=$sysconfdir/init.d
;;
11739 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11740 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11743 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11744 $as_echo_n "checking default init script type... " >&6; }
11746 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11747 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11748 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11749 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11750 arch
) DEFAULT_INIT_SCRIPT
=arch
;;
11751 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11752 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11753 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11754 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11755 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11756 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11759 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11760 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11767 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11768 $as_echo_n "checking whether $RPM is available... " >&6; }
11769 if tmp
=$
($RPM --version 2>/dev
/null
); then
11771 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11773 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11774 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11779 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11780 $as_echo "$HAVE_RPM" >&6; }
11785 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11786 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11787 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11789 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11791 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11792 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11797 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11798 $as_echo "$HAVE_RPMBUILD" >&6; }
11813 DPKGBUILD
=dpkg-buildpackage
11815 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11816 $as_echo_n "checking whether $DPKG is available... " >&6; }
11817 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11819 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11821 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11822 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11827 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11828 $as_echo "$HAVE_DPKG" >&6; }
11833 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11834 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11835 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11837 DPKGBUILD_VERSION
=$
(echo $tmp | \
11838 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11840 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11841 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11846 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11847 $as_echo "$HAVE_DPKGBUILD" >&6; }
11863 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11864 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11865 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11867 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11869 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11870 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11875 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11876 $as_echo "$HAVE_ALIEN" >&6; }
11886 if test "$VENDOR" = "arch"; then
11891 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11892 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11893 tmp
=$
($PACMAN --version 2>/dev
/null
)
11894 if test -n "$tmp"; then
11896 PACMAN_VERSION
=$
(echo $tmp |
11897 $AWK '/Pacman/ { print $3 }' |
11900 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11901 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11906 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11907 $as_echo "$HAVE_PACMAN" >&6; }
11912 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11913 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11914 tmp
=$
($MAKEPKG --version 2>/dev
/null
)
11915 if test -n "$tmp"; then
11917 MAKEPKG_VERSION
=$
(echo $tmp |
$AWK '/makepkg/ { print $3 }')
11919 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11920 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11925 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11926 $as_echo "$HAVE_MAKEPKG" >&6; }
11943 TARGET_ASM_DIR
=asm-generic
11948 # Check whether --with-config was given.
11949 if test "${with_config+set}" = set; then
11950 withval
=$with_config; ZFS_CONFIG
="$withval"
11953 # Check whether --enable-linux-builtin was given.
11954 if test "${enable_linux_builtin+set}" = set; then
11955 enableval
=$enable_linux_builtin;
11957 enable_linux_builtin
=no
11961 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11962 $as_echo_n "checking zfs config... " >&6; }
11963 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11964 $as_echo "$ZFS_CONFIG" >&6; };
11969 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11970 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11972 saved_flags
="$CFLAGS"
11973 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11975 if test "$cross_compiling" = yes; then
11976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11978 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11979 See \`config.log' for more details." >&5
11980 $as_echo "$as_me: error: cannot run test program while cross compiling
11981 See \`config.log' for more details." >&2;}
11982 { (exit 1); exit 1; }; }; }
11984 cat >conftest.
$ac_ext <<_ACEOF
11987 cat confdefs.h
>>conftest.
$ac_ext
11988 cat >>conftest.
$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11999 rm -f conftest
$ac_exeext
12000 if { (ac_try
="$ac_link"
12001 case "(($ac_try" in
12002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12006 $as_echo "$ac_try_echo") >&5
12007 (eval "$ac_link") 2>&5
12009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12013 *) ac_try_echo
=$ac_try;;
12015 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12016 $as_echo "$ac_try_echo") >&5
12017 (eval "$ac_try") 2>&5
12019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12022 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12023 { $as_echo "$as_me:$LINENO: result: yes" >&5
12024 $as_echo "yes" >&6; }
12027 $as_echo "$as_me: program exited with status $ac_status" >&5
12028 $as_echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.
$ac_ext >&5
12031 ( exit $ac_status )
12033 NO_UNUSED_BUT_SET_VARIABLE
=
12034 { $as_echo "$as_me:$LINENO: result: no" >&5
12035 $as_echo "no" >&6; }
12038 rm -rf conftest.dSYM
12039 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12044 CFLAGS
="$saved_flags"
12049 case "$ZFS_CONFIG" in
12053 # Check whether --with-linux was given.
12054 if test "${with_linux+set}" = set; then
12055 withval
=$with_linux; kernelsrc
="$withval"
12060 # Check whether --with-linux-obj was given.
12061 if test "${with_linux_obj+set}" = set; then
12062 withval
=$with_linux_obj; kernelbuild
="$withval"
12066 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12067 $as_echo_n "checking kernel source directory... " >&6; }
12068 if test -z "$kernelsrc"; then
12070 if test -e "/lib/modules/$(uname -r)/source"; then
12072 headersdir
="/lib/modules/$(uname -r)/source"
12073 sourcelink
=$
(readlink
-f "$headersdir")
12075 elif test -e "/lib/modules/$(uname -r)/build"; then
12077 headersdir
="/lib/modules/$(uname -r)/build"
12078 sourcelink
=$
(readlink
-f "$headersdir")
12082 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12084 2>/dev
/null |
grep -v obj |
tail -1)
12089 if test -n "$sourcelink" && test -e ${sourcelink}; then
12091 kernelsrc
=`readlink -f ${sourcelink}`
12095 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12096 $as_echo "Not found" >&6; }
12097 { { $as_echo "$as_me:$LINENO: error:
12098 *** Please make sure the kernel devel package for your distribution
12099 *** is installed then try again. If that fails you can specify the
12100 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12101 $as_echo "$as_me: error:
12102 *** Please make sure the kernel devel package for your distribution
12103 *** is installed then try again. If that fails you can specify the
12104 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12105 { (exit 1); exit 1; }; }
12112 if test "$kernelsrc" = "NONE"; then
12122 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12123 $as_echo "$kernelsrc" >&6; }
12124 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12125 $as_echo_n "checking kernel build directory... " >&6; }
12126 if test -z "$kernelbuild"; then
12128 if test -e "/lib/modules/$(uname -r)/build"; then
12130 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12132 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12134 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12136 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
12138 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12140 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
12142 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12146 kernelbuild
=${kernelsrc}
12153 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12154 $as_echo "$kernelbuild" >&6; }
12156 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12157 $as_echo_n "checking kernel source version... " >&6; }
12158 utsrelease1
=$kernelbuild/include
/linux
/version.h
12159 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12160 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12161 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
12163 utsrelease
=linux
/version.h
12165 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
12167 utsrelease
=linux
/utsrelease.h
12169 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
12171 utsrelease
=generated
/utsrelease.h
12176 if test "$utsrelease"; then
12178 kernsrcver
=`(echo "#include <$utsrelease>";
12179 echo "kernsrcver=UTS_RELEASE") |
12180 cpp -I $kernelbuild/include |
12181 grep "^kernsrcver=" | cut -d \" -f 2`
12183 if test -z "$kernsrcver"; then
12185 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12186 $as_echo "Not found" >&6; }
12187 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12188 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12189 { (exit 1); exit 1; }; }
12196 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12197 $as_echo "Not found" >&6; }
12198 if test "x$enable_linux_builtin" != xyes
; then
12199 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12200 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12201 { (exit 1); exit 1; }; }
12203 { { $as_echo "$as_me:$LINENO: error:
12204 *** Cannot find UTS_RELEASE definition.
12205 *** Please run 'make prepare' inside the kernel source tree." >&5
12206 $as_echo "$as_me: error:
12207 *** Cannot find UTS_RELEASE definition.
12208 *** Please run 'make prepare' inside the kernel source tree." >&2;}
12209 { (exit 1); exit 1; }; }
12215 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12216 $as_echo "$kernsrcver" >&6; }
12219 LINUX_OBJ
=${kernelbuild}
12220 LINUX_VERSION
=${kernsrcver}
12227 modpost
=$LINUX/scripts
/Makefile.modpost
12228 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12229 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12230 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
12232 if grep -q Modules.symvers
$modpost; then
12234 LINUX_SYMBOLS
=Modules.symvers
12238 LINUX_SYMBOLS
=Module.symvers
12243 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12245 { { $as_echo "$as_me:$LINENO: error:
12246 *** Please make sure the kernel devel package for your distribution
12247 *** is installed. If your building with a custom kernel make sure the
12248 *** kernel is configured, built, and the '--with-linux=PATH' configure
12249 *** option refers to the location of the kernel source." >&5
12250 $as_echo "$as_me: error:
12251 *** Please make sure the kernel devel package for your distribution
12252 *** is installed. If your building with a custom kernel make sure the
12253 *** kernel is configured, built, and the '--with-linux=PATH' configure
12254 *** option refers to the location of the kernel source." >&2;}
12255 { (exit 1); exit 1; }; }
12266 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12267 $as_echo "$LINUX_SYMBOLS" >&6; }
12273 # Check whether --with-spl was given.
12274 if test "${with_spl+set}" = set; then
12275 withval
=$with_spl; splsrc
="$withval"
12280 # Check whether --with-spl-obj was given.
12281 if test "${with_spl_obj+set}" = set; then
12282 withval
=$with_spl_obj; splbuild
="$withval"
12287 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12288 $as_echo_n "checking spl source directory... " >&6; }
12289 if test -z "$splsrc"; then
12291 sourcelink
=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12292 2>/dev/null | tail -1`
12294 if test -z "$sourcelink" ||
test ! -e $sourcelink/spl_config.h
; then
12296 sourcelink
=`ls -1d /var/lib/dkms/spl/*/build \
12297 2>/dev/null | tail -1`
12302 if test -z "$sourcelink" ||
test ! -e $sourcelink/spl_config.h
; then
12309 if test -e $sourcelink/spl_config.h
; then
12311 splsrc
=`readlink -f ${sourcelink}`
12315 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12316 $as_echo "Not found" >&6; }
12317 { { $as_echo "$as_me:$LINENO: error:
12318 *** Please make sure the spl devel package for your distribution
12319 *** is installed then try again. If that fails you can specify the
12320 *** location of the spl source with the '--with-spl=PATH' option." >&5
12321 $as_echo "$as_me: error:
12322 *** Please make sure the spl devel package for your distribution
12323 *** is installed then try again. If that fails you can specify the
12324 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12325 { (exit 1); exit 1; }; }
12332 if test "$splsrc" = "NONE"; then
12343 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12344 $as_echo "$splsrc" >&6; }
12345 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12346 $as_echo_n "checking spl build directory... " >&6; }
12347 if test -z "$splbuild"; then
12353 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12354 $as_echo "$splbuild" >&6; }
12356 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12357 $as_echo_n "checking spl source version... " >&6; }
12358 if test -r $splbuild/spl_config.h
&&
12359 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12362 splsrcver
=`(echo "#include <spl_config.h>";
12363 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12365 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12370 if test -z "$splsrcver"; then
12372 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12373 $as_echo "Not found" >&6; }
12374 { { $as_echo "$as_me:$LINENO: error:
12375 *** Cannot determine the version of the spl source.
12376 *** Please prepare the spl source before running this script" >&5
12377 $as_echo "$as_me: error:
12378 *** Cannot determine the version of the spl source.
12379 *** Please prepare the spl source before running this script" >&2;}
12380 { (exit 1); exit 1; }; }
12385 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12386 $as_echo "$splsrcver" >&6; }
12389 SPL_OBJ
=${splbuild}
12390 SPL_VERSION
=${splsrcver}
12398 # Check whether --with-spl-timeout was given.
12399 if test "${with_spl_timeout+set}" = set; then
12400 withval
=$with_spl_timeout; timeout
="$withval"
12406 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12407 $as_echo_n "checking spl file name for module symbols... " >&6; }
12411 if test -r $SPL_OBJ/Module.symvers
; then
12413 SPL_SYMBOLS
=Module.symvers
12415 elif test -r $SPL_OBJ/Modules.symvers
; then
12417 SPL_SYMBOLS
=Modules.symvers
12419 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12421 SPL_SYMBOLS
=Module.symvers
12423 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12425 SPL_SYMBOLS
=Modules.symvers
12430 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then
12437 timeout
=$
((timeout-1
))
12443 if test "$SPL_SYMBOLS" = NONE
; then
12445 SPL_SYMBOLS
=$LINUX_SYMBOLS
12450 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12451 $as_echo "$SPL_SYMBOLS" >&6; }
12455 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
12456 $as_echo_n "checking whether modules can be built... " >&6; }
12459 cat confdefs.h
- <<_ACEOF >conftest.c
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12478 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12479 echo "obj-m := conftest.o" >build
/Makefile
12481 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12482 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12494 { $as_echo "$as_me:$LINENO: result: yes" >&5
12495 $as_echo "yes" >&6; }
12498 $as_echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.
$ac_ext >&5
12501 { $as_echo "$as_me:$LINENO: result: no" >&5
12502 $as_echo "no" >&6; }
12503 if test "x$enable_linux_builtin" != xyes
; then
12504 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12505 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12506 { (exit 1); exit 1; }; }
12508 { { $as_echo "$as_me:$LINENO: error:
12509 *** Unable to build an empty module.
12510 *** Please run 'make scripts' inside the kernel source tree." >&5
12511 $as_echo "$as_me: error:
12512 *** Unable to build an empty module.
12513 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12514 { (exit 1); exit 1; }; }
12527 if test "$ZFS_META_LICENSE" = GPL
; then
12530 cat >>confdefs.h
<<\_ACEOF
12531 #define HAVE_GPL_ONLY_SYMBOLS 1
12540 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12541 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12544 cat confdefs.h
- <<_ACEOF >conftest.c
12547 cat confdefs.h
>>conftest.
$ac_ext
12548 cat >>conftest.
$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12552 #include <linux/module.h>
12558 #ifndef CONFIG_PREEMPT
12559 #error CONFIG_PREEMPT not #defined
12569 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12570 echo "obj-m := conftest.o" >build
/Makefile
12572 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12573 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12585 { $as_echo "$as_me:$LINENO: result: yes" >&5
12586 $as_echo "yes" >&6; }
12587 { { $as_echo "$as_me:$LINENO: error:
12588 *** Kernel built with CONFIG_PREEMPT which is not supported.
12589 *** You must rebuild your kernel without this option." >&5
12590 $as_echo "$as_me: error:
12591 *** Kernel built with CONFIG_PREEMPT which is not supported.
12592 *** You must rebuild your kernel without this option." >&2;}
12593 { (exit 1); exit 1; }; }
12596 $as_echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.
$ac_ext >&5
12599 { $as_echo "$as_me:$LINENO: result: no" >&5
12600 $as_echo "no" >&6; }
12614 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12615 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12618 cat confdefs.h
- <<_ACEOF >conftest.c
12621 cat confdefs.h
>>conftest.
$ac_ext
12622 cat >>conftest.
$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12626 #include <linux/module.h>
12632 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12633 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12643 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12644 echo "obj-m := conftest.o" >build
/Makefile
12646 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12647 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12659 { $as_echo "$as_me:$LINENO: result: yes" >&5
12660 $as_echo "yes" >&6; }
12662 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12663 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12664 tmp_flags
="$EXTRA_KCFLAGS"
12667 cat confdefs.h
- <<_ACEOF >conftest.c
12670 cat confdefs.h
>>conftest.
$ac_ext
12671 cat >>conftest.
$ac_ext <<_ACEOF
12672 /* end confdefs.h. */
12675 #include <linux/module.h>
12676 #include <linux/mutex.h>
12678 MODULE_LICENSE("$ZFS_META_LICENSE");
12688 mutex_unlock(&lock);
12697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12698 echo "obj-m := conftest.o" >build
/Makefile
12700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12701 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12713 { $as_echo "$as_me:$LINENO: result: no" >&5
12714 $as_echo "no" >&6; }
12717 $as_echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.
$ac_ext >&5
12720 { $as_echo "$as_me:$LINENO: result: yes" >&5
12721 $as_echo "yes" >&6; }
12722 { { $as_echo "$as_me:$LINENO: error:
12723 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12724 *** with the CDDL license and will prevent the module linking stage
12725 *** from succeeding. You must rebuild your kernel without this
12726 *** option enabled." >&5
12727 $as_echo "$as_me: error:
12728 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12729 *** with the CDDL license and will prevent the module linking stage
12730 *** from succeeding. You must rebuild your kernel without this
12731 *** option enabled." >&2;}
12732 { (exit 1); exit 1; }; }
12741 EXTRA_KCFLAGS
="$tmp_flags"
12745 $as_echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12748 { $as_echo "$as_me:$LINENO: result: no" >&5
12749 $as_echo "no" >&6; }
12763 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12764 $as_echo_n "checking block device operation prototypes... " >&6; }
12765 tmp_flags
="$EXTRA_KCFLAGS"
12766 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
12769 cat confdefs.h
- <<_ACEOF >conftest.c
12772 cat confdefs.h
>>conftest.
$ac_ext
12773 cat >>conftest.
$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12777 #include <linux/blkdev.h>
12783 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12784 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12785 int (*blk_ioctl) (struct block_device *, fmode_t,
12786 unsigned, unsigned long) = NULL;
12787 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12788 unsigned, unsigned long) = NULL;
12789 struct block_device_operations blk_ops = {
12791 .release = blk_release,
12792 .ioctl = blk_ioctl,
12793 .compat_ioctl = blk_compat_ioctl,
12796 blk_ops.open(NULL, 0);
12797 blk_ops.release(NULL, 0);
12798 blk_ops.ioctl(NULL, 0, 0, 0);
12799 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12808 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12809 echo "obj-m := conftest.o" >build
/Makefile
12811 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12812 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12824 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12825 $as_echo "struct block_device" >&6; }
12827 cat >>confdefs.h
<<\_ACEOF
12828 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12833 $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.
$ac_ext >&5
12836 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12837 $as_echo "struct inode" >&6; }
12846 EXTRA_KCFLAGS
="$tmp_flags"
12848 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12849 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12852 cat confdefs.h
- <<_ACEOF >conftest.c
12855 cat confdefs.h
>>conftest.
$ac_ext
12856 cat >>conftest.
$ac_ext <<_ACEOF
12857 /* end confdefs.h. */
12860 #include <linux/types.h>
12866 fmode_t *ptr __attribute__ ((unused));
12875 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12876 echo "obj-m := conftest.o" >build
/Makefile
12878 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12879 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12891 { $as_echo "$as_me:$LINENO: result: yes" >&5
12892 $as_echo "yes" >&6; }
12894 cat >>confdefs.h
<<\_ACEOF
12895 #define HAVE_FMODE_T 1
12900 $as_echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.
$ac_ext >&5
12903 { $as_echo "$as_me:$LINENO: result: no" >&5
12904 $as_echo "no" >&6; }
12915 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12916 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12919 cat confdefs.h
- <<_ACEOF >conftest.c
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12927 #include <linux/kobject.h>
12933 int val __attribute__ ((unused));
12934 val = KOBJ_NAME_LEN;
12943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12944 echo "obj-m := conftest.o" >build
/Makefile
12946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12947 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; }; then
12959 { $as_echo "$as_me:$LINENO: result: yes" >&5
12960 $as_echo "yes" >&6; }
12962 cat >>confdefs.h
<<\_ACEOF
12963 #define HAVE_KOBJ_NAME_LEN 1
12968 $as_echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.
$ac_ext >&5
12971 { $as_echo "$as_me:$LINENO: result: no" >&5
12972 $as_echo "no" >&6; }
12983 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12984 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12987 cat confdefs.h
- <<_ACEOF >conftest.c
12990 cat confdefs.h
>>conftest.
$ac_ext
12991 cat >>conftest.
$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12995 #include <linux/fs.h>
13001 struct block_device *bdev = NULL;
13002 (void) blkdev_get(bdev, 0, NULL);
13011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13012 echo "obj-m := conftest.o" >build
/Makefile
13014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13015 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13027 { $as_echo "$as_me:$LINENO: result: yes" >&5
13028 $as_echo "yes" >&6; }
13030 cat >>confdefs.h
<<\_ACEOF
13031 #define HAVE_3ARG_BLKDEV_GET 1
13036 $as_echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.
$ac_ext >&5
13039 { $as_echo "$as_me:$LINENO: result: no" >&5
13040 $as_echo "no" >&6; }
13050 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
13051 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13055 cat confdefs.h
- <<_ACEOF >conftest.c
13058 cat confdefs.h
>>conftest.
$ac_ext
13059 cat >>conftest.
$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13063 #include <linux/fs.h>
13069 blkdev_get_by_path(NULL, 0, NULL);
13078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13079 echo "obj-m := conftest.o" >build
/Makefile
13081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13082 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13089 (eval $ac_try) 2>&5
13091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13095 $as_echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.
$ac_ext >&5
13105 if test $rc -ne 0; then :
13107 { $as_echo "$as_me:$LINENO: result: no" >&5
13108 $as_echo "no" >&6; }
13111 if test "x$enable_linux_builtin" != xyes
; then
13113 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13114 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13116 if test $rc -ne 0; then
13118 for file in fs
/block_dev.c
; do
13119 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13120 "$LINUX/$file" 2>/dev
/null
13122 if test $rc -eq 0; then
13127 if test $export -eq 0; then :
13137 if test $rc -ne 0; then :
13139 { $as_echo "$as_me:$LINENO: result: no" >&5
13140 $as_echo "no" >&6; }
13144 { $as_echo "$as_me:$LINENO: result: yes" >&5
13145 $as_echo "yes" >&6; }
13147 cat >>confdefs.h
<<\_ACEOF
13148 #define HAVE_BLKDEV_GET_BY_PATH 1
13156 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
13157 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13161 cat confdefs.h
- <<_ACEOF >conftest.c
13164 cat confdefs.h
>>conftest.
$ac_ext
13165 cat >>conftest.
$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13169 #include <linux/fs.h>
13175 open_bdev_exclusive(NULL, 0, NULL);
13184 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13185 echo "obj-m := conftest.o" >build
/Makefile
13187 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13188 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; }; then
13201 $as_echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.
$ac_ext >&5
13211 if test $rc -ne 0; then :
13213 { $as_echo "$as_me:$LINENO: result: no" >&5
13214 $as_echo "no" >&6; }
13217 if test "x$enable_linux_builtin" != xyes
; then
13219 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13220 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13222 if test $rc -ne 0; then
13224 for file in fs
/block_dev.c
; do
13225 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13226 "$LINUX/$file" 2>/dev
/null
13228 if test $rc -eq 0; then
13233 if test $export -eq 0; then :
13243 if test $rc -ne 0; then :
13245 { $as_echo "$as_me:$LINENO: result: no" >&5
13246 $as_echo "no" >&6; }
13250 { $as_echo "$as_me:$LINENO: result: yes" >&5
13251 $as_echo "yes" >&6; }
13253 cat >>confdefs.h
<<\_ACEOF
13254 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13263 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13264 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13267 cat confdefs.h
- <<_ACEOF >conftest.c
13270 cat confdefs.h
>>conftest.
$ac_ext
13271 cat >>conftest.
$ac_ext <<_ACEOF
13272 /* end confdefs.h. */
13275 #include <linux/buffer_head.h>
13281 struct block_device *bdev = NULL;
13282 invalidate_bdev(bdev);
13291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13292 echo "obj-m := conftest.o" >build
/Makefile
13294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13295 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13307 { $as_echo "$as_me:$LINENO: result: yes" >&5
13308 $as_echo "yes" >&6; }
13310 cat >>confdefs.h
<<\_ACEOF
13311 #define HAVE_1ARG_INVALIDATE_BDEV 1
13316 $as_echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.
$ac_ext >&5
13319 { $as_echo "$as_me:$LINENO: result: no" >&5
13320 $as_echo "no" >&6; }
13331 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13332 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13333 tmp_flags
="$EXTRA_KCFLAGS"
13334 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
13337 cat confdefs.h
- <<_ACEOF >conftest.c
13340 cat confdefs.h
>>conftest.
$ac_ext
13341 cat >>conftest.
$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13345 #include <linux/blkdev.h>
13351 struct block_device *bdev = NULL;
13352 bdev_logical_block_size(bdev);
13361 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13362 echo "obj-m := conftest.o" >build
/Makefile
13364 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13365 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13377 { $as_echo "$as_me:$LINENO: result: yes" >&5
13378 $as_echo "yes" >&6; }
13380 cat >>confdefs.h
<<\_ACEOF
13381 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13386 $as_echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.
$ac_ext >&5
13389 { $as_echo "$as_me:$LINENO: result: no" >&5
13390 $as_echo "no" >&6; }
13399 EXTRA_KCFLAGS
="$tmp_flags"
13402 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13403 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13404 EXTRA_KCFLAGS
="-Werror"
13407 cat confdefs.h
- <<_ACEOF >conftest.c
13410 cat confdefs.h
>>conftest.
$ac_ext
13411 cat >>conftest.
$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13415 #include <linux/bio.h>
13422 (void)bio_empty_barrier(&bio);
13431 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13432 echo "obj-m := conftest.o" >build
/Makefile
13434 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13435 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13447 { $as_echo "$as_me:$LINENO: result: yes" >&5
13448 $as_echo "yes" >&6; }
13450 cat >>confdefs.h
<<\_ACEOF
13451 #define HAVE_BIO_EMPTY_BARRIER 1
13456 $as_echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.
$ac_ext >&5
13459 { $as_echo "$as_me:$LINENO: result: no" >&5
13460 $as_echo "no" >&6; }
13471 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13472 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13475 cat confdefs.h
- <<_ACEOF >conftest.c
13478 cat confdefs.h
>>conftest.
$ac_ext
13479 cat >>conftest.
$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13483 #include <linux/bio.h>
13489 int flags __attribute__ ((unused));
13490 flags = (1 << BIO_RW_FAILFAST);
13499 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13500 echo "obj-m := conftest.o" >build
/Makefile
13502 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13503 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13515 { $as_echo "$as_me:$LINENO: result: yes" >&5
13516 $as_echo "yes" >&6; }
13518 cat >>confdefs.h
<<\_ACEOF
13519 #define HAVE_BIO_RW_FAILFAST 1
13524 $as_echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.
$ac_ext >&5
13527 { $as_echo "$as_me:$LINENO: result: no" >&5
13528 $as_echo "no" >&6; }
13539 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13540 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13543 cat confdefs.h
- <<_ACEOF >conftest.c
13546 cat confdefs.h
>>conftest.
$ac_ext
13547 cat >>conftest.
$ac_ext <<_ACEOF
13548 /* end confdefs.h. */
13551 #include <linux/bio.h>
13557 int flags __attribute__ ((unused));
13558 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13559 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13560 (1 << BIO_RW_FAILFAST_DRIVER));
13569 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13570 echo "obj-m := conftest.o" >build
/Makefile
13572 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
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 $modpost_flag'
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_BIO_RW_FAILFAST_DTD 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; }
13609 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13610 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13613 cat confdefs.h
- <<_ACEOF >conftest.c
13616 cat confdefs.h
>>conftest.
$ac_ext
13617 cat >>conftest.
$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13621 #include <linux/bio.h>
13627 int flags __attribute__ ((unused));
13628 flags = REQ_FAILFAST_MASK;
13637 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13638 echo "obj-m := conftest.o" >build
/Makefile
13640 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
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 $modpost_flag'
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: yes" >&5
13654 $as_echo "yes" >&6; }
13656 cat >>confdefs.h
<<\_ACEOF
13657 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13662 $as_echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.
$ac_ext >&5
13665 { $as_echo "$as_me:$LINENO: result: no" >&5
13666 $as_echo "no" >&6; }
13677 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13678 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13679 tmp_flags
="$EXTRA_KCFLAGS"
13680 EXTRA_KCFLAGS
="-Werror"
13683 cat confdefs.h
- <<_ACEOF >conftest.c
13686 cat confdefs.h
>>conftest.
$ac_ext
13687 cat >>conftest.
$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13691 #include <linux/bio.h>
13697 void (*wanted_end_io)(struct bio *, int) = NULL;
13698 bio_end_io_t *local_end_io __attribute__ ((unused));
13700 local_end_io = wanted_end_io;
13709 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13710 echo "obj-m := conftest.o" >build
/Makefile
13712 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13713 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13725 { $as_echo "$as_me:$LINENO: result: yes" >&5
13726 $as_echo "yes" >&6; }
13728 cat >>confdefs.h
<<\_ACEOF
13729 #define HAVE_2ARGS_BIO_END_IO_T 1
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.
$ac_ext >&5
13737 { $as_echo "$as_me:$LINENO: result: no" >&5
13738 $as_echo "no" >&6; }
13747 EXTRA_KCFLAGS
="$tmp_flags"
13750 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13751 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13754 cat confdefs.h
- <<_ACEOF >conftest.c
13757 cat confdefs.h
>>conftest.
$ac_ext
13758 cat >>conftest.
$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13762 #include <linux/bio.h>
13768 int flags __attribute__ ((unused));
13769 flags = BIO_RW_SYNC;
13778 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13779 echo "obj-m := conftest.o" >build
/Makefile
13781 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13782 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13794 { $as_echo "$as_me:$LINENO: result: yes" >&5
13795 $as_echo "yes" >&6; }
13797 cat >>confdefs.h
<<\_ACEOF
13798 #define HAVE_BIO_RW_SYNC 1
13803 $as_echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.
$ac_ext >&5
13806 { $as_echo "$as_me:$LINENO: result: no" >&5
13807 $as_echo "no" >&6; }
13818 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13819 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13822 cat confdefs.h
- <<_ACEOF >conftest.c
13825 cat confdefs.h
>>conftest.
$ac_ext
13826 cat >>conftest.
$ac_ext <<_ACEOF
13827 /* end confdefs.h. */
13830 #include <linux/bio.h>
13836 int flags __attribute__ ((unused));
13837 flags = BIO_RW_SYNCIO;
13846 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13847 echo "obj-m := conftest.o" >build
/Makefile
13849 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13850 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13862 { $as_echo "$as_me:$LINENO: result: yes" >&5
13863 $as_echo "yes" >&6; }
13865 cat >>confdefs.h
<<\_ACEOF
13866 #define HAVE_BIO_RW_SYNCIO 1
13871 $as_echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.
$ac_ext >&5
13874 { $as_echo "$as_me:$LINENO: result: no" >&5
13875 $as_echo "no" >&6; }
13886 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13887 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
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/bio.h>
13904 int flags __attribute__ ((unused));
13914 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13915 echo "obj-m := conftest.o" >build
/Makefile
13917 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13918 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
13930 { $as_echo "$as_me:$LINENO: result: yes" >&5
13931 $as_echo "yes" >&6; }
13933 cat >>confdefs.h
<<\_ACEOF
13934 #define HAVE_REQ_SYNC 1
13939 $as_echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.
$ac_ext >&5
13942 { $as_echo "$as_me:$LINENO: result: no" >&5
13943 $as_echo "no" >&6; }
13954 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13955 $as_echo_n "checking whether blk_end_request() 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_end_request(req, 0, 0);
13984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13985 echo "obj-m := conftest.o" >build
/Makefile
13987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13988 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
14000 { $as_echo "$as_me:$LINENO: result: yes" >&5
14001 $as_echo "yes" >&6; }
14003 cat >>confdefs.h
<<\_ACEOF
14004 #define HAVE_BLK_END_REQUEST 1
14009 $as_echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.
$ac_ext >&5
14012 { $as_echo "$as_me:$LINENO: result: no" >&5
14013 $as_echo "no" >&6; }
14023 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
14024 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
14027 cat confdefs.h
- <<_ACEOF >conftest.c
14030 cat confdefs.h
>>conftest.
$ac_ext
14031 cat >>conftest.
$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14035 #include <linux/module.h>
14036 #include <linux/blkdev.h>
14038 MODULE_LICENSE("CDDL");
14044 struct request *req = NULL;
14045 (void) blk_end_request(req, 0, 0);
14054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14055 echo "obj-m := conftest.o" >build
/Makefile
14057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14058 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14065 (eval $ac_try) 2>&5
14067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; }; then
14070 { $as_echo "$as_me:$LINENO: result: no" >&5
14071 $as_echo "no" >&6; }
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.
$ac_ext >&5
14077 { $as_echo "$as_me:$LINENO: result: yes" >&5
14078 $as_echo "yes" >&6; }
14080 cat >>confdefs.h
<<\_ACEOF
14081 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
14092 EXTRA_KCFLAGS
="$tmp_flags"
14095 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
14096 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14097 tmp_flags
="$EXTRA_KCFLAGS"
14098 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14101 cat confdefs.h
- <<_ACEOF >conftest.c
14104 cat confdefs.h
>>conftest.
$ac_ext
14105 cat >>conftest.
$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14109 #include <linux/blkdev.h>
14115 struct request_queue *q = NULL;
14116 (void) blk_queue_flush(q, REQ_FLUSH);
14125 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14126 echo "obj-m := conftest.o" >build
/Makefile
14128 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14129 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14141 { $as_echo "$as_me:$LINENO: result: yes" >&5
14142 $as_echo "yes" >&6; }
14144 cat >>confdefs.h
<<\_ACEOF
14145 #define HAVE_BLK_QUEUE_FLUSH 1
14150 $as_echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.
$ac_ext >&5
14153 { $as_echo "$as_me:$LINENO: result: no" >&5
14154 $as_echo "no" >&6; }
14164 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
14165 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14168 cat confdefs.h
- <<_ACEOF >conftest.c
14171 cat confdefs.h
>>conftest.
$ac_ext
14172 cat >>conftest.
$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14176 #include <linux/module.h>
14177 #include <linux/blkdev.h>
14179 MODULE_LICENSE("CDDL");
14185 struct request_queue *q = NULL;
14186 (void) blk_queue_flush(q, REQ_FLUSH);
14195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14196 echo "obj-m := conftest.o" >build
/Makefile
14198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14199 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14211 { $as_echo "$as_me:$LINENO: result: no" >&5
14212 $as_echo "no" >&6; }
14215 $as_echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.
$ac_ext >&5
14218 { $as_echo "$as_me:$LINENO: result: yes" >&5
14219 $as_echo "yes" >&6; }
14221 cat >>confdefs.h
<<\_ACEOF
14222 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
14233 EXTRA_KCFLAGS
="$tmp_flags"
14236 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
14237 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14238 tmp_flags
="$EXTRA_KCFLAGS"
14239 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14242 cat confdefs.h
- <<_ACEOF >conftest.c
14245 cat confdefs.h
>>conftest.
$ac_ext
14246 cat >>conftest.
$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14250 #include <linux/blkdev.h>
14256 struct request_queue *q = NULL;
14257 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14266 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14267 echo "obj-m := conftest.o" >build
/Makefile
14269 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14270 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14282 { $as_echo "$as_me:$LINENO: result: yes" >&5
14283 $as_echo "yes" >&6; }
14285 cat >>confdefs.h
<<\_ACEOF
14286 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14291 $as_echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.
$ac_ext >&5
14294 { $as_echo "$as_me:$LINENO: result: no" >&5
14295 $as_echo "no" >&6; }
14304 EXTRA_KCFLAGS
="$tmp_flags"
14307 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14308 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14309 tmp_flags
="$EXTRA_KCFLAGS"
14310 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14313 cat confdefs.h
- <<_ACEOF >conftest.c
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14321 #include <linux/blkdev.h>
14327 struct request_queue *q = NULL;
14328 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14337 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14338 echo "obj-m := conftest.o" >build
/Makefile
14340 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14341 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14353 { $as_echo "$as_me:$LINENO: result: yes" >&5
14354 $as_echo "yes" >&6; }
14356 cat >>confdefs.h
<<\_ACEOF
14357 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14362 $as_echo "$as_me: failed program was:" >&5
14363 sed 's/^/| /' conftest.
$ac_ext >&5
14365 { $as_echo "$as_me:$LINENO: result: no" >&5
14366 $as_echo "no" >&6; }
14375 EXTRA_KCFLAGS
="$tmp_flags"
14378 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14379 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14380 tmp_flags
="$EXTRA_KCFLAGS"
14381 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14384 cat confdefs.h
- <<_ACEOF >conftest.c
14387 cat confdefs.h
>>conftest.
$ac_ext
14388 cat >>conftest.
$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14392 #include <linux/blkdev.h>
14398 struct request_queue *q = NULL;
14399 unsigned short block_size = 1;
14400 (void) blk_queue_physical_block_size(q, block_size);
14409 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14410 echo "obj-m := conftest.o" >build
/Makefile
14412 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14413 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14425 { $as_echo "$as_me:$LINENO: result: yes" >&5
14426 $as_echo "yes" >&6; }
14428 cat >>confdefs.h
<<\_ACEOF
14429 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14434 $as_echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.
$ac_ext >&5
14437 { $as_echo "$as_me:$LINENO: result: no" >&5
14438 $as_echo "no" >&6; }
14447 EXTRA_KCFLAGS
="$tmp_flags"
14450 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14451 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14452 tmp_flags
="$EXTRA_KCFLAGS"
14453 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14456 cat confdefs.h
- <<_ACEOF >conftest.c
14459 cat confdefs.h
>>conftest.
$ac_ext
14460 cat >>conftest.
$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14464 #include <linux/blkdev.h>
14470 struct request_queue *q = NULL;
14471 unsigned int opt = 1;
14472 (void) blk_queue_io_opt(q, opt);
14481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14482 echo "obj-m := conftest.o" >build
/Makefile
14484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14485 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14497 { $as_echo "$as_me:$LINENO: result: yes" >&5
14498 $as_echo "yes" >&6; }
14500 cat >>confdefs.h
<<\_ACEOF
14501 #define HAVE_BLK_QUEUE_IO_OPT 1
14506 $as_echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.
$ac_ext >&5
14509 { $as_echo "$as_me:$LINENO: result: no" >&5
14510 $as_echo "no" >&6; }
14519 EXTRA_KCFLAGS
="$tmp_flags"
14522 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14523 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14524 tmp_flags
="$EXTRA_KCFLAGS"
14525 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14528 cat confdefs.h
- <<_ACEOF >conftest.c
14531 cat confdefs.h
>>conftest.
$ac_ext
14532 cat >>conftest.
$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14536 #include <linux/blkdev.h>
14542 struct request_queue *q = NULL;
14543 (void) blk_queue_nonrot(q);
14552 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14553 echo "obj-m := conftest.o" >build
/Makefile
14555 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14556 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14568 { $as_echo "$as_me:$LINENO: result: yes" >&5
14569 $as_echo "yes" >&6; }
14571 cat >>confdefs.h
<<\_ACEOF
14572 #define HAVE_BLK_QUEUE_NONROT 1
14577 $as_echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.
$ac_ext >&5
14580 { $as_echo "$as_me:$LINENO: result: no" >&5
14581 $as_echo "no" >&6; }
14590 EXTRA_KCFLAGS
="$tmp_flags"
14593 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14594 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14595 tmp_flags
="$EXTRA_KCFLAGS"
14596 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14599 cat confdefs.h
- <<_ACEOF >conftest.c
14602 cat confdefs.h
>>conftest.
$ac_ext
14603 cat >>conftest.
$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14607 #include <linux/blkdev.h>
14613 struct request_queue *q = NULL;
14614 (void) blk_queue_discard(q);
14623 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14624 echo "obj-m := conftest.o" >build
/Makefile
14626 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14627 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629 (eval $ac_try) 2>&5
14631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14639 { $as_echo "$as_me:$LINENO: result: yes" >&5
14640 $as_echo "yes" >&6; }
14642 cat >>confdefs.h
<<\_ACEOF
14643 #define HAVE_BLK_QUEUE_DISCARD 1
14648 $as_echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.
$ac_ext >&5
14651 { $as_echo "$as_me:$LINENO: result: no" >&5
14652 $as_echo "no" >&6; }
14661 EXTRA_KCFLAGS
="$tmp_flags"
14664 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14665 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14666 tmp_flags
="$EXTRA_KCFLAGS"
14667 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14670 cat confdefs.h
- <<_ACEOF >conftest.c
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14678 #include <linux/blkdev.h>
14684 struct request_queue *q = NULL;
14685 (void) blk_fetch_request(q);
14694 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14695 echo "obj-m := conftest.o" >build
/Makefile
14697 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14698 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14710 { $as_echo "$as_me:$LINENO: result: yes" >&5
14711 $as_echo "yes" >&6; }
14713 cat >>confdefs.h
<<\_ACEOF
14714 #define HAVE_BLK_FETCH_REQUEST 1
14719 $as_echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.
$ac_ext >&5
14722 { $as_echo "$as_me:$LINENO: result: no" >&5
14723 $as_echo "no" >&6; }
14732 EXTRA_KCFLAGS
="$tmp_flags"
14735 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14736 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14737 tmp_flags
="$EXTRA_KCFLAGS"
14738 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14741 cat confdefs.h
- <<_ACEOF >conftest.c
14744 cat confdefs.h
>>conftest.
$ac_ext
14745 cat >>conftest.
$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14749 #include <linux/blkdev.h>
14755 struct request_queue *q = NULL;
14756 struct request *req = NULL;
14757 blk_requeue_request(q, req);
14766 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14767 echo "obj-m := conftest.o" >build
/Makefile
14769 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14770 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14782 { $as_echo "$as_me:$LINENO: result: yes" >&5
14783 $as_echo "yes" >&6; }
14785 cat >>confdefs.h
<<\_ACEOF
14786 #define HAVE_BLK_REQUEUE_REQUEST 1
14791 $as_echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.
$ac_ext >&5
14794 { $as_echo "$as_me:$LINENO: result: no" >&5
14795 $as_echo "no" >&6; }
14804 EXTRA_KCFLAGS
="$tmp_flags"
14807 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14808 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14809 tmp_flags
="$EXTRA_KCFLAGS"
14810 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14813 cat confdefs.h
- <<_ACEOF >conftest.c
14816 cat confdefs.h
>>conftest.
$ac_ext
14817 cat >>conftest.
$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14821 #include <linux/blkdev.h>
14827 struct request *req = NULL;
14828 (void) blk_rq_bytes(req);
14837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14838 echo "obj-m := conftest.o" >build
/Makefile
14840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14841 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; }; then
14853 { $as_echo "$as_me:$LINENO: result: yes" >&5
14854 $as_echo "yes" >&6; }
14856 cat >>confdefs.h
<<\_ACEOF
14857 #define HAVE_BLK_RQ_BYTES 1
14862 $as_echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.
$ac_ext >&5
14865 { $as_echo "$as_me:$LINENO: result: no" >&5
14866 $as_echo "no" >&6; }
14876 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14877 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14880 cat confdefs.h
- <<_ACEOF >conftest.c
14883 cat confdefs.h
>>conftest.
$ac_ext
14884 cat >>conftest.
$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14888 #include <linux/module.h>
14889 #include <linux/blkdev.h>
14891 MODULE_LICENSE("CDDL");
14897 struct request *req = NULL;
14898 (void) blk_rq_bytes(req);
14907 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14908 echo "obj-m := conftest.o" >build
/Makefile
14910 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14911 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14923 { $as_echo "$as_me:$LINENO: result: no" >&5
14924 $as_echo "no" >&6; }
14927 $as_echo "$as_me: failed program was:" >&5
14928 sed 's/^/| /' conftest.
$ac_ext >&5
14930 { $as_echo "$as_me:$LINENO: result: yes" >&5
14931 $as_echo "yes" >&6; }
14933 cat >>confdefs.h
<<\_ACEOF
14934 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14945 EXTRA_KCFLAGS
="$tmp_flags"
14948 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14949 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14950 tmp_flags
="$EXTRA_KCFLAGS"
14951 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
14954 cat confdefs.h
- <<_ACEOF >conftest.c
14957 cat confdefs.h
>>conftest.
$ac_ext
14958 cat >>conftest.
$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14962 #include <linux/blkdev.h>
14968 struct request *req = NULL;
14969 (void) blk_rq_pos(req);
14978 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14979 echo "obj-m := conftest.o" >build
/Makefile
14981 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14982 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14989 (eval $ac_try) 2>&5
14991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); }; }; then
14994 { $as_echo "$as_me:$LINENO: result: yes" >&5
14995 $as_echo "yes" >&6; }
14997 cat >>confdefs.h
<<\_ACEOF
14998 #define HAVE_BLK_RQ_POS 1
15003 $as_echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.
$ac_ext >&5
15006 { $as_echo "$as_me:$LINENO: result: no" >&5
15007 $as_echo "no" >&6; }
15016 EXTRA_KCFLAGS
="$tmp_flags"
15019 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
15020 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
15021 tmp_flags
="$EXTRA_KCFLAGS"
15022 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15025 cat confdefs.h
- <<_ACEOF >conftest.c
15028 cat confdefs.h
>>conftest.
$ac_ext
15029 cat >>conftest.
$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15033 #include <linux/blkdev.h>
15039 struct request *req = NULL;
15040 (void) blk_rq_sectors(req);
15049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15050 echo "obj-m := conftest.o" >build
/Makefile
15052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15053 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; }; then
15065 { $as_echo "$as_me:$LINENO: result: yes" >&5
15066 $as_echo "yes" >&6; }
15068 cat >>confdefs.h
<<\_ACEOF
15069 #define HAVE_BLK_RQ_SECTORS 1
15074 $as_echo "$as_me: failed program was:" >&5
15075 sed 's/^/| /' conftest.
$ac_ext >&5
15077 { $as_echo "$as_me:$LINENO: result: no" >&5
15078 $as_echo "no" >&6; }
15087 EXTRA_KCFLAGS
="$tmp_flags"
15090 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
15091 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15092 tmp_flags
="$EXTRA_KCFLAGS"
15093 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15096 cat confdefs.h
- <<_ACEOF >conftest.c
15099 cat confdefs.h
>>conftest.
$ac_ext
15100 cat >>conftest.
$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15104 #include <linux/blkdev.h>
15110 struct gendisk *disk = NULL;
15111 (void) get_disk_ro(disk);
15120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15121 echo "obj-m := conftest.o" >build
/Makefile
15123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15124 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15136 { $as_echo "$as_me:$LINENO: result: yes" >&5
15137 $as_echo "yes" >&6; }
15139 cat >>confdefs.h
<<\_ACEOF
15140 #define HAVE_GET_DISK_RO 1
15145 $as_echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.
$ac_ext >&5
15148 { $as_echo "$as_me:$LINENO: result: no" >&5
15149 $as_echo "no" >&6; }
15158 EXTRA_KCFLAGS
="$tmp_flags"
15160 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
15161 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15165 cat confdefs.h
- <<_ACEOF >conftest.c
15168 cat confdefs.h
>>conftest.
$ac_ext
15169 cat >>conftest.
$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15173 #include <linux/genhd.h>
15179 get_gendisk(0, NULL);
15188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15189 echo "obj-m := conftest.o" >build
/Makefile
15191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15192 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194 (eval $ac_try) 2>&5
15196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15205 $as_echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.
$ac_ext >&5
15215 if test $rc -ne 0; then :
15217 { $as_echo "$as_me:$LINENO: result: no" >&5
15218 $as_echo "no" >&6; }
15221 if test "x$enable_linux_builtin" != xyes
; then
15223 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15224 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15226 if test $rc -ne 0; then
15228 for file in block
/genhd.c
; do
15229 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15230 "$LINUX/$file" 2>/dev
/null
15232 if test $rc -eq 0; then
15237 if test $export -eq 0; then :
15247 if test $rc -ne 0; then :
15249 { $as_echo "$as_me:$LINENO: result: no" >&5
15250 $as_echo "no" >&6; }
15254 { $as_echo "$as_me:$LINENO: result: yes" >&5
15255 $as_echo "yes" >&6; }
15257 cat >>confdefs.h
<<\_ACEOF
15258 #define HAVE_GET_GENDISK 1
15267 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
15268 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15269 tmp_flags
="$EXTRA_KCFLAGS"
15270 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15273 cat confdefs.h
- <<_ACEOF >conftest.c
15276 cat confdefs.h
>>conftest.
$ac_ext
15277 cat >>conftest.
$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15281 #include <linux/blkdev.h>
15287 struct request *req = NULL;
15288 (void) rq_is_sync(req);
15297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15298 echo "obj-m := conftest.o" >build
/Makefile
15300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15301 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15313 { $as_echo "$as_me:$LINENO: result: yes" >&5
15314 $as_echo "yes" >&6; }
15316 cat >>confdefs.h
<<\_ACEOF
15317 #define HAVE_RQ_IS_SYNC 1
15322 $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.
$ac_ext >&5
15325 { $as_echo "$as_me:$LINENO: result: no" >&5
15326 $as_echo "no" >&6; }
15335 EXTRA_KCFLAGS
="$tmp_flags"
15338 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
15339 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
15340 tmp_flags
="$EXTRA_KCFLAGS"
15341 EXTRA_KCFLAGS
="-Wno-unused-but-set-variable"
15344 cat confdefs.h
- <<_ACEOF >conftest.c
15347 cat confdefs.h
>>conftest.
$ac_ext
15348 cat >>conftest.
$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15352 #include <linux/blkdev.h>
15358 struct bio_vec *bv;
15359 struct req_iterator iter;
15360 struct request *req = NULL;
15361 rq_for_each_segment(bv, req, iter) { }
15370 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15371 echo "obj-m := conftest.o" >build
/Makefile
15373 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15374 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15386 { $as_echo "$as_me:$LINENO: result: yes" >&5
15387 $as_echo "yes" >&6; }
15389 cat >>confdefs.h
<<\_ACEOF
15390 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15395 $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.
$ac_ext >&5
15398 { $as_echo "$as_me:$LINENO: result: no" >&5
15399 $as_echo "no" >&6; }
15408 EXTRA_KCFLAGS
="$tmp_flags"
15411 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
15412 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
15415 cat confdefs.h
- <<_ACEOF >conftest.c
15418 cat confdefs.h
>>conftest.
$ac_ext
15419 cat >>conftest.
$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15423 #include <linux/blkdev.h>
15429 struct queue_limits ql __attribute__ ((unused));
15431 ql.discard_granularity = 0;
15440 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15441 echo "obj-m := conftest.o" >build
/Makefile
15443 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15444 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15456 { $as_echo "$as_me:$LINENO: result: yes" >&5
15457 $as_echo "yes" >&6; }
15459 cat >>confdefs.h
<<\_ACEOF
15460 #define HAVE_DISCARD_GRANULARITY 1
15465 $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.
$ac_ext >&5
15468 { $as_echo "$as_me:$LINENO: result: no" >&5
15469 $as_echo "no" >&6; }
15479 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15480 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15483 cat confdefs.h
- <<_ACEOF >conftest.c
15486 cat confdefs.h
>>conftest.
$ac_ext
15487 cat >>conftest.
$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15491 #include <linux/fs.h>
15492 #include <linux/xattr.h>
15494 const struct xattr_handler xattr_test_handler = {
15500 const struct xattr_handler *xattr_handlers[] = {
15501 &xattr_test_handler,
15508 struct super_block sb __attribute__ ((unused));
15510 sb.s_xattr = xattr_handlers;
15519 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15520 echo "obj-m := conftest.o" >build
/Makefile
15522 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15523 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15535 { $as_echo "$as_me:$LINENO: result: yes" >&5
15536 $as_echo "yes" >&6; }
15538 cat >>confdefs.h
<<\_ACEOF
15539 #define HAVE_CONST_XATTR_HANDLER 1
15544 $as_echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.
$ac_ext >&5
15547 { $as_echo "$as_me:$LINENO: result: no" >&5
15548 $as_echo "no" >&6; }
15559 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15560 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15563 cat confdefs.h
- <<_ACEOF >conftest.c
15566 cat confdefs.h
>>conftest.
$ac_ext
15567 cat >>conftest.
$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15571 #include <linux/xattr.h>
15577 int (*get)(struct dentry *dentry, const char *name,
15578 void *buffer, size_t size, int handler_flags) = NULL;
15579 struct xattr_handler xops __attribute__ ((unused));
15590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15591 echo "obj-m := conftest.o" >build
/Makefile
15593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15594 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596 (eval $ac_try) 2>&5
15598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; }; then
15606 { $as_echo "$as_me:$LINENO: result: yes" >&5
15607 $as_echo "yes" >&6; }
15609 cat >>confdefs.h
<<\_ACEOF
15610 #define HAVE_DENTRY_XATTR_GET 1
15615 $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.
$ac_ext >&5
15618 { $as_echo "$as_me:$LINENO: result: no" >&5
15619 $as_echo "no" >&6; }
15630 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15631 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15634 cat confdefs.h
- <<_ACEOF >conftest.c
15637 cat confdefs.h
>>conftest.
$ac_ext
15638 cat >>conftest.
$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15642 #include <linux/xattr.h>
15648 int (*set)(struct dentry *dentry, const char *name,
15649 const void *buffer, size_t size, int flags,
15650 int handler_flags) = NULL;
15651 struct xattr_handler xops __attribute__ ((unused));
15662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15663 echo "obj-m := conftest.o" >build
/Makefile
15665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15666 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15678 { $as_echo "$as_me:$LINENO: result: yes" >&5
15679 $as_echo "yes" >&6; }
15681 cat >>confdefs.h
<<\_ACEOF
15682 #define HAVE_DENTRY_XATTR_SET 1
15687 $as_echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.
$ac_ext >&5
15690 { $as_echo "$as_me:$LINENO: result: no" >&5
15691 $as_echo "no" >&6; }
15702 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15703 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15707 cat confdefs.h
- <<_ACEOF >conftest.c
15710 cat confdefs.h
>>conftest.
$ac_ext
15711 cat >>conftest.
$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15715 #include <linux/fs.h>
15717 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15718 static struct super_operations sops __attribute__ ((unused)) = {
15719 .show_options = show_options,
15734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15735 echo "obj-m := conftest.o" >build
/Makefile
15737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15738 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745 (eval $ac_try) 2>&5
15747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); }; }; then
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751 $as_echo "yes" >&6; }
15753 cat >>confdefs.h
<<\_ACEOF
15754 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15759 $as_echo "$as_me: failed program was:" >&5
15760 sed 's/^/| /' conftest.
$ac_ext >&5
15762 { $as_echo "$as_me:$LINENO: result: no" >&5
15763 $as_echo "no" >&6; }
15774 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15775 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15779 cat confdefs.h
- <<_ACEOF >conftest.c
15782 cat confdefs.h
>>conftest.
$ac_ext
15783 cat >>conftest.
$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15787 #include <linux/fs.h>
15793 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15794 struct file_operations fops __attribute__ ((unused));
15796 fops.fsync = fsync;
15805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15806 echo "obj-m := conftest.o" >build
/Makefile
15808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15809 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15811 (eval $ac_try) 2>&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15821 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15822 $as_echo "dentry" >&6; }
15824 cat >>confdefs.h
<<\_ACEOF
15825 #define HAVE_FSYNC_WITH_DENTRY 1
15830 $as_echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.
$ac_ext >&5
15845 cat confdefs.h
- <<_ACEOF >conftest.c
15848 cat confdefs.h
>>conftest.
$ac_ext
15849 cat >>conftest.
$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15853 #include <linux/fs.h>
15859 int (*fsync) (struct file *, int) = NULL;
15860 struct file_operations fops __attribute__ ((unused));
15862 fops.fsync = fsync;
15871 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15872 echo "obj-m := conftest.o" >build
/Makefile
15874 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15875 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15887 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15888 $as_echo "no dentry" >&6; }
15890 cat >>confdefs.h
<<\_ACEOF
15891 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15896 $as_echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.
$ac_ext >&5
15911 cat confdefs.h
- <<_ACEOF >conftest.c
15914 cat confdefs.h
>>conftest.
$ac_ext
15915 cat >>conftest.
$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15919 #include <linux/fs.h>
15925 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15926 struct file_operations fops __attribute__ ((unused));
15928 fops.fsync = fsync;
15937 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15938 echo "obj-m := conftest.o" >build
/Makefile
15940 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15941 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; }; then
15953 { $as_echo "$as_me:$LINENO: result: range" >&5
15954 $as_echo "range" >&6; }
15956 cat >>confdefs.h
<<\_ACEOF
15957 #define HAVE_FSYNC_RANGE 1
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.
$ac_ext >&5
15977 cat confdefs.h
- <<_ACEOF >conftest.c
15980 cat confdefs.h
>>conftest.
$ac_ext
15981 cat >>conftest.
$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15985 #include <linux/fs.h>
15991 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15992 file_operations_no_const fops __attribute__ ((unused));
15994 fops.fsync = fsync;
16003 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16004 echo "obj-m := conftest.o" >build
/Makefile
16006 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16007 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16019 { $as_echo "$as_me:$LINENO: result: dentry" >&5
16020 $as_echo "dentry" >&6; }
16022 cat >>confdefs.h
<<\_ACEOF
16023 #define HAVE_FSYNC_WITH_DENTRY 1
16028 $as_echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16043 cat confdefs.h
- <<_ACEOF >conftest.c
16046 cat confdefs.h
>>conftest.
$ac_ext
16047 cat >>conftest.
$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16051 #include <linux/fs.h>
16057 int (*fsync) (struct file *, int) = NULL;
16058 file_operations_no_const fops __attribute__ ((unused));
16060 fops.fsync = fsync;
16069 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16070 echo "obj-m := conftest.o" >build
/Makefile
16072 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16073 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16085 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
16086 $as_echo "no dentry" >&6; }
16088 cat >>confdefs.h
<<\_ACEOF
16089 #define HAVE_FSYNC_WITHOUT_DENTRY 1
16094 $as_echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.
$ac_ext >&5
16109 cat confdefs.h
- <<_ACEOF >conftest.c
16112 cat confdefs.h
>>conftest.
$ac_ext
16113 cat >>conftest.
$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16117 #include <linux/fs.h>
16123 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
16124 file_operations_no_const fops __attribute__ ((unused));
16126 fops.fsync = fsync;
16135 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16136 echo "obj-m := conftest.o" >build
/Makefile
16138 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16139 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16151 { $as_echo "$as_me:$LINENO: result: range" >&5
16152 $as_echo "range" >&6; }
16154 cat >>confdefs.h
<<\_ACEOF
16155 #define HAVE_FSYNC_RANGE 1
16160 $as_echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.
$ac_ext >&5
16174 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
16175 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
16178 cat confdefs.h
- <<_ACEOF >conftest.c
16181 cat confdefs.h
>>conftest.
$ac_ext
16182 cat >>conftest.
$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16186 #include <linux/fs.h>
16187 void evict_inode (struct inode * t) { return; }
16188 static struct super_operations sops __attribute__ ((unused)) = {
16189 .evict_inode = evict_inode,
16204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16205 echo "obj-m := conftest.o" >build
/Makefile
16207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16208 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16220 { $as_echo "$as_me:$LINENO: result: yes" >&5
16221 $as_echo "yes" >&6; }
16223 cat >>confdefs.h
<<\_ACEOF
16224 #define HAVE_EVICT_INODE 1
16229 $as_echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.
$ac_ext >&5
16232 { $as_echo "$as_me:$LINENO: result: no" >&5
16233 $as_echo "no" >&6; }
16244 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
16245 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
16248 cat confdefs.h
- <<_ACEOF >conftest.c
16251 cat confdefs.h
>>conftest.
$ac_ext
16252 cat >>conftest.
$ac_ext <<_ACEOF
16253 /* end confdefs.h. */
16256 #include <linux/fs.h>
16262 int (*nr_cached_objects)(struct super_block *)
16263 __attribute__ ((unused)) = NULL;
16264 struct super_operations sops __attribute__ ((unused)) = {
16265 .nr_cached_objects = nr_cached_objects,
16275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16276 echo "obj-m := conftest.o" >build
/Makefile
16278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16279 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16286 (eval $ac_try) 2>&5
16288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16291 { $as_echo "$as_me:$LINENO: result: yes" >&5
16292 $as_echo "yes" >&6; }
16294 cat >>confdefs.h
<<\_ACEOF
16295 #define HAVE_NR_CACHED_OBJECTS 1
16300 $as_echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.
$ac_ext >&5
16303 { $as_echo "$as_me:$LINENO: result: no" >&5
16304 $as_echo "no" >&6; }
16315 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
16316 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
16319 cat confdefs.h
- <<_ACEOF >conftest.c
16322 cat confdefs.h
>>conftest.
$ac_ext
16323 cat >>conftest.
$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16327 #include <linux/fs.h>
16333 void (*free_cached_objects)(struct super_block *, int)
16334 __attribute__ ((unused)) = NULL;
16335 struct super_operations sops __attribute__ ((unused)) = {
16336 .free_cached_objects = free_cached_objects,
16346 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16347 echo "obj-m := conftest.o" >build
/Makefile
16349 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16350 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16362 { $as_echo "$as_me:$LINENO: result: yes" >&5
16363 $as_echo "yes" >&6; }
16365 cat >>confdefs.h
<<\_ACEOF
16366 #define HAVE_FREE_CACHED_OBJECTS 1
16371 $as_echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.
$ac_ext >&5
16374 { $as_echo "$as_me:$LINENO: result: no" >&5
16375 $as_echo "no" >&6; }
16387 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16388 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16391 cat confdefs.h
- <<_ACEOF >conftest.c
16394 cat confdefs.h
>>conftest.
$ac_ext
16395 cat >>conftest.
$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16399 #include <linux/fs.h>
16405 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16406 struct file_operations fops __attribute__ ((unused)) = {
16407 .fallocate = fallocate,
16417 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16418 echo "obj-m := conftest.o" >build
/Makefile
16420 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16421 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16433 { $as_echo "$as_me:$LINENO: result: yes" >&5
16434 $as_echo "yes" >&6; }
16436 cat >>confdefs.h
<<\_ACEOF
16437 #define HAVE_FILE_FALLOCATE 1
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 { $as_echo "$as_me:$LINENO: result: no" >&5
16446 $as_echo "no" >&6; }
16457 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16458 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16461 cat confdefs.h
- <<_ACEOF >conftest.c
16464 cat confdefs.h
>>conftest.
$ac_ext
16465 cat >>conftest.
$ac_ext <<_ACEOF
16466 /* end confdefs.h. */
16469 #include <linux/fs.h>
16475 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16476 struct inode_operations fops __attribute__ ((unused)) = {
16477 .fallocate = fallocate,
16487 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16488 echo "obj-m := conftest.o" >build
/Makefile
16490 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16491 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; }; then
16503 { $as_echo "$as_me:$LINENO: result: yes" >&5
16504 $as_echo "yes" >&6; }
16506 cat >>confdefs.h
<<\_ACEOF
16507 #define HAVE_INODE_FALLOCATE 1
16512 $as_echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.
$ac_ext >&5
16515 { $as_echo "$as_me:$LINENO: result: no" >&5
16516 $as_echo "no" >&6; }
16527 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16528 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16531 cat confdefs.h
- <<_ACEOF >conftest.c
16534 cat confdefs.h
>>conftest.
$ac_ext
16535 cat >>conftest.
$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16539 #include <linux/fs.h>
16545 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16546 struct file_operations_no_const fops __attribute__ ((unused)) = {
16547 .fallocate = fallocate,
16557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16558 echo "obj-m := conftest.o" >build
/Makefile
16560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16561 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16573 { $as_echo "$as_me:$LINENO: result: yes" >&5
16574 $as_echo "yes" >&6; }
16576 cat >>confdefs.h
<<\_ACEOF
16577 #define HAVE_FILE_FALLOCATE 1
16582 $as_echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 { $as_echo "$as_me:$LINENO: result: no" >&5
16586 $as_echo "no" >&6; }
16598 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
16599 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
16602 cat confdefs.h
- <<_ACEOF >conftest.c
16605 cat confdefs.h
>>conftest.
$ac_ext
16606 cat >>conftest.
$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16610 #include <linux/fs.h>
16611 void truncate_range(struct inode *inode, loff_t start,
16612 loff_t end) { return; }
16613 static struct inode_operations iops __attribute__ ((unused)) = {
16614 .truncate_range = truncate_range,
16629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16630 echo "obj-m := conftest.o" >build
/Makefile
16632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16633 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16645 { $as_echo "$as_me:$LINENO: result: yes" >&5
16646 $as_echo "yes" >&6; }
16648 cat >>confdefs.h
<<\_ACEOF
16649 #define HAVE_INODE_TRUNCATE_RANGE 1
16654 $as_echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.
$ac_ext >&5
16657 { $as_echo "$as_me:$LINENO: result: no" >&5
16658 $as_echo "no" >&6; }
16669 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16670 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16673 cat confdefs.h
- <<_ACEOF >conftest.c
16676 cat confdefs.h
>>conftest.
$ac_ext
16677 cat >>conftest.
$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16681 #include <linux/fs.h>
16687 int (*create) (struct inode *, struct dentry *, umode_t,
16688 struct nameidata *) = NULL;
16689 struct inode_operations iops __attribute__ ((unused)) = {
16700 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16701 echo "obj-m := conftest.o" >build
/Makefile
16703 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16704 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16716 { $as_echo "$as_me:$LINENO: result: yes" >&5
16717 $as_echo "yes" >&6; }
16719 cat >>confdefs.h
<<\_ACEOF
16720 #define HAVE_CREATE_UMODE_T 1
16725 $as_echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.
$ac_ext >&5
16728 { $as_echo "$as_me:$LINENO: result: no" >&5
16729 $as_echo "no" >&6; }
16740 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16741 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16744 cat confdefs.h
- <<_ACEOF >conftest.c
16747 cat confdefs.h
>>conftest.
$ac_ext
16748 cat >>conftest.
$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16752 #include <linux/dcache.h>
16753 struct vfsmount *d_automount(struct path *p) { return NULL; }
16754 struct dentry_operations dops __attribute__ ((unused)) = {
16755 .d_automount = d_automount,
16770 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16771 echo "obj-m := conftest.o" >build
/Makefile
16773 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16774 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; }; then
16786 { $as_echo "$as_me:$LINENO: result: yes" >&5
16787 $as_echo "yes" >&6; }
16789 cat >>confdefs.h
<<\_ACEOF
16790 #define HAVE_AUTOMOUNT 1
16795 $as_echo "$as_me: failed program was:" >&5
16796 sed 's/^/| /' conftest.
$ac_ext >&5
16798 { $as_echo "$as_me:$LINENO: result: no" >&5
16799 $as_echo "no" >&6; }
16810 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16811 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16814 cat confdefs.h
- <<_ACEOF >conftest.c
16817 cat confdefs.h
>>conftest.
$ac_ext
16818 cat >>conftest.
$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16822 #include <linux/exportfs.h>
16823 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16824 struct inode *parent) { return 0; }
16825 static struct export_operations eops __attribute__ ((unused))={
16826 .encode_fh = encode_fh,
16841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16842 echo "obj-m := conftest.o" >build
/Makefile
16844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16845 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16857 { $as_echo "$as_me:$LINENO: result: yes" >&5
16858 $as_echo "yes" >&6; }
16860 cat >>confdefs.h
<<\_ACEOF
16861 #define HAVE_ENCODE_FH_WITH_INODE 1
16866 $as_echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.
$ac_ext >&5
16869 { $as_echo "$as_me:$LINENO: result: no" >&5
16870 $as_echo "no" >&6; }
16880 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
16881 $as_echo_n "checking whether clear_inode() is available... " >&6; }
16885 cat confdefs.h
- <<_ACEOF >conftest.c
16888 cat confdefs.h
>>conftest.
$ac_ext
16889 cat >>conftest.
$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16893 #include <linux/fs.h>
16908 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16909 echo "obj-m := conftest.o" >build
/Makefile
16911 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16912 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16925 $as_echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.
$ac_ext >&5
16935 if test $rc -ne 0; then :
16937 { $as_echo "$as_me:$LINENO: result: no" >&5
16938 $as_echo "no" >&6; }
16941 if test "x$enable_linux_builtin" != xyes
; then
16943 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
16944 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16946 if test $rc -ne 0; then
16948 for file in fs
/inode.c
; do
16949 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
16950 "$LINUX/$file" 2>/dev
/null
16952 if test $rc -eq 0; then
16957 if test $export -eq 0; then :
16967 if test $rc -ne 0; then :
16969 { $as_echo "$as_me:$LINENO: result: no" >&5
16970 $as_echo "no" >&6; }
16974 { $as_echo "$as_me:$LINENO: result: yes" >&5
16975 $as_echo "yes" >&6; }
16977 cat >>confdefs.h
<<\_ACEOF
16978 #define HAVE_CLEAR_INODE 1
16986 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
16987 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
16991 cat confdefs.h
- <<_ACEOF >conftest.c
16994 cat confdefs.h
>>conftest.
$ac_ext
16995 cat >>conftest.
$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16999 #include <linux/fs.h>
17005 insert_inode_locked(NULL);
17014 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17015 echo "obj-m := conftest.o" >build
/Makefile
17017 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17018 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17031 $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.
$ac_ext >&5
17041 if test $rc -ne 0; then :
17043 { $as_echo "$as_me:$LINENO: result: no" >&5
17044 $as_echo "no" >&6; }
17047 if test "x$enable_linux_builtin" != xyes
; then
17049 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
17050 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17052 if test $rc -ne 0; then
17054 for file in fs
/inode.c
; do
17055 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
17056 "$LINUX/$file" 2>/dev
/null
17058 if test $rc -eq 0; then
17063 if test $export -eq 0; then :
17073 if test $rc -ne 0; then :
17075 { $as_echo "$as_me:$LINENO: result: no" >&5
17076 $as_echo "no" >&6; }
17080 { $as_echo "$as_me:$LINENO: result: yes" >&5
17081 $as_echo "yes" >&6; }
17083 cat >>confdefs.h
<<\_ACEOF
17084 #define HAVE_INSERT_INODE_LOCKED 1
17092 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
17093 $as_echo_n "checking whether d_make_root() is available... " >&6; }
17097 cat confdefs.h
- <<_ACEOF >conftest.c
17100 cat confdefs.h
>>conftest.
$ac_ext
17101 cat >>conftest.
$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17105 #include <linux/dcache.h>
17120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17121 echo "obj-m := conftest.o" >build
/Makefile
17123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17124 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17137 $as_echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.
$ac_ext >&5
17147 if test $rc -ne 0; then :
17149 { $as_echo "$as_me:$LINENO: result: no" >&5
17150 $as_echo "no" >&6; }
17153 if test "x$enable_linux_builtin" != xyes
; then
17155 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
17156 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17158 if test $rc -ne 0; then
17160 for file in fs
/dcache.c
; do
17161 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
17162 "$LINUX/$file" 2>/dev
/null
17164 if test $rc -eq 0; then
17169 if test $export -eq 0; then :
17179 if test $rc -ne 0; then :
17181 { $as_echo "$as_me:$LINENO: result: no" >&5
17182 $as_echo "no" >&6; }
17186 { $as_echo "$as_me:$LINENO: result: yes" >&5
17187 $as_echo "yes" >&6; }
17189 cat >>confdefs.h
<<\_ACEOF
17190 #define HAVE_D_MAKE_ROOT 1
17198 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
17199 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
17203 cat confdefs.h
- <<_ACEOF >conftest.c
17206 cat confdefs.h
>>conftest.
$ac_ext
17207 cat >>conftest.
$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17211 #include <linux/dcache.h>
17217 d_obtain_alias(NULL);
17226 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17227 echo "obj-m := conftest.o" >build
/Makefile
17229 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17230 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17243 $as_echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.
$ac_ext >&5
17253 if test $rc -ne 0; then :
17255 { $as_echo "$as_me:$LINENO: result: no" >&5
17256 $as_echo "no" >&6; }
17259 if test "x$enable_linux_builtin" != xyes
; then
17261 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
17262 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17264 if test $rc -ne 0; then
17266 for file in fs
/dcache.c
; do
17267 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
17268 "$LINUX/$file" 2>/dev
/null
17270 if test $rc -eq 0; then
17275 if test $export -eq 0; then :
17285 if test $rc -ne 0; then :
17287 { $as_echo "$as_me:$LINENO: result: no" >&5
17288 $as_echo "no" >&6; }
17292 { $as_echo "$as_me:$LINENO: result: yes" >&5
17293 $as_echo "yes" >&6; }
17295 cat >>confdefs.h
<<\_ACEOF
17296 #define HAVE_D_OBTAIN_ALIAS 1
17304 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
17305 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
17309 cat confdefs.h
- <<_ACEOF >conftest.c
17312 cat confdefs.h
>>conftest.
$ac_ext
17313 cat >>conftest.
$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17317 #include <linux/fs.h>
17323 check_disk_size_change(NULL, NULL);
17332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17333 echo "obj-m := conftest.o" >build
/Makefile
17335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17336 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; }; then
17349 $as_echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.
$ac_ext >&5
17359 if test $rc -ne 0; then :
17361 { $as_echo "$as_me:$LINENO: result: no" >&5
17362 $as_echo "no" >&6; }
17365 if test "x$enable_linux_builtin" != xyes
; then
17367 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
17368 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17370 if test $rc -ne 0; then
17372 for file in fs
/block_dev.c
; do
17373 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
17374 "$LINUX/$file" 2>/dev
/null
17376 if test $rc -eq 0; then
17381 if test $export -eq 0; then :
17391 if test $rc -ne 0; then :
17393 { $as_echo "$as_me:$LINENO: result: no" >&5
17394 $as_echo "no" >&6; }
17398 { $as_echo "$as_me:$LINENO: result: yes" >&5
17399 $as_echo "yes" >&6; }
17401 cat >>confdefs.h
<<\_ACEOF
17402 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
17410 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
17411 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
17415 cat confdefs.h
- <<_ACEOF >conftest.c
17418 cat confdefs.h
>>conftest.
$ac_ext
17419 cat >>conftest.
$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17423 #include <linux/mm.h>
17429 truncate_setsize(NULL, 0);
17438 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17439 echo "obj-m := conftest.o" >build
/Makefile
17441 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17442 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); }; }; then
17455 $as_echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.
$ac_ext >&5
17465 if test $rc -ne 0; then :
17467 { $as_echo "$as_me:$LINENO: result: no" >&5
17468 $as_echo "no" >&6; }
17471 if test "x$enable_linux_builtin" != xyes
; then
17473 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
17474 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17476 if test $rc -ne 0; then
17478 for file in mm
/truncate.c
; do
17479 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
17480 "$LINUX/$file" 2>/dev
/null
17482 if test $rc -eq 0; then
17487 if test $export -eq 0; then :
17497 if test $rc -ne 0; then :
17499 { $as_echo "$as_me:$LINENO: result: no" >&5
17500 $as_echo "no" >&6; }
17504 { $as_echo "$as_me:$LINENO: result: yes" >&5
17505 $as_echo "yes" >&6; }
17507 cat >>confdefs.h
<<\_ACEOF
17508 #define HAVE_TRUNCATE_SETSIZE 1
17517 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
17518 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
17519 tmp_flags
="$EXTRA_KCFLAGS"
17520 EXTRA_KCFLAGS
="-Werror"
17523 cat confdefs.h
- <<_ACEOF >conftest.c
17526 cat confdefs.h
>>conftest.
$ac_ext
17527 cat >>conftest.
$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17531 #include <linux/security.h>
17537 struct inode *ip __attribute__ ((unused)) = NULL;
17538 struct inode *dip __attribute__ ((unused)) = NULL;
17539 const struct qstr *str __attribute__ ((unused)) = NULL;
17540 char *name __attribute__ ((unused)) = NULL;
17541 void *value __attribute__ ((unused)) = NULL;
17542 size_t len __attribute__ ((unused)) = 0;
17544 security_inode_init_security(ip, dip, str, &name, &value, &len);
17553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17554 echo "obj-m := conftest.o" >build
/Makefile
17556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17557 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559 (eval $ac_try) 2>&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17569 { $as_echo "$as_me:$LINENO: result: yes" >&5
17570 $as_echo "yes" >&6; }
17572 cat >>confdefs.h
<<\_ACEOF
17573 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
17578 $as_echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.
$ac_ext >&5
17581 { $as_echo "$as_me:$LINENO: result: no" >&5
17582 $as_echo "no" >&6; }
17591 EXTRA_KCFLAGS
="$tmp_flags"
17594 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
17595 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
17596 tmp_flags
="$EXTRA_KCFLAGS"
17597 EXTRA_KCFLAGS
="-Werror"
17600 cat confdefs.h
- <<_ACEOF >conftest.c
17603 cat confdefs.h
>>conftest.
$ac_ext
17604 cat >>conftest.
$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17608 #include <linux/security.h>
17614 struct inode *ip __attribute__ ((unused)) = NULL;
17615 struct inode *dip __attribute__ ((unused)) = NULL;
17616 const struct qstr *str __attribute__ ((unused)) = NULL;
17617 initxattrs func __attribute__ ((unused)) = NULL;
17619 security_inode_init_security(ip, dip, str, func, NULL);
17628 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17629 echo "obj-m := conftest.o" >build
/Makefile
17631 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17632 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17644 { $as_echo "$as_me:$LINENO: result: yes" >&5
17645 $as_echo "yes" >&6; }
17647 cat >>confdefs.h
<<\_ACEOF
17648 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
17653 $as_echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.
$ac_ext >&5
17656 { $as_echo "$as_me:$LINENO: result: no" >&5
17657 $as_echo "no" >&6; }
17666 EXTRA_KCFLAGS
="$tmp_flags"
17668 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
17669 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
17673 cat confdefs.h
- <<_ACEOF >conftest.c
17676 cat confdefs.h
>>conftest.
$ac_ext
17677 cat >>conftest.
$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17681 #include <linux/fs.h>
17687 mount_nodev(NULL, 0, NULL, NULL);
17696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17697 echo "obj-m := conftest.o" >build
/Makefile
17699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17700 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17713 $as_echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.
$ac_ext >&5
17723 if test $rc -ne 0; then :
17725 { $as_echo "$as_me:$LINENO: result: no" >&5
17726 $as_echo "no" >&6; }
17729 if test "x$enable_linux_builtin" != xyes
; then
17731 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
17732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17734 if test $rc -ne 0; then
17736 for file in fs
/super.c
; do
17737 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
17738 "$LINUX/$file" 2>/dev
/null
17740 if test $rc -eq 0; then
17745 if test $export -eq 0; then :
17755 if test $rc -ne 0; then :
17757 { $as_echo "$as_me:$LINENO: result: no" >&5
17758 $as_echo "no" >&6; }
17762 { $as_echo "$as_me:$LINENO: result: yes" >&5
17763 $as_echo "yes" >&6; }
17765 cat >>confdefs.h
<<\_ACEOF
17766 #define HAVE_MOUNT_NODEV 1
17775 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
17776 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
17779 cat confdefs.h
- <<_ACEOF >conftest.c
17782 cat confdefs.h
>>conftest.
$ac_ext
17783 cat >>conftest.
$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17787 #include <linux/fs.h>
17793 int (*shrink)(struct shrinker *, struct shrink_control *sc)
17794 __attribute__ ((unused)) = NULL;
17795 struct super_block sb __attribute__ ((unused)) = {
17796 .s_shrink.shrink = shrink,
17797 .s_shrink.seeks = DEFAULT_SEEKS,
17798 .s_shrink.batch = 0,
17808 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17809 echo "obj-m := conftest.o" >build
/Makefile
17811 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17812 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17824 { $as_echo "$as_me:$LINENO: result: yes" >&5
17825 $as_echo "yes" >&6; }
17827 cat >>confdefs.h
<<\_ACEOF
17828 #define HAVE_SHRINK 1
17834 $as_echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.
$ac_ext >&5
17837 { $as_echo "$as_me:$LINENO: result: no" >&5
17838 $as_echo "no" >&6; }
17849 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
17850 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
17853 cat confdefs.h
- <<_ACEOF >conftest.c
17856 cat confdefs.h
>>conftest.
$ac_ext
17857 cat >>conftest.
$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17861 #include <linux/fs.h>
17867 struct super_block sb __attribute__ ((unused));
17877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17878 echo "obj-m := conftest.o" >build
/Makefile
17880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17881 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17893 { $as_echo "$as_me:$LINENO: result: yes" >&5
17894 $as_echo "yes" >&6; }
17896 cat >>confdefs.h
<<\_ACEOF
17902 $as_echo "$as_me: failed program was:" >&5
17903 sed 's/^/| /' conftest.
$ac_ext >&5
17905 { $as_echo "$as_me:$LINENO: result: no" >&5
17906 $as_echo "no" >&6; }
17916 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
17917 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
17921 cat confdefs.h
- <<_ACEOF >conftest.c
17924 cat confdefs.h
>>conftest.
$ac_ext
17925 cat >>conftest.
$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17929 #include <linux/backing-dev.h>
17935 bdi_setup_and_register(NULL, NULL, 0);
17944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17945 echo "obj-m := conftest.o" >build
/Makefile
17947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17948 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17961 $as_echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.
$ac_ext >&5
17971 if test $rc -ne 0; then :
17973 { $as_echo "$as_me:$LINENO: result: no" >&5
17974 $as_echo "no" >&6; }
17977 if test "x$enable_linux_builtin" != xyes
; then
17979 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17980 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17982 if test $rc -ne 0; then
17984 for file in mm
/backing-dev.c
; do
17985 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
17986 "$LINUX/$file" 2>/dev
/null
17988 if test $rc -eq 0; then
17993 if test $export -eq 0; then :
18003 if test $rc -ne 0; then :
18005 { $as_echo "$as_me:$LINENO: result: no" >&5
18006 $as_echo "no" >&6; }
18010 { $as_echo "$as_me:$LINENO: result: yes" >&5
18011 $as_echo "yes" >&6; }
18013 cat >>confdefs.h
<<\_ACEOF
18014 #define HAVE_BDI_SETUP_AND_REGISTER 1
18023 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
18024 $as_echo_n "checking whether set_nlink() is available... " >&6; }
18027 cat confdefs.h
- <<_ACEOF >conftest.c
18030 cat confdefs.h
>>conftest.
$ac_ext
18031 cat >>conftest.
$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18035 #include <linux/fs.h>
18042 unsigned int link = 0;
18043 (void) set_nlink(&node, link);
18052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18053 echo "obj-m := conftest.o" >build
/Makefile
18055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18056 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
18068 { $as_echo "$as_me:$LINENO: result: yes" >&5
18069 $as_echo "yes" >&6; }
18071 cat >>confdefs.h
<<\_ACEOF
18072 #define HAVE_SET_NLINK 1
18077 $as_echo "$as_me: failed program was:" >&5
18078 sed 's/^/| /' conftest.
$ac_ext >&5
18080 { $as_echo "$as_me:$LINENO: result: no" >&5
18081 $as_echo "no" >&6; }
18092 if test "$LINUX_OBJ" != "$LINUX"; then
18094 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18101 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
18102 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18103 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18110 # Check whether --with-udevdir was given.
18111 if test "${with_udevdir+set}" = set; then
18112 withval
=$with_udevdir; udevdir
=$withval
18114 udevdir
='${exec_prefix}/lib/udev'
18119 # Check whether --with-udevruledir was given.
18120 if test "${with_udevruledir+set}" = set; then
18121 withval
=$with_udevruledir; udevruledir
=$withval
18123 udevruledir
='${udevdir}/rules.d'
18131 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18132 $as_echo_n "checking for target asm dir... " >&6; }
18133 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
18135 case $TARGET_ARCH in
18137 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
18140 TARGET_ASM_DIR
=asm-generic
18145 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18146 $as_echo "$TARGET_ASM_DIR" >&6; }
18149 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18150 $as_echo_n "checking for ioctl()... " >&6; }
18151 cat >conftest.
$ac_ext <<_ACEOF
18154 cat confdefs.h
>>conftest.
$ac_ext
18155 cat >>conftest.
$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include <unistd.h>
18160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18161 $EGREP "ioctl" >/dev
/null
2>&1; then
18168 cat >conftest.
$ac_ext <<_ACEOF
18171 cat confdefs.h
>>conftest.
$ac_ext
18172 cat >>conftest.
$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <sys/ioctl.h>
18177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18178 $EGREP "ioctl" >/dev
/null
2>&1; then
18185 cat >conftest.
$ac_ext <<_ACEOF
18188 cat confdefs.h
>>conftest.
$ac_ext
18189 cat >>conftest.
$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <stropts.h>
18194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18195 $EGREP "ioctl" >/dev
/null
2>&1; then
18203 if test $is_unistd = yes; then
18206 cat >>confdefs.h
<<\_ACEOF
18207 #define HAVE_IOCTL_IN_UNISTD_H 1
18212 if test $is_sys_ioctl = yes; then
18215 cat >>confdefs.h
<<\_ACEOF
18216 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18219 elif test $is_stropts = yes; then
18221 cat >>confdefs.h
<<\_ACEOF
18222 #define HAVE_IOCTL_IN_STROPTS_H 1
18230 if test $result = no
; then
18231 { $as_echo "$as_me:$LINENO: result: no" >&5
18232 $as_echo "no" >&6; }
18233 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18234 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18235 { (exit 1); exit 1; }; }
18237 { $as_echo "$as_me:$LINENO: result: yes" >&5
18238 $as_echo "yes" >&6; }
18244 if test "${ac_cv_header_zlib_h+set}" = set; then
18245 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18246 $as_echo_n "checking for zlib.h... " >&6; }
18247 if test "${ac_cv_header_zlib_h+set}" = set; then
18248 $as_echo_n "(cached) " >&6
18250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18251 $as_echo "$ac_cv_header_zlib_h" >&6; }
18253 # Is the header compilable?
18254 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18255 $as_echo_n "checking zlib.h usability... " >&6; }
18256 cat >conftest.
$ac_ext <<_ACEOF
18259 cat confdefs.h
>>conftest.
$ac_ext
18260 cat >>conftest.
$ac_ext <<_ACEOF
18261 /* end confdefs.h. */
18262 $ac_includes_default
18265 rm -f conftest.
$ac_objext
18266 if { (ac_try
="$ac_compile"
18267 case "(($ac_try" in
18268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18272 $as_echo "$ac_try_echo") >&5
18273 (eval "$ac_compile") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest.$ac_objext; then
18283 ac_header_compiler=yes
18285 $as_echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_header_compiler=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18293 $as_echo "$ac_header_compiler" >&6; }
18295 # Is the header present?
18296 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18297 $as_echo_n "checking zlib.h presence... " >&6; }
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18306 if { (ac_try="$ac_cpp conftest.$ac_ext"
18307 case "(($ac_try" in
18308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18309 *) ac_try_echo
=$ac_try;;
18311 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18312 $as_echo "$ac_try_echo") >&5
18313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1
>conftest.err
18317 cat conftest.err
>&5
18318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } >/dev
/null
&& {
18320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18323 ac_header_preproc
=yes
18325 $as_echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.
$ac_ext >&5
18328 ac_header_preproc
=no
18331 rm -f conftest.err conftest.
$ac_ext
18332 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18333 $as_echo "$ac_header_preproc" >&6; }
18335 # So? What about this header?
18336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18338 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18339 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18340 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18341 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18342 ac_header_preproc
=yes
18345 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18346 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18347 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18348 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18349 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18350 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18351 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18352 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18353 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18354 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18355 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18356 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18360 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18361 $as_echo_n "checking for zlib.h... " >&6; }
18362 if test "${ac_cv_header_zlib_h+set}" = set; then
18363 $as_echo_n "(cached) " >&6
18365 ac_cv_header_zlib_h
=$ac_header_preproc
18367 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18368 $as_echo "$ac_cv_header_zlib_h" >&6; }
18371 if test "x$ac_cv_header_zlib_h" = x
""yes; then
18374 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18376 { { $as_echo "$as_me:$LINENO: error:
18377 *** zlib.h missing, zlib-devel package required
18378 See \`config.log' for more details." >&5
18379 $as_echo "$as_me: error:
18380 *** zlib.h missing, zlib-devel package required
18381 See \`config.log' for more details." >&2;}
18382 { (exit 1); exit 1; }; }; }
18388 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18389 $as_echo_n "checking for compress2 in -lz... " >&6; }
18390 if test "${ac_cv_lib_z_compress2+set}" = set; then
18391 $as_echo_n "(cached) " >&6
18393 ac_check_lib_save_LIBS
=$LIBS
18395 cat >conftest.
$ac_ext <<_ACEOF
18398 cat confdefs.h
>>conftest.
$ac_ext
18399 cat >>conftest.
$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18412 return compress2 ();
18417 rm -f conftest.
$ac_objext conftest
$ac_exeext
18418 if { (ac_try
="$ac_link"
18419 case "(($ac_try" in
18420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18424 $as_echo "$ac_try_echo") >&5
18425 (eval "$ac_link") 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext && {
18435 test "$cross_compiling" = yes ||
18436 $as_test_x conftest$ac_exeext
18438 ac_cv_lib_z_compress2=yes
18440 $as_echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18443 ac_cv_lib_z_compress2=no
18446 rm -rf conftest.dSYM
18447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18448 conftest$ac_exeext conftest.$ac_ext
18449 LIBS=$ac_check_lib_save_LIBS
18451 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18452 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18453 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18454 cat >>confdefs.h <<_ACEOF
18455 #define HAVE_LIBZ 1
18461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18463 { { $as_echo "$as_me:$LINENO: error
:
18464 *** compress2
() missing
, zlib-devel package required
18465 See \
`config.log' for more details." >&5
18466 $as_echo "$as_me: error:
18467 *** compress2() missing, zlib-devel package required
18468 See \`config.log
' for more details." >&2;}
18469 { (exit 1); exit 1; }; }; }
18474 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18475 $as_echo_n "checking for uncompress in -lz... " >&6; }
18476 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18477 $as_echo_n "(cached) " >&6
18479 ac_check_lib_save_LIBS=$LIBS
18481 cat >conftest.$ac_ext <<_ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h. */
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18494 char uncompress ();
18498 return uncompress ();
18503 rm -f conftest.$ac_objext conftest$ac_exeext
18504 if { (ac_try="$ac_link"
18505 case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18510 $as_echo "$ac_try_echo") >&5
18511 (eval "$ac_link") 2>conftest.er1
18513 grep -v '^
*+' conftest.er1 >conftest.err
18515 cat conftest.err >&5
18516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } && {
18518 test -z "$ac_c_werror_flag" ||
18519 test ! -s conftest.err
18520 } && test -s conftest$ac_exeext && {
18521 test "$cross_compiling" = yes ||
18522 $as_test_x conftest$ac_exeext
18524 ac_cv_lib_z_uncompress=yes
18526 $as_echo "$as_me: failed program was:" >&5
18527 sed 's
/^
/|
/' conftest.$ac_ext >&5
18529 ac_cv_lib_z_uncompress=no
18532 rm -rf conftest.dSYM
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18537 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18538 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18539 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18540 cat >>confdefs.h <<_ACEOF
18541 #define HAVE_LIBZ 1
18547 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18548 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18549 { { $as_echo "$as_me:$LINENO: error:
18550 *** uncompress() missing, zlib-devel package required
18551 See \`config.log
' for more details." >&5
18552 $as_echo "$as_me: error:
18553 *** uncompress() missing, zlib-devel package required
18554 See \`config.log' for more details.
" >&2;}
18555 { (exit 1); exit 1; }; }; }
18560 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
18561 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
18562 if test "${ac_cv_lib_z_crc32+set}" = set; then
18563 $as_echo_n "(cached
) " >&6
18565 ac_check_lib_save_LIBS=$LIBS
18567 cat >conftest.$ac_ext <<_ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18574 /* Override any GCC internal prototype to avoid an error.
18575 Use char because int might match the return type of a GCC
18576 builtin and then its argument prototype would still apply. */
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (ac_try="$ac_link"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18596 $as_echo "$ac_try_echo") >&5
18597 (eval "$ac_link") 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18601 cat conftest.err >&5
18602 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest$ac_exeext && {
18607 test "$cross_compiling" = yes ||
18608 $as_test_x conftest$ac_exeext
18610 ac_cv_lib_z_crc32=yes
18612 $as_echo "$as_me: failed program was
:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 ac_cv_lib_z_crc32=no
18618 rm -rf conftest.dSYM
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620 conftest$ac_exeext conftest.$ac_ext
18621 LIBS=$ac_check_lib_save_LIBS
18623 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
18624 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18625 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
18626 cat >>confdefs.h <<_ACEOF
18627 #define HAVE_LIBZ 1
18633 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18635 { { $as_echo "$as_me:$LINENO: error:
18636 *** crc32() missing, zlib-devel package required
18637 See \`config.log' for more details.
" >&5
18638 $as_echo "$as_me: error
:
18639 *** crc32
() missing
, zlib-devel package required
18640 See \
`config.log' for more details." >&2;}
18641 { (exit 1); exit 1; }; }; }
18648 cat >>confdefs.h <<\_ACEOF
18649 #define HAVE_ZLIB 1
18656 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18657 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18658 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18659 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18660 $as_echo_n "(cached) " >&6
18662 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18663 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18665 # Is the header compilable?
18666 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18667 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 $ac_includes_default
18675 #include <uuid/uuid.h>
18677 rm -f conftest.$ac_objext
18678 if { (ac_try="$ac_compile"
18679 case "(($ac_try" in
18680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18681 *) ac_try_echo
=$ac_try;;
18683 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18684 $as_echo "$ac_try_echo") >&5
18685 (eval "$ac_compile") 2>conftest.er1
18687 grep -v '^ *+' conftest.er1
>conftest.err
18689 cat conftest.err
>&5
18690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } && {
18692 test -z "$ac_c_werror_flag" ||
18693 test ! -s conftest.err
18694 } && test -s conftest.
$ac_objext; then
18695 ac_header_compiler
=yes
18697 $as_echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.
$ac_ext >&5
18700 ac_header_compiler
=no
18703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18705 $as_echo "$ac_header_compiler" >&6; }
18707 # Is the header present?
18708 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18709 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
18710 cat >conftest.
$ac_ext <<_ACEOF
18713 cat confdefs.h
>>conftest.
$ac_ext
18714 cat >>conftest.
$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 #include <uuid/uuid.h>
18718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18719 case "(($ac_try" in
18720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18724 $as_echo "$ac_try_echo") >&5
18725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } >/dev/null && {
18732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18735 ac_header_preproc=yes
18737 $as_echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_header_preproc=no
18743 rm -f conftest.err conftest.$ac_ext
18744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18745 $as_echo "$ac_header_preproc" >&6; }
18747 # So? What about this header?
18748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18750 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18751 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18752 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18753 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18754 ac_header_preproc=yes
18757 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18758 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18759 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
18760 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
18761 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18762 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18763 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
18764 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
18765 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18766 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18767 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18768 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18772 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18773 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18774 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18775 $as_echo_n "(cached) " >&6
18777 ac_cv_header_uuid_uuid_h=$ac_header_preproc
18779 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18780 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18783 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18786 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18788 { { $as_echo "$as_me:$LINENO: error
:
18789 *** uuid
/uuid.h missing
, libuuid-devel package required
18790 See \
`config.log' for more details." >&5
18791 $as_echo "$as_me: error:
18792 *** uuid/uuid.h missing, libuuid-devel package required
18793 See \`config.log
' for more details." >&2;}
18794 { (exit 1); exit 1; }; }; }
18800 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18801 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18802 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18803 $as_echo_n "(cached) " >&6
18805 ac_check_lib_save_LIBS=$LIBS
18806 LIBS="-luuid $LIBS"
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18814 /* Override any GCC internal prototype to avoid an error.
18815 Use char because int might match the return type of a GCC
18816 builtin and then its argument prototype would still apply. */
18820 char uuid_generate ();
18824 return uuid_generate ();
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (ac_try="$ac_link"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18836 $as_echo "$ac_try_echo") >&5
18837 (eval "$ac_link") 2>conftest.er1
18839 grep -v '^
*+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext && {
18847 test "$cross_compiling" = yes ||
18848 $as_test_x conftest$ac_exeext
18850 ac_cv_lib_uuid_uuid_generate=yes
18852 $as_echo "$as_me: failed program was:" >&5
18853 sed 's
/^
/|
/' conftest.$ac_ext >&5
18855 ac_cv_lib_uuid_uuid_generate=no
18858 rm -rf conftest.dSYM
18859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18860 conftest$ac_exeext conftest.$ac_ext
18861 LIBS=$ac_check_lib_save_LIBS
18863 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
18864 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
18865 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
18866 cat >>confdefs.h <<_ACEOF
18867 #define HAVE_LIBUUID 1
18870 LIBS="-luuid $LIBS"
18873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18874 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18875 { { $as_echo "$as_me:$LINENO: error:
18876 *** uuid_generate() missing, libuuid-devel package required
18877 See \`config.log
' for more details." >&5
18878 $as_echo "$as_me: error:
18879 *** uuid_generate() missing, libuuid-devel package required
18880 See \`config.log' for more details.
" >&2;}
18881 { (exit 1); exit 1; }; }; }
18886 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
18887 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
18888 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
18889 $as_echo_n "(cached
) " >&6
18891 ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-luuid $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18906 char uuid_is_null ();
18910 return uuid_is_null ();
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18922 $as_echo "$ac_try_echo") >&5
18923 (eval "$ac_link") 2>conftest.er1
18925 grep -v '^ *+' conftest.er1 >conftest.err
18927 cat conftest.err >&5
18928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18929 (exit $ac_status); } && {
18930 test -z "$ac_c_werror_flag" ||
18931 test ! -s conftest.err
18932 } && test -s conftest$ac_exeext && {
18933 test "$cross_compiling" = yes ||
18934 $as_test_x conftest$ac_exeext
18936 ac_cv_lib_uuid_uuid_is_null=yes
18938 $as_echo "$as_me: failed program was
:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_lib_uuid_uuid_is_null=no
18944 rm -rf conftest.dSYM
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18947 LIBS=$ac_check_lib_save_LIBS
18949 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
18950 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
18951 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define HAVE_LIBUUID 1
18956 LIBS="-luuid $LIBS"
18959 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
18960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18961 { { $as_echo "$as_me:$LINENO: error:
18962 *** uuid_is_null() missing, libuuid-devel package required
18963 See \`config.log' for more details.
" >&5
18964 $as_echo "$as_me: error
:
18965 *** uuid_is_null
() missing
, libuuid-devel package required
18966 See \
`config.log' for more details." >&2;}
18967 { (exit 1); exit 1; }; }; }
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE_LIBUUID 1
18981 # Check whether --with-blkid was given.
18982 if test "${with_blkid+set}" = set; then
18983 withval=$with_blkid;
18990 if test "x$with_blkid" != xno; then
18992 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
18993 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
18994 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18997 ac_check_lib_save_LIBS=$LIBS
18998 LIBS="-lblkid $LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19012 char blkid_get_cache ();
19016 return blkid_get_cache ();
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (ac_try="$ac_link"
19023 case "(($ac_try" in
19024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19025 *) ac_try_echo
=$ac_try;;
19027 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19028 $as_echo "$ac_try_echo") >&5
19029 (eval "$ac_link") 2>conftest.er1
19031 grep -v '^ *+' conftest.er1
>conftest.err
19033 cat conftest.err
>&5
19034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } && {
19036 test -z "$ac_c_werror_flag" ||
19037 test ! -s conftest.err
19038 } && test -s conftest
$ac_exeext && {
19039 test "$cross_compiling" = yes ||
19040 $as_test_x conftest
$ac_exeext
19042 ac_cv_lib_blkid_blkid_get_cache
=yes
19044 $as_echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.
$ac_ext >&5
19047 ac_cv_lib_blkid_blkid_get_cache
=no
19050 rm -rf conftest.dSYM
19051 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19052 conftest
$ac_exeext conftest.
$ac_ext
19053 LIBS
=$ac_check_lib_save_LIBS
19055 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19056 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19057 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
19059 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19060 $as_echo_n "checking for blkid zfs support... " >&6; }
19063 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
19064 >/dev
/null
2>/dev
/null
19065 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19066 dd of
=$ZFS_DEV bs
=1k count
=8 \
19067 seek
=132 conv
=notrunc
&>/dev
/null \
19068 >/dev
/null
2>/dev
/null
19070 saved_LDFLAGS
="$LDFLAGS"
19073 if test "$cross_compiling" = yes; then
19074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19076 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19077 See \`config.log' for more details." >&5
19078 $as_echo "$as_me: error: cannot run test program while cross compiling
19079 See \`config.log' for more details." >&2;}
19080 { (exit 1); exit 1; }; }; }
19082 cat >conftest.
$ac_ext <<_ACEOF
19085 cat confdefs.h
>>conftest.
$ac_ext
19086 cat >>conftest.
$ac_ext <<_ACEOF
19087 /* end confdefs.h. */
19090 #include <blkid/blkid.h>
19099 if (blkid_get_cache(&cache, NULL) < 0)
19102 value = blkid_get_tag_value(cache, "TYPE",
19105 blkid_put_cache(cache);
19109 if (strcmp(value, "zfs")) {
19111 blkid_put_cache(cache);
19116 blkid_put_cache(cache);
19122 rm -f conftest
$ac_exeext
19123 if { (ac_try
="$ac_link"
19124 case "(($ac_try" in
19125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_link") 2>&5
19132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19134 { (case "(($ac_try" in
19135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19136 *) ac_try_echo
=$ac_try;;
19138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19139 $as_echo "$ac_try_echo") >&5
19140 (eval "$ac_try") 2>&5
19142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
19146 { $as_echo "$as_me:$LINENO: result: yes" >&5
19147 $as_echo "yes" >&6; }
19151 cat >>confdefs.h
<<\_ACEOF
19152 #define HAVE_LIBBLKID 1
19157 $as_echo "$as_me: program exited with status $ac_status" >&5
19158 $as_echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.
$ac_ext >&5
19161 ( exit $ac_status )
19164 { $as_echo "$as_me:$LINENO: result: no" >&5
19165 $as_echo "no" >&6; }
19166 if test "x$with_blkid" != xcheck
; then
19167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19169 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19170 See \`config.log' for more details." >&5
19171 $as_echo "$as_me: error: --with-blkid given but unavailable
19172 See \`config.log' for more details." >&2;}
19173 { (exit 1); exit 1; }; }; }
19178 rm -rf conftest.dSYM
19179 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19184 LDFLAGS
="$saved_LDFLAGS"
19188 if test "x$with_blkid" != xcheck
; then
19189 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19191 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19192 See \`config.log' for more details." >&5
19193 $as_echo "$as_me: error: --with-blkid given but unavailable
19194 See \`config.log' for more details." >&2;}
19195 { (exit 1); exit 1; }; }; }
19208 # Check whether --with-selinux was given.
19209 if test "${with_selinux+set}" = set; then
19210 withval
=$with_selinux;
19217 if test "x$with_selinux" != xno
; then
19219 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19220 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19221 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19222 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19223 $as_echo_n "(cached) " >&6
19225 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19226 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19228 # Is the header compilable?
19229 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19230 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19231 cat >conftest.
$ac_ext <<_ACEOF
19234 cat confdefs.h
>>conftest.
$ac_ext
19235 cat >>conftest.
$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 $ac_includes_default
19238 #include <selinux/selinux.h>
19240 rm -f conftest.
$ac_objext
19241 if { (ac_try
="$ac_compile"
19242 case "(($ac_try" in
19243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19247 $as_echo "$ac_try_echo") >&5
19248 (eval "$ac_compile") 2>conftest.er1
19250 grep -v '^ *+' conftest.er1 >conftest.err
19252 cat conftest.err >&5
19253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); } && {
19255 test -z "$ac_c_werror_flag" ||
19256 test ! -s conftest.err
19257 } && test -s conftest.$ac_objext; then
19258 ac_header_compiler=yes
19260 $as_echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_compiler=no
19266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19268 $as_echo "$ac_header_compiler" >&6; }
19270 # Is the header present?
19271 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19272 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19273 cat >conftest.$ac_ext <<_ACEOF
19276 cat confdefs.h >>conftest.$ac_ext
19277 cat >>conftest.$ac_ext <<_ACEOF
19278 /* end confdefs.h. */
19279 #include <selinux/selinux.h>
19281 if { (ac_try="$ac_cpp conftest.$ac_ext"
19282 case "(($ac_try" in
19283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19284 *) ac_try_echo
=$ac_try;;
19286 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1
>conftest.err
19292 cat conftest.err
>&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } >/dev
/null
&& {
19295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19298 ac_header_preproc
=yes
19300 $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.
$ac_ext >&5
19303 ac_header_preproc
=no
19306 rm -f conftest.err conftest.
$ac_ext
19307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19308 $as_echo "$ac_header_preproc" >&6; }
19310 # So? What about this header?
19311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19313 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19314 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19316 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19317 ac_header_preproc
=yes
19320 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19321 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19323 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19324 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19325 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19326 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19327 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19329 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19330 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19331 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19335 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19336 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19337 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19338 $as_echo_n "(cached) " >&6
19340 ac_cv_header_selinux_selinux_h
=$ac_header_preproc
19342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19343 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19346 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then
19348 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19349 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19350 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19351 $as_echo_n "(cached) " >&6
19353 ac_check_lib_save_LIBS
=$LIBS
19354 LIBS
="-lselinux $LIBS"
19355 cat >conftest.
$ac_ext <<_ACEOF
19358 cat confdefs.h
>>conftest.
$ac_ext
19359 cat >>conftest.
$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19362 /* Override any GCC internal prototype to avoid an error.
19363 Use char because int might match the return type of a GCC
19364 builtin and then its argument prototype would still apply. */
19368 char is_selinux_enabled ();
19372 return is_selinux_enabled ();
19377 rm -f conftest.
$ac_objext conftest
$ac_exeext
19378 if { (ac_try
="$ac_link"
19379 case "(($ac_try" in
19380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19384 $as_echo "$ac_try_echo") >&5
19385 (eval "$ac_link") 2>conftest.er1
19387 grep -v '^ *+' conftest.er1 >conftest.err
19389 cat conftest.err >&5
19390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); } && {
19392 test -z "$ac_c_werror_flag" ||
19393 test ! -s conftest.err
19394 } && test -s conftest$ac_exeext && {
19395 test "$cross_compiling" = yes ||
19396 $as_test_x conftest$ac_exeext
19398 ac_cv_lib_selinux_is_selinux_enabled=yes
19400 $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 ac_cv_lib_selinux_is_selinux_enabled=no
19406 rm -rf conftest.dSYM
19407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19408 conftest$ac_exeext conftest.$ac_ext
19409 LIBS=$ac_check_lib_save_LIBS
19411 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19412 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19413 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19415 LIBSELINUX="-lselinux"
19418 cat >>confdefs.h <<\_ACEOF
19419 #define HAVE_LIBSELINUX 1
19425 if test "x$with_selinux" != xcheck; then
19426 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19428 { { $as_echo "$as_me:$LINENO: error
: --with-selinux given but unavailable
19429 See \
`config.log' for more details." >&5
19430 $as_echo "$as_me: error: --with-selinux given but unavailable
19431 See \`config.log
' for more details." >&2;}
19432 { (exit 1); exit 1; }; }; }
19442 if test "x$with_selinux" != xcheck; then
19443 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19444 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
19445 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19446 See \`config.log
' for more details." >&5
19447 $as_echo "$as_me: error: --with-selinux given but unavailable
19448 See \`config.log' for more details.
" >&2;}
19449 { (exit 1); exit 1; }; }; }
19460 { $as_echo "$as_me:$LINENO: checking
for selinux support
" >&5
19461 $as_echo_n "checking
for selinux support...
" >&6; }
19462 { $as_echo "$as_me:$LINENO: result
: no
" >&5
19463 $as_echo "no
" >&6; }
19469 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
19470 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
19472 saved_flags="$CFLAGS"
19473 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19475 if test "$cross_compiling" = yes; then
19476 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
19477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19478 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19479 See \`config.log' for more details.
" >&5
19480 $as_echo "$as_me: error
: cannot run
test program
while cross compiling
19481 See \
`config.log' for more details." >&2;}
19482 { (exit 1); exit 1; }; }; }
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19499 rm -f conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19503 *) ac_try_echo
=$ac_try;;
19505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19506 $as_echo "$ac_try_echo") >&5
19507 (eval "$ac_link") 2>&5
19509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19511 { (case "(($ac_try" in
19512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_try") 2>&5
19519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19522 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19523 { $as_echo "$as_me:$LINENO: result: yes" >&5
19524 $as_echo "yes" >&6; }
19527 $as_echo "$as_me: program exited with status $ac_status" >&5
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ( exit $ac_status )
19534 { $as_echo "$as_me:$LINENO: result: no" >&5
19535 $as_echo "no" >&6; }
19538 rm -rf conftest.dSYM
19539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19544 CFLAGS="$saved_flags"
19549 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19550 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19552 saved_CFLAGS="$CFLAGS"
19553 CFLAGS="-fstack-check"
19554 saved_LDFLAGS="$LDFLAGS"
19555 LDFLAGS="-lpthread"
19557 if test "$cross_compiling" = yes; then
19558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19560 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
19561 See \
`config.log' for more details." >&5
19562 $as_echo "$as_me: error: cannot run test program while cross compiling
19563 See \`config.log
' for more details." >&2;}
19564 { (exit 1); exit 1; }; }; }
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19573 #include <pthread.h>
19574 #include <sys/resource.h>
19575 #include <unistd.h>
19576 #include <bits/local_lim.h>
19578 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19579 #define STACK_SIZE 8192
19580 #define BUFSIZE 4096
19582 void * func(void *arg)
19592 pthread_attr_t attr;
19597 setrlimit(RLIMIT_CORE, &l);
19598 pthread_attr_init(&attr);
19599 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19600 pthread_attr_setguardsize(&attr, PAGESIZE);
19601 pthread_create(&tid, &attr, func, NULL);
19602 pthread_join(tid, NULL);
19608 rm -f conftest$ac_exeext
19609 if { (ac_try="$ac_link"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_link") 2>&5
19618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19620 { (case "(($ac_try" in
19621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19622 *) ac_try_echo=$ac_try;;
19624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19625 $as_echo "$ac_try_echo") >&5
19626 (eval "$ac_try") 2>&5
19628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19631 { $as_echo "$as_me:$LINENO: result: no" >&5
19632 $as_echo "no" >&6; }
19635 $as_echo "$as_me: program exited with status $ac_status" >&5
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's
/^
/|
/' conftest.$ac_ext >&5
19639 ( exit $ac_status )
19642 cat >>confdefs.h <<\_ACEOF
19643 #define NPTL_GUARD_WITHIN_STACK 1
19646 { $as_echo "$as_me:$LINENO: result: yes" >&5
19647 $as_echo "yes" >&6; }
19650 rm -rf conftest.dSYM
19651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19655 CFLAGS="$saved_CFLAGS"
19656 LDFLAGS="$saved_LDFLAGS"
19662 # Check whether --with-linux was given.
19663 if test "${with_linux+set}" = set; then
19664 withval=$with_linux; kernelsrc="$withval"
19669 # Check whether --with-linux-obj was given.
19670 if test "${with_linux_obj+set}" = set; then
19671 withval=$with_linux_obj; kernelbuild="$withval"
19675 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
19676 $as_echo_n "checking kernel source directory... " >&6; }
19677 if test -z "$kernelsrc"; then
19679 if test -e "/lib/modules/$(uname -r)/source"; then
19681 headersdir="/lib/modules/$(uname -r)/source"
19682 sourcelink=$(readlink -f "$headersdir")
19684 elif test -e "/lib/modules/$(uname -r)/build"; then
19686 headersdir="/lib/modules/$(uname -r)/build"
19687 sourcelink=$(readlink -f "$headersdir")
19691 sourcelink=$(ls -1d /usr/src/kernels/* \
19693 2>/dev/null | grep -v obj | tail -1)
19698 if test -n "$sourcelink" && test -e ${sourcelink}; then
19700 kernelsrc=`readlink -f ${sourcelink}`
19704 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19705 $as_echo "Not found" >&6; }
19706 { { $as_echo "$as_me:$LINENO: error:
19707 *** Please make sure the kernel devel package for your distribution
19708 *** is installed then try again. If that fails you can specify the
19709 *** location of the kernel source with the '--with-linux=PATH
' option." >&5
19710 $as_echo "$as_me: error:
19711 *** Please make sure the kernel devel package for your distribution
19712 *** is installed then try again. If that fails you can specify the
19713 *** location of the kernel source with the '--with-linux=PATH
' option." >&2;}
19714 { (exit 1); exit 1; }; }
19721 if test "$kernelsrc" = "NONE"; then
19731 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
19732 $as_echo "$kernelsrc" >&6; }
19733 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
19734 $as_echo_n "checking kernel build directory... " >&6; }
19735 if test -z "$kernelbuild"; then
19737 if test -e "/lib/modules/$(uname -r)/build"; then
19739 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
19741 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
19743 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
19745 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
19747 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
19749 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
19751 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
19755 kernelbuild=${kernelsrc}
19762 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
19763 $as_echo "$kernelbuild" >&6; }
19765 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
19766 $as_echo_n "checking kernel source version... " >&6; }
19767 utsrelease1=$kernelbuild/include/linux/version.h
19768 utsrelease2=$kernelbuild/include/linux/utsrelease.h
19769 utsrelease3=$kernelbuild/include/generated/utsrelease.h
19770 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
19772 utsrelease=linux/version.h
19774 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
19776 utsrelease=linux/utsrelease.h
19778 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
19780 utsrelease=generated/utsrelease.h
19785 if test "$utsrelease"; then
19787 kernsrcver=`(echo "#include <$utsrelease>";
19788 echo "kernsrcver=UTS_RELEASE") |
19789 cpp -I $kernelbuild/include |
19790 grep "^kernsrcver=" | cut -d \" -f 2`
19792 if test -z "$kernsrcver"; then
19794 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19795 $as_echo "Not found" >&6; }
19796 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
19797 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
19798 { (exit 1); exit 1; }; }
19805 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19806 $as_echo "Not found" >&6; }
19807 if test "x$enable_linux_builtin" != xyes; then
19808 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
19809 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
19810 { (exit 1); exit 1; }; }
19812 { { $as_echo "$as_me:$LINENO: error:
19813 *** Cannot find UTS_RELEASE definition.
19814 *** Please run 'make prepare
' inside the kernel source tree." >&5
19815 $as_echo "$as_me: error:
19816 *** Cannot find UTS_RELEASE definition.
19817 *** Please run 'make prepare
' inside the kernel source tree." >&2;}
19818 { (exit 1); exit 1; }; }
19824 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
19825 $as_echo "$kernsrcver" >&6; }
19828 LINUX_OBJ=${kernelbuild}
19829 LINUX_VERSION=${kernsrcver}
19836 modpost=$LINUX/scripts/Makefile.modpost
19837 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19838 $as_echo_n "checking kernel file name for module symbols... " >&6; }
19839 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
19841 if grep -q Modules.symvers $modpost; then
19843 LINUX_SYMBOLS=Modules.symvers
19847 LINUX_SYMBOLS=Module.symvers
19852 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
19854 { { $as_echo "$as_me:$LINENO: error:
19855 *** Please make sure the kernel devel package for your distribution
19856 *** is installed. If your building with a custom kernel make sure the
19857 *** kernel is configured, built, and the '--with-linux=PATH
' configure
19858 *** option refers to the location of the kernel source." >&5
19859 $as_echo "$as_me: error:
19860 *** Please make sure the kernel devel package for your distribution
19861 *** is installed. If your building with a custom kernel make sure the
19862 *** kernel is configured, built, and the '--with-linux=PATH
' configure
19863 *** option refers to the location of the kernel source." >&2;}
19864 { (exit 1); exit 1; }; }
19875 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19876 $as_echo "$LINUX_SYMBOLS" >&6; }
19882 # Check whether --with-spl was given.
19883 if test "${with_spl+set}" = set; then
19884 withval=$with_spl; splsrc="$withval"
19889 # Check whether --with-spl-obj was given.
19890 if test "${with_spl_obj+set}" = set; then
19891 withval=$with_spl_obj; splbuild="$withval"
19896 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
19897 $as_echo_n "checking spl source directory... " >&6; }
19898 if test -z "$splsrc"; then
19900 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
19901 2>/dev/null | tail -1`
19903 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
19905 sourcelink=`ls -1d /var/lib/dkms/spl/*/build \
19906 2>/dev/null | tail -1`
19911 if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
19918 if test -e $sourcelink/spl_config.h; then
19920 splsrc=`readlink -f ${sourcelink}`
19924 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19925 $as_echo "Not found" >&6; }
19926 { { $as_echo "$as_me:$LINENO: error:
19927 *** Please make sure the spl devel package for your distribution
19928 *** is installed then try again. If that fails you can specify the
19929 *** location of the spl source with the '--with-spl=PATH
' option." >&5
19930 $as_echo "$as_me: error:
19931 *** Please make sure the spl devel package for your distribution
19932 *** is installed then try again. If that fails you can specify the
19933 *** location of the spl source with the '--with-spl=PATH
' option." >&2;}
19934 { (exit 1); exit 1; }; }
19941 if test "$splsrc" = "NONE"; then
19952 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
19953 $as_echo "$splsrc" >&6; }
19954 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
19955 $as_echo_n "checking spl build directory... " >&6; }
19956 if test -z "$splbuild"; then
19962 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
19963 $as_echo "$splbuild" >&6; }
19965 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
19966 $as_echo_n "checking spl source version... " >&6; }
19967 if test -r $splbuild/spl_config.h &&
19968 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
19971 splsrcver=`(echo "#include <spl_config.h>";
19972 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
19974 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
19979 if test -z "$splsrcver"; then
19981 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19982 $as_echo "Not found" >&6; }
19983 { { $as_echo "$as_me:$LINENO: error:
19984 *** Cannot determine the version of the spl source.
19985 *** Please prepare the spl source before running this script" >&5
19986 $as_echo "$as_me: error:
19987 *** Cannot determine the version of the spl source.
19988 *** Please prepare the spl source before running this script" >&2;}
19989 { (exit 1); exit 1; }; }
19994 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
19995 $as_echo "$splsrcver" >&6; }
19998 SPL_OBJ=${splbuild}
19999 SPL_VERSION=${splsrcver}
20007 # Check whether --with-spl-timeout was given.
20008 if test "${with_spl_timeout+set}" = set; then
20009 withval=$with_spl_timeout; timeout="$withval"
20015 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
20016 $as_echo_n "checking spl file name for module symbols... " >&6; }
20020 if test -r $SPL_OBJ/Module.symvers; then
20022 SPL_SYMBOLS=Module.symvers
20024 elif test -r $SPL_OBJ/Modules.symvers; then
20026 SPL_SYMBOLS=Modules.symvers
20028 elif test -r $SPL_OBJ/module/Module.symvers; then
20030 SPL_SYMBOLS=Module.symvers
20032 elif test -r $SPL_OBJ/module/Modules.symvers; then
20034 SPL_SYMBOLS=Modules.symvers
20039 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
20046 timeout=$((timeout-1))
20052 if test "$SPL_SYMBOLS" = NONE; then
20054 SPL_SYMBOLS=$LINUX_SYMBOLS
20059 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
20060 $as_echo "$SPL_SYMBOLS" >&6; }
20064 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
20065 $as_echo_n "checking whether modules can be built... " >&6; }
20068 cat confdefs.h - <<_ACEOF >conftest.c
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20087 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20088 echo "obj-m := conftest.o" >build/Makefile
20090 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20091 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20103 { $as_echo "$as_me:$LINENO: result: yes" >&5
20104 $as_echo "yes" >&6; }
20107 $as_echo "$as_me: failed program was:" >&5
20108 sed 's
/^
/|
/' conftest.$ac_ext >&5
20110 { $as_echo "$as_me:$LINENO: result: no" >&5
20111 $as_echo "no" >&6; }
20112 if test "x$enable_linux_builtin" != xyes; then
20113 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
20114 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
20115 { (exit 1); exit 1; }; }
20117 { { $as_echo "$as_me:$LINENO: error:
20118 *** Unable to build an empty module.
20119 *** Please run 'make scripts
' inside the kernel source tree." >&5
20120 $as_echo "$as_me: error:
20121 *** Unable to build an empty module.
20122 *** Please run 'make scripts
' inside the kernel source tree." >&2;}
20123 { (exit 1); exit 1; }; }
20136 if test "$ZFS_META_LICENSE" = GPL; then
20139 cat >>confdefs.h <<\_ACEOF
20140 #define HAVE_GPL_ONLY_SYMBOLS 1
20149 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
20150 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
20153 cat confdefs.h - <<_ACEOF >conftest.c
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h. */
20161 #include <linux/module.h>
20167 #ifndef CONFIG_PREEMPT
20168 #error CONFIG_PREEMPT not #defined
20178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20179 echo "obj-m := conftest.o" >build/Makefile
20181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20182 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20189 (eval $ac_try) 2>&5
20191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20194 { $as_echo "$as_me:$LINENO: result: yes" >&5
20195 $as_echo "yes" >&6; }
20196 { { $as_echo "$as_me:$LINENO: error:
20197 *** Kernel built with CONFIG_PREEMPT which is not supported.
20198 *** You must rebuild your kernel without this option." >&5
20199 $as_echo "$as_me: error:
20200 *** Kernel built with CONFIG_PREEMPT which is not supported.
20201 *** You must rebuild your kernel without this option." >&2;}
20202 { (exit 1); exit 1; }; }
20205 $as_echo "$as_me: failed program was:" >&5
20206 sed 's
/^
/|
/' conftest.$ac_ext >&5
20208 { $as_echo "$as_me:$LINENO: result: no" >&5
20209 $as_echo "no" >&6; }
20223 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
20224 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
20227 cat confdefs.h - <<_ACEOF >conftest.c
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20235 #include <linux/module.h>
20241 #ifndef CONFIG_DEBUG_LOCK_ALLOC
20242 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
20252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20253 echo "obj-m := conftest.o" >build/Makefile
20255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20256 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20268 { $as_echo "$as_me:$LINENO: result: yes" >&5
20269 $as_echo "yes" >&6; }
20271 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
20272 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
20273 tmp_flags="$EXTRA_KCFLAGS"
20276 cat confdefs.h - <<_ACEOF >conftest.c
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20284 #include <linux/module.h>
20285 #include <linux/mutex.h>
20287 MODULE_LICENSE("$ZFS_META_LICENSE");
20297 mutex_unlock(&lock);
20306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20307 echo "obj-m := conftest.o" >build/Makefile
20309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20310 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20317 (eval $ac_try) 2>&5
20319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320 (exit $ac_status); }; }; then
20322 { $as_echo "$as_me:$LINENO: result: no" >&5
20323 $as_echo "no" >&6; }
20326 $as_echo "$as_me: failed program was:" >&5
20327 sed 's
/^
/|
/' conftest.$ac_ext >&5
20329 { $as_echo "$as_me:$LINENO: result: yes" >&5
20330 $as_echo "yes" >&6; }
20331 { { $as_echo "$as_me:$LINENO: error:
20332 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20333 *** with the CDDL license and will prevent the module linking stage
20334 *** from succeeding. You must rebuild your kernel without this
20335 *** option enabled." >&5
20336 $as_echo "$as_me: error:
20337 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
20338 *** with the CDDL license and will prevent the module linking stage
20339 *** from succeeding. You must rebuild your kernel without this
20340 *** option enabled." >&2;}
20341 { (exit 1); exit 1; }; }
20350 EXTRA_KCFLAGS="$tmp_flags"
20354 $as_echo "$as_me: failed program was:" >&5
20355 sed 's
/^
/|
/' conftest.$ac_ext >&5
20357 { $as_echo "$as_me:$LINENO: result: no" >&5
20358 $as_echo "no" >&6; }
20372 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
20373 $as_echo_n "checking block device operation prototypes... " >&6; }
20374 tmp_flags="$EXTRA_KCFLAGS"
20375 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20378 cat confdefs.h - <<_ACEOF >conftest.c
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20386 #include <linux/blkdev.h>
20392 int (*blk_open) (struct block_device *, fmode_t) = NULL;
20393 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
20394 int (*blk_ioctl) (struct block_device *, fmode_t,
20395 unsigned, unsigned long) = NULL;
20396 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
20397 unsigned, unsigned long) = NULL;
20398 struct block_device_operations blk_ops = {
20400 .release = blk_release,
20401 .ioctl = blk_ioctl,
20402 .compat_ioctl = blk_compat_ioctl,
20405 blk_ops.open(NULL, 0);
20406 blk_ops.release(NULL, 0);
20407 blk_ops.ioctl(NULL, 0, 0, 0);
20408 blk_ops.compat_ioctl(NULL, 0, 0, 0);
20417 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20418 echo "obj-m := conftest.o" >build/Makefile
20420 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20421 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20433 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
20434 $as_echo "struct block_device" >&6; }
20436 cat >>confdefs.h <<\_ACEOF
20437 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
20442 $as_echo "$as_me: failed program was:" >&5
20443 sed 's
/^
/|
/' conftest.$ac_ext >&5
20445 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
20446 $as_echo "struct inode" >&6; }
20455 EXTRA_KCFLAGS="$tmp_flags"
20457 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
20458 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
20461 cat confdefs.h - <<_ACEOF >conftest.c
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20469 #include <linux/types.h>
20475 fmode_t *ptr __attribute__ ((unused));
20484 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20485 echo "obj-m := conftest.o" >build/Makefile
20487 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20488 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20500 { $as_echo "$as_me:$LINENO: result: yes" >&5
20501 $as_echo "yes" >&6; }
20503 cat >>confdefs.h <<\_ACEOF
20504 #define HAVE_FMODE_T 1
20509 $as_echo "$as_me: failed program was:" >&5
20510 sed 's
/^
/|
/' conftest.$ac_ext >&5
20512 { $as_echo "$as_me:$LINENO: result: no" >&5
20513 $as_echo "no" >&6; }
20524 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
20525 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
20528 cat confdefs.h - <<_ACEOF >conftest.c
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20536 #include <linux/kobject.h>
20542 int val __attribute__ ((unused));
20543 val = KOBJ_NAME_LEN;
20552 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20553 echo "obj-m := conftest.o" >build/Makefile
20555 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20556 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20568 { $as_echo "$as_me:$LINENO: result: yes" >&5
20569 $as_echo "yes" >&6; }
20571 cat >>confdefs.h <<\_ACEOF
20572 #define HAVE_KOBJ_NAME_LEN 1
20577 $as_echo "$as_me: failed program was:" >&5
20578 sed 's
/^
/|
/' conftest.$ac_ext >&5
20580 { $as_echo "$as_me:$LINENO: result: no" >&5
20581 $as_echo "no" >&6; }
20592 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
20593 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
20596 cat confdefs.h - <<_ACEOF >conftest.c
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20604 #include <linux/fs.h>
20610 struct block_device *bdev = NULL;
20611 (void) blkdev_get(bdev, 0, NULL);
20620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20621 echo "obj-m := conftest.o" >build/Makefile
20623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20624 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20626 (eval $ac_try) 2>&5
20628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20636 { $as_echo "$as_me:$LINENO: result: yes" >&5
20637 $as_echo "yes" >&6; }
20639 cat >>confdefs.h <<\_ACEOF
20640 #define HAVE_3ARG_BLKDEV_GET 1
20645 $as_echo "$as_me: failed program was:" >&5
20646 sed 's
/^
/|
/' conftest.$ac_ext >&5
20648 { $as_echo "$as_me:$LINENO: result: no" >&5
20649 $as_echo "no" >&6; }
20659 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
20660 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
20664 cat confdefs.h - <<_ACEOF >conftest.c
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20672 #include <linux/fs.h>
20678 blkdev_get_by_path(NULL, 0, NULL);
20687 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20688 echo "obj-m := conftest.o" >build/Makefile
20690 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20691 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; }; then
20704 $as_echo "$as_me: failed program was:" >&5
20705 sed 's
/^
/|
/' conftest.$ac_ext >&5
20714 if test $rc -ne 0; then :
20716 { $as_echo "$as_me:$LINENO: result: no" >&5
20717 $as_echo "no" >&6; }
20720 if test "x$enable_linux_builtin" != xyes; then
20722 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
20723 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20725 if test $rc -ne 0; then
20727 for file in fs/block_dev.c; do
20728 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
20729 "$LINUX/$file" 2>/dev/null
20731 if test $rc -eq 0; then
20736 if test $export -eq 0; then :
20746 if test $rc -ne 0; then :
20748 { $as_echo "$as_me:$LINENO: result: no" >&5
20749 $as_echo "no" >&6; }
20753 { $as_echo "$as_me:$LINENO: result: yes" >&5
20754 $as_echo "yes" >&6; }
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_BLKDEV_GET_BY_PATH 1
20765 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
20766 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
20770 cat confdefs.h - <<_ACEOF >conftest.c
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20778 #include <linux/fs.h>
20784 open_bdev_exclusive(NULL, 0, NULL);
20793 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20794 echo "obj-m := conftest.o" >build/Makefile
20796 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20797 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20804 (eval $ac_try) 2>&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); }; }; then
20810 $as_echo "$as_me: failed program was:" >&5
20811 sed 's
/^
/|
/' conftest.$ac_ext >&5
20820 if test $rc -ne 0; then :
20822 { $as_echo "$as_me:$LINENO: result: no" >&5
20823 $as_echo "no" >&6; }
20826 if test "x$enable_linux_builtin" != xyes; then
20828 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
20829 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
20831 if test $rc -ne 0; then
20833 for file in fs/block_dev.c; do
20834 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
20835 "$LINUX/$file" 2>/dev/null
20837 if test $rc -eq 0; then
20842 if test $export -eq 0; then :
20852 if test $rc -ne 0; then :
20854 { $as_echo "$as_me:$LINENO: result: no" >&5
20855 $as_echo "no" >&6; }
20859 { $as_echo "$as_me:$LINENO: result: yes" >&5
20860 $as_echo "yes" >&6; }
20862 cat >>confdefs.h <<\_ACEOF
20863 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
20872 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
20873 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
20876 cat confdefs.h - <<_ACEOF >conftest.c
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20884 #include <linux/buffer_head.h>
20890 struct block_device *bdev = NULL;
20891 invalidate_bdev(bdev);
20900 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20901 echo "obj-m := conftest.o" >build/Makefile
20903 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20904 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906 (eval $ac_try) 2>&5
20908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20916 { $as_echo "$as_me:$LINENO: result: yes" >&5
20917 $as_echo "yes" >&6; }
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_1ARG_INVALIDATE_BDEV 1
20925 $as_echo "$as_me: failed program was:" >&5
20926 sed 's
/^
/|
/' conftest.$ac_ext >&5
20928 { $as_echo "$as_me:$LINENO: result: no" >&5
20929 $as_echo "no" >&6; }
20940 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
20941 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
20942 tmp_flags="$EXTRA_KCFLAGS"
20943 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20946 cat confdefs.h - <<_ACEOF >conftest.c
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20954 #include <linux/blkdev.h>
20960 struct block_device *bdev = NULL;
20961 bdev_logical_block_size(bdev);
20970 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20971 echo "obj-m := conftest.o" >build/Makefile
20973 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
20974 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
20975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976 (eval $ac_try) 2>&5
20978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20986 { $as_echo "$as_me:$LINENO: result: yes" >&5
20987 $as_echo "yes" >&6; }
20989 cat >>confdefs.h <<\_ACEOF
20990 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
20995 $as_echo "$as_me: failed program was:" >&5
20996 sed 's
/^
/|
/' conftest.$ac_ext >&5
20998 { $as_echo "$as_me:$LINENO: result: no" >&5
20999 $as_echo "no" >&6; }
21008 EXTRA_KCFLAGS="$tmp_flags"
21011 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
21012 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
21013 EXTRA_KCFLAGS="-Werror"
21016 cat confdefs.h - <<_ACEOF >conftest.c
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21024 #include <linux/bio.h>
21031 (void)bio_empty_barrier(&bio);
21040 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21041 echo "obj-m := conftest.o" >build/Makefile
21043 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21044 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21046 (eval $ac_try) 2>&5
21048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; }; then
21056 { $as_echo "$as_me:$LINENO: result: yes" >&5
21057 $as_echo "yes" >&6; }
21059 cat >>confdefs.h <<\_ACEOF
21060 #define HAVE_BIO_EMPTY_BARRIER 1
21065 $as_echo "$as_me: failed program was:" >&5
21066 sed 's
/^
/|
/' conftest.$ac_ext >&5
21068 { $as_echo "$as_me:$LINENO: result: no" >&5
21069 $as_echo "no" >&6; }
21080 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
21081 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
21084 cat confdefs.h - <<_ACEOF >conftest.c
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21092 #include <linux/bio.h>
21098 int flags __attribute__ ((unused));
21099 flags = (1 << BIO_RW_FAILFAST);
21108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21109 echo "obj-m := conftest.o" >build/Makefile
21111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21112 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114 (eval $ac_try) 2>&5
21116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21119 (eval $ac_try) 2>&5
21121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); }; }; then
21124 { $as_echo "$as_me:$LINENO: result: yes" >&5
21125 $as_echo "yes" >&6; }
21127 cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_BIO_RW_FAILFAST 1
21133 $as_echo "$as_me: failed program was:" >&5
21134 sed 's
/^
/|
/' conftest.$ac_ext >&5
21136 { $as_echo "$as_me:$LINENO: result: no" >&5
21137 $as_echo "no" >&6; }
21148 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
21149 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
21152 cat confdefs.h - <<_ACEOF >conftest.c
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21160 #include <linux/bio.h>
21166 int flags __attribute__ ((unused));
21167 flags = ((1 << BIO_RW_FAILFAST_DEV) |
21168 (1 << BIO_RW_FAILFAST_TRANSPORT) |
21169 (1 << BIO_RW_FAILFAST_DRIVER));
21178 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21179 echo "obj-m := conftest.o" >build/Makefile
21181 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21182 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184 (eval $ac_try) 2>&5
21186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21194 { $as_echo "$as_me:$LINENO: result: yes" >&5
21195 $as_echo "yes" >&6; }
21197 cat >>confdefs.h <<\_ACEOF
21198 #define HAVE_BIO_RW_FAILFAST_DTD 1
21203 $as_echo "$as_me: failed program was:" >&5
21204 sed 's
/^
/|
/' conftest.$ac_ext >&5
21206 { $as_echo "$as_me:$LINENO: result: no" >&5
21207 $as_echo "no" >&6; }
21218 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
21219 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
21222 cat confdefs.h - <<_ACEOF >conftest.c
21225 cat confdefs.h >>conftest.$ac_ext
21226 cat >>conftest.$ac_ext <<_ACEOF
21227 /* end confdefs.h. */
21230 #include <linux/bio.h>
21236 int flags __attribute__ ((unused));
21237 flags = REQ_FAILFAST_MASK;
21246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21247 echo "obj-m := conftest.o" >build/Makefile
21249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21250 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257 (eval $ac_try) 2>&5
21259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21262 { $as_echo "$as_me:$LINENO: result: yes" >&5
21263 $as_echo "yes" >&6; }
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_BIO_REQ_FAILFAST_MASK 1
21271 $as_echo "$as_me: failed program was:" >&5
21272 sed 's
/^
/|
/' conftest.$ac_ext >&5
21274 { $as_echo "$as_me:$LINENO: result: no" >&5
21275 $as_echo "no" >&6; }
21286 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
21287 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
21288 tmp_flags="$EXTRA_KCFLAGS"
21289 EXTRA_KCFLAGS="-Werror"
21292 cat confdefs.h - <<_ACEOF >conftest.c
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21300 #include <linux/bio.h>
21306 void (*wanted_end_io)(struct bio *, int) = NULL;
21307 bio_end_io_t *local_end_io __attribute__ ((unused));
21309 local_end_io = wanted_end_io;
21318 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21319 echo "obj-m := conftest.o" >build/Makefile
21321 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21322 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21334 { $as_echo "$as_me:$LINENO: result: yes" >&5
21335 $as_echo "yes" >&6; }
21337 cat >>confdefs.h <<\_ACEOF
21338 #define HAVE_2ARGS_BIO_END_IO_T 1
21343 $as_echo "$as_me: failed program was:" >&5
21344 sed 's
/^
/|
/' conftest.$ac_ext >&5
21346 { $as_echo "$as_me:$LINENO: result: no" >&5
21347 $as_echo "no" >&6; }
21356 EXTRA_KCFLAGS="$tmp_flags"
21359 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
21360 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
21363 cat confdefs.h - <<_ACEOF >conftest.c
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21371 #include <linux/bio.h>
21377 int flags __attribute__ ((unused));
21378 flags = BIO_RW_SYNC;
21387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21388 echo "obj-m := conftest.o" >build/Makefile
21390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21391 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; }; then
21403 { $as_echo "$as_me:$LINENO: result: yes" >&5
21404 $as_echo "yes" >&6; }
21406 cat >>confdefs.h <<\_ACEOF
21407 #define HAVE_BIO_RW_SYNC 1
21412 $as_echo "$as_me: failed program was:" >&5
21413 sed 's
/^
/|
/' conftest.$ac_ext >&5
21415 { $as_echo "$as_me:$LINENO: result: no" >&5
21416 $as_echo "no" >&6; }
21427 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
21428 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
21431 cat confdefs.h - <<_ACEOF >conftest.c
21434 cat confdefs.h >>conftest.$ac_ext
21435 cat >>conftest.$ac_ext <<_ACEOF
21436 /* end confdefs.h. */
21439 #include <linux/bio.h>
21445 int flags __attribute__ ((unused));
21446 flags = BIO_RW_SYNCIO;
21455 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21456 echo "obj-m := conftest.o" >build/Makefile
21458 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21459 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; }; then
21471 { $as_echo "$as_me:$LINENO: result: yes" >&5
21472 $as_echo "yes" >&6; }
21474 cat >>confdefs.h <<\_ACEOF
21475 #define HAVE_BIO_RW_SYNCIO 1
21480 $as_echo "$as_me: failed program was:" >&5
21481 sed 's
/^
/|
/' conftest.$ac_ext >&5
21483 { $as_echo "$as_me:$LINENO: result: no" >&5
21484 $as_echo "no" >&6; }
21495 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
21496 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
21499 cat confdefs.h - <<_ACEOF >conftest.c
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h. */
21507 #include <linux/bio.h>
21513 int flags __attribute__ ((unused));
21523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21524 echo "obj-m := conftest.o" >build/Makefile
21526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21527 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21539 { $as_echo "$as_me:$LINENO: result: yes" >&5
21540 $as_echo "yes" >&6; }
21542 cat >>confdefs.h <<\_ACEOF
21543 #define HAVE_REQ_SYNC 1
21548 $as_echo "$as_me: failed program was:" >&5
21549 sed 's
/^
/|
/' conftest.$ac_ext >&5
21551 { $as_echo "$as_me:$LINENO: result: no" >&5
21552 $as_echo "no" >&6; }
21563 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
21564 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
21565 tmp_flags="$EXTRA_KCFLAGS"
21566 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21569 cat confdefs.h - <<_ACEOF >conftest.c
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21577 #include <linux/blkdev.h>
21583 struct request *req = NULL;
21584 (void) blk_end_request(req, 0, 0);
21593 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21594 echo "obj-m := conftest.o" >build/Makefile
21596 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21597 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21604 (eval $ac_try) 2>&5
21606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); }; }; then
21609 { $as_echo "$as_me:$LINENO: result: yes" >&5
21610 $as_echo "yes" >&6; }
21612 cat >>confdefs.h <<\_ACEOF
21613 #define HAVE_BLK_END_REQUEST 1
21618 $as_echo "$as_me: failed program was:" >&5
21619 sed 's
/^
/|
/' conftest.$ac_ext >&5
21621 { $as_echo "$as_me:$LINENO: result: no" >&5
21622 $as_echo "no" >&6; }
21632 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
21633 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
21636 cat confdefs.h - <<_ACEOF >conftest.c
21639 cat confdefs.h >>conftest.$ac_ext
21640 cat >>conftest.$ac_ext <<_ACEOF
21641 /* end confdefs.h. */
21644 #include <linux/module.h>
21645 #include <linux/blkdev.h>
21647 MODULE_LICENSE("CDDL");
21653 struct request *req = NULL;
21654 (void) blk_end_request(req, 0, 0);
21663 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21664 echo "obj-m := conftest.o" >build/Makefile
21666 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21667 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21674 (eval $ac_try) 2>&5
21676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); }; }; then
21679 { $as_echo "$as_me:$LINENO: result: no" >&5
21680 $as_echo "no" >&6; }
21683 $as_echo "$as_me: failed program was:" >&5
21684 sed 's
/^
/|
/' conftest.$ac_ext >&5
21686 { $as_echo "$as_me:$LINENO: result: yes" >&5
21687 $as_echo "yes" >&6; }
21689 cat >>confdefs.h <<\_ACEOF
21690 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
21701 EXTRA_KCFLAGS="$tmp_flags"
21704 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
21705 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
21706 tmp_flags="$EXTRA_KCFLAGS"
21707 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21710 cat confdefs.h - <<_ACEOF >conftest.c
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h. */
21718 #include <linux/blkdev.h>
21724 struct request_queue *q = NULL;
21725 (void) blk_queue_flush(q, REQ_FLUSH);
21734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21735 echo "obj-m := conftest.o" >build/Makefile
21737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21738 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21750 { $as_echo "$as_me:$LINENO: result: yes" >&5
21751 $as_echo "yes" >&6; }
21753 cat >>confdefs.h <<\_ACEOF
21754 #define HAVE_BLK_QUEUE_FLUSH 1
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's
/^
/|
/' conftest.$ac_ext >&5
21762 { $as_echo "$as_me:$LINENO: result: no" >&5
21763 $as_echo "no" >&6; }
21773 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
21774 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
21777 cat confdefs.h - <<_ACEOF >conftest.c
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21785 #include <linux/module.h>
21786 #include <linux/blkdev.h>
21788 MODULE_LICENSE("CDDL");
21794 struct request_queue *q = NULL;
21795 (void) blk_queue_flush(q, REQ_FLUSH);
21804 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21805 echo "obj-m := conftest.o" >build/Makefile
21807 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21808 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21820 { $as_echo "$as_me:$LINENO: result: no" >&5
21821 $as_echo "no" >&6; }
21824 $as_echo "$as_me: failed program was:" >&5
21825 sed 's
/^
/|
/' conftest.$ac_ext >&5
21827 { $as_echo "$as_me:$LINENO: result: yes" >&5
21828 $as_echo "yes" >&6; }
21830 cat >>confdefs.h <<\_ACEOF
21831 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
21842 EXTRA_KCFLAGS="$tmp_flags"
21845 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
21846 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
21847 tmp_flags="$EXTRA_KCFLAGS"
21848 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21851 cat confdefs.h - <<_ACEOF >conftest.c
21854 cat confdefs.h >>conftest.$ac_ext
21855 cat >>conftest.$ac_ext <<_ACEOF
21856 /* end confdefs.h. */
21859 #include <linux/blkdev.h>
21865 struct request_queue *q = NULL;
21866 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
21875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21876 echo "obj-m := conftest.o" >build/Makefile
21878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21879 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21891 { $as_echo "$as_me:$LINENO: result: yes" >&5
21892 $as_echo "yes" >&6; }
21894 cat >>confdefs.h <<\_ACEOF
21895 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
21900 $as_echo "$as_me: failed program was:" >&5
21901 sed 's
/^
/|
/' conftest.$ac_ext >&5
21903 { $as_echo "$as_me:$LINENO: result: no" >&5
21904 $as_echo "no" >&6; }
21913 EXTRA_KCFLAGS="$tmp_flags"
21916 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
21917 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
21918 tmp_flags="$EXTRA_KCFLAGS"
21919 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21922 cat confdefs.h - <<_ACEOF >conftest.c
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21930 #include <linux/blkdev.h>
21936 struct request_queue *q = NULL;
21937 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
21946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21947 echo "obj-m := conftest.o" >build/Makefile
21949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
21950 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
21956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21962 { $as_echo "$as_me:$LINENO: result: yes" >&5
21963 $as_echo "yes" >&6; }
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
21971 $as_echo "$as_me: failed program was:" >&5
21972 sed 's
/^
/|
/' conftest.$ac_ext >&5
21974 { $as_echo "$as_me:$LINENO: result: no" >&5
21975 $as_echo "no" >&6; }
21984 EXTRA_KCFLAGS="$tmp_flags"
21987 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
21988 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
21989 tmp_flags="$EXTRA_KCFLAGS"
21990 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21993 cat confdefs.h - <<_ACEOF >conftest.c
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h. */
22001 #include <linux/blkdev.h>
22007 struct request_queue *q = NULL;
22008 unsigned short block_size = 1;
22009 (void) blk_queue_physical_block_size(q, block_size);
22018 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22019 echo "obj-m := conftest.o" >build/Makefile
22021 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22022 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22034 { $as_echo "$as_me:$LINENO: result: yes" >&5
22035 $as_echo "yes" >&6; }
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
22043 $as_echo "$as_me: failed program was:" >&5
22044 sed 's
/^
/|
/' conftest.$ac_ext >&5
22046 { $as_echo "$as_me:$LINENO: result: no" >&5
22047 $as_echo "no" >&6; }
22056 EXTRA_KCFLAGS="$tmp_flags"
22059 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
22060 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
22061 tmp_flags="$EXTRA_KCFLAGS"
22062 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22065 cat confdefs.h - <<_ACEOF >conftest.c
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22073 #include <linux/blkdev.h>
22079 struct request_queue *q = NULL;
22080 unsigned int opt = 1;
22081 (void) blk_queue_io_opt(q, opt);
22090 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22091 echo "obj-m := conftest.o" >build/Makefile
22093 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22094 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22106 { $as_echo "$as_me:$LINENO: result: yes" >&5
22107 $as_echo "yes" >&6; }
22109 cat >>confdefs.h <<\_ACEOF
22110 #define HAVE_BLK_QUEUE_IO_OPT 1
22115 $as_echo "$as_me: failed program was:" >&5
22116 sed 's
/^
/|
/' conftest.$ac_ext >&5
22118 { $as_echo "$as_me:$LINENO: result: no" >&5
22119 $as_echo "no" >&6; }
22128 EXTRA_KCFLAGS="$tmp_flags"
22131 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
22132 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
22133 tmp_flags="$EXTRA_KCFLAGS"
22134 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22137 cat confdefs.h - <<_ACEOF >conftest.c
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22145 #include <linux/blkdev.h>
22151 struct request_queue *q = NULL;
22152 (void) blk_queue_nonrot(q);
22161 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22162 echo "obj-m := conftest.o" >build/Makefile
22164 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22165 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167 (eval $ac_try) 2>&5
22169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22177 { $as_echo "$as_me:$LINENO: result: yes" >&5
22178 $as_echo "yes" >&6; }
22180 cat >>confdefs.h <<\_ACEOF
22181 #define HAVE_BLK_QUEUE_NONROT 1
22186 $as_echo "$as_me: failed program was:" >&5
22187 sed 's
/^
/|
/' conftest.$ac_ext >&5
22189 { $as_echo "$as_me:$LINENO: result: no" >&5
22190 $as_echo "no" >&6; }
22199 EXTRA_KCFLAGS="$tmp_flags"
22202 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
22203 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
22204 tmp_flags="$EXTRA_KCFLAGS"
22205 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22208 cat confdefs.h - <<_ACEOF >conftest.c
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22216 #include <linux/blkdev.h>
22222 struct request_queue *q = NULL;
22223 (void) blk_queue_discard(q);
22232 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22233 echo "obj-m := conftest.o" >build/Makefile
22235 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22236 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22238 (eval $ac_try) 2>&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; }; then
22248 { $as_echo "$as_me:$LINENO: result: yes" >&5
22249 $as_echo "yes" >&6; }
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_BLK_QUEUE_DISCARD 1
22257 $as_echo "$as_me: failed program was:" >&5
22258 sed 's
/^
/|
/' conftest.$ac_ext >&5
22260 { $as_echo "$as_me:$LINENO: result: no" >&5
22261 $as_echo "no" >&6; }
22270 EXTRA_KCFLAGS="$tmp_flags"
22273 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
22274 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
22275 tmp_flags="$EXTRA_KCFLAGS"
22276 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22279 cat confdefs.h - <<_ACEOF >conftest.c
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22287 #include <linux/blkdev.h>
22293 struct request_queue *q = NULL;
22294 (void) blk_fetch_request(q);
22303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22304 echo "obj-m := conftest.o" >build/Makefile
22306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22307 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309 (eval $ac_try) 2>&5
22311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22319 { $as_echo "$as_me:$LINENO: result: yes" >&5
22320 $as_echo "yes" >&6; }
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_BLK_FETCH_REQUEST 1
22328 $as_echo "$as_me: failed program was:" >&5
22329 sed 's
/^
/|
/' conftest.$ac_ext >&5
22331 { $as_echo "$as_me:$LINENO: result: no" >&5
22332 $as_echo "no" >&6; }
22341 EXTRA_KCFLAGS="$tmp_flags"
22344 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
22345 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
22346 tmp_flags="$EXTRA_KCFLAGS"
22347 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22350 cat confdefs.h - <<_ACEOF >conftest.c
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22358 #include <linux/blkdev.h>
22364 struct request_queue *q = NULL;
22365 struct request *req = NULL;
22366 blk_requeue_request(q, req);
22375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22376 echo "obj-m := conftest.o" >build/Makefile
22378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22379 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381 (eval $ac_try) 2>&5
22383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386 (eval $ac_try) 2>&5
22388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389 (exit $ac_status); }; }; then
22391 { $as_echo "$as_me:$LINENO: result: yes" >&5
22392 $as_echo "yes" >&6; }
22394 cat >>confdefs.h <<\_ACEOF
22395 #define HAVE_BLK_REQUEUE_REQUEST 1
22400 $as_echo "$as_me: failed program was:" >&5
22401 sed 's
/^
/|
/' conftest.$ac_ext >&5
22403 { $as_echo "$as_me:$LINENO: result: no" >&5
22404 $as_echo "no" >&6; }
22413 EXTRA_KCFLAGS="$tmp_flags"
22416 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
22417 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
22418 tmp_flags="$EXTRA_KCFLAGS"
22419 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22422 cat confdefs.h - <<_ACEOF >conftest.c
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22430 #include <linux/blkdev.h>
22436 struct request *req = NULL;
22437 (void) blk_rq_bytes(req);
22446 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22447 echo "obj-m := conftest.o" >build/Makefile
22449 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22450 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452 (eval $ac_try) 2>&5
22454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22462 { $as_echo "$as_me:$LINENO: result: yes" >&5
22463 $as_echo "yes" >&6; }
22465 cat >>confdefs.h <<\_ACEOF
22466 #define HAVE_BLK_RQ_BYTES 1
22471 $as_echo "$as_me: failed program was:" >&5
22472 sed 's
/^
/|
/' conftest.$ac_ext >&5
22474 { $as_echo "$as_me:$LINENO: result: no" >&5
22475 $as_echo "no" >&6; }
22485 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
22486 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
22489 cat confdefs.h - <<_ACEOF >conftest.c
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h. */
22497 #include <linux/module.h>
22498 #include <linux/blkdev.h>
22500 MODULE_LICENSE("CDDL");
22506 struct request *req = NULL;
22507 (void) blk_rq_bytes(req);
22516 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22517 echo "obj-m := conftest.o" >build/Makefile
22519 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22520 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22522 (eval $ac_try) 2>&5
22524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22532 { $as_echo "$as_me:$LINENO: result: no" >&5
22533 $as_echo "no" >&6; }
22536 $as_echo "$as_me: failed program was:" >&5
22537 sed 's
/^
/|
/' conftest.$ac_ext >&5
22539 { $as_echo "$as_me:$LINENO: result: yes" >&5
22540 $as_echo "yes" >&6; }
22542 cat >>confdefs.h <<\_ACEOF
22543 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
22554 EXTRA_KCFLAGS="$tmp_flags"
22557 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
22558 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
22559 tmp_flags="$EXTRA_KCFLAGS"
22560 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22563 cat confdefs.h - <<_ACEOF >conftest.c
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22571 #include <linux/blkdev.h>
22577 struct request *req = NULL;
22578 (void) blk_rq_pos(req);
22587 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22588 echo "obj-m := conftest.o" >build/Makefile
22590 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22591 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22593 (eval $ac_try) 2>&5
22595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }; then
22603 { $as_echo "$as_me:$LINENO: result: yes" >&5
22604 $as_echo "yes" >&6; }
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_BLK_RQ_POS 1
22612 $as_echo "$as_me: failed program was:" >&5
22613 sed 's
/^
/|
/' conftest.$ac_ext >&5
22615 { $as_echo "$as_me:$LINENO: result: no" >&5
22616 $as_echo "no" >&6; }
22625 EXTRA_KCFLAGS="$tmp_flags"
22628 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
22629 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
22630 tmp_flags="$EXTRA_KCFLAGS"
22631 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22634 cat confdefs.h - <<_ACEOF >conftest.c
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h. */
22642 #include <linux/blkdev.h>
22648 struct request *req = NULL;
22649 (void) blk_rq_sectors(req);
22658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22659 echo "obj-m := conftest.o" >build/Makefile
22661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22662 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; }; then
22674 { $as_echo "$as_me:$LINENO: result: yes" >&5
22675 $as_echo "yes" >&6; }
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_BLK_RQ_SECTORS 1
22683 $as_echo "$as_me: failed program was:" >&5
22684 sed 's
/^
/|
/' conftest.$ac_ext >&5
22686 { $as_echo "$as_me:$LINENO: result: no" >&5
22687 $as_echo "no" >&6; }
22696 EXTRA_KCFLAGS="$tmp_flags"
22699 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
22700 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
22701 tmp_flags="$EXTRA_KCFLAGS"
22702 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22705 cat confdefs.h - <<_ACEOF >conftest.c
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22713 #include <linux/blkdev.h>
22719 struct gendisk *disk = NULL;
22720 (void) get_disk_ro(disk);
22729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22730 echo "obj-m := conftest.o" >build/Makefile
22732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22733 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; }; then
22745 { $as_echo "$as_me:$LINENO: result: yes" >&5
22746 $as_echo "yes" >&6; }
22748 cat >>confdefs.h <<\_ACEOF
22749 #define HAVE_GET_DISK_RO 1
22754 $as_echo "$as_me: failed program was:" >&5
22755 sed 's
/^
/|
/' conftest.$ac_ext >&5
22757 { $as_echo "$as_me:$LINENO: result: no" >&5
22758 $as_echo "no" >&6; }
22767 EXTRA_KCFLAGS="$tmp_flags"
22769 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
22770 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
22774 cat confdefs.h - <<_ACEOF >conftest.c
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h. */
22782 #include <linux/genhd.h>
22788 get_gendisk(0, NULL);
22797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22798 echo "obj-m := conftest.o" >build/Makefile
22800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22801 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808 (eval $ac_try) 2>&5
22810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22814 $as_echo "$as_me: failed program was:" >&5
22815 sed 's
/^
/|
/' conftest.$ac_ext >&5
22824 if test $rc -ne 0; then :
22826 { $as_echo "$as_me:$LINENO: result: no" >&5
22827 $as_echo "no" >&6; }
22830 if test "x$enable_linux_builtin" != xyes; then
22832 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
22833 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22835 if test $rc -ne 0; then
22837 for file in block/genhd.c; do
22838 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
22839 "$LINUX/$file" 2>/dev/null
22841 if test $rc -eq 0; then
22846 if test $export -eq 0; then :
22856 if test $rc -ne 0; then :
22858 { $as_echo "$as_me:$LINENO: result: no" >&5
22859 $as_echo "no" >&6; }
22863 { $as_echo "$as_me:$LINENO: result: yes" >&5
22864 $as_echo "yes" >&6; }
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_GET_GENDISK 1
22876 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
22877 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
22878 tmp_flags="$EXTRA_KCFLAGS"
22879 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22882 cat confdefs.h - <<_ACEOF >conftest.c
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22890 #include <linux/blkdev.h>
22896 struct request *req = NULL;
22897 (void) rq_is_sync(req);
22906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22907 echo "obj-m := conftest.o" >build/Makefile
22909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22910 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22922 { $as_echo "$as_me:$LINENO: result: yes" >&5
22923 $as_echo "yes" >&6; }
22925 cat >>confdefs.h <<\_ACEOF
22926 #define HAVE_RQ_IS_SYNC 1
22931 $as_echo "$as_me: failed program was:" >&5
22932 sed 's
/^
/|
/' conftest.$ac_ext >&5
22934 { $as_echo "$as_me:$LINENO: result: no" >&5
22935 $as_echo "no" >&6; }
22944 EXTRA_KCFLAGS="$tmp_flags"
22947 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
22948 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
22949 tmp_flags="$EXTRA_KCFLAGS"
22950 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
22953 cat confdefs.h - <<_ACEOF >conftest.c
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h. */
22961 #include <linux/blkdev.h>
22967 struct bio_vec *bv;
22968 struct req_iterator iter;
22969 struct request *req = NULL;
22970 rq_for_each_segment(bv, req, iter) { }
22979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22980 echo "obj-m := conftest.o" >build/Makefile
22982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
22983 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
22984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22985 (eval $ac_try) 2>&5
22987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22995 { $as_echo "$as_me:$LINENO: result: yes" >&5
22996 $as_echo "yes" >&6; }
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_RQ_FOR_EACH_SEGMENT 1
23004 $as_echo "$as_me: failed program was:" >&5
23005 sed 's
/^
/|
/' conftest.$ac_ext >&5
23007 { $as_echo "$as_me:$LINENO: result: no" >&5
23008 $as_echo "no" >&6; }
23017 EXTRA_KCFLAGS="$tmp_flags"
23020 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
23021 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
23024 cat confdefs.h - <<_ACEOF >conftest.c
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23032 #include <linux/blkdev.h>
23038 struct queue_limits ql __attribute__ ((unused));
23040 ql.discard_granularity = 0;
23049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23050 echo "obj-m := conftest.o" >build/Makefile
23052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23053 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23065 { $as_echo "$as_me:$LINENO: result: yes" >&5
23066 $as_echo "yes" >&6; }
23068 cat >>confdefs.h <<\_ACEOF
23069 #define HAVE_DISCARD_GRANULARITY 1
23074 $as_echo "$as_me: failed program was:" >&5
23075 sed 's
/^
/|
/' conftest.$ac_ext >&5
23077 { $as_echo "$as_me:$LINENO: result: no" >&5
23078 $as_echo "no" >&6; }
23088 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
23089 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
23092 cat confdefs.h - <<_ACEOF >conftest.c
23095 cat confdefs.h >>conftest.$ac_ext
23096 cat >>conftest.$ac_ext <<_ACEOF
23097 /* end confdefs.h. */
23100 #include <linux/fs.h>
23101 #include <linux/xattr.h>
23103 const struct xattr_handler xattr_test_handler = {
23109 const struct xattr_handler *xattr_handlers[] = {
23110 &xattr_test_handler,
23117 struct super_block sb __attribute__ ((unused));
23119 sb.s_xattr = xattr_handlers;
23128 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23129 echo "obj-m := conftest.o" >build/Makefile
23131 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23132 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23144 { $as_echo "$as_me:$LINENO: result: yes" >&5
23145 $as_echo "yes" >&6; }
23147 cat >>confdefs.h <<\_ACEOF
23148 #define HAVE_CONST_XATTR_HANDLER 1
23153 $as_echo "$as_me: failed program was:" >&5
23154 sed 's
/^
/|
/' conftest.$ac_ext >&5
23156 { $as_echo "$as_me:$LINENO: result: no" >&5
23157 $as_echo "no" >&6; }
23168 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
23169 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
23172 cat confdefs.h - <<_ACEOF >conftest.c
23175 cat confdefs.h >>conftest.$ac_ext
23176 cat >>conftest.$ac_ext <<_ACEOF
23177 /* end confdefs.h. */
23180 #include <linux/xattr.h>
23186 int (*get)(struct dentry *dentry, const char *name,
23187 void *buffer, size_t size, int handler_flags) = NULL;
23188 struct xattr_handler xops __attribute__ ((unused));
23199 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23200 echo "obj-m := conftest.o" >build/Makefile
23202 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23203 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23210 (eval $ac_try) 2>&5
23212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23213 (exit $ac_status); }; }; then
23215 { $as_echo "$as_me:$LINENO: result: yes" >&5
23216 $as_echo "yes" >&6; }
23218 cat >>confdefs.h <<\_ACEOF
23219 #define HAVE_DENTRY_XATTR_GET 1
23224 $as_echo "$as_me: failed program was:" >&5
23225 sed 's
/^
/|
/' conftest.$ac_ext >&5
23227 { $as_echo "$as_me:$LINENO: result: no" >&5
23228 $as_echo "no" >&6; }
23239 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
23240 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
23243 cat confdefs.h - <<_ACEOF >conftest.c
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23251 #include <linux/xattr.h>
23257 int (*set)(struct dentry *dentry, const char *name,
23258 const void *buffer, size_t size, int flags,
23259 int handler_flags) = NULL;
23260 struct xattr_handler xops __attribute__ ((unused));
23271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23272 echo "obj-m := conftest.o" >build/Makefile
23274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23275 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23287 { $as_echo "$as_me:$LINENO: result: yes" >&5
23288 $as_echo "yes" >&6; }
23290 cat >>confdefs.h <<\_ACEOF
23291 #define HAVE_DENTRY_XATTR_SET 1
23296 $as_echo "$as_me: failed program was:" >&5
23297 sed 's
/^
/|
/' conftest.$ac_ext >&5
23299 { $as_echo "$as_me:$LINENO: result: no" >&5
23300 $as_echo "no" >&6; }
23311 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
23312 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
23316 cat confdefs.h - <<_ACEOF >conftest.c
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23324 #include <linux/fs.h>
23326 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
23327 static struct super_operations sops __attribute__ ((unused)) = {
23328 .show_options = show_options,
23343 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23344 echo "obj-m := conftest.o" >build/Makefile
23346 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23347 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23359 { $as_echo "$as_me:$LINENO: result: yes" >&5
23360 $as_echo "yes" >&6; }
23362 cat >>confdefs.h <<\_ACEOF
23363 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
23368 $as_echo "$as_me: failed program was:" >&5
23369 sed 's
/^
/|
/' conftest.$ac_ext >&5
23371 { $as_echo "$as_me:$LINENO: result: no" >&5
23372 $as_echo "no" >&6; }
23383 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
23384 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
23388 cat confdefs.h - <<_ACEOF >conftest.c
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23396 #include <linux/fs.h>
23402 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23403 struct file_operations fops __attribute__ ((unused));
23405 fops.fsync = fsync;
23414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23415 echo "obj-m := conftest.o" >build/Makefile
23417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23418 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23425 (eval $ac_try) 2>&5
23427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); }; }; then
23430 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23431 $as_echo "dentry" >&6; }
23433 cat >>confdefs.h <<\_ACEOF
23434 #define HAVE_FSYNC_WITH_DENTRY 1
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's
/^
/|
/' conftest.$ac_ext >&5
23454 cat confdefs.h - <<_ACEOF >conftest.c
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h. */
23462 #include <linux/fs.h>
23468 int (*fsync) (struct file *, int) = NULL;
23469 struct file_operations fops __attribute__ ((unused));
23471 fops.fsync = fsync;
23480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23481 echo "obj-m := conftest.o" >build/Makefile
23483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23484 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491 (eval $ac_try) 2>&5
23493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); }; }; then
23496 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23497 $as_echo "no dentry" >&6; }
23499 cat >>confdefs.h <<\_ACEOF
23500 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23505 $as_echo "$as_me: failed program was:" >&5
23506 sed 's
/^
/|
/' conftest.$ac_ext >&5
23520 cat confdefs.h - <<_ACEOF >conftest.c
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h. */
23528 #include <linux/fs.h>
23534 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23535 struct file_operations fops __attribute__ ((unused));
23537 fops.fsync = fsync;
23546 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23547 echo "obj-m := conftest.o" >build/Makefile
23549 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23550 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23552 (eval $ac_try) 2>&5
23554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; }; then
23562 { $as_echo "$as_me:$LINENO: result: range" >&5
23563 $as_echo "range" >&6; }
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_FSYNC_RANGE 1
23571 $as_echo "$as_me: failed program was:" >&5
23572 sed 's
/^
/|
/' conftest.$ac_ext >&5
23586 cat confdefs.h - <<_ACEOF >conftest.c
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h. */
23594 #include <linux/fs.h>
23600 int (*fsync) (struct file *, struct dentry *, int) = NULL;
23601 file_operations_no_const fops __attribute__ ((unused));
23603 fops.fsync = fsync;
23612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23613 echo "obj-m := conftest.o" >build/Makefile
23615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23616 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23628 { $as_echo "$as_me:$LINENO: result: dentry" >&5
23629 $as_echo "dentry" >&6; }
23631 cat >>confdefs.h <<\_ACEOF
23632 #define HAVE_FSYNC_WITH_DENTRY 1
23637 $as_echo "$as_me: failed program was:" >&5
23638 sed 's
/^
/|
/' conftest.$ac_ext >&5
23652 cat confdefs.h - <<_ACEOF >conftest.c
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h. */
23660 #include <linux/fs.h>
23666 int (*fsync) (struct file *, int) = NULL;
23667 file_operations_no_const fops __attribute__ ((unused));
23669 fops.fsync = fsync;
23678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23679 echo "obj-m := conftest.o" >build/Makefile
23681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23682 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684 (eval $ac_try) 2>&5
23686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23694 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
23695 $as_echo "no dentry" >&6; }
23697 cat >>confdefs.h <<\_ACEOF
23698 #define HAVE_FSYNC_WITHOUT_DENTRY 1
23703 $as_echo "$as_me: failed program was:" >&5
23704 sed 's
/^
/|
/' conftest.$ac_ext >&5
23718 cat confdefs.h - <<_ACEOF >conftest.c
23721 cat confdefs.h >>conftest.$ac_ext
23722 cat >>conftest.$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23726 #include <linux/fs.h>
23732 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
23733 file_operations_no_const fops __attribute__ ((unused));
23735 fops.fsync = fsync;
23744 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23745 echo "obj-m := conftest.o" >build/Makefile
23747 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23748 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23760 { $as_echo "$as_me:$LINENO: result: range" >&5
23761 $as_echo "range" >&6; }
23763 cat >>confdefs.h <<\_ACEOF
23764 #define HAVE_FSYNC_RANGE 1
23769 $as_echo "$as_me: failed program was:" >&5
23770 sed 's
/^
/|
/' conftest.$ac_ext >&5
23783 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
23784 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
23787 cat confdefs.h - <<_ACEOF >conftest.c
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23795 #include <linux/fs.h>
23796 void evict_inode (struct inode * t) { return; }
23797 static struct super_operations sops __attribute__ ((unused)) = {
23798 .evict_inode = evict_inode,
23813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23814 echo "obj-m := conftest.o" >build/Makefile
23816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23817 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824 (eval $ac_try) 2>&5
23826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); }; }; then
23829 { $as_echo "$as_me:$LINENO: result: yes" >&5
23830 $as_echo "yes" >&6; }
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_EVICT_INODE 1
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's
/^
/|
/' conftest.$ac_ext >&5
23841 { $as_echo "$as_me:$LINENO: result: no" >&5
23842 $as_echo "no" >&6; }
23853 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
23854 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
23857 cat confdefs.h - <<_ACEOF >conftest.c
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h. */
23865 #include <linux/fs.h>
23871 int (*nr_cached_objects)(struct super_block *)
23872 __attribute__ ((unused)) = NULL;
23873 struct super_operations sops __attribute__ ((unused)) = {
23874 .nr_cached_objects = nr_cached_objects,
23884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23885 echo "obj-m := conftest.o" >build/Makefile
23887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23888 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23890 (eval $ac_try) 2>&5
23892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895 (eval $ac_try) 2>&5
23897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898 (exit $ac_status); }; }; then
23900 { $as_echo "$as_me:$LINENO: result: yes" >&5
23901 $as_echo "yes" >&6; }
23903 cat >>confdefs.h <<\_ACEOF
23904 #define HAVE_NR_CACHED_OBJECTS 1
23909 $as_echo "$as_me: failed program was:" >&5
23910 sed 's
/^
/|
/' conftest.$ac_ext >&5
23912 { $as_echo "$as_me:$LINENO: result: no" >&5
23913 $as_echo "no" >&6; }
23924 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
23925 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
23928 cat confdefs.h - <<_ACEOF >conftest.c
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23936 #include <linux/fs.h>
23942 void (*free_cached_objects)(struct super_block *, int)
23943 __attribute__ ((unused)) = NULL;
23944 struct super_operations sops __attribute__ ((unused)) = {
23945 .free_cached_objects = free_cached_objects,
23955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23956 echo "obj-m := conftest.o" >build/Makefile
23958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
23959 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; }; then
23971 { $as_echo "$as_me:$LINENO: result: yes" >&5
23972 $as_echo "yes" >&6; }
23974 cat >>confdefs.h <<\_ACEOF
23975 #define HAVE_FREE_CACHED_OBJECTS 1
23980 $as_echo "$as_me: failed program was:" >&5
23981 sed 's
/^
/|
/' conftest.$ac_ext >&5
23983 { $as_echo "$as_me:$LINENO: result: no" >&5
23984 $as_echo "no" >&6; }
23996 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
23997 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
24000 cat confdefs.h - <<_ACEOF >conftest.c
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24008 #include <linux/fs.h>
24014 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
24015 struct file_operations fops __attribute__ ((unused)) = {
24016 .fallocate = fallocate,
24026 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24027 echo "obj-m := conftest.o" >build/Makefile
24029 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24030 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24037 (eval $ac_try) 2>&5
24039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24040 (exit $ac_status); }; }; then
24042 { $as_echo "$as_me:$LINENO: result: yes" >&5
24043 $as_echo "yes" >&6; }
24045 cat >>confdefs.h <<\_ACEOF
24046 #define HAVE_FILE_FALLOCATE 1
24051 $as_echo "$as_me: failed program was:" >&5
24052 sed 's
/^
/|
/' conftest.$ac_ext >&5
24054 { $as_echo "$as_me:$LINENO: result: no" >&5
24055 $as_echo "no" >&6; }
24066 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
24067 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
24070 cat confdefs.h - <<_ACEOF >conftest.c
24073 cat confdefs.h >>conftest.$ac_ext
24074 cat >>conftest.$ac_ext <<_ACEOF
24075 /* end confdefs.h. */
24078 #include <linux/fs.h>
24084 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
24085 struct inode_operations fops __attribute__ ((unused)) = {
24086 .fallocate = fallocate,
24096 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24097 echo "obj-m := conftest.o" >build/Makefile
24099 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24100 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24102 (eval $ac_try) 2>&5
24104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107 (eval $ac_try) 2>&5
24109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; }; then
24112 { $as_echo "$as_me:$LINENO: result: yes" >&5
24113 $as_echo "yes" >&6; }
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_INODE_FALLOCATE 1
24121 $as_echo "$as_me: failed program was:" >&5
24122 sed 's
/^
/|
/' conftest.$ac_ext >&5
24124 { $as_echo "$as_me:$LINENO: result: no" >&5
24125 $as_echo "no" >&6; }
24136 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
24137 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
24140 cat confdefs.h - <<_ACEOF >conftest.c
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h. */
24148 #include <linux/fs.h>
24154 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
24155 struct file_operations_no_const fops __attribute__ ((unused)) = {
24156 .fallocate = fallocate,
24166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24167 echo "obj-m := conftest.o" >build/Makefile
24169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24170 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177 (eval $ac_try) 2>&5
24179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180 (exit $ac_status); }; }; then
24182 { $as_echo "$as_me:$LINENO: result: yes" >&5
24183 $as_echo "yes" >&6; }
24185 cat >>confdefs.h <<\_ACEOF
24186 #define HAVE_FILE_FALLOCATE 1
24191 $as_echo "$as_me: failed program was:" >&5
24192 sed 's
/^
/|
/' conftest.$ac_ext >&5
24194 { $as_echo "$as_me:$LINENO: result: no" >&5
24195 $as_echo "no" >&6; }
24207 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
24208 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
24211 cat confdefs.h - <<_ACEOF >conftest.c
24214 cat confdefs.h >>conftest.$ac_ext
24215 cat >>conftest.$ac_ext <<_ACEOF
24216 /* end confdefs.h. */
24219 #include <linux/fs.h>
24220 void truncate_range(struct inode *inode, loff_t start,
24221 loff_t end) { return; }
24222 static struct inode_operations iops __attribute__ ((unused)) = {
24223 .truncate_range = truncate_range,
24238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24239 echo "obj-m := conftest.o" >build/Makefile
24241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24242 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244 (eval $ac_try) 2>&5
24246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24254 { $as_echo "$as_me:$LINENO: result: yes" >&5
24255 $as_echo "yes" >&6; }
24257 cat >>confdefs.h <<\_ACEOF
24258 #define HAVE_INODE_TRUNCATE_RANGE 1
24263 $as_echo "$as_me: failed program was:" >&5
24264 sed 's
/^
/|
/' conftest.$ac_ext >&5
24266 { $as_echo "$as_me:$LINENO: result: no" >&5
24267 $as_echo "no" >&6; }
24278 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
24279 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
24282 cat confdefs.h - <<_ACEOF >conftest.c
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24290 #include <linux/fs.h>
24296 int (*create) (struct inode *, struct dentry *, umode_t,
24297 struct nameidata *) = NULL;
24298 struct inode_operations iops __attribute__ ((unused)) = {
24309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24310 echo "obj-m := conftest.o" >build/Makefile
24312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24313 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24315 (eval $ac_try) 2>&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24320 (eval $ac_try) 2>&5
24322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24325 { $as_echo "$as_me:$LINENO: result: yes" >&5
24326 $as_echo "yes" >&6; }
24328 cat >>confdefs.h <<\_ACEOF
24329 #define HAVE_CREATE_UMODE_T 1
24334 $as_echo "$as_me: failed program was:" >&5
24335 sed 's
/^
/|
/' conftest.$ac_ext >&5
24337 { $as_echo "$as_me:$LINENO: result: no" >&5
24338 $as_echo "no" >&6; }
24349 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
24350 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
24353 cat confdefs.h - <<_ACEOF >conftest.c
24356 cat confdefs.h >>conftest.$ac_ext
24357 cat >>conftest.$ac_ext <<_ACEOF
24358 /* end confdefs.h. */
24361 #include <linux/dcache.h>
24362 struct vfsmount *d_automount(struct path *p) { return NULL; }
24363 struct dentry_operations dops __attribute__ ((unused)) = {
24364 .d_automount = d_automount,
24379 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24380 echo "obj-m := conftest.o" >build/Makefile
24382 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24383 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24395 { $as_echo "$as_me:$LINENO: result: yes" >&5
24396 $as_echo "yes" >&6; }
24398 cat >>confdefs.h <<\_ACEOF
24399 #define HAVE_AUTOMOUNT 1
24404 $as_echo "$as_me: failed program was:" >&5
24405 sed 's
/^
/|
/' conftest.$ac_ext >&5
24407 { $as_echo "$as_me:$LINENO: result: no" >&5
24408 $as_echo "no" >&6; }
24419 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
24420 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
24423 cat confdefs.h - <<_ACEOF >conftest.c
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h. */
24431 #include <linux/exportfs.h>
24432 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
24433 struct inode *parent) { return 0; }
24434 static struct export_operations eops __attribute__ ((unused))={
24435 .encode_fh = encode_fh,
24450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24451 echo "obj-m := conftest.o" >build/Makefile
24453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24454 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24461 (eval $ac_try) 2>&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); }; }; then
24466 { $as_echo "$as_me:$LINENO: result: yes" >&5
24467 $as_echo "yes" >&6; }
24469 cat >>confdefs.h <<\_ACEOF
24470 #define HAVE_ENCODE_FH_WITH_INODE 1
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's
/^
/|
/' conftest.$ac_ext >&5
24478 { $as_echo "$as_me:$LINENO: result: no" >&5
24479 $as_echo "no" >&6; }
24489 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
24490 $as_echo_n "checking whether clear_inode() is available... " >&6; }
24494 cat confdefs.h - <<_ACEOF >conftest.c
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24502 #include <linux/fs.h>
24517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24518 echo "obj-m := conftest.o" >build/Makefile
24520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24521 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523 (eval $ac_try) 2>&5
24525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24534 $as_echo "$as_me: failed program was:" >&5
24535 sed 's
/^
/|
/' conftest.$ac_ext >&5
24544 if test $rc -ne 0; then :
24546 { $as_echo "$as_me:$LINENO: result: no" >&5
24547 $as_echo "no" >&6; }
24550 if test "x$enable_linux_builtin" != xyes; then
24552 grep -q -E '[[:space
:]]clear_inode
[[:space
:]]' \
24553 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24555 if test $rc -ne 0; then
24557 for file in fs/inode.c; do
24558 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
24559 "$LINUX/$file" 2>/dev/null
24561 if test $rc -eq 0; then
24566 if test $export -eq 0; then :
24576 if test $rc -ne 0; then :
24578 { $as_echo "$as_me:$LINENO: result: no" >&5
24579 $as_echo "no" >&6; }
24583 { $as_echo "$as_me:$LINENO: result: yes" >&5
24584 $as_echo "yes" >&6; }
24586 cat >>confdefs.h <<\_ACEOF
24587 #define HAVE_CLEAR_INODE 1
24595 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
24596 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
24600 cat confdefs.h - <<_ACEOF >conftest.c
24603 cat confdefs.h >>conftest.$ac_ext
24604 cat >>conftest.$ac_ext <<_ACEOF
24605 /* end confdefs.h. */
24608 #include <linux/fs.h>
24614 insert_inode_locked(NULL);
24623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24624 echo "obj-m := conftest.o" >build/Makefile
24626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24627 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24640 $as_echo "$as_me: failed program was:" >&5
24641 sed 's
/^
/|
/' conftest.$ac_ext >&5
24650 if test $rc -ne 0; then :
24652 { $as_echo "$as_me:$LINENO: result: no" >&5
24653 $as_echo "no" >&6; }
24656 if test "x$enable_linux_builtin" != xyes; then
24658 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
24659 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24661 if test $rc -ne 0; then
24663 for file in fs/inode.c; do
24664 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
24665 "$LINUX/$file" 2>/dev/null
24667 if test $rc -eq 0; then
24672 if test $export -eq 0; then :
24682 if test $rc -ne 0; then :
24684 { $as_echo "$as_me:$LINENO: result: no" >&5
24685 $as_echo "no" >&6; }
24689 { $as_echo "$as_me:$LINENO: result: yes" >&5
24690 $as_echo "yes" >&6; }
24692 cat >>confdefs.h <<\_ACEOF
24693 #define HAVE_INSERT_INODE_LOCKED 1
24701 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
24702 $as_echo_n "checking whether d_make_root() is available... " >&6; }
24706 cat confdefs.h - <<_ACEOF >conftest.c
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24714 #include <linux/dcache.h>
24729 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24730 echo "obj-m := conftest.o" >build/Makefile
24732 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24733 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24735 (eval $ac_try) 2>&5
24737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24746 $as_echo "$as_me: failed program was:" >&5
24747 sed 's
/^
/|
/' conftest.$ac_ext >&5
24756 if test $rc -ne 0; then :
24758 { $as_echo "$as_me:$LINENO: result: no" >&5
24759 $as_echo "no" >&6; }
24762 if test "x$enable_linux_builtin" != xyes; then
24764 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
24765 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24767 if test $rc -ne 0; then
24769 for file in fs/dcache.c; do
24770 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
24771 "$LINUX/$file" 2>/dev/null
24773 if test $rc -eq 0; then
24778 if test $export -eq 0; then :
24788 if test $rc -ne 0; then :
24790 { $as_echo "$as_me:$LINENO: result: no" >&5
24791 $as_echo "no" >&6; }
24795 { $as_echo "$as_me:$LINENO: result: yes" >&5
24796 $as_echo "yes" >&6; }
24798 cat >>confdefs.h <<\_ACEOF
24799 #define HAVE_D_MAKE_ROOT 1
24807 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
24808 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
24812 cat confdefs.h - <<_ACEOF >conftest.c
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h. */
24820 #include <linux/dcache.h>
24826 d_obtain_alias(NULL);
24835 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24836 echo "obj-m := conftest.o" >build/Makefile
24838 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24839 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846 (eval $ac_try) 2>&5
24848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); }; }; then
24852 $as_echo "$as_me: failed program was:" >&5
24853 sed 's
/^
/|
/' conftest.$ac_ext >&5
24862 if test $rc -ne 0; then :
24864 { $as_echo "$as_me:$LINENO: result: no" >&5
24865 $as_echo "no" >&6; }
24868 if test "x$enable_linux_builtin" != xyes; then
24870 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
24871 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24873 if test $rc -ne 0; then
24875 for file in fs/dcache.c; do
24876 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
24877 "$LINUX/$file" 2>/dev/null
24879 if test $rc -eq 0; then
24884 if test $export -eq 0; then :
24894 if test $rc -ne 0; then :
24896 { $as_echo "$as_me:$LINENO: result: no" >&5
24897 $as_echo "no" >&6; }
24901 { $as_echo "$as_me:$LINENO: result: yes" >&5
24902 $as_echo "yes" >&6; }
24904 cat >>confdefs.h <<\_ACEOF
24905 #define HAVE_D_OBTAIN_ALIAS 1
24913 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
24914 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
24918 cat confdefs.h - <<_ACEOF >conftest.c
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24926 #include <linux/fs.h>
24932 check_disk_size_change(NULL, NULL);
24941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24942 echo "obj-m := conftest.o" >build/Makefile
24944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
24945 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
24946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947 (eval $ac_try) 2>&5
24949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
24951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 (eval $ac_try) 2>&5
24954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
24958 $as_echo "$as_me: failed program was:" >&5
24959 sed 's
/^
/|
/' conftest.$ac_ext >&5
24968 if test $rc -ne 0; then :
24970 { $as_echo "$as_me:$LINENO: result: no" >&5
24971 $as_echo "no" >&6; }
24974 if test "x$enable_linux_builtin" != xyes; then
24976 grep -q -E '[[:space
:]]check_disk_size_change
[[:space
:]]' \
24977 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24979 if test $rc -ne 0; then
24981 for file in fs/block_dev.c; do
24982 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
24983 "$LINUX/$file" 2>/dev/null
24985 if test $rc -eq 0; then
24990 if test $export -eq 0; then :
25000 if test $rc -ne 0; then :
25002 { $as_echo "$as_me:$LINENO: result: no" >&5
25003 $as_echo "no" >&6; }
25007 { $as_echo "$as_me:$LINENO: result: yes" >&5
25008 $as_echo "yes" >&6; }
25010 cat >>confdefs.h <<\_ACEOF
25011 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
25019 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
25020 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
25024 cat confdefs.h - <<_ACEOF >conftest.c
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25032 #include <linux/mm.h>
25038 truncate_setsize(NULL, 0);
25047 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25048 echo "obj-m := conftest.o" >build/Makefile
25050 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25051 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053 (eval $ac_try) 2>&5
25055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; }; then
25064 $as_echo "$as_me: failed program was:" >&5
25065 sed 's
/^
/|
/' conftest.$ac_ext >&5
25074 if test $rc -ne 0; then :
25076 { $as_echo "$as_me:$LINENO: result: no" >&5
25077 $as_echo "no" >&6; }
25080 if test "x$enable_linux_builtin" != xyes; then
25082 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
25083 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25085 if test $rc -ne 0; then
25087 for file in mm/truncate.c; do
25088 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
25089 "$LINUX/$file" 2>/dev/null
25091 if test $rc -eq 0; then
25096 if test $export -eq 0; then :
25106 if test $rc -ne 0; then :
25108 { $as_echo "$as_me:$LINENO: result: no" >&5
25109 $as_echo "no" >&6; }
25113 { $as_echo "$as_me:$LINENO: result: yes" >&5
25114 $as_echo "yes" >&6; }
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_TRUNCATE_SETSIZE 1
25126 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
25127 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
25128 tmp_flags="$EXTRA_KCFLAGS"
25129 EXTRA_KCFLAGS="-Werror"
25132 cat confdefs.h - <<_ACEOF >conftest.c
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25140 #include <linux/security.h>
25146 struct inode *ip __attribute__ ((unused)) = NULL;
25147 struct inode *dip __attribute__ ((unused)) = NULL;
25148 const struct qstr *str __attribute__ ((unused)) = NULL;
25149 char *name __attribute__ ((unused)) = NULL;
25150 void *value __attribute__ ((unused)) = NULL;
25151 size_t len __attribute__ ((unused)) = 0;
25153 security_inode_init_security(ip, dip, str, &name, &value, &len);
25162 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25163 echo "obj-m := conftest.o" >build/Makefile
25165 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25166 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25168 (eval $ac_try) 2>&5
25170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25173 (eval $ac_try) 2>&5
25175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; }; then
25178 { $as_echo "$as_me:$LINENO: result: yes" >&5
25179 $as_echo "yes" >&6; }
25181 cat >>confdefs.h <<\_ACEOF
25182 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
25187 $as_echo "$as_me: failed program was:" >&5
25188 sed 's
/^
/|
/' conftest.$ac_ext >&5
25190 { $as_echo "$as_me:$LINENO: result: no" >&5
25191 $as_echo "no" >&6; }
25200 EXTRA_KCFLAGS="$tmp_flags"
25203 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
25204 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
25205 tmp_flags="$EXTRA_KCFLAGS"
25206 EXTRA_KCFLAGS="-Werror"
25209 cat confdefs.h - <<_ACEOF >conftest.c
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
25214 /* end confdefs.h. */
25217 #include <linux/security.h>
25223 struct inode *ip __attribute__ ((unused)) = NULL;
25224 struct inode *dip __attribute__ ((unused)) = NULL;
25225 const struct qstr *str __attribute__ ((unused)) = NULL;
25226 initxattrs func __attribute__ ((unused)) = NULL;
25228 security_inode_init_security(ip, dip, str, func, NULL);
25237 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25238 echo "obj-m := conftest.o" >build/Makefile
25240 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25241 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248 (eval $ac_try) 2>&5
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); }; }; then
25253 { $as_echo "$as_me:$LINENO: result: yes" >&5
25254 $as_echo "yes" >&6; }
25256 cat >>confdefs.h <<\_ACEOF
25257 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
25262 $as_echo "$as_me: failed program was:" >&5
25263 sed 's
/^
/|
/' conftest.$ac_ext >&5
25265 { $as_echo "$as_me:$LINENO: result: no" >&5
25266 $as_echo "no" >&6; }
25275 EXTRA_KCFLAGS="$tmp_flags"
25277 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
25278 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
25282 cat confdefs.h - <<_ACEOF >conftest.c
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25290 #include <linux/fs.h>
25296 mount_nodev(NULL, 0, NULL, NULL);
25305 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25306 echo "obj-m := conftest.o" >build/Makefile
25308 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25309 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; }; then
25322 $as_echo "$as_me: failed program was:" >&5
25323 sed 's
/^
/|
/' conftest.$ac_ext >&5
25332 if test $rc -ne 0; then :
25334 { $as_echo "$as_me:$LINENO: result: no" >&5
25335 $as_echo "no" >&6; }
25338 if test "x$enable_linux_builtin" != xyes; then
25340 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
25341 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25343 if test $rc -ne 0; then
25345 for file in fs/super.c; do
25346 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
25347 "$LINUX/$file" 2>/dev/null
25349 if test $rc -eq 0; then
25354 if test $export -eq 0; then :
25364 if test $rc -ne 0; then :
25366 { $as_echo "$as_me:$LINENO: result: no" >&5
25367 $as_echo "no" >&6; }
25371 { $as_echo "$as_me:$LINENO: result: yes" >&5
25372 $as_echo "yes" >&6; }
25374 cat >>confdefs.h <<\_ACEOF
25375 #define HAVE_MOUNT_NODEV 1
25384 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
25385 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
25388 cat confdefs.h - <<_ACEOF >conftest.c
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h. */
25396 #include <linux/fs.h>
25402 int (*shrink)(struct shrinker *, struct shrink_control *sc)
25403 __attribute__ ((unused)) = NULL;
25404 struct super_block sb __attribute__ ((unused)) = {
25405 .s_shrink.shrink = shrink,
25406 .s_shrink.seeks = DEFAULT_SEEKS,
25407 .s_shrink.batch = 0,
25417 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25418 echo "obj-m := conftest.o" >build/Makefile
25420 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25421 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25433 { $as_echo "$as_me:$LINENO: result: yes" >&5
25434 $as_echo "yes" >&6; }
25436 cat >>confdefs.h <<\_ACEOF
25437 #define HAVE_SHRINK 1
25443 $as_echo "$as_me: failed program was:" >&5
25444 sed 's
/^
/|
/' conftest.$ac_ext >&5
25446 { $as_echo "$as_me:$LINENO: result: no" >&5
25447 $as_echo "no" >&6; }
25458 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
25459 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
25462 cat confdefs.h - <<_ACEOF >conftest.c
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25470 #include <linux/fs.h>
25476 struct super_block sb __attribute__ ((unused));
25486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25487 echo "obj-m := conftest.o" >build/Makefile
25489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25490 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25497 (eval $ac_try) 2>&5
25499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25500 (exit $ac_status); }; }; then
25502 { $as_echo "$as_me:$LINENO: result: yes" >&5
25503 $as_echo "yes" >&6; }
25505 cat >>confdefs.h <<\_ACEOF
25511 $as_echo "$as_me: failed program was:" >&5
25512 sed 's
/^
/|
/' conftest.$ac_ext >&5
25514 { $as_echo "$as_me:$LINENO: result: no" >&5
25515 $as_echo "no" >&6; }
25525 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() is available" >&5
25526 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
25530 cat confdefs.h - <<_ACEOF >conftest.c
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25538 #include <linux/backing-dev.h>
25544 bdi_setup_and_register(NULL, NULL, 0);
25553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25554 echo "obj-m := conftest.o" >build/Makefile
25556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25557 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25559 (eval $ac_try) 2>&5
25561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564 (eval $ac_try) 2>&5
25566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; }; then
25570 $as_echo "$as_me: failed program was:" >&5
25571 sed 's
/^
/|
/' conftest.$ac_ext >&5
25580 if test $rc -ne 0; then :
25582 { $as_echo "$as_me:$LINENO: result: no" >&5
25583 $as_echo "no" >&6; }
25586 if test "x$enable_linux_builtin" != xyes; then
25588 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
25589 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
25591 if test $rc -ne 0; then
25593 for file in mm/backing-dev.c; do
25594 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25595 "$LINUX/$file" 2>/dev/null
25597 if test $rc -eq 0; then
25602 if test $export -eq 0; then :
25612 if test $rc -ne 0; then :
25614 { $as_echo "$as_me:$LINENO: result: no" >&5
25615 $as_echo "no" >&6; }
25619 { $as_echo "$as_me:$LINENO: result: yes" >&5
25620 $as_echo "yes" >&6; }
25622 cat >>confdefs.h <<\_ACEOF
25623 #define HAVE_BDI_SETUP_AND_REGISTER 1
25632 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25633 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25636 cat confdefs.h - <<_ACEOF >conftest.c
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25644 #include <linux/fs.h>
25651 unsigned int link = 0;
25652 (void) set_nlink(&node, link);
25661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
25662 echo "obj-m := conftest.o" >build/Makefile
25664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
25665 if { ac_try='cp conftest.c build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
25671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25672 (eval $ac_try) 2>&5
25674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); }; }; then
25677 { $as_echo "$as_me:$LINENO: result: yes" >&5
25678 $as_echo "yes" >&6; }
25680 cat >>confdefs.h <<\_ACEOF
25681 #define HAVE_SET_NLINK 1
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's
/^
/|
/' conftest.$ac_ext >&5
25689 { $as_echo "$as_me:$LINENO: result: no" >&5
25690 $as_echo "no" >&6; }
25701 if test "$LINUX_OBJ" != "$LINUX"; then
25703 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25710 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25711 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25712 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25719 # Check whether --with-udevdir was given.
25720 if test "${with_udevdir+set}" = set; then
25721 withval=$with_udevdir; udevdir=$withval
25723 udevdir='${exec_prefix}/lib
/udev
'
25728 # Check whether --with-udevruledir was given.
25729 if test "${with_udevruledir+set}" = set; then
25730 withval=$with_udevruledir; udevruledir=$withval
25732 udevruledir='${udevdir}/rules.d
'
25740 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
25741 $as_echo_n "checking for target asm dir... " >&6; }
25742 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
25744 case $TARGET_ARCH in
25746 TARGET_ASM_DIR=asm-${TARGET_ARCH}
25749 TARGET_ASM_DIR=asm-generic
25754 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
25755 $as_echo "$TARGET_ASM_DIR" >&6; }
25758 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
25759 $as_echo_n "checking for ioctl()... " >&6; }
25760 cat >conftest.$ac_ext <<_ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 #include <unistd.h>
25769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25770 $EGREP "ioctl" >/dev/null 2>&1; then
25777 cat >conftest.$ac_ext <<_ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25783 #include <sys/ioctl.h>
25786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25787 $EGREP "ioctl" >/dev/null 2>&1; then
25794 cat >conftest.$ac_ext <<_ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h. */
25800 #include <stropts.h>
25803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25804 $EGREP "ioctl" >/dev/null 2>&1; then
25812 if test $is_unistd = yes; then
25815 cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_IOCTL_IN_UNISTD_H 1
25821 if test $is_sys_ioctl = yes; then
25824 cat >>confdefs.h <<\_ACEOF
25825 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
25828 elif test $is_stropts = yes; then
25830 cat >>confdefs.h <<\_ACEOF
25831 #define HAVE_IOCTL_IN_STROPTS_H 1
25839 if test $result = no; then
25840 { $as_echo "$as_me:$LINENO: result: no" >&5
25841 $as_echo "no" >&6; }
25842 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
25843 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
25844 { (exit 1); exit 1; }; }
25846 { $as_echo "$as_me:$LINENO: result: yes" >&5
25847 $as_echo "yes" >&6; }
25853 if test "${ac_cv_header_zlib_h+set}" = set; then
25854 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25855 $as_echo_n "checking for zlib.h... " >&6; }
25856 if test "${ac_cv_header_zlib_h+set}" = set; then
25857 $as_echo_n "(cached) " >&6
25859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25860 $as_echo "$ac_cv_header_zlib_h" >&6; }
25862 # Is the header compilable?
25863 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
25864 $as_echo_n "checking zlib.h usability... " >&6; }
25865 cat >conftest.$ac_ext <<_ACEOF
25868 cat confdefs.h >>conftest.$ac_ext
25869 cat >>conftest.$ac_ext <<_ACEOF
25870 /* end confdefs.h. */
25871 $ac_includes_default
25874 rm -f conftest.$ac_objext
25875 if { (ac_try="$ac_compile"
25876 case "(($ac_try" in
25877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25878 *) ac_try_echo=$ac_try;;
25880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25881 $as_echo "$ac_try_echo") >&5
25882 (eval "$ac_compile") 2>conftest.er1
25884 grep -v '^
*+' conftest.er1 >conftest.err
25886 cat conftest.err >&5
25887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } && {
25889 test -z "$ac_c_werror_flag" ||
25890 test ! -s conftest.err
25891 } && test -s conftest.$ac_objext; then
25892 ac_header_compiler=yes
25894 $as_echo "$as_me: failed program was:" >&5
25895 sed 's
/^
/|
/' conftest.$ac_ext >&5
25897 ac_header_compiler=no
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25902 $as_echo "$ac_header_compiler" >&6; }
25904 # Is the header present?
25905 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
25906 $as_echo_n "checking zlib.h presence... " >&6; }
25907 cat >conftest.$ac_ext <<_ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25915 if { (ac_try="$ac_cpp conftest.$ac_ext"
25916 case "(($ac_try" in
25917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25918 *) ac_try_echo=$ac_try;;
25920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25921 $as_echo "$ac_try_echo") >&5
25922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25924 grep -v '^
*+' conftest.er1 >conftest.err
25926 cat conftest.err >&5
25927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } >/dev/null && {
25929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25930 test ! -s conftest.err
25932 ac_header_preproc=yes
25934 $as_echo "$as_me: failed program was:" >&5
25935 sed 's
/^
/|
/' conftest.$ac_ext >&5
25937 ac_header_preproc=no
25940 rm -f conftest.err conftest.$ac_ext
25941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25942 $as_echo "$ac_header_preproc" >&6; }
25944 # So? What about this header?
25945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25947 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25948 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25949 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
25950 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
25951 ac_header_preproc=yes
25954 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25955 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25956 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25957 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25958 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25959 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25960 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25961 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25962 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
25963 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
25964 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25965 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25969 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25970 $as_echo_n "checking for zlib.h... " >&6; }
25971 if test "${ac_cv_header_zlib_h+set}" = set; then
25972 $as_echo_n "(cached) " >&6
25974 ac_cv_header_zlib_h=$ac_header_preproc
25976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25977 $as_echo "$ac_cv_header_zlib_h" >&6; }
25980 if test "x$ac_cv_header_zlib_h" = x""yes; then
25983 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25984 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25985 { { $as_echo "$as_me:$LINENO: error:
25986 *** zlib.h missing, zlib-devel package required
25987 See \`config.log
' for more details." >&5
25988 $as_echo "$as_me: error:
25989 *** zlib.h missing, zlib-devel package required
25990 See \`config.log' for more details.
" >&2;}
25991 { (exit 1); exit 1; }; }; }
25997 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
25998 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
25999 if test "${ac_cv_lib_z_compress2+set}" = set; then
26000 $as_echo_n "(cached
) " >&6
26002 ac_check_lib_save_LIBS=$LIBS
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26011 /* Override any GCC internal prototype to avoid an error.
26012 Use char because int might match the return type of a GCC
26013 builtin and then its argument prototype would still apply. */
26021 return compress2 ();
26026 rm -f conftest.$ac_objext conftest$ac_exeext
26027 if { (ac_try="$ac_link"
26028 case "(($ac_try" in
26029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030 *) ac_try_echo=$ac_try;;
26032 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26033 $as_echo "$ac_try_echo") >&5
26034 (eval "$ac_link") 2>conftest.er1
26036 grep -v '^ *+' conftest.er1 >conftest.err
26038 cat conftest.err >&5
26039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26040 (exit $ac_status); } && {
26041 test -z "$ac_c_werror_flag" ||
26042 test ! -s conftest.err
26043 } && test -s conftest$ac_exeext && {
26044 test "$cross_compiling" = yes ||
26045 $as_test_x conftest$ac_exeext
26047 ac_cv_lib_z_compress2=yes
26049 $as_echo "$as_me: failed program was
:" >&5
26050 sed 's/^/| /' conftest.$ac_ext >&5
26052 ac_cv_lib_z_compress2=no
26055 rm -rf conftest.dSYM
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057 conftest$ac_exeext conftest.$ac_ext
26058 LIBS=$ac_check_lib_save_LIBS
26060 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
26061 $as_echo "$ac_cv_lib_z_compress2" >&6; }
26062 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
26063 cat >>confdefs.h <<_ACEOF
26064 #define HAVE_LIBZ 1
26070 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26072 { { $as_echo "$as_me:$LINENO: error:
26073 *** compress2() missing, zlib-devel package required
26074 See \`config.log' for more details.
" >&5
26075 $as_echo "$as_me: error
:
26076 *** compress2
() missing
, zlib-devel package required
26077 See \
`config.log' for more details." >&2;}
26078 { (exit 1); exit 1; }; }; }
26083 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
26084 $as_echo_n "checking for uncompress in -lz... " >&6; }
26085 if test "${ac_cv_lib_z_uncompress+set}" = set; then
26086 $as_echo_n "(cached) " >&6
26088 ac_check_lib_save_LIBS=$LIBS
26090 cat >conftest.$ac_ext <<_ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h. */
26097 /* Override any GCC internal prototype to avoid an error.
26098 Use char because int might match the return type of a GCC
26099 builtin and then its argument prototype would still apply. */
26103 char uncompress ();
26107 return uncompress ();
26112 rm -f conftest.$ac_objext conftest$ac_exeext
26113 if { (ac_try="$ac_link"
26114 case "(($ac_try" in
26115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26116 *) ac_try_echo
=$ac_try;;
26118 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26119 $as_echo "$ac_try_echo") >&5
26120 (eval "$ac_link") 2>conftest.er1
26122 grep -v '^ *+' conftest.er1
>conftest.err
26124 cat conftest.err
>&5
26125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } && {
26127 test -z "$ac_c_werror_flag" ||
26128 test ! -s conftest.err
26129 } && test -s conftest
$ac_exeext && {
26130 test "$cross_compiling" = yes ||
26131 $as_test_x conftest
$ac_exeext
26133 ac_cv_lib_z_uncompress
=yes
26135 $as_echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.
$ac_ext >&5
26138 ac_cv_lib_z_uncompress
=no
26141 rm -rf conftest.dSYM
26142 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26143 conftest
$ac_exeext conftest.
$ac_ext
26144 LIBS
=$ac_check_lib_save_LIBS
26146 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
26147 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26148 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
26149 cat >>confdefs.h
<<_ACEOF
26150 #define HAVE_LIBZ 1
26156 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26158 { { $as_echo "$as_me:$LINENO: error:
26159 *** uncompress() missing, zlib-devel package required
26160 See \`config.log' for more details." >&5
26161 $as_echo "$as_me: error:
26162 *** uncompress() missing, zlib-devel package required
26163 See \`config.log' for more details." >&2;}
26164 { (exit 1); exit 1; }; }; }
26169 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
26170 $as_echo_n "checking for crc32 in -lz... " >&6; }
26171 if test "${ac_cv_lib_z_crc32+set}" = set; then
26172 $as_echo_n "(cached) " >&6
26174 ac_check_lib_save_LIBS
=$LIBS
26176 cat >conftest.
$ac_ext <<_ACEOF
26179 cat confdefs.h
>>conftest.
$ac_ext
26180 cat >>conftest.
$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26183 /* Override any GCC internal prototype to avoid an error.
26184 Use char because int might match the return type of a GCC
26185 builtin and then its argument prototype would still apply. */
26198 rm -f conftest.
$ac_objext conftest
$ac_exeext
26199 if { (ac_try
="$ac_link"
26200 case "(($ac_try" in
26201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26202 *) ac_try_echo=$ac_try;;
26204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26205 $as_echo "$ac_try_echo") >&5
26206 (eval "$ac_link") 2>conftest.er1
26208 grep -v '^ *+' conftest.er1 >conftest.err
26210 cat conftest.err >&5
26211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } && {
26213 test -z "$ac_c_werror_flag" ||
26214 test ! -s conftest.err
26215 } && test -s conftest$ac_exeext && {
26216 test "$cross_compiling" = yes ||
26217 $as_test_x conftest$ac_exeext
26219 ac_cv_lib_z_crc32=yes
26221 $as_echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ac_cv_lib_z_crc32=no
26227 rm -rf conftest.dSYM
26228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26229 conftest$ac_exeext conftest.$ac_ext
26230 LIBS=$ac_check_lib_save_LIBS
26232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
26233 $as_echo "$ac_cv_lib_z_crc32" >&6; }
26234 if test "x$ac_cv_lib_z_crc32" = x""yes; then
26235 cat >>confdefs.h <<_ACEOF
26236 #define HAVE_LIBZ 1
26242 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26244 { { $as_echo "$as_me:$LINENO: error
:
26245 *** crc32
() missing
, zlib-devel package required
26246 See \
`config.log' for more details." >&5
26247 $as_echo "$as_me: error:
26248 *** crc32() missing, zlib-devel package required
26249 See \`config.log
' for more details." >&2;}
26250 { (exit 1); exit 1; }; }; }
26257 cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_ZLIB 1
26265 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26266 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26267 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26268 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26269 $as_echo_n "(cached) " >&6
26271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26272 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26274 # Is the header compilable?
26275 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
26276 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26283 $ac_includes_default
26284 #include <uuid/uuid.h>
26286 rm -f conftest.$ac_objext
26287 if { (ac_try="$ac_compile"
26288 case "(($ac_try" in
26289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26290 *) ac_try_echo=$ac_try;;
26292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26293 $as_echo "$ac_try_echo") >&5
26294 (eval "$ac_compile") 2>conftest.er1
26296 grep -v '^
*+' conftest.er1 >conftest.err
26298 cat conftest.err >&5
26299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest.$ac_objext; then
26304 ac_header_compiler=yes
26306 $as_echo "$as_me: failed program was:" >&5
26307 sed 's
/^
/|
/' conftest.$ac_ext >&5
26309 ac_header_compiler=no
26312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26314 $as_echo "$ac_header_compiler" >&6; }
26316 # Is the header present?
26317 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
26318 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 #include <uuid/uuid.h>
26327 if { (ac_try="$ac_cpp conftest.$ac_ext"
26328 case "(($ac_try" in
26329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330 *) ac_try_echo=$ac_try;;
26332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26333 $as_echo "$ac_try_echo") >&5
26334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26336 grep -v '^
*+' conftest.er1 >conftest.err
26338 cat conftest.err >&5
26339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); } >/dev/null && {
26341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26342 test ! -s conftest.err
26344 ac_header_preproc=yes
26346 $as_echo "$as_me: failed program was:" >&5
26347 sed 's
/^
/|
/' conftest.$ac_ext >&5
26349 ac_header_preproc=no
26352 rm -f conftest.err conftest.$ac_ext
26353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26354 $as_echo "$ac_header_preproc" >&6; }
26356 # So? What about this header?
26357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26359 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
26360 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26361 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
26362 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
26363 ac_header_preproc=yes
26366 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
26367 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
26368 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
26369 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
26370 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
26371 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
26372 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
26373 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
26374 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
26375 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
26376 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
26377 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
26381 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
26382 $as_echo_n "checking for uuid/uuid.h... " >&6; }
26383 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
26384 $as_echo_n "(cached) " >&6
26386 ac_cv_header_uuid_uuid_h=$ac_header_preproc
26388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
26389 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
26392 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
26395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26396 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26397 { { $as_echo "$as_me:$LINENO: error:
26398 *** uuid/uuid.h missing, libuuid-devel package required
26399 See \`config.log
' for more details." >&5
26400 $as_echo "$as_me: error:
26401 *** uuid/uuid.h missing, libuuid-devel package required
26402 See \`config.log' for more details.
" >&2;}
26403 { (exit 1); exit 1; }; }; }
26409 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
26410 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
26411 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
26412 $as_echo_n "(cached
) " >&6
26414 ac_check_lib_save_LIBS=$LIBS
26415 LIBS="-luuid $LIBS"
26416 cat >conftest.$ac_ext <<_ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h. */
26423 /* Override any GCC internal prototype to avoid an error.
26424 Use char because int might match the return type of a GCC
26425 builtin and then its argument prototype would still apply. */
26429 char uuid_generate ();
26433 return uuid_generate ();
26438 rm -f conftest.$ac_objext conftest$ac_exeext
26439 if { (ac_try="$ac_link"
26440 case "(($ac_try" in
26441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442 *) ac_try_echo=$ac_try;;
26444 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26445 $as_echo "$ac_try_echo") >&5
26446 (eval "$ac_link") 2>conftest.er1
26448 grep -v '^ *+' conftest.er1 >conftest.err
26450 cat conftest.err >&5
26451 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26452 (exit $ac_status); } && {
26453 test -z "$ac_c_werror_flag" ||
26454 test ! -s conftest.err
26455 } && test -s conftest$ac_exeext && {
26456 test "$cross_compiling" = yes ||
26457 $as_test_x conftest$ac_exeext
26459 ac_cv_lib_uuid_uuid_generate=yes
26461 $as_echo "$as_me: failed program was
:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26464 ac_cv_lib_uuid_uuid_generate=no
26467 rm -rf conftest.dSYM
26468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26469 conftest$ac_exeext conftest.$ac_ext
26470 LIBS=$ac_check_lib_save_LIBS
26472 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
26473 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
26474 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
26475 cat >>confdefs.h <<_ACEOF
26476 #define HAVE_LIBUUID 1
26479 LIBS="-luuid $LIBS"
26482 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26484 { { $as_echo "$as_me:$LINENO: error:
26485 *** uuid_generate() missing, libuuid-devel package required
26486 See \`config.log' for more details.
" >&5
26487 $as_echo "$as_me: error
:
26488 *** uuid_generate
() missing
, libuuid-devel package required
26489 See \
`config.log' for more details." >&2;}
26490 { (exit 1); exit 1; }; }; }
26495 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
26496 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
26497 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
26498 $as_echo_n "(cached) " >&6
26500 ac_check_lib_save_LIBS=$LIBS
26501 LIBS="-luuid $LIBS"
26502 cat >conftest.$ac_ext <<_ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26509 /* Override any GCC internal prototype to avoid an error.
26510 Use char because int might match the return type of a GCC
26511 builtin and then its argument prototype would still apply. */
26515 char uuid_is_null ();
26519 return uuid_is_null ();
26524 rm -f conftest.$ac_objext conftest$ac_exeext
26525 if { (ac_try="$ac_link"
26526 case "(($ac_try" in
26527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26528 *) ac_try_echo
=$ac_try;;
26530 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26531 $as_echo "$ac_try_echo") >&5
26532 (eval "$ac_link") 2>conftest.er1
26534 grep -v '^ *+' conftest.er1
>conftest.err
26536 cat conftest.err
>&5
26537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538 (exit $ac_status); } && {
26539 test -z "$ac_c_werror_flag" ||
26540 test ! -s conftest.err
26541 } && test -s conftest
$ac_exeext && {
26542 test "$cross_compiling" = yes ||
26543 $as_test_x conftest
$ac_exeext
26545 ac_cv_lib_uuid_uuid_is_null
=yes
26547 $as_echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.
$ac_ext >&5
26550 ac_cv_lib_uuid_uuid_is_null
=no
26553 rm -rf conftest.dSYM
26554 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26555 conftest
$ac_exeext conftest.
$ac_ext
26556 LIBS
=$ac_check_lib_save_LIBS
26558 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
26559 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
26560 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
26561 cat >>confdefs.h
<<_ACEOF
26562 #define HAVE_LIBUUID 1
26565 LIBS
="-luuid $LIBS"
26568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26570 { { $as_echo "$as_me:$LINENO: error:
26571 *** uuid_is_null() missing, libuuid-devel package required
26572 See \`config.log' for more details." >&5
26573 $as_echo "$as_me: error:
26574 *** uuid_is_null() missing, libuuid-devel package required
26575 See \`config.log' for more details." >&2;}
26576 { (exit 1); exit 1; }; }; }
26583 cat >>confdefs.h
<<\_ACEOF
26584 #define HAVE_LIBUUID 1
26590 # Check whether --with-blkid was given.
26591 if test "${with_blkid+set}" = set; then
26592 withval
=$with_blkid;
26599 if test "x$with_blkid" != xno
; then
26601 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
26602 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
26603 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
26604 $as_echo_n "(cached) " >&6
26606 ac_check_lib_save_LIBS
=$LIBS
26607 LIBS
="-lblkid $LIBS"
26608 cat >conftest.
$ac_ext <<_ACEOF
26611 cat confdefs.h
>>conftest.
$ac_ext
26612 cat >>conftest.
$ac_ext <<_ACEOF
26613 /* end confdefs.h. */
26615 /* Override any GCC internal prototype to avoid an error.
26616 Use char because int might match the return type of a GCC
26617 builtin and then its argument prototype would still apply. */
26621 char blkid_get_cache ();
26625 return blkid_get_cache ();
26630 rm -f conftest.
$ac_objext conftest
$ac_exeext
26631 if { (ac_try
="$ac_link"
26632 case "(($ac_try" in
26633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26634 *) ac_try_echo=$ac_try;;
26636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26637 $as_echo "$ac_try_echo") >&5
26638 (eval "$ac_link") 2>conftest.er1
26640 grep -v '^ *+' conftest.er1 >conftest.err
26642 cat conftest.err >&5
26643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); } && {
26645 test -z "$ac_c_werror_flag" ||
26646 test ! -s conftest.err
26647 } && test -s conftest$ac_exeext && {
26648 test "$cross_compiling" = yes ||
26649 $as_test_x conftest$ac_exeext
26651 ac_cv_lib_blkid_blkid_get_cache=yes
26653 $as_echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26656 ac_cv_lib_blkid_blkid_get_cache=no
26659 rm -rf conftest.dSYM
26660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26661 conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26664 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
26665 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
26666 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
26668 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
26669 $as_echo_n "checking for blkid zfs support... " >&6; }
26672 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
26673 >/dev/null 2>/dev/null
26674 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26675 dd of=$ZFS_DEV bs=1k count=8 \
26676 seek=132 conv=notrunc &>/dev/null \
26677 >/dev/null 2>/dev/null
26679 saved_LDFLAGS="$LDFLAGS"
26682 if test "$cross_compiling" = yes; then
26683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26685 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
26686 See \
`config.log' for more details." >&5
26687 $as_echo "$as_me: error: cannot run test program while cross compiling
26688 See \`config.log
' for more details." >&2;}
26689 { (exit 1); exit 1; }; }; }
26691 cat >conftest.$ac_ext <<_ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h. */
26699 #include <blkid/blkid.h>
26708 if (blkid_get_cache(&cache, NULL) < 0)
26711 value = blkid_get_tag_value(cache, "TYPE",
26714 blkid_put_cache(cache);
26718 if (strcmp(value, "zfs")) {
26720 blkid_put_cache(cache);
26725 blkid_put_cache(cache);
26731 rm -f conftest$ac_exeext
26732 if { (ac_try="$ac_link"
26733 case "(($ac_try" in
26734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735 *) ac_try_echo=$ac_try;;
26737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26738 $as_echo "$ac_try_echo") >&5
26739 (eval "$ac_link") 2>&5
26741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
26743 { (case "(($ac_try" in
26744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745 *) ac_try_echo=$ac_try;;
26747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26748 $as_echo "$ac_try_echo") >&5
26749 (eval "$ac_try") 2>&5
26751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26755 { $as_echo "$as_me:$LINENO: result: yes" >&5
26756 $as_echo "yes" >&6; }
26760 cat >>confdefs.h <<\_ACEOF
26761 #define HAVE_LIBBLKID 1
26766 $as_echo "$as_me: program exited with status $ac_status" >&5
26767 $as_echo "$as_me: failed program was:" >&5
26768 sed 's
/^
/|
/' conftest.$ac_ext >&5
26770 ( exit $ac_status )
26773 { $as_echo "$as_me:$LINENO: result: no" >&5
26774 $as_echo "no" >&6; }
26775 if test "x$with_blkid" != xcheck; then
26776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26777 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26778 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26779 See \`config.log
' for more details." >&5
26780 $as_echo "$as_me: error: --with-blkid given but unavailable
26781 See \`config.log' for more details.
" >&2;}
26782 { (exit 1); exit 1; }; }; }
26787 rm -rf conftest.dSYM
26788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26793 LDFLAGS="$saved_LDFLAGS"
26797 if test "x
$with_blkid" != xcheck; then
26798 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26800 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26801 See \`config.log' for more details.
" >&5
26802 $as_echo "$as_me: error
: --with-blkid given but unavailable
26803 See \
`config.log' for more details." >&2;}
26804 { (exit 1); exit 1; }; }; }
26817 # Check whether --with-selinux was given.
26818 if test "${with_selinux+set}" = set; then
26819 withval=$with_selinux;
26826 if test "x$with_selinux" != xno; then
26828 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26829 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26830 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26831 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26832 $as_echo_n "(cached) " >&6
26834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26835 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26837 # Is the header compilable?
26838 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
26839 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
26840 cat >conftest.$ac_ext <<_ACEOF
26843 cat confdefs.h >>conftest.$ac_ext
26844 cat >>conftest.$ac_ext <<_ACEOF
26845 /* end confdefs.h. */
26846 $ac_includes_default
26847 #include <selinux/selinux.h>
26849 rm -f conftest.$ac_objext
26850 if { (ac_try="$ac_compile"
26851 case "(($ac_try" in
26852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26853 *) ac_try_echo
=$ac_try;;
26855 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26856 $as_echo "$ac_try_echo") >&5
26857 (eval "$ac_compile") 2>conftest.er1
26859 grep -v '^ *+' conftest.er1
>conftest.err
26861 cat conftest.err
>&5
26862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); } && {
26864 test -z "$ac_c_werror_flag" ||
26865 test ! -s conftest.err
26866 } && test -s conftest.
$ac_objext; then
26867 ac_header_compiler
=yes
26869 $as_echo "$as_me: failed program was:" >&5
26870 sed 's/^/| /' conftest.
$ac_ext >&5
26872 ac_header_compiler
=no
26875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26877 $as_echo "$ac_header_compiler" >&6; }
26879 # Is the header present?
26880 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
26881 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
26882 cat >conftest.
$ac_ext <<_ACEOF
26885 cat confdefs.h
>>conftest.
$ac_ext
26886 cat >>conftest.
$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26888 #include <selinux/selinux.h>
26890 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26891 case "(($ac_try" in
26892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26893 *) ac_try_echo=$ac_try;;
26895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26896 $as_echo "$ac_try_echo") >&5
26897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26899 grep -v '^ *+' conftest.er1 >conftest.err
26901 cat conftest.err >&5
26902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); } >/dev/null && {
26904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26905 test ! -s conftest.err
26907 ac_header_preproc=yes
26909 $as_echo "$as_me: failed program was:" >&5
26910 sed 's/^/| /' conftest.$ac_ext >&5
26912 ac_header_preproc=no
26915 rm -f conftest.err conftest.$ac_ext
26916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26917 $as_echo "$ac_header_preproc" >&6; }
26919 # So? What about this header?
26920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26922 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
26923 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26924 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
26925 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
26926 ac_header_preproc=yes
26929 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
26930 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
26931 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
26932 $as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
26933 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
26934 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
26935 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
26936 $as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
26937 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
26938 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
26939 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
26940 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
26944 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
26945 $as_echo_n "checking for selinux/selinux.h... " >&6; }
26946 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
26947 $as_echo_n "(cached) " >&6
26949 ac_cv_header_selinux_selinux_h=$ac_header_preproc
26951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
26952 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
26955 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
26957 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
26958 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
26959 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
26960 $as_echo_n "(cached) " >&6
26962 ac_check_lib_save_LIBS=$LIBS
26963 LIBS="-lselinux $LIBS"
26964 cat >conftest.$ac_ext <<_ACEOF
26967 cat confdefs.h >>conftest.$ac_ext
26968 cat >>conftest.$ac_ext <<_ACEOF
26969 /* end confdefs.h. */
26971 /* Override any GCC internal prototype to avoid an error.
26972 Use char because int might match the return type of a GCC
26973 builtin and then its argument prototype would still apply. */
26977 char is_selinux_enabled ();
26981 return is_selinux_enabled ();
26986 rm -f conftest.$ac_objext conftest$ac_exeext
26987 if { (ac_try="$ac_link"
26988 case "(($ac_try" in
26989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26990 *) ac_try_echo
=$ac_try;;
26992 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26993 $as_echo "$ac_try_echo") >&5
26994 (eval "$ac_link") 2>conftest.er1
26996 grep -v '^ *+' conftest.er1
>conftest.err
26998 cat conftest.err
>&5
26999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); } && {
27001 test -z "$ac_c_werror_flag" ||
27002 test ! -s conftest.err
27003 } && test -s conftest
$ac_exeext && {
27004 test "$cross_compiling" = yes ||
27005 $as_test_x conftest
$ac_exeext
27007 ac_cv_lib_selinux_is_selinux_enabled
=yes
27009 $as_echo "$as_me: failed program was:" >&5
27010 sed 's/^/| /' conftest.
$ac_ext >&5
27012 ac_cv_lib_selinux_is_selinux_enabled
=no
27015 rm -rf conftest.dSYM
27016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27017 conftest
$ac_exeext conftest.
$ac_ext
27018 LIBS
=$ac_check_lib_save_LIBS
27020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
27021 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
27022 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
27024 LIBSELINUX
="-lselinux"
27027 cat >>confdefs.h
<<\_ACEOF
27028 #define HAVE_LIBSELINUX 1
27034 if test "x$with_selinux" != xcheck
; then
27035 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27037 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
27038 See \`config.log' for more details." >&5
27039 $as_echo "$as_me: error: --with-selinux given but unavailable
27040 See \`config.log' for more details." >&2;}
27041 { (exit 1); exit 1; }; }; }
27051 if test "x$with_selinux" != xcheck
; then
27052 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27054 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
27055 See \`config.log' for more details." >&5
27056 $as_echo "$as_me: error: --with-selinux given but unavailable
27057 See \`config.log' for more details." >&2;}
27058 { (exit 1); exit 1; }; }; }
27069 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
27070 $as_echo_n "checking for selinux support... " >&6; }
27071 { $as_echo "$as_me:$LINENO: result: no" >&5
27072 $as_echo "no" >&6; }
27078 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
27079 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27081 saved_flags
="$CFLAGS"
27082 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
27084 if test "$cross_compiling" = yes; then
27085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27087 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27088 See \`config.log' for more details." >&5
27089 $as_echo "$as_me: error: cannot run test program while cross compiling
27090 See \`config.log' for more details." >&2;}
27091 { (exit 1); exit 1; }; }; }
27093 cat >conftest.
$ac_ext <<_ACEOF
27096 cat confdefs.h
>>conftest.
$ac_ext
27097 cat >>conftest.
$ac_ext <<_ACEOF
27098 /* end confdefs.h. */
27108 rm -f conftest
$ac_exeext
27109 if { (ac_try
="$ac_link"
27110 case "(($ac_try" in
27111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27112 *) ac_try_echo=$ac_try;;
27114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27115 $as_echo "$ac_try_echo") >&5
27116 (eval "$ac_link") 2>&5
27118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27120 { (case "(($ac_try" in
27121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27122 *) ac_try_echo
=$ac_try;;
27124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27125 $as_echo "$ac_try_echo") >&5
27126 (eval "$ac_try") 2>&5
27128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; }; then
27131 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
27132 { $as_echo "$as_me:$LINENO: result: yes" >&5
27133 $as_echo "yes" >&6; }
27136 $as_echo "$as_me: program exited with status $ac_status" >&5
27137 $as_echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.
$ac_ext >&5
27140 ( exit $ac_status )
27143 { $as_echo "$as_me:$LINENO: result: no" >&5
27144 $as_echo "no" >&6; }
27147 rm -rf conftest.dSYM
27148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27153 CFLAGS
="$saved_flags"
27158 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
27159 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
27161 saved_CFLAGS
="$CFLAGS"
27162 CFLAGS
="-fstack-check"
27163 saved_LDFLAGS
="$LDFLAGS"
27164 LDFLAGS
="-lpthread"
27166 if test "$cross_compiling" = yes; then
27167 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27169 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27170 See \`config.log' for more details." >&5
27171 $as_echo "$as_me: error: cannot run test program while cross compiling
27172 See \`config.log' for more details." >&2;}
27173 { (exit 1); exit 1; }; }; }
27175 cat >conftest.
$ac_ext <<_ACEOF
27178 cat confdefs.h
>>conftest.
$ac_ext
27179 cat >>conftest.
$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27182 #include <pthread.h>
27183 #include <sys/resource.h>
27184 #include <unistd.h>
27185 #include <bits/local_lim.h>
27187 #define PAGESIZE (sysconf(_SC_PAGESIZE))
27188 #define STACK_SIZE 8192
27189 #define BUFSIZE 4096
27191 void * func(void *arg)
27201 pthread_attr_t attr;
27206 setrlimit(RLIMIT_CORE, &l);
27207 pthread_attr_init(&attr);
27208 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
27209 pthread_attr_setguardsize(&attr, PAGESIZE);
27210 pthread_create(&tid, &attr, func, NULL);
27211 pthread_join(tid, NULL);
27217 rm -f conftest
$ac_exeext
27218 if { (ac_try
="$ac_link"
27219 case "(($ac_try" in
27220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224 $as_echo "$ac_try_echo") >&5
27225 (eval "$ac_link") 2>&5
27227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27231 *) ac_try_echo
=$ac_try;;
27233 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27234 $as_echo "$ac_try_echo") >&5
27235 (eval "$ac_try") 2>&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27240 { $as_echo "$as_me:$LINENO: result: no" >&5
27241 $as_echo "no" >&6; }
27244 $as_echo "$as_me: program exited with status $ac_status" >&5
27245 $as_echo "$as_me: failed program was:" >&5
27246 sed 's/^/| /' conftest.
$ac_ext >&5
27248 ( exit $ac_status )
27251 cat >>confdefs.h
<<\_ACEOF
27252 #define NPTL_GUARD_WITHIN_STACK 1
27255 { $as_echo "$as_me:$LINENO: result: yes" >&5
27256 $as_echo "yes" >&6; }
27259 rm -rf conftest.dSYM
27260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27264 CFLAGS
="$saved_CFLAGS"
27265 LDFLAGS
="$saved_LDFLAGS"
27270 { $as_echo "$as_me:$LINENO: result: Error!" >&5
27271 $as_echo "Error!" >&6; }
27272 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27273 user kernel|user|all|srpm" >&5
27274 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
27275 user kernel|user|all|srpm" >&2;}
27276 { (exit 1); exit 1; }; } ;;
27279 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
27281 CONFIG_USER_FALSE
='#'
27283 CONFIG_USER_TRUE
='#'
27287 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
27288 test "x$enable_linux_builtin" != xyes
; then
27289 CONFIG_KERNEL_TRUE
=
27290 CONFIG_KERNEL_FALSE
='#'
27292 CONFIG_KERNEL_TRUE
='#'
27293 CONFIG_KERNEL_FALSE
=
27298 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
27299 $as_echo_n "checking whether debugging is enabled... " >&6; }
27300 # Check whether --enable-debug was given.
27301 if test "${enable_debug+set}" = set; then
27302 enableval
=$enable_debug;
27308 if test "x$enable_debug" = xyes
; then
27310 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
27311 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
27312 DEBUG_CFLAGS
="-DDEBUG -Werror"
27313 DEBUG_STACKFLAGS
="-fstack-check"
27314 DEBUG_ZFS
="_with_debug"
27316 cat >>confdefs.h
<<\_ACEOF
27317 #define ZFS_DEBUG 1
27323 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
27324 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
27325 DEBUG_CFLAGS
="-DNDEBUG"
27326 DEBUG_STACKFLAGS
=""
27327 DEBUG_ZFS
="_without_debug"
27335 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
27336 $as_echo "$enable_debug" >&6; }
27339 # Check whether --enable-debug-dmu-tx was given.
27340 if test "${enable_debug_dmu_tx+set}" = set; then
27341 enableval
=$enable_debug_dmu_tx;
27343 enable_debug_dmu_tx
=no
27347 if test "x$enable_debug_dmu_tx" = xyes
; then
27349 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
27350 DEBUG_DMU_TX
="_with_debug_dmu_tx"
27352 cat >>confdefs.h
<<\_ACEOF
27353 #define DEBUG_DMU_TX 1
27359 DEBUG_DMU_TX
="_without_debug_dmu_tx"
27365 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
27366 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
27367 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
27368 $as_echo "$enable_debug_dmu_tx" >&6; }
27371 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/man5/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/vdev_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 zfs.release dkms.conf"
27374 cat >confcache
<<\_ACEOF
27375 # This file is a shell script that caches the results of configure
27376 # tests run on this system so they can be shared between configure
27377 # scripts and configure runs, see configure's option --config-cache.
27378 # It is not useful on other systems. If it contains results you don't
27379 # want to keep, you may remove or edit it.
27381 # config.status only pays attention to the cache file if you give it
27382 # the --recheck option to rerun configure.
27384 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27386 # following values.
27390 # The following way of writing the cache mishandles newlines in values,
27391 # but we know of no workaround that is simple, portable, and efficient.
27392 # So, we kill variables containing newlines.
27393 # Ultrix sh set writes to stderr and can't be redirected directly,
27394 # and sets the high bit in the cache file unless we assign to the vars.
27396 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27397 eval ac_val
=\$
$ac_var
27401 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
27402 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27405 _ | IFS | as_nl
) ;; #(
27406 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
27407 *) $as_unset $ac_var ;;
27413 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27414 *${as_nl}ac_space
=\
*)
27415 # `set' does not quote correctly, so add quotes (double-quote
27416 # substitution turns \\\\ into \\, and sed turns \\ into \).
27419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27422 # `set' quotes correctly as required by POSIX, so do not add quotes.
27423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27436 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27437 if test -w "$cache_file"; then
27438 test "x$cache_file" != "x/dev/null" &&
27439 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
27440 $as_echo "$as_me: updating cache $cache_file" >&6;}
27441 cat confcache
>$cache_file
27443 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27449 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27450 # Let make expand exec_prefix.
27451 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27453 DEFS
=-DHAVE_CONFIG_H
27457 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27458 # 1. Remove the extension, and $U if already installed.
27459 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27460 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
27461 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27462 # will be set to the directory where LIBOBJS objects are built.
27463 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27464 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27466 LIBOBJS
=$ac_libobjs
27468 LTLIBOBJS
=$ac_ltlibobjs
27471 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27472 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27473 Usually this means the macro was only invoked conditionally." >&5
27474 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27475 Usually this means the macro was only invoked conditionally." >&2;}
27476 { (exit 1); exit 1; }; }
27478 if test -n "$EXEEXT"; then
27480 am__EXEEXT_FALSE
='#'
27482 am__EXEEXT_TRUE
='#'
27486 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27487 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27488 Usually this means the macro was only invoked conditionally." >&5
27489 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
27490 Usually this means the macro was only invoked conditionally." >&2;}
27491 { (exit 1); exit 1; }; }
27493 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27494 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27495 Usually this means the macro was only invoked conditionally." >&5
27496 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27497 Usually this means the macro was only invoked conditionally." >&2;}
27498 { (exit 1); exit 1; }; }
27500 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
27501 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
27502 Usually this means the macro was only invoked conditionally." >&5
27503 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
27504 Usually this means the macro was only invoked conditionally." >&2;}
27505 { (exit 1); exit 1; }; }
27507 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
27508 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
27509 Usually this means the macro was only invoked conditionally." >&5
27510 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
27511 Usually this means the macro was only invoked conditionally." >&2;}
27512 { (exit 1); exit 1; }; }
27514 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
27515 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
27516 Usually this means the macro was only invoked conditionally." >&5
27517 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
27518 Usually this means the macro was only invoked conditionally." >&2;}
27519 { (exit 1); exit 1; }; }
27522 : ${CONFIG_STATUS=./config.status}
27524 ac_clean_files_save
=$ac_clean_files
27525 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27526 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27527 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27528 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27530 # Generated by $as_me.
27531 # Run this file to recreate the current configuration.
27532 # Compiler output produced by configure, useful for debugging
27533 # configure, is in config.log if it exists.
27536 ac_cs_recheck=false
27538 SHELL=\${CONFIG_SHELL-$SHELL}
27541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27542 ## --------------------- ##
27543 ## M4sh Initialization. ##
27544 ## --------------------- ##
27546 # Be more Bourne compatible
27547 DUALCASE
=1; export DUALCASE
# for MKS sh
27548 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27552 # is contrary to our usage. Disable this feature.
27553 alias -g '${1+"$@"}'='"$@"'
27554 setopt NO_GLOB_SUBST
27556 case `(set -o) 2>/dev/null` in
27557 *posix
*) set -o posix
;;
27566 # Avoid depending upon Character Ranges.
27567 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27568 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27569 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27570 as_cr_digits
='0123456789'
27571 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27576 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27577 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27580 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27581 as_echo='printf %s
\n'
27582 as_echo_n='printf %s
'
27584 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27585 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27586 as_echo_n='/usr
/ucb
/echo -n'
27588 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27589 as_echo_n_body='eval
27593 expr "X$arg" : "X\\(.*\\)$as_nl";
27594 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27596 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27598 export as_echo_n_body
27599 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27601 export as_echo_body
27602 as_echo='sh
-c $as_echo_body as_echo
'
27605 # The user is always right.
27606 if test "${PATH_SEPARATOR+set}" != set; then
27608 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27609 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27614 # Support unset when possible.
27615 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27623 # We need space, tab and new line, in precisely that order. Quoting is
27624 # there to prevent editors from complaining about space-tab.
27625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27626 # splitting by setting IFS to empty value.)
27629 # Find who we are. Look in the path if we contain no directory separator.
27631 *[\\/]* ) as_myself=$0 ;;
27632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27633 for as_dir in $PATH
27636 test -z "$as_dir" && as_dir=.
27637 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27643 # We did not find ourselves, most probably we were run as `sh COMMAND'
27644 # in which case we are not to be found in the path.
27645 if test "x$as_myself" = x
; then
27648 if test ! -f "$as_myself"; then
27649 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27650 { (exit 1); exit 1; }
27653 # Work around bugs in pre-3.0 UWIN ksh.
27654 for as_var
in ENV MAIL MAILPATH
27655 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27667 # Required to use basename.
27668 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27669 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27675 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27676 as_basename
=basename
27682 # Name of the executable.
27683 as_me
=`$as_basename -- "$0" ||
27684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27685 X"$0" : 'X\(//\)$' \| \
27686 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27688 sed '/^.*\/\([^/][^/]*\)\/*$/{
27707 as_lineno_1
=$LINENO
27708 as_lineno_2
=$LINENO
27709 test "x$as_lineno_1" != "x$as_lineno_2" &&
27710 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27712 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27713 # uniformly replaced by the line number. The first 'sed' inserts a
27714 # line-number line after each line using $LINENO; the second 'sed'
27715 # does the real work. The second script uses 'N' to pair each
27716 # line-number line with the line containing $LINENO, and appends
27717 # trailing '-' during substitution so that $LINENO is not a special
27718 # case at line end.
27719 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27720 # scripts with optimization help from Paolo Bonzini. Blame Lee
27721 # E. McMahon (1931-1989) for sed's syntax. :-)
27733 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27736 ' >$as_me.lineno
&&
27737 chmod +x
"$as_me.lineno" ||
27738 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27739 { (exit 1); exit 1; }; }
27741 # Don't try to exec as it changes $[0], causing all sort of problems
27742 # (the dirname of $[0] is not the place where we might find the
27743 # original and so on. Autoconf is especially sensitive to this).
27744 .
"./$as_me.lineno"
27745 # Exit status is that of the last command.
27750 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27756 ECHO_C
= ECHO_N
= ECHO_T
=
27757 case `echo -n x` in
27759 case `echo 'x\c'` in
27760 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27766 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27767 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27773 rm -f conf$$ conf$$.exe conf$$.
file
27774 if test -d conf$$.dir
; then
27775 rm -f conf$$.dir
/conf$$.
file
27778 mkdir conf$$.dir
2>/dev
/null
27780 if (echo >conf$$.
file) 2>/dev
/null
; then
27781 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27783 # ... but there are two gotchas:
27784 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27785 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27786 # In both cases, we have to default to `cp -p'.
27787 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27789 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27797 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27798 rmdir conf$$.dir
2>/dev
/null
27800 if mkdir
-p .
2>/dev
/null
; then
27803 test -d .
/-p && rmdir .
/-p
27807 if test -x / >/dev
/null
2>&1; then
27808 as_test_x
='test -x'
27810 if ls -dL / >/dev
/null
2>&1; then
27817 if test -d "$1"; then
27823 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27824 ???[sx]*):;;*)false;;esac;fi
27828 as_executable_p
=$as_test_x
27830 # Sed expression to map a string onto a valid CPP name.
27831 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27833 # Sed expression to map a string onto a valid variable name.
27834 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27839 # Save the log message, to keep $[0] and so on meaningful, and to
27840 # report actual input values of CONFIG_FILES etc. instead of their
27841 # values after options handling.
27843 This file was extended by $as_me, which was
27844 generated by GNU Autoconf 2.63. Invocation command line was
27846 CONFIG_FILES = $CONFIG_FILES
27847 CONFIG_HEADERS = $CONFIG_HEADERS
27848 CONFIG_LINKS = $CONFIG_LINKS
27849 CONFIG_COMMANDS = $CONFIG_COMMANDS
27852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27857 case $ac_config_files in *"
27858 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
27861 case $ac_config_headers in *"
27862 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
27866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27867 # Files that config.status was made for.
27868 config_files="$ac_config_files"
27869 config_headers="$ac_config_headers"
27870 config_commands="$ac_config_commands"
27874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27876 \`$as_me' instantiates files from templates according to the
27877 current configuration.
27879 Usage: $0 [OPTION]... [FILE]...
27881 -h, --help print this help, then exit
27882 -V, --version print version number and configuration settings, then exit
27883 -q, --quiet, --silent
27884 do not print progress messages
27885 -d, --debug don't remove temporary files
27886 --recheck update $as_me by reconfiguring in the same conditions
27887 --file=FILE[:TEMPLATE]
27888 instantiate the configuration file FILE
27889 --header=FILE[:TEMPLATE]
27890 instantiate the configuration header FILE
27892 Configuration files:
27895 Configuration headers:
27898 Configuration commands:
27901 Report bugs to <bug-autoconf@gnu.org>."
27904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27907 configured by $0, generated by GNU Autoconf 2.63,
27908 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27910 Copyright (C) 2008 Free Software Foundation, Inc.
27911 This config.status script is free software; the Free Software Foundation
27912 gives unlimited permission to copy, distribute and modify it."
27919 test -n "\$AWK" || AWK=awk
27922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27923 # The default lists apply if the user does not specify any file.
27929 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27930 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27941 # Handling of the options.
27942 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27944 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27945 $as_echo "$ac_cs_version"; exit ;;
27946 --debug |
--debu |
--deb |
--de |
--d |
-d )
27948 --file |
--fil |
--fi |
--f )
27951 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27953 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27954 ac_need_defaults
=false
;;
27955 --header |
--heade |
--head |
--hea )
27958 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27960 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27961 ac_need_defaults
=false
;;
27963 # Conflict between --help and --header
27964 { $as_echo "$as_me: error: ambiguous option: $1
27965 Try \`$0 --help' for more information." >&2
27966 { (exit 1); exit 1; }; };;
27967 --help |
--hel |
-h )
27968 $as_echo "$ac_cs_usage"; exit ;;
27969 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27970 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27973 # This is an error.
27974 -*) { $as_echo "$as_me: error: unrecognized option: $1
27975 Try \`$0 --help' for more information." >&2
27976 { (exit 1); exit 1; }; } ;;
27978 *) ac_config_targets
="$ac_config_targets $1"
27979 ac_need_defaults
=false
;;
27985 ac_configure_extra_args
=
27987 if $ac_cs_silent; then
27989 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27994 if \$ac_cs_recheck; then
27995 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27997 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27998 CONFIG_SHELL='$SHELL'
27999 export CONFIG_SHELL
28004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28009 ## Running $as_me. ##
28015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28022 # The HP-UX ksh and POSIX shell print the target directory to stdout
28023 # if CDPATH is set.
28024 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28026 sed_quote_subst='$sed_quote_subst'
28027 double_quote_subst='$double_quote_subst'
28028 delay_variable_subst='$delay_variable_subst'
28029 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28030 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28031 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28032 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28033 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28034 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28035 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28036 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28037 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28038 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28039 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28040 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28041 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28042 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28043 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28044 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28045 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28046 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28047 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28048 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28049 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28050 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28051 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28052 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28053 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28054 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28055 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28056 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28057 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
28058 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28059 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28060 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28061 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28062 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28063 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28064 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28065 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28066 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28067 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28068 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28069 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28070 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28071 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28072 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28073 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"`'
28074 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"`'
28075 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28076 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28077 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28078 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28079 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28080 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28081 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28082 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28083 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28084 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28085 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
28086 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
28087 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
28088 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
28089 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
28090 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28091 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28092 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28093 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28094 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28095 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28096 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28097 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28098 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28099 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28100 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28101 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28102 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28103 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28104 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28105 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28106 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28107 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28108 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28109 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28110 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28111 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28112 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28113 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28114 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28115 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28116 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28117 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28118 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28119 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28120 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28121 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28122 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28123 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28124 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28125 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28126 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28127 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28128 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28129 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28130 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28131 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28132 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28133 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28134 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28135 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28136 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28137 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28138 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28139 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28140 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28141 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28142 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28143 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28144 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28145 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28146 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28149 LTCFLAGS='$LTCFLAGS'
28150 compiler='$compiler_DEFAULT'
28152 # Quote evaled strings.
28164 deplibs_check_method \
28173 lt_cv_sys_global_symbol_pipe \
28174 lt_cv_sys_global_symbol_to_cdecl \
28175 lt_cv_sys_global_symbol_to_c_name_address \
28176 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28179 lt_prog_compiler_no_builtin_flag \
28180 lt_prog_compiler_wl \
28181 lt_prog_compiler_pic \
28182 lt_prog_compiler_static \
28183 lt_cv_prog_compiler_c_o \
28191 export_dynamic_flag_spec \
28192 whole_archive_flag_spec \
28193 compiler_needs_object \
28195 allow_undefined_flag \
28196 no_undefined_flag \
28197 hardcode_libdir_flag_spec \
28198 hardcode_libdir_flag_spec_ld \
28199 hardcode_libdir_separator \
28204 variables_saved_for_relink \
28206 library_names_spec \
28211 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28212 *[\\\\\\\`\\"\\\$]*)
28213 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28216 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28221 # Double-quote double-evaled strings.
28222 for var in reload_cmds \
28223 old_postinstall_cmds \
28224 old_postuninstall_cmds \
28226 extract_expsyms_cmds \
28227 old_archive_from_new_cmds \
28228 old_archive_from_expsyms_cmds \
28230 archive_expsym_cmds \
28232 module_expsym_cmds \
28233 export_symbols_cmds \
28236 postuninstall_cmds \
28238 sys_lib_search_path_spec \
28239 sys_lib_dlsearch_path_spec; do
28240 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28241 *[\\\\\\\`\\"\\\$]*)
28242 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28245 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28250 # Fix-up fallback echo if it was mangled by the above quoting rules.
28252 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28256 ac_aux_dir='$ac_aux_dir'
28257 xsi_shell='$xsi_shell'
28258 lt_shell_append='$lt_shell_append'
28260 # See if we are running on zsh, and set the options which allow our
28261 # commands through without removal of \ escapes INIT.
28262 if test -n "\${ZSH_VERSION+set}" ; then
28263 setopt NO_GLOB_SUBST
28269 TIMESTAMP='$TIMESTAMP'
28278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28280 # Handling of arguments.
28281 for ac_config_target
in $ac_config_targets
28283 case $ac_config_target in
28284 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
28285 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
28286 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
28287 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
28288 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
28289 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
28290 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
28291 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
28292 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
28293 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
28294 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
28295 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
28296 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
28297 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
28298 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
28299 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
28300 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
28301 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
28302 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
28303 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
28304 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
28305 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
28306 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
28307 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
28308 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
28309 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
28310 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
28311 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
28312 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
28313 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
28314 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
28315 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
28316 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
28317 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
28318 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
28319 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
28320 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
28321 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
28322 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
28323 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
28324 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
28325 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
28326 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
28327 "cmd/zpool_layout/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
28328 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
28329 "cmd/zpool_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
28330 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
28331 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
28332 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
28333 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
28334 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
28335 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
28336 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
28337 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
28338 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
28339 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
28340 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
28341 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
28342 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
28343 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
28344 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
28345 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
28346 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
28347 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
28348 "scripts/zpool-layout/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
28349 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
28350 "zfs.spec") CONFIG_FILES
="$CONFIG_FILES zfs.spec" ;;
28351 "zfs-modules.spec") CONFIG_FILES
="$CONFIG_FILES zfs-modules.spec" ;;
28352 "PKGBUILD-zfs") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs" ;;
28353 "PKGBUILD-zfs-modules") CONFIG_FILES
="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
28354 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
28355 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
28356 "dkms.conf") CONFIG_FILES
="$CONFIG_FILES dkms.conf" ;;
28358 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28359 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28360 { (exit 1); exit 1; }; };;
28365 # If the user did not use the arguments to specify the items to instantiate,
28366 # then the envvar interface is used. Set only those that are not.
28367 # We use the long form for the default assignment because of an extremely
28368 # bizarre bug on SunOS 4.1.3.
28369 if $ac_need_defaults; then
28370 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28371 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28372 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28375 # Have a temporary directory for convenience. Make it in the build tree
28376 # simply because there is no reason against having it here, and in addition,
28377 # creating and moving files from /tmp can sometimes cause problems.
28378 # Hook for its removal unless debugging.
28379 # Note that there is a small window in which the directory will not be cleaned:
28380 # after its creation but before its name has been assigned to `$tmp'.
28384 trap 'exit_status=$?
28385 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28387 trap '{ (exit 1); exit 1; }' 1 2 13 15
28389 # Create a (secure) tmp directory for tmp files.
28392 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28393 test -n "$tmp" && test -d "$tmp"
28396 tmp
=.
/conf$$
-$RANDOM
28397 (umask 077 && mkdir
"$tmp")
28400 $as_echo "$as_me: cannot create a temporary directory in ." >&2
28401 { (exit 1); exit 1; }
28404 # Set up the scripts for CONFIG_FILES section.
28405 # No need to generate them if there are no CONFIG_FILES.
28406 # This happens for instance with `./config.status config.h'.
28407 if test -n "$CONFIG_FILES"; then
28411 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28412 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28415 ac_cs_awk_cr
=$ac_cr
28418 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28423 echo "cat >conf$$subs.awk <<_ACEOF" &&
28424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28426 } >conf$$subs.sh ||
28427 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28428 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28429 { (exit 1); exit 1; }; }
28430 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28432 for ac_last_try in false false false false false :; do
28433 . ./conf$$subs.sh ||
28434 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28435 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28436 { (exit 1); exit 1; }; }
28438 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28439 if test $ac_delim_n = $ac_delim_num; then
28441 elif $ac_last_try; then
28442 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
28443 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
28444 { (exit 1); exit 1; }; }
28446 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28449 rm -f conf$$subs.sh
28451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28452 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
28456 s/^/S["/; s
/!.
*/"]=/
28466 s/\(.\{148\}\).*/\1/
28468 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
28473 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28480 s/\(.\{148\}\).*/\1/
28482 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
28486 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
28491 ' <conf$$subs.awk | sed '
28496 ' >>$CONFIG_STATUS || ac_write_fail=1
28497 rm -f conf$$subs.awk
28498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28500 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
28501 for (key in S) S_is_set[key] = 1
28507 nfields = split(line, field, "@
")
28509 len = length(field[1])
28510 for (i = 2; i < nfields; i++) {
28512 keylen = length(key)
28513 if (S_is_set[key]) {
28515 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28516 len += length(value) + length(field[++i])
28527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28528 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28529 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
28532 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
28533 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
28534 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
28535 { (exit 1); exit 1; }; }
28538 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28539 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
28540 # trailing colons and then remove the whole line if VPATH becomes empty
28541 # (actually we leave an empty line to preserve line numbers).
28542 if test "x
$srcdir" = x.; then
28543 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28544 s/:*\$(srcdir):*/:/
28545 s/:*\${srcdir}:*/:/
28547 s/^\([^=]*=[ ]*\):*/\1/
28553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28554 fi # test -n "$CONFIG_FILES"
28556 # Set up the scripts for CONFIG_HEADERS section.
28557 # No need to generate them if there are no CONFIG_HEADERS.
28558 # This happens for instance with `./config.status Makefile'.
28559 if test -n "$CONFIG_HEADERS"; then
28560 cat >"$tmp/defines.
awk" <<\_ACAWK ||
28564 # Transform confdefs.h into an awk script `defines.awk', embedded as
28565 # here-document in config.status, that substitutes the proper values into
28566 # config.h.in to produce config.h.
28568 # Create a delimiter string that does not exist in confdefs.h, to ease
28569 # handling of long lines.
28571 for ac_last_try in false false :; do
28572 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
28573 if test -z "$ac_t"; then
28575 elif $ac_last_try; then
28576 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
28577 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
28578 { (exit 1); exit 1; }; }
28580 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
28584 # For the awk script, D is an array of macro values keyed by name,
28585 # likewise P contains macro parameters if any. Preserve backslash
28586 # newline sequences.
28588 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28590 s/.\{148\}/&'"$ac_delim"'/g
28593 s/^[ ]*#[ ]*define[ ][ ]*/ /
28600 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
28602 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
28606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
28607 D["\
1"]=" \
3\\\\\\n
"\\/p
28609 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
28614 s/.\{148\}/&'"$ac_delim"'/g
28619 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
28622 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
28624 ' <confdefs.h | sed '
28625 s/'"$ac_delim"'/"\\\
28626 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28629 for (key in D) D_is_set[key] = 1
28632 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28634 split(line, arg, " ")
28635 if (arg[1] == "#") {
28639 defundef
= substr
(arg
[1], 2)
28642 split(mac1
, mac2
, "(") #)
28644 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
28645 if (D_is_set
[macro
]) {
28646 # Preserve the white space surrounding the "#".
28647 print prefix
"define", macro P
[macro
] D
[macro
]
28650 # Replace #undef with comments. This is necessary, for example,
28651 # in the case of _POSIX_SOURCE, which is predefined and required
28652 # on some systems where configure will not decide to define it.
28653 if (defundef
== "undef") {
28654 print
"/*", prefix defundef
, macro
, "*/"
28662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28663 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
28664 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
28665 { (exit 1); exit 1; }; }
28666 fi # test -n "$CONFIG_HEADERS"
28669 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28674 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28676 case $ac_mode$ac_tag in
28678 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
28679 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
28680 { (exit 1); exit 1; }; };;
28681 :[FH
]-) ac_tag
=-:-;;
28682 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28699 -) ac_f
="$tmp/stdin";;
28700 *) # Look for the file first in the build tree, then in the source tree
28701 # (if the path is not absolute). The absolute path cannot be DOS-style,
28702 # because $ac_f cannot contain `:'.
28706 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28708 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28709 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28710 { (exit 1); exit 1; }; };;
28712 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28713 ac_file_inputs
="$ac_file_inputs '$ac_f'"
28716 # Let's still pretend it is `configure' which instantiates (i.e., don't
28717 # use $as_me), people would be surprised to read:
28718 # /* config.h. Generated by config.status. */
28719 configure_input
='Generated from '`
28720 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28722 if test x
"$ac_file" != x-
; then
28723 configure_input
="$ac_file. $configure_input"
28724 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
28725 $as_echo "$as_me: creating $ac_file" >&6;}
28727 # Neutralize special characters interpreted by sed in replacement strings.
28728 case $configure_input in #(
28729 *\
&* |
*\|
* |
*\\* )
28730 ac_sed_conf_input
=`$as_echo "$configure_input" |
28731 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28732 *) ac_sed_conf_input
=$configure_input;;
28736 *:-:* |
*:-) cat >"$tmp/stdin" \
28737 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28738 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28739 { (exit 1); exit 1; }; } ;;
28744 ac_dir
=`$as_dirname -- "$ac_file" ||
28745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28746 X"$ac_file" : 'X\(//\)[^/]' \| \
28747 X"$ac_file" : 'X\(//\)$' \| \
28748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28749 $as_echo X"$ac_file" |
28750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28754 /^X\(\/\/\)[^/].*/{
28769 -*) as_dir
=.
/$as_dir;;
28771 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28775 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28776 *) as_qdir
=$as_dir;;
28778 as_dirs
="'$as_qdir' $as_dirs"
28779 as_dir
=`$as_dirname -- "$as_dir" ||
28780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28781 X"$as_dir" : 'X\(//\)[^/]' \| \
28782 X"$as_dir" : 'X\(//\)$' \| \
28783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28784 $as_echo X"$as_dir" |
28785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28789 /^X\(\/\/\)[^/].*/{
28802 test -d "$as_dir" && break
28804 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28805 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28806 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
28807 { (exit 1); exit 1; }; }; }
28811 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28813 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28814 # A ".." for each directory in $ac_dir_suffix.
28815 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28816 case $ac_top_builddir_sub in
28817 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28818 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28821 ac_abs_top_builddir
=$ac_pwd
28822 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28823 # for backward compatibility:
28824 ac_top_builddir
=$ac_top_build_prefix
28827 .
) # We are building in place.
28829 ac_top_srcdir
=$ac_top_builddir_sub
28830 ac_abs_top_srcdir
=$ac_pwd ;;
28831 [\\/]* | ?
:[\\/]* ) # Absolute name.
28832 ac_srcdir
=$srcdir$ac_dir_suffix;
28833 ac_top_srcdir
=$srcdir
28834 ac_abs_top_srcdir
=$srcdir ;;
28835 *) # Relative name.
28836 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28837 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28838 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28840 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28850 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28851 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28853 ac_MKDIR_P
=$MKDIR_P
28855 [\\/$
]* | ?
:[\\/]* ) ;;
28856 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
28860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28861 # If the template does not know about datarootdir, expand it.
28862 # FIXME: This hack should be removed a few years after 2.60.
28863 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28876 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28877 *datarootdir
*) ac_datarootdir_seen
=yes;;
28878 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28879 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28880 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28883 ac_datarootdir_hack='
28884 s&@datadir@&$datadir&g
28885 s&@docdir@&$docdir&g
28886 s&@infodir@&$infodir&g
28887 s&@localedir@&$localedir&g
28888 s&@mandir@&$mandir&g
28889 s&\\\${datarootdir}&$datarootdir&g' ;;
28893 # Neutralize VPATH when `$srcdir' = `.'.
28894 # Shell code in configure.ac might set extrasub.
28895 # FIXME: do we really want to maintain this feature?
28896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28897 ac_sed_extra="$ac_vpsub
28900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28902 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28903 s|@configure_input@|
$ac_sed_conf_input|
;t t
28904 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28905 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28906 s
&@srcdir@
&$ac_srcdir&;t t
28907 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28908 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28909 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28910 s
&@builddir@
&$ac_builddir&;t t
28911 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28912 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28913 s
&@INSTALL@
&$ac_INSTALL&;t t
28914 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
28915 $ac_datarootdir_hack
28917 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
28918 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28919 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28920 { (exit 1); exit 1; }; }
28922 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28923 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28925 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28926 which seems to be undefined. Please make sure it is defined." >&5
28927 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28928 which seems to be undefined. Please make sure it is defined." >&2;}
28932 -) cat "$tmp/out" && rm -f "$tmp/out";;
28933 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28935 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28936 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28937 { (exit 1); exit 1; }; }
28943 if test x"$ac_file" != x-; then
28945 $as_echo "/* $configure_input */" \
28946 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28947 } >"$tmp/config.h" \
28948 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28949 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28950 { (exit 1); exit 1; }; }
28951 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28952 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28953 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28956 mv "$tmp/config.h" "$ac_file" \
28957 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28958 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28959 { (exit 1); exit 1; }; }
28962 $as_echo "/* $configure_input */" \
28963 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28964 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28965 $as_echo "$as_me: error: could not create -" >&2;}
28966 { (exit 1); exit 1; }; }
28968 # Compute "$ac_file"'s index
in $config_headers.
28971 for _am_header
in $config_headers :; do
28972 case $_am_header in
28973 $_am_arg |
$_am_arg:* )
28976 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
28979 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28980 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28981 X"$_am_arg" : 'X\(//\)[^/]' \| \
28982 X"$_am_arg" : 'X\(//\)$' \| \
28983 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28984 $as_echo X"$_am_arg" |
28985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28989 /^X\(\/\/\)[^/].*/{
29001 s/.*/./; q'`/stamp-h
$_am_stamp_count
29004 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29005 $as_echo "$as_me: executing $ac_file commands" >&6;}
29010 case $ac_file$ac_mode in
29012 (mv zfs_config.h zfs_config.h.tmp
&&
29013 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
29014 rm zfs_config.h.tmp
) ||
exit 1 ;;
29015 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
29016 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29017 # are listed without --file. Let's play safe and only enable the eval
29018 # if we detect the quoting.
29019 case $CONFIG_FILES in
29020 *\'*) eval set x
"$CONFIG_FILES" ;;
29021 *) set x
$CONFIG_FILES ;;
29026 # Strip MF so we end up with the name of the file.
29027 mf
=`echo "$mf" | sed -e 's/:.*$//'`
29028 # Check whether this is an Automake generated Makefile or not.
29029 # We used to match only the files named `Makefile.in', but
29030 # some people rename them; so instead we look at the file content.
29031 # Grep'ing the first line is not enough: some people post-process
29032 # each Makefile.in and add a new line on top of each file to say so.
29033 # Grep'ing the whole file is not good either: AIX grep has a line
29034 # limit of 2048, but all sed's we know have understand at least 4000.
29035 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
29036 dirpart
=`$as_dirname -- "$mf" ||
29037 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29038 X"$mf" : 'X\(//\)[^/]' \| \
29039 X"$mf" : 'X\(//\)$' \| \
29040 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29046 /^X\(\/\/\)[^/].*/{
29062 # Extract the definition of DEPDIR, am__include, and am__quote
29063 # from the Makefile without running `make'.
29064 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
29065 test -z "$DEPDIR" && continue
29066 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
29067 test -z "am__include" && continue
29068 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
29069 # When using ansi2knr, U may be empty or an underscore; expand it
29070 U
=`sed -n 's/^U = //p' < "$mf"`
29071 # Find all dependency output files, they are included files with
29072 # $(DEPDIR) in their names. We invoke sed twice because it is the
29073 # simplest approach to changing $(DEPDIR) to its actual value in the
29075 for file in `sed -n "
29076 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29077 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29078 # Make sure the directory exists.
29079 test -f "$dirpart/$file" && continue
29080 fdir
=`$as_dirname -- "$file" ||
29081 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29082 X"$file" : 'X\(//\)[^/]' \| \
29083 X"$file" : 'X\(//\)$' \| \
29084 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29085 $as_echo X"$file" |
29086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29090 /^X\(\/\/\)[^/].*/{
29103 { as_dir
=$dirpart/$fdir
29105 -*) as_dir
=.
/$as_dir;;
29107 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
29111 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29112 *) as_qdir
=$as_dir;;
29114 as_dirs
="'$as_qdir' $as_dirs"
29115 as_dir
=`$as_dirname -- "$as_dir" ||
29116 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29117 X"$as_dir" : 'X\(//\)[^/]' \| \
29118 X"$as_dir" : 'X\(//\)$' \| \
29119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29120 $as_echo X"$as_dir" |
29121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29125 /^X\(\/\/\)[^/].*/{
29138 test -d "$as_dir" && break
29140 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29141 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29142 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29143 { (exit 1); exit 1; }; }; }
29144 # echo "creating $dirpart/$file"
29145 echo '# dummy' > "$dirpart/$file"
29152 # See if we are running on zsh, and set the options which allow our
29153 # commands through without removal of \ escapes.
29154 if test -n "${ZSH_VERSION+set}" ; then
29155 setopt NO_GLOB_SUBST
29158 cfgfile
="${ofile}T"
29159 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29162 cat <<_LT_EOF >> "$cfgfile"
29165 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29166 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29168 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29170 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29171 # 2006, 2007, 2008 Free Software Foundation, Inc.
29172 # Written by Gordon Matzigkeit, 1996
29174 # This file is part of GNU Libtool.
29176 # GNU Libtool is free software; you can redistribute it and/or
29177 # modify it under the terms of the GNU General Public License as
29178 # published by the Free Software Foundation; either version 2 of
29179 # the License, or (at your option) any later version.
29181 # As a special exception to the GNU General Public License,
29182 # if you distribute this file as part of a program or library that
29183 # is built using GNU Libtool, you may include this file under the
29184 # same distribution terms that you use for the rest of that program.
29186 # GNU Libtool is distributed in the hope that it will be useful,
29187 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29188 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29189 # GNU General Public License for more details.
29191 # You should have received a copy of the GNU General Public License
29192 # along with GNU Libtool; see the file COPYING. If not, a copy
29193 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29194 # obtained by writing to the Free Software Foundation, Inc.,
29195 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29198 # The names of the tagged configurations supported by this script.
29201 # ### BEGIN LIBTOOL CONFIG
29203 # Which release of libtool.m4 was used?
29204 macro_version=$macro_version
29205 macro_revision=$macro_revision
29207 # Whether or not to build shared libraries.
29208 build_libtool_libs=$enable_shared
29210 # Whether or not to build static libraries.
29211 build_old_libs=$enable_static
29213 # What type of objects to build.
29216 # Whether or not to optimize for fast installation.
29217 fast_install=$enable_fast_install
29220 host_alias=$host_alias
29224 # The build system.
29225 build_alias=$build_alias
29229 # A sed program that does not truncate output.
29232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29233 Xsed="\$SED -e 1s/^X//"
29235 # A grep program that handles long lines.
29241 # A literal string matcher.
29244 # A BSD- or MS-compatible name lister.
29247 # Whether we need soft or hard links.
29250 # What is the maximum length of a command?
29251 max_cmd_len=$max_cmd_len
29253 # Object file suffix (normally "o").
29256 # Executable file suffix (normally "").
29259 # whether the shell understands "unset".
29262 # turn spaces into newlines.
29265 # turn newlines into spaces.
29268 # How to create reloadable object files.
29269 reload_flag=$lt_reload_flag
29270 reload_cmds=$lt_reload_cmds
29272 # An object symbol dumper.
29273 OBJDUMP=$lt_OBJDUMP
29275 # Method to check whether dependent libraries are shared objects.
29276 deplibs_check_method=$lt_deplibs_check_method
29278 # Command to use when deplibs_check_method == "file_magic".
29279 file_magic_cmd=$lt_file_magic_cmd
29283 AR_FLAGS=$lt_AR_FLAGS
29285 # A symbol stripping program.
29288 # Commands used to install an old-style archive.
29290 old_postinstall_cmds=$lt_old_postinstall_cmds
29291 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29296 # LTCC compiler flags.
29297 LTCFLAGS=$lt_CFLAGS
29299 # Take the output of nm and produce a listing of raw symbols and C names.
29300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29302 # Transform the output of nm in a proper C declaration.
29303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29305 # Transform the output of nm in a C name address pair.
29306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29308 # Transform the output of nm in a C name address pair when lib prefix is needed.
29309 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29311 # The name of the directory that contains temporary libtool files.
29314 # Shell to use when invoking shell scripts.
29317 # An echo program that does not interpret backslashes.
29320 # Used to examine libraries when file_magic_cmd begins with "file".
29321 MAGIC_CMD=$MAGIC_CMD
29323 # Must we lock files when doing compilation?
29324 need_locks=$lt_need_locks
29326 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29327 DSYMUTIL=$lt_DSYMUTIL
29329 # Tool to change global to local symbols on Mac OS X.
29332 # Tool to manipulate fat objects and archives on Mac OS X.
29335 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29338 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29339 OTOOL64=$lt_OTOOL64
29341 # Old archive suffix (normally "a").
29344 # Shared library suffix (normally ".so").
29345 shrext_cmds=$lt_shrext_cmds
29347 # The commands to extract the exported symbol list from a shared archive.
29348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29350 # Variables whose values should be saved in libtool wrapper scripts and
29351 # restored at link time.
29352 variables_saved_for_relink=$lt_variables_saved_for_relink
29354 # Do we need the "lib" prefix for modules?
29355 need_lib_prefix=$need_lib_prefix
29357 # Do we need a version for libraries?
29358 need_version=$need_version
29360 # Library versioning type.
29361 version_type=$version_type
29363 # Shared library runtime path variable.
29364 runpath_var=$runpath_var
29366 # Shared library path variable.
29367 shlibpath_var=$shlibpath_var
29369 # Is shlibpath searched before the hard-coded library search path?
29370 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29372 # Format of library name prefix.
29373 libname_spec=$lt_libname_spec
29375 # List of archive names. First name is the real one, the rest are links.
29376 # The last name is the one that the linker finds with -lNAME
29377 library_names_spec=$lt_library_names_spec
29379 # The coded name of the library, if different from the real name.
29380 soname_spec=$lt_soname_spec
29382 # Command to use after installation of a shared archive.
29383 postinstall_cmds=$lt_postinstall_cmds
29385 # Command to use after uninstallation of a shared archive.
29386 postuninstall_cmds=$lt_postuninstall_cmds
29388 # Commands used to finish a libtool library installation in a directory.
29389 finish_cmds=$lt_finish_cmds
29391 # As "finish_cmds", except a single script fragment to be evaled but
29393 finish_eval=$lt_finish_eval
29395 # Whether we should hardcode library paths into libraries.
29396 hardcode_into_libs=$hardcode_into_libs
29398 # Compile-time system search path for libraries.
29399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29401 # Run-time system search path for libraries.
29402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29404 # Whether dlopen is supported.
29405 dlopen_support=$enable_dlopen
29407 # Whether dlopen of programs is supported.
29408 dlopen_self=$enable_dlopen_self
29410 # Whether dlopen of statically linked programs is supported.
29411 dlopen_self_static=$enable_dlopen_self_static
29413 # Commands to strip libraries.
29414 old_striplib=$lt_old_striplib
29415 striplib=$lt_striplib
29418 # The linker used to build libraries.
29421 # Commands used to build an old-style archive.
29422 old_archive_cmds=$lt_old_archive_cmds
29424 # A language specific compiler.
29427 # Is the compiler the GNU compiler?
29430 # Compiler flag to turn off builtin functions.
29431 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29433 # How to pass a linker flag through the compiler.
29434 wl=$lt_lt_prog_compiler_wl
29436 # Additional compiler flags for building library objects.
29437 pic_flag=$lt_lt_prog_compiler_pic
29439 # Compiler flag to prevent dynamic linking.
29440 link_static_flag=$lt_lt_prog_compiler_static
29442 # Does compiler simultaneously support -c and -o options?
29443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29445 # Whether or not to add -lc for building shared libraries.
29446 build_libtool_need_lc=$archive_cmds_need_lc
29448 # Whether or not to disallow shared libs when runtime libs are static.
29449 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29451 # Compiler flag to allow reflexive dlopens.
29452 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29454 # Compiler flag to generate shared objects directly from archives.
29455 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29457 # Whether the compiler copes with passing no objects directly.
29458 compiler_needs_object=$lt_compiler_needs_object
29460 # Create an old-style archive from a shared archive.
29461 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29463 # Create a temporary old-style archive to link instead of a shared archive.
29464 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29466 # Commands used to build a shared archive.
29467 archive_cmds=$lt_archive_cmds
29468 archive_expsym_cmds=$lt_archive_expsym_cmds
29470 # Commands used to build a loadable module if different from building
29471 # a shared archive.
29472 module_cmds=$lt_module_cmds
29473 module_expsym_cmds=$lt_module_expsym_cmds
29475 # Whether we are building with GNU ld or not.
29476 with_gnu_ld=$lt_with_gnu_ld
29478 # Flag that allows shared libraries with undefined symbols to be built.
29479 allow_undefined_flag=$lt_allow_undefined_flag
29481 # Flag that enforces no undefined symbols.
29482 no_undefined_flag=$lt_no_undefined_flag
29484 # Flag to hardcode \$libdir into a binary during linking.
29485 # This must work even if \$libdir does not exist
29486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29488 # If ld is used when linking, flag to hardcode \$libdir into a binary
29489 # during linking. This must work even if \$libdir does not exist.
29490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
29492 # Whether we need a single "-rpath" flag with a separated argument.
29493 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29495 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29496 # DIR into the resulting binary.
29497 hardcode_direct=$hardcode_direct
29499 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29500 # DIR into the resulting binary and the resulting library dependency is
29501 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29502 # library is relocated.
29503 hardcode_direct_absolute=$hardcode_direct_absolute
29505 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29506 # into the resulting binary.
29507 hardcode_minus_L=$hardcode_minus_L
29509 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29510 # into the resulting binary.
29511 hardcode_shlibpath_var=$hardcode_shlibpath_var
29513 # Set to "yes" if building a shared library automatically hardcodes DIR
29514 # into the library and all subsequent libraries and executables linked
29516 hardcode_automatic=$hardcode_automatic
29518 # Set to yes if linker adds runtime paths of dependent libraries
29519 # to runtime path list.
29520 inherit_rpath=$inherit_rpath
29522 # Whether libtool must link a program against all its dependency libraries.
29523 link_all_deplibs=$link_all_deplibs
29525 # Fix the shell variable \$srcfile for the compiler.
29526 fix_srcfile_path=$lt_fix_srcfile_path
29528 # Set to "yes" if exported symbols are required.
29529 always_export_symbols=$always_export_symbols
29531 # The commands to list exported symbols.
29532 export_symbols_cmds=$lt_export_symbols_cmds
29534 # Symbols that should not be listed in the preloaded symbols.
29535 exclude_expsyms=$lt_exclude_expsyms
29537 # Symbols that must always be exported.
29538 include_expsyms=$lt_include_expsyms
29540 # Commands necessary for linking programs (against libraries) with templates.
29541 prelink_cmds=$lt_prelink_cmds
29543 # Specify filename containing input files.
29544 file_list_spec=$lt_file_list_spec
29546 # How to hardcode a shared library path into an executable.
29547 hardcode_action=$hardcode_action
29549 # ### END LIBTOOL CONFIG
29555 cat <<\_LT_EOF
>> "$cfgfile"
29556 # AIX sometimes has problems with the GCC collect2 program. For some
29557 # reason, if we set the COLLECT_NAMES environment variable, the problems
29558 # vanish in a puff of smoke.
29559 if test "X${COLLECT_NAMES+set}" != Xset
; then
29561 export COLLECT_NAMES
29568 ltmain
="$ac_aux_dir/ltmain.sh"
29571 # We use sed instead of cat because bash on DJGPP gets confused if
29572 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29573 # text mode, it properly converts lines to CR/LF. This bash problem
29574 # is reportedly fixed, but why not run on old versions too?
29575 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
29576 ||
(rm -f "$cfgfile"; exit 1)
29580 cat << \_LT_EOF
>> "$cfgfile"
29582 # func_dirname file append nondir_replacement
29583 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29584 # otherwise set result to NONDIR_REPLACEMENT.
29588 */*) func_dirname_result
="${1%/*}${2}" ;;
29589 * ) func_dirname_result
="${3}" ;;
29593 # func_basename file
29596 func_basename_result
="${1##*/}"
29599 # func_dirname_and_basename file append nondir_replacement
29600 # perform func_basename and func_dirname in a single function
29602 # dirname: Compute the dirname of FILE. If nonempty,
29603 # add APPEND to the result, otherwise set result
29604 # to NONDIR_REPLACEMENT.
29605 # value returned in "$func_dirname_result"
29606 # basename: Compute filename of FILE.
29607 # value retuned in "$func_basename_result"
29608 # Implementation must be kept synchronized with func_dirname
29609 # and func_basename. For efficiency, we do not delegate to
29610 # those functions but instead duplicate the functionality here.
29611 func_dirname_and_basename
()
29614 */*) func_dirname_result
="${1%/*}${2}" ;;
29615 * ) func_dirname_result
="${3}" ;;
29617 func_basename_result
="${1##*/}"
29620 # func_stripname prefix suffix name
29621 # strip PREFIX and SUFFIX off of NAME.
29622 # PREFIX and SUFFIX must not contain globbing or regex special
29623 # characters, hashes, percent signs, but SUFFIX may contain a leading
29624 # dot (in which case that matches only a dot).
29627 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29628 # positional parameters, so assign one to ordinary parameter first.
29629 func_stripname_result
=${3}
29630 func_stripname_result
=${func_stripname_result#"${1}"}
29631 func_stripname_result
=${func_stripname_result%"${2}"}
29637 func_opt_split_opt
=${1%%=*}
29638 func_opt_split_arg
=${1#*=}
29645 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
29646 *) func_lo2o_result
=${1} ;;
29650 # func_xform libobj-or-source
29653 func_xform_result
=${1%.*}.lo
29656 # func_arith arithmetic-term...
29659 func_arith_result
=$
(( $
* ))
29663 # STRING may not start with a hyphen.
29666 func_len_result
=${#1}
29671 *) # Bourne compatible functions.
29672 cat << \_LT_EOF
>> "$cfgfile"
29674 # func_dirname file append nondir_replacement
29675 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29676 # otherwise set result to NONDIR_REPLACEMENT.
29679 # Extract subdirectory from the argument.
29680 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
29681 if test "X$func_dirname_result" = "X${1}"; then
29682 func_dirname_result
="${3}"
29684 func_dirname_result
="$func_dirname_result${2}"
29688 # func_basename file
29691 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
29695 # func_stripname prefix suffix name
29696 # strip PREFIX and SUFFIX off of NAME.
29697 # PREFIX and SUFFIX must not contain globbing or regex special
29698 # characters, hashes, percent signs, but SUFFIX may contain a leading
29699 # dot (in which case that matches only a dot).
29700 # func_strip_suffix prefix name
29704 .
*) func_stripname_result
=`$ECHO "X${3}" \
29705 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
29706 *) func_stripname_result
=`$ECHO "X${3}" \
29707 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
29712 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
29713 my_sed_long_arg
='1s/^-[^=]*=//'
29718 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
29719 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
29725 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
29728 # func_xform libobj-or-source
29731 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
29734 # func_arith arithmetic-term...
29737 func_arith_result
=`expr "$@"`
29741 # STRING may not start with a hyphen.
29744 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29750 case $lt_shell_append in
29752 cat << \_LT_EOF
>> "$cfgfile"
29754 # func_append var value
29755 # Append VALUE to the end of shell variable VAR.
29763 cat << \_LT_EOF
>> "$cfgfile"
29765 # func_append var value
29766 # Append VALUE to the end of shell variable VAR.
29777 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29778 ||
(rm -f "$cfgfile"; exit 1)
29780 mv -f "$cfgfile" "$ofile" ||
29781 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29790 { (exit 0); exit 0; }
29792 chmod +x
$CONFIG_STATUS
29793 ac_clean_files
=$ac_clean_files_save
29795 test $ac_write_fail = 0 ||
29796 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29797 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29798 { (exit 1); exit 1; }; }
29801 # configure is writing to config.log, and then calls config.status.
29802 # config.status does its own redirection, appending to config.log.
29803 # Unfortunately, on DOS this fails, as config.log is still kept open
29804 # by configure, so config.status won't be able to write to it; its
29805 # output is simply discarded. So we exec the FD to /dev/null,
29806 # effectively closing config.log, so it can be properly (re)opened and
29807 # appended to by config.status. When coming back to configure, we
29808 # need to make the FD available again.
29809 if test "$no_create" != yes; then
29811 ac_config_status_args
=
29812 test "$silent" = yes &&
29813 ac_config_status_args
="$ac_config_status_args --quiet"
29815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29818 # would make configure fail if this is the last instruction.
29819 $ac_cs_success ||
{ (exit 1); exit 1; }
29821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29822 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}