2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for zfs 0.7.6.
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.
745 PACKAGE_TARNAME
='zfs'
746 PACKAGE_VERSION
='0.7.6'
747 PACKAGE_STRING
='zfs 0.7.6'
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
795 WANT_DEVNAME2DEVID_FALSE
796 WANT_DEVNAME2DEVID_TRUE
836 TARGET_ASM_GENERIC_FALSE
837 TARGET_ASM_GENERIC_TRUE
838 TARGET_ASM_I386_FALSE
840 TARGET_ASM_X86_64_FALSE
841 TARGET_ASM_X86_64_TRUE
844 NO_UNUSED_BUT_SET_VARIABLE
876 am__fastdepCCAS_FALSE
924 INSTALL_STRIP_PROGRAM
942 MAINTAINER_MODE_FALSE
995 program_transform_name
1007 enable_option_checking
1008 enable_maintainer_mode
1010 enable_dependency_tracking
1019 enable_linux_builtin
1032 with_systemdpresetdir
1033 with_systemdmodulesloaddir
1039 ac_precious_vars
='build_alias
1052 # Initialize some variables set by options.
1054 ac_init_version
=false
1055 ac_unrecognized_opts
=
1056 ac_unrecognized_sep
=
1057 # The variables have the same names as the options, with
1058 # dashes changed to underlines.
1059 cache_file
=/dev
/null
1066 program_transform_name
=s
,x
,x
,
1074 # Installation directory options.
1075 # These are left unexpanded so users can "make install exec_prefix=/foo"
1076 # and all the variables that are supposed to be based on exec_prefix
1077 # by default will actually change.
1078 # Use braces instead of parens because sh, perl, etc. also accept them.
1079 # (The list follows the same order as the GNU Coding Standards.)
1080 bindir
='${exec_prefix}/bin'
1081 sbindir
='${exec_prefix}/sbin'
1082 libexecdir
='${exec_prefix}/libexec'
1083 datarootdir
='${prefix}/share'
1084 datadir
='${datarootdir}'
1085 sysconfdir
='${prefix}/etc'
1086 sharedstatedir
='${prefix}/com'
1087 localstatedir
='${prefix}/var'
1088 includedir
='${prefix}/include'
1089 oldincludedir
='/usr/include'
1090 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1091 infodir
='${datarootdir}/info'
1096 libdir
='${exec_prefix}/lib'
1097 localedir
='${datarootdir}/locale'
1098 mandir
='${datarootdir}/man'
1104 # If the previous option needs an argument, assign it.
1105 if test -n "$ac_prev"; then
1106 eval $ac_prev=\
$ac_option
1112 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1118 case $ac_dashdash$ac_option in
1122 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1124 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1125 bindir
=$ac_optarg ;;
1127 -build |
--build |
--buil |
--bui |
--bu)
1128 ac_prev
=build_alias
;;
1129 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1130 build_alias
=$ac_optarg ;;
1132 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1133 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1134 ac_prev
=cache_file
;;
1135 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1136 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1137 cache_file
=$ac_optarg ;;
1139 --config-cache |
-C)
1140 cache_file
=config.cache
;;
1142 -datadir |
--datadir |
--datadi |
--datad)
1144 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1145 datadir
=$ac_optarg ;;
1147 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1148 |
--dataroo |
--dataro |
--datar)
1149 ac_prev
=datarootdir
;;
1150 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1151 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1152 datarootdir
=$ac_optarg ;;
1154 -disable-* |
--disable-*)
1155 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig
=$ac_useropt
1161 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "enable_
$ac_useropt"
1166 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1167 ac_unrecognized_sep
=', ';;
1169 eval enable_
$ac_useropt=no
;;
1171 -docdir |
--docdir |
--docdi |
--doc |
--do)
1173 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1174 docdir
=$ac_optarg ;;
1176 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1178 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1179 dvidir
=$ac_optarg ;;
1181 -enable-* |
--enable-*)
1182 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1185 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1186 { (exit 1); exit 1; }; }
1187 ac_useropt_orig
=$ac_useropt
1188 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "enable_
$ac_useropt"
1193 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1194 ac_unrecognized_sep
=', ';;
1196 eval enable_
$ac_useropt=\
$ac_optarg ;;
1198 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1199 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1200 |
--exec |
--exe |
--ex)
1201 ac_prev
=exec_prefix
;;
1202 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1203 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1204 |
--exec=* |
--exe=* |
--ex=*)
1205 exec_prefix
=$ac_optarg ;;
1207 -gas |
--gas |
--ga |
--g)
1208 # Obsolete; use --with-gas.
1211 -help |
--help |
--hel |
--he |
-h)
1212 ac_init_help
=long
;;
1213 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1214 ac_init_help
=recursive
;;
1215 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1216 ac_init_help
=short
;;
1218 -host |
--host |
--hos |
--ho)
1219 ac_prev
=host_alias
;;
1220 -host=* |
--host=* |
--hos=* |
--ho=*)
1221 host_alias
=$ac_optarg ;;
1223 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1225 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1227 htmldir
=$ac_optarg ;;
1229 -includedir |
--includedir |
--includedi |
--included |
--include \
1230 |
--includ |
--inclu |
--incl |
--inc)
1231 ac_prev
=includedir
;;
1232 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1233 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1234 includedir
=$ac_optarg ;;
1236 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1238 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1239 infodir
=$ac_optarg ;;
1241 -libdir |
--libdir |
--libdi |
--libd)
1243 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1244 libdir
=$ac_optarg ;;
1246 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1247 |
--libexe |
--libex |
--libe)
1248 ac_prev
=libexecdir
;;
1249 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1250 |
--libexe=* |
--libex=* |
--libe=*)
1251 libexecdir
=$ac_optarg ;;
1253 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1254 ac_prev
=localedir
;;
1255 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1256 localedir
=$ac_optarg ;;
1258 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1259 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1260 ac_prev
=localstatedir
;;
1261 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1262 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1263 localstatedir
=$ac_optarg ;;
1265 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1267 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1268 mandir
=$ac_optarg ;;
1270 -nfp |
--nfp |
--nf)
1271 # Obsolete; use --without-fp.
1274 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1275 |
--no-cr |
--no-c |
-n)
1278 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1279 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1282 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1283 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1284 |
--oldin |
--oldi |
--old |
--ol |
--o)
1285 ac_prev
=oldincludedir
;;
1286 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1287 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1288 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1289 oldincludedir
=$ac_optarg ;;
1291 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1293 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1294 prefix
=$ac_optarg ;;
1296 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1297 |
--program-pre |
--program-pr |
--program-p)
1298 ac_prev
=program_prefix
;;
1299 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1300 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1301 program_prefix
=$ac_optarg ;;
1303 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1304 |
--program-suf |
--program-su |
--program-s)
1305 ac_prev
=program_suffix
;;
1306 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1307 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1308 program_suffix
=$ac_optarg ;;
1310 -program-transform-name |
--program-transform-name \
1311 |
--program-transform-nam |
--program-transform-na \
1312 |
--program-transform-n |
--program-transform- \
1313 |
--program-transform |
--program-transfor \
1314 |
--program-transfo |
--program-transf \
1315 |
--program-trans |
--program-tran \
1316 |
--progr-tra |
--program-tr |
--program-t)
1317 ac_prev
=program_transform_name
;;
1318 -program-transform-name=* |
--program-transform-name=* \
1319 |
--program-transform-nam=* |
--program-transform-na=* \
1320 |
--program-transform-n=* |
--program-transform-=* \
1321 |
--program-transform=* |
--program-transfor=* \
1322 |
--program-transfo=* |
--program-transf=* \
1323 |
--program-trans=* |
--program-tran=* \
1324 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1325 program_transform_name
=$ac_optarg ;;
1327 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1329 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1330 pdfdir
=$ac_optarg ;;
1332 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1334 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1337 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1338 |
-silent |
--silent |
--silen |
--sile |
--sil)
1341 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1343 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1345 sbindir
=$ac_optarg ;;
1347 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1348 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1349 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1351 ac_prev
=sharedstatedir
;;
1352 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1353 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1354 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1356 sharedstatedir
=$ac_optarg ;;
1358 -site |
--site |
--sit)
1360 -site=* |
--site=* |
--sit=*)
1363 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1365 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1366 srcdir
=$ac_optarg ;;
1368 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1369 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1370 ac_prev
=sysconfdir
;;
1371 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1372 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1373 sysconfdir
=$ac_optarg ;;
1375 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1376 ac_prev
=target_alias
;;
1377 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1378 target_alias
=$ac_optarg ;;
1380 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1383 -version |
--version |
--versio |
--versi |
--vers |
-V)
1384 ac_init_version
=: ;;
1387 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1390 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1391 { (exit 1); exit 1; }; }
1392 ac_useropt_orig
=$ac_useropt
1393 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1398 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1399 ac_unrecognized_sep
=', ';;
1401 eval with_
$ac_useropt=\
$ac_optarg ;;
1403 -without-* |
--without-*)
1404 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1405 # Reject names that are not valid shell variable names.
1406 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1407 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1408 { (exit 1); exit 1; }; }
1409 ac_useropt_orig
=$ac_useropt
1410 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep
=', ';;
1418 eval with_
$ac_useropt=no
;;
1421 # Obsolete; use --with-x.
1424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1426 ac_prev
=x_includes
;;
1427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1429 x_includes
=$ac_optarg ;;
1431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1433 ac_prev
=x_libraries
;;
1434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1436 x_libraries
=$ac_optarg ;;
1438 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1439 Try \`$0 --help' for more information." >&2
1440 { (exit 1); exit 1; }; }
1444 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1445 # Reject names that are not valid shell variable names.
1446 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1447 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1448 { (exit 1); exit 1; }; }
1449 eval $ac_envvar=\
$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1463 if test -n "$ac_prev"; then
1464 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1465 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1466 { (exit 1); exit 1; }; }
1469 if test -n "$ac_unrecognized_opts"; then
1470 case $enable_option_checking in
1472 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1473 { (exit 1); exit 1; }; } ;;
1474 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1478 # Check all directory arguments for consistency.
1479 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1480 datadir sysconfdir sharedstatedir localstatedir includedir \
1481 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1482 libdir localedir mandir
1484 eval ac_val
=\$
$ac_var
1485 # Remove trailing slashes.
1488 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1489 eval $ac_var=\
$ac_val;;
1491 # Be sure to have absolute directory names.
1493 [\\/$
]* | ?
:[\\/]* ) continue;;
1494 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1496 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1497 { (exit 1); exit 1; }; }
1500 # There might be people who depend on the old broken behavior: `$host'
1501 # used to hold the argument of --host etc.
1502 # FIXME: To remove some day.
1505 target
=$target_alias
1507 # FIXME: To remove some day.
1508 if test "x$host_alias" != x
; then
1509 if test "x$build_alias" = x
; then
1510 cross_compiling
=maybe
1511 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1512 If a cross compiler is detected then cross compile mode will be used." >&2
1513 elif test "x$build_alias" != "x$host_alias"; then
1519 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1521 test "$silent" = yes && exec 6>/dev
/null
1524 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1525 ac_ls_di
=`ls -di .` &&
1526 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1527 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1528 { (exit 1); exit 1; }; }
1529 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1530 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1531 { (exit 1); exit 1; }; }
1534 # Find the source files, if location was not specified.
1535 if test -z "$srcdir"; then
1536 ac_srcdir_defaulted
=yes
1537 # Try the directory containing this script, then the parent directory.
1538 ac_confdir
=`$as_dirname -- "$as_myself" ||
1539 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540 X"$as_myself" : 'X\(//\)[^/]' \| \
1541 X"$as_myself" : 'X\(//\)$' \| \
1542 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1543 $as_echo X"$as_myself" |
1544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1562 if test ! -r "$srcdir/$ac_unique_file"; then
1566 ac_srcdir_defaulted
=no
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1570 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1571 { (exit 1); exit 1; }; }
1573 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1575 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1576 { (exit 1); exit 1; }; }
1578 # When building in place, set srcdir=.
1579 if test "$ac_abs_confdir" = "$ac_pwd"; then
1582 # Remove unnecessary trailing slashes from srcdir.
1583 # Double slashes in file names in object file debugging info
1584 # mess up M-x gdb in Emacs.
1586 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1588 for ac_var
in $ac_precious_vars; do
1589 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1590 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1591 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1592 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1596 # Report the --help message.
1598 if test "$ac_init_help" = "long"; then
1599 # Omit some internal or obsolete options to make the list less imposing.
1600 # This message is too long to be a string in the A/UX 3.1 sh.
1602 \`configure' configures zfs 0.7.6 to adapt to many kinds of systems.
1604 Usage: $0 [OPTION]... [VAR=VALUE]...
1606 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1607 VAR=VALUE. See below for descriptions of some of the useful variables.
1609 Defaults for the options are specified in brackets.
1612 -h, --help display this help and exit
1613 --help=short display options specific to this package
1614 --help=recursive display the short help of all the included packages
1615 -V, --version display version information and exit
1616 -q, --quiet, --silent do not print \`checking...' messages
1617 --cache-file=FILE cache test results in FILE [disabled]
1618 -C, --config-cache alias for \`--cache-file=config.cache'
1619 -n, --no-create do not create output files
1620 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1622 Installation directories:
1623 --prefix=PREFIX install architecture-independent files in PREFIX
1624 [$ac_default_prefix]
1625 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1628 By default, \`make install' will install all the files in
1629 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1630 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1631 for instance \`--prefix=\$HOME'.
1633 For better control, use the options below.
1635 Fine tuning of the installation directories:
1636 --bindir=DIR user executables [EPREFIX/bin]
1637 --sbindir=DIR system admin executables [EPREFIX/sbin]
1638 --libexecdir=DIR program executables [EPREFIX/libexec]
1639 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1640 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1641 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1642 --libdir=DIR object code libraries [EPREFIX/lib]
1643 --includedir=DIR C header files [PREFIX/include]
1644 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1645 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1646 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1647 --infodir=DIR info documentation [DATAROOTDIR/info]
1648 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1649 --mandir=DIR man documentation [DATAROOTDIR/man]
1650 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1651 --htmldir=DIR html documentation [DOCDIR]
1652 --dvidir=DIR dvi documentation [DOCDIR]
1653 --pdfdir=DIR pdf documentation [DOCDIR]
1654 --psdir=DIR ps documentation [DOCDIR]
1660 --program-prefix=PREFIX prepend PREFIX to installed program names
1661 --program-suffix=SUFFIX append SUFFIX to installed program names
1662 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1665 --build=BUILD configure
for building on BUILD
[guessed
]
1666 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1667 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1671 if test -n "$ac_init_help"; then
1672 case $ac_init_help in
1673 short | recursive
) echo "Configuration of zfs 0.7.6:";;
1678 --disable-option-checking ignore unrecognized
--enable/--with options
1679 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1680 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1681 --enable-maintainer-mode enable make rules and dependencies not useful
1682 (and sometimes confusing
) to the casual installer
1683 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1684 --disable-silent-rules verbose build output (undo: `make V
=0')
1685 --disable-dependency-tracking speeds up one-time build
1686 --enable-dependency-tracking do not reject slow dependency extractors
1687 --enable-shared[=PKGS] build shared libraries [default=yes]
1688 --enable-static[=PKGS] build static libraries [default=yes]
1689 --enable-fast-install[=PKGS]
1690 optimize for fast installation [default=yes]
1691 --disable-libtool-lock avoid locking (might break parallel builds)
1692 --enable-linux-builtin Configure for builtin in-tree kernel modules
1694 --enable-systemd install systemd unit/preset files
1696 --enable-sysvinit install SysV init scripts default:, yes
1697 --enable-debug Enable generic debug support [default=no]
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-pic try to use only PIC/non-PIC objects [default=use
1704 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1705 --with-spec=SPEC Spec files 'generic|redhat
'
1706 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1707 --with-linux=PATH Path to kernel source
1708 --with-linux-obj=PATH Path to kernel build objects
1709 --with-spl=PATH Path to spl source
1710 --with-spl-obj=PATH Path to spl build objects
1711 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1712 --with-qat=PATH Path to qat source
1713 --with-qat-obj=PATH Path to qat build objects
1714 --with-mounthelperdir=DIR
1715 install mount.zfs in dir [/sbin]
1716 --with-udevdir=DIR install udev helpers [default=check]
1717 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1718 --with-systemdunitdir=DIR
1719 install systemd unit files in dir
1720 [/usr/lib/systemd/system]
1721 --with-systemdpresetdir=DIR
1722 install systemd preset files in dir
1723 [/usr/lib/systemd/system-preset]
1724 --with-systemdmodulesloaddir=DIR
1725 install systemd module load files into dir
1726 [/usr/lib/modules-load.d]
1727 --with-dracutdir=DIR install dracut helpers [default=check]
1728 --with-tirpc use tirpc for xdr encoding [default=check]
1730 Some influential environment variables:
1731 CC C compiler command
1732 CFLAGS C compiler flags
1733 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1734 nonstandard directory <lib dir>
1735 LIBS libraries to pass to the linker, e.g. -l<library>
1736 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1737 you have headers in a nonstandard directory <include dir>
1739 CCAS assembler compiler command (defaults to CC)
1740 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1742 Use these variables to override the choices made by `configure' or to
help
1743 it to
find libraries and programs with nonstandard names
/locations.
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1758 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1760 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1765 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1768 ac_abs_top_builddir
=$ac_pwd
1769 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir
=$ac_top_build_prefix
1774 .
) # We are building in place.
1776 ac_top_srcdir
=$ac_top_builddir_sub
1777 ac_abs_top_srcdir
=$ac_pwd ;;
1778 [\\/]* | ?
:[\\/]* ) # Absolute name.
1779 ac_srcdir
=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir
=$srcdir
1781 ac_abs_top_srcdir
=$srcdir ;;
1783 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1787 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1789 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1800 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1808 generated by GNU Autoconf
2.63
1810 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1811 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1812 This configure
script is free software
; the Free Software Foundation
1813 gives unlimited permission to copy
, distribute and modify it.
1817 cat >config.log
<<_ACEOF
1818 This file contains any messages produced by compilers while
1819 running configure, to aid debugging if configure makes a mistake.
1821 It was created by zfs $as_me 0.7.6, which was
1822 generated by GNU Autoconf 2.63. Invocation command line was
1834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1857 test -z "$as_dir" && as_dir
=.
1858 $as_echo "PATH: $as_dir"
1874 # Keep a trace of the command line.
1875 # Strip out --no-create and --no-recursion so they do not pile up.
1876 # Strip out --silent because we don't want to record it for future runs.
1877 # Also quote any args containing shell meta-characters.
1878 # Make two passes to allow for proper duplicate-argument suppression.
1882 ac_must_keep_next
=false
1888 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1889 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1890 |
-silent |
--silent |
--silen |
--sile |
--sil)
1893 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1898 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1899 if test $ac_must_keep_next = true
; then
1900 ac_must_keep_next
=false
# Got value, back to normal.
1903 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1904 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1905 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1906 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1907 case "$ac_configure_args0 " in
1908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1911 -* ) ac_must_keep_next
=true
;;
1914 ac_configure_args
="$ac_configure_args '$ac_arg'"
1919 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1920 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1922 # When interrupted or exit'd, cleanup temporary files, and complete
1923 # config.log. We remove comments because anyway the quotes in there
1924 # would cause problems or look ugly.
1925 # WARNING: Use '\'' to represent an apostrophe within the trap.
1926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1927 trap 'exit_status=$?
1928 # Save into config.log some information that might help in debugging.
1933 ## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##
1938 # The following way of writing the cache mishandles newlines in values,
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1945 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) $as_unset $ac_var ;;
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971 ## ----------------- ##
1972 ## Output variables. ##
1973 ## ----------------- ##
1976 for ac_var in $ac_subst_vars
1978 eval ac_val=\$$ac_var
1980 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 $as_echo "$ac_var='\''$ac_val'\''"
1986 if test -n "$ac_subst_files"; then
1988 ## ------------------- ##
1989 ## File substitutions. ##
1990 ## ------------------- ##
1993 for ac_var
in $ac_subst_files
1995 eval ac_val
=\$
$ac_var
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 $as_echo "$ac_var='\''$ac_val'\''"
2004 if test -s confdefs.h; then
2014 test "$ac_signal" != 0 &&
2015 $as_echo "$as_me: caught signal $ac_signal"
2016 $as_echo "$as_me: exit $exit_status"
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 for ac_signal
in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest
* confdefs.h
2030 # Predefined preprocessor variables.
2032 cat >>confdefs.h
<<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2037 cat >>confdefs.h
<<_ACEOF
2038 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042 cat >>confdefs.h
<<_ACEOF
2043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2047 cat >>confdefs.h
<<_ACEOF
2048 #define PACKAGE_STRING "$PACKAGE_STRING"
2052 cat >>confdefs.h
<<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_file1
=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE
; then
2064 ac_site_file1
=$prefix/share
/config.site
2065 ac_site_file2
=$prefix/etc
/config.site
2067 ac_site_file1
=$ac_default_prefix/share
/config.site
2068 ac_site_file2
=$ac_default_prefix/etc
/config.site
2070 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE
&& continue
2073 if test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special
2083 # files actually), so we avoid doing that.
2084 if test -f "$cache_file"; then
2085 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2089 *) .
"./$cache_file";;
2093 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2098 # Check that the precious variables saved in the cache have kept the same
2100 ac_cache_corrupted
=false
2101 for ac_var
in $ac_precious_vars; do
2102 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2103 eval ac_new_set
=\
$ac_env_${ac_var}_set
2104 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2105 eval ac_new_val
=\
$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2108 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted
=: ;;
2112 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted
=: ;;
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w
=`echo x $ac_old_val`
2120 ac_new_val_w
=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted
=:
2126 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\
$ac_old_val
2130 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2139 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg
=$ac_var=$ac_new_val ;;
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2154 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2155 { (exit 1); exit 1; }; }
2183 ac_cpp
='$CPP $CPPFLAGS'
2184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2190 ac_cpp
='$CPP $CPPFLAGS'
2191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2200 for ac_prog
in gawk mawk nawk
awk
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy
$ac_prog; ac_word
=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_AWK+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2209 if test -n "$AWK"; then
2210 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir
=.
2217 for ac_exec_ext
in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_AWK
="$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$AWK"; then
2231 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2232 $as_echo "$AWK" >&6; }
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$AWK" && break
2242 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2243 $as_echo_n "checking metadata... " >&6; }
2246 _zfs_ac_meta_type
="none"
2247 if test -f "$META"; then
2248 _zfs_ac_meta_type
="META file"
2250 ZFS_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2251 if test -n "$ZFS_META_NAME"; then
2253 cat >>confdefs.h
<<_ACEOF
2254 #define ZFS_META_NAME "$ZFS_META_NAME"
2260 ZFS_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2261 if test -n "$ZFS_META_VERSION"; then
2263 cat >>confdefs.h
<<_ACEOF
2264 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2270 ZFS_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2271 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2272 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2273 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2274 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2275 if test -n "${_release}"; then
2276 ZFS_META_RELEASE
=${_release}
2277 _zfs_ac_meta_type
="git describe"
2279 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2280 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2281 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2282 if test -n "${_release}"; then
2283 ZFS_META_RELEASE
=${_release}
2284 _zfs_ac_meta_type
="git describe"
2289 if test -n "$ZFS_META_RELEASE"; then
2291 cat >>confdefs.h
<<_ACEOF
2292 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2297 RELEASE
="$ZFS_META_RELEASE"
2301 ZFS_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2302 if test -n "$ZFS_META_LICENSE"; then
2304 cat >>confdefs.h
<<_ACEOF
2305 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2311 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2312 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2313 test -n "$ZFS_META_RELEASE" &&
2314 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2316 cat >>confdefs.h
<<_ACEOF
2317 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2323 ZFS_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2324 if test -n "$ZFS_META_DATA"; then
2326 cat >>confdefs.h
<<_ACEOF
2327 #define ZFS_META_DATA "$ZFS_META_DATA"
2333 ZFS_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2334 if test -n "$ZFS_META_AUTHOR"; then
2336 cat >>confdefs.h
<<_ACEOF
2337 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2344 ZFS_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2345 ZFS_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2346 ZFS_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2347 if test -n "$ZFS_META_LT_CURRENT" \
2348 -o -n "$ZFS_META_LT_REVISION" \
2349 -o -n "$ZFS_META_LT_AGE"; then
2350 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2351 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2352 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2354 cat >>confdefs.h
<<_ACEOF
2355 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2359 cat >>confdefs.h
<<_ACEOF
2360 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2364 cat >>confdefs.h
<<_ACEOF
2365 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2374 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
2375 $as_echo "$_zfs_ac_meta_type" >&6; }
2379 for ac_dir
in config
"$srcdir"/config
; do
2380 if test -f "$ac_dir/install-sh"; then
2382 ac_install_sh
="$ac_aux_dir/install-sh -c"
2384 elif test -f "$ac_dir/install.sh"; then
2386 ac_install_sh
="$ac_aux_dir/install.sh -c"
2388 elif test -f "$ac_dir/shtool"; then
2390 ac_install_sh
="$ac_aux_dir/shtool install -c"
2394 if test -z "$ac_aux_dir"; then
2395 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2396 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2397 { (exit 1); exit 1; }; }
2400 # These three variables are undocumented and unsupported,
2401 # and are intended to be withdrawn in a future Autoconf release.
2402 # They can cause serious problems if a builder's source tree is in a directory
2403 # whose full name contains unusual characters.
2404 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2405 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2406 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2410 # Make sure we can run config.sub.
2411 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2412 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2413 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2414 { (exit 1); exit 1; }; }
2416 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2417 $as_echo_n "checking build system type... " >&6; }
2418 if test "${ac_cv_build+set}" = set; then
2419 $as_echo_n "(cached) " >&6
2421 ac_build_alias
=$build_alias
2422 test "x$ac_build_alias" = x
&&
2423 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2424 test "x$ac_build_alias" = x
&&
2425 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2426 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2427 { (exit 1); exit 1; }; }
2428 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2429 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2430 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2431 { (exit 1); exit 1; }; }
2434 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2435 $as_echo "$ac_cv_build" >&6; }
2436 case $ac_cv_build in
2438 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2439 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2440 { (exit 1); exit 1; }; };;
2443 ac_save_IFS
=$IFS; IFS
='-'
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2453 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2456 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if test "${ac_cv_host+set}" = set; then
2459 $as_echo_n "(cached) " >&6
2461 if test "x$host_alias" = x
; then
2462 ac_cv_host
=$ac_cv_build
2464 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2466 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2467 { (exit 1); exit 1; }; }
2471 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2472 $as_echo "$ac_cv_host" >&6; }
2475 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2476 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2477 { (exit 1); exit 1; }; };;
2480 ac_save_IFS
=$IFS; IFS
='-'
2486 # Remember, the first character of IFS is used to create $*,
2487 # except with old shells:
2490 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2494 $as_echo_n "checking target system type... " >&6; }
2495 if test "${ac_cv_target+set}" = set; then
2496 $as_echo_n "(cached) " >&6
2498 if test "x$target_alias" = x
; then
2499 ac_cv_target
=$ac_cv_host
2501 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2502 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2503 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2504 { (exit 1); exit 1; }; }
2508 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2509 $as_echo "$ac_cv_target" >&6; }
2510 case $ac_cv_target in
2512 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2513 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2514 { (exit 1); exit 1; }; };;
2516 target
=$ac_cv_target
2517 ac_save_IFS
=$IFS; IFS
='-'
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2527 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2530 # The aliases save the names the user supplied, while $host etc.
2531 # will get canonicalized.
2532 test -n "$target_alias" &&
2533 test "$program_prefix$program_suffix$program_transform_name" = \
2535 program_prefix
=${target_alias}-
2537 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2538 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2539 # Check whether --enable-maintainer-mode was given.
2540 if test "${enable_maintainer_mode+set}" = set; then
2541 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2543 USE_MAINTAINER_MODE
=no
2546 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2547 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2548 if test $USE_MAINTAINER_MODE = yes; then
2549 MAINTAINER_MODE_TRUE
=
2550 MAINTAINER_MODE_FALSE
='#'
2552 MAINTAINER_MODE_TRUE
='#'
2553 MAINTAINER_MODE_FALSE
=
2556 MAINT
=$MAINTAINER_MODE_TRUE
2559 # Check whether --enable-silent-rules was given.
2560 if test "${enable_silent_rules+set}" = set; then
2561 enableval
=$enable_silent_rules;
2564 case $enable_silent_rules in
2565 yes) AM_DEFAULT_VERBOSITY
=0;;
2566 no
) AM_DEFAULT_VERBOSITY
=1;;
2567 *) AM_DEFAULT_VERBOSITY
=0;;
2571 am__api_version='1.11'
2573 # Find a good install program. We prefer a C program (faster),
2574 # so one script is as good as another. But avoid the broken or
2575 # incompatible versions:
2576 # SysV /etc/install, /usr/sbin/install
2577 # SunOS /usr/etc/install
2578 # IRIX /sbin/install
2580 # AmigaOS /C/install, which installs bootblocks on floppy discs
2581 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584 # OS/2's system install, which has a completely different semantic
2585 # ./install, which can be erroneously created by make from ./install.sh.
2586 # Reject install programs that cannot install multiple files.
2587 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2589 if test -z "$INSTALL"; then
2590 if test "${ac_cv_path_install+set}" = set; then
2591 $as_echo_n "(cached) " >&6
2593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir
=.
2598 # Account for people who put trailing slashes in PATH elements.
2600 .
/ | .
// |
/cC
/* | \
2601 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2602 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2605 # OSF1 and SCO ODT 3.0 have their own names for install.
2606 # Don't use installbsd from OSF since it installs stuff as root
2608 for ac_prog
in ginstall scoinst
install; do
2609 for ac_exec_ext
in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2611 if test $ac_prog = install &&
2612 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2613 # AIX install. It has an incompatible calling convention.
2615 elif test $ac_prog = install &&
2616 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2617 # program-specific install script used by HP pwplus--don't use.
2620 rm -rf conftest.one conftest.two conftest.dir
2621 echo one
> conftest.one
2622 echo two
> conftest.two
2624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2625 test -s conftest.one
&& test -s conftest.two
&&
2626 test -s conftest.dir
/conftest.one
&&
2627 test -s conftest.dir
/conftest.two
2629 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2642 rm -rf conftest.one conftest.two conftest.dir
2645 if test "${ac_cv_path_install+set}" = set; then
2646 INSTALL
=$ac_cv_path_install
2648 # As a last resort, use the slow shell script. Don't cache a
2649 # value for INSTALL within a source directory, because that will
2650 # break other packages using the cache if that directory is
2651 # removed, or if the value is a relative name.
2652 INSTALL
=$ac_install_sh
2655 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2656 $as_echo "$INSTALL" >&6; }
2658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2659 # It thinks the first close brace ends the variable substitution.
2660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2664 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2666 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2667 $as_echo_n "checking whether build environment is sane... " >&6; }
2670 echo timestamp
> conftest.
file
2671 # Reject unsafe characters in $srcdir or the absolute working directory
2672 # name. Accept space and tab only in the latter.
2676 *[\\\"\
#\$\&\'\`$am_lf]*)
2677 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2678 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2679 { (exit 1); exit 1; }; };;
2682 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2683 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2684 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2685 { (exit 1); exit 1; }; };;
2688 # Do `set' in a subshell so we don't clobber the current shell's
2689 # arguments. Must try -L first in case configure is actually a
2690 # symlink; some systems play weird games with the mod time of symlinks
2691 # (eg FreeBSD returns the mod time of the symlink's containing
2694 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695 if test "$*" = "X"; then
2697 set X
`ls -t "$srcdir/configure" conftest.file`
2700 if test "$*" != "X $srcdir/configure conftest.file" \
2701 && test "$*" != "X conftest.file $srcdir/configure"; then
2703 # If neither matched, then we have a broken ls. This can happen
2704 # if, for instance, CONFIG_SHELL is bash and it inherits a
2705 # broken ls alias from the environment. This has actually
2706 # happened. Such a system could not be considered "sane".
2707 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2708 alias in your environment" >&5
2709 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2710 alias in your environment" >&2;}
2711 { (exit 1); exit 1; }; }
2714 test "$2" = conftest.
file
2720 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2721 Check your system clock" >&5
2722 $as_echo "$as_me: error: newly created file is older than distributed files!
2723 Check your system clock" >&2;}
2724 { (exit 1); exit 1; }; }
2726 { $as_echo "$as_me:$LINENO: result: yes" >&5
2727 $as_echo "yes" >&6; }
2728 test "$program_prefix" != NONE
&&
2729 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$program_suffix" != NONE
&&
2732 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2733 # Double any \ or $.
2734 # By default was `s,x,x', remove it if useless.
2735 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738 # expand $ac_aux_dir to an absolute path
2739 am_aux_dir
=`cd $ac_aux_dir && pwd`
2741 if test x
"${MISSING+set}" != xset
; then
2744 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2749 # Use eval to expand $SHELL
2750 if eval "$MISSING --run true"; then
2751 am_missing_run
="$MISSING --run "
2754 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2755 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2758 if test x
"${install_sh}" != xset
; then
2761 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2767 # Installed binaries are usually stripped using `strip' when the user
2768 # run `make install-strip'. However `strip' might not be the right
2769 # tool to use in cross-compilation environments, therefore Automake
2770 # will honor the `STRIP' environment variable to overrule this program.
2771 if test "$cross_compiling" != no
; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2774 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_STRIP+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$STRIP"; then
2781 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir
=.
2788 for ac_exec_ext
in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800 STRIP
=$ac_cv_prog_STRIP
2801 if test -n "$STRIP"; then
2802 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2803 $as_echo "$STRIP" >&6; }
2805 { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2811 if test -z "$ac_cv_prog_STRIP"; then
2813 # Extract the first word of "strip", so it can be a program name with args.
2814 set dummy strip
; ac_word
=$2
2815 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_STRIP"; then
2821 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir
=.
2828 for ac_exec_ext
in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_STRIP
="strip"
2831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2841 if test -n "$ac_ct_STRIP"; then
2842 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2843 $as_echo "$ac_ct_STRIP" >&6; }
2845 { $as_echo "$as_me:$LINENO: result: no" >&5
2846 $as_echo "no" >&6; }
2849 if test "x$ac_ct_STRIP" = x
; then
2852 case $cross_compiling:$ac_tool_warned in
2854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856 ac_tool_warned
=yes ;;
2861 STRIP
="$ac_cv_prog_STRIP"
2865 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2867 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2868 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2869 if test -z "$MKDIR_P"; then
2870 if test "${ac_cv_path_mkdir+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2874 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2877 test -z "$as_dir" && as_dir
=.
2878 for ac_prog
in mkdir gmkdir
; do
2879 for ac_exec_ext
in '' $ac_executable_extensions; do
2880 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2881 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2882 'mkdir (GNU coreutils) '* | \
2883 'mkdir (coreutils) '* | \
2884 'mkdir (fileutils) '4.1*)
2885 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2895 if test "${ac_cv_path_mkdir+set}" = set; then
2896 MKDIR_P
="$ac_cv_path_mkdir -p"
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for MKDIR_P within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
2902 test -d .
/--version && rmdir .
/--version
2903 MKDIR_P
="$ac_install_sh -d"
2906 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2907 $as_echo "$MKDIR_P" >&6; }
2911 [\\/$
]* | ?
:[\\/]*) ;;
2912 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2915 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2916 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2918 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2919 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2920 $as_echo_n "(cached) " >&6
2922 cat >conftest.
make <<\_ACEOF
2925 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2928 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2930 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2932 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2936 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2937 { $as_echo "$as_me:$LINENO: result: yes" >&5
2938 $as_echo "yes" >&6; }
2941 { $as_echo "$as_me:$LINENO: result: no" >&5
2942 $as_echo "no" >&6; }
2943 SET_MAKE
="MAKE=${MAKE-make}"
2946 rm -rf .tst
2>/dev
/null
2947 mkdir .tst
2>/dev
/null
2948 if test -d .tst
; then
2953 rmdir .tst
2>/dev
/null
2955 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2956 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2957 # is not polluted with repeated "-I."
2958 am__isrc
=' -I$(srcdir)'
2959 # test to see if srcdir already configured
2960 if test -f $srcdir/config.status
; then
2961 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2962 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2963 { (exit 1); exit 1; }; }
2967 # test whether we have cygpath
2968 if test -z "$CYGPATH_W"; then
2969 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2970 CYGPATH_W
='cygpath -w'
2977 # Define the identity of the package.
2982 cat >>confdefs.h
<<_ACEOF
2983 #define PACKAGE "$PACKAGE"
2987 cat >>confdefs.h
<<_ACEOF
2988 #define VERSION "$VERSION"
2991 # Some tools Automake needs.
2993 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2996 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2999 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3002 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3005 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3007 # We need awk for the "check" target. The system "awk" is bad on
3009 # Always define AMTAR for backward compatibility.
3011 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3013 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3019 ac_config_headers
="$ac_config_headers zfs_config.h"
3022 # Find a good install program. We prefer a C program (faster),
3023 # so one script is as good as another. But avoid the broken or
3024 # incompatible versions:
3025 # SysV /etc/install, /usr/sbin/install
3026 # SunOS /usr/etc/install
3027 # IRIX /sbin/install
3029 # AmigaOS /C/install, which installs bootblocks on floppy discs
3030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033 # OS/2's system install, which has a completely different semantic
3034 # ./install, which can be erroneously created by make from ./install.sh.
3035 # Reject install programs that cannot install multiple files.
3036 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040 $as_echo_n "(cached) " >&6
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir
=.
3047 # Account for people who put trailing slashes in PATH elements.
3049 .
/ | .
// |
/cC
/* | \
3050 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3051 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3054 # OSF1 and SCO ODT 3.0 have their own names for install.
3055 # Don't use installbsd from OSF since it installs stuff as root
3057 for ac_prog
in ginstall scoinst
install; do
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3060 if test $ac_prog = install &&
3061 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3062 # AIX install. It has an incompatible calling convention.
3064 elif test $ac_prog = install &&
3065 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3066 # program-specific install script used by HP pwplus--don't use.
3069 rm -rf conftest.one conftest.two conftest.dir
3070 echo one
> conftest.one
3071 echo two
> conftest.two
3073 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3074 test -s conftest.one
&& test -s conftest.two
&&
3075 test -s conftest.dir
/conftest.one
&&
3076 test -s conftest.dir
/conftest.two
3078 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3091 rm -rf conftest.one conftest.two conftest.dir
3094 if test "${ac_cv_path_install+set}" = set; then
3095 INSTALL
=$ac_cv_path_install
3097 # As a last resort, use the slow shell script. Don't cache a
3098 # value for INSTALL within a source directory, because that will
3099 # break other packages using the cache if that directory is
3100 # removed, or if the value is a relative name.
3101 INSTALL
=$ac_install_sh
3104 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3105 $as_echo "$INSTALL" >&6; }
3107 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3108 # It thinks the first close brace ends the variable substitution.
3109 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3111 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3113 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3116 ac_cpp
='$CPP $CPPFLAGS'
3117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3122 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC
="$CC" # Let the user override the test.
3131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir
=.
3136 for ac_exec_ext
in '' $ac_executable_extensions; do
3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154 $as_echo "no" >&6; }
3159 if test -z "$ac_cv_prog_CC"; then
3161 # Extract the first word of "gcc", so it can be a program name with args.
3162 set dummy gcc
; ac_word
=$2
3163 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$ac_ct_CC"; then
3169 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 for ac_exec_ext
in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 ac_cv_prog_ac_ct_CC
="gcc"
3179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3189 if test -n "$ac_ct_CC"; then
3190 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3191 $as_echo "$ac_ct_CC" >&6; }
3193 { $as_echo "$as_me:$LINENO: result: no" >&5
3194 $as_echo "no" >&6; }
3197 if test "x$ac_ct_CC" = x
; then
3200 case $cross_compiling:$ac_tool_warned in
3202 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned
=yes ;;
3212 if test -z "$CC"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3215 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if test "${ac_cv_prog_CC+set}" = set; then
3219 $as_echo_n "(cached) " >&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC
="$CC" # Let the user override the test.
3224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3228 test -z "$as_dir" && as_dir
=.
3229 for ac_exec_ext
in '' $ac_executable_extensions; do
3230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 if test -n "$CC"; then
3243 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3244 $as_echo "$CC" >&6; }
3246 { $as_echo "$as_me:$LINENO: result: no" >&5
3247 $as_echo "no" >&6; }
3253 if test -z "$CC"; then
3254 # Extract the first word of "cc", so it can be a program name with args.
3255 set dummy cc
; ac_word
=$2
3256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if test "${ac_cv_prog_CC+set}" = set; then
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC
="$CC" # Let the user override the test.
3265 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3269 test -z "$as_dir" && as_dir
=.
3270 for ac_exec_ext
in '' $ac_executable_extensions; do
3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3273 ac_prog_rejected
=yes
3277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 if test $ac_prog_rejected = yes; then
3285 # We found a bogon in the path, so make sure we never use it.
3286 set dummy
$ac_cv_prog_CC
3288 if test $# != 0; then
3289 # We chose a different compiler from the bogus one.
3290 # However, it has the same basename, so the bogon will be chosen
3291 # first if we set CC to just the basename; use the full file name.
3293 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:$LINENO: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$CC"; then
3310 if test -n "$ac_tool_prefix"; then
3311 for ac_prog
in cl.exe
3313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3314 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_CC+set}" = set; then
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC
="$CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3345 { $as_echo "$as_me:$LINENO: result: no" >&5
3346 $as_echo "no" >&6; }
3350 test -n "$CC" && break
3353 if test -z "$CC"; then
3355 for ac_prog
in cl.exe
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy
$ac_prog; ac_word
=$2
3359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3362 $as_echo_n "(cached) " >&6
3364 if test -n "$ac_ct_CC"; then
3365 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3371 test -z "$as_dir" && as_dir
=.
3372 for ac_exec_ext
in '' $ac_executable_extensions; do
3373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3374 ac_cv_prog_ac_ct_CC
="$ac_prog"
3375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3385 if test -n "$ac_ct_CC"; then
3386 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3387 $as_echo "$ac_ct_CC" >&6; }
3389 { $as_echo "$as_me:$LINENO: result: no" >&5
3390 $as_echo "no" >&6; }
3394 test -n "$ac_ct_CC" && break
3397 if test "x$ac_ct_CC" = x
; then
3400 case $cross_compiling:$ac_tool_warned in
3402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3404 ac_tool_warned
=yes ;;
3413 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3416 See \`config.log' for more details." >&5
3417 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details." >&2;}
3419 { (exit 1); exit 1; }; }; }
3421 # Provide some information about the compiler.
3422 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3425 { (ac_try
="$ac_compiler --version >&5"
3427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432 (eval "$ac_compiler --version >&5") 2>&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }
3436 { (ac_try="$ac_compiler -v >&5"
3438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3439 *) ac_try_echo
=$ac_try;;
3441 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443 (eval "$ac_compiler -v >&5") 2>&5
3445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }
3447 { (ac_try
="$ac_compiler -V >&5"
3449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3453 $as_echo "$ac_try_echo") >&5
3454 (eval "$ac_compiler -V >&5") 2>&5
3456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3474 ac_clean_files_save=$ac_clean_files
3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3476 # Try to create an executable without -o first, disregard a.out.
3477 # It will help us diagnose broken compilers, and finding out an intuition
3479 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3480 $as_echo_n "checking for C compiler default output file name... " >&6; }
3481 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3487 for ac_file in $ac_files
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 if { (ac_try="$ac_link_default"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503 (eval "$ac_link_default") 2>&5
3505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; then
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3510 # so that the user can short-circuit this test for compilers unknown to
3512 for ac_file
in $ac_files ''
3514 test -f "$ac_file" ||
continue
3516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3519 # We found the default executable, but exeext='' is most
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3525 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3537 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3543 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3544 $as_echo "$ac_file" >&6; }
3545 if test -z "$ac_file"; then
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.
$ac_ext >&5
3549 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3552 See \`config.log' for more details." >&5
3553 $as_echo "$as_me: error: C compiler cannot create executables
3554 See \`config.log' for more details." >&2;}
3555 { (exit 77); exit 77; }; }; }
3558 ac_exeext
=$ac_cv_exeext
3560 # Check that the compiler produces executables we can run. If not, either
3561 # the compiler is broken, or we cross compile.
3562 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3563 $as_echo_n "checking whether the C compiler works... " >&6; }
3564 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3565 # If not cross compiling, check that we can run a simple program.
3566 if test "$cross_compiling" != yes; then
3567 if { ac_try
='./$ac_file'
3568 { (case "(($ac_try" in
3569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_try") 2>&5
3576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3580 if test "$cross_compiling" = maybe; then
3583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3586 If you meant to cross compile
, use \
`--host'.
3587 See \`config.log
' for more details." >&5
3588 $as_echo "$as_me: error: cannot run C compiled programs.
3589 If you meant to cross compile, use \`--host'.
3590 See \
`config.log' for more details." >&2;}
3591 { (exit 1); exit 1; }; }; }
3595 { $as_echo "$as_me:$LINENO: result: yes" >&5
3596 $as_echo "yes" >&6; }
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3599 ac_clean_files=$ac_clean_files_save
3600 # Check that the compiler produces executables we can run. If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3607 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { (ac_try="$ac_link"
3611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3612 *) ac_try_echo
=$ac_try;;
3614 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3615 $as_echo "$ac_try_echo") >&5
3616 (eval "$ac_link") 2>&5
3618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; then
3620 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3624 for ac_file
in conftest.exe conftest conftest.
*; do
3625 test -f "$ac_file" ||
continue
3627 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3628 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." >&5
3638 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." >&2;}
3640 { (exit 1); exit 1; }; }; }
3643 rm -f conftest
$ac_cv_exeext
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3645 $as_echo "$ac_cv_exeext" >&6; }
3647 rm -f conftest.
$ac_ext
3648 EXEEXT
=$ac_cv_exeext
3650 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3651 $as_echo_n "checking for suffix of object files... " >&6; }
3652 if test "${ac_cv_objext+set}" = set; then
3653 $as_echo_n "(cached) " >&6
3655 cat >conftest.
$ac_ext <<_ACEOF
3658 cat confdefs.h
>>conftest.
$ac_ext
3659 cat >>conftest.
$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3670 rm -f conftest.o conftest.obj
3671 if { (ac_try
="$ac_compile"
3673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677 $as_echo "$ac_try_echo") >&5
3678 (eval "$ac_compile") 2>&5
3680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; then
3682 for ac_file in conftest.o conftest.obj conftest.*; do
3683 test -f "$ac_file" || continue;
3685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691 $as_echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3694 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3697 See \
`config.log' for more details." >&5
3698 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3699 See \`config.log
' for more details." >&2;}
3700 { (exit 1); exit 1; }; }; }
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3709 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3732 rm -f conftest.$ac_objext
3733 if { (ac_try="$ac_compile"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3739 $as_echo "$ac_try_echo") >&5
3740 (eval "$ac_compile") 2>conftest.er1
3742 grep -v '^
*+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } && {
3747 test -z "$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 } && test -s conftest.$ac_objext; then
3752 $as_echo "$as_me: failed program was:" >&5
3753 sed 's
/^
/|
/' conftest.$ac_ext >&5
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3762 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3763 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3764 if test $ac_compiler_gnu = yes; then
3769 ac_test_CFLAGS=${CFLAGS+set}
3770 ac_save_CFLAGS=$CFLAGS
3771 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3772 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then
3774 $as_echo_n "(cached) " >&6
3776 ac_save_c_werror_flag=$ac_c_werror_flag
3777 ac_c_werror_flag=yes
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3802 $as_echo "$ac_try_echo") >&5
3803 (eval "$ac_compile") 2>conftest.er1
3805 grep -v '^
*+' conftest.er1 >conftest.err
3807 cat conftest.err >&5
3808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } && {
3810 test -z "$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 } && test -s conftest.$ac_objext; then
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's
/^
/|
/' conftest.$ac_ext >&5
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3834 rm -f conftest.$ac_objext
3835 if { (ac_try="$ac_compile"
3837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838 *) ac_try_echo=$ac_try;;
3840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3841 $as_echo "$ac_try_echo") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^
*+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3854 $as_echo "$as_me: failed program was:" >&5
3855 sed 's
/^
/|
/' conftest.$ac_ext >&5
3857 ac_c_werror_flag=$ac_save_c_werror_flag
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3881 $as_echo "$ac_try_echo") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^
*+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's
/^
/|
/' conftest.$ac_ext >&5
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_c_werror_flag=$ac_save_c_werror_flag
3909 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3910 $as_echo "$ac_cv_prog_cc_g" >&6; }
3911 if test "$ac_test_CFLAGS" = set; then
3912 CFLAGS=$ac_save_CFLAGS
3913 elif test $ac_cv_prog_cc_g = yes; then
3914 if test "$GCC" = yes; then
3920 if test "$GCC" = yes; then
3926 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3927 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3928 if test "${ac_cv_prog_cc_c89+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3931 ac_cv_prog_cc_c89=no
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3941 #include <sys/types.h>
3942 #include <sys/stat.h>
3943 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3944 struct buf
{ int x
; };
3945 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3946 static char
*e
(p
, i
)
3952 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3957 s
= g
(p
, va_arg
(v
,int
));
3962 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3963 function prototypes and stuff
, but not
'\xHH' hex character constants.
3964 These don
't provoke an error unfortunately, instead are silently treated
3965 as 'x
'. The following induces an error, until -std is added to get
3966 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3967 array size at least. It's necessary to
write '\x00'==0 to get something
3968 that
's true only with -std. */
3969 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3971 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3972 inside strings and character constants. */
3974 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3976 int test (int i, double x);
3977 struct s1 {int (*f) (int a);};
3978 struct s2 {int (*f) (double a);};
3979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3990 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3991 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993 CC="$ac_save_CC $ac_arg"
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_compile") 2>conftest.er1
4004 grep -v '^
*+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest.$ac_objext; then
4012 ac_cv_prog_cc_c89=$ac_arg
4014 $as_echo "$as_me: failed program was:" >&5
4015 sed 's
/^
/|
/' conftest.$ac_ext >&5
4020 rm -f core conftest.err conftest.$ac_objext
4021 test "x$ac_cv_prog_cc_c89" != "xno" && break
4023 rm -f conftest.$ac_ext
4028 case "x$ac_cv_prog_cc_c89" in
4030 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4031 $as_echo "none needed" >&6; } ;;
4033 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4034 $as_echo "unsupported" >&6; } ;;
4036 CC="$CC $ac_cv_prog_cc_c89"
4037 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4038 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043 ac_cpp='$CPP $CPPFLAGS'
4044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4045 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047 DEPDIR="${am__leading_dot}deps"
4049 ac_config_commands="$ac_config_commands depfiles"
4052 am_make=${MAKE-make}
4053 cat > confinc << 'END
'
4055 @echo this is the am__doit target
4058 # If we don't
find an include directive
, just comment out the code.
4059 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4060 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4064 # First try GNU make style include.
4065 echo "include confinc" > confmf
4066 # Ignore all kinds of additional output from `make'.
4067 case `$am_make -s -f confmf 2> /dev/null` in #(
4068 *the\ am__doit\ target
*)
4074 # Now try BSD make style include.
4075 if test "$am__include" = "#"; then
4076 echo '.include "confinc"' > confmf
4077 case `$am_make -s -f confmf 2> /dev/null` in #(
4078 *the\ am__doit\ target
*)
4079 am__include
=.include
4087 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4088 $as_echo "$_am_result" >&6; }
4089 rm -f confinc confmf
4091 # Check whether --enable-dependency-tracking was given.
4092 if test "${enable_dependency_tracking+set}" = set; then
4093 enableval
=$enable_dependency_tracking;
4096 if test "x$enable_dependency_tracking" != xno
; then
4097 am_depcomp
="$ac_aux_dir/depcomp"
4100 if test "x$enable_dependency_tracking" != xno; then
4110 depcc
="$CC" am_compiler_list
=
4112 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4113 $as_echo_n "checking dependency style of $depcc... " >&6; }
4114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4115 $as_echo_n "(cached) " >&6
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4124 # Copy depcomp to subdir because otherwise we won't find it if we're
4125 # using a relative directory.
4126 cp "$am_depcomp" conftest.dir
4128 # We will build objects and dependencies in a subdirectory because
4129 # it helps to detect inapplicable dependency modes. For instance
4130 # both Tru64's cc and ICC support -MD to output dependencies as a
4131 # side effect of compilation, but ICC will put the dependencies in
4132 # the current directory while Tru64 will put them in the object
4136 am_cv_CC_dependencies_compiler_type
=none
4137 if test "$am_compiler_list" = ""; then
4138 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141 case " $depcc " in #(
4142 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4145 for depmode
in $am_compiler_list; do
4146 # Setup a source with many dependencies, because some compilers
4147 # like to wrap large dependency lists on column 80 (with \), and
4148 # we should not choose a depcomp mode which is confused by this.
4150 # We need to recreate these files for each test, as the compiler may
4151 # overwrite some of them when testing with obscure command lines.
4152 # This happens at least with the AIX C compiler.
4154 for i
in 1 2 3 4 5 6; do
4155 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4157 # Solaris 8's {/usr,}/bin/sh.
4158 touch sub
/conftst
$i.h
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4163 # mode. It turns out that the SunPro C++ compiler does not properly
4164 # handle `-M -o', and we need to detect this. Also, some Intel
4165 # versions had trouble with output in subdirs
4166 am__obj
=sub
/conftest.
${OBJEXT-o}
4167 am__minus_obj
="-o $am__obj"
4170 # This depmode causes a compiler race in universal mode.
4171 test "$am__universal" = false ||
continue
4174 # after this tag, mechanisms are not by side-effect, so they'll
4175 # only be used when explicitly requested
4176 if test "x$enable_dependency_tracking" = xyes
; then
4182 msvisualcpp | msvcmsys
)
4183 # This compiler won't grok `-c -o', but also, the minuso test has
4184 # not run yet. These depmodes are late enough in the game, and
4185 # so weak that their functioning should not be impacted.
4186 am__obj
=conftest.
${OBJEXT-o}
4191 if depmode
=$depmode \
4192 source=sub
/conftest.c object
=$am__obj \
4193 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4194 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4195 >/dev
/null
2>conftest.err
&&
4196 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4197 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4198 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4199 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4200 # icc doesn't choke on unknown options, it will just issue warnings
4201 # or remarks (even with -Werror). So we grep stderr for any message
4202 # that says an option was ignored or not supported.
4203 # When given -MP, icc 7.0 and 7.1 complain thusly:
4204 # icc: Command line warning: ignoring option '-M'; no argument required
4205 # The diagnosis changed in icc 8.0:
4206 # icc: Command line remark: option '-MP' not supported
4207 if (grep 'ignoring option' conftest.err ||
4208 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4209 am_cv_CC_dependencies_compiler_type
=$depmode
4218 am_cv_CC_dependencies_compiler_type
=none
4222 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4227 test "x$enable_dependency_tracking" != xno \
4228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4230 am__fastdepCC_FALSE
='#'
4232 am__fastdepCC_TRUE
='#'
4233 am__fastdepCC_FALSE
=
4239 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4240 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4245 macro_version
='2.2.6b'
4246 macro_revision
='1.3017'
4260 ltmain
="$ac_aux_dir/ltmain.sh"
4262 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4263 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4264 if test "${ac_cv_path_SED+set}" = set; then
4265 $as_echo_n "(cached) " >&6
4267 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4268 for ac_i
in 1 2 3 4 5 6 7; do
4269 ac_script
="$ac_script$as_nl$ac_script"
4271 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4272 $as_unset ac_script || ac_script
=
4273 if test -z "$SED"; then
4274 ac_path_SED_found
=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir
=.
4281 for ac_prog
in sed gsed
; do
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4285 # Check for GNU ac_path_SED and select it if it is found.
4286 # Check for GNU $ac_path_SED
4287 case `"$ac_path_SED" --version 2>&1` in
4289 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4292 $as_echo_n 0123456789 >"conftest.in"
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo '' >> "conftest.nl"
4299 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4300 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4301 ac_count
=`expr $ac_count + 1`
4302 if test $ac_count -gt ${ac_path_SED_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_SED
="$ac_path_SED"
4305 ac_path_SED_max
=$ac_count
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4310 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4313 $ac_path_SED_found && break 3
4318 if test -z "$ac_cv_path_SED"; then
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4320 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4321 { (exit 1); exit 1; }; }
4328 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4329 $as_echo "$ac_cv_path_SED" >&6; }
4330 SED
="$ac_cv_path_SED"
4333 test -z "$SED" && SED
=sed
4334 Xsed
="$SED -e 1s/^X//"
4346 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4348 if test "${ac_cv_path_GREP+set}" = set; then
4349 $as_echo_n "(cached) " >&6
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found
=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4355 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_prog
in grep ggrep
; do
4360 for ac_exec_ext
in '' $ac_executable_extensions; do
4361 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$ac_path_GREP" --version 2>&1` in
4367 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4370 $as_echo_n 0123456789 >"conftest.in"
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4378 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4379 ac_count
=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP
="$ac_path_GREP"
4383 ac_path_GREP_max
=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4388 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4391 $ac_path_GREP_found && break 3
4396 if test -z "$ac_cv_path_GREP"; then
4397 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4398 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4399 { (exit 1); exit 1; }; }
4402 ac_cv_path_GREP
=$GREP
4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4407 $as_echo "$ac_cv_path_GREP" >&6; }
4408 GREP
="$ac_cv_path_GREP"
4411 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4412 $as_echo_n "checking for egrep... " >&6; }
4413 if test "${ac_cv_path_EGREP+set}" = set; then
4414 $as_echo_n "(cached) " >&6
4416 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4417 then ac_cv_path_EGREP
="$GREP -E"
4419 if test -z "$EGREP"; then
4420 ac_path_EGREP_found
=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4426 test -z "$as_dir" && as_dir
=.
4427 for ac_prog
in egrep; do
4428 for ac_exec_ext
in '' $ac_executable_extensions; do
4429 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4431 # Check for GNU ac_path_EGREP and select it if it is found.
4432 # Check for GNU $ac_path_EGREP
4433 case `"$ac_path_EGREP" --version 2>&1` in
4435 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4438 $as_echo_n 0123456789 >"conftest.in"
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'EGREP' >> "conftest.nl"
4445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4446 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4447 ac_count
=`expr $ac_count + 1`
4448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_EGREP
="$ac_path_EGREP"
4451 ac_path_EGREP_max
=$ac_count
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4456 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4459 $ac_path_EGREP_found && break 3
4464 if test -z "$ac_cv_path_EGREP"; then
4465 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4466 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4467 { (exit 1); exit 1; }; }
4470 ac_cv_path_EGREP
=$EGREP
4475 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4476 $as_echo "$ac_cv_path_EGREP" >&6; }
4477 EGREP
="$ac_cv_path_EGREP"
4480 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4481 $as_echo_n "checking for fgrep... " >&6; }
4482 if test "${ac_cv_path_FGREP+set}" = set; then
4483 $as_echo_n "(cached) " >&6
4485 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4486 then ac_cv_path_FGREP
="$GREP -F"
4488 if test -z "$FGREP"; then
4489 ac_path_FGREP_found
=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4492 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_prog
in fgrep
; do
4497 for ac_exec_ext
in '' $ac_executable_extensions; do
4498 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4500 # Check for GNU ac_path_FGREP and select it if it is found.
4501 # Check for GNU $ac_path_FGREP
4502 case `"$ac_path_FGREP" --version 2>&1` in
4504 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4507 $as_echo_n 0123456789 >"conftest.in"
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'FGREP' >> "conftest.nl"
4514 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4515 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4516 ac_count
=`expr $ac_count + 1`
4517 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_FGREP
="$ac_path_FGREP"
4520 ac_path_FGREP_max
=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4525 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4528 $ac_path_FGREP_found && break 3
4533 if test -z "$ac_cv_path_FGREP"; then
4534 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536 { (exit 1); exit 1; }; }
4539 ac_cv_path_FGREP
=$FGREP
4544 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4545 $as_echo "$ac_cv_path_FGREP" >&6; }
4546 FGREP
="$ac_cv_path_FGREP"
4549 test -z "$GREP" && GREP
=grep
4569 # Check whether --with-gnu-ld was given.
4570 if test "${with_gnu_ld+set}" = set; then
4571 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4577 if test "$GCC" = yes; then
4578 # Check if gcc -print-prog-name=ld gives a path.
4579 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4580 $as_echo_n "checking for ld used by $CC... " >&6; }
4583 # gcc leaves a trailing carriage return which upsets mingw
4584 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4586 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4589 # Accept absolute paths.
4591 re_direlt
='/[^/][^/]*/\.\./'
4592 # Canonicalize the pathname of ld
4593 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4594 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4595 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4597 test -z "$LD" && LD
="$ac_prog"
4600 # If it fails, then pretend we aren't using GCC.
4604 # If it is relative, then search for the first ld in PATH.
4608 elif test "$with_gnu_ld" = yes; then
4609 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4610 $as_echo_n "checking for GNU ld... " >&6; }
4612 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4613 $as_echo_n "checking for non-GNU ld... " >&6; }
4615 if test "${lt_cv_path_LD+set}" = set; then
4616 $as_echo_n "(cached) " >&6
4618 if test -z "$LD"; then
4619 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4620 for ac_dir
in $PATH; do
4622 test -z "$ac_dir" && ac_dir
=.
4623 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4624 lt_cv_path_LD
="$ac_dir/$ac_prog"
4625 # Check to see if the program is GNU ld. I'd rather use --version,
4626 # but apparently some variants of GNU ld only accept -v.
4627 # Break only if it was the GNU/non-GNU ld that we prefer.
4628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4629 *GNU
* |
*'with BFD'*)
4630 test "$with_gnu_ld" != no
&& break
4633 test "$with_gnu_ld" != yes && break
4640 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4645 if test -n "$LD"; then
4646 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4647 $as_echo "$LD" >&6; }
4649 { $as_echo "$as_me:$LINENO: result: no" >&5
4650 $as_echo "no" >&6; }
4652 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4653 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4654 { (exit 1); exit 1; }; }
4655 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4657 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4661 case `$LD -v 2>&1 </dev/null` in
4662 *GNU
* |
*'with BFD'*)
4663 lt_cv_prog_gnu_ld
=yes
4666 lt_cv_prog_gnu_ld
=no
4670 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4672 with_gnu_ld
=$lt_cv_prog_gnu_ld
4682 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4683 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4684 if test "${lt_cv_path_NM+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$NM"; then
4688 # Let the user override the test.
4691 lt_nm_to_check
="${ac_tool_prefix}nm"
4692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4693 lt_nm_to_check
="$lt_nm_to_check nm"
4695 for lt_tmp_nm
in $lt_nm_to_check; do
4696 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4697 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4699 test -z "$ac_dir" && ac_dir
=.
4700 tmp_nm
="$ac_dir/$lt_tmp_nm"
4701 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4702 # Check to see if the nm accepts a BSD-compat flag.
4703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4704 # nm: unknown option "B" ignored
4705 # Tru64's nm complains that /dev/null is an invalid object file
4706 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4707 */dev
/null
* |
*'Invalid file or object type'*)
4708 lt_cv_path_NM
="$tmp_nm -B"
4712 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4714 lt_cv_path_NM
="$tmp_nm -p"
4718 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4719 continue # so that we can try to find one that supports BSD flags
4728 : ${lt_cv_path_NM=no}
4731 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4732 $as_echo "$lt_cv_path_NM" >&6; }
4733 if test "$lt_cv_path_NM" != "no"; then
4736 # Didn't find any BSD compatible name lister, look for dumpbin.
4737 if test -n "$ac_tool_prefix"; then
4738 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4741 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$DUMPBIN"; then
4748 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir
=.
4755 for ac_exec_ext
in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4758 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 DUMPBIN
=$ac_cv_prog_DUMPBIN
4768 if test -n "$DUMPBIN"; then
4769 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4770 $as_echo "$DUMPBIN" >&6; }
4772 { $as_echo "$as_me:$LINENO: result: no" >&5
4773 $as_echo "no" >&6; }
4777 test -n "$DUMPBIN" && break
4780 if test -z "$DUMPBIN"; then
4781 ac_ct_DUMPBIN
=$DUMPBIN
4782 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4784 # Extract the first word of "$ac_prog", so it can be a program name with args.
4785 set dummy
$ac_prog; ac_word
=$2
4786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4791 if test -n "$ac_ct_DUMPBIN"; then
4792 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4798 test -z "$as_dir" && as_dir
=.
4799 for ac_exec_ext
in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4812 if test -n "$ac_ct_DUMPBIN"; then
4813 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4814 $as_echo "$ac_ct_DUMPBIN" >&6; }
4816 { $as_echo "$as_me:$LINENO: result: no" >&5
4817 $as_echo "no" >&6; }
4821 test -n "$ac_ct_DUMPBIN" && break
4824 if test "x$ac_ct_DUMPBIN" = x
; then
4827 case $cross_compiling:$ac_tool_warned in
4829 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831 ac_tool_warned
=yes ;;
4833 DUMPBIN
=$ac_ct_DUMPBIN
4838 if test "$DUMPBIN" != ":"; then
4842 test -z "$NM" && NM
=nm
4849 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4850 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4851 if test "${lt_cv_nm_interface+set}" = set; then
4852 $as_echo_n "(cached) " >&6
4854 lt_cv_nm_interface
="BSD nm"
4855 echo "int some_variable = 0;" > conftest.
$ac_ext
4856 (eval echo "\"\$as_me:4856: $ac_compile\"" >&5)
4857 (eval "$ac_compile" 2>conftest.err
)
4858 cat conftest.err
>&5
4859 (eval echo "\"\$as_me:4859: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4860 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4861 cat conftest.err
>&5
4862 (eval echo "\"\$as_me:4862: output\"" >&5)
4863 cat conftest.out
>&5
4864 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4865 lt_cv_nm_interface
="MS dumpbin"
4869 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4870 $as_echo "$lt_cv_nm_interface" >&6; }
4872 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4873 $as_echo_n "checking whether ln -s works... " >&6; }
4875 if test "$LN_S" = "ln -s"; then
4876 { $as_echo "$as_me:$LINENO: result: yes" >&5
4877 $as_echo "yes" >&6; }
4879 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4880 $as_echo "no, using $LN_S" >&6; }
4883 # find the maximum length of command line arguments
4884 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4885 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4886 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4887 $as_echo_n "(cached) " >&6
4894 # On DJGPP, this test can blow up pretty badly due to problems in libc
4895 # (any single argument exceeding 2000 bytes causes a buffer overrun
4896 # during glob expansion). Even if it were fixed, the result of this
4897 # check would be larger than it should be.
4898 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4902 # Under GNU Hurd, this test is not required because there is
4903 # no limit to the length of command line arguments.
4904 # Libtool will interpret -1 as no limit whatsoever
4905 lt_cv_sys_max_cmd_len
=-1;
4908 cygwin
* | mingw
* | cegcc
*)
4909 # On Win9x/ME, this test blows up -- it succeeds, but takes
4910 # about 5 minutes as the teststring grows exponentially.
4911 # Worse, since 9x/ME are not pre-emptively multitasking,
4912 # you end up with a "frozen" computer, even though with patience
4913 # the test eventually succeeds (with a max line length of 256k).
4914 # Instead, let's just punt: use the minimum linelength reported by
4915 # all of the supported platforms: 8192 (on NT/2K/XP).
4916 lt_cv_sys_max_cmd_len
=8192;
4920 # On AmigaOS with pdksh, this test takes hours, literally.
4921 # So we just punt and use a minimum line length of 8192.
4922 lt_cv_sys_max_cmd_len
=8192;
4925 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4926 # This has been around since 386BSD, at least. Likely further.
4927 if test -x /sbin
/sysctl
; then
4928 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4929 elif test -x /usr
/sbin
/sysctl
; then
4930 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4932 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4934 # And add a safety zone
4935 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4936 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4940 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4941 lt_cv_sys_max_cmd_len
=196608
4945 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4946 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4947 # nice to cause kernel panics so lets avoid the loop below.
4948 # First set a reasonable default.
4949 lt_cv_sys_max_cmd_len
=16384
4951 if test -x /sbin
/sysconfig
; then
4952 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4953 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4958 lt_cv_sys_max_cmd_len
=102400
4960 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4961 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4962 if test -n "$kargmax"; then
4963 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4965 lt_cv_sys_max_cmd_len
=32768
4969 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4970 if test -n "$lt_cv_sys_max_cmd_len"; then
4971 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4972 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4974 # Make teststring a little bigger before we do anything with it.
4975 # a 1K string should be a reasonable start.
4976 for i
in 1 2 3 4 5 6 7 8 ; do
4977 teststring
=$teststring$teststring
4979 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4980 # If test is not a shell built-in, we'll probably end up computing a
4981 # maximum length that is only half of the actual maximum length, but
4983 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4984 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4985 test $i != 17 # 1/2 MB should be enough
4988 teststring
=$teststring$teststring
4990 # Only check the string length outside the loop.
4991 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4993 # Add a significant safety factor because C++ compilers can tack on
4994 # massive amounts of additional arguments before passing them to the
4995 # linker. It appears as though 1/2 is a usable value.
4996 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5003 if test -n $lt_cv_sys_max_cmd_len ; then
5004 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5005 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5007 { $as_echo "$as_me:$LINENO: result: none" >&5
5008 $as_echo "none" >&6; }
5010 max_cmd_len
=$lt_cv_sys_max_cmd_len
5021 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5022 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5023 # Try some XSI features
5026 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5028 && eval 'test $(( 1 + 1 )) -eq 2 \
5029 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5031 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5032 $as_echo "$xsi_shell" >&6; }
5035 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5036 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5038 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5040 && lt_shell_append=yes
5041 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5042 $as_echo "$lt_shell_append" >&6; }
5045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5055 # test EBCDIC or ASCII
5056 case `echo X|tr X '\101'` in
5057 A) # ASCII based system
5058 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5059 lt_SP2NL='tr \040 \012'
5060 lt_NL2SP='tr \015\012 \040\040'
5062 *) # EBCDIC based system
5063 lt_SP2NL='tr \100 \n'
5064 lt_NL2SP='tr \r\n \100\100'
5076 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5077 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5078 if test "${lt_cv_ld_reload_flag+set}" = set; then
5079 $as_echo_n "(cached
) " >&6
5081 lt_cv_ld_reload_flag='-r'
5083 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5084 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5085 reload_flag=$lt_cv_ld_reload_flag
5086 case $reload_flag in
5088 *) reload_flag=" $reload_flag" ;;
5090 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5093 if test "$GCC" = yes; then
5094 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5109 if test -n "$ac_tool_prefix"; then
5110 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5111 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5112 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5113 $as_echo_n "checking
for $ac_word...
" >&6; }
5114 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5115 $as_echo_n "(cached
) " >&6
5117 if test -n "$OBJDUMP"; then
5118 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5128 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5137 OBJDUMP=$ac_cv_prog_OBJDUMP
5138 if test -n "$OBJDUMP"; then
5139 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5140 $as_echo "$OBJDUMP" >&6; }
5142 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5143 $as_echo "no
" >&6; }
5148 if test -z "$ac_cv_prog_OBJDUMP"; then
5149 ac_ct_OBJDUMP=$OBJDUMP
5150 # Extract the first word of "objdump
", so it can be a program name with args.
5151 set dummy objdump; ac_word=$2
5152 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5153 $as_echo_n "checking
for $ac_word...
" >&6; }
5154 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5155 $as_echo_n "(cached
) " >&6
5157 if test -n "$ac_ct_OBJDUMP"; then
5158 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5168 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5177 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5178 if test -n "$ac_ct_OBJDUMP"; then
5179 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5180 $as_echo "$ac_ct_OBJDUMP" >&6; }
5182 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5183 $as_echo "no
" >&6; }
5186 if test "x
$ac_ct_OBJDUMP" = x; then
5189 case $cross_compiling:$ac_tool_warned in
5191 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5192 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5193 ac_tool_warned=yes ;;
5195 OBJDUMP=$ac_ct_OBJDUMP
5198 OBJDUMP="$ac_cv_prog_OBJDUMP"
5201 test -z "$OBJDUMP" && OBJDUMP=objdump
5211 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5212 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5213 if test "${lt_cv_deplibs_check_method+set}" = set; then
5214 $as_echo_n "(cached
) " >&6
5216 lt_cv_file_magic_cmd='$MAGIC_CMD'
5217 lt_cv_file_magic_test_file=
5218 lt_cv_deplibs_check_method='unknown'
5219 # Need to set the preceding variable on all platforms that support
5220 # interlibrary dependencies.
5221 # 'none' -- dependencies not supported.
5222 # `unknown' -- same as none, but documents that we really don't know.
5223 # 'pass_all' -- all dependencies passed with no checks.
5224 # 'test_compile' -- check by making test program.
5225 # 'file_magic [[regex]]' -- check by looking for files in library path
5226 # which responds to the $file_magic_cmd with a given extended regex.
5227 # If you have `file' or equivalent on your system and you're not sure
5228 # whether `pass_all' will *always* work, you probably want this one.
5232 lt_cv_deplibs_check_method=pass_all
5236 lt_cv_deplibs_check_method=pass_all
5240 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5241 lt_cv_file_magic_cmd='/usr/bin/file -L'
5242 lt_cv_file_magic_test_file=/shlib/libc.so
5246 # func_win32_libid is a shell function defined in ltmain.sh
5247 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248 lt_cv_file_magic_cmd='func_win32_libid'
5252 # Base MSYS/MinGW do not provide the 'file' command needed by
5253 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5254 # unless we find 'file', for example because we are cross-compiling.
5255 if ( file / ) >/dev/null 2>&1; then
5256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5257 lt_cv_file_magic_cmd='func_win32_libid'
5259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5260 lt_cv_file_magic_cmd='$OBJDUMP -f'
5265 # use the weaker test based on 'objdump'. See mingw*.
5266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5267 lt_cv_file_magic_cmd='$OBJDUMP -f'
5270 darwin* | rhapsody*)
5271 lt_cv_deplibs_check_method=pass_all
5274 freebsd* | dragonfly*)
5275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5278 # Not sure whether the presence of OpenBSD here was a mistake.
5279 # Let's accept both of them until this is cleared up.
5280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5286 lt_cv_deplibs_check_method=pass_all
5291 lt_cv_deplibs_check_method=pass_all
5294 hpux10.20* | hpux11*)
5295 lt_cv_file_magic_cmd=/usr/bin/file
5298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5302 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]'
5303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5317 irix5* | irix6* | nonstopux*)
5319 *-32|*"-32 ") libmagic=32-bit;;
5320 *-n32|*"-n32 ") libmagic=N32;;
5321 *-64|*"-64 ") libmagic=64-bit;;
5322 *) libmagic=never-match;;
5324 lt_cv_deplibs_check_method=pass_all
5327 # This must be Linux ELF.
5328 linux* | k*bsd*-gnu)
5329 lt_cv_deplibs_check_method=pass_all
5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5342 lt_cv_file_magic_cmd=/usr/bin/file
5343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5347 lt_cv_deplibs_check_method=pass_all
5351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358 osf3* | osf4* | osf5*)
5359 lt_cv_deplibs_check_method=pass_all
5363 lt_cv_deplibs_check_method=pass_all
5367 lt_cv_deplibs_check_method=pass_all
5370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5371 lt_cv_deplibs_check_method=pass_all
5375 case $host_vendor in
5377 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]'
5378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5381 lt_cv_deplibs_check_method=pass_all
5384 lt_cv_file_magic_cmd='/bin/file'
5385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5388 lt_cv_file_magic_cmd='/bin/file'
5389 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5390 lt_cv_file_magic_test_file=/lib/libc.so
5393 lt_cv_deplibs_check_method=pass_all
5396 lt_cv_deplibs_check_method=pass_all
5402 lt_cv_deplibs_check_method=pass_all
5407 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5408 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5409 file_magic_cmd=$lt_cv_file_magic_cmd
5410 deplibs_check_method=$lt_cv_deplibs_check_method
5411 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}ar; ac_word=$2
5427 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5428 $as_echo_n "checking
for $ac_word...
" >&6; }
5429 if test "${ac_cv_prog_AR+set}" = set; then
5430 $as_echo_n "(cached
) " >&6
5432 if test -n "$AR"; then
5433 ac_cv_prog_AR="$AR" # Let the user override the test.
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_AR="${ac_tool_prefix}ar"
5443 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5453 if test -n "$AR"; then
5454 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5455 $as_echo "$AR" >&6; }
5457 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5458 $as_echo "no
" >&6; }
5463 if test -z "$ac_cv_prog_AR"; then
5465 # Extract the first word of "ar", so it can be a program name with args.
5466 set dummy ar; ac_word=$2
5467 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5468 $as_echo_n "checking
for $ac_word...
" >&6; }
5469 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5470 $as_echo_n "(cached
) " >&6
5472 if test -n "$ac_ct_AR"; then
5473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_ac_ct_AR="ar"
5483 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5492 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5493 if test -n "$ac_ct_AR"; then
5494 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5495 $as_echo "$ac_ct_AR" >&6; }
5497 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5498 $as_echo "no
" >&6; }
5501 if test "x
$ac_ct_AR" = x; then
5504 case $cross_compiling:$ac_tool_warned in
5506 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5507 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5508 ac_tool_warned=yes ;;
5516 test -z "$AR" && AR=ar
5517 test -z "$AR_FLAGS" && AR_FLAGS=cru
5529 if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5531 set dummy ${ac_tool_prefix}strip; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5533 $as_echo_n "checking
for $ac_word...
" >&6; }
5534 if test "${ac_cv_prog_STRIP+set}" = set; then
5535 $as_echo_n "(cached
) " >&6
5537 if test -n "$STRIP"; then
5538 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5548 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5557 STRIP=$ac_cv_prog_STRIP
5558 if test -n "$STRIP"; then
5559 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5560 $as_echo "$STRIP" >&6; }
5562 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5563 $as_echo "no
" >&6; }
5568 if test -z "$ac_cv_prog_STRIP"; then
5570 # Extract the first word of "strip
", so it can be a program name with args.
5571 set dummy strip; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5573 $as_echo_n "checking
for $ac_word...
" >&6; }
5574 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5575 $as_echo_n "(cached
) " >&6
5577 if test -n "$ac_ct_STRIP"; then
5578 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_ac_ct_STRIP="strip
"
5588 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5598 if test -n "$ac_ct_STRIP"; then
5599 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5600 $as_echo "$ac_ct_STRIP" >&6; }
5602 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5603 $as_echo "no
" >&6; }
5606 if test "x
$ac_ct_STRIP" = x; then
5609 case $cross_compiling:$ac_tool_warned in
5611 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5612 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5613 ac_tool_warned=yes ;;
5618 STRIP="$ac_cv_prog_STRIP"
5621 test -z "$STRIP" && STRIP=:
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5632 $as_echo_n "checking
for $ac_word...
" >&6; }
5633 if test "${ac_cv_prog_RANLIB+set}" = set; then
5634 $as_echo_n "(cached
) " >&6
5636 if test -n "$RANLIB"; then
5637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5647 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5656 RANLIB=$ac_cv_prog_RANLIB
5657 if test -n "$RANLIB"; then
5658 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5659 $as_echo "$RANLIB" >&6; }
5661 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5662 $as_echo "no
" >&6; }
5667 if test -z "$ac_cv_prog_RANLIB"; then
5668 ac_ct_RANLIB=$RANLIB
5669 # Extract the first word of "ranlib
", so it can be a program name with args.
5670 set dummy ranlib; ac_word=$2
5671 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5672 $as_echo_n "checking
for $ac_word...
" >&6; }
5673 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5674 $as_echo_n "(cached
) " >&6
5676 if test -n "$ac_ct_RANLIB"; then
5677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5687 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5696 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5697 if test -n "$ac_ct_RANLIB"; then
5698 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5699 $as_echo "$ac_ct_RANLIB" >&6; }
5701 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5702 $as_echo "no
" >&6; }
5705 if test "x
$ac_ct_RANLIB" = x; then
5708 case $cross_compiling:$ac_tool_warned in
5710 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5711 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5712 ac_tool_warned=yes ;;
5714 RANLIB=$ac_ct_RANLIB
5717 RANLIB="$ac_cv_prog_RANLIB"
5720 test -z "$RANLIB" && RANLIB=:
5727 # Determine commands to create old-style static archives.
5728 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5729 old_postinstall_cmds='chmod 644 $oldlib'
5730 old_postuninstall_cmds=
5732 if test -n "$RANLIB"; then
5735 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5738 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5741 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5777 # If no C compiler was specified, use CC.
5780 # If no C compiler flags were specified, use CFLAGS.
5781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5783 # Allow CC to be a program name with arguments.
5787 # Check for command to grab the raw symbol name followed by C symbol from nm.
5788 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5789 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5791 $as_echo_n "(cached
) " >&6
5794 # These are sane defaults that work on at least a few old systems.
5795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5797 # Character class describing NM global symbol codes.
5798 symcode='[BCDEGRST]'
5800 # Regexp to match symbols that can be accessed directly from C.
5801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5803 # Define system-specific variables.
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 symcode='[ABCDGISTW]'
5812 if test "$host_cpu" = ia64; then
5813 symcode='[ABCDEGRST]'
5817 symcode='[BCDEGRST]'
5820 symcode='[BCDEGQRST]'
5831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5839 # If we're using GNU nm, then use its standard symbol codes.
5840 case `$NM -V 2>&1` in
5841 *GNU* | *'with BFD'*)
5842 symcode='[ABCDGIRSTW]' ;;
5845 # Transform an extracted symbol line into a proper C declaration.
5846 # Some systems (esp. on ia64) link data and code symbols differently,
5847 # so use this general approach.
5848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5850 # Transform an extracted symbol line into symbol name and symbol address
5851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5852 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'"
5854 # Handle CRLF in mingw tool chain
5858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5862 # Try without a prefix underscore, then with it.
5863 for ac_symprfx in "" "_
"; do
5865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5866 symxfrm="\\1 $ac_symprfx\\2 \\2"
5868 # Write the raw and C identifiers.
5869 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5870 # Fake it for dumpbin and say T for any non-static function
5871 # and D for any global variable.
5872 # Also find C++ and __fastcall symbols from MSVC++,
5873 # which start with @ or ?.
5874 lt_cv_sys_global_symbol_pipe="$AWK '"\
5875 " {last_section=section; section=\$ 3};"\
5876 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5877 " \$ 0!~/External *\|/{next};"\
5878 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5879 " {if(hide[section]) next};"\
5880 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5881 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5882 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5883 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5884 " ' prfx
=^
$ac_symprfx"
5886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5889 # Check to see that the pipe works correctly.
5893 cat > conftest.$ac_ext <<_LT_EOF
5898 void nm_test_func(void);
5899 void nm_test_func(void){}
5903 int main(){nm_test_var='a';nm_test_func();return(0);}
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5910 (exit $ac_status); }; then
5911 # Now try to grab the symbols.
5913 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5914 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5917 (exit $ac_status); } && test -s "$nlist"; then
5918 # Try sorting and uniquifying the output.
5919 if sort "$nlist" | uniq > "$nlist"T; then
5920 mv -f "$nlist"T "$nlist"
5925 # Make sure that we snagged all the symbols we need.
5926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5928 cat <<_LT_EOF > conftest.$ac_ext
5934 # Now generate the symbol file.
5935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5937 cat <<_LT_EOF >> conftest.$ac_ext
5939 /* The mapping between symbol names and symbols. */
5944 lt__PROGRAM__LTX_preloaded_symbols[] =
5946 { "@PROGRAM@
", (void *) 0 },
5948 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5949 cat <<\_LT_EOF >> conftest.$ac_ext
5953 /* This works around a problem in FreeBSD linker */
5954 #ifdef FREEBSD_WORKAROUND
5955 static const void *lt_preloaded_setup() {
5956 return lt__PROGRAM__LTX_preloaded_symbols;
5964 # Now try linking the two files.
5965 mv conftest.$ac_objext conftstm.$ac_objext
5966 lt_save_LIBS="$LIBS"
5967 lt_save_CFLAGS="$CFLAGS"
5968 LIBS="conftstm.
$ac_objext"
5969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971 (eval $ac_link) 2>&5
5973 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5974 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5977 LIBS="$lt_save_LIBS"
5978 CFLAGS="$lt_save_CFLAGS"
5980 echo "cannot
find nm_test_func
in $nlist" >&5
5983 echo "cannot
find nm_test_var
in $nlist" >&5
5986 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5989 echo "$progname: failed program was
:" >&5
5990 cat conftest.$ac_ext >&5
5992 rm -rf conftest* conftst*
5994 # Do not use the global_symbol_pipe unless it works.
5995 if test "$pipe_works" = yes; then
5998 lt_cv_sys_global_symbol_pipe=
6004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6005 lt_cv_sys_global_symbol_to_cdecl=
6007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6008 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
6009 $as_echo "failed
" >&6; }
6011 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
6012 $as_echo "ok
" >&6; }
6037 # Check whether --enable-libtool-lock was given.
6038 if test "${enable_libtool_lock+set}" = set; then
6039 enableval=$enable_libtool_lock;
6042 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6044 # Some flags need to be propagated to the compiler or linker for good
6048 # Find out which ABI we are using.
6049 echo 'int i;' > conftest.$ac_ext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>&5
6053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6054 (exit $ac_status); }; then
6055 case `/usr/bin/file conftest.$ac_objext` in
6067 # Find out which ABI we are using.
6068 echo '#line 6068 "configure
"' > conftest.$ac_ext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>&5
6072 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6073 (exit $ac_status); }; then
6074 if test "$lt_cv_prog_gnu_ld" = yes; then
6075 case `/usr/bin/file conftest.$ac_objext` in
6077 LD="${LD-ld} -melf32bsmip"
6080 LD="${LD-ld} -melf32bmipn32"
6083 LD="${LD-ld} -melf64bmip"
6087 case `/usr/bin/file conftest.$ac_objext` in
6103 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6104 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6105 # Find out which ABI we are using.
6106 echo 'int i;' > conftest.$ac_ext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6111 (exit $ac_status); }; then
6112 case `/usr/bin/file conftest.o` in
6115 x86_64-*kfreebsd*-gnu)
6116 LD="${LD-ld} -m elf_i386_fbsd
"
6119 LD="${LD-ld} -m elf_i386
"
6121 ppc64-*linux*|powerpc64-*linux*)
6122 LD="${LD-ld} -m elf32ppclinux
"
6125 LD="${LD-ld} -m elf_s390
"
6128 LD="${LD-ld} -m elf32_sparc
"
6134 x86_64-*kfreebsd*-gnu)
6135 LD="${LD-ld} -m elf_x86_64_fbsd
"
6138 LD="${LD-ld} -m elf_x86_64
"
6140 ppc*-*linux*|powerpc*-*linux*)
6141 LD="${LD-ld} -m elf64ppc
"
6143 s390*-*linux*|s390*-*tpf*)
6144 LD="${LD-ld} -m elf64_s390
"
6147 LD="${LD-ld} -m elf64_sparc
"
6157 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6158 SAVE_CFLAGS="$CFLAGS"
6159 CFLAGS="$CFLAGS -belf"
6160 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6161 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6162 if test "${lt_cv_cc_needs_belf+set}" = set; then
6163 $as_echo_n "(cached
) " >&6
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6171 cat >conftest.$ac_ext <<_ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6193 $as_echo "$ac_try_echo") >&5
6194 (eval "$ac_link") 2>conftest.er1
6196 grep -v '^ *+' conftest.er1 >conftest.err
6198 cat conftest.err >&5
6199 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest$ac_exeext && {
6204 test "$cross_compiling" = yes ||
6205 $as_test_x conftest$ac_exeext
6207 lt_cv_cc_needs_belf=yes
6209 $as_echo "$as_me: failed program was
:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6212 lt_cv_cc_needs_belf=no
6215 rm -rf conftest.dSYM
6216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6217 conftest$ac_exeext conftest.$ac_ext
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6227 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6228 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6229 CFLAGS="$SAVE_CFLAGS"
6233 # Find out which ABI we are using.
6234 echo 'int i;' > conftest.$ac_ext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>&5
6238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6239 (exit $ac_status); }; then
6240 case `/usr/bin/file conftest.o` in
6242 case $lt_cv_prog_gnu_ld in
6243 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6245 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6257 need_locks="$enable_libtool_lock"
6261 rhapsody* | darwin*)
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6265 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6266 $as_echo_n "checking
for $ac_word...
" >&6; }
6267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6268 $as_echo_n "(cached
) " >&6
6270 if test -n "$DSYMUTIL"; then
6271 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6281 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6290 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6291 if test -n "$DSYMUTIL"; then
6292 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6293 $as_echo "$DSYMUTIL" >&6; }
6295 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6296 $as_echo "no
" >&6; }
6301 if test -z "$ac_cv_prog_DSYMUTIL"; then
6302 ac_ct_DSYMUTIL=$DSYMUTIL
6303 # Extract the first word of "dsymutil
", so it can be a program name with args.
6304 set dummy dsymutil; ac_word=$2
6305 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6306 $as_echo_n "checking
for $ac_word...
" >&6; }
6307 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6308 $as_echo_n "(cached
) " >&6
6310 if test -n "$ac_ct_DSYMUTIL"; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6321 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6330 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6331 if test -n "$ac_ct_DSYMUTIL"; then
6332 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6333 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6335 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6336 $as_echo "no
" >&6; }
6339 if test "x
$ac_ct_DSYMUTIL" = x; then
6342 case $cross_compiling:$ac_tool_warned in
6344 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6345 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6346 ac_tool_warned=yes ;;
6348 DSYMUTIL=$ac_ct_DSYMUTIL
6351 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6357 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6358 $as_echo_n "checking
for $ac_word...
" >&6; }
6359 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6360 $as_echo_n "(cached
) " >&6
6362 if test -n "$NMEDIT"; then
6363 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6373 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6382 NMEDIT=$ac_cv_prog_NMEDIT
6383 if test -n "$NMEDIT"; then
6384 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6385 $as_echo "$NMEDIT" >&6; }
6387 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6388 $as_echo "no
" >&6; }
6393 if test -z "$ac_cv_prog_NMEDIT"; then
6394 ac_ct_NMEDIT=$NMEDIT
6395 # Extract the first word of "nmedit
", so it can be a program name with args.
6396 set dummy nmedit; ac_word=$2
6397 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6398 $as_echo_n "checking
for $ac_word...
" >&6; }
6399 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6400 $as_echo_n "(cached
) " >&6
6402 if test -n "$ac_ct_NMEDIT"; then
6403 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6413 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6422 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6423 if test -n "$ac_ct_NMEDIT"; then
6424 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6425 $as_echo "$ac_ct_NMEDIT" >&6; }
6427 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6428 $as_echo "no
" >&6; }
6431 if test "x
$ac_ct_NMEDIT" = x; then
6434 case $cross_compiling:$ac_tool_warned in
6436 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6437 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6438 ac_tool_warned=yes ;;
6440 NMEDIT=$ac_ct_NMEDIT
6443 NMEDIT="$ac_cv_prog_NMEDIT"
6446 if test -n "$ac_tool_prefix"; then
6447 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6449 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6450 $as_echo_n "checking
for $ac_word...
" >&6; }
6451 if test "${ac_cv_prog_LIPO+set}" = set; then
6452 $as_echo_n "(cached
) " >&6
6454 if test -n "$LIPO"; then
6455 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6465 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6474 LIPO=$ac_cv_prog_LIPO
6475 if test -n "$LIPO"; then
6476 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6477 $as_echo "$LIPO" >&6; }
6479 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6480 $as_echo "no
" >&6; }
6485 if test -z "$ac_cv_prog_LIPO"; then
6487 # Extract the first word of "lipo
", so it can be a program name with args.
6488 set dummy lipo; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6490 $as_echo_n "checking
for $ac_word...
" >&6; }
6491 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6492 $as_echo_n "(cached
) " >&6
6494 if test -n "$ac_ct_LIPO"; then
6495 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_LIPO="lipo
"
6505 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6515 if test -n "$ac_ct_LIPO"; then
6516 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6517 $as_echo "$ac_ct_LIPO" >&6; }
6519 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6520 $as_echo "no
" >&6; }
6523 if test "x
$ac_ct_LIPO" = x; then
6526 case $cross_compiling:$ac_tool_warned in
6528 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6529 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6530 ac_tool_warned=yes ;;
6535 LIPO="$ac_cv_prog_LIPO"
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}otool; ac_word=$2
6541 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6542 $as_echo_n "checking
for $ac_word...
" >&6; }
6543 if test "${ac_cv_prog_OTOOL+set}" = set; then
6544 $as_echo_n "(cached
) " >&6
6546 if test -n "$OTOOL"; then
6547 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6557 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6566 OTOOL=$ac_cv_prog_OTOOL
6567 if test -n "$OTOOL"; then
6568 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6569 $as_echo "$OTOOL" >&6; }
6571 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6572 $as_echo "no
" >&6; }
6577 if test -z "$ac_cv_prog_OTOOL"; then
6579 # Extract the first word of "otool
", so it can be a program name with args.
6580 set dummy otool; ac_word=$2
6581 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6582 $as_echo_n "checking
for $ac_word...
" >&6; }
6583 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6584 $as_echo_n "(cached
) " >&6
6586 if test -n "$ac_ct_OTOOL"; then
6587 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_OTOOL="otool
"
6597 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6606 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6607 if test -n "$ac_ct_OTOOL"; then
6608 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6609 $as_echo "$ac_ct_OTOOL" >&6; }
6611 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6612 $as_echo "no
" >&6; }
6615 if test "x
$ac_ct_OTOOL" = x; then
6618 case $cross_compiling:$ac_tool_warned in
6620 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6621 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6622 ac_tool_warned=yes ;;
6627 OTOOL="$ac_cv_prog_OTOOL"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6633 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6634 $as_echo_n "checking
for $ac_word...
" >&6; }
6635 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6636 $as_echo_n "(cached
) " >&6
6638 if test -n "$OTOOL64"; then
6639 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6649 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6658 OTOOL64=$ac_cv_prog_OTOOL64
6659 if test -n "$OTOOL64"; then
6660 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6661 $as_echo "$OTOOL64" >&6; }
6663 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6664 $as_echo "no
" >&6; }
6669 if test -z "$ac_cv_prog_OTOOL64"; then
6670 ac_ct_OTOOL64=$OTOOL64
6671 # Extract the first word of "otool64
", so it can be a program name with args.
6672 set dummy otool64; ac_word=$2
6673 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6674 $as_echo_n "checking
for $ac_word...
" >&6; }
6675 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6676 $as_echo_n "(cached
) " >&6
6678 if test -n "$ac_ct_OTOOL64"; then
6679 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6689 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6698 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6699 if test -n "$ac_ct_OTOOL64"; then
6700 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6701 $as_echo "$ac_ct_OTOOL64" >&6; }
6703 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6704 $as_echo "no
" >&6; }
6707 if test "x
$ac_ct_OTOOL64" = x; then
6710 case $cross_compiling:$ac_tool_warned in
6712 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6713 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6714 ac_tool_warned=yes ;;
6716 OTOOL64=$ac_ct_OTOOL64
6719 OTOOL64="$ac_cv_prog_OTOOL64"
6748 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6749 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6750 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6751 $as_echo_n "(cached
) " >&6
6753 lt_cv_apple_cc_single_mod=no
6754 if test -z "${LT_MULTI_MODULE}"; then
6755 # By default we will add the -single_module flag. You can override
6756 # by either setting the environment variable LT_MULTI_MODULE
6757 # non-empty at configure time, or by adding -multi_module to the
6759 rm -rf libconftest.dylib*
6760 echo "int foo
(void
){return 1;}" > conftest.c
6761 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6762 -dynamiclib -Wl,-single_module conftest.c
" >&5
6763 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6764 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6766 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6767 lt_cv_apple_cc_single_mod=yes
6769 cat conftest.err >&5
6771 rm -rf libconftest.dylib*
6775 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6776 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6777 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6778 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6779 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6780 $as_echo_n "(cached
) " >&6
6782 lt_cv_ld_exported_symbols_list=no
6783 save_LDFLAGS=$LDFLAGS
6784 echo "_main
" > conftest.sym
6785 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6801 rm -f conftest.$ac_objext conftest$ac_exeext
6802 if { (ac_try="$ac_link"
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6808 $as_echo "$ac_try_echo") >&5
6809 (eval "$ac_link") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest$ac_exeext && {
6819 test "$cross_compiling" = yes ||
6820 $as_test_x conftest$ac_exeext
6822 lt_cv_ld_exported_symbols_list=yes
6824 $as_echo "$as_me: failed program was
:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 lt_cv_ld_exported_symbols_list=no
6830 rm -rf conftest.dSYM
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832 conftest$ac_exeext conftest.$ac_ext
6833 LDFLAGS="$save_LDFLAGS"
6836 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6837 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6839 rhapsody* | darwin1.[012])
6840 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6842 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6843 darwin*) # darwin 5.x on
6844 # if running on 10.5 or later, the deployment target defaults
6845 # to the OS version, if on x86, and 10.4, the deployment
6846 # target defaults to 10.4. Don't you love it?
6847 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6848 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6849 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6851 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6853 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6857 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6858 _lt_dar_single_mod='$single_module'
6860 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6861 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6863 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6865 if test "$DSYMUTIL" != ":"; then
6866 _lt_dsymutil='~$DSYMUTIL $lib || :'
6874 ac_cpp='$CPP $CPPFLAGS'
6875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6879 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6880 # On Suns, sometimes $CPP names a directory.
6881 if test -n "$CPP" && test -d "$CPP"; then
6884 if test -z "$CPP"; then
6885 if test "${ac_cv_prog_CPP+set}" = set; then
6886 $as_echo_n "(cached
) " >&6
6888 # Double quotes because CPP needs to be expanded
6889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6892 for ac_c_preproc_warn_flag in '' yes
6894 # Use a header file that comes with gcc, so configuring glibc
6895 # with a fresh cross-compiler works.
6896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6897 # <limits.h> exists even on freestanding compilers.
6898 # On the NeXT, cc -E runs the code through the compiler's parser,
6899 # not just through cpp. "Syntax error
" is here to catch this case.
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6907 # include <limits.h>
6909 # include <assert.h>
6913 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6919 $as_echo "$ac_try_echo") >&5
6920 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6926 (exit $ac_status); } >/dev/null && {
6927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6932 $as_echo "$as_me: failed program was
:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 # Broken: fails on valid input.
6939 rm -f conftest.err conftest.$ac_ext
6941 # OK, works on sane cases. Now check whether nonexistent headers
6942 # can be detected and how.
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 #include <ac_nonexistent.h>
6951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6956 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6964 (exit $ac_status); } >/dev/null && {
6965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6968 # Broken: success on invalid input.
6971 $as_echo "$as_me: failed program was
:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 # Passes both tests.
6979 rm -f conftest.err conftest.$ac_ext
6982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6983 rm -f conftest.err conftest.$ac_ext
6984 if $ac_preproc_ok; then
6996 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6997 $as_echo "$CPP" >&6; }
6999 for ac_c_preproc_warn_flag in '' yes
7001 # Use a header file that comes with gcc, so configuring glibc
7002 # with a fresh cross-compiler works.
7003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004 # <limits.h> exists even on freestanding compilers.
7005 # On the NeXT, cc -E runs the code through the compiler's parser,
7006 # not just through cpp. "Syntax error
" is here to catch this case.
7007 cat >conftest.$ac_ext <<_ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7014 # include <limits.h>
7016 # include <assert.h>
7020 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7026 $as_echo "$ac_try_echo") >&5
7027 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7033 (exit $ac_status); } >/dev/null && {
7034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7035 test ! -s conftest.err
7039 $as_echo "$as_me: failed program was
:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7042 # Broken: fails on valid input.
7046 rm -f conftest.err conftest.$ac_ext
7048 # OK, works on sane cases. Now check whether nonexistent headers
7049 # can be detected and how.
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <ac_nonexistent.h>
7058 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7064 $as_echo "$ac_try_echo") >&5
7065 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7071 (exit $ac_status); } >/dev/null && {
7072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7075 # Broken: success on invalid input.
7078 $as_echo "$as_me: failed program was
:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7081 # Passes both tests.
7086 rm -f conftest.err conftest.$ac_ext
7089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7090 rm -f conftest.err conftest.$ac_ext
7091 if $ac_preproc_ok; then
7094 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7096 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7097 See \`config.log' for more details.
" >&5
7098 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7099 See \
`config.log' for more details." >&2;}
7100 { (exit 1); exit 1; }; }; }
7104 ac_cpp='$CPP $CPPFLAGS'
7105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7110 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7111 $as_echo_n "checking for ANSI C header files... " >&6; }
7112 if test "${ac_cv_header_stdc+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7138 *) ac_try_echo
=$ac_try;;
7140 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1
>conftest.err
7146 cat conftest.err
>&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.
$ac_objext; then
7152 ac_cv_header_stdc
=yes
7154 $as_echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.
$ac_ext >&5
7157 ac_cv_header_stdc
=no
7160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7162 if test $ac_cv_header_stdc = yes; then
7163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7164 cat >conftest.
$ac_ext <<_ACEOF
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7174 $EGREP "memchr" >/dev
/null
2>&1; then
7177 ac_cv_header_stdc
=no
7183 if test $ac_cv_header_stdc = yes; then
7184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7185 cat >conftest.
$ac_ext <<_ACEOF
7188 cat confdefs.h
>>conftest.
$ac_ext
7189 cat >>conftest.
$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "free" >/dev
/null
2>&1; then
7198 ac_cv_header_stdc
=no
7204 if test $ac_cv_header_stdc = yes; then
7205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7206 if test "$cross_compiling" = yes; then
7209 cat >conftest.
$ac_ext <<_ACEOF
7212 cat confdefs.h
>>conftest.
$ac_ext
7213 cat >>conftest.
$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7217 #if ((' ' & 0x0FF) == 0x020)
7218 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7219 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7221 # define ISLOWER(c) \
7222 (('a' <= (c) && (c) <= 'i') \
7223 || ('j' <= (c) && (c) <= 'r') \
7224 || ('s' <= (c) && (c) <= 'z'))
7225 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7228 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7233 for (i = 0; i < 256; i++)
7234 if (XOR (islower (i), ISLOWER (i))
7235 || toupper (i) != TOUPPER (i))
7240 rm -f conftest
$ac_exeext
7241 if { (ac_try
="$ac_link"
7243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248 (eval "$ac_link") 2>&5
7250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252 { (case "(($ac_try" in
7253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7254 *) ac_try_echo
=$ac_try;;
7256 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7257 $as_echo "$ac_try_echo") >&5
7258 (eval "$ac_try") 2>&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 $as_echo "$as_me: program exited with status $ac_status" >&5
7265 $as_echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.
$ac_ext >&5
7269 ac_cv_header_stdc
=no
7271 rm -rf conftest.dSYM
7272 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7278 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7279 $as_echo "$ac_cv_header_stdc" >&6; }
7280 if test $ac_cv_header_stdc = yes; then
7282 cat >>confdefs.h
<<\_ACEOF
7283 #define STDC_HEADERS 1
7288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7298 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7299 inttypes.h stdint.h unistd.h
7301 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7303 $as_echo_n "checking for $ac_header... " >&6; }
7304 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7305 $as_echo_n "(cached) " >&6
7307 cat >conftest.
$ac_ext <<_ACEOF
7310 cat confdefs.h
>>conftest.
$ac_ext
7311 cat >>conftest.
$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7315 #include <$ac_header>
7317 rm -f conftest.
$ac_objext
7318 if { (ac_try
="$ac_compile"
7320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324 $as_echo "$ac_try_echo") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7335 eval "$as_ac_Header=yes"
7337 $as_echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 eval "$as_ac_Header=no"
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 ac_res=`eval 'as_val=${'$as_ac_Header'}
7346 $as_echo "$as_val"'`
7347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7348 $as_echo "$ac_res" >&6; }
7349 as_val=`eval 'as_val=${'$as_ac_Header'}
7350 $as_echo "$as_val"'`
7351 if test "x$as_val" = x""yes; then
7352 cat >>confdefs.h <<_ACEOF
7353 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7362 for ac_header in dlfcn.h
7364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7366 $as_echo_n "checking for $ac_header... " >&6; }
7367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7368 $as_echo_n "(cached) " >&6
7370 cat >conftest.$ac_ext <<_ACEOF
7373 cat confdefs.h >>conftest.$ac_ext
7374 cat >>conftest.$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 $ac_includes_default
7378 #include <$ac_header>
7380 rm -f conftest.$ac_objext
7381 if { (ac_try="$ac_compile"
7383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7384 *) ac_try_echo
=$ac_try;;
7386 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1
>conftest.err
7392 cat conftest.err
>&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.
$ac_objext; then
7398 eval "$as_ac_Header=yes"
7400 $as_echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.
$ac_ext >&5
7403 eval "$as_ac_Header=no"
7406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7408 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7409 $as_echo "$as_val"'`
7410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7411 $as_echo "$ac_res" >&6; }
7412 as_val
=`eval 'as_val=${'$as_ac_Header'}
7413 $as_echo "$as_val"'`
7414 if test "x$as_val" = x
""yes; then
7415 cat >>confdefs.h
<<_ACEOF
7416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7435 # Check whether --enable-shared was given.
7436 if test "${enable_shared+set}" = set; then
7437 enableval
=$enable_shared; p
=${PACKAGE-default}
7439 yes) enable_shared
=yes ;;
7440 no
) enable_shared
=no
;;
7443 # Look at the argument we got. We use all the common list separators.
7444 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7445 for pkg
in $enableval; do
7447 if test "X$pkg" = "X$p"; then
7466 # Check whether --enable-static was given.
7467 if test "${enable_static+set}" = set; then
7468 enableval
=$enable_static; p
=${PACKAGE-default}
7470 yes) enable_static
=yes ;;
7471 no
) enable_static
=no
;;
7474 # Look at the argument we got. We use all the common list separators.
7475 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7476 for pkg
in $enableval; do
7478 if test "X$pkg" = "X$p"; then
7498 # Check whether --with-pic was given.
7499 if test "${with_pic+set}" = set; then
7500 withval
=$with_pic; pic_mode
="$withval"
7506 test -z "$pic_mode" && pic_mode
=default
7514 # Check whether --enable-fast-install was given.
7515 if test "${enable_fast_install+set}" = set; then
7516 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7518 yes) enable_fast_install
=yes ;;
7519 no
) enable_fast_install
=no
;;
7521 enable_fast_install
=no
7522 # Look at the argument we got. We use all the common list separators.
7523 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7524 for pkg
in $enableval; do
7526 if test "X$pkg" = "X$p"; then
7527 enable_fast_install
=yes
7534 enable_fast_install
=yes
7547 # This can be used to rebuild libtool when needed
7548 LIBTOOL_DEPS
="$ltmain"
7550 # Always use our own libtool.
7551 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7577 test -z "$LN_S" && LN_S
="ln -s"
7592 if test -n "${ZSH_VERSION+set}" ; then
7593 setopt NO_GLOB_SUBST
7596 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7597 $as_echo_n "checking for objdir... " >&6; }
7598 if test "${lt_cv_objdir+set}" = set; then
7599 $as_echo_n "(cached) " >&6
7601 rm -f .libs
2>/dev
/null
7602 mkdir .libs
2>/dev
/null
7603 if test -d .libs
; then
7606 # MS-DOS does not allow filenames that begin with a dot.
7609 rmdir .libs
2>/dev
/null
7611 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7612 $as_echo "$lt_cv_objdir" >&6; }
7613 objdir
=$lt_cv_objdir
7619 cat >>confdefs.h
<<_ACEOF
7620 #define LT_OBJDIR "$lt_cv_objdir/"
7641 # AIX sometimes has problems with the GCC collect2 program. For some
7642 # reason, if we set the COLLECT_NAMES environment variable, the problems
7643 # vanish in a puff of smoke.
7644 if test "X${COLLECT_NAMES+set}" != Xset
; then
7646 export COLLECT_NAMES
7651 # Sed substitution that helps us do robust quoting. It backslashifies
7652 # metacharacters that are still active within double-quoted strings.
7653 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7655 # Same as above, but do not quote variable references.
7656 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7658 # Sed substitution to delay expansion of an escaped shell variable in a
7659 # double_quote_subst'ed string.
7660 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7662 # Sed substitution to delay expansion of an escaped single quote.
7663 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7665 # Sed substitution to avoid accidental globbing in evaled expressions
7666 no_glob_subst
='s/\*/\\\*/g'
7670 can_build_shared
=yes
7672 # All known linkers require a `.a' archive for static linking (except MSVC,
7673 # which needs '.lib').
7676 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7679 old_CFLAGS
="$CFLAGS"
7681 # Set sane defaults for various variables
7682 test -z "$CC" && CC
=cc
7683 test -z "$LTCC" && LTCC
=$CC
7684 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7685 test -z "$LD" && LD
=ld
7686 test -z "$ac_objext" && ac_objext
=o
7688 for cc_temp
in $compiler""; do
7690 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7691 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7696 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7699 # Only perform the check for file, if the check method requires it
7700 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7701 case $deplibs_check_method in
7703 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7704 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7705 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7707 $as_echo_n "(cached) " >&6
7711 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7714 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7715 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7716 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7717 for ac_dir
in $ac_dummy; do
7719 test -z "$ac_dir" && ac_dir
=.
7720 if test -f $ac_dir/${ac_tool_prefix}file; then
7721 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7722 if test -n "$file_magic_test_file"; then
7723 case $deplibs_check_method in
7725 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7726 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7727 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7728 $EGREP "$file_magic_regex" > /dev
/null
; then
7733 *** Warning: the command libtool uses to detect shared libraries,
7734 *** $file_magic_cmd, produces output that libtool cannot recognize.
7735 *** The result is that libtool may fail to recognize shared libraries
7736 *** as such. This will affect the creation of libtool libraries that
7737 *** depend on shared libraries, but programs linked with such libtool
7738 *** libraries will work regardless of this problem. Nevertheless, you
7739 *** may want to report the problem to your system manager and/or to
7740 *** bug-libtool@gnu.org
7750 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7755 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7756 if test -n "$MAGIC_CMD"; then
7757 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7758 $as_echo "$MAGIC_CMD" >&6; }
7760 { $as_echo "$as_me:$LINENO: result: no" >&5
7761 $as_echo "no" >&6; }
7768 if test -z "$lt_cv_path_MAGIC_CMD"; then
7769 if test -n "$ac_tool_prefix"; then
7770 { $as_echo "$as_me:$LINENO: checking for file" >&5
7771 $as_echo_n "checking for file... " >&6; }
7772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7773 $as_echo_n "(cached) " >&6
7777 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7780 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7781 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7782 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7783 for ac_dir
in $ac_dummy; do
7785 test -z "$ac_dir" && ac_dir
=.
7786 if test -f $ac_dir/file; then
7787 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7788 if test -n "$file_magic_test_file"; then
7789 case $deplibs_check_method in
7791 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7792 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7793 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7794 $EGREP "$file_magic_regex" > /dev
/null
; then
7799 *** Warning: the command libtool uses to detect shared libraries,
7800 *** $file_magic_cmd, produces output that libtool cannot recognize.
7801 *** The result is that libtool may fail to recognize shared libraries
7802 *** as such. This will affect the creation of libtool libraries that
7803 *** depend on shared libraries, but programs linked with such libtool
7804 *** libraries will work regardless of this problem. Nevertheless, you
7805 *** may want to report the problem to your system manager and/or to
7806 *** bug-libtool@gnu.org
7816 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7821 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7822 if test -n "$MAGIC_CMD"; then
7823 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7824 $as_echo "$MAGIC_CMD" >&6; }
7826 { $as_echo "$as_me:$LINENO: result: no" >&5
7827 $as_echo "no" >&6; }
7840 # Use C for the default configuration in the libtool script
7844 ac_cpp
='$CPP $CPPFLAGS'
7845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7850 # Source file extension for C test sources.
7853 # Object file extension for compiled C test sources.
7857 # Code to be used in simple compile tests
7858 lt_simple_compile_test_code
="int some_variable = 0;"
7860 # Code to be used in simple link tests
7861 lt_simple_link_test_code
='int main(){return(0);}'
7869 # If no C compiler was specified, use CC.
7872 # If no C compiler flags were specified, use CFLAGS.
7873 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7875 # Allow CC to be a program name with arguments.
7878 # Save the default compiler, since it gets overwritten when the other
7879 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7880 compiler_DEFAULT
=$CC
7882 # save warnings/boilerplate of simple test code
7883 ac_outfile
=conftest.
$ac_objext
7884 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7885 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7886 _lt_compiler_boilerplate
=`cat conftest.err`
7889 ac_outfile
=conftest.
$ac_objext
7890 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7891 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7892 _lt_linker_boilerplate
=`cat conftest.err`
7897 ## There is no encapsulation within the following macros, do not change
7898 ## the running order or otherwise move them around unless you know exactly
7899 ## what you are doing...
7900 if test -n "$compiler"; then
7902 lt_prog_compiler_no_builtin_flag
=
7904 if test "$GCC" = yes; then
7905 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7907 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7908 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7910 $as_echo_n "(cached) " >&6
7912 lt_cv_prog_compiler_rtti_exceptions
=no
7913 ac_outfile
=conftest.
$ac_objext
7914 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7915 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7916 # Insert the option either (1) after the last *FLAGS variable, or
7917 # (2) before a word containing "conftest.", or (3) at the end.
7918 # Note that $ac_compile itself does not contain backslashes and begins
7919 # with a dollar sign (not a hyphen), so the echo should work correctly.
7920 # The option is referenced via a variable to avoid confusing sed.
7921 lt_compile
=`echo "$ac_compile" | $SED \
7922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7924 -e 's:$: $lt_compiler_flag:'`
7925 (eval echo "\"\$as_me:7925: $lt_compile\"" >&5)
7926 (eval "$lt_compile" 2>conftest.err
)
7928 cat conftest.err
>&5
7929 echo "$as_me:7929: \$? = $ac_status" >&5
7930 if (exit $ac_status) && test -s "$ac_outfile"; then
7931 # The compiler can only warn and ignore the option if not recognized
7932 # So say no if there are warnings other than the usual output.
7933 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7934 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7935 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7936 lt_cv_prog_compiler_rtti_exceptions
=yes
7942 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7943 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7945 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7946 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7958 lt_prog_compiler_wl
=
7959 lt_prog_compiler_pic
=
7960 lt_prog_compiler_static
=
7962 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7965 if test "$GCC" = yes; then
7966 lt_prog_compiler_wl
='-Wl,'
7967 lt_prog_compiler_static
='-static'
7971 # All AIX code is PIC.
7972 if test "$host_cpu" = ia64
; then
7973 # AIX 5 now supports IA64 processor
7974 lt_prog_compiler_static
='-Bstatic'
7981 # see comment about AmigaOS4 .so support
7982 lt_prog_compiler_pic
='-fPIC'
7985 # FIXME: we need at least 68020 code to build shared libraries, but
7986 # adding the `-m68020' flag to GCC prevents building anything better,
7988 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7993 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7994 # PIC is the default for these OSes.
7997 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7998 # This hack is so that the source file can tell whether it is being
7999 # built for inclusion in a dll (and should export symbols for example).
8000 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8001 # (--disable-auto-import) libraries
8002 lt_prog_compiler_pic
='-DDLL_EXPORT'
8005 darwin
* | rhapsody
*)
8006 # PIC is the default on this platform
8007 # Common symbols not allowed in MH_DYLIB files
8008 lt_prog_compiler_pic
='-fno-common'
8012 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8014 # sets the default TLS model and affects inlining.
8020 lt_prog_compiler_pic
='-fPIC'
8026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027 # Instead, we relocate shared libraries at runtime.
8031 # Just because we use GCC doesn't mean we suddenly get shared libraries
8032 # on systems that don't support them.
8033 lt_prog_compiler_can_build_shared
=no
8038 # QNX uses GNU C++, but need to define -shared option too, otherwise
8040 lt_prog_compiler_pic
='-fPIC -shared'
8044 if test -d /usr
/nec
; then
8045 lt_prog_compiler_pic
=-Kconform_pic
8050 lt_prog_compiler_pic
='-fPIC'
8054 # PORTME Check for flag to pass linker flags through the system compiler.
8057 lt_prog_compiler_wl
='-Wl,'
8058 if test "$host_cpu" = ia64
; then
8059 # AIX 5 now supports IA64 processor
8060 lt_prog_compiler_static
='-Bstatic'
8062 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8066 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8067 # This hack is so that the source file can tell whether it is being
8068 # built for inclusion in a dll (and should export symbols for example).
8069 lt_prog_compiler_pic
='-DDLL_EXPORT'
8072 hpux9
* | hpux10
* | hpux11
*)
8073 lt_prog_compiler_wl
='-Wl,'
8074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8081 lt_prog_compiler_pic
='+Z'
8084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8085 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8088 irix5
* | irix6
* | nonstopux
*)
8089 lt_prog_compiler_wl
='-Wl,'
8090 # PIC (with -KPIC) is the default.
8091 lt_prog_compiler_static
='-non_shared'
8094 linux
* | k
*bsd
*-gnu)
8095 case $cc_basename in
8096 # old Intel for x86_64 which still supported -KPIC.
8098 lt_prog_compiler_wl
='-Wl,'
8099 lt_prog_compiler_pic
='-KPIC'
8100 lt_prog_compiler_static
='-static'
8102 # icc used to be incompatible with GCC.
8103 # ICC 10 doesn't accept -KPIC any more.
8105 lt_prog_compiler_wl
='-Wl,'
8106 lt_prog_compiler_pic
='-fPIC'
8107 lt_prog_compiler_static
='-static'
8109 # Lahey Fortran 8.1.
8111 lt_prog_compiler_wl
='-Wl,'
8112 lt_prog_compiler_pic
='--shared'
8113 lt_prog_compiler_static
='--static'
8115 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8116 # Portland Group compilers (*not* the Pentium gcc compiler,
8117 # which looks to be a dead project)
8118 lt_prog_compiler_wl
='-Wl,'
8119 lt_prog_compiler_pic
='-fpic'
8120 lt_prog_compiler_static
='-Bstatic'
8123 lt_prog_compiler_wl
='-Wl,'
8124 # All Alpha code is PIC.
8125 lt_prog_compiler_static
='-non_shared'
8128 # IBM XL C 8.0/Fortran 10.1 on PPC
8129 lt_prog_compiler_wl
='-Wl,'
8130 lt_prog_compiler_pic
='-qpic'
8131 lt_prog_compiler_static
='-qstaticlink'
8134 case `$CC -V 2>&1 | sed 5q` in
8137 lt_prog_compiler_pic
='-KPIC'
8138 lt_prog_compiler_static
='-Bstatic'
8139 lt_prog_compiler_wl
='-Wl,'
8142 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8143 lt_prog_compiler_pic
='-KPIC'
8144 lt_prog_compiler_static
='-Bstatic'
8145 lt_prog_compiler_wl
=''
8153 lt_prog_compiler_pic
='-KPIC'
8154 lt_prog_compiler_static
='-Bstatic'
8158 # QNX uses GNU C++, but need to define -shared option too, otherwise
8160 lt_prog_compiler_pic
='-fPIC -shared'
8163 osf3
* | osf4
* | osf5
*)
8164 lt_prog_compiler_wl
='-Wl,'
8165 # All OSF/1 code is PIC.
8166 lt_prog_compiler_static
='-non_shared'
8170 lt_prog_compiler_static
='-non_shared'
8174 lt_prog_compiler_pic
='-KPIC'
8175 lt_prog_compiler_static
='-Bstatic'
8176 case $cc_basename in
8178 lt_prog_compiler_wl
='-Qoption ld ';;
8180 lt_prog_compiler_wl
='-Wl,';;
8185 lt_prog_compiler_wl
='-Qoption ld '
8186 lt_prog_compiler_pic
='-PIC'
8187 lt_prog_compiler_static
='-Bstatic'
8190 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8191 lt_prog_compiler_wl
='-Wl,'
8192 lt_prog_compiler_pic
='-KPIC'
8193 lt_prog_compiler_static
='-Bstatic'
8197 if test -d /usr
/nec
;then
8198 lt_prog_compiler_pic
='-Kconform_pic'
8199 lt_prog_compiler_static
='-Bstatic'
8203 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8204 lt_prog_compiler_wl
='-Wl,'
8205 lt_prog_compiler_pic
='-KPIC'
8206 lt_prog_compiler_static
='-Bstatic'
8210 lt_prog_compiler_wl
='-Wl,'
8211 lt_prog_compiler_can_build_shared
=no
8215 lt_prog_compiler_pic
='-pic'
8216 lt_prog_compiler_static
='-Bstatic'
8220 lt_prog_compiler_can_build_shared
=no
8226 # For platforms which do not support PIC, -DPIC is meaningless:
8228 lt_prog_compiler_pic
=
8231 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8234 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8235 $as_echo "$lt_prog_compiler_pic" >&6; }
8243 # Check to make sure the PIC flag actually works.
8245 if test -n "$lt_prog_compiler_pic"; then
8246 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8248 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8249 $as_echo_n "(cached) " >&6
8251 lt_cv_prog_compiler_pic_works
=no
8252 ac_outfile
=conftest.
$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8254 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8255 # Insert the option either (1) after the last *FLAGS variable, or
8256 # (2) before a word containing "conftest.", or (3) at the end.
8257 # Note that $ac_compile itself does not contain backslashes and begins
8258 # with a dollar sign (not a hyphen), so the echo should work correctly.
8259 # The option is referenced via a variable to avoid confusing sed.
8260 lt_compile
=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:8264: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>conftest.err
)
8267 cat conftest.err
>&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s "$ac_outfile"; then
8270 # The compiler can only warn and ignore the option if not recognized
8271 # So say no if there are warnings other than the usual output.
8272 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8274 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8275 lt_cv_prog_compiler_pic_works
=yes
8281 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8284 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8285 case $lt_prog_compiler_pic in
8287 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8290 lt_prog_compiler_pic
=
8291 lt_prog_compiler_can_build_shared
=no
8302 # Check to make sure the static flag actually works.
8304 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8305 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8306 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8307 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8310 lt_cv_prog_compiler_static_works
=no
8311 save_LDFLAGS
="$LDFLAGS"
8312 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8313 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8314 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8315 # The linker can only warn and ignore the option if not recognized
8316 # So say no if there are warnings
8317 if test -s conftest.err
; then
8318 # Append any errors to the config.log.
8319 cat conftest.err
1>&5
8320 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8321 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8322 if diff conftest.exp conftest.er2
>/dev
/null
; then
8323 lt_cv_prog_compiler_static_works
=yes
8326 lt_cv_prog_compiler_static_works
=yes
8330 LDFLAGS
="$save_LDFLAGS"
8333 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8336 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8339 lt_prog_compiler_static
=
8348 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8351 $as_echo_n "(cached) " >&6
8353 lt_cv_prog_compiler_c_o
=no
8354 $RM -r conftest
2>/dev
/null
8358 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8360 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8361 # Insert the option either (1) after the last *FLAGS variable, or
8362 # (2) before a word containing "conftest.", or (3) at the end.
8363 # Note that $ac_compile itself does not contain backslashes and begins
8364 # with a dollar sign (not a hyphen), so the echo should work correctly.
8365 lt_compile
=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:8369: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>out
/conftest.err
)
8372 cat out
/conftest.err
>&5
8373 echo "$as_me:8373: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8376 # The compiler can only warn and ignore the option if not recognized
8377 # So say no if there are warnings
8378 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8379 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8380 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8381 lt_cv_prog_compiler_c_o
=yes
8386 # SGI C++ compiler will create directory out/ii_files/ for
8387 # template instantiation
8388 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8389 $RM out
/* && rmdir out
8395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8403 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8408 lt_cv_prog_compiler_c_o
=no
8409 $RM -r conftest
2>/dev
/null
8413 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8415 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile
=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out
/conftest.err
)
8427 cat out
/conftest.err
>&5
8428 echo "$as_me:8428: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8434 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8435 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8436 lt_cv_prog_compiler_c_o
=yes
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8444 $RM out
/* && rmdir out
8450 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8456 hard_links
="nottested"
8457 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8458 # do not overwrite the value of need_locks provided by the user
8459 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8460 $as_echo_n "checking if we can lock with hard links... " >&6; }
8463 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8465 ln conftest.a conftest.b
2>&5 || hard_links
=no
8466 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8467 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8468 $as_echo "$hard_links" >&6; }
8469 if test "$hard_links" = no
; then
8470 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8483 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8484 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8487 allow_undefined_flag
=
8488 always_export_symbols
=no
8490 archive_expsym_cmds
=
8491 compiler_needs_object
=no
8492 enable_shared_with_static_runtimes
=no
8493 export_dynamic_flag_spec
=
8494 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8495 hardcode_automatic
=no
8497 hardcode_direct_absolute
=no
8498 hardcode_libdir_flag_spec
=
8499 hardcode_libdir_flag_spec_ld
=
8500 hardcode_libdir_separator
=
8502 hardcode_shlibpath_var
=unsupported
8504 link_all_deplibs
=unknown
8507 old_archive_from_new_cmds
=
8508 old_archive_from_expsyms_cmds
=
8509 thread_safe_flag_spec
=
8510 whole_archive_flag_spec
=
8511 # include_expsyms should be a list of space-separated symbols to be *always*
8512 # included in the symbol list
8514 # exclude_expsyms can be an extended regexp of symbols to exclude
8515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517 # as well as any symbol that contains `d'.
8518 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520 # platforms (ab)use it in PIC code, but their linkers get confused if
8521 # the symbol is explicitly referenced. Since portable code cannot
8522 # rely on this symbol name, it's probably fine to never include it in
8523 # preloaded symbol tables.
8524 # Exclude shared library initialization/finalization symbols.
8525 extract_expsyms_cmds
=
8528 cygwin
* | mingw
* | pw32
* | cegcc
*)
8529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530 # When not using gcc, we currently assume that we are using
8531 # Microsoft Visual C++.
8532 if test "$GCC" != yes; then
8537 # we just hope/assume this is gcc and not c89 (= MSVC++)
8546 if test "$with_gnu_ld" = yes; then
8547 # If archive_cmds runs LD, not CC, wlarc should be empty
8550 # Set some defaults for GNU ld with shared library support. These
8551 # are reset later if shared libraries are not supported. Putting them
8552 # here allows them to be overridden if necessary.
8553 runpath_var
=LD_RUN_PATH
8554 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8555 export_dynamic_flag_spec
='${wl}--export-dynamic'
8556 # ancient GNU ld didn't support --whole-archive et. al.
8557 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8558 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8560 whole_archive_flag_spec
=
8562 supports_anon_versioning
=no
8563 case `$LD -v 2>&1` in
8564 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8565 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8566 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8567 *\
2.11.
*) ;; # other 2.11 versions
8568 *) supports_anon_versioning
=yes ;;
8571 # See if GNU ld supports shared libraries.
8574 # On AIX/PPC, the GNU linker is very broken
8575 if test "$host_cpu" != ia64
; then
8579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8580 *** to be unable to reliably create shared libraries on AIX.
8581 *** Therefore, libtool is disabling shared libraries support. If you
8582 *** really care for shared libraries, you may want to modify your PATH
8583 *** so that a non-GNU linker is found, and then restart.
8592 # see comment about AmigaOS4 .so support
8593 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594 archive_expsym_cmds
=''
8597 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)'
8598 hardcode_libdir_flag_spec
='-L$libdir'
8599 hardcode_minus_L
=yes
8605 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8606 allow_undefined_flag
=unsupported
8607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8608 # support --undefined. This deserves some investigation. FIXME
8609 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615 cygwin
* | mingw
* | pw32
* | cegcc
*)
8616 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8617 # as there is no search path for DLLs.
8618 hardcode_libdir_flag_spec
='-L$libdir'
8619 allow_undefined_flag
=unsupported
8620 always_export_symbols
=no
8621 enable_shared_with_static_runtimes
=yes
8622 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8624 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8625 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8626 # If the export-symbols file already is a .def file (1st line
8627 # is EXPORTS), use it as is; otherwise, prepend...
8628 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8629 cp $export_symbols $output_objdir/$soname.def;
8631 echo EXPORTS > $output_objdir/$soname.def;
8632 cat $export_symbols >> $output_objdir/$soname.def;
8634 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8642 hardcode_shlibpath_var
=no
8643 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8644 export_dynamic_flag_spec
='${wl}-E'
8645 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8646 # Instead, shared libraries are loaded at an image base (0x10000000 by
8647 # default) and relocated if they conflict, which is a slow very memory
8648 # consuming and fragmenting process. To avoid this, we pick a random,
8649 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8650 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8651 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8652 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'
8655 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8657 if test "$host_os" = linux-dietlibc
; then
8658 case $cc_basename in
8659 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8662 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8663 && test "$tmp_diet" = no
8666 tmp_sharedflag
='-shared'
8667 case $cc_basename,$host_cpu in
8668 pgcc
*) # Portland Group C compiler
8669 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'
8670 tmp_addflag
=' $pic_flag'
8672 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8673 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'
8674 tmp_addflag
=' $pic_flag -Mnomain' ;;
8675 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8676 tmp_addflag
=' -i_dynamic' ;;
8677 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8678 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8679 ifc
* | ifort
*) # Intel Fortran compiler
8680 tmp_addflag
=' -nofor_main' ;;
8681 lf95
*) # Lahey Fortran 8.1
8682 whole_archive_flag_spec
=
8683 tmp_sharedflag
='--shared' ;;
8684 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8685 tmp_sharedflag
='-qmkshrobj'
8688 case `$CC -V 2>&1 | sed 5q` in
8689 *Sun\ C
*) # Sun C 5.9
8690 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'
8691 compiler_needs_object
=yes
8692 tmp_sharedflag
='-G' ;;
8693 *Sun\ F
*) # Sun Fortran 8.3
8694 tmp_sharedflag
='-G' ;;
8696 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 if test "x$supports_anon_versioning" = xyes
; then
8699 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8700 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8701 echo "local: *; };" >> $output_objdir/$libname.ver~
8702 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8705 case $cc_basename in
8707 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8708 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8709 hardcode_libdir_flag_spec
=
8710 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8711 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8712 if test "x$supports_anon_versioning" = xyes
; then
8713 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8715 echo "local: *; };" >> $output_objdir/$libname.ver~
8716 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8726 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8727 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8730 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8736 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8741 *** create shared libraries on Solaris systems. Therefore, libtool
8742 *** is disabling shared libraries support. We urge you to upgrade GNU
8743 *** binutils to release 2.9.1 or newer. Another option is to modify
8744 *** your PATH or compiler configuration so that the native linker is
8745 *** used, and then restart.
8748 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8749 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8757 case `$LD -v 2>&1` in
8758 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8763 *** reliably create shared libraries on SCO systems. Therefore, libtool
8764 *** is disabling shared libraries support. We urge you to upgrade GNU
8765 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8766 *** your PATH or compiler configuration so that the native linker is
8767 *** used, and then restart.
8772 # For security reasons, it is highly recommended that you always
8773 # use absolute paths for naming shared libraries, and exclude the
8774 # DT_RUNPATH tag from executables and libraries. But doing so
8775 # requires that you compile everything twice, which is a pain.
8776 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8777 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8778 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8791 hardcode_shlibpath_var
=no
8795 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8796 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8797 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804 if test "$ld_shlibs" = no
; then
8806 hardcode_libdir_flag_spec
=
8807 export_dynamic_flag_spec
=
8808 whole_archive_flag_spec
=
8811 # PORTME fill in a description of your system's linker (not GNU ld)
8814 allow_undefined_flag
=unsupported
8815 always_export_symbols
=yes
8816 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'
8817 # Note: this linker hardcodes the directories in LIBPATH if there
8818 # are no directories specified by -L.
8819 hardcode_minus_L
=yes
8820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8821 # Neither direct hardcoding nor static linking is supported with a
8823 hardcode_direct
=unsupported
8828 if test "$host_cpu" = ia64
; then
8829 # On IA64, the linker does run time linking by default, so we don't
8830 # have to do anything special.
8831 aix_use_runtimelinking
=no
8832 exp_sym_flag
='-Bexport'
8835 # If we're using GNU nm, then we don't want the "-C" option.
8836 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8837 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8838 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'
8840 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'
8842 aix_use_runtimelinking
=no
8844 # Test if we are trying to use run time linking or normal
8845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8846 # need to do runtime linking.
8847 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8848 for ld_flag
in $LDFLAGS; do
8849 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8850 aix_use_runtimelinking
=yes
8857 exp_sym_flag
='-bexport'
8858 no_entry_flag
='-bnoentry'
8861 # When large executables or shared objects are built, AIX ld can
8862 # have problems creating the table of contents. If linking a library
8863 # or program results in "error TOC overflow" add -mminimal-toc to
8864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8869 hardcode_direct_absolute
=yes
8870 hardcode_libdir_separator
=':'
8871 link_all_deplibs
=yes
8872 file_list_spec
='${wl}-f,'
8874 if test "$GCC" = yes; then
8875 case $host_os in aix4.
[012]|aix4.
[012].
*)
8876 # We only want to do this on AIX 4.2 and lower, the check
8877 # below for broken collect2 doesn't work under 4.3+
8878 collect2name
=`${CC} -print-prog-name=collect2`
8879 if test -f "$collect2name" &&
8880 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8882 # We have reworked collect2
8885 # We have old collect2
8886 hardcode_direct
=unsupported
8887 # It fails to find uninstalled libraries when the uninstalled
8888 # path is not listed in the libpath. Setting hardcode_minus_L
8889 # to unsupported forces relinking
8890 hardcode_minus_L
=yes
8891 hardcode_libdir_flag_spec
='-L$libdir'
8892 hardcode_libdir_separator
=
8896 shared_flag
='-shared'
8897 if test "$aix_use_runtimelinking" = yes; then
8898 shared_flag
="$shared_flag "'${wl}-G'
8902 if test "$host_cpu" = ia64
; then
8903 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8904 # chokes on -Wl,-G. The following line is correct:
8907 if test "$aix_use_runtimelinking" = yes; then
8908 shared_flag
='${wl}-G'
8910 shared_flag
='${wl}-bM:SRE'
8915 export_dynamic_flag_spec
='${wl}-bexpall'
8916 # It seems that -bexpall does not export symbols beginning with
8917 # underscore (_), so it is better to generate a list of symbols to export.
8918 always_export_symbols
=yes
8919 if test "$aix_use_runtimelinking" = yes; then
8920 # Warning - without using the other runtime loading flags (-brtl),
8921 # -berok will link without error, but may produce a broken library.
8922 allow_undefined_flag
='-berok'
8923 # Determine the default libpath from the value encoded in an
8925 cat >conftest.
$ac_ext <<_ACEOF
8928 cat confdefs.h
>>conftest.
$ac_ext
8929 cat >>conftest.
$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8940 rm -f conftest.
$ac_objext conftest
$ac_exeext
8941 if { (ac_try
="$ac_link"
8943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948 (eval "$ac_link") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest$ac_exeext && {
8958 test "$cross_compiling" = yes ||
8959 $as_test_x conftest$ac_exeext
8962 lt_aix_libpath_sed='
8963 /Import File Strings/,/^$/ {
8969 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8970 # Check for a 64-bit object if we didn't find anything.
8971 if test -z "$aix_libpath"; then
8972 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8981 rm -rf conftest.dSYM
8982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8983 conftest$ac_exeext conftest.$ac_ext
8984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8987 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"
8989 if test "$host_cpu" = ia64; then
8990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8991 allow_undefined_flag="-z nodefs"
8992 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"
8994 # Determine the default libpath from the value encoded in an
8996 cat >conftest.$ac_ext <<_ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h. */
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (ac_try="$ac_link"
9014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9015 *) ac_try_echo
=$ac_try;;
9017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9018 $as_echo "$ac_try_echo") >&5
9019 (eval "$ac_link") 2>conftest.er1
9021 grep -v '^ *+' conftest.er1
>conftest.err
9023 cat conftest.err
>&5
9024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } && {
9026 test -z "$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 } && test -s conftest
$ac_exeext && {
9029 test "$cross_compiling" = yes ||
9030 $as_test_x conftest
$ac_exeext
9033 lt_aix_libpath_sed
='
9034 /Import File Strings/,/^$/ {
9040 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9041 # Check for a 64-bit object if we didn't find anything.
9042 if test -z "$aix_libpath"; then
9043 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9046 $as_echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.
$ac_ext >&5
9052 rm -rf conftest.dSYM
9053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9054 conftest
$ac_exeext conftest.
$ac_ext
9055 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9057 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9058 # Warning - without using the other run time loading flags,
9059 # -berok will link without error, but may produce a broken library.
9060 no_undefined_flag
=' ${wl}-bernotok'
9061 allow_undefined_flag
=' ${wl}-berok'
9062 # Exported symbols can be pulled into shared objects from archives
9063 whole_archive_flag_spec
='$convenience'
9064 archive_cmds_need_lc
=yes
9065 # This is similar to how AIX traditionally builds its shared libraries.
9066 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'
9074 # see comment about AmigaOS4 .so support
9075 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds
=''
9079 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)'
9080 hardcode_libdir_flag_spec
='-L$libdir'
9081 hardcode_minus_L
=yes
9087 export_dynamic_flag_spec
=-rdynamic
9090 cygwin
* | mingw
* | pw32
* | cegcc
*)
9091 # When not using gcc, we currently assume that we are using
9092 # Microsoft Visual C++.
9093 # hardcode_libdir_flag_spec is actually meaningless, as there is
9094 # no search path for DLLs.
9095 hardcode_libdir_flag_spec
=' '
9096 allow_undefined_flag
=unsupported
9097 # Tell ltmain to make .lib files, not .a files.
9099 # Tell ltmain to make .dll files, not .so files.
9101 # FIXME: Setting linknames here is a bad hack.
9102 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103 # The linker will automatically build a .lib file if we build a DLL.
9104 old_archive_from_new_cmds
='true'
9105 # FIXME: Should let the user specify the lib program.
9106 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9107 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9108 enable_shared_with_static_runtimes
=yes
9111 darwin
* | rhapsody
*)
9114 archive_cmds_need_lc
=no
9116 hardcode_automatic
=yes
9117 hardcode_shlibpath_var
=unsupported
9118 whole_archive_flag_spec
=''
9119 link_all_deplibs
=yes
9120 allow_undefined_flag
="$_lt_dar_allow_undefined"
9121 case $cc_basename in
9122 ifort
*) _lt_dar_can_shared
=yes ;;
9123 *) _lt_dar_can_shared
=$GCC ;;
9125 if test "$_lt_dar_can_shared" = "yes"; then
9126 output_verbose_link_cmd
=echo
9127 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9128 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9129 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}"
9130 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}"
9139 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_libdir_flag_spec
='-L$libdir'
9141 hardcode_shlibpath_var
=no
9148 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9149 # support. Future versions do this automatically, but an explicit c++rt0.o
9150 # does not break anything, and helps significantly (at the cost of a little
9153 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9154 hardcode_libdir_flag_spec
='-R$libdir'
9156 hardcode_shlibpath_var
=no
9159 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9161 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_minus_L
=yes
9164 hardcode_shlibpath_var
=no
9167 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9168 freebsd
* | dragonfly
*)
9169 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9170 hardcode_libdir_flag_spec
='-R$libdir'
9172 hardcode_shlibpath_var
=no
9176 if test "$GCC" = yes; then
9177 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'
9179 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'
9181 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9182 hardcode_libdir_separator
=:
9185 # hardcode_minus_L: Not really in the search PATH,
9186 # but as the default location of the library.
9187 hardcode_minus_L
=yes
9188 export_dynamic_flag_spec
='${wl}-E'
9192 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9193 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9195 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9197 if test "$with_gnu_ld" = no
; then
9198 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9199 hardcode_libdir_flag_spec_ld
='+b $libdir'
9200 hardcode_libdir_separator
=:
9202 hardcode_direct_absolute
=yes
9203 export_dynamic_flag_spec
='${wl}-E'
9204 # hardcode_minus_L: Not really in the search PATH,
9205 # but as the default location of the library.
9206 hardcode_minus_L
=yes
9211 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9214 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9217 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9220 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9226 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9232 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9236 if test "$with_gnu_ld" = no
; then
9237 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator
=:
9243 hardcode_shlibpath_var
=no
9247 hardcode_direct_absolute
=yes
9248 export_dynamic_flag_spec
='${wl}-E'
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L
=yes
9258 irix5
* | irix6
* | nonstopux
*)
9259 if test "$GCC" = yes; then
9260 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'
9261 # Try to use the -exported_symbol ld option, if it does not
9262 # work, assume that -exports_file does not work either and
9263 # implicitly export all symbols.
9264 save_LDFLAGS
="$LDFLAGS"
9265 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9266 cat >conftest.
$ac_ext <<_ACEOF
9269 rm -f conftest.
$ac_objext conftest
$ac_exeext
9270 if { (ac_try
="$ac_link"
9272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9276 $as_echo "$ac_try_echo") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && {
9284 test -z "$ac_c_werror_flag" ||
9285 test ! -s conftest.err
9286 } && test -s conftest$ac_exeext && {
9287 test "$cross_compiling" = yes ||
9288 $as_test_x conftest$ac_exeext
9290 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'
9293 $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301 conftest$ac_exeext conftest.$ac_ext
9302 LDFLAGS="$save_LDFLAGS"
9304 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'
9305 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'
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
9311 link_all_deplibs=yes
9315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9318 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9320 hardcode_libdir_flag_spec='-R$libdir'
9322 hardcode_shlibpath_var=no
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9329 hardcode_libdir_separator=:
9330 hardcode_shlibpath_var=no
9337 if test -f /usr/libexec/ld.so; then
9339 hardcode_shlibpath_var=no
9340 hardcode_direct_absolute=yes
9341 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9342 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9343 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9344 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345 export_dynamic_flag_spec='${wl}-E'
9348 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-R$libdir'
9353 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9366 allow_undefined_flag=unsupported
9367 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'
9368 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9376 allow_undefined_flag=' -expect_unresolved \*'
9377 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'
9379 archive_cmds_need_lc='no'
9380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9381 hardcode_libdir_separator=:
9384 osf4* | osf5*) # as osf3* with the addition of -msym flag
9385 if test "$GCC" = yes; then
9386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387 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'
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390 allow_undefined_flag=' -expect_unresolved \*'
9391 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'
9392 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~
9393 $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'
9395 # Both c and cxx compiler support -rpath directly
9396 hardcode_libdir_flag_spec='-rpath $libdir'
9398 archive_cmds_need_lc='no'
9399 hardcode_libdir_separator=:
9403 no_undefined_flag=' -z defs'
9404 if test "$GCC" = yes; then
9406 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9410 case `$CC -V 2>&1` in
9413 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9415 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9419 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9425 hardcode_libdir_flag_spec='-R$libdir'
9426 hardcode_shlibpath_var=no
9428 solaris2.[0-5] | solaris2.[0-5].*) ;;
9430 # The compiler driver will combine and reorder linker options,
9431 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9432 # but is careful enough not to reorder.
9433 # Supported since Solaris 2.6 (maybe 2.5.1?)
9434 if test "$GCC" = yes; then
9435 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9437 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9441 link_all_deplibs
=yes
9445 if test "x$host_vendor" = xsequent
; then
9446 # Use $CC to link under sequent, because it throws in some extra .o
9447 # files that make .init and .fini sections work.
9448 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_libdir_flag_spec
='-L$libdir'
9454 hardcode_minus_L
=yes
9455 hardcode_shlibpath_var
=no
9459 case $host_vendor in
9461 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9462 hardcode_direct
=yes # is this really true???
9465 ## LD is ld it makes a PLAMLIB
9466 ## CC just makes a GrossModule.
9467 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9468 reload_cmds
='$CC -r -o $output$reload_objs'
9472 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9476 runpath_var
='LD_RUN_PATH'
9477 hardcode_shlibpath_var
=no
9481 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var
=no
9483 export_dynamic_flag_spec
='-Bexport'
9487 if test -d /usr
/nec
; then
9488 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489 hardcode_shlibpath_var
=no
9490 runpath_var
=LD_RUN_PATH
9491 hardcode_runpath_var
=yes
9496 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9497 no_undefined_flag
='${wl}-z,text'
9498 archive_cmds_need_lc
=no
9499 hardcode_shlibpath_var
=no
9500 runpath_var
='LD_RUN_PATH'
9502 if test "$GCC" = yes; then
9503 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511 sysv5
* | sco3.2v5
* | sco5v6
*)
9512 # Note: We can NOT use -z defs as we might desire, because we do not
9513 # link with -lc, and that would cause any symbols used from libc to
9514 # always be unresolved, which means just about no library would
9515 # ever link correctly. If we're not using GNU ld we use -z text
9516 # though, which does catch some bad symbols but isn't as heavy-handed
9518 no_undefined_flag
='${wl}-z,text'
9519 allow_undefined_flag
='${wl}-z,nodefs'
9520 archive_cmds_need_lc
=no
9521 hardcode_shlibpath_var
=no
9522 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9523 hardcode_libdir_separator
=':'
9524 link_all_deplibs
=yes
9525 export_dynamic_flag_spec
='${wl}-Bexport'
9526 runpath_var
='LD_RUN_PATH'
9528 if test "$GCC" = yes; then
9529 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec
='-L$libdir'
9540 hardcode_shlibpath_var
=no
9548 if test x
$host_vendor = xsni
; then
9550 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9551 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9557 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9558 $as_echo "$ld_shlibs" >&6; }
9559 test "$ld_shlibs" = no
&& can_build_shared
=no
9561 with_gnu_ld
=$with_gnu_ld
9578 # Do we need to explicitly link libc?
9580 case "x$archive_cmds_need_lc" in
9582 # Assume -lc should be added
9583 archive_cmds_need_lc
=yes
9585 if test "$enable_shared" = yes && test "$GCC" = yes; then
9586 case $archive_cmds in
9588 # FIXME: we may have to deal with multi-command sequences.
9591 # Test whether the compiler implicitly links with -lc since on some
9592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9593 # to ld, don't add -lc before -lgcc.
9594 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9595 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9597 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>&5
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } 2>conftest.err
; then
9606 libobjs
=conftest.
$ac_objext
9608 wl
=$lt_prog_compiler_wl
9609 pic_flag
=$lt_prog_compiler_pic
9615 lt_save_allow_undefined_flag
=$allow_undefined_flag
9616 allow_undefined_flag
=
9617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9618 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); }
9623 archive_cmds_need_lc
=no
9625 archive_cmds_need_lc
=yes
9627 allow_undefined_flag
=$lt_save_allow_undefined_flag
9629 cat conftest.err
1>&5
9632 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9633 $as_echo "$archive_cmds_need_lc" >&6; }
9796 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9797 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9799 if test "$GCC" = yes; then
9801 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9802 *) lt_awk_arg
="/^libraries:/" ;;
9804 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9805 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9806 # if the path contains ";" then we assume it to be the separator
9807 # otherwise default to the standard path separator (i.e. ":") - it is
9808 # assumed that no part of a normal pathname contains ";" but that should
9809 # okay in the real world where ";" in dirpaths is itself problematic.
9810 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9812 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9814 # Ok, now we have the path, separated by spaces, we can step through it
9815 # and add multilib dir if necessary.
9816 lt_tmp_lt_search_path_spec
=
9817 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9818 for lt_sys_path
in $lt_search_path_spec; do
9819 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9820 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9822 test -d "$lt_sys_path" && \
9823 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9826 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9827 BEGIN {RS=" "; FS="/|\n";} {
9830 for (lt_i = NF; lt_i > 0; lt_i--) {
9831 if ($lt_i != "" && $lt_i != ".") {
9832 if ($lt_i == "..") {
9835 if (lt_count == 0) {
9836 lt_foo="/" $lt_i lt_foo;
9843 if (lt_foo != "") { lt_freq[lt_foo]++; }
9844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9846 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9848 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9851 libname_spec
='lib$name'
9859 shlibpath_overrides_runpath
=unknown
9861 dynamic_linker
="$host_os ld.so"
9862 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9863 need_lib_prefix
=unknown
9864 hardcode_into_libs
=no
9866 # when you set need_version to no, make sure it does not cause -set_version
9867 # flags to be left without arguments
9868 need_version
=unknown
9873 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9874 shlibpath_var
=LIBPATH
9876 # AIX 3 has no versioning support, so we append a major version to the name.
9877 soname_spec
='${libname}${release}${shared_ext}$major'
9884 hardcode_into_libs
=yes
9885 if test "$host_cpu" = ia64
; then
9886 # AIX 5 supports IA64
9887 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9888 shlibpath_var
=LD_LIBRARY_PATH
9890 # With GCC up to 2.95.x, collect2 would create an import file
9891 # for dependence libraries. The import file would start with
9892 # the line `#! .'. This would cause the generated library to
9893 # depend on `.', always an invalid library. This was fixed in
9894 # development snapshots of GCC prior to 3.0.
9896 aix4 | aix4.
[01] | aix4.
[01].
*)
9897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9899 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9906 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9907 # soname into executable. Probably we can add versioning support to
9908 # collect2, so additional links can be useful in future.
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9911 # instead of lib<name>.a to let people know that these are not
9912 # typical AIX shared libraries.
9913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 # We preserve .a as extension for shared libraries through AIX4.2
9916 # and later when we are not doing run time linking.
9917 library_names_spec
='${libname}${release}.a $libname.a'
9918 soname_spec
='${libname}${release}${shared_ext}$major'
9920 shlibpath_var
=LIBPATH
9927 # Since July 2007 AmigaOS4 officially supports .so libraries.
9928 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 library_names_spec
='$libname.ixlibrary $libname.a'
9933 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9934 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'
9940 library_names_spec
='${libname}${shared_ext}'
9941 dynamic_linker
="$host_os ld.so"
9942 shlibpath_var
=LIBRARY_PATH
9948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949 soname_spec
='${libname}${release}${shared_ext}$major'
9950 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9951 shlibpath_var
=LD_LIBRARY_PATH
9952 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9953 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9954 # the default ld.so.conf also contains /usr/contrib/lib and
9955 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9956 # libtool to hard-code these into programs
9959 cygwin
* | mingw
* | pw32
* | cegcc
*)
9960 version_type
=windows
9965 case $GCC,$host_os in
9966 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9967 library_names_spec
='$libname.dll.a'
9968 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9969 postinstall_cmds
='base_file=`basename \${file}`~
9970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9971 dldir=$destdir/`dirname \$dlpath`~
9972 test -d \$dldir || mkdir -p \$dldir~
9973 $install_prog $dir/$dlname \$dldir/$dlname~
9974 chmod a+x \$dldir/$dlname~
9975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9978 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9979 dlpath=$dir/\$dldll~
9981 shlibpath_overrides_runpath
=yes
9985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9986 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9990 # MinGW DLLs use traditional 'lib' prefix
9991 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9993 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9994 # It is most probably a Windows format PATH printed by
9995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9996 # path with ; separators, and with drive letters. We can handle the
9997 # drive letters (cygwin fileutils understands them), so leave them,
9998 # especially as we might pass files found there to a mingw objdump,
9999 # which wouldn't understand a cygwinified path. Ahh.
10000 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10002 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006 # pw32 DLLs use 'pw' prefix rather than 'lib'
10007 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10013 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10016 dynamic_linker
='Win32 ld.exe'
10017 # FIXME: first we should search . and the directory the executable is in
10021 darwin
* | rhapsody
*)
10022 dynamic_linker
="$host_os dyld"
10023 version_type
=darwin
10026 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10027 soname_spec
='${libname}${release}${major}$shared_ext'
10028 shlibpath_overrides_runpath
=yes
10029 shlibpath_var
=DYLD_LIBRARY_PATH
10030 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10032 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10033 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10041 soname_spec
='${libname}${release}${shared_ext}$major'
10042 shlibpath_var
=LD_LIBRARY_PATH
10049 freebsd
* | dragonfly
*)
10050 # DragonFly does not have aout. When/if they implement a new
10051 # versioning mechanism, adjust this.
10052 if test -x /usr
/bin
/objformat
; then
10053 objformat
=`/usr/bin/objformat`
10056 freebsd
[123]*) objformat
=aout
;;
10057 *) objformat
=elf
;;
10060 version_type
=freebsd-
$objformat
10061 case $version_type in
10063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10068 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10072 shlibpath_var
=LD_LIBRARY_PATH
10075 shlibpath_overrides_runpath
=yes
10077 freebsd3.
[01]* | freebsdelf3.
[01]*)
10078 shlibpath_overrides_runpath
=yes
10079 hardcode_into_libs
=yes
10081 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10082 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10083 shlibpath_overrides_runpath
=no
10084 hardcode_into_libs
=yes
10086 *) # from 4.6 on, and DragonFly
10087 shlibpath_overrides_runpath
=yes
10088 hardcode_into_libs
=yes
10097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098 soname_spec
='${libname}${release}${shared_ext}$major'
10099 shlibpath_var
=LD_LIBRARY_PATH
10100 hardcode_into_libs
=yes
10103 hpux9
* | hpux10
* | hpux11
*)
10104 # Give a soname corresponding to the major version so that dld.sl refuses to
10105 # link against other versions.
10112 hardcode_into_libs
=yes
10113 dynamic_linker
="$host_os dld.so"
10114 shlibpath_var
=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec
='${libname}${release}${shared_ext}$major'
10118 if test "X$HPUX_IA64_MODE" = X32
; then
10119 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10121 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10123 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10127 hardcode_into_libs
=yes
10128 dynamic_linker
="$host_os dld.sl"
10129 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10130 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10131 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132 soname_spec
='${libname}${release}${shared_ext}$major'
10133 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10138 dynamic_linker
="$host_os dld.sl"
10139 shlibpath_var
=SHLIB_PATH
10140 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 soname_spec
='${libname}${release}${shared_ext}$major'
10145 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10146 postinstall_cmds
='chmod 555 $lib'
10153 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec
='${libname}${release}${shared_ext}$major'
10155 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10156 shlibpath_var
=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath
=no
10158 hardcode_into_libs
=yes
10161 irix5
* | irix6
* | nonstopux
*)
10163 nonstopux
*) version_type
=nonstopux
;;
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10173 soname_spec
='${libname}${release}${shared_ext}$major'
10174 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10176 irix5
* | nonstopux
*)
10177 libsuff
= shlibsuff
=
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10182 libsuff
= shlibsuff
= libmagic
=32-bit;;
10183 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10184 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10185 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10186 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10187 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10191 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10192 shlibpath_overrides_runpath
=no
10193 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10195 hardcode_into_libs
=yes
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10203 # This must be Linux ELF.
10204 linux
* | k
*bsd
*-gnu)
10208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec
='${libname}${release}${shared_ext}$major'
10210 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var
=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath
=no
10213 # Some binutils ld are patched to set DT_RUNPATH
10214 save_LDFLAGS
=$LDFLAGS
10215 save_libdir
=$libdir
10216 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10217 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10218 cat >conftest.
$ac_ext <<_ACEOF
10221 cat confdefs.h
>>conftest.
$ac_ext
10222 cat >>conftest.
$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10233 rm -f conftest.
$ac_objext conftest
$ac_exeext
10234 if { (ac_try
="$ac_link"
10235 case "(($ac_try" in
10236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10240 $as_echo "$ac_try_echo") >&5
10241 (eval "$ac_link") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest$ac_exeext && {
10251 test "$cross_compiling" = yes ||
10252 $as_test_x conftest$ac_exeext
10254 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10255 shlibpath_overrides_runpath=yes
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10265 rm -rf conftest.dSYM
10266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LDFLAGS=$save_LDFLAGS
10269 libdir=$save_libdir
10271 # This implies no fast_install, which is unacceptable.
10272 # Some rework will be needed to allow for fast_install
10273 # before this can be enabled.
10274 hardcode_into_libs=yes
10276 # Add ABI-specific directories to the system library path.
10277 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10279 # Append ld.so.conf contents to the search path
10280 if test -f /etc/ld.so.conf; then
10281 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' ' '`
10282 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10285 # We used to test for /lib/ld.so.1 and disable shared libraries on
10286 # powerpc, because MkLinux only supported shared libraries with the
10287 # GNU dynamic linker. Since this was broken with cross compilers,
10288 # most powerpc-linux boxes support dynamic linking these days and
10289 # people can always --disable-shared, the test was removed, and we
10290 # assume the GNU/Linux dynamic linker is in use.
10291 dynamic_linker='GNU/Linux ld.so'
10298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10301 dynamic_linker='NetBSD (a.out) ld.so'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 dynamic_linker='NetBSD ld.elf_so'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=yes
10309 hardcode_into_libs=yes
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=no
10327 hardcode_into_libs=yes
10328 dynamic_linker='ldqnx.so'
10333 sys_lib_dlsearch_path_spec="/usr/lib"
10335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10338 *) need_version=no ;;
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10345 openbsd2.[89] | openbsd2.[89].*)
10346 shlibpath_overrides_runpath=no
10349 shlibpath_overrides_runpath=yes
10353 shlibpath_overrides_runpath=yes
10358 libname_spec='$name'
10361 library_names_spec='$libname${shared_ext} $libname.a'
10362 dynamic_linker='OS/2 ld.exe'
10363 shlibpath_var=LIBPATH
10366 osf3* | osf4* | osf5*)
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=yes
10389 hardcode_into_libs=yes
10390 # ldd complains unless libraries are executable
10391 postinstall_cmds='chmod +x $lib'
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10400 if test "$with_gnu_ld" = yes; then
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 shlibpath_var=LD_LIBRARY_PATH
10411 case $host_vendor in
10413 shlibpath_overrides_runpath=no
10415 runpath_var=LD_RUN_PATH
10423 shlibpath_overrides_runpath=no
10424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10430 if test -d /usr/nec ;then
10432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10433 soname_spec='$libname${shared_ext}.$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10438 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10439 version_type=freebsd-elf
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10443 soname_spec='${libname}${release}${shared_ext}$major'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=yes
10446 hardcode_into_libs=yes
10447 if test "$with_gnu_ld" = yes; then
10448 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10457 sys_lib_dlsearch_path_spec='/usr/lib'
10461 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468 hardcode_into_libs=yes
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10482 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10483 $as_echo "$dynamic_linker" >&6; }
10484 test "$dynamic_linker" = no && can_build_shared=no
10486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10487 if test "$GCC" = yes; then
10488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10491 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10492 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10495 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10584 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588 test -n "$runpath_var" ||
10589 test "X$hardcode_automatic" = "Xyes" ; then
10591 # We can hardcode non-existent directories.
10592 if test "$hardcode_direct" != no &&
10593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594 # have to relink, otherwise we might link with an installed library
10595 # when we should be linking with a yet-to-be-installed one
10596 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597 test "$hardcode_minus_L" != no; then
10598 # Linking always hardcodes the temporary library directory.
10599 hardcode_action=relink
10601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602 hardcode_action=immediate
10605 # We cannot hardcode anything, or else we can only hardcode existing
10607 hardcode_action=unsupported
10609 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10612 if test "$hardcode_action" = relink ||
10613 test "$inherit_rpath" = yes; then
10614 # Fast installation is not supported
10615 enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617 test "$enable_shared" = no; then
10618 # Fast installation is not necessary
10619 enable_fast_install=needless
10627 if test "x$enable_dlopen" != xyes; then
10628 enable_dlopen=unknown
10629 enable_dlopen_self=unknown
10630 enable_dlopen_self_static=unknown
10637 lt_cv_dlopen="load_add_on"
10639 lt_cv_dlopen_self=yes
10642 mingw* | pw32* | cegcc*)
10643 lt_cv_dlopen="LoadLibrary"
10648 lt_cv_dlopen="dlopen"
10653 # if libdl is installed we need to link against it
10654 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10657 $as_echo_n "(cached) " >&6
10659 ac_check_lib_save_LIBS=$LIBS
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (ac_try="$ac_link"
10685 case "(($ac_try" in
10686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10687 *) ac_try_echo
=$ac_try;;
10689 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10690 $as_echo "$ac_try_echo") >&5
10691 (eval "$ac_link") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1
>conftest.err
10695 cat conftest.err
>&5
10696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest
$ac_exeext && {
10701 test "$cross_compiling" = yes ||
10702 $as_test_x conftest
$ac_exeext
10704 ac_cv_lib_dl_dlopen
=yes
10706 $as_echo "$as_me: failed program was:" >&5
10707 sed 's/^/| /' conftest.
$ac_ext >&5
10709 ac_cv_lib_dl_dlopen
=no
10712 rm -rf conftest.dSYM
10713 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10714 conftest
$ac_exeext conftest.
$ac_ext
10715 LIBS
=$ac_check_lib_save_LIBS
10717 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10719 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10720 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10723 lt_cv_dlopen
="dyld"
10725 lt_cv_dlopen_self
=yes
10732 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10733 $as_echo_n "checking for shl_load... " >&6; }
10734 if test "${ac_cv_func_shl_load+set}" = set; then
10735 $as_echo_n "(cached) " >&6
10737 cat >conftest.
$ac_ext <<_ACEOF
10740 cat confdefs.h
>>conftest.
$ac_ext
10741 cat >>conftest.
$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10745 #define shl_load innocuous_shl_load
10747 /* System header to define __stub macros and hopefully few prototypes,
10748 which can conflict with char shl_load (); below.
10749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10750 <limits.h> exists even on freestanding compilers. */
10753 # include <limits.h>
10755 # include <assert.h>
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined __stub_shl_load || defined __stub___shl_load
10777 return shl_load ();
10782 rm -f conftest.
$ac_objext conftest
$ac_exeext
10783 if { (ac_try
="$ac_link"
10784 case "(($ac_try" in
10785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10786 *) ac_try_echo=$ac_try;;
10788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10789 $as_echo "$ac_try_echo") >&5
10790 (eval "$ac_link") 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && {
10797 test -z "$ac_c_werror_flag" ||
10798 test ! -s conftest.err
10799 } && test -s conftest$ac_exeext && {
10800 test "$cross_compiling" = yes ||
10801 $as_test_x conftest$ac_exeext
10803 ac_cv_func_shl_load=yes
10805 $as_echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ac_cv_func_shl_load=no
10811 rm -rf conftest.dSYM
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10815 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10816 $as_echo "$ac_cv_func_shl_load" >&6; }
10817 if test "x$ac_cv_func_shl_load" = x""yes; then
10818 lt_cv_dlopen="shl_load"
10820 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10821 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10823 $as_echo_n "(cached) " >&6
10825 ac_check_lib_save_LIBS=$LIBS
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10834 /* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
10844 return shl_load ();
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10853 *) ac_try_echo
=$ac_try;;
10855 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10856 $as_echo "$ac_try_echo") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1
>conftest.err
10861 cat conftest.err
>&5
10862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } && {
10864 test -z "$ac_c_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest
$ac_exeext && {
10867 test "$cross_compiling" = yes ||
10868 $as_test_x conftest
$ac_exeext
10870 ac_cv_lib_dld_shl_load
=yes
10872 $as_echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.
$ac_ext >&5
10875 ac_cv_lib_dld_shl_load
=no
10878 rm -rf conftest.dSYM
10879 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10880 conftest
$ac_exeext conftest.
$ac_ext
10881 LIBS
=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10884 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10885 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10886 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10888 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10889 $as_echo_n "checking for dlopen... " >&6; }
10890 if test "${ac_cv_func_dlopen+set}" = set; then
10891 $as_echo_n "(cached) " >&6
10893 cat >conftest.
$ac_ext <<_ACEOF
10896 cat confdefs.h
>>conftest.
$ac_ext
10897 cat >>conftest.
$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10901 #define dlopen innocuous_dlopen
10903 /* System header to define __stub macros and hopefully few prototypes,
10904 which can conflict with char dlopen (); below.
10905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906 <limits.h> exists even on freestanding compilers. */
10909 # include <limits.h>
10911 # include <assert.h>
10916 /* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10923 /* The GNU C library defines this for functions which it implements
10924 to always fail with ENOSYS. Some functions are actually named
10925 something starting with __ and the normal name is an alias. */
10926 #if defined __stub_dlopen || defined __stub___dlopen
10938 rm -f conftest.
$ac_objext conftest
$ac_exeext
10939 if { (ac_try
="$ac_link"
10940 case "(($ac_try" in
10941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10945 $as_echo "$ac_try_echo") >&5
10946 (eval "$ac_link") 2>conftest.er1
10948 grep -v '^ *+' conftest.er1 >conftest.err
10950 cat conftest.err >&5
10951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && {
10953 test -z "$ac_c_werror_flag" ||
10954 test ! -s conftest.err
10955 } && test -s conftest$ac_exeext && {
10956 test "$cross_compiling" = yes ||
10957 $as_test_x conftest$ac_exeext
10959 ac_cv_func_dlopen=yes
10961 $as_echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 ac_cv_func_dlopen=no
10967 rm -rf conftest.dSYM
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10972 $as_echo "$ac_cv_func_dlopen" >&6; }
10973 if test "x$ac_cv_func_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen"
10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10977 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10978 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10979 $as_echo_n "(cached) " >&6
10981 ac_check_lib_save_LIBS=$LIBS
10983 cat >conftest.$ac_ext <<_ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11009 *) ac_try_echo
=$ac_try;;
11011 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11012 $as_echo "$ac_try_echo") >&5
11013 (eval "$ac_link") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1
>conftest.err
11017 cat conftest.err
>&5
11018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest
$ac_exeext && {
11023 test "$cross_compiling" = yes ||
11024 $as_test_x conftest
$ac_exeext
11026 ac_cv_lib_dl_dlopen
=yes
11028 $as_echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.
$ac_ext >&5
11031 ac_cv_lib_dl_dlopen
=no
11034 rm -rf conftest.dSYM
11035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11036 conftest
$ac_exeext conftest.
$ac_ext
11037 LIBS
=$ac_check_lib_save_LIBS
11039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11040 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11041 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11042 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11044 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11045 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11046 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11047 $as_echo_n "(cached) " >&6
11049 ac_check_lib_save_LIBS
=$LIBS
11050 LIBS
="-lsvld $LIBS"
11051 cat >conftest.
$ac_ext <<_ACEOF
11054 cat confdefs.h
>>conftest.
$ac_ext
11055 cat >>conftest.
$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11073 rm -f conftest.
$ac_objext conftest
$ac_exeext
11074 if { (ac_try
="$ac_link"
11075 case "(($ac_try" in
11076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081 (eval "$ac_link") 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext && {
11091 test "$cross_compiling" = yes ||
11092 $as_test_x conftest$ac_exeext
11094 ac_cv_lib_svld_dlopen=yes
11096 $as_echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_cv_lib_svld_dlopen=no
11102 rm -rf conftest.dSYM
11103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11105 LIBS=$ac_check_lib_save_LIBS
11107 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11108 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11109 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11112 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11113 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11115 $as_echo_n "(cached) " >&6
11117 ac_check_lib_save_LIBS=$LIBS
11119 cat >conftest.$ac_ext <<_ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 /* Override any GCC internal prototype to avoid an error.
11127 Use char because int might match the return type of a GCC
11128 builtin and then its argument prototype would still apply. */
11136 return dld_link ();
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (ac_try="$ac_link"
11143 case "(($ac_try" in
11144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11145 *) ac_try_echo
=$ac_try;;
11147 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11148 $as_echo "$ac_try_echo") >&5
11149 (eval "$ac_link") 2>conftest.er1
11151 grep -v '^ *+' conftest.er1
>conftest.err
11153 cat conftest.err
>&5
11154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && {
11156 test -z "$ac_c_werror_flag" ||
11157 test ! -s conftest.err
11158 } && test -s conftest
$ac_exeext && {
11159 test "$cross_compiling" = yes ||
11160 $as_test_x conftest
$ac_exeext
11162 ac_cv_lib_dld_dld_link
=yes
11164 $as_echo "$as_me: failed program was:" >&5
11165 sed 's/^/| /' conftest.
$ac_ext >&5
11167 ac_cv_lib_dld_dld_link
=no
11170 rm -rf conftest.dSYM
11171 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11172 conftest
$ac_exeext conftest.
$ac_ext
11173 LIBS
=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11176 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11177 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11178 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11199 if test "x$lt_cv_dlopen" != xno
; then
11205 case $lt_cv_dlopen in
11207 save_CPPFLAGS
="$CPPFLAGS"
11208 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11210 save_LDFLAGS
="$LDFLAGS"
11211 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11214 LIBS
="$lt_cv_dlopen_libs $LIBS"
11216 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11217 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self+set}" = set; then
11219 $as_echo_n "(cached) " >&6
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self
=cross
11224 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11225 lt_status
=$lt_dlunknown
11226 cat > conftest.
$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11242 # define LT_DLGLOBAL 0
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # define LT_DLLAZY_OR_NOW 0
11268 void fnord() { int i=42;}
11271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11272 int status = $lt_dlunknown;
11276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 /* dlclose (self); */
11286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11287 (eval $ac_link) 2>&5
11289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11291 (.
/conftest
; exit; ) >&5 2>/dev
/null
11293 case x
$lt_status in
11294 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11295 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11296 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11299 # compilation failed
11300 lt_cv_dlopen_self
=no
11307 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11308 $as_echo "$lt_cv_dlopen_self" >&6; }
11310 if test "x$lt_cv_dlopen_self" = xyes
; then
11311 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11312 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11313 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11314 if test "${lt_cv_dlopen_self_static+set}" = set; then
11315 $as_echo_n "(cached) " >&6
11317 if test "$cross_compiling" = yes; then :
11318 lt_cv_dlopen_self_static
=cross
11320 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11321 lt_status
=$lt_dlunknown
11322 cat > conftest.
$ac_ext <<_LT_EOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11333 # define LT_DLGLOBAL RTLD_GLOBAL
11336 # define LT_DLGLOBAL DL_GLOBAL
11338 # define LT_DLGLOBAL 0
11342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11343 find out it does not work in some platform. */
11344 #ifndef LT_DLLAZY_OR_NOW
11346 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11349 # define LT_DLLAZY_OR_NOW DL_LAZY
11352 # define LT_DLLAZY_OR_NOW RTLD_NOW
11355 # define LT_DLLAZY_OR_NOW DL_NOW
11357 # define LT_DLLAZY_OR_NOW 0
11364 void fnord() { int i=42;}
11367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11368 int status = $lt_dlunknown;
11372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11374 /* dlclose (self); */
11382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11383 (eval $ac_link) 2>&5
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11387 (.
/conftest
; exit; ) >&5 2>/dev
/null
11389 case x
$lt_status in
11390 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11391 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11392 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11395 # compilation failed
11396 lt_cv_dlopen_self_static
=no
11403 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11404 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11407 CPPFLAGS
="$save_CPPFLAGS"
11408 LDFLAGS
="$save_LDFLAGS"
11413 case $lt_cv_dlopen_self in
11414 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11415 *) enable_dlopen_self
=unknown
;;
11418 case $lt_cv_dlopen_self_static in
11419 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11420 *) enable_dlopen_self_static
=unknown
;;
11442 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11443 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11444 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11445 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11446 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11447 { $as_echo "$as_me:$LINENO: result: yes" >&5
11448 $as_echo "yes" >&6; }
11450 # FIXME - insert some real tests, host_os isn't really good enough
11453 if test -n "$STRIP" ; then
11454 striplib
="$STRIP -x"
11455 old_striplib
="$STRIP -S"
11456 { $as_echo "$as_me:$LINENO: result: yes" >&5
11457 $as_echo "yes" >&6; }
11459 { $as_echo "$as_me:$LINENO: result: no" >&5
11460 $as_echo "no" >&6; }
11464 { $as_echo "$as_me:$LINENO: result: no" >&5
11465 $as_echo "no" >&6; }
11481 # Report which library types will actually be built
11482 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11483 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11484 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11485 $as_echo "$can_build_shared" >&6; }
11487 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11488 $as_echo_n "checking whether to build shared libraries... " >&6; }
11489 test "$can_build_shared" = "no" && enable_shared
=no
11491 # On AIX, shared libraries and static libraries use the same namespace, and
11492 # are all built from PIC.
11495 test "$enable_shared" = yes && enable_static
=no
11496 if test -n "$RANLIB"; then
11497 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11498 postinstall_cmds
='$RANLIB $lib'
11503 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11504 test "$enable_shared" = yes && enable_static
=no
11508 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11509 $as_echo "$enable_shared" >&6; }
11511 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11512 $as_echo_n "checking whether to build static libraries... " >&6; }
11513 # Make sure either enable_shared or enable_static is yes.
11514 test "$enable_shared" = yes || enable_static
=yes
11515 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11516 $as_echo "$enable_static" >&6; }
11523 ac_cpp
='$CPP $CPPFLAGS'
11524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11542 ac_config_commands
="$ac_config_commands libtool"
11547 # Only expand once:
11550 # By default we simply use the C compiler to build assembly code.
11552 test "${CCAS+set}" = set || CCAS
=$CC
11553 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11557 depcc
="$CCAS" am_compiler_list
=
11559 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11560 $as_echo_n "checking dependency style of $depcc... " >&6; }
11561 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11562 $as_echo_n "(cached) " >&6
11564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11565 # We make a subdir and do the tests there. Otherwise we can end up
11566 # making bogus files that we don't know about and never remove. For
11567 # instance it was reported that on HP-UX the gcc test will end up
11568 # making a dummy file named `D' -- because `-MD' means `put the output
11571 # Copy depcomp to subdir because otherwise we won't find it if we're
11572 # using a relative directory.
11573 cp "$am_depcomp" conftest.dir
11575 # We will build objects and dependencies in a subdirectory because
11576 # it helps to detect inapplicable dependency modes. For instance
11577 # both Tru64's cc and ICC support -MD to output dependencies as a
11578 # side effect of compilation, but ICC will put the dependencies in
11579 # the current directory while Tru64 will put them in the object
11583 am_cv_CCAS_dependencies_compiler_type
=none
11584 if test "$am_compiler_list" = ""; then
11585 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11587 am__universal
=false
11590 for depmode
in $am_compiler_list; do
11591 # Setup a source with many dependencies, because some compilers
11592 # like to wrap large dependency lists on column 80 (with \), and
11593 # we should not choose a depcomp mode which is confused by this.
11595 # We need to recreate these files for each test, as the compiler may
11596 # overwrite some of them when testing with obscure command lines.
11597 # This happens at least with the AIX C compiler.
11599 for i
in 1 2 3 4 5 6; do
11600 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11601 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11602 # Solaris 8's {/usr,}/bin/sh.
11603 touch sub
/conftst
$i.h
11605 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11607 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11608 # mode. It turns out that the SunPro C++ compiler does not properly
11609 # handle `-M -o', and we need to detect this. Also, some Intel
11610 # versions had trouble with output in subdirs
11611 am__obj
=sub
/conftest.
${OBJEXT-o}
11612 am__minus_obj
="-o $am__obj"
11615 # This depmode causes a compiler race in universal mode.
11616 test "$am__universal" = false ||
continue
11619 # after this tag, mechanisms are not by side-effect, so they'll
11620 # only be used when explicitly requested
11621 if test "x$enable_dependency_tracking" = xyes
; then
11627 msvisualcpp | msvcmsys
)
11628 # This compiler won't grok `-c -o', but also, the minuso test has
11629 # not run yet. These depmodes are late enough in the game, and
11630 # so weak that their functioning should not be impacted.
11631 am__obj
=conftest.
${OBJEXT-o}
11636 if depmode
=$depmode \
11637 source=sub
/conftest.c object
=$am__obj \
11638 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11639 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11640 >/dev
/null
2>conftest.err
&&
11641 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11642 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11643 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11644 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11645 # icc doesn't choke on unknown options, it will just issue warnings
11646 # or remarks (even with -Werror). So we grep stderr for any message
11647 # that says an option was ignored or not supported.
11648 # When given -MP, icc 7.0 and 7.1 complain thusly:
11649 # icc: Command line warning: ignoring option '-M'; no argument required
11650 # The diagnosis changed in icc 8.0:
11651 # icc: Command line remark: option '-MP' not supported
11652 if (grep 'ignoring option' conftest.err ||
11653 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11654 am_cv_CCAS_dependencies_compiler_type
=$depmode
11661 rm -rf conftest.dir
11663 am_cv_CCAS_dependencies_compiler_type
=none
11667 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11668 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11669 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11672 test "x$enable_dependency_tracking" != xno \
11673 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11674 am__fastdepCCAS_TRUE
=
11675 am__fastdepCCAS_FALSE
='#'
11677 am__fastdepCCAS_TRUE
='#'
11678 am__fastdepCCAS_FALSE
=
11682 if test "x$CC" != xcc
; then
11683 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
11684 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11686 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
11687 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11689 set dummy
$CC; ac_cc
=`$as_echo "$2" |
11690 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11691 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
11692 $as_echo_n "(cached) " >&6
11694 cat >conftest.
$ac_ext <<_ACEOF
11697 cat confdefs.h
>>conftest.
$ac_ext
11698 cat >>conftest.
$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11709 # Make sure it works both with $CC and with simple cc.
11710 # We do the test twice because some compilers refuse to overwrite an
11711 # existing .o file with -o, though they will create one.
11712 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11714 if { (case "(($ac_try" in
11715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719 $as_echo "$ac_try_echo") >&5
11720 (eval "$ac_try") 2>&5
11722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 test -f conftest2.$ac_objext && { (case "(($ac_try" in
11725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11726 *) ac_try_echo
=$ac_try;;
11728 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11729 $as_echo "$ac_try_echo") >&5
11730 (eval "$ac_try") 2>&5
11732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); };
11735 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
11736 if test "x$CC" != xcc
; then
11737 # Test first that cc exists at all.
11738 if { ac_try
='cc -c conftest.$ac_ext >&5'
11739 { (case "(($ac_try" in
11740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744 $as_echo "$ac_try_echo") >&5
11745 (eval "$ac_try") 2>&5
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11751 if { (case "(($ac_try" in
11752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11753 *) ac_try_echo
=$ac_try;;
11755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11756 $as_echo "$ac_try_echo") >&5
11757 (eval "$ac_try") 2>&5
11759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
11762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11766 $as_echo "$ac_try_echo") >&5
11767 (eval "$ac_try") 2>&5
11769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); };
11775 # cc exists but doesn't like -o.
11776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11783 rm -f core conftest*
11786 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11787 { $as_echo "$as_me:$LINENO: result: yes" >&5
11788 $as_echo "yes" >&6; }
11790 { $as_echo "$as_me:$LINENO: result: no" >&5
11791 $as_echo "no" >&6; }
11793 cat >>confdefs.h <<\_ACEOF
11794 #define NO_MINUS_C_MINUS_O 1
11799 # FIXME: we rely on the cache variable name because
11800 # there is no other way.
11802 am_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11803 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11804 if test "$am_t" != yes; then
11805 # Losing compiler, so override with the script.
11806 # FIXME: It is wrong to rewrite CC.
11807 # But if we don't then we get into trouble of one sort or another.
11808 # A longer-term fix would be to have automake use am__CC in this case,
11809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11810 CC="$am_aux_dir/compile $CC"
11816 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11817 $as_echo_n "checking zfs author... " >&6; }
11818 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11819 $as_echo "$ZFS_META_AUTHOR" >&6; }
11821 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11822 $as_echo_n "checking zfs license... " >&6; }
11823 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11824 $as_echo "$ZFS_META_LICENSE" >&6; }
11828 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11829 $as_echo_n "checking linux distribution... " >&6; }
11830 if test -f /etc/toss-release ; then
11832 elif test -f /etc/fedora-release ; then
11834 elif test -f /etc/redhat-release ; then
11836 elif test -f /etc/gentoo-release ; then
11838 elif test -f /etc/arch-release ; then
11840 elif test -f /etc/SuSE-release ; then
11842 elif test -f /etc/slackware-version ; then
11844 elif test -f /etc/lunar.release ; then
11846 elif test -f /etc/lsb-release ; then
11848 elif test -f /etc/debian_version ; then
11850 elif test -f /etc/alpine-release ; then
11855 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11856 $as_echo "$VENDOR" >&6; }
11859 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11860 $as_echo_n "checking default package type... " >&6; }
11862 toss) DEFAULT_PACKAGE=rpm ;;
11863 redhat) DEFAULT_PACKAGE=rpm ;;
11864 fedora) DEFAULT_PACKAGE=rpm ;;
11865 gentoo) DEFAULT_PACKAGE=tgz ;;
11866 alpine) DEFAULT_PACKAGE=tgz ;;
11867 arch) DEFAULT_PACKAGE=tgz ;;
11868 sles) DEFAULT_PACKAGE=rpm ;;
11869 slackware) DEFAULT_PACKAGE=tgz ;;
11870 lunar) DEFAULT_PACKAGE=tgz ;;
11871 ubuntu) DEFAULT_PACKAGE=deb ;;
11872 debian) DEFAULT_PACKAGE=deb ;;
11873 *) DEFAULT_PACKAGE=rpm ;;
11875 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11876 $as_echo "$DEFAULT_PACKAGE" >&6; }
11879 DEFAULT_INIT_DIR=$sysconfdir/init.d
11880 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11881 $as_echo_n "checking default init directory... " >&6; }
11882 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11883 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11886 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11887 $as_echo_n "checking default init script type... " >&6; }
11889 toss) DEFAULT_INIT_SCRIPT=redhat ;;
11890 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11891 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
11892 gentoo) DEFAULT_INIT_SCRIPT=openrc ;;
11893 alpine) DEFAULT_INIT_SCRIPT=openrc ;;
11894 arch) DEFAULT_INIT_SCRIPT=lsb ;;
11895 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11896 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11897 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11898 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11899 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11900 *) DEFAULT_INIT_SCRIPT=lsb ;;
11902 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11903 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11906 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
11907 $as_echo_n "checking default init config direectory... " >&6; }
11909 alpine) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11910 gentoo) DEFAULT_INITCONF_DIR=/etc/conf.d ;;
11911 toss) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11912 redhat) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11913 fedora) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11914 sles) DEFAULT_INITCONF_DIR=/etc/sysconfig ;;
11915 ubuntu) DEFAULT_INITCONF_DIR=/etc/default ;;
11916 debian) DEFAULT_INITCONF_DIR=/etc/default ;;
11917 *) DEFAULT_INITCONF_DIR=/etc/default ;;
11919 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
11920 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11923 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
11924 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
11925 if test -d /usr/share/initramfs-tools ; then
11926 DEFINE_INITRAMFS='--define "_initramfs 1"'
11927 { $as_echo "$as_me:$LINENO: result: yes" >&5
11928 $as_echo "yes" >&6; }
11930 DEFINE_INITRAMFS=''
11931 { $as_echo "$as_me:$LINENO: result: no" >&5
11932 $as_echo "no" >&6; }
11940 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11941 $as_echo_n "checking whether $RPM is available... " >&6; }
11942 if tmp=$($RPM --version 2>/dev/null); then
11944 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11946 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11947 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11952 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11953 $as_echo "$HAVE_RPM" >&6; }
11958 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11959 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11960 if tmp=$($RPMBUILD --version 2>/dev/null); then
11962 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11964 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11965 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11970 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11971 $as_echo "$HAVE_RPMBUILD" >&6; }
11976 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1"'
11977 RPM_DEFINE_UTIL='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
11978 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11981 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11986 RPM_SPEC_DIR="rpm/generic"
11988 # Check whether --with-spec was given.
11989 if test "${with_spec+set}" = set; then
11990 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11994 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11995 $as_echo_n "checking whether spec files are available... " >&6; }
11996 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11997 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12019 DPKGBUILD=dpkg-buildpackage
12021 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
12022 $as_echo_n "checking whether $DPKG is available... " >&6; }
12023 if tmp=$($DPKG --version 2>/dev/null); then
12025 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
12027 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12028 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12033 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
12034 $as_echo "$HAVE_DPKG" >&6; }
12039 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
12040 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12041 if tmp=$($DPKGBUILD --version 2>/dev/null); then
12043 DPKGBUILD_VERSION=$(echo $tmp | \
12044 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
12046 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12047 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12052 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
12053 $as_echo "$HAVE_DPKGBUILD" >&6; }
12069 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
12070 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12071 if tmp=$($ALIEN --version 2>/dev/null); then
12073 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
12075 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12076 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12081 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
12082 $as_echo "$HAVE_ALIEN" >&6; }
12095 # Check whether --with-config was given.
12096 if test "${with_config+set}" = set; then
12097 withval=$with_config; ZFS_CONFIG="$withval"
12100 # Check whether --enable-linux-builtin was given.
12101 if test "${enable_linux_builtin+set}" = set; then
12102 enableval=$enable_linux_builtin;
12104 enable_linux_builtin=no
12108 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
12109 $as_echo_n "checking zfs config... " >&6; }
12110 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
12111 $as_echo "$ZFS_CONFIG" >&6; };
12116 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
12117 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12119 saved_flags="$CFLAGS"
12120 CFLAGS="$CFLAGS -Wunused-but-set-variable"
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12137 rm -f conftest.$ac_objext
12138 if { (ac_try="$ac_compile"
12139 case "(($ac_try" in
12140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12141 *) ac_try_echo
=$ac_try;;
12143 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145 (eval "$ac_compile") 2>conftest.er1
12147 grep -v '^ *+' conftest.er1
>conftest.err
12149 cat conftest.err
>&5
12150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest.
$ac_objext; then
12156 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12157 { $as_echo "$as_me:$LINENO: result: yes" >&5
12158 $as_echo "yes" >&6; }
12161 $as_echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.
$ac_ext >&5
12165 NO_UNUSED_BUT_SET_VARIABLE
=
12166 { $as_echo "$as_me:$LINENO: result: no" >&5
12167 $as_echo "no" >&6; }
12171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12173 CFLAGS
="$saved_flags"
12177 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
12178 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12180 saved_flags
="$CFLAGS"
12181 CFLAGS
="$CFLAGS -Wbool-compare"
12183 cat >conftest.
$ac_ext <<_ACEOF
12186 cat confdefs.h
>>conftest.
$ac_ext
12187 cat >>conftest.
$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12198 rm -f conftest.
$ac_objext
12199 if { (ac_try
="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12217 NO_BOOL_COMPARE=-Wno-bool-compare
12218 { $as_echo "$as_me:$LINENO: result: yes" >&5
12219 $as_echo "yes" >&6; }
12222 $as_echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12227 { $as_echo "$as_me:$LINENO: result: no" >&5
12228 $as_echo "no" >&6; }
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 CFLAGS="$saved_flags"
12238 case "$host_cpu" in
12239 x86_64 | x86 | i686)
12241 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE" >&5
12242 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12253 __asm__ __volatile__("xorps %xmm0, %xmm1");
12257 rm -f conftest.$ac_objext conftest$ac_exeext
12258 if { (ac_try="$ac_link"
12259 case "(($ac_try" in
12260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12261 *) ac_try_echo
=$ac_try;;
12263 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12264 $as_echo "$ac_try_echo") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest
$ac_exeext && {
12275 test "$cross_compiling" = yes ||
12276 $as_test_x conftest
$ac_exeext
12280 cat >>confdefs.h
<<\_ACEOF
12284 { $as_echo "$as_me:$LINENO: result: yes" >&5
12285 $as_echo "yes" >&6; }
12288 $as_echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.
$ac_ext >&5
12292 { $as_echo "$as_me:$LINENO: result: no" >&5
12293 $as_echo "no" >&6; }
12297 rm -rf conftest.dSYM
12298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12299 conftest
$ac_exeext conftest.
$ac_ext
12302 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE2" >&5
12303 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12305 cat >conftest.
$ac_ext <<_ACEOF
12308 cat confdefs.h
>>conftest.
$ac_ext
12309 cat >>conftest.
$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12314 __asm__ __volatile__("pxor %xmm0, %xmm1");
12318 rm -f conftest.
$ac_objext conftest
$ac_exeext
12319 if { (ac_try
="$ac_link"
12320 case "(($ac_try" in
12321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12325 $as_echo "$ac_try_echo") >&5
12326 (eval "$ac_link") 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest$ac_exeext && {
12336 test "$cross_compiling" = yes ||
12337 $as_test_x conftest$ac_exeext
12341 cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_SSE2 1
12345 { $as_echo "$as_me:$LINENO: result: yes" >&5
12346 $as_echo "yes" >&6; }
12349 $as_echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12353 { $as_echo "$as_me:$LINENO: result: no" >&5
12354 $as_echo "no" >&6; }
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12363 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE3" >&5
12364 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12376 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12380 rm -f conftest.$ac_objext conftest$ac_exeext
12381 if { (ac_try="$ac_link"
12382 case "(($ac_try" in
12383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12384 *) ac_try_echo
=$ac_try;;
12386 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12387 $as_echo "$ac_try_echo") >&5
12388 (eval "$ac_link") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1
>conftest.err
12392 cat conftest.err
>&5
12393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest
$ac_exeext && {
12398 test "$cross_compiling" = yes ||
12399 $as_test_x conftest
$ac_exeext
12403 cat >>confdefs.h
<<\_ACEOF
12404 #define HAVE_SSE3 1
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12411 $as_echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.
$ac_ext >&5
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12420 rm -rf conftest.dSYM
12421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12422 conftest
$ac_exeext conftest.
$ac_ext
12425 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSSE3" >&5
12426 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12437 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12441 rm -f conftest.
$ac_objext conftest
$ac_exeext
12442 if { (ac_try
="$ac_link"
12443 case "(($ac_try" in
12444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12448 $as_echo "$ac_try_echo") >&5
12449 (eval "$ac_link") 2>conftest.er1
12451 grep -v '^ *+' conftest.er1 >conftest.err
12453 cat conftest.err >&5
12454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest$ac_exeext && {
12459 test "$cross_compiling" = yes ||
12460 $as_test_x conftest$ac_exeext
12464 cat >>confdefs.h <<\_ACEOF
12465 #define HAVE_SSSE3 1
12468 { $as_echo "$as_me:$LINENO: result: yes" >&5
12469 $as_echo "yes" >&6; }
12472 $as_echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12476 { $as_echo "$as_me:$LINENO: result: no" >&5
12477 $as_echo "no" >&6; }
12481 rm -rf conftest.dSYM
12482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12483 conftest$ac_exeext conftest.$ac_ext
12486 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.1" >&5
12487 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12489 cat >conftest.$ac_ext <<_ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12498 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12506 *) ac_try_echo
=$ac_try;;
12508 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12509 $as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1
>conftest.err
12514 cat conftest.err
>&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest
$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest
$ac_exeext
12525 cat >>confdefs.h
<<\_ACEOF
12526 #define HAVE_SSE4_1 1
12529 { $as_echo "$as_me:$LINENO: result: yes" >&5
12530 $as_echo "yes" >&6; }
12533 $as_echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.
$ac_ext >&5
12537 { $as_echo "$as_me:$LINENO: result: no" >&5
12538 $as_echo "no" >&6; }
12542 rm -rf conftest.dSYM
12543 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12544 conftest
$ac_exeext conftest.
$ac_ext
12547 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports SSE4.2" >&5
12548 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
12550 cat >conftest.
$ac_ext <<_ACEOF
12553 cat confdefs.h
>>conftest.
$ac_ext
12554 cat >>conftest.
$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12559 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
12563 rm -f conftest.
$ac_objext conftest
$ac_exeext
12564 if { (ac_try
="$ac_link"
12565 case "(($ac_try" in
12566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12567 *) ac_try_echo=$ac_try;;
12569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12570 $as_echo "$ac_try_echo") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && {
12578 test -z "$ac_c_werror_flag" ||
12579 test ! -s conftest.err
12580 } && test -s conftest$ac_exeext && {
12581 test "$cross_compiling" = yes ||
12582 $as_test_x conftest$ac_exeext
12586 cat >>confdefs.h <<\_ACEOF
12587 #define HAVE_SSE4_2 1
12590 { $as_echo "$as_me:$LINENO: result: yes" >&5
12591 $as_echo "yes" >&6; }
12594 $as_echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599 $as_echo "no" >&6; }
12603 rm -rf conftest.dSYM
12604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12605 conftest$ac_exeext conftest.$ac_ext
12608 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX" >&5
12609 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12621 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12629 *) ac_try_echo
=$ac_try;;
12631 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12632 $as_echo "$ac_try_echo") >&5
12633 (eval "$ac_link") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1
>conftest.err
12637 cat conftest.err
>&5
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest
$ac_exeext && {
12643 test "$cross_compiling" = yes ||
12644 $as_test_x conftest
$ac_exeext
12647 { $as_echo "$as_me:$LINENO: result: yes" >&5
12648 $as_echo "yes" >&6; }
12650 cat >>confdefs.h
<<\_ACEOF
12656 $as_echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12660 { $as_echo "$as_me:$LINENO: result: no" >&5
12661 $as_echo "no" >&6; }
12665 rm -rf conftest.dSYM
12666 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12667 conftest
$ac_exeext conftest.
$ac_ext
12670 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX2" >&5
12671 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
12673 cat >conftest.
$ac_ext <<_ACEOF
12676 cat confdefs.h
>>conftest.
$ac_ext
12677 cat >>conftest.
$ac_ext <<_ACEOF
12678 /* end confdefs.h. */
12683 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
12687 rm -f conftest.
$ac_objext conftest
$ac_exeext
12688 if { (ac_try
="$ac_link"
12689 case "(($ac_try" in
12690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12694 $as_echo "$ac_try_echo") >&5
12695 (eval "$ac_link") 2>conftest.er1
12697 grep -v '^ *+' conftest.er1 >conftest.err
12699 cat conftest.err >&5
12700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest$ac_exeext && {
12705 test "$cross_compiling" = yes ||
12706 $as_test_x conftest$ac_exeext
12709 { $as_echo "$as_me:$LINENO: result: yes" >&5
12710 $as_echo "yes" >&6; }
12712 cat >>confdefs.h <<\_ACEOF
12713 #define HAVE_AVX2 1
12718 $as_echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723 $as_echo "no" >&6; }
12727 rm -rf conftest.dSYM
12728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12729 conftest$ac_exeext conftest.$ac_ext
12732 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512F" >&5
12733 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h. */
12745 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
12749 rm -f conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12753 *) ac_try_echo
=$ac_try;;
12755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1
>conftest.err
12761 cat conftest.err
>&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest
$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest
$ac_exeext
12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
12772 $as_echo "yes" >&6; }
12774 cat >>confdefs.h
<<\_ACEOF
12775 #define HAVE_AVX512F 1
12780 $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.
$ac_ext >&5
12784 { $as_echo "$as_me:$LINENO: result: no" >&5
12785 $as_echo "no" >&6; }
12789 rm -rf conftest.dSYM
12790 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12791 conftest
$ac_exeext conftest.
$ac_ext
12794 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512CD" >&5
12795 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
12797 cat >conftest.
$ac_ext <<_ACEOF
12800 cat confdefs.h
>>conftest.
$ac_ext
12801 cat >>conftest.
$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12807 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
12811 rm -f conftest.
$ac_objext conftest
$ac_exeext
12812 if { (ac_try
="$ac_link"
12813 case "(($ac_try" in
12814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12818 $as_echo "$ac_try_echo") >&5
12819 (eval "$ac_link") 2>conftest.er1
12821 grep -v '^ *+' conftest.er1 >conftest.err
12823 cat conftest.err >&5
12824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } && {
12826 test -z "$ac_c_werror_flag" ||
12827 test ! -s conftest.err
12828 } && test -s conftest$ac_exeext && {
12829 test "$cross_compiling" = yes ||
12830 $as_test_x conftest$ac_exeext
12833 { $as_echo "$as_me:$LINENO: result: yes" >&5
12834 $as_echo "yes" >&6; }
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_AVX512CD 1
12842 $as_echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12846 { $as_echo "$as_me:$LINENO: result: no" >&5
12847 $as_echo "no" >&6; }
12851 rm -rf conftest.dSYM
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12853 conftest$ac_exeext conftest.$ac_ext
12856 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512DQ" >&5
12857 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
12859 cat >conftest.$ac_ext <<_ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12869 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
12873 rm -f conftest.$ac_objext conftest$ac_exeext
12874 if { (ac_try="$ac_link"
12875 case "(($ac_try" in
12876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12877 *) ac_try_echo
=$ac_try;;
12879 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12880 $as_echo "$ac_try_echo") >&5
12881 (eval "$ac_link") 2>conftest.er1
12883 grep -v '^ *+' conftest.er1
>conftest.err
12885 cat conftest.err
>&5
12886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } && {
12888 test -z "$ac_c_werror_flag" ||
12889 test ! -s conftest.err
12890 } && test -s conftest
$ac_exeext && {
12891 test "$cross_compiling" = yes ||
12892 $as_test_x conftest
$ac_exeext
12895 { $as_echo "$as_me:$LINENO: result: yes" >&5
12896 $as_echo "yes" >&6; }
12898 cat >>confdefs.h
<<\_ACEOF
12899 #define HAVE_AVX512DQ 1
12904 $as_echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.
$ac_ext >&5
12908 { $as_echo "$as_me:$LINENO: result: no" >&5
12909 $as_echo "no" >&6; }
12913 rm -rf conftest.dSYM
12914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12915 conftest
$ac_exeext conftest.
$ac_ext
12918 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512BW" >&5
12919 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
12921 cat >conftest.
$ac_ext <<_ACEOF
12924 cat confdefs.h
>>conftest.
$ac_ext
12925 cat >>conftest.
$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12931 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
12935 rm -f conftest.
$ac_objext conftest
$ac_exeext
12936 if { (ac_try
="$ac_link"
12937 case "(($ac_try" in
12938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12957 { $as_echo "$as_me:$LINENO: result: yes" >&5
12958 $as_echo "yes" >&6; }
12960 cat >>confdefs.h <<\_ACEOF
12961 #define HAVE_AVX512BW 1
12966 $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12970 { $as_echo "$as_me:$LINENO: result: no" >&5
12971 $as_echo "no" >&6; }
12975 rm -rf conftest.dSYM
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12980 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512IFMA" >&5
12981 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
12983 cat >conftest.$ac_ext <<_ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12993 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (ac_try="$ac_link"
12999 case "(($ac_try" in
13000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13001 *) ac_try_echo
=$ac_try;;
13003 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13004 $as_echo "$ac_try_echo") >&5
13005 (eval "$ac_link") 2>conftest.er1
13007 grep -v '^ *+' conftest.er1
>conftest.err
13009 cat conftest.err
>&5
13010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest
$ac_exeext && {
13015 test "$cross_compiling" = yes ||
13016 $as_test_x conftest
$ac_exeext
13019 { $as_echo "$as_me:$LINENO: result: yes" >&5
13020 $as_echo "yes" >&6; }
13022 cat >>confdefs.h
<<\_ACEOF
13023 #define HAVE_AVX512IFMA 1
13028 $as_echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.
$ac_ext >&5
13032 { $as_echo "$as_me:$LINENO: result: no" >&5
13033 $as_echo "no" >&6; }
13037 rm -rf conftest.dSYM
13038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13039 conftest
$ac_exeext conftest.
$ac_ext
13042 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VBMI" >&5
13043 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13045 cat >conftest.
$ac_ext <<_ACEOF
13048 cat confdefs.h
>>conftest.
$ac_ext
13049 cat >>conftest.
$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13055 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13059 rm -f conftest.
$ac_objext conftest
$ac_exeext
13060 if { (ac_try
="$ac_link"
13061 case "(($ac_try" in
13062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13066 $as_echo "$ac_try_echo") >&5
13067 (eval "$ac_link") 2>conftest.er1
13069 grep -v '^ *+' conftest.er1 >conftest.err
13071 cat conftest.err >&5
13072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest$ac_exeext && {
13077 test "$cross_compiling" = yes ||
13078 $as_test_x conftest$ac_exeext
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082 $as_echo "yes" >&6; }
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_AVX512VBMI 1
13090 $as_echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13094 { $as_echo "$as_me:$LINENO: result: no" >&5
13095 $as_echo "no" >&6; }
13099 rm -rf conftest.dSYM
13100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13101 conftest$ac_exeext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512PF" >&5
13105 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13117 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (ac_try="$ac_link"
13123 case "(($ac_try" in
13124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13125 *) ac_try_echo
=$ac_try;;
13127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_link") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest
$ac_exeext && {
13139 test "$cross_compiling" = yes ||
13140 $as_test_x conftest
$ac_exeext
13143 { $as_echo "$as_me:$LINENO: result: yes" >&5
13144 $as_echo "yes" >&6; }
13146 cat >>confdefs.h
<<\_ACEOF
13147 #define HAVE_AVX512PF 1
13152 $as_echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.
$ac_ext >&5
13156 { $as_echo "$as_me:$LINENO: result: no" >&5
13157 $as_echo "no" >&6; }
13161 rm -rf conftest.dSYM
13162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13163 conftest
$ac_exeext conftest.
$ac_ext
13166 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512ER" >&5
13167 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13169 cat >conftest.
$ac_ext <<_ACEOF
13172 cat confdefs.h
>>conftest.
$ac_ext
13173 cat >>conftest.
$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13179 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13183 rm -f conftest.
$ac_objext conftest
$ac_exeext
13184 if { (ac_try
="$ac_link"
13185 case "(($ac_try" in
13186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13190 $as_echo "$ac_try_echo") >&5
13191 (eval "$ac_link") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest$ac_exeext && {
13201 test "$cross_compiling" = yes ||
13202 $as_test_x conftest$ac_exeext
13205 { $as_echo "$as_me:$LINENO: result: yes" >&5
13206 $as_echo "yes" >&6; }
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_AVX512ER 1
13214 $as_echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13218 { $as_echo "$as_me:$LINENO: result: no" >&5
13219 $as_echo "no" >&6; }
13223 rm -rf conftest.dSYM
13224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13225 conftest$ac_exeext conftest.$ac_ext
13228 { $as_echo "$as_me:$LINENO: checking whether host toolchain supports AVX512VL" >&5
13229 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13241 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (ac_try="$ac_link"
13247 case "(($ac_try" in
13248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13249 *) ac_try_echo
=$ac_try;;
13251 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13252 $as_echo "$ac_try_echo") >&5
13253 (eval "$ac_link") 2>conftest.er1
13255 grep -v '^ *+' conftest.er1
>conftest.err
13257 cat conftest.err
>&5
13258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); } && {
13260 test -z "$ac_c_werror_flag" ||
13261 test ! -s conftest.err
13262 } && test -s conftest
$ac_exeext && {
13263 test "$cross_compiling" = yes ||
13264 $as_test_x conftest
$ac_exeext
13267 { $as_echo "$as_me:$LINENO: result: yes" >&5
13268 $as_echo "yes" >&6; }
13270 cat >>confdefs.h
<<\_ACEOF
13271 #define HAVE_AVX512VL 1
13276 $as_echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.
$ac_ext >&5
13280 { $as_echo "$as_me:$LINENO: result: no" >&5
13281 $as_echo "no" >&6; }
13285 rm -rf conftest.dSYM
13286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13287 conftest
$ac_exeext conftest.
$ac_ext
13293 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
13294 $as_echo_n "checking for target asm dir... " >&6; }
13295 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13297 case $TARGET_ARCH in
13299 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13302 TARGET_ASM_DIR
=asm-generic
13307 if test $TARGET_ASM_DIR = asm-x86_64
; then
13308 TARGET_ASM_X86_64_TRUE
=
13309 TARGET_ASM_X86_64_FALSE
='#'
13311 TARGET_ASM_X86_64_TRUE
='#'
13312 TARGET_ASM_X86_64_FALSE
=
13315 if test $TARGET_ASM_DIR = asm-i386
; then
13316 TARGET_ASM_I386_TRUE
=
13317 TARGET_ASM_I386_FALSE
='#'
13319 TARGET_ASM_I386_TRUE
='#'
13320 TARGET_ASM_I386_FALSE
=
13323 if test $TARGET_ASM_DIR = asm-generic
; then
13324 TARGET_ASM_GENERIC_TRUE
=
13325 TARGET_ASM_GENERIC_FALSE
='#'
13327 TARGET_ASM_GENERIC_TRUE
='#'
13328 TARGET_ASM_GENERIC_FALSE
=
13331 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
13332 $as_echo "$TARGET_ASM_DIR" >&6; }
13336 case "$ZFS_CONFIG" in
13340 # Check whether --with-linux was given.
13341 if test "${with_linux+set}" = set; then
13342 withval
=$with_linux; kernelsrc
="$withval"
13347 # Check whether --with-linux-obj was given.
13348 if test "${with_linux_obj+set}" = set; then
13349 withval
=$with_linux_obj; kernelbuild
="$withval"
13353 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
13354 $as_echo_n "checking kernel source directory... " >&6; }
13355 if test -z "$kernelsrc"; then
13357 if test -e "/lib/modules/$(uname -r)/source"; then
13359 headersdir
="/lib/modules/$(uname -r)/source"
13360 sourcelink
=$
(readlink
-f "$headersdir")
13362 elif test -e "/lib/modules/$(uname -r)/build"; then
13364 headersdir
="/lib/modules/$(uname -r)/build"
13365 sourcelink
=$
(readlink
-f "$headersdir")
13369 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13371 2>/dev
/null |
grep -v obj |
tail -1)
13376 if test -n "$sourcelink" && test -e ${sourcelink}; then
13378 kernelsrc
=`readlink -f ${sourcelink}`
13382 kernelsrc
="Not found"
13389 if test "$kernelsrc" = "NONE"; then
13400 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
13401 $as_echo "$kernelsrc" >&6; }
13402 if test ! -d "$kernelsrc"; then
13404 { { $as_echo "$as_me:$LINENO: error:
13405 *** Please make sure the kernel devel package for your distribution
13406 *** is installed and then try again. If that fails, you can specify the
13407 *** location of the kernel source with the '--with-linux=PATH' option." >&5
13408 $as_echo "$as_me: error:
13409 *** Please make sure the kernel devel package for your distribution
13410 *** is installed and then try again. If that fails, you can specify the
13411 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
13412 { (exit 1); exit 1; }; }
13417 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
13418 $as_echo_n "checking kernel build directory... " >&6; }
13419 if test -z "$kernelbuild"; then
13421 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then
13423 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13425 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
13427 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13429 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
13431 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13433 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
13435 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13439 kernelbuild
=${kernelsrc}
13446 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
13447 $as_echo "$kernelbuild" >&6; }
13449 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
13450 $as_echo_n "checking kernel source version... " >&6; }
13451 utsrelease1
=$kernelbuild/include
/linux
/version.h
13452 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13453 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13454 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
13456 utsrelease
=linux
/version.h
13458 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
13460 utsrelease
=linux
/utsrelease.h
13462 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
13464 utsrelease
=generated
/utsrelease.h
13469 if test "$utsrelease"; then
13471 kernsrcver
=`(echo "#include <$utsrelease>";
13472 echo "kernsrcver=UTS_RELEASE") |
13473 cpp -I $kernelbuild/include |
13474 grep "^kernsrcver=" | cut -d \" -f 2`
13476 if test -z "$kernsrcver"; then
13478 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13479 $as_echo "Not found" >&6; }
13480 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
13481 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
13482 { (exit 1); exit 1; }; }
13489 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13490 $as_echo "Not found" >&6; }
13491 if test "x$enable_linux_builtin" != xyes
; then
13492 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
13493 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
13494 { (exit 1); exit 1; }; }
13496 { { $as_echo "$as_me:$LINENO: error:
13497 *** Cannot find UTS_RELEASE definition.
13498 *** Please run 'make prepare' inside the kernel source tree." >&5
13499 $as_echo "$as_me: error:
13500 *** Cannot find UTS_RELEASE definition.
13501 *** Please run 'make prepare' inside the kernel source tree." >&2;}
13502 { (exit 1); exit 1; }; }
13508 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
13509 $as_echo "$kernsrcver" >&6; }
13512 LINUX_OBJ
=${kernelbuild}
13513 LINUX_VERSION
=${kernsrcver}
13520 modpost
=$LINUX/scripts
/Makefile.modpost
13521 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
13522 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13523 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
13525 if grep -q Modules.symvers
$modpost; then
13527 LINUX_SYMBOLS
=Modules.symvers
13531 LINUX_SYMBOLS
=Module.symvers
13536 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
13538 { { $as_echo "$as_me:$LINENO: error:
13539 *** Please make sure the kernel devel package for your distribution
13540 *** is installed. If you are building with a custom kernel, make sure the
13541 *** kernel is configured, built, and the '--with-linux=PATH' configure
13542 *** option refers to the location of the kernel source." >&5
13543 $as_echo "$as_me: error:
13544 *** Please make sure the kernel devel package for your distribution
13545 *** is installed. If you are building with a custom kernel, make sure the
13546 *** kernel is configured, built, and the '--with-linux=PATH' configure
13547 *** option refers to the location of the kernel source." >&2;}
13548 { (exit 1); exit 1; }; }
13559 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
13560 $as_echo "$LINUX_SYMBOLS" >&6; }
13566 # Check whether --with-spl was given.
13567 if test "${with_spl+set}" = set; then
13568 withval
=$with_spl; if test "$withval" = "yes"; then
13569 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
13570 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
13571 { (exit 1); exit 1; }; }
13580 # Check whether --with-spl-obj was given.
13581 if test "${with_spl_obj+set}" = set; then
13582 withval
=$with_spl_obj; splbuild
="$withval"
13587 # Check whether --with-spl-timeout was given.
13588 if test "${with_spl_timeout+set}" = set; then
13589 withval
=$with_spl_timeout; timeout
="$withval"
13595 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13596 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13597 splsrc2
="/usr/local/src/spl-${VERSION}"
13598 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13599 splsrc4
="/usr/src/spl-${VERSION}"
13603 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
13604 $as_echo_n "checking spl source directory... " >&6; }
13605 if test -z "${splsrc}"; then
13615 if test -e "${splsrc0}/spl.release.in"; then
13619 elif test -e "${splsrc1}/spl.release.in"; then
13623 elif test -e "${splsrc2}/spl.release.in"; then
13627 elif test -e "${splsrc3}/spl.release.in"; then
13629 splsrc
=$
(readlink
-f "${splsrc3}")
13631 elif test -e "${splsrc4}/spl.release.in" ; then
13635 elif test -e "${splsrc5}/spl.release.in"; then
13637 splsrc
=$
(readlink
-f "${splsrc5}")
13639 elif test -e "${splsrc6}/spl.release.in" ; then
13652 all_spl_sources
="$withval",
13653 if test "$splsrc" = "NONE"; then
13664 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
13665 $as_echo "$splsrc" >&6; }
13666 if test ! -e "$splsrc/spl.release.in"; then
13668 { { $as_echo "$as_me:$LINENO: error:
13669 *** Please make sure the kmod spl devel package for your distribution
13670 *** is installed then try again. If that fails you can specify the
13671 *** location of the spl source with the '--with-spl=PATH' option.
13672 *** The spl version must match the version of ZFS you are building,
13673 *** ${VERSION}. Failed to find spl.release.in in the following:
13674 $all_spl_sources" >&5
13675 $as_echo "$as_me: error:
13676 *** Please make sure the kmod spl devel package for your distribution
13677 *** is installed then try again. If that fails you can specify the
13678 *** location of the spl source with the '--with-spl=PATH' option.
13679 *** The spl version must match the version of ZFS you are building,
13680 *** ${VERSION}. Failed to find spl.release.in in the following:
13681 $all_spl_sources" >&2;}
13682 { (exit 1); exit 1; }; }
13687 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
13688 $as_echo_n "checking spl build directory... " >&6; }
13690 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
13694 if test -z "$splbuild"; then
13696 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
13698 splbuild
="${splsrc}/${LINUX_VERSION}"
13700 elif test -e "${splsrc}/spl_config.h" ; then
13702 splbuild
="${splsrc}"
13704 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then
13706 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13710 splbuild
="Not found"
13717 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
13724 timeout
=$
((timeout-1
))
13730 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
13731 $as_echo "$splbuild" >&6; }
13732 if ! test -e "$splbuild/spl_config.h"; then
13734 { { $as_echo "$as_me:$LINENO: error:
13735 *** Please make sure the kmod spl devel <kernel> package for your
13736 *** distribution is installed then try again. If that fails you
13737 *** can specify the location of the spl objects with the
13738 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13739 *** any of the following:
13740 $all_spl_config_locs" >&5
13741 $as_echo "$as_me: error:
13742 *** Please make sure the kmod spl devel <kernel> package for your
13743 *** distribution is installed then try again. If that fails you
13744 *** can specify the location of the spl objects with the
13745 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13746 *** any of the following:
13747 $all_spl_config_locs" >&2;}
13748 { (exit 1); exit 1; }; }
13753 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
13754 $as_echo_n "checking spl source version... " >&6; }
13755 if test -r $splbuild/spl_config.h
&&
13756 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
13759 splsrcver
=`(echo "#include <spl_config.h>";
13760 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13762 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13767 if test -z "$splsrcver"; then
13769 { $as_echo "$as_me:$LINENO: result: Not found" >&5
13770 $as_echo "Not found" >&6; }
13771 { { $as_echo "$as_me:$LINENO: error:
13772 *** Cannot determine the version of the spl source.
13773 *** Please prepare the spl source before running this script" >&5
13774 $as_echo "$as_me: error:
13775 *** Cannot determine the version of the spl source.
13776 *** Please prepare the spl source before running this script" >&2;}
13777 { (exit 1); exit 1; }; }
13782 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
13783 $as_echo "$splsrcver" >&6; }
13786 SPL_OBJ
=${splbuild}
13787 SPL_VERSION
=${splsrcver}
13793 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
13794 $as_echo_n "checking spl file name for module symbols... " >&6; }
13798 if test -r $SPL_OBJ/Module.symvers
; then
13800 SPL_SYMBOLS
=Module.symvers
13802 elif test -r $SPL_OBJ/Modules.symvers
; then
13804 SPL_SYMBOLS
=Modules.symvers
13806 elif test -r $SPL_OBJ/module
/Module.symvers
; then
13808 SPL_SYMBOLS
=Module.symvers
13810 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
13812 SPL_SYMBOLS
=Modules.symvers
13817 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then
13824 timeout
=$
((timeout-1
))
13830 if test "$SPL_SYMBOLS" = NONE
; then
13832 SPL_SYMBOLS
=$LINUX_SYMBOLS
13837 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
13838 $as_echo "$SPL_SYMBOLS" >&6; }
13843 # Check whether --with-qat was given.
13844 if test "${with_qat+set}" = set; then
13845 withval
=$with_qat; if test "$withval" = "yes"; then
13846 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
13847 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
13848 { (exit 1); exit 1; }; }
13857 # Check whether --with-qat-obj was given.
13858 if test "${with_qat_obj+set}" = set; then
13859 withval
=$with_qat_obj; qatbuild
="$withval"
13863 if test ! -z "${qatsrc}"; then
13865 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
13866 $as_echo_n "checking qat source directory... " >&6; }
13867 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
13868 $as_echo "$qatsrc" >&6; }
13869 QAT_SRC
="${qatsrc}/quickassist"
13870 if test ! -e "$QAT_SRC/include/cpa.h"; then
13872 { { $as_echo "$as_me:$LINENO: error:
13873 *** Please make sure the qat driver package is installed
13874 *** and specify the location of the qat source with the
13875 *** '--with-qat=PATH' option then try again. Failed to
13877 ${QAT_SRC}/include" >&5
13878 $as_echo "$as_me: error:
13879 *** Please make sure the qat driver package is installed
13880 *** and specify the location of the qat source with the
13881 *** '--with-qat=PATH' option then try again. Failed to
13883 ${QAT_SRC}/include" >&2;}
13884 { (exit 1); exit 1; }; }
13892 if test ! -z "${qatsrc}"; then
13894 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
13895 $as_echo_n "checking qat build directory... " >&6; }
13896 if test -z "$qatbuild"; then
13898 qatbuild
="${qatsrc}/build"
13903 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
13904 $as_echo "$qatbuild" >&6; }
13905 QAT_OBJ
=${qatbuild}
13906 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
13908 { { $as_echo "$as_me:$LINENO: error:
13909 *** Please make sure the qat driver is installed then try again.
13910 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13912 $as_echo "$as_me: error:
13913 *** Please make sure the qat driver is installed then try again.
13914 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13916 { (exit 1); exit 1; }; }
13925 cat >>confdefs.h
<<\_ACEOF
13933 if test ! -z "${qatsrc}"; then
13935 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
13936 $as_echo_n "checking qat file for module symbols... " >&6; }
13937 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
13939 if test -r $QAT_SYMBOLS; then
13941 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
13942 $as_echo "$QAT_SYMBOLS" >&6; }
13947 { { $as_echo "$as_me:$LINENO: error:
13948 *** Please make sure the qat driver is installed then try again.
13949 *** Failed to find Module.symvers in:
13951 $as_echo "$as_me: error:
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" >&2;}
13955 { (exit 1); exit 1; }; }
13964 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
13965 $as_echo_n "checking whether modules can be built... " >&6; }
13968 cat confdefs.h
- <<_ACEOF >conftest.c
13971 cat confdefs.h
>>conftest.
$ac_ext
13972 cat >>conftest.
$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13988 cat - <<_ACEOF >conftest.h
13993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13994 echo "obj-m := conftest.o" >build
/Makefile
13996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14009 { $as_echo "$as_me:$LINENO: result: yes" >&5
14010 $as_echo "yes" >&6; }
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.
$ac_ext >&5
14016 { $as_echo "$as_me:$LINENO: result: no" >&5
14017 $as_echo "no" >&6; }
14018 if test "x$enable_linux_builtin" != xyes
; then
14019 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
14020 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
14021 { (exit 1); exit 1; }; }
14023 { { $as_echo "$as_me:$LINENO: error:
14024 *** Unable to build an empty module.
14025 *** Please run 'make scripts' inside the kernel source tree." >&5
14026 $as_echo "$as_me: error:
14027 *** Unable to build an empty module.
14028 *** Please run 'make scripts' inside the kernel source tree." >&2;}
14029 { (exit 1); exit 1; }; }
14041 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
14042 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14045 cat confdefs.h
- <<_ACEOF >conftest.c
14048 cat confdefs.h
>>conftest.
$ac_ext
14049 cat >>conftest.
$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14053 #undef __ASSEMBLY__
14054 #include <asm/frame.h>
14060 #if !defined(FRAME_BEGIN)
14072 cat - <<_ACEOF >conftest.h
14077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14078 echo "obj-m := conftest.o" >build
/Makefile
14080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14093 { $as_echo "$as_me:$LINENO: result: yes" >&5
14094 $as_echo "yes" >&6; }
14096 cat >>confdefs.h
<<\_ACEOF
14097 #define HAVE_KERNEL_OBJTOOL 1
14102 $as_echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.
$ac_ext >&5
14105 { $as_echo "$as_me:$LINENO: result: no" >&5
14106 $as_echo "no" >&6; }
14117 if test "x$cross_compiling" != xyes
; then
14119 if test "$cross_compiling" = yes; then
14120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14122 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14123 See \`config.log' for more details." >&5
14124 $as_echo "$as_me: error: cannot run test program while cross compiling
14125 See \`config.log' for more details." >&2;}
14126 { (exit 1); exit 1; }; }; }
14128 cat >conftest.
$ac_ext <<_ACEOF
14132 cat confdefs.h
>>conftest.
$ac_ext
14133 cat >>conftest.
$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14136 #include "$LINUX/include/linux/license.h"
14142 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14149 rm -f conftest
$ac_exeext
14150 if { (ac_try
="$ac_link"
14151 case "(($ac_try" in
14152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157 (eval "$ac_link") 2>&5
14159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14161 { (case "(($ac_try" in
14162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14163 *) ac_try_echo
=$ac_try;;
14165 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14166 $as_echo "$ac_try_echo") >&5
14167 (eval "$ac_try") 2>&5
14169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14173 cat >>confdefs.h
<<\_ACEOF
14174 #define ZFS_IS_GPL_COMPATIBLE 1
14179 $as_echo "$as_me: program exited with status $ac_status" >&5
14180 $as_echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.
$ac_ext >&5
14183 ( exit $ac_status )
14187 rm -rf conftest.dSYM
14188 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14197 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
14198 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14201 cat confdefs.h
- <<_ACEOF >conftest.c
14204 cat confdefs.h
>>conftest.
$ac_ext
14205 cat >>conftest.
$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14209 #include <linux/module.h>
14215 #if (THREAD_SIZE < 16384)
14216 #error "THREAD_SIZE is less than 16K"
14227 cat - <<_ACEOF >conftest.h
14232 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14233 echo "obj-m := conftest.o" >build
/Makefile
14235 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14236 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14248 { $as_echo "$as_me:$LINENO: result: yes" >&5
14249 $as_echo "yes" >&6; }
14251 cat >>confdefs.h
<<\_ACEOF
14252 #define HAVE_LARGE_STACKS 1
14257 $as_echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.
$ac_ext >&5
14260 { $as_echo "$as_me:$LINENO: result: no" >&5
14261 $as_echo "no" >&6; }
14273 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14274 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14277 cat confdefs.h
- <<_ACEOF >conftest.c
14280 cat confdefs.h
>>conftest.
$ac_ext
14281 cat >>conftest.
$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14285 #include <linux/module.h>
14291 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14292 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14303 cat - <<_ACEOF >conftest.h
14308 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14309 echo "obj-m := conftest.o" >build
/Makefile
14311 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14312 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14324 { $as_echo "$as_me:$LINENO: result: yes" >&5
14325 $as_echo "yes" >&6; }
14327 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
14328 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14329 tmp_flags
="$EXTRA_KCFLAGS"
14332 cat confdefs.h
- <<_ACEOF >conftest.c
14335 cat confdefs.h
>>conftest.
$ac_ext
14336 cat >>conftest.
$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14340 #include <linux/module.h>
14341 #include <linux/mutex.h>
14343 MODULE_LICENSE("$ZFS_META_LICENSE");
14353 mutex_unlock(&lock);
14363 cat - <<_ACEOF >conftest.h
14368 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14369 echo "obj-m := conftest.o" >build
/Makefile
14371 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14372 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14384 { $as_echo "$as_me:$LINENO: result: no" >&5
14385 $as_echo "no" >&6; }
14388 $as_echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.
$ac_ext >&5
14391 { $as_echo "$as_me:$LINENO: result: yes" >&5
14392 $as_echo "yes" >&6; }
14393 { { $as_echo "$as_me:$LINENO: error:
14394 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14395 *** with the CDDL license and will prevent the module linking stage
14396 *** from succeeding. You must rebuild your kernel without this
14397 *** option enabled." >&5
14398 $as_echo "$as_me: error:
14399 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14400 *** with the CDDL license and will prevent the module linking stage
14401 *** from succeeding. You must rebuild your kernel without this
14402 *** option enabled." >&2;}
14403 { (exit 1); exit 1; }; }
14412 EXTRA_KCFLAGS
="$tmp_flags"
14416 $as_echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.
$ac_ext >&5
14419 { $as_echo "$as_me:$LINENO: result: no" >&5
14420 $as_echo "no" >&6; }
14434 tmp_flags
="$EXTRA_KCFLAGS"
14435 EXTRA_KCFLAGS
="-I\$(src)"
14437 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
14438 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14441 cat confdefs.h
- <<_ACEOF >conftest.c
14444 cat confdefs.h
>>conftest.
$ac_ext
14445 cat >>conftest.
$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14449 #include <linux/module.h>
14450 MODULE_LICENSE(ZFS_META_LICENSE);
14452 #define CREATE_TRACE_POINTS
14453 #include "conftest.h"
14459 trace_zfs_autoconf_event_one(1UL);
14460 trace_zfs_autoconf_event_two(2UL);
14470 cat - <<_ACEOF >conftest.h
14472 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14473 #define _CONFTEST_H
14475 #undef TRACE_SYSTEM
14476 #define TRACE_SYSTEM zfs
14477 #include <linux/tracepoint.h>
14479 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14480 TP_PROTO(unsigned long i),
14483 __field(unsigned long, i)
14488 TP_printk("i = %lu", __entry->i)
14491 #define DEFINE_AUTOCONF_EVENT(name) \
14492 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14493 TP_PROTO(unsigned long i), \
14495 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14496 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14498 #endif /* _CONFTEST_H */
14500 #undef TRACE_INCLUDE_PATH
14501 #define TRACE_INCLUDE_PATH .
14502 #define TRACE_INCLUDE_FILE conftest
14503 #include <trace/define_trace.h>
14508 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14509 echo "obj-m := conftest.o" >build
/Makefile
14511 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14512 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14524 { $as_echo "$as_me:$LINENO: result: yes" >&5
14525 $as_echo "yes" >&6; }
14527 cat >>confdefs.h
<<\_ACEOF
14528 #define HAVE_DECLARE_EVENT_CLASS 1
14533 $as_echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.
$ac_ext >&5
14536 { $as_echo "$as_me:$LINENO: result: no" >&5
14537 $as_echo "no" >&6; }
14546 EXTRA_KCFLAGS
="$tmp_flags"
14549 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
14550 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14553 cat confdefs.h
- <<_ACEOF >conftest.c
14556 cat confdefs.h
>>conftest.
$ac_ext
14557 cat >>conftest.
$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14561 #include <linux/sched.h>
14567 current->bio_tail = (struct bio **) NULL;
14577 cat - <<_ACEOF >conftest.h
14582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14583 echo "obj-m := conftest.o" >build
/Makefile
14585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; }; then
14598 { $as_echo "$as_me:$LINENO: result: yes" >&5
14599 $as_echo "yes" >&6; }
14601 cat >>confdefs.h
<<\_ACEOF
14602 #define HAVE_CURRENT_BIO_TAIL 1
14607 $as_echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.
$ac_ext >&5
14610 { $as_echo "$as_me:$LINENO: result: no" >&5
14611 $as_echo "no" >&6; }
14612 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
14613 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14616 cat confdefs.h
- <<_ACEOF >conftest.c
14619 cat confdefs.h
>>conftest.
$ac_ext
14620 cat >>conftest.
$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14624 #include <linux/sched.h>
14630 current->bio_list = (struct bio_list *) NULL;
14640 cat - <<_ACEOF >conftest.h
14645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14646 echo "obj-m := conftest.o" >build
/Makefile
14648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14661 { $as_echo "$as_me:$LINENO: result: yes" >&5
14662 $as_echo "yes" >&6; }
14664 cat >>confdefs.h
<<\_ACEOF
14665 #define HAVE_CURRENT_BIO_LIST 1
14670 $as_echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.
$ac_ext >&5
14673 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
14674 https://github.com/zfsonlinux/zfs/issues/new" >&5
14675 $as_echo "$as_me: error: no - Please file a bug report at
14676 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
14677 { (exit 1); exit 1; }; }
14696 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
14697 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14700 cat confdefs.h
- <<_ACEOF >conftest.c
14703 cat confdefs.h
>>conftest.
$ac_ext
14704 cat >>conftest.
$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14708 #include <linux/fs.h>
14709 #include <linux/user_namespace.h>
14715 struct super_block super;
14716 super.s_user_ns = (struct user_namespace *)NULL;
14726 cat - <<_ACEOF >conftest.h
14731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14732 echo "obj-m := conftest.o" >build
/Makefile
14734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
14747 { $as_echo "$as_me:$LINENO: result: yes" >&5
14748 $as_echo "yes" >&6; }
14750 cat >>confdefs.h
<<\_ACEOF
14751 #define HAVE_SUPER_USER_NS 1
14756 $as_echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.
$ac_ext >&5
14759 { $as_echo "$as_me:$LINENO: result: no" >&5
14760 $as_echo "no" >&6; }
14771 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
14772 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14775 cat confdefs.h
- <<_ACEOF >conftest.c
14778 cat confdefs.h
>>conftest.
$ac_ext
14779 cat >>conftest.
$ac_ext <<_ACEOF
14780 /* end confdefs.h. */
14783 #include <linux/bio.h>
14790 struct bio *bio = NULL;
14791 blk_qc = submit_bio(bio);
14801 cat - <<_ACEOF >conftest.h
14806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14807 echo "obj-m := conftest.o" >build
/Makefile
14809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14822 { $as_echo "$as_me:$LINENO: result: yes" >&5
14823 $as_echo "yes" >&6; }
14825 cat >>confdefs.h
<<\_ACEOF
14826 #define HAVE_1ARG_SUBMIT_BIO 1
14831 $as_echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14834 { $as_echo "$as_me:$LINENO: result: no" >&5
14835 $as_echo "no" >&6; }
14846 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
14847 $as_echo_n "checking block device operation prototypes... " >&6; }
14848 tmp_flags
="$EXTRA_KCFLAGS"
14849 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14852 cat confdefs.h
- <<_ACEOF >conftest.c
14855 cat confdefs.h
>>conftest.
$ac_ext
14856 cat >>conftest.
$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14860 #include <linux/blkdev.h>
14862 int blk_open(struct block_device *bdev, fmode_t mode)
14864 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14865 unsigned x, unsigned long y) { return 0; }
14866 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14867 unsigned x, unsigned long y) { return 0; }
14869 static const struct block_device_operations
14870 bops __attribute__ ((unused)) = {
14873 .ioctl = blk_ioctl,
14874 .compat_ioctl = blk_compat_ioctl,
14890 cat - <<_ACEOF >conftest.h
14895 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14896 echo "obj-m := conftest.o" >build
/Makefile
14898 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14899 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901 (eval $ac_try) 2>&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14911 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
14912 $as_echo "struct block_device" >&6; }
14914 cat >>confdefs.h
<<\_ACEOF
14915 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
14920 $as_echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
14924 $as_echo "struct inode" >&6; }
14933 EXTRA_KCFLAGS
="$tmp_flags"
14936 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
14937 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14938 tmp_flags
="$EXTRA_KCFLAGS"
14939 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14942 cat confdefs.h
- <<_ACEOF >conftest.c
14945 cat confdefs.h
>>conftest.
$ac_ext
14946 cat >>conftest.
$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14950 #include <linux/blkdev.h>
14952 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14954 static const struct block_device_operations
14955 bops __attribute__ ((unused)) = {
14957 .release = blk_release,
14959 .compat_ioctl = NULL,
14975 cat - <<_ACEOF >conftest.h
14980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14981 echo "obj-m := conftest.o" >build
/Makefile
14983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14996 { $as_echo "$as_me:$LINENO: result: void" >&5
14997 $as_echo "void" >&6; }
14999 cat >>confdefs.h
<<\_ACEOF
15000 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
15005 $as_echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.
$ac_ext >&5
15008 { $as_echo "$as_me:$LINENO: result: int" >&5
15009 $as_echo "int" >&6; }
15018 EXTRA_KCFLAGS
="$tmp_flags"
15020 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
15021 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
15024 cat confdefs.h
- <<_ACEOF >conftest.c
15027 cat confdefs.h
>>conftest.
$ac_ext
15028 cat >>conftest.
$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15032 #include <linux/types.h>
15038 fmode_t *ptr __attribute__ ((unused));
15048 cat - <<_ACEOF >conftest.h
15053 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15054 echo "obj-m := conftest.o" >build
/Makefile
15056 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15057 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15069 { $as_echo "$as_me:$LINENO: result: yes" >&5
15070 $as_echo "yes" >&6; }
15072 cat >>confdefs.h
<<\_ACEOF
15073 #define HAVE_FMODE_T 1
15078 $as_echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.
$ac_ext >&5
15081 { $as_echo "$as_me:$LINENO: result: no" >&5
15082 $as_echo "no" >&6; }
15093 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
15094 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
15097 cat confdefs.h
- <<_ACEOF >conftest.c
15100 cat confdefs.h
>>conftest.
$ac_ext
15101 cat >>conftest.
$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15105 #include <linux/fs.h>
15111 struct block_device *bdev = NULL;
15112 (void) blkdev_get(bdev, 0, NULL);
15122 cat - <<_ACEOF >conftest.h
15127 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15128 echo "obj-m := conftest.o" >build
/Makefile
15130 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15131 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
15143 { $as_echo "$as_me:$LINENO: result: yes" >&5
15144 $as_echo "yes" >&6; }
15146 cat >>confdefs.h
<<\_ACEOF
15147 #define HAVE_3ARG_BLKDEV_GET 1
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15155 { $as_echo "$as_me:$LINENO: result: no" >&5
15156 $as_echo "no" >&6; }
15166 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
15167 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15171 cat confdefs.h
- <<_ACEOF >conftest.c
15174 cat confdefs.h
>>conftest.
$ac_ext
15175 cat >>conftest.
$ac_ext <<_ACEOF
15176 /* end confdefs.h. */
15179 #include <linux/fs.h>
15185 blkdev_get_by_path(NULL, 0, NULL);
15195 cat - <<_ACEOF >conftest.h
15200 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15201 echo "obj-m := conftest.o" >build
/Makefile
15203 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15204 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15206 (eval $ac_try) 2>&5
15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15217 $as_echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.
$ac_ext >&5
15227 if test $rc -ne 0; then :
15229 { $as_echo "$as_me:$LINENO: result: no" >&5
15230 $as_echo "no" >&6; }
15233 if test "x$enable_linux_builtin" != xyes
; then
15235 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15236 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15238 if test $rc -ne 0; then
15240 for file in fs
/block_dev.c
; do
15241 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15242 "$LINUX/$file" 2>/dev
/null
15244 if test $rc -eq 0; then
15249 if test $export -eq 0; then :
15259 if test $rc -ne 0; then :
15261 { $as_echo "$as_me:$LINENO: result: no" >&5
15262 $as_echo "no" >&6; }
15266 { $as_echo "$as_me:$LINENO: result: yes" >&5
15267 $as_echo "yes" >&6; }
15269 cat >>confdefs.h
<<\_ACEOF
15270 #define HAVE_BLKDEV_GET_BY_PATH 1
15278 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
15279 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15283 cat confdefs.h
- <<_ACEOF >conftest.c
15286 cat confdefs.h
>>conftest.
$ac_ext
15287 cat >>conftest.
$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15291 #include <linux/fs.h>
15297 open_bdev_exclusive(NULL, 0, NULL);
15307 cat - <<_ACEOF >conftest.h
15312 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15313 echo "obj-m := conftest.o" >build
/Makefile
15315 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15316 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15329 $as_echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.
$ac_ext >&5
15339 if test $rc -ne 0; then :
15341 { $as_echo "$as_me:$LINENO: result: no" >&5
15342 $as_echo "no" >&6; }
15345 if test "x$enable_linux_builtin" != xyes
; then
15347 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15348 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15350 if test $rc -ne 0; then
15352 for file in fs
/block_dev.c
; do
15353 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15354 "$LINUX/$file" 2>/dev
/null
15356 if test $rc -eq 0; then
15361 if test $export -eq 0; then :
15371 if test $rc -ne 0; then :
15373 { $as_echo "$as_me:$LINENO: result: no" >&5
15374 $as_echo "no" >&6; }
15378 { $as_echo "$as_me:$LINENO: result: yes" >&5
15379 $as_echo "yes" >&6; }
15381 cat >>confdefs.h
<<\_ACEOF
15382 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
15390 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
15391 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15395 cat confdefs.h
- <<_ACEOF >conftest.c
15398 cat confdefs.h
>>conftest.
$ac_ext
15399 cat >>conftest.
$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15403 #include <linux/fs.h>
15419 cat - <<_ACEOF >conftest.h
15424 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15425 echo "obj-m := conftest.o" >build
/Makefile
15427 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15428 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15430 (eval $ac_try) 2>&5
15432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15441 $as_echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.
$ac_ext >&5
15451 if test $rc -ne 0; then :
15453 { $as_echo "$as_me:$LINENO: result: no" >&5
15454 $as_echo "no" >&6; }
15455 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15456 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15460 cat confdefs.h
- <<_ACEOF >conftest.c
15463 cat confdefs.h
>>conftest.
$ac_ext
15464 cat >>conftest.
$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15468 #include <linux/fs.h>
15474 lookup_bdev(NULL, FMODE_READ);
15484 cat - <<_ACEOF >conftest.h
15489 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15490 echo "obj-m := conftest.o" >build
/Makefile
15492 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15493 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15506 $as_echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.
$ac_ext >&5
15516 if test $rc -ne 0; then :
15518 { $as_echo "$as_me:$LINENO: result: no" >&5
15519 $as_echo "no" >&6; }
15522 if test "x$enable_linux_builtin" != xyes
; then
15524 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15525 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15527 if test $rc -ne 0; then
15529 for file in fs
/block_dev.c
; do
15530 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15531 "$LINUX/$file" 2>/dev
/null
15533 if test $rc -eq 0; then
15538 if test $export -eq 0; then :
15548 if test $rc -ne 0; then :
15550 { $as_echo "$as_me:$LINENO: result: no" >&5
15551 $as_echo "no" >&6; }
15555 { $as_echo "$as_me:$LINENO: result: yes" >&5
15556 $as_echo "yes" >&6; }
15558 cat >>confdefs.h
<<\_ACEOF
15559 #define HAVE_2ARGS_LOOKUP_BDEV 1
15568 if test "x$enable_linux_builtin" != xyes
; then
15570 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15571 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15573 if test $rc -ne 0; then
15575 for file in fs
/block_dev.c
; do
15576 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15577 "$LINUX/$file" 2>/dev
/null
15579 if test $rc -eq 0; then
15584 if test $export -eq 0; then :
15594 if test $rc -ne 0; then :
15596 { $as_echo "$as_me:$LINENO: result: no" >&5
15597 $as_echo "no" >&6; }
15598 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
15599 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15603 cat confdefs.h
- <<_ACEOF >conftest.c
15606 cat confdefs.h
>>conftest.
$ac_ext
15607 cat >>conftest.
$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15611 #include <linux/fs.h>
15617 lookup_bdev(NULL, FMODE_READ);
15627 cat - <<_ACEOF >conftest.h
15632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15633 echo "obj-m := conftest.o" >build
/Makefile
15635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15636 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643 (eval $ac_try) 2>&5
15645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15649 $as_echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15659 if test $rc -ne 0; then :
15661 { $as_echo "$as_me:$LINENO: result: no" >&5
15662 $as_echo "no" >&6; }
15665 if test "x$enable_linux_builtin" != xyes
; then
15667 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15668 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15670 if test $rc -ne 0; then
15672 for file in fs
/block_dev.c
; do
15673 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15674 "$LINUX/$file" 2>/dev
/null
15676 if test $rc -eq 0; then
15681 if test $export -eq 0; then :
15691 if test $rc -ne 0; then :
15693 { $as_echo "$as_me:$LINENO: result: no" >&5
15694 $as_echo "no" >&6; }
15698 { $as_echo "$as_me:$LINENO: result: yes" >&5
15699 $as_echo "yes" >&6; }
15701 cat >>confdefs.h
<<\_ACEOF
15702 #define HAVE_2ARGS_LOOKUP_BDEV 1
15712 { $as_echo "$as_me:$LINENO: result: yes" >&5
15713 $as_echo "yes" >&6; }
15715 cat >>confdefs.h
<<\_ACEOF
15716 #define HAVE_1ARG_LOOKUP_BDEV 1
15725 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
15726 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15729 cat confdefs.h
- <<_ACEOF >conftest.c
15732 cat confdefs.h
>>conftest.
$ac_ext
15733 cat >>conftest.
$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15737 #include <linux/buffer_head.h>
15743 struct block_device *bdev = NULL;
15744 invalidate_bdev(bdev);
15754 cat - <<_ACEOF >conftest.h
15759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15760 echo "obj-m := conftest.o" >build
/Makefile
15762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }; }; then
15775 { $as_echo "$as_me:$LINENO: result: yes" >&5
15776 $as_echo "yes" >&6; }
15778 cat >>confdefs.h
<<\_ACEOF
15779 #define HAVE_1ARG_INVALIDATE_BDEV 1
15784 $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.
$ac_ext >&5
15787 { $as_echo "$as_me:$LINENO: result: no" >&5
15788 $as_echo "no" >&6; }
15799 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
15800 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15801 tmp_flags
="$EXTRA_KCFLAGS"
15802 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15805 cat confdefs.h
- <<_ACEOF >conftest.c
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15813 #include <linux/blkdev.h>
15819 struct block_device *bdev = NULL;
15820 bdev_logical_block_size(bdev);
15830 cat - <<_ACEOF >conftest.h
15835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15836 echo "obj-m := conftest.o" >build
/Makefile
15838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846 (eval $ac_try) 2>&5
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); }; }; then
15851 { $as_echo "$as_me:$LINENO: result: yes" >&5
15852 $as_echo "yes" >&6; }
15854 cat >>confdefs.h
<<\_ACEOF
15855 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's/^/| /' conftest.
$ac_ext >&5
15863 { $as_echo "$as_me:$LINENO: result: no" >&5
15864 $as_echo "no" >&6; }
15873 EXTRA_KCFLAGS
="$tmp_flags"
15876 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
15877 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15878 tmp_flags
="$EXTRA_KCFLAGS"
15879 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15882 cat confdefs.h
- <<_ACEOF >conftest.c
15885 cat confdefs.h
>>conftest.
$ac_ext
15886 cat >>conftest.
$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15890 #include <linux/blkdev.h>
15896 struct block_device *bdev = NULL;
15897 bdev_physical_block_size(bdev);
15907 cat - <<_ACEOF >conftest.h
15912 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15913 echo "obj-m := conftest.o" >build
/Makefile
15915 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15916 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15918 (eval $ac_try) 2>&5
15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15923 (eval $ac_try) 2>&5
15925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; }; then
15928 { $as_echo "$as_me:$LINENO: result: yes" >&5
15929 $as_echo "yes" >&6; }
15931 cat >>confdefs.h
<<\_ACEOF
15932 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
15937 $as_echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.
$ac_ext >&5
15940 { $as_echo "$as_me:$LINENO: result: no" >&5
15941 $as_echo "no" >&6; }
15950 EXTRA_KCFLAGS
="$tmp_flags"
15953 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
15954 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15957 cat confdefs.h
- <<_ACEOF >conftest.c
15960 cat confdefs.h
>>conftest.
$ac_ext
15961 cat >>conftest.
$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15965 #include <linux/bio.h>
15972 bio.bi_iter.bi_sector = 0;
15982 cat - <<_ACEOF >conftest.h
15987 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15988 echo "obj-m := conftest.o" >build
/Makefile
15990 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15991 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16003 { $as_echo "$as_me:$LINENO: result: yes" >&5
16004 $as_echo "yes" >&6; }
16006 cat >>confdefs.h
<<\_ACEOF
16007 #define HAVE_BIO_BVEC_ITER 1
16012 $as_echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.
$ac_ext >&5
16015 { $as_echo "$as_me:$LINENO: result: no" >&5
16016 $as_echo "no" >&6; }
16027 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16028 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16031 cat confdefs.h
- <<_ACEOF >conftest.c
16034 cat confdefs.h
>>conftest.
$ac_ext
16035 cat >>conftest.
$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16039 #include <linux/bio.h>
16045 int flags __attribute__ ((unused));
16046 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16047 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16048 (1 << BIO_RW_FAILFAST_DRIVER));
16058 cat - <<_ACEOF >conftest.h
16063 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16064 echo "obj-m := conftest.o" >build
/Makefile
16066 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16067 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069 (eval $ac_try) 2>&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16079 { $as_echo "$as_me:$LINENO: result: yes" >&5
16080 $as_echo "yes" >&6; }
16082 cat >>confdefs.h
<<\_ACEOF
16083 #define HAVE_BIO_RW_FAILFAST_DTD 1
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.
$ac_ext >&5
16091 { $as_echo "$as_me:$LINENO: result: no" >&5
16092 $as_echo "no" >&6; }
16103 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
16104 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
16107 cat confdefs.h
- <<_ACEOF >conftest.c
16110 cat confdefs.h
>>conftest.
$ac_ext
16111 cat >>conftest.
$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16115 #include <linux/bio.h>
16116 #include <linux/fs.h>
16122 struct block_device *bdev = NULL;
16123 struct bio *bio = NULL;
16124 bio_set_dev(bio, bdev);
16134 cat - <<_ACEOF >conftest.h
16139 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16140 echo "obj-m := conftest.o" >build
/Makefile
16142 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16143 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145 (eval $ac_try) 2>&5
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16155 { $as_echo "$as_me:$LINENO: result: yes" >&5
16156 $as_echo "yes" >&6; }
16158 cat >>confdefs.h
<<\_ACEOF
16159 #define HAVE_BIO_SET_DEV 1
16164 $as_echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.
$ac_ext >&5
16167 { $as_echo "$as_me:$LINENO: result: no" >&5
16168 $as_echo "no" >&6; }
16179 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16180 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16183 cat confdefs.h
- <<_ACEOF >conftest.c
16186 cat confdefs.h
>>conftest.
$ac_ext
16187 cat >>conftest.
$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16191 #include <linux/bio.h>
16197 int flags __attribute__ ((unused));
16198 flags = REQ_FAILFAST_MASK;
16208 cat - <<_ACEOF >conftest.h
16213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16214 echo "obj-m := conftest.o" >build
/Makefile
16216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16217 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16229 { $as_echo "$as_me:$LINENO: result: yes" >&5
16230 $as_echo "yes" >&6; }
16232 cat >>confdefs.h
<<\_ACEOF
16233 #define HAVE_REQ_FAILFAST_MASK 1
16238 $as_echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.
$ac_ext >&5
16241 { $as_echo "$as_me:$LINENO: result: no" >&5
16242 $as_echo "no" >&6; }
16253 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
16254 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
16257 cat confdefs.h
- <<_ACEOF >conftest.c
16260 cat confdefs.h
>>conftest.
$ac_ext
16261 cat >>conftest.
$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16265 #include <linux/blk_types.h>
16271 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16281 cat - <<_ACEOF >conftest.h
16286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16287 echo "obj-m := conftest.o" >build
/Makefile
16289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16302 { $as_echo "$as_me:$LINENO: result: yes" >&5
16303 $as_echo "yes" >&6; }
16305 cat >>confdefs.h
<<\_ACEOF
16306 #define HAVE_REQ_OP_DISCARD 1
16311 $as_echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.
$ac_ext >&5
16314 { $as_echo "$as_me:$LINENO: result: no" >&5
16315 $as_echo "no" >&6; }
16326 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16327 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16330 cat confdefs.h
- <<_ACEOF >conftest.c
16333 cat confdefs.h
>>conftest.
$ac_ext
16334 cat >>conftest.
$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16338 #include <linux/blk_types.h>
16344 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16354 cat - <<_ACEOF >conftest.h
16359 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16360 echo "obj-m := conftest.o" >build
/Makefile
16362 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16363 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16375 { $as_echo "$as_me:$LINENO: result: yes" >&5
16376 $as_echo "yes" >&6; }
16378 cat >>confdefs.h
<<\_ACEOF
16379 #define HAVE_REQ_OP_SECURE_ERASE 1
16384 $as_echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.
$ac_ext >&5
16387 { $as_echo "$as_me:$LINENO: result: no" >&5
16388 $as_echo "no" >&6; }
16399 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
16400 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16403 cat confdefs.h
- <<_ACEOF >conftest.c
16406 cat confdefs.h
>>conftest.
$ac_ext
16407 cat >>conftest.
$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16411 #include <linux/blk_types.h>
16417 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16427 cat - <<_ACEOF >conftest.h
16432 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16433 echo "obj-m := conftest.o" >build
/Makefile
16435 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16436 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16443 (eval $ac_try) 2>&5
16445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16448 { $as_echo "$as_me:$LINENO: result: yes" >&5
16449 $as_echo "yes" >&6; }
16451 cat >>confdefs.h
<<\_ACEOF
16452 #define HAVE_REQ_OP_FLUSH 1
16457 $as_echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.
$ac_ext >&5
16460 { $as_echo "$as_me:$LINENO: result: no" >&5
16461 $as_echo "no" >&6; }
16472 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
16473 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16476 cat confdefs.h
- <<_ACEOF >conftest.c
16479 cat confdefs.h
>>conftest.
$ac_ext
16480 cat >>conftest.
$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16484 #include <linux/bio.h>
16490 struct bio bio __attribute__ ((unused));
16501 cat - <<_ACEOF >conftest.h
16506 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16507 echo "obj-m := conftest.o" >build
/Makefile
16509 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16510 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16522 { $as_echo "$as_me:$LINENO: result: yes" >&5
16523 $as_echo "yes" >&6; }
16525 cat >>confdefs.h
<<\_ACEOF
16526 #define HAVE_BIO_BI_OPF 1
16531 $as_echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.
$ac_ext >&5
16534 { $as_echo "$as_me:$LINENO: result: no" >&5
16535 $as_echo "no" >&6; }
16546 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
16547 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16550 cat confdefs.h
- <<_ACEOF >conftest.c
16553 cat confdefs.h
>>conftest.
$ac_ext
16554 cat >>conftest.
$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16558 #include <linux/bio.h>
16560 void wanted_end_io(struct bio *bio) { return; }
16562 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16577 cat - <<_ACEOF >conftest.h
16582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16583 echo "obj-m := conftest.o" >build
/Makefile
16585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16593 (eval $ac_try) 2>&5
16595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16598 { $as_echo "$as_me:$LINENO: result: yes" >&5
16599 $as_echo "yes" >&6; }
16601 cat >>confdefs.h
<<\_ACEOF
16602 #define HAVE_1ARG_BIO_END_IO_T 1
16607 $as_echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.
$ac_ext >&5
16610 { $as_echo "$as_me:$LINENO: result: no" >&5
16611 $as_echo "no" >&6; }
16622 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
16623 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16626 cat confdefs.h
- <<_ACEOF >conftest.c
16629 cat confdefs.h
>>conftest.
$ac_ext
16630 cat >>conftest.
$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16634 #include <linux/bio.h>
16640 struct bio bio __attribute__ ((unused));
16641 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16643 bio.bi_status = status;
16653 cat - <<_ACEOF >conftest.h
16658 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16659 echo "obj-m := conftest.o" >build
/Makefile
16661 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16662 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16674 { $as_echo "$as_me:$LINENO: result: yes" >&5
16675 $as_echo "yes" >&6; }
16677 cat >>confdefs.h
<<\_ACEOF
16678 #define HAVE_BIO_BI_STATUS 1
16683 $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.
$ac_ext >&5
16686 { $as_echo "$as_me:$LINENO: result: no" >&5
16687 $as_echo "no" >&6; }
16698 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
16699 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16702 cat confdefs.h
- <<_ACEOF >conftest.c
16705 cat confdefs.h
>>conftest.
$ac_ext
16706 cat >>conftest.
$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16710 #include <linux/bio.h>
16716 int flags __attribute__ ((unused));
16717 flags = BIO_RW_BARRIER;
16727 cat - <<_ACEOF >conftest.h
16732 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16733 echo "obj-m := conftest.o" >build
/Makefile
16735 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16736 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16748 { $as_echo "$as_me:$LINENO: result: yes" >&5
16749 $as_echo "yes" >&6; }
16751 cat >>confdefs.h
<<\_ACEOF
16752 #define HAVE_BIO_RW_BARRIER 1
16757 $as_echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.
$ac_ext >&5
16760 { $as_echo "$as_me:$LINENO: result: no" >&5
16761 $as_echo "no" >&6; }
16772 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
16773 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16776 cat confdefs.h
- <<_ACEOF >conftest.c
16779 cat confdefs.h
>>conftest.
$ac_ext
16780 cat >>conftest.
$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16784 #include <linux/bio.h>
16790 int flags __attribute__ ((unused));
16791 flags = BIO_RW_DISCARD;
16801 cat - <<_ACEOF >conftest.h
16806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16807 echo "obj-m := conftest.o" >build
/Makefile
16809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; }; then
16822 { $as_echo "$as_me:$LINENO: result: yes" >&5
16823 $as_echo "yes" >&6; }
16825 cat >>confdefs.h
<<\_ACEOF
16826 #define HAVE_BIO_RW_DISCARD 1
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.
$ac_ext >&5
16834 { $as_echo "$as_me:$LINENO: result: no" >&5
16835 $as_echo "no" >&6; }
16846 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
16847 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16850 cat confdefs.h
- <<_ACEOF >conftest.c
16853 cat confdefs.h
>>conftest.
$ac_ext
16854 cat >>conftest.
$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16858 #include <linux/blkdev.h>
16864 struct request_queue q;
16865 struct backing_dev_info bdi;
16866 q.backing_dev_info = &bdi;
16876 cat - <<_ACEOF >conftest.h
16881 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16882 echo "obj-m := conftest.o" >build
/Makefile
16884 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16885 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892 (eval $ac_try) 2>&5
16894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; }; then
16897 { $as_echo "$as_me:$LINENO: result: yes" >&5
16898 $as_echo "yes" >&6; }
16900 cat >>confdefs.h
<<\_ACEOF
16901 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
16906 $as_echo "$as_me: failed program was:" >&5
16907 sed 's/^/| /' conftest.
$ac_ext >&5
16909 { $as_echo "$as_me:$LINENO: result: no" >&5
16910 $as_echo "no" >&6; }
16921 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
16922 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16923 tmp_flags
="$EXTRA_KCFLAGS"
16924 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16927 cat confdefs.h
- <<_ACEOF >conftest.c
16930 cat confdefs.h
>>conftest.
$ac_ext
16931 cat >>conftest.
$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16935 #include <linux/blkdev.h>
16941 struct request_queue *q = NULL;
16942 (void) blk_queue_flush(q, REQ_FLUSH);
16952 cat - <<_ACEOF >conftest.h
16957 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16958 echo "obj-m := conftest.o" >build
/Makefile
16960 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16961 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16973 { $as_echo "$as_me:$LINENO: result: yes" >&5
16974 $as_echo "yes" >&6; }
16976 cat >>confdefs.h
<<\_ACEOF
16977 #define HAVE_BLK_QUEUE_FLUSH 1
16981 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
16982 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16985 cat confdefs.h
- <<_ACEOF >conftest.c
16988 cat confdefs.h
>>conftest.
$ac_ext
16989 cat >>conftest.
$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16993 #include <linux/module.h>
16994 #include <linux/blkdev.h>
16996 MODULE_LICENSE("$ZFS_META_LICENSE");
17002 struct request_queue *q = NULL;
17003 (void) blk_queue_flush(q, REQ_FLUSH);
17013 cat - <<_ACEOF >conftest.h
17018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17019 echo "obj-m := conftest.o" >build
/Makefile
17021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17034 { $as_echo "$as_me:$LINENO: result: no" >&5
17035 $as_echo "no" >&6; }
17038 $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.
$ac_ext >&5
17041 { $as_echo "$as_me:$LINENO: result: yes" >&5
17042 $as_echo "yes" >&6; }
17044 cat >>confdefs.h
<<\_ACEOF
17045 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
17058 $as_echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.
$ac_ext >&5
17061 { $as_echo "$as_me:$LINENO: result: no" >&5
17062 $as_echo "no" >&6; }
17072 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
17073 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
17076 cat confdefs.h
- <<_ACEOF >conftest.c
17079 cat confdefs.h
>>conftest.
$ac_ext
17080 cat >>conftest.
$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17084 #include <linux/kernel.h>
17085 #include <linux/blkdev.h>
17092 struct request_queue *q = NULL;
17093 blk_queue_write_cache(q, true, true);
17103 cat - <<_ACEOF >conftest.h
17108 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17109 echo "obj-m := conftest.o" >build
/Makefile
17111 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17112 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17124 { $as_echo "$as_me:$LINENO: result: yes" >&5
17125 $as_echo "yes" >&6; }
17127 cat >>confdefs.h
<<\_ACEOF
17128 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
17132 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
17133 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
17136 cat confdefs.h
- <<_ACEOF >conftest.c
17139 cat confdefs.h
>>conftest.
$ac_ext
17140 cat >>conftest.
$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17144 #include <linux/kernel.h>
17145 #include <linux/module.h>
17146 #include <linux/blkdev.h>
17148 MODULE_LICENSE("$ZFS_META_LICENSE");
17154 struct request_queue *q = NULL;
17155 blk_queue_write_cache(q, true, true);
17165 cat - <<_ACEOF >conftest.h
17170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17171 echo "obj-m := conftest.o" >build
/Makefile
17173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17176 (eval $ac_try) 2>&5
17178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17186 { $as_echo "$as_me:$LINENO: result: no" >&5
17187 $as_echo "no" >&6; }
17190 $as_echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.
$ac_ext >&5
17193 { $as_echo "$as_me:$LINENO: result: yes" >&5
17194 $as_echo "yes" >&6; }
17196 cat >>confdefs.h
<<\_ACEOF
17197 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
17210 $as_echo "$as_me: failed program was:" >&5
17211 sed 's/^/| /' conftest.
$ac_ext >&5
17213 { $as_echo "$as_me:$LINENO: result: no" >&5
17214 $as_echo "no" >&6; }
17224 EXTRA_KCFLAGS
="$tmp_flags"
17227 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
17228 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
17229 tmp_flags
="$EXTRA_KCFLAGS"
17230 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17233 cat confdefs.h
- <<_ACEOF >conftest.c
17236 cat confdefs.h
>>conftest.
$ac_ext
17237 cat >>conftest.
$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17241 #include <linux/blkdev.h>
17247 struct request_queue *q = NULL;
17248 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
17258 cat - <<_ACEOF >conftest.h
17263 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17264 echo "obj-m := conftest.o" >build
/Makefile
17266 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17267 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17279 { $as_echo "$as_me:$LINENO: result: yes" >&5
17280 $as_echo "yes" >&6; }
17282 cat >>confdefs.h
<<\_ACEOF
17283 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
17288 $as_echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.
$ac_ext >&5
17291 { $as_echo "$as_me:$LINENO: result: no" >&5
17292 $as_echo "no" >&6; }
17301 EXTRA_KCFLAGS
="$tmp_flags"
17304 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
17305 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
17306 tmp_flags
="$EXTRA_KCFLAGS"
17307 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17310 cat confdefs.h
- <<_ACEOF >conftest.c
17313 cat confdefs.h
>>conftest.
$ac_ext
17314 cat >>conftest.
$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17318 #include <linux/blkdev.h>
17324 struct request_queue *q = NULL;
17325 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
17335 cat - <<_ACEOF >conftest.h
17340 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17341 echo "obj-m := conftest.o" >build
/Makefile
17343 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17344 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17356 { $as_echo "$as_me:$LINENO: result: yes" >&5
17357 $as_echo "yes" >&6; }
17359 cat >>confdefs.h
<<\_ACEOF
17360 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.
$ac_ext >&5
17368 { $as_echo "$as_me:$LINENO: result: no" >&5
17369 $as_echo "no" >&6; }
17378 EXTRA_KCFLAGS
="$tmp_flags"
17381 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
17382 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17383 tmp_flags
="$EXTRA_KCFLAGS"
17384 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17387 cat confdefs.h
- <<_ACEOF >conftest.c
17390 cat confdefs.h
>>conftest.
$ac_ext
17391 cat >>conftest.
$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17395 #include <linux/blkdev.h>
17401 extern enum bio_rw_flags rw;
17403 rw = BIO_RW_UNPLUG;
17413 cat - <<_ACEOF >conftest.h
17418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17419 echo "obj-m := conftest.o" >build
/Makefile
17421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17422 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17434 { $as_echo "$as_me:$LINENO: result: yes" >&5
17435 $as_echo "yes" >&6; }
17437 cat >>confdefs.h
<<\_ACEOF
17438 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
17443 $as_echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.
$ac_ext >&5
17446 { $as_echo "$as_me:$LINENO: result: no" >&5
17447 $as_echo "no" >&6; }
17456 EXTRA_KCFLAGS
="$tmp_flags"
17459 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
17460 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17461 tmp_flags
="$EXTRA_KCFLAGS"
17462 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17465 cat confdefs.h
- <<_ACEOF >conftest.c
17468 cat confdefs.h
>>conftest.
$ac_ext
17469 cat >>conftest.
$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17473 #include <linux/blkdev.h>
17479 struct blk_plug plug;
17481 blk_start_plug(&plug);
17482 blk_finish_plug(&plug);
17492 cat - <<_ACEOF >conftest.h
17497 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17498 echo "obj-m := conftest.o" >build
/Makefile
17500 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17501 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17508 (eval $ac_try) 2>&5
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); }; }; then
17513 { $as_echo "$as_me:$LINENO: result: yes" >&5
17514 $as_echo "yes" >&6; }
17516 cat >>confdefs.h
<<\_ACEOF
17517 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
17522 $as_echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.
$ac_ext >&5
17525 { $as_echo "$as_me:$LINENO: result: no" >&5
17526 $as_echo "no" >&6; }
17535 EXTRA_KCFLAGS
="$tmp_flags"
17538 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17539 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17540 tmp_flags
="$EXTRA_KCFLAGS"
17541 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17544 cat confdefs.h
- <<_ACEOF >conftest.c
17547 cat confdefs.h
>>conftest.
$ac_ext
17548 cat >>conftest.
$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17552 #include <linux/blkdev.h>
17558 struct gendisk *disk = NULL;
17559 (void) get_disk_ro(disk);
17569 cat - <<_ACEOF >conftest.h
17574 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17575 echo "obj-m := conftest.o" >build
/Makefile
17577 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17578 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17590 { $as_echo "$as_me:$LINENO: result: yes" >&5
17591 $as_echo "yes" >&6; }
17593 cat >>confdefs.h
<<\_ACEOF
17594 #define HAVE_GET_DISK_RO 1
17599 $as_echo "$as_me: failed program was:" >&5
17600 sed 's/^/| /' conftest.
$ac_ext >&5
17602 { $as_echo "$as_me:$LINENO: result: no" >&5
17603 $as_echo "no" >&6; }
17612 EXTRA_KCFLAGS
="$tmp_flags"
17614 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
17615 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17619 cat confdefs.h
- <<_ACEOF >conftest.c
17622 cat confdefs.h
>>conftest.
$ac_ext
17623 cat >>conftest.
$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17627 #include <linux/genhd.h>
17633 get_gendisk(0, NULL);
17643 cat - <<_ACEOF >conftest.h
17648 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17649 echo "obj-m := conftest.o" >build
/Makefile
17651 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17652 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.
$ac_ext >&5
17675 if test $rc -ne 0; then :
17677 { $as_echo "$as_me:$LINENO: result: no" >&5
17678 $as_echo "no" >&6; }
17681 if test "x$enable_linux_builtin" != xyes
; then
17683 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17684 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17686 if test $rc -ne 0; then
17688 for file in block
/genhd.c
; do
17689 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17690 "$LINUX/$file" 2>/dev
/null
17692 if test $rc -eq 0; then
17697 if test $export -eq 0; then :
17707 if test $rc -ne 0; then :
17709 { $as_echo "$as_me:$LINENO: result: no" >&5
17710 $as_echo "no" >&6; }
17714 { $as_echo "$as_me:$LINENO: result: yes" >&5
17715 $as_echo "yes" >&6; }
17717 cat >>confdefs.h
<<\_ACEOF
17718 #define HAVE_GET_GENDISK 1
17727 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
17728 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17731 cat confdefs.h
- <<_ACEOF >conftest.c
17734 cat confdefs.h
>>conftest.
$ac_ext
17735 cat >>conftest.
$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17739 #include <linux/bio.h>
17745 struct bio *bio __attribute__ ((unused)) = NULL;
17747 bio_set_op_attrs(bio, 0, 0);
17757 cat - <<_ACEOF >conftest.h
17762 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17763 echo "obj-m := conftest.o" >build
/Makefile
17765 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17766 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; }; then
17778 { $as_echo "$as_me:$LINENO: result: yes" >&5
17779 $as_echo "yes" >&6; }
17781 cat >>confdefs.h
<<\_ACEOF
17782 #define HAVE_BIO_SET_OP_ATTRS 1
17787 $as_echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.
$ac_ext >&5
17790 { $as_echo "$as_me:$LINENO: result: no" >&5
17791 $as_echo "no" >&6; }
17802 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
17803 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17806 cat confdefs.h
- <<_ACEOF >conftest.c
17809 cat confdefs.h
>>conftest.
$ac_ext
17810 cat >>conftest.
$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17814 #include <linux/fs.h>
17820 int i __attribute__ ((unused));
17822 i = generic_readlink(NULL, NULL, 0);
17832 cat - <<_ACEOF >conftest.h
17837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17838 echo "obj-m := conftest.o" >build
/Makefile
17840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17841 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17853 { $as_echo "$as_me:$LINENO: result: yes" >&5
17854 $as_echo "yes" >&6; }
17856 cat >>confdefs.h
<<\_ACEOF
17857 #define HAVE_GENERIC_READLINK 1
17862 $as_echo "$as_me: failed program was:" >&5
17863 sed 's/^/| /' conftest.
$ac_ext >&5
17865 { $as_echo "$as_me:$LINENO: result: no" >&5
17866 $as_echo "no" >&6; }
17877 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
17878 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17881 cat confdefs.h
- <<_ACEOF >conftest.c
17884 cat confdefs.h
>>conftest.
$ac_ext
17885 cat >>conftest.
$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17889 #include <linux/blkdev.h>
17895 struct queue_limits ql __attribute__ ((unused));
17897 ql.discard_granularity = 0;
17907 cat - <<_ACEOF >conftest.h
17912 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17913 echo "obj-m := conftest.o" >build
/Makefile
17915 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17916 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17923 (eval $ac_try) 2>&5
17925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); }; }; then
17928 { $as_echo "$as_me:$LINENO: result: yes" >&5
17929 $as_echo "yes" >&6; }
17931 cat >>confdefs.h
<<\_ACEOF
17932 #define HAVE_DISCARD_GRANULARITY 1
17937 $as_echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.
$ac_ext >&5
17940 { $as_echo "$as_me:$LINENO: result: no" >&5
17941 $as_echo "no" >&6; }
17952 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
17953 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17956 cat confdefs.h
- <<_ACEOF >conftest.c
17959 cat confdefs.h
>>conftest.
$ac_ext
17960 cat >>conftest.
$ac_ext <<_ACEOF
17961 /* end confdefs.h. */
17964 #include <linux/fs.h>
17965 #include <linux/xattr.h>
17967 const struct xattr_handler xattr_test_handler = {
17973 const struct xattr_handler *xattr_handlers[] = {
17974 &xattr_test_handler,
17977 const struct super_block sb __attribute__ ((unused)) = {
17978 .s_xattr = xattr_handlers,
17994 cat - <<_ACEOF >conftest.h
17999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18000 echo "obj-m := conftest.o" >build
/Makefile
18002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18005 (eval $ac_try) 2>&5
18007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; }; then
18015 { $as_echo "$as_me:$LINENO: result: yes" >&5
18016 $as_echo "yes" >&6; }
18018 cat >>confdefs.h
<<\_ACEOF
18019 #define HAVE_CONST_XATTR_HANDLER 1
18024 $as_echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.
$ac_ext >&5
18027 { $as_echo "$as_me:$LINENO: result: no" >&5
18028 $as_echo "no" >&6; }
18039 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
18040 $as_echo_n "checking whether xattr_handler has name... " >&6; }
18043 cat confdefs.h
- <<_ACEOF >conftest.c
18046 cat confdefs.h
>>conftest.
$ac_ext
18047 cat >>conftest.
$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18051 #include <linux/xattr.h>
18053 static const struct xattr_handler
18054 xops __attribute__ ((unused)) = {
18055 .name = XATTR_NAME_POSIX_ACL_ACCESS,
18071 cat - <<_ACEOF >conftest.h
18076 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18077 echo "obj-m := conftest.o" >build
/Makefile
18079 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18080 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093 $as_echo "yes" >&6; }
18095 cat >>confdefs.h
<<\_ACEOF
18096 #define HAVE_XATTR_HANDLER_NAME 1
18101 $as_echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.
$ac_ext >&5
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105 $as_echo "no" >&6; }
18116 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
18117 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
18120 cat confdefs.h
- <<_ACEOF >conftest.c
18123 cat confdefs.h
>>conftest.
$ac_ext
18124 cat >>conftest.
$ac_ext <<_ACEOF
18125 /* end confdefs.h. */
18128 #include <linux/xattr.h>
18130 int get(const struct xattr_handler *handler,
18131 struct dentry *dentry, struct inode *inode,
18132 const char *name, void *buffer, size_t size) { return 0; }
18133 static const struct xattr_handler
18134 xops __attribute__ ((unused)) = {
18151 cat - <<_ACEOF >conftest.h
18156 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18157 echo "obj-m := conftest.o" >build
/Makefile
18159 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18160 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18172 { $as_echo "$as_me:$LINENO: result: yes" >&5
18173 $as_echo "yes" >&6; }
18175 cat >>confdefs.h
<<\_ACEOF
18176 #define HAVE_XATTR_GET_DENTRY_INODE 1
18181 $as_echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.
$ac_ext >&5
18184 { $as_echo "$as_me:$LINENO: result: no" >&5
18185 $as_echo "no" >&6; }
18186 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
18187 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
18190 cat confdefs.h
- <<_ACEOF >conftest.c
18193 cat confdefs.h
>>conftest.
$ac_ext
18194 cat >>conftest.
$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18198 #include <linux/xattr.h>
18200 int get(const struct xattr_handler *handler,
18201 struct dentry *dentry, const char *name,
18202 void *buffer, size_t size) { return 0; }
18203 static const struct xattr_handler
18204 xops __attribute__ ((unused)) = {
18221 cat - <<_ACEOF >conftest.h
18226 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18227 echo "obj-m := conftest.o" >build
/Makefile
18229 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18230 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; }; then
18242 { $as_echo "$as_me:$LINENO: result: yes" >&5
18243 $as_echo "yes" >&6; }
18245 cat >>confdefs.h
<<\_ACEOF
18246 #define HAVE_XATTR_GET_HANDLER 1
18251 $as_echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.
$ac_ext >&5
18254 { $as_echo "$as_me:$LINENO: result: no" >&5
18255 $as_echo "no" >&6; }
18256 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18257 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18260 cat confdefs.h
- <<_ACEOF >conftest.c
18263 cat confdefs.h
>>conftest.
$ac_ext
18264 cat >>conftest.
$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18268 #include <linux/xattr.h>
18270 int get(struct dentry *dentry, const char *name,
18271 void *buffer, size_t size, int handler_flags)
18273 static const struct xattr_handler
18274 xops __attribute__ ((unused)) = {
18291 cat - <<_ACEOF >conftest.h
18296 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18297 echo "obj-m := conftest.o" >build
/Makefile
18299 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18300 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18312 { $as_echo "$as_me:$LINENO: result: yes" >&5
18313 $as_echo "yes" >&6; }
18315 cat >>confdefs.h
<<\_ACEOF
18316 #define HAVE_XATTR_GET_DENTRY 1
18321 $as_echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.
$ac_ext >&5
18324 { $as_echo "$as_me:$LINENO: result: no" >&5
18325 $as_echo "no" >&6; }
18326 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
18327 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
18330 cat confdefs.h
- <<_ACEOF >conftest.c
18333 cat confdefs.h
>>conftest.
$ac_ext
18334 cat >>conftest.
$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18338 #include <linux/xattr.h>
18340 int get(struct inode *ip, const char *name,
18341 void *buffer, size_t size) { return 0; }
18342 static const struct xattr_handler
18343 xops __attribute__ ((unused)) = {
18360 cat - <<_ACEOF >conftest.h
18365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18366 echo "obj-m := conftest.o" >build
/Makefile
18368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18381 { $as_echo "$as_me:$LINENO: result: yes" >&5
18382 $as_echo "yes" >&6; }
18384 cat >>confdefs.h
<<\_ACEOF
18385 #define HAVE_XATTR_GET_INODE 1
18390 $as_echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.
$ac_ext >&5
18393 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
18394 $as_echo "$as_me: error: no; please file a bug report" >&2;}
18395 { (exit 1); exit 1; }; }
18430 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
18431 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
18434 cat confdefs.h
- <<_ACEOF >conftest.c
18437 cat confdefs.h
>>conftest.
$ac_ext
18438 cat >>conftest.
$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18442 #include <linux/xattr.h>
18444 int set(const struct xattr_handler *handler,
18445 struct dentry *dentry, struct inode *inode,
18446 const char *name, const void *buffer,
18447 size_t size, int flags)
18449 static const struct xattr_handler
18450 xops __attribute__ ((unused)) = {
18467 cat - <<_ACEOF >conftest.h
18472 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18473 echo "obj-m := conftest.o" >build
/Makefile
18475 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18476 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18483 (eval $ac_try) 2>&5
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
18488 { $as_echo "$as_me:$LINENO: result: yes" >&5
18489 $as_echo "yes" >&6; }
18491 cat >>confdefs.h
<<\_ACEOF
18492 #define HAVE_XATTR_SET_DENTRY_INODE 1
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.
$ac_ext >&5
18500 { $as_echo "$as_me:$LINENO: result: no" >&5
18501 $as_echo "no" >&6; }
18502 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
18503 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18506 cat confdefs.h
- <<_ACEOF >conftest.c
18509 cat confdefs.h
>>conftest.
$ac_ext
18510 cat >>conftest.
$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18514 #include <linux/xattr.h>
18516 int set(const struct xattr_handler *handler,
18517 struct dentry *dentry, const char *name,
18518 const void *buffer, size_t size, int flags)
18520 static const struct xattr_handler
18521 xops __attribute__ ((unused)) = {
18538 cat - <<_ACEOF >conftest.h
18543 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18544 echo "obj-m := conftest.o" >build
/Makefile
18546 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18547 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18559 { $as_echo "$as_me:$LINENO: result: yes" >&5
18560 $as_echo "yes" >&6; }
18562 cat >>confdefs.h
<<\_ACEOF
18563 #define HAVE_XATTR_SET_HANDLER 1
18568 $as_echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.
$ac_ext >&5
18571 { $as_echo "$as_me:$LINENO: result: no" >&5
18572 $as_echo "no" >&6; }
18573 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18574 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18577 cat confdefs.h
- <<_ACEOF >conftest.c
18580 cat confdefs.h
>>conftest.
$ac_ext
18581 cat >>conftest.
$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18585 #include <linux/xattr.h>
18587 int set(struct dentry *dentry, const char *name,
18588 const void *buffer, size_t size, int flags,
18589 int handler_flags) { return 0; }
18590 static const struct xattr_handler
18591 xops __attribute__ ((unused)) = {
18608 cat - <<_ACEOF >conftest.h
18613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18614 echo "obj-m := conftest.o" >build
/Makefile
18616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18629 { $as_echo "$as_me:$LINENO: result: yes" >&5
18630 $as_echo "yes" >&6; }
18632 cat >>confdefs.h
<<\_ACEOF
18633 #define HAVE_XATTR_SET_DENTRY 1
18638 $as_echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.
$ac_ext >&5
18641 { $as_echo "$as_me:$LINENO: result: no" >&5
18642 $as_echo "no" >&6; }
18643 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
18644 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18647 cat confdefs.h
- <<_ACEOF >conftest.c
18650 cat confdefs.h
>>conftest.
$ac_ext
18651 cat >>conftest.
$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18655 #include <linux/xattr.h>
18657 int set(struct inode *ip, const char *name,
18658 const void *buffer, size_t size, int flags)
18660 static const struct xattr_handler
18661 xops __attribute__ ((unused)) = {
18678 cat - <<_ACEOF >conftest.h
18683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18684 echo "obj-m := conftest.o" >build
/Makefile
18686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18699 { $as_echo "$as_me:$LINENO: result: yes" >&5
18700 $as_echo "yes" >&6; }
18702 cat >>confdefs.h
<<\_ACEOF
18703 #define HAVE_XATTR_SET_INODE 1
18708 $as_echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.
$ac_ext >&5
18711 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
18712 $as_echo "$as_me: error: no; please file a bug report" >&2;}
18713 { (exit 1); exit 1; }; }
18748 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
18749 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18752 cat confdefs.h
- <<_ACEOF >conftest.c
18755 cat confdefs.h
>>conftest.
$ac_ext
18756 cat >>conftest.
$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18760 #include <linux/xattr.h>
18762 bool list(struct dentry *dentry) { return 0; }
18763 static const struct xattr_handler
18764 xops __attribute__ ((unused)) = {
18781 cat - <<_ACEOF >conftest.h
18786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18787 echo "obj-m := conftest.o" >build
/Makefile
18789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18797 (eval $ac_try) 2>&5
18799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18802 { $as_echo "$as_me:$LINENO: result: yes" >&5
18803 $as_echo "yes" >&6; }
18805 cat >>confdefs.h
<<\_ACEOF
18806 #define HAVE_XATTR_LIST_SIMPLE 1
18811 $as_echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.
$ac_ext >&5
18814 { $as_echo "$as_me:$LINENO: result: no" >&5
18815 $as_echo "no" >&6; }
18816 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
18817 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18820 cat confdefs.h
- <<_ACEOF >conftest.c
18823 cat confdefs.h
>>conftest.
$ac_ext
18824 cat >>conftest.
$ac_ext <<_ACEOF
18825 /* end confdefs.h. */
18828 #include <linux/xattr.h>
18830 size_t list(const struct xattr_handler *handler,
18831 struct dentry *dentry, char *list, size_t list_size,
18832 const char *name, size_t name_len) { return 0; }
18833 static const struct xattr_handler
18834 xops __attribute__ ((unused)) = {
18851 cat - <<_ACEOF >conftest.h
18856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18857 echo "obj-m := conftest.o" >build
/Makefile
18859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18872 { $as_echo "$as_me:$LINENO: result: yes" >&5
18873 $as_echo "yes" >&6; }
18875 cat >>confdefs.h
<<\_ACEOF
18876 #define HAVE_XATTR_LIST_HANDLER 1
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.
$ac_ext >&5
18884 { $as_echo "$as_me:$LINENO: result: no" >&5
18885 $as_echo "no" >&6; }
18886 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
18887 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18890 cat confdefs.h
- <<_ACEOF >conftest.c
18893 cat confdefs.h
>>conftest.
$ac_ext
18894 cat >>conftest.
$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18898 #include <linux/xattr.h>
18900 size_t list(struct dentry *dentry,
18901 char *list, size_t list_size,
18902 const char *name, size_t name_len,
18903 int handler_flags) { return 0; }
18904 static const struct xattr_handler
18905 xops __attribute__ ((unused)) = {
18922 cat - <<_ACEOF >conftest.h
18927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18928 echo "obj-m := conftest.o" >build
/Makefile
18930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18931 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18943 { $as_echo "$as_me:$LINENO: result: yes" >&5
18944 $as_echo "yes" >&6; }
18946 cat >>confdefs.h
<<\_ACEOF
18947 #define HAVE_XATTR_LIST_DENTRY 1
18952 $as_echo "$as_me: failed program was:" >&5
18953 sed 's/^/| /' conftest.
$ac_ext >&5
18955 { $as_echo "$as_me:$LINENO: result: no" >&5
18956 $as_echo "no" >&6; }
18957 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
18958 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18961 cat confdefs.h
- <<_ACEOF >conftest.c
18964 cat confdefs.h
>>conftest.
$ac_ext
18965 cat >>conftest.
$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18969 #include <linux/xattr.h>
18971 size_t list(struct inode *ip, char *lst,
18972 size_t list_size, const char *name,
18973 size_t name_len) { return 0; }
18974 static const struct xattr_handler
18975 xops __attribute__ ((unused)) = {
18992 cat - <<_ACEOF >conftest.h
18997 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18998 echo "obj-m := conftest.o" >build
/Makefile
19000 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19001 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19013 { $as_echo "$as_me:$LINENO: result: yes" >&5
19014 $as_echo "yes" >&6; }
19016 cat >>confdefs.h
<<\_ACEOF
19017 #define HAVE_XATTR_LIST_INODE 1
19022 $as_echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.
$ac_ext >&5
19025 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
19026 $as_echo "$as_me: error: no; please file a bug report" >&2;}
19027 { (exit 1); exit 1; }; }
19062 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
19063 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
19066 cat confdefs.h
- <<_ACEOF >conftest.c
19069 cat confdefs.h
>>conftest.
$ac_ext
19070 cat >>conftest.
$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19074 #include <linux/fs.h>
19080 struct inode *ip = NULL;
19081 (void) inode_owner_or_capable(ip);
19091 cat - <<_ACEOF >conftest.h
19096 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19097 echo "obj-m := conftest.o" >build
/Makefile
19099 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19100 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19112 { $as_echo "$as_me:$LINENO: result: yes" >&5
19113 $as_echo "yes" >&6; }
19115 cat >>confdefs.h
<<\_ACEOF
19116 #define HAVE_INODE_OWNER_OR_CAPABLE 1
19121 $as_echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.
$ac_ext >&5
19124 { $as_echo "$as_me:$LINENO: result: no" >&5
19125 $as_echo "no" >&6; }
19126 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
19127 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
19130 cat confdefs.h
- <<_ACEOF >conftest.c
19133 cat confdefs.h
>>conftest.
$ac_ext
19134 cat >>conftest.
$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19138 #include <linux/fs.h>
19139 #include <linux/sched.h>
19145 struct inode *ip = NULL;
19146 (void) is_owner_or_cap(ip);
19156 cat - <<_ACEOF >conftest.h
19161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19162 echo "obj-m := conftest.o" >build
/Makefile
19164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19177 { $as_echo "$as_me:$LINENO: result: yes" >&5
19178 $as_echo "yes" >&6; }
19180 cat >>confdefs.h
<<\_ACEOF
19181 #define HAVE_IS_OWNER_OR_CAP 1
19186 $as_echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.
$ac_ext >&5
19189 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
19190 https://github.com/zfsonlinux/zfs/issues/new" >&5
19191 $as_echo "$as_me: error: no - Please file a bug report at
19192 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
19193 { (exit 1); exit 1; }; }
19212 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
19213 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
19216 cat confdefs.h
- <<_ACEOF >conftest.c
19219 cat confdefs.h
>>conftest.
$ac_ext
19220 cat >>conftest.
$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19224 #include <linux/cred.h>
19225 #include <linux/fs.h>
19226 #include <linux/posix_acl_xattr.h>
19232 posix_acl_from_xattr(&init_user_ns, NULL, 0);
19242 cat - <<_ACEOF >conftest.h
19247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19248 echo "obj-m := conftest.o" >build
/Makefile
19250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19263 { $as_echo "$as_me:$LINENO: result: yes" >&5
19264 $as_echo "yes" >&6; }
19266 cat >>confdefs.h
<<\_ACEOF
19267 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
19272 $as_echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.
$ac_ext >&5
19275 { $as_echo "$as_me:$LINENO: result: no" >&5
19276 $as_echo "no" >&6; }
19287 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
19288 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
19291 cat confdefs.h
- <<_ACEOF >conftest.c
19294 cat confdefs.h
>>conftest.
$ac_ext
19295 cat >>conftest.
$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19299 #include <linux/cred.h>
19300 #include <linux/fs.h>
19301 #include <linux/posix_acl.h>
19307 struct posix_acl* tmp = posix_acl_alloc(1, 0);
19308 posix_acl_release(tmp);
19318 cat - <<_ACEOF >conftest.h
19323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19324 echo "obj-m := conftest.o" >build
/Makefile
19326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19327 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19339 { $as_echo "$as_me:$LINENO: result: yes" >&5
19340 $as_echo "yes" >&6; }
19342 cat >>confdefs.h
<<\_ACEOF
19343 #define HAVE_POSIX_ACL_RELEASE 1
19347 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
19348 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
19351 cat confdefs.h
- <<_ACEOF >conftest.c
19354 cat confdefs.h
>>conftest.
$ac_ext
19355 cat >>conftest.
$ac_ext <<_ACEOF
19356 /* end confdefs.h. */
19359 #include <linux/module.h>
19360 #include <linux/cred.h>
19361 #include <linux/fs.h>
19362 #include <linux/posix_acl.h>
19364 MODULE_LICENSE("$ZFS_META_LICENSE");
19370 struct posix_acl* tmp = posix_acl_alloc(1, 0);
19371 posix_acl_release(tmp);
19381 cat - <<_ACEOF >conftest.h
19386 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19387 echo "obj-m := conftest.o" >build
/Makefile
19389 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19390 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19402 { $as_echo "$as_me:$LINENO: result: no" >&5
19403 $as_echo "no" >&6; }
19406 $as_echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.
$ac_ext >&5
19409 { $as_echo "$as_me:$LINENO: result: yes" >&5
19410 $as_echo "yes" >&6; }
19412 cat >>confdefs.h
<<\_ACEOF
19413 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
19426 $as_echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.
$ac_ext >&5
19429 { $as_echo "$as_me:$LINENO: result: no" >&5
19430 $as_echo "no" >&6; }
19441 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
19442 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
19445 cat confdefs.h
- <<_ACEOF >conftest.c
19448 cat confdefs.h
>>conftest.
$ac_ext
19449 cat >>conftest.
$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19453 #include <linux/module.h>
19454 #include <linux/cred.h>
19455 #include <linux/fs.h>
19456 #include <linux/posix_acl.h>
19458 MODULE_LICENSE("$ZFS_META_LICENSE");
19464 struct inode *ip = NULL;
19465 struct posix_acl *acl = posix_acl_alloc(1, 0);
19466 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
19467 forget_cached_acl(ip, ACL_TYPE_ACCESS);
19477 cat - <<_ACEOF >conftest.h
19482 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19483 echo "obj-m := conftest.o" >build
/Makefile
19485 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19486 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; }; then
19498 { $as_echo "$as_me:$LINENO: result: yes" >&5
19499 $as_echo "yes" >&6; }
19501 cat >>confdefs.h
<<\_ACEOF
19502 #define HAVE_SET_CACHED_ACL_USABLE 1
19507 $as_echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.
$ac_ext >&5
19510 { $as_echo "$as_me:$LINENO: result: no" >&5
19511 $as_echo "no" >&6; }
19522 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
19523 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
19526 cat confdefs.h
- <<_ACEOF >conftest.c
19529 cat confdefs.h
>>conftest.
$ac_ext
19530 cat >>conftest.
$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19534 #include <linux/fs.h>
19535 #include <linux/posix_acl.h>
19541 posix_acl_chmod(NULL, 0, 0)
19551 cat - <<_ACEOF >conftest.h
19556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19557 echo "obj-m := conftest.o" >build
/Makefile
19559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19567 (eval $ac_try) 2>&5
19569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); }; }; then
19572 { $as_echo "$as_me:$LINENO: result: yes" >&5
19573 $as_echo "yes" >&6; }
19575 cat >>confdefs.h
<<\_ACEOF
19576 #define HAVE_POSIX_ACL_CHMOD 1
19581 $as_echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.
$ac_ext >&5
19584 { $as_echo "$as_me:$LINENO: result: no" >&5
19585 $as_echo "no" >&6; }
19595 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
19596 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
19599 cat confdefs.h
- <<_ACEOF >conftest.c
19602 cat confdefs.h
>>conftest.
$ac_ext
19603 cat >>conftest.
$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19607 #include <linux/fs.h>
19608 #include <linux/posix_acl.h>
19614 __posix_acl_chmod(NULL, 0, 0)
19624 cat - <<_ACEOF >conftest.h
19629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19630 echo "obj-m := conftest.o" >build
/Makefile
19632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19645 { $as_echo "$as_me:$LINENO: result: yes" >&5
19646 $as_echo "yes" >&6; }
19648 cat >>confdefs.h
<<\_ACEOF
19649 #define HAVE___POSIX_ACL_CHMOD 1
19654 $as_echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.
$ac_ext >&5
19657 { $as_echo "$as_me:$LINENO: result: no" >&5
19658 $as_echo "no" >&6; }
19669 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19670 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19673 cat confdefs.h
- <<_ACEOF >conftest.c
19676 cat confdefs.h
>>conftest.
$ac_ext
19677 cat >>conftest.
$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19681 #include <linux/fs.h>
19682 #include <linux/posix_acl.h>
19689 posix_acl_equiv_mode(NULL,&tmp);
19699 cat - <<_ACEOF >conftest.h
19704 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19705 echo "obj-m := conftest.o" >build
/Makefile
19707 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19708 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; }; then
19720 { $as_echo "$as_me:$LINENO: result: yes" >&5
19721 $as_echo "yes" >&6; }
19723 cat >>confdefs.h
<<\_ACEOF
19724 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
19729 $as_echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.
$ac_ext >&5
19732 { $as_echo "$as_me:$LINENO: result: no" >&5
19733 $as_echo "no" >&6; }
19744 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
19745 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19748 cat confdefs.h
- <<_ACEOF >conftest.c
19751 cat confdefs.h
>>conftest.
$ac_ext
19752 cat >>conftest.
$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19756 #include <linux/fs.h>
19757 #include <linux/posix_acl.h>
19763 struct user_namespace *user_ns = NULL;
19764 const struct posix_acl *acl = NULL;
19767 error = posix_acl_valid(user_ns, acl);
19777 cat - <<_ACEOF >conftest.h
19782 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19783 echo "obj-m := conftest.o" >build
/Makefile
19785 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19786 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; }; then
19798 { $as_echo "$as_me:$LINENO: result: yes" >&5
19799 $as_echo "yes" >&6; }
19801 cat >>confdefs.h
<<\_ACEOF
19802 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
19807 $as_echo "$as_me: failed program was:" >&5
19808 sed 's/^/| /' conftest.
$ac_ext >&5
19810 { $as_echo "$as_me:$LINENO: result: no" >&5
19811 $as_echo "no" >&6; }
19822 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
19823 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19826 cat confdefs.h
- <<_ACEOF >conftest.c
19829 cat confdefs.h
>>conftest.
$ac_ext
19830 cat >>conftest.
$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19834 #include <linux/fs.h>
19836 int permission_fn(struct inode *inode, int mask) { return 0; }
19838 static const struct inode_operations
19839 iops __attribute__ ((unused)) = {
19840 .permission = permission_fn,
19856 cat - <<_ACEOF >conftest.h
19861 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19862 echo "obj-m := conftest.o" >build
/Makefile
19864 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19865 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878 $as_echo "yes" >&6; }
19880 cat >>confdefs.h
<<\_ACEOF
19881 #define HAVE_PERMISSION 1
19886 $as_echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.
$ac_ext >&5
19889 { $as_echo "$as_me:$LINENO: result: no" >&5
19890 $as_echo "no" >&6; }
19901 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
19902 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19905 cat confdefs.h
- <<_ACEOF >conftest.c
19908 cat confdefs.h
>>conftest.
$ac_ext
19909 cat >>conftest.
$ac_ext <<_ACEOF
19910 /* end confdefs.h. */
19913 #include <linux/fs.h>
19915 int permission_fn(struct inode *inode, int mask,
19916 struct nameidata *nd) { return 0; }
19918 static const struct inode_operations
19919 iops __attribute__ ((unused)) = {
19920 .permission = permission_fn,
19936 cat - <<_ACEOF >conftest.h
19941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19942 echo "obj-m := conftest.o" >build
/Makefile
19944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952 (eval $ac_try) 2>&5
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; }; then
19957 { $as_echo "$as_me:$LINENO: result: yes" >&5
19958 $as_echo "yes" >&6; }
19960 cat >>confdefs.h
<<\_ACEOF
19961 #define HAVE_PERMISSION 1
19965 cat >>confdefs.h
<<\_ACEOF
19966 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
19971 $as_echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.
$ac_ext >&5
19974 { $as_echo "$as_me:$LINENO: result: no" >&5
19975 $as_echo "no" >&6; }
19986 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
19987 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19990 cat confdefs.h
- <<_ACEOF >conftest.c
19993 cat confdefs.h
>>conftest.
$ac_ext
19994 cat >>conftest.
$ac_ext <<_ACEOF
19995 /* end confdefs.h. */
19998 #include <linux/fs.h>
20000 int check_acl_fn(struct inode *inode, int mask) { return 0; }
20002 static const struct inode_operations
20003 iops __attribute__ ((unused)) = {
20004 .check_acl = check_acl_fn,
20020 cat - <<_ACEOF >conftest.h
20025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20026 echo "obj-m := conftest.o" >build
/Makefile
20028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20029 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20041 { $as_echo "$as_me:$LINENO: result: yes" >&5
20042 $as_echo "yes" >&6; }
20044 cat >>confdefs.h
<<\_ACEOF
20045 #define HAVE_CHECK_ACL 1
20050 $as_echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.
$ac_ext >&5
20053 { $as_echo "$as_me:$LINENO: result: no" >&5
20054 $as_echo "no" >&6; }
20065 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
20066 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
20069 cat confdefs.h
- <<_ACEOF >conftest.c
20072 cat confdefs.h
>>conftest.
$ac_ext
20073 cat >>conftest.
$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20077 #include <linux/fs.h>
20079 int check_acl_fn(struct inode *inode, int mask,
20080 unsigned int flags) { return 0; }
20082 static const struct inode_operations
20083 iops __attribute__ ((unused)) = {
20084 .check_acl = check_acl_fn,
20100 cat - <<_ACEOF >conftest.h
20105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20106 echo "obj-m := conftest.o" >build
/Makefile
20108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116 (eval $ac_try) 2>&5
20118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); }; }; then
20121 { $as_echo "$as_me:$LINENO: result: yes" >&5
20122 $as_echo "yes" >&6; }
20124 cat >>confdefs.h
<<\_ACEOF
20125 #define HAVE_CHECK_ACL 1
20129 cat >>confdefs.h
<<\_ACEOF
20130 #define HAVE_CHECK_ACL_WITH_FLAGS 1
20135 $as_echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.
$ac_ext >&5
20138 { $as_echo "$as_me:$LINENO: result: no" >&5
20139 $as_echo "no" >&6; }
20150 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
20151 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
20154 cat confdefs.h
- <<_ACEOF >conftest.c
20157 cat confdefs.h
>>conftest.
$ac_ext
20158 cat >>conftest.
$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20162 #include <linux/fs.h>
20164 struct posix_acl *get_acl_fn(struct inode *inode, int type)
20167 static const struct inode_operations
20168 iops __attribute__ ((unused)) = {
20169 .get_acl = get_acl_fn,
20185 cat - <<_ACEOF >conftest.h
20190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20191 echo "obj-m := conftest.o" >build
/Makefile
20193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20206 { $as_echo "$as_me:$LINENO: result: yes" >&5
20207 $as_echo "yes" >&6; }
20209 cat >>confdefs.h
<<\_ACEOF
20210 #define HAVE_GET_ACL 1
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.
$ac_ext >&5
20218 { $as_echo "$as_me:$LINENO: result: no" >&5
20219 $as_echo "no" >&6; }
20230 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
20231 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
20234 cat confdefs.h
- <<_ACEOF >conftest.c
20237 cat confdefs.h
>>conftest.
$ac_ext
20238 cat >>conftest.
$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20242 #include <linux/fs.h>
20244 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
20247 static const struct inode_operations
20248 iops __attribute__ ((unused)) = {
20249 .set_acl = set_acl_fn,
20265 cat - <<_ACEOF >conftest.h
20270 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20271 echo "obj-m := conftest.o" >build
/Makefile
20273 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20274 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276 (eval $ac_try) 2>&5
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20281 (eval $ac_try) 2>&5
20283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); }; }; then
20286 { $as_echo "$as_me:$LINENO: result: yes" >&5
20287 $as_echo "yes" >&6; }
20289 cat >>confdefs.h
<<\_ACEOF
20290 #define HAVE_SET_ACL 1
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.
$ac_ext >&5
20298 { $as_echo "$as_me:$LINENO: result: no" >&5
20299 $as_echo "no" >&6; }
20311 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
20312 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
20315 cat confdefs.h
- <<_ACEOF >conftest.c
20318 cat confdefs.h
>>conftest.
$ac_ext
20319 cat >>conftest.
$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20323 #include <linux/fs.h>
20326 const struct path *p, struct kstat *k,
20327 u32 request_mask, unsigned int query_flags)
20330 static const struct inode_operations
20331 iops __attribute__ ((unused)) = {
20332 .getattr = test_getattr,
20348 cat - <<_ACEOF >conftest.h
20353 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20354 echo "obj-m := conftest.o" >build
/Makefile
20356 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20357 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359 (eval $ac_try) 2>&5
20361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20369 { $as_echo "$as_me:$LINENO: result: yes" >&5
20370 $as_echo "yes" >&6; }
20372 cat >>confdefs.h
<<\_ACEOF
20373 #define HAVE_PATH_IOPS_GETATTR 1
20378 $as_echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.
$ac_ext >&5
20381 { $as_echo "$as_me:$LINENO: result: no" >&5
20382 $as_echo "no" >&6; }
20393 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
20394 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
20397 cat confdefs.h
- <<_ACEOF >conftest.c
20400 cat confdefs.h
>>conftest.
$ac_ext
20401 cat >>conftest.
$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20405 #include <linux/fs.h>
20408 struct vfsmount *mnt, struct dentry *d,
20412 static const struct inode_operations
20413 iops __attribute__ ((unused)) = {
20414 .getattr = test_getattr,
20430 cat - <<_ACEOF >conftest.h
20435 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20436 echo "obj-m := conftest.o" >build
/Makefile
20438 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20439 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446 (eval $ac_try) 2>&5
20448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); }; }; then
20451 { $as_echo "$as_me:$LINENO: result: yes" >&5
20452 $as_echo "yes" >&6; }
20454 cat >>confdefs.h
<<\_ACEOF
20455 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
20460 $as_echo "$as_me: failed program was:" >&5
20461 sed 's/^/| /' conftest.
$ac_ext >&5
20463 { $as_echo "$as_me:$LINENO: result: no" >&5
20464 $as_echo "no" >&6; }
20476 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
20477 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
20480 cat confdefs.h
- <<_ACEOF >conftest.c
20483 cat confdefs.h
>>conftest.
$ac_ext
20484 cat >>conftest.
$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20488 #include <linux/fs.h>
20494 struct inode inode;
20495 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
20505 cat - <<_ACEOF >conftest.h
20510 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20511 echo "obj-m := conftest.o" >build
/Makefile
20513 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20514 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20526 { $as_echo "$as_me:$LINENO: result: yes" >&5
20527 $as_echo "yes" >&6; }
20529 cat >>confdefs.h
<<\_ACEOF
20530 #define HAVE_INODE_SET_FLAGS 1
20535 $as_echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.
$ac_ext >&5
20538 { $as_echo "$as_me:$LINENO: result: no" >&5
20539 $as_echo "no" >&6; }
20550 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
20551 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
20554 cat confdefs.h
- <<_ACEOF >conftest.c
20557 cat confdefs.h
>>conftest.
$ac_ext
20558 cat >>conftest.
$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20562 #include <linux/fs.h>
20568 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
20578 cat - <<_ACEOF >conftest.h
20583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20584 echo "obj-m := conftest.o" >build
/Makefile
20586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20594 (eval $ac_try) 2>&5
20596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); }; }; then
20599 { $as_echo "$as_me:$LINENO: result: yes" >&5
20600 $as_echo "yes" >&6; }
20602 cat >>confdefs.h
<<\_ACEOF
20603 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
20608 $as_echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.
$ac_ext >&5
20611 { $as_echo "$as_me:$LINENO: result: no" >&5
20612 $as_echo "no" >&6; }
20623 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
20624 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
20628 cat confdefs.h
- <<_ACEOF >conftest.c
20631 cat confdefs.h
>>conftest.
$ac_ext
20632 cat >>conftest.
$ac_ext <<_ACEOF
20633 /* end confdefs.h. */
20636 #include <linux/fs.h>
20638 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
20639 static struct super_operations sops __attribute__ ((unused)) = {
20640 .show_options = show_options,
20656 cat - <<_ACEOF >conftest.h
20661 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20662 echo "obj-m := conftest.o" >build
/Makefile
20664 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20665 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20672 (eval $ac_try) 2>&5
20674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); }; }; then
20677 { $as_echo "$as_me:$LINENO: result: yes" >&5
20678 $as_echo "yes" >&6; }
20680 cat >>confdefs.h
<<\_ACEOF
20681 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
20686 $as_echo "$as_me: failed program was:" >&5
20687 sed 's/^/| /' conftest.
$ac_ext >&5
20689 { $as_echo "$as_me:$LINENO: result: no" >&5
20690 $as_echo "no" >&6; }
20701 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
20702 $as_echo_n "checking whether file_inode() is available... " >&6; }
20705 cat confdefs.h
- <<_ACEOF >conftest.c
20708 cat confdefs.h
>>conftest.
$ac_ext
20709 cat >>conftest.
$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20713 #include <linux/fs.h>
20719 struct file *f = NULL;
20730 cat - <<_ACEOF >conftest.h
20735 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20736 echo "obj-m := conftest.o" >build
/Makefile
20738 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20739 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20746 (eval $ac_try) 2>&5
20748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); }; }; then
20751 { $as_echo "$as_me:$LINENO: result: yes" >&5
20752 $as_echo "yes" >&6; }
20754 cat >>confdefs.h
<<\_ACEOF
20755 #define HAVE_FILE_INODE 1
20760 $as_echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.
$ac_ext >&5
20763 { $as_echo "$as_me:$LINENO: result: no" >&5
20764 $as_echo "no" >&6; }
20775 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
20776 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20779 cat confdefs.h
- <<_ACEOF >conftest.c
20782 cat confdefs.h
>>conftest.
$ac_ext
20783 cat >>conftest.
$ac_ext <<_ACEOF
20784 /* end confdefs.h. */
20787 #include <linux/fs.h>
20793 struct file *f = NULL;
20804 cat - <<_ACEOF >conftest.h
20809 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20810 echo "obj-m := conftest.o" >build
/Makefile
20812 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20813 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20825 { $as_echo "$as_me:$LINENO: result: yes" >&5
20826 $as_echo "yes" >&6; }
20828 cat >>confdefs.h
<<\_ACEOF
20829 #define HAVE_FILE_DENTRY 1
20834 $as_echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.
$ac_ext >&5
20837 { $as_echo "$as_me:$LINENO: result: no" >&5
20838 $as_echo "no" >&6; }
20849 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
20850 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20854 cat confdefs.h
- <<_ACEOF >conftest.c
20857 cat confdefs.h
>>conftest.
$ac_ext
20858 cat >>conftest.
$ac_ext <<_ACEOF
20859 /* end confdefs.h. */
20862 #include <linux/fs.h>
20864 int test_fsync(struct file *f, struct dentry *dentry, int x)
20867 static const struct file_operations
20868 fops __attribute__ ((unused)) = {
20869 .fsync = test_fsync,
20885 cat - <<_ACEOF >conftest.h
20890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20891 echo "obj-m := conftest.o" >build
/Makefile
20893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20901 (eval $ac_try) 2>&5
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20906 { $as_echo "$as_me:$LINENO: result: dentry" >&5
20907 $as_echo "dentry" >&6; }
20909 cat >>confdefs.h
<<\_ACEOF
20910 #define HAVE_FSYNC_WITH_DENTRY 1
20915 $as_echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.
$ac_ext >&5
20930 cat confdefs.h
- <<_ACEOF >conftest.c
20933 cat confdefs.h
>>conftest.
$ac_ext
20934 cat >>conftest.
$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20938 #include <linux/fs.h>
20940 int test_fsync(struct file *f, int x) { return 0; }
20942 static const struct file_operations
20943 fops __attribute__ ((unused)) = {
20944 .fsync = test_fsync,
20960 cat - <<_ACEOF >conftest.h
20965 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20966 echo "obj-m := conftest.o" >build
/Makefile
20968 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20969 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
20981 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
20982 $as_echo "no dentry" >&6; }
20984 cat >>confdefs.h
<<\_ACEOF
20985 #define HAVE_FSYNC_WITHOUT_DENTRY 1
20990 $as_echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.
$ac_ext >&5
21005 cat confdefs.h
- <<_ACEOF >conftest.c
21008 cat confdefs.h
>>conftest.
$ac_ext
21009 cat >>conftest.
$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21013 #include <linux/fs.h>
21015 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21018 static const struct file_operations
21019 fops __attribute__ ((unused)) = {
21020 .fsync = test_fsync,
21036 cat - <<_ACEOF >conftest.h
21041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21042 echo "obj-m := conftest.o" >build
/Makefile
21044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21052 (eval $ac_try) 2>&5
21054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); }; }; then
21057 { $as_echo "$as_me:$LINENO: result: range" >&5
21058 $as_echo "range" >&6; }
21060 cat >>confdefs.h
<<\_ACEOF
21061 #define HAVE_FSYNC_RANGE 1
21066 $as_echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.
$ac_ext >&5
21080 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21081 $as_echo_n "checking whether sops->evict_inode() exists... " >&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/fs.h>
21093 void evict_inode (struct inode * t) { return; }
21094 static struct super_operations sops __attribute__ ((unused)) = {
21095 .evict_inode = evict_inode,
21111 cat - <<_ACEOF >conftest.h
21116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21117 echo "obj-m := conftest.o" >build
/Makefile
21119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21132 { $as_echo "$as_me:$LINENO: result: yes" >&5
21133 $as_echo "yes" >&6; }
21135 cat >>confdefs.h
<<\_ACEOF
21136 #define HAVE_EVICT_INODE 1
21141 $as_echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.
$ac_ext >&5
21144 { $as_echo "$as_me:$LINENO: result: no" >&5
21145 $as_echo "no" >&6; }
21156 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
21157 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21160 cat confdefs.h
- <<_ACEOF >conftest.c
21163 cat confdefs.h
>>conftest.
$ac_ext
21164 cat >>conftest.
$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21168 #include <linux/fs.h>
21170 void dirty_inode(struct inode *a, int b) { return; }
21172 static const struct super_operations
21173 sops __attribute__ ((unused)) = {
21174 .dirty_inode = dirty_inode,
21190 cat - <<_ACEOF >conftest.h
21195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21196 echo "obj-m := conftest.o" >build
/Makefile
21198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21199 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21211 { $as_echo "$as_me:$LINENO: result: yes" >&5
21212 $as_echo "yes" >&6; }
21214 cat >>confdefs.h
<<\_ACEOF
21215 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
21220 $as_echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.
$ac_ext >&5
21223 { $as_echo "$as_me:$LINENO: result: no" >&5
21224 $as_echo "no" >&6; }
21235 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21236 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21239 cat confdefs.h
- <<_ACEOF >conftest.c
21242 cat confdefs.h
>>conftest.
$ac_ext
21243 cat >>conftest.
$ac_ext <<_ACEOF
21244 /* end confdefs.h. */
21247 #include <linux/fs.h>
21249 int nr_cached_objects(struct super_block *sb) { return 0; }
21251 static const struct super_operations
21252 sops __attribute__ ((unused)) = {
21253 .nr_cached_objects = nr_cached_objects,
21269 cat - <<_ACEOF >conftest.h
21274 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21275 echo "obj-m := conftest.o" >build
/Makefile
21277 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21278 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21290 { $as_echo "$as_me:$LINENO: result: yes" >&5
21291 $as_echo "yes" >&6; }
21293 cat >>confdefs.h
<<\_ACEOF
21294 #define HAVE_NR_CACHED_OBJECTS 1
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.
$ac_ext >&5
21302 { $as_echo "$as_me:$LINENO: result: no" >&5
21303 $as_echo "no" >&6; }
21314 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21315 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21318 cat confdefs.h
- <<_ACEOF >conftest.c
21321 cat confdefs.h
>>conftest.
$ac_ext
21322 cat >>conftest.
$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21326 #include <linux/fs.h>
21328 void free_cached_objects(struct super_block *sb, int x)
21331 static const struct super_operations
21332 sops __attribute__ ((unused)) = {
21333 .free_cached_objects = free_cached_objects,
21349 cat - <<_ACEOF >conftest.h
21354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21355 echo "obj-m := conftest.o" >build
/Makefile
21357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21370 { $as_echo "$as_me:$LINENO: result: yes" >&5
21371 $as_echo "yes" >&6; }
21373 cat >>confdefs.h
<<\_ACEOF
21374 #define HAVE_FREE_CACHED_OBJECTS 1
21379 $as_echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.
$ac_ext >&5
21382 { $as_echo "$as_me:$LINENO: result: no" >&5
21383 $as_echo "no" >&6; }
21395 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21396 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21399 cat confdefs.h
- <<_ACEOF >conftest.c
21402 cat confdefs.h
>>conftest.
$ac_ext
21403 cat >>conftest.
$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21407 #include <linux/fs.h>
21409 long test_fallocate(struct file *file, int mode,
21410 loff_t offset, loff_t len) { return 0; }
21412 static const struct file_operations
21413 fops __attribute__ ((unused)) = {
21414 .fallocate = test_fallocate,
21430 cat - <<_ACEOF >conftest.h
21435 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21436 echo "obj-m := conftest.o" >build
/Makefile
21438 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21439 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21441 (eval $ac_try) 2>&5
21443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; }; then
21451 { $as_echo "$as_me:$LINENO: result: yes" >&5
21452 $as_echo "yes" >&6; }
21454 cat >>confdefs.h
<<\_ACEOF
21455 #define HAVE_FILE_FALLOCATE 1
21460 $as_echo "$as_me: failed program was:" >&5
21461 sed 's/^/| /' conftest.
$ac_ext >&5
21463 { $as_echo "$as_me:$LINENO: result: no" >&5
21464 $as_echo "no" >&6; }
21475 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21476 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21479 cat confdefs.h
- <<_ACEOF >conftest.c
21482 cat confdefs.h
>>conftest.
$ac_ext
21483 cat >>conftest.
$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21487 #include <linux/fs.h>
21489 long test_fallocate(struct inode *inode, int mode,
21490 loff_t offset, loff_t len) { return 0; }
21492 static const struct inode_operations
21493 fops __attribute__ ((unused)) = {
21494 .fallocate = test_fallocate,
21510 cat - <<_ACEOF >conftest.h
21515 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21516 echo "obj-m := conftest.o" >build
/Makefile
21518 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21519 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526 (eval $ac_try) 2>&5
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); }; }; then
21531 { $as_echo "$as_me:$LINENO: result: yes" >&5
21532 $as_echo "yes" >&6; }
21534 cat >>confdefs.h
<<\_ACEOF
21535 #define HAVE_INODE_FALLOCATE 1
21540 $as_echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.
$ac_ext >&5
21543 { $as_echo "$as_me:$LINENO: result: no" >&5
21544 $as_echo "no" >&6; }
21556 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
21557 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
21560 cat confdefs.h
- <<_ACEOF >conftest.c
21563 cat confdefs.h
>>conftest.
$ac_ext
21564 cat >>conftest.
$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21568 #include <linux/fs.h>
21570 static const struct file_operations
21571 fops __attribute__ ((unused)) = {
21588 cat - <<_ACEOF >conftest.h
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 conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $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_FILE_AIO_FSYNC 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; }
21633 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
21634 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
21637 cat confdefs.h
- <<_ACEOF >conftest.c
21640 cat confdefs.h
>>conftest.
$ac_ext
21641 cat >>conftest.
$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21645 #include <linux/fs.h>
21647 int mkdir(struct inode *inode, struct dentry *dentry,
21648 umode_t umode) { return 0; }
21650 static const struct inode_operations
21651 iops __attribute__ ((unused)) = {
21668 cat - <<_ACEOF >conftest.h
21673 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21674 echo "obj-m := conftest.o" >build
/Makefile
21676 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21677 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679 (eval $ac_try) 2>&5
21681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21684 (eval $ac_try) 2>&5
21686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); }; }; then
21689 { $as_echo "$as_me:$LINENO: result: yes" >&5
21690 $as_echo "yes" >&6; }
21692 cat >>confdefs.h
<<\_ACEOF
21693 #define HAVE_MKDIR_UMODE_T 1
21698 $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.
$ac_ext >&5
21701 { $as_echo "$as_me:$LINENO: result: no" >&5
21702 $as_echo "no" >&6; }
21713 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
21714 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
21717 cat confdefs.h
- <<_ACEOF >conftest.c
21720 cat confdefs.h
>>conftest.
$ac_ext
21721 cat >>conftest.
$ac_ext <<_ACEOF
21722 /* end confdefs.h. */
21725 #include <linux/fs.h>
21727 struct dentry *inode_lookup(struct inode *inode,
21728 struct dentry *dentry, struct nameidata *nidata)
21731 static const struct inode_operations iops
21732 __attribute__ ((unused)) = {
21733 .lookup = inode_lookup,
21749 cat - <<_ACEOF >conftest.h
21754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21755 echo "obj-m := conftest.o" >build
/Makefile
21757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; }; then
21770 { $as_echo "$as_me:$LINENO: result: yes" >&5
21771 $as_echo "yes" >&6; }
21773 cat >>confdefs.h
<<\_ACEOF
21774 #define HAVE_LOOKUP_NAMEIDATA 1
21779 $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.
$ac_ext >&5
21782 { $as_echo "$as_me:$LINENO: result: no" >&5
21783 $as_echo "no" >&6; }
21794 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
21795 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
21798 cat confdefs.h
- <<_ACEOF >conftest.c
21801 cat confdefs.h
>>conftest.
$ac_ext
21802 cat >>conftest.
$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21806 #include <linux/fs.h>
21808 #ifdef HAVE_MKDIR_UMODE_T
21809 int inode_create(struct inode *inode ,struct dentry *dentry,
21810 umode_t umode, struct nameidata *nidata) { return 0; }
21812 int inode_create(struct inode *inode,struct dentry *dentry,
21813 int umode, struct nameidata * nidata) { return 0; }
21816 static const struct inode_operations
21817 iops __attribute__ ((unused)) = {
21818 .create = inode_create,
21834 cat - <<_ACEOF >conftest.h
21839 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21840 echo "obj-m := conftest.o" >build
/Makefile
21842 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21843 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845 (eval $ac_try) 2>&5
21847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; }; then
21855 { $as_echo "$as_me:$LINENO: result: yes" >&5
21856 $as_echo "yes" >&6; }
21858 cat >>confdefs.h
<<\_ACEOF
21859 #define HAVE_CREATE_NAMEIDATA 1
21864 $as_echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.
$ac_ext >&5
21867 { $as_echo "$as_me:$LINENO: result: no" >&5
21868 $as_echo "no" >&6; }
21879 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
21880 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21883 cat confdefs.h
- <<_ACEOF >conftest.c
21886 cat confdefs.h
>>conftest.
$ac_ext
21887 cat >>conftest.
$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21891 #include <linux/fs.h>
21892 const char *get_link(struct dentry *de, struct inode *ip,
21893 struct delayed_call *done) { return "symlink"; }
21894 static struct inode_operations
21895 iops __attribute__ ((unused)) = {
21896 .get_link = get_link,
21912 cat - <<_ACEOF >conftest.h
21917 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21918 echo "obj-m := conftest.o" >build
/Makefile
21920 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21921 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21933 { $as_echo "$as_me:$LINENO: result: yes" >&5
21934 $as_echo "yes" >&6; }
21936 cat >>confdefs.h
<<\_ACEOF
21937 #define HAVE_GET_LINK_DELAYED 1
21942 $as_echo "$as_me: failed program was:" >&5
21943 sed 's/^/| /' conftest.
$ac_ext >&5
21945 { $as_echo "$as_me:$LINENO: result: no" >&5
21946 $as_echo "no" >&6; }
21947 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
21948 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21951 cat confdefs.h
- <<_ACEOF >conftest.c
21954 cat confdefs.h
>>conftest.
$ac_ext
21955 cat >>conftest.
$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21959 #include <linux/fs.h>
21960 const char *get_link(struct dentry *de, struct
21961 inode *ip, void **cookie) { return "symlink"; }
21962 static struct inode_operations
21963 iops __attribute__ ((unused)) = {
21964 .get_link = get_link,
21980 cat - <<_ACEOF >conftest.h
21985 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21986 echo "obj-m := conftest.o" >build
/Makefile
21988 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21989 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; }; then
22001 { $as_echo "$as_me:$LINENO: result: yes" >&5
22002 $as_echo "yes" >&6; }
22004 cat >>confdefs.h
<<\_ACEOF
22005 #define HAVE_GET_LINK_COOKIE 1
22010 $as_echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.
$ac_ext >&5
22013 { $as_echo "$as_me:$LINENO: result: no" >&5
22014 $as_echo "no" >&6; }
22016 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
22017 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
22020 cat confdefs.h
- <<_ACEOF >conftest.c
22023 cat confdefs.h
>>conftest.
$ac_ext
22024 cat >>conftest.
$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22028 #include <linux/fs.h>
22029 const char *follow_link(struct dentry *de,
22030 void **cookie) { return "symlink"; }
22031 static struct inode_operations
22032 iops __attribute__ ((unused)) = {
22033 .follow_link = follow_link,
22049 cat - <<_ACEOF >conftest.h
22054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22055 echo "obj-m := conftest.o" >build
/Makefile
22057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065 (eval $ac_try) 2>&5
22067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); }; }; then
22070 { $as_echo "$as_me:$LINENO: result: yes" >&5
22071 $as_echo "yes" >&6; }
22073 cat >>confdefs.h
<<\_ACEOF
22074 #define HAVE_FOLLOW_LINK_COOKIE 1
22079 $as_echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.
$ac_ext >&5
22082 { $as_echo "$as_me:$LINENO: result: no" >&5
22083 $as_echo "no" >&6; }
22084 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
22085 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
22088 cat confdefs.h
- <<_ACEOF >conftest.c
22091 cat confdefs.h
>>conftest.
$ac_ext
22092 cat >>conftest.
$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22096 #include <linux/fs.h>
22097 void *follow_link(struct dentry *de, struct
22098 nameidata *nd) { return (void *)NULL; }
22099 static struct inode_operations
22100 iops __attribute__ ((unused)) = {
22101 .follow_link = follow_link,
22117 cat - <<_ACEOF >conftest.h
22122 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22123 echo "obj-m := conftest.o" >build
/Makefile
22125 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22126 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22133 (eval $ac_try) 2>&5
22135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136 (exit $ac_status); }; }; then
22138 { $as_echo "$as_me:$LINENO: result: yes" >&5
22139 $as_echo "yes" >&6; }
22141 cat >>confdefs.h
<<\_ACEOF
22142 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
22147 $as_echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.
$ac_ext >&5
22150 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22151 $as_echo "$as_me: error: no; please file a bug report" >&2;}
22152 { (exit 1); exit 1; }; }
22190 cat confdefs.h
- <<_ACEOF >conftest.c
22193 cat confdefs.h
>>conftest.
$ac_ext
22194 cat >>conftest.
$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22198 #if !defined(HAVE_GET_LINK_DELAYED)
22199 #error "Expecting get_link() delayed done"
22215 cat - <<_ACEOF >conftest.h
22220 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22221 echo "obj-m := conftest.o" >build
/Makefile
22223 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22224 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22237 cat >>confdefs.h
<<\_ACEOF
22238 #define HAVE_PUT_LINK_DELAYED 1
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.
$ac_ext >&5
22246 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
22247 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
22250 cat confdefs.h
- <<_ACEOF >conftest.c
22253 cat confdefs.h
>>conftest.
$ac_ext
22254 cat >>conftest.
$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22258 #include <linux/fs.h>
22259 void put_link(struct inode *ip, void *cookie)
22261 static struct inode_operations
22262 iops __attribute__ ((unused)) = {
22263 .put_link = put_link,
22279 cat - <<_ACEOF >conftest.h
22284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22285 echo "obj-m := conftest.o" >build
/Makefile
22287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22300 { $as_echo "$as_me:$LINENO: result: yes" >&5
22301 $as_echo "yes" >&6; }
22303 cat >>confdefs.h
<<\_ACEOF
22304 #define HAVE_PUT_LINK_COOKIE 1
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.
$ac_ext >&5
22312 { $as_echo "$as_me:$LINENO: result: no" >&5
22313 $as_echo "no" >&6; }
22314 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
22315 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
22318 cat confdefs.h
- <<_ACEOF >conftest.c
22321 cat confdefs.h
>>conftest.
$ac_ext
22322 cat >>conftest.
$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22326 #include <linux/fs.h>
22327 void put_link(struct dentry *de, struct
22328 nameidata *nd, void *ptr) { return; }
22329 static struct inode_operations
22330 iops __attribute__ ((unused)) = {
22331 .put_link = put_link,
22347 cat - <<_ACEOF >conftest.h
22352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22353 echo "obj-m := conftest.o" >build
/Makefile
22355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22368 { $as_echo "$as_me:$LINENO: result: yes" >&5
22369 $as_echo "yes" >&6; }
22371 cat >>confdefs.h
<<\_ACEOF
22372 #define HAVE_PUT_LINK_NAMEIDATA 1
22377 $as_echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.
$ac_ext >&5
22380 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
22381 $as_echo "$as_me: error: no; please file a bug report" >&2;}
22382 { (exit 1); exit 1; }; }
22409 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
22410 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
22413 cat confdefs.h
- <<_ACEOF >conftest.c
22416 cat confdefs.h
>>conftest.
$ac_ext
22417 cat >>conftest.
$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22421 #include <linux/fs.h>
22422 int tmpfile(struct inode *inode, struct dentry *dentry,
22423 umode_t mode) { return 0; }
22424 static struct inode_operations
22425 iops __attribute__ ((unused)) = {
22426 .tmpfile = tmpfile,
22442 cat - <<_ACEOF >conftest.h
22447 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22448 echo "obj-m := conftest.o" >build
/Makefile
22450 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22451 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458 (eval $ac_try) 2>&5
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); }; }; then
22463 { $as_echo "$as_me:$LINENO: result: yes" >&5
22464 $as_echo "yes" >&6; }
22466 cat >>confdefs.h
<<\_ACEOF
22467 #define HAVE_TMPFILE 1
22472 $as_echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.
$ac_ext >&5
22475 { $as_echo "$as_me:$LINENO: result: no" >&5
22476 $as_echo "no" >&6; }
22487 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
22488 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22491 cat confdefs.h
- <<_ACEOF >conftest.c
22494 cat confdefs.h
>>conftest.
$ac_ext
22495 cat >>conftest.
$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22499 #include <linux/fs.h>
22500 void truncate_range(struct inode *inode, loff_t start,
22501 loff_t end) { return; }
22502 static struct inode_operations iops __attribute__ ((unused)) = {
22503 .truncate_range = truncate_range,
22519 cat - <<_ACEOF >conftest.h
22524 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22525 echo "obj-m := conftest.o" >build
/Makefile
22527 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22528 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530 (eval $ac_try) 2>&5
22532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22540 { $as_echo "$as_me:$LINENO: result: yes" >&5
22541 $as_echo "yes" >&6; }
22543 cat >>confdefs.h
<<\_ACEOF
22544 #define HAVE_INODE_TRUNCATE_RANGE 1
22549 $as_echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.
$ac_ext >&5
22552 { $as_echo "$as_me:$LINENO: result: no" >&5
22553 $as_echo "no" >&6; }
22564 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
22565 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22568 cat confdefs.h
- <<_ACEOF >conftest.c
22571 cat confdefs.h
>>conftest.
$ac_ext
22572 cat >>conftest.
$ac_ext <<_ACEOF
22573 /* end confdefs.h. */
22576 #include <linux/dcache.h>
22577 struct vfsmount *d_automount(struct path *p) { return NULL; }
22578 struct dentry_operations dops __attribute__ ((unused)) = {
22579 .d_automount = d_automount,
22595 cat - <<_ACEOF >conftest.h
22600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22601 echo "obj-m := conftest.o" >build
/Makefile
22603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22616 { $as_echo "$as_me:$LINENO: result: yes" >&5
22617 $as_echo "yes" >&6; }
22619 cat >>confdefs.h
<<\_ACEOF
22620 #define HAVE_AUTOMOUNT 1
22625 $as_echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.
$ac_ext >&5
22628 { $as_echo "$as_me:$LINENO: result: no" >&5
22629 $as_echo "no" >&6; }
22640 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
22641 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22644 cat confdefs.h
- <<_ACEOF >conftest.c
22647 cat confdefs.h
>>conftest.
$ac_ext
22648 cat >>conftest.
$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22652 #include <linux/exportfs.h>
22653 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22654 struct inode *parent) { return 0; }
22655 static struct export_operations eops __attribute__ ((unused))={
22656 .encode_fh = encode_fh,
22672 cat - <<_ACEOF >conftest.h
22677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22678 echo "obj-m := conftest.o" >build
/Makefile
22680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22683 (eval $ac_try) 2>&5
22685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688 (eval $ac_try) 2>&5
22690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); }; }; then
22693 { $as_echo "$as_me:$LINENO: result: yes" >&5
22694 $as_echo "yes" >&6; }
22696 cat >>confdefs.h
<<\_ACEOF
22697 #define HAVE_ENCODE_FH_WITH_INODE 1
22702 $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.
$ac_ext >&5
22705 { $as_echo "$as_me:$LINENO: result: no" >&5
22706 $as_echo "no" >&6; }
22717 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
22718 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22721 cat confdefs.h
- <<_ACEOF >conftest.c
22724 cat confdefs.h
>>conftest.
$ac_ext
22725 cat >>conftest.
$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22729 #include <linux/exportfs.h>
22730 int commit_metadata(struct inode *inode) { return 0; }
22731 static struct export_operations eops __attribute__ ((unused))={
22732 .commit_metadata = commit_metadata,
22748 cat - <<_ACEOF >conftest.h
22753 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22754 echo "obj-m := conftest.o" >build
/Makefile
22756 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22757 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22764 (eval $ac_try) 2>&5
22766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); }; }; then
22769 { $as_echo "$as_me:$LINENO: result: yes" >&5
22770 $as_echo "yes" >&6; }
22772 cat >>confdefs.h
<<\_ACEOF
22773 #define HAVE_COMMIT_METADATA 1
22778 $as_echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.
$ac_ext >&5
22781 { $as_echo "$as_me:$LINENO: result: no" >&5
22782 $as_echo "no" >&6; }
22792 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
22793 $as_echo_n "checking whether clear_inode() is available... " >&6; }
22797 cat confdefs.h
- <<_ACEOF >conftest.c
22800 cat confdefs.h
>>conftest.
$ac_ext
22801 cat >>conftest.
$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22805 #include <linux/fs.h>
22821 cat - <<_ACEOF >conftest.h
22826 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22827 echo "obj-m := conftest.o" >build
/Makefile
22829 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22830 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.
$ac_ext >&5
22853 if test $rc -ne 0; then :
22855 { $as_echo "$as_me:$LINENO: result: no" >&5
22856 $as_echo "no" >&6; }
22859 if test "x$enable_linux_builtin" != xyes
; then
22861 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22862 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22864 if test $rc -ne 0; then
22866 for file in fs
/inode.c
; do
22867 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
22868 "$LINUX/$file" 2>/dev
/null
22870 if test $rc -eq 0; then
22875 if test $export -eq 0; then :
22885 if test $rc -ne 0; then :
22887 { $as_echo "$as_me:$LINENO: result: no" >&5
22888 $as_echo "no" >&6; }
22892 { $as_echo "$as_me:$LINENO: result: yes" >&5
22893 $as_echo "yes" >&6; }
22895 cat >>confdefs.h
<<\_ACEOF
22896 #define HAVE_CLEAR_INODE 1
22904 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
22905 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
22909 cat confdefs.h
- <<_ACEOF >conftest.c
22912 cat confdefs.h
>>conftest.
$ac_ext
22913 cat >>conftest.
$ac_ext <<_ACEOF
22914 /* end confdefs.h. */
22917 #include <linux/fs.h>
22923 struct dentry *dentry = NULL;
22924 struct iattr *attr = NULL;
22927 error = setattr_prepare(dentry, attr);
22937 cat - <<_ACEOF >conftest.h
22942 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22943 echo "obj-m := conftest.o" >build
/Makefile
22945 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22946 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22953 (eval $ac_try) 2>&5
22955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956 (exit $ac_status); }; }; then
22959 $as_echo "$as_me: failed program was:" >&5
22960 sed 's/^/| /' conftest.
$ac_ext >&5
22969 if test $rc -ne 0; then :
22971 { $as_echo "$as_me:$LINENO: result: no" >&5
22972 $as_echo "no" >&6; }
22975 if test "x$enable_linux_builtin" != xyes
; then
22977 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22978 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22980 if test $rc -ne 0; then
22982 for file in fs
/attr.c
; do
22983 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22984 "$LINUX/$file" 2>/dev
/null
22986 if test $rc -eq 0; then
22991 if test $export -eq 0; then :
23001 if test $rc -ne 0; then :
23003 { $as_echo "$as_me:$LINENO: result: no" >&5
23004 $as_echo "no" >&6; }
23008 { $as_echo "$as_me:$LINENO: result: yes" >&5
23009 $as_echo "yes" >&6; }
23011 cat >>confdefs.h
<<\_ACEOF
23012 #define HAVE_SETATTR_PREPARE 1
23020 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
23021 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
23025 cat confdefs.h
- <<_ACEOF >conftest.c
23028 cat confdefs.h
>>conftest.
$ac_ext
23029 cat >>conftest.
$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23033 #include <linux/fs.h>
23039 insert_inode_locked(NULL);
23049 cat - <<_ACEOF >conftest.h
23054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23055 echo "obj-m := conftest.o" >build
/Makefile
23057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
23071 $as_echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.
$ac_ext >&5
23081 if test $rc -ne 0; then :
23083 { $as_echo "$as_me:$LINENO: result: no" >&5
23084 $as_echo "no" >&6; }
23087 if test "x$enable_linux_builtin" != xyes
; then
23089 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23090 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23092 if test $rc -ne 0; then
23094 for file in fs
/inode.c
; do
23095 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
23096 "$LINUX/$file" 2>/dev
/null
23098 if test $rc -eq 0; then
23103 if test $export -eq 0; then :
23113 if test $rc -ne 0; then :
23115 { $as_echo "$as_me:$LINENO: result: no" >&5
23116 $as_echo "no" >&6; }
23120 { $as_echo "$as_me:$LINENO: result: yes" >&5
23121 $as_echo "yes" >&6; }
23123 cat >>confdefs.h
<<\_ACEOF
23124 #define HAVE_INSERT_INODE_LOCKED 1
23132 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
23133 $as_echo_n "checking whether d_make_root() is available... " >&6; }
23137 cat confdefs.h
- <<_ACEOF >conftest.c
23140 cat confdefs.h
>>conftest.
$ac_ext
23141 cat >>conftest.
$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23145 #include <linux/dcache.h>
23161 cat - <<_ACEOF >conftest.h
23166 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23167 echo "obj-m := conftest.o" >build
/Makefile
23169 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23170 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23183 $as_echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.
$ac_ext >&5
23193 if test $rc -ne 0; then :
23195 { $as_echo "$as_me:$LINENO: result: no" >&5
23196 $as_echo "no" >&6; }
23199 if test "x$enable_linux_builtin" != xyes
; then
23201 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23202 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23204 if test $rc -ne 0; then
23206 for file in fs
/dcache.c
; do
23207 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
23208 "$LINUX/$file" 2>/dev
/null
23210 if test $rc -eq 0; then
23215 if test $export -eq 0; then :
23225 if test $rc -ne 0; then :
23227 { $as_echo "$as_me:$LINENO: result: no" >&5
23228 $as_echo "no" >&6; }
23232 { $as_echo "$as_me:$LINENO: result: yes" >&5
23233 $as_echo "yes" >&6; }
23235 cat >>confdefs.h
<<\_ACEOF
23236 #define HAVE_D_MAKE_ROOT 1
23244 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
23245 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
23249 cat confdefs.h
- <<_ACEOF >conftest.c
23252 cat confdefs.h
>>conftest.
$ac_ext
23253 cat >>conftest.
$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23257 #include <linux/dcache.h>
23263 d_obtain_alias(NULL);
23273 cat - <<_ACEOF >conftest.h
23278 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23279 echo "obj-m := conftest.o" >build
/Makefile
23281 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23282 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.
$ac_ext >&5
23305 if test $rc -ne 0; then :
23307 { $as_echo "$as_me:$LINENO: result: no" >&5
23308 $as_echo "no" >&6; }
23311 if test "x$enable_linux_builtin" != xyes
; then
23313 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23314 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23316 if test $rc -ne 0; then
23318 for file in fs
/dcache.c
; do
23319 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
23320 "$LINUX/$file" 2>/dev
/null
23322 if test $rc -eq 0; then
23327 if test $export -eq 0; then :
23337 if test $rc -ne 0; then :
23339 { $as_echo "$as_me:$LINENO: result: no" >&5
23340 $as_echo "no" >&6; }
23344 { $as_echo "$as_me:$LINENO: result: yes" >&5
23345 $as_echo "yes" >&6; }
23347 cat >>confdefs.h
<<\_ACEOF
23348 #define HAVE_D_OBTAIN_ALIAS 1
23356 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
23357 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
23361 cat confdefs.h
- <<_ACEOF >conftest.c
23364 cat confdefs.h
>>conftest.
$ac_ext
23365 cat >>conftest.
$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23369 #include <linux/dcache.h>
23375 struct inode *ip = NULL;
23376 d_prune_aliases(ip);
23386 cat - <<_ACEOF >conftest.h
23391 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23392 echo "obj-m := conftest.o" >build
/Makefile
23394 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23395 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.
$ac_ext >&5
23418 if test $rc -ne 0; then :
23420 { $as_echo "$as_me:$LINENO: result: no" >&5
23421 $as_echo "no" >&6; }
23424 if test "x$enable_linux_builtin" != xyes
; then
23426 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
23427 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23429 if test $rc -ne 0; then
23431 for file in fs
/dcache.c
; do
23432 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
23433 "$LINUX/$file" 2>/dev
/null
23435 if test $rc -eq 0; then
23440 if test $export -eq 0; then :
23450 if test $rc -ne 0; then :
23452 { $as_echo "$as_me:$LINENO: result: no" >&5
23453 $as_echo "no" >&6; }
23457 { $as_echo "$as_me:$LINENO: result: yes" >&5
23458 $as_echo "yes" >&6; }
23460 cat >>confdefs.h
<<\_ACEOF
23461 #define HAVE_D_PRUNE_ALIASES 1
23469 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
23470 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
23474 cat confdefs.h
- <<_ACEOF >conftest.c
23477 cat confdefs.h
>>conftest.
$ac_ext
23478 cat >>conftest.
$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23482 #include <linux/dcache.h>
23488 d_set_d_op(NULL, NULL);
23498 cat - <<_ACEOF >conftest.h
23503 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23504 echo "obj-m := conftest.o" >build
/Makefile
23506 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23507 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23509 (eval $ac_try) 2>&5
23511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; }; then
23520 $as_echo "$as_me: failed program was:" >&5
23521 sed 's/^/| /' conftest.
$ac_ext >&5
23530 if test $rc -ne 0; then :
23532 { $as_echo "$as_me:$LINENO: result: no" >&5
23533 $as_echo "no" >&6; }
23536 if test "x$enable_linux_builtin" != xyes
; then
23538 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
23539 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23541 if test $rc -ne 0; then
23543 for file in fs
/dcache.c
; do
23544 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
23545 "$LINUX/$file" 2>/dev
/null
23547 if test $rc -eq 0; then
23552 if test $export -eq 0; then :
23562 if test $rc -ne 0; then :
23564 { $as_echo "$as_me:$LINENO: result: no" >&5
23565 $as_echo "no" >&6; }
23569 { $as_echo "$as_me:$LINENO: result: yes" >&5
23570 $as_echo "yes" >&6; }
23572 cat >>confdefs.h
<<\_ACEOF
23573 #define HAVE_D_SET_D_OP 1
23582 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
23583 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
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/dcache.h>
23596 int revalidate (struct dentry *dentry,
23597 struct nameidata *nidata) { return 0; }
23599 static const struct dentry_operations
23600 dops __attribute__ ((unused)) = {
23601 .d_revalidate = revalidate,
23617 cat - <<_ACEOF >conftest.h
23622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23623 echo "obj-m := conftest.o" >build
/Makefile
23625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628 (eval $ac_try) 2>&5
23630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633 (eval $ac_try) 2>&5
23635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23638 { $as_echo "$as_me:$LINENO: result: yes" >&5
23639 $as_echo "yes" >&6; }
23641 cat >>confdefs.h
<<\_ACEOF
23642 #define HAVE_D_REVALIDATE_NAMEIDATA 1
23647 $as_echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.
$ac_ext >&5
23650 { $as_echo "$as_me:$LINENO: result: no" >&5
23651 $as_echo "no" >&6; }
23662 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
23663 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
23666 cat confdefs.h
- <<_ACEOF >conftest.c
23669 cat confdefs.h
>>conftest.
$ac_ext
23670 cat >>conftest.
$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23674 #include <linux/dcache.h>
23676 const struct dentry_operations test_d_op = {
23677 .d_revalidate = NULL,
23684 struct dentry d __attribute__ ((unused));
23686 d.d_op = &test_d_op;
23696 cat - <<_ACEOF >conftest.h
23701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23702 echo "obj-m := conftest.o" >build
/Makefile
23704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23705 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23717 { $as_echo "$as_me:$LINENO: result: yes" >&5
23718 $as_echo "yes" >&6; }
23720 cat >>confdefs.h
<<\_ACEOF
23721 #define HAVE_CONST_DENTRY_OPERATIONS 1
23726 $as_echo "$as_me: failed program was:" >&5
23727 sed 's/^/| /' conftest.
$ac_ext >&5
23729 { $as_echo "$as_me:$LINENO: result: no" >&5
23730 $as_echo "no" >&6; }
23740 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
23741 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23745 cat confdefs.h
- <<_ACEOF >conftest.c
23748 cat confdefs.h
>>conftest.
$ac_ext
23749 cat >>conftest.
$ac_ext <<_ACEOF
23750 /* end confdefs.h. */
23753 #include <linux/mm.h>
23759 truncate_setsize(NULL, 0);
23769 cat - <<_ACEOF >conftest.h
23774 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23775 echo "obj-m := conftest.o" >build
/Makefile
23777 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23778 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23791 $as_echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.
$ac_ext >&5
23801 if test $rc -ne 0; then :
23803 { $as_echo "$as_me:$LINENO: result: no" >&5
23804 $as_echo "no" >&6; }
23807 if test "x$enable_linux_builtin" != xyes
; then
23809 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23810 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23812 if test $rc -ne 0; then
23814 for file in mm
/truncate.c
; do
23815 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
23816 "$LINUX/$file" 2>/dev
/null
23818 if test $rc -eq 0; then
23823 if test $export -eq 0; then :
23833 if test $rc -ne 0; then :
23835 { $as_echo "$as_me:$LINENO: result: no" >&5
23836 $as_echo "no" >&6; }
23840 { $as_echo "$as_me:$LINENO: result: yes" >&5
23841 $as_echo "yes" >&6; }
23843 cat >>confdefs.h
<<\_ACEOF
23844 #define HAVE_TRUNCATE_SETSIZE 1
23853 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
23854 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&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/security.h>
23871 struct inode *ip __attribute__ ((unused)) = NULL;
23872 struct inode *dip __attribute__ ((unused)) = NULL;
23873 const struct qstr *str __attribute__ ((unused)) = NULL;
23874 char *name __attribute__ ((unused)) = NULL;
23875 void *value __attribute__ ((unused)) = NULL;
23876 size_t len __attribute__ ((unused)) = 0;
23878 security_inode_init_security(ip, dip, str, &name, &value, &len);
23888 cat - <<_ACEOF >conftest.h
23893 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23894 echo "obj-m := conftest.o" >build
/Makefile
23896 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23897 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23909 { $as_echo "$as_me:$LINENO: result: yes" >&5
23910 $as_echo "yes" >&6; }
23912 cat >>confdefs.h
<<\_ACEOF
23913 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23918 $as_echo "$as_me: failed program was:" >&5
23919 sed 's/^/| /' conftest.
$ac_ext >&5
23921 { $as_echo "$as_me:$LINENO: result: no" >&5
23922 $as_echo "no" >&6; }
23933 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
23934 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23937 cat confdefs.h
- <<_ACEOF >conftest.c
23940 cat confdefs.h
>>conftest.
$ac_ext
23941 cat >>conftest.
$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23945 #include <linux/security.h>
23951 struct inode *ip __attribute__ ((unused)) = NULL;
23952 struct inode *dip __attribute__ ((unused)) = NULL;
23953 const struct qstr *str __attribute__ ((unused)) = NULL;
23954 initxattrs func __attribute__ ((unused)) = NULL;
23956 security_inode_init_security(ip, dip, str, func, NULL);
23966 cat - <<_ACEOF >conftest.h
23971 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23972 echo "obj-m := conftest.o" >build
/Makefile
23974 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23975 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23982 (eval $ac_try) 2>&5
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); }; }; then
23987 { $as_echo "$as_me:$LINENO: result: yes" >&5
23988 $as_echo "yes" >&6; }
23990 cat >>confdefs.h
<<\_ACEOF
23991 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23996 $as_echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.
$ac_ext >&5
23999 { $as_echo "$as_me:$LINENO: result: no" >&5
24000 $as_echo "no" >&6; }
24010 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
24011 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
24015 cat confdefs.h
- <<_ACEOF >conftest.c
24018 cat confdefs.h
>>conftest.
$ac_ext
24019 cat >>conftest.
$ac_ext <<_ACEOF
24020 /* end confdefs.h. */
24023 #include <linux/fs.h>
24029 mount_nodev(NULL, 0, NULL, NULL);
24039 cat - <<_ACEOF >conftest.h
24044 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24045 echo "obj-m := conftest.o" >build
/Makefile
24047 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24048 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24055 (eval $ac_try) 2>&5
24057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); }; }; then
24061 $as_echo "$as_me: failed program was:" >&5
24062 sed 's/^/| /' conftest.
$ac_ext >&5
24071 if test $rc -ne 0; then :
24073 { $as_echo "$as_me:$LINENO: result: no" >&5
24074 $as_echo "no" >&6; }
24077 if test "x$enable_linux_builtin" != xyes
; then
24079 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
24080 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24082 if test $rc -ne 0; then
24084 for file in fs
/super.c
; do
24085 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
24086 "$LINUX/$file" 2>/dev
/null
24088 if test $rc -eq 0; then
24093 if test $export -eq 0; then :
24103 if test $rc -ne 0; then :
24105 { $as_echo "$as_me:$LINENO: result: no" >&5
24106 $as_echo "no" >&6; }
24110 { $as_echo "$as_me:$LINENO: result: yes" >&5
24111 $as_echo "yes" >&6; }
24113 cat >>confdefs.h
<<\_ACEOF
24114 #define HAVE_MOUNT_NODEV 1
24123 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
24124 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
24127 cat confdefs.h
- <<_ACEOF >conftest.c
24130 cat confdefs.h
>>conftest.
$ac_ext
24131 cat >>conftest.
$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24135 #include <linux/fs.h>
24137 int shrink(struct shrinker *s, struct shrink_control *sc)
24140 static const struct super_block
24141 sb __attribute__ ((unused)) = {
24142 .s_shrink.shrink = shrink,
24143 .s_shrink.seeks = DEFAULT_SEEKS,
24144 .s_shrink.batch = 0,
24160 cat - <<_ACEOF >conftest.h
24165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24166 echo "obj-m := conftest.o" >build
/Makefile
24168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24181 { $as_echo "$as_me:$LINENO: result: yes" >&5
24182 $as_echo "yes" >&6; }
24184 cat >>confdefs.h
<<\_ACEOF
24185 #define HAVE_SHRINK 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; }
24206 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
24207 $as_echo_n "checking whether shrink_control has nid... " >&6; }
24210 cat confdefs.h
- <<_ACEOF >conftest.c
24213 cat confdefs.h
>>conftest.
$ac_ext
24214 cat >>conftest.
$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24218 #include <linux/fs.h>
24224 struct shrink_control sc __attribute__ ((unused));
24225 unsigned long scnidsize __attribute__ ((unused)) =
24236 cat - <<_ACEOF >conftest.h
24241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24242 echo "obj-m := conftest.o" >build
/Makefile
24244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
24257 { $as_echo "$as_me:$LINENO: result: yes" >&5
24258 $as_echo "yes" >&6; }
24260 cat >>confdefs.h
<<\_ACEOF
24261 #define SHRINK_CONTROL_HAS_NID 1
24266 $as_echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.
$ac_ext >&5
24269 { $as_echo "$as_me:$LINENO: result: no" >&5
24270 $as_echo "no" >&6; }
24281 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
24282 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
24285 cat confdefs.h
- <<_ACEOF >conftest.c
24288 cat confdefs.h
>>conftest.
$ac_ext
24289 cat >>conftest.
$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24293 #include <linux/fs.h>
24299 struct super_block sb __attribute__ ((unused));
24301 INIT_LIST_HEAD(&sb.s_instances);
24311 cat - <<_ACEOF >conftest.h
24316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24317 echo "obj-m := conftest.o" >build
/Makefile
24319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322 (eval $ac_try) 2>&5
24324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24332 { $as_echo "$as_me:$LINENO: result: yes" >&5
24333 $as_echo "yes" >&6; }
24335 cat >>confdefs.h
<<\_ACEOF
24336 #define HAVE_S_INSTANCES_LIST_HEAD 1
24341 $as_echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.
$ac_ext >&5
24344 { $as_echo "$as_me:$LINENO: result: no" >&5
24345 $as_echo "no" >&6; }
24355 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
24356 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
24359 cat confdefs.h
- <<_ACEOF >conftest.c
24362 cat confdefs.h
>>conftest.
$ac_ext
24363 cat >>conftest.
$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24367 #include <linux/fs.h>
24373 struct super_block sb __attribute__ ((unused));
24384 cat - <<_ACEOF >conftest.h
24389 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24390 echo "obj-m := conftest.o" >build
/Makefile
24392 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24393 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24395 (eval $ac_try) 2>&5
24397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400 (eval $ac_try) 2>&5
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24405 { $as_echo "$as_me:$LINENO: result: yes" >&5
24406 $as_echo "yes" >&6; }
24408 cat >>confdefs.h
<<\_ACEOF
24409 #define HAVE_S_D_OP 1
24414 $as_echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.
$ac_ext >&5
24417 { $as_echo "$as_me:$LINENO: result: no" >&5
24418 $as_echo "no" >&6; }
24429 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
24430 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
24434 cat confdefs.h
- <<_ACEOF >conftest.c
24437 cat confdefs.h
>>conftest.
$ac_ext
24438 cat >>conftest.
$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24442 #include <linux/fs.h>
24443 struct super_block sb;
24449 char *name = "bdi";
24450 atomic_long_t zfs_bdi_seq;
24451 int error __attribute__((unused)) =
24452 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
24462 cat - <<_ACEOF >conftest.h
24467 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24468 echo "obj-m := conftest.o" >build
/Makefile
24470 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24471 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478 (eval $ac_try) 2>&5
24480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); }; }; then
24484 $as_echo "$as_me: failed program was:" >&5
24485 sed 's/^/| /' conftest.
$ac_ext >&5
24494 if test $rc -ne 0; then :
24496 { $as_echo "$as_me:$LINENO: result: no" >&5
24497 $as_echo "no" >&6; }
24498 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
24499 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
24503 cat confdefs.h
- <<_ACEOF >conftest.c
24506 cat confdefs.h
>>conftest.
$ac_ext
24507 cat >>conftest.
$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24511 #include <linux/backing-dev.h>
24512 struct backing_dev_info bdi;
24518 char *name = "bdi";
24519 int error __attribute__((unused)) =
24520 bdi_setup_and_register(&bdi, name);
24530 cat - <<_ACEOF >conftest.h
24535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24536 echo "obj-m := conftest.o" >build
/Makefile
24538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546 (eval $ac_try) 2>&5
24548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); }; }; then
24552 $as_echo "$as_me: failed program was:" >&5
24553 sed 's/^/| /' conftest.
$ac_ext >&5
24562 if test $rc -ne 0; then :
24564 { $as_echo "$as_me:$LINENO: result: no" >&5
24565 $as_echo "no" >&6; }
24566 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24567 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
24571 cat confdefs.h
- <<_ACEOF >conftest.c
24574 cat confdefs.h
>>conftest.
$ac_ext
24575 cat >>conftest.
$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24579 #include <linux/backing-dev.h>
24580 struct backing_dev_info bdi;
24586 char *name = "bdi";
24587 unsigned int cap = BDI_CAP_MAP_COPY;
24588 int error __attribute__((unused)) =
24589 bdi_setup_and_register(&bdi, name, cap);
24599 cat - <<_ACEOF >conftest.h
24604 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24605 echo "obj-m := conftest.o" >build
/Makefile
24607 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24608 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24621 $as_echo "$as_me: failed program was:" >&5
24622 sed 's/^/| /' conftest.
$ac_ext >&5
24631 if test $rc -ne 0; then :
24633 { $as_echo "$as_me:$LINENO: result: no" >&5
24634 $as_echo "no" >&6; }
24637 if test "x$enable_linux_builtin" != xyes
; then
24639 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24640 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24642 if test $rc -ne 0; then
24644 for file in mm
/backing-dev.c
; do
24645 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24646 "$LINUX/$file" 2>/dev
/null
24648 if test $rc -eq 0; then
24653 if test $export -eq 0; then :
24663 if test $rc -ne 0; then :
24665 { $as_echo "$as_me:$LINENO: result: no" >&5
24666 $as_echo "no" >&6; }
24670 { $as_echo "$as_me:$LINENO: result: yes" >&5
24671 $as_echo "yes" >&6; }
24673 cat >>confdefs.h
<<\_ACEOF
24674 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24683 if test "x$enable_linux_builtin" != xyes
; then
24685 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24686 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24688 if test $rc -ne 0; then
24690 for file in mm
/backing-dev.c
; do
24691 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24692 "$LINUX/$file" 2>/dev
/null
24694 if test $rc -eq 0; then
24699 if test $export -eq 0; then :
24709 if test $rc -ne 0; then :
24711 { $as_echo "$as_me:$LINENO: result: no" >&5
24712 $as_echo "no" >&6; }
24713 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24714 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
24718 cat confdefs.h
- <<_ACEOF >conftest.c
24721 cat confdefs.h
>>conftest.
$ac_ext
24722 cat >>conftest.
$ac_ext <<_ACEOF
24723 /* end confdefs.h. */
24726 #include <linux/backing-dev.h>
24727 struct backing_dev_info bdi;
24733 char *name = "bdi";
24734 unsigned int cap = BDI_CAP_MAP_COPY;
24735 int error __attribute__((unused)) =
24736 bdi_setup_and_register(&bdi, name, cap);
24746 cat - <<_ACEOF >conftest.h
24751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24752 echo "obj-m := conftest.o" >build
/Makefile
24754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762 (eval $ac_try) 2>&5
24764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; }; then
24768 $as_echo "$as_me: failed program was:" >&5
24769 sed 's/^/| /' conftest.
$ac_ext >&5
24778 if test $rc -ne 0; then :
24780 { $as_echo "$as_me:$LINENO: result: no" >&5
24781 $as_echo "no" >&6; }
24784 if test "x$enable_linux_builtin" != xyes
; then
24786 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24787 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24789 if test $rc -ne 0; then
24791 for file in mm
/backing-dev.c
; do
24792 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24793 "$LINUX/$file" 2>/dev
/null
24795 if test $rc -eq 0; then
24800 if test $export -eq 0; then :
24810 if test $rc -ne 0; then :
24812 { $as_echo "$as_me:$LINENO: result: no" >&5
24813 $as_echo "no" >&6; }
24817 { $as_echo "$as_me:$LINENO: result: yes" >&5
24818 $as_echo "yes" >&6; }
24820 cat >>confdefs.h
<<\_ACEOF
24821 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
24831 { $as_echo "$as_me:$LINENO: result: yes" >&5
24832 $as_echo "yes" >&6; }
24834 cat >>confdefs.h
<<\_ACEOF
24835 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
24844 if test "x$enable_linux_builtin" != xyes
; then
24846 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
24847 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24849 if test $rc -ne 0; then
24851 for file in fs
/super.c
; do
24852 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
24853 "$LINUX/$file" 2>/dev
/null
24855 if test $rc -eq 0; then
24860 if test $export -eq 0; then :
24870 if test $rc -ne 0; then :
24872 { $as_echo "$as_me:$LINENO: result: no" >&5
24873 $as_echo "no" >&6; }
24874 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
24875 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
24879 cat confdefs.h
- <<_ACEOF >conftest.c
24882 cat confdefs.h
>>conftest.
$ac_ext
24883 cat >>conftest.
$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24887 #include <linux/backing-dev.h>
24888 struct backing_dev_info bdi;
24894 char *name = "bdi";
24895 int error __attribute__((unused)) =
24896 bdi_setup_and_register(&bdi, name);
24906 cat - <<_ACEOF >conftest.h
24911 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24912 echo "obj-m := conftest.o" >build
/Makefile
24914 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24915 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24917 (eval $ac_try) 2>&5
24919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24922 (eval $ac_try) 2>&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); }; }; then
24928 $as_echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.
$ac_ext >&5
24938 if test $rc -ne 0; then :
24940 { $as_echo "$as_me:$LINENO: result: no" >&5
24941 $as_echo "no" >&6; }
24942 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
24943 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
24947 cat confdefs.h
- <<_ACEOF >conftest.c
24950 cat confdefs.h
>>conftest.
$ac_ext
24951 cat >>conftest.
$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24955 #include <linux/backing-dev.h>
24956 struct backing_dev_info bdi;
24962 char *name = "bdi";
24963 unsigned int cap = BDI_CAP_MAP_COPY;
24964 int error __attribute__((unused)) =
24965 bdi_setup_and_register(&bdi, name, cap);
24975 cat - <<_ACEOF >conftest.h
24980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24981 echo "obj-m := conftest.o" >build
/Makefile
24983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24986 (eval $ac_try) 2>&5
24988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24997 $as_echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.
$ac_ext >&5
25007 if test $rc -ne 0; then :
25009 { $as_echo "$as_me:$LINENO: result: no" >&5
25010 $as_echo "no" >&6; }
25013 if test "x$enable_linux_builtin" != xyes
; then
25015 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25016 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25018 if test $rc -ne 0; then
25020 for file in mm
/backing-dev.c
; do
25021 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25022 "$LINUX/$file" 2>/dev
/null
25024 if test $rc -eq 0; then
25029 if test $export -eq 0; then :
25039 if test $rc -ne 0; then :
25041 { $as_echo "$as_me:$LINENO: result: no" >&5
25042 $as_echo "no" >&6; }
25046 { $as_echo "$as_me:$LINENO: result: yes" >&5
25047 $as_echo "yes" >&6; }
25049 cat >>confdefs.h
<<\_ACEOF
25050 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25059 if test "x$enable_linux_builtin" != xyes
; then
25061 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25062 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25064 if test $rc -ne 0; then
25066 for file in mm
/backing-dev.c
; do
25067 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25068 "$LINUX/$file" 2>/dev
/null
25070 if test $rc -eq 0; then
25075 if test $export -eq 0; then :
25085 if test $rc -ne 0; then :
25087 { $as_echo "$as_me:$LINENO: result: no" >&5
25088 $as_echo "no" >&6; }
25089 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
25090 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
25094 cat confdefs.h
- <<_ACEOF >conftest.c
25097 cat confdefs.h
>>conftest.
$ac_ext
25098 cat >>conftest.
$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25102 #include <linux/backing-dev.h>
25103 struct backing_dev_info bdi;
25109 char *name = "bdi";
25110 unsigned int cap = BDI_CAP_MAP_COPY;
25111 int error __attribute__((unused)) =
25112 bdi_setup_and_register(&bdi, name, cap);
25122 cat - <<_ACEOF >conftest.h
25127 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25128 echo "obj-m := conftest.o" >build
/Makefile
25130 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25131 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138 (eval $ac_try) 2>&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); }; }; then
25144 $as_echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.
$ac_ext >&5
25154 if test $rc -ne 0; then :
25156 { $as_echo "$as_me:$LINENO: result: no" >&5
25157 $as_echo "no" >&6; }
25160 if test "x$enable_linux_builtin" != xyes
; then
25162 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
25163 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25165 if test $rc -ne 0; then
25167 for file in mm
/backing-dev.c
; do
25168 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
25169 "$LINUX/$file" 2>/dev
/null
25171 if test $rc -eq 0; then
25176 if test $export -eq 0; then :
25186 if test $rc -ne 0; then :
25188 { $as_echo "$as_me:$LINENO: result: no" >&5
25189 $as_echo "no" >&6; }
25193 { $as_echo "$as_me:$LINENO: result: yes" >&5
25194 $as_echo "yes" >&6; }
25196 cat >>confdefs.h
<<\_ACEOF
25197 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
25207 { $as_echo "$as_me:$LINENO: result: yes" >&5
25208 $as_echo "yes" >&6; }
25210 cat >>confdefs.h
<<\_ACEOF
25211 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
25221 { $as_echo "$as_me:$LINENO: result: yes" >&5
25222 $as_echo "yes" >&6; }
25224 cat >>confdefs.h
<<\_ACEOF
25225 #define HAVE_SUPER_SETUP_BDI_NAME 1
25234 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
25235 $as_echo_n "checking whether set_nlink() is available... " >&6; }
25238 cat confdefs.h
- <<_ACEOF >conftest.c
25241 cat confdefs.h
>>conftest.
$ac_ext
25242 cat >>conftest.
$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25246 #include <linux/fs.h>
25253 unsigned int link = 0;
25254 (void) set_nlink(&node, link);
25264 cat - <<_ACEOF >conftest.h
25269 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25270 echo "obj-m := conftest.o" >build
/Makefile
25272 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25273 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; }; then
25285 { $as_echo "$as_me:$LINENO: result: yes" >&5
25286 $as_echo "yes" >&6; }
25288 cat >>confdefs.h
<<\_ACEOF
25289 #define HAVE_SET_NLINK 1
25294 $as_echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.
$ac_ext >&5
25297 { $as_echo "$as_me:$LINENO: result: no" >&5
25298 $as_echo "no" >&6; }
25309 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
25310 $as_echo_n "checking whether elevator_change() is available... " >&6; }
25311 tmp_flags
="$EXTRA_KCFLAGS"
25312 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25315 cat confdefs.h
- <<_ACEOF >conftest.c
25318 cat confdefs.h
>>conftest.
$ac_ext
25319 cat >>conftest.
$ac_ext <<_ACEOF
25320 /* end confdefs.h. */
25323 #include <linux/blkdev.h>
25324 #include <linux/elevator.h>
25331 struct request_queue *q = NULL;
25332 char *elevator = NULL;
25333 ret = elevator_change(q, elevator);
25343 cat - <<_ACEOF >conftest.h
25348 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25349 echo "obj-m := conftest.o" >build
/Makefile
25351 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25352 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25354 (eval $ac_try) 2>&5
25356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25364 { $as_echo "$as_me:$LINENO: result: yes" >&5
25365 $as_echo "yes" >&6; }
25367 cat >>confdefs.h
<<\_ACEOF
25368 #define HAVE_ELEVATOR_CHANGE 1
25373 $as_echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.
$ac_ext >&5
25376 { $as_echo "$as_me:$LINENO: result: no" >&5
25377 $as_echo "no" >&6; }
25386 EXTRA_KCFLAGS
="$tmp_flags"
25388 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
25389 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
25392 cat confdefs.h
- <<_ACEOF >conftest.c
25395 cat confdefs.h
>>conftest.
$ac_ext
25396 cat >>conftest.
$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25400 #include <linux/fs.h>
25406 struct file_system_type *type = NULL;
25407 int (*test)(struct super_block *,void *) = NULL;
25408 int (*set)(struct super_block *,void *) = NULL;
25411 (void) sget(type, test, set, flags, data);
25421 cat - <<_ACEOF >conftest.h
25426 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25427 echo "obj-m := conftest.o" >build
/Makefile
25429 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25430 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25442 { $as_echo "$as_me:$LINENO: result: yes" >&5
25443 $as_echo "yes" >&6; }
25445 cat >>confdefs.h
<<\_ACEOF
25446 #define HAVE_5ARG_SGET 1
25451 $as_echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.
$ac_ext >&5
25454 { $as_echo "$as_me:$LINENO: result: no" >&5
25455 $as_echo "no" >&6; }
25465 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
25466 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
25470 cat confdefs.h
- <<_ACEOF >conftest.c
25473 cat confdefs.h
>>conftest.
$ac_ext
25474 cat >>conftest.
$ac_ext <<_ACEOF
25475 /* end confdefs.h. */
25478 #include <linux/fs.h>
25484 struct file *fp __attribute__ ((unused)) = NULL;
25485 struct inode *ip __attribute__ ((unused)) = NULL;
25486 loff_t offset __attribute__ ((unused)) = 0;
25487 loff_t maxsize __attribute__ ((unused)) = 0;
25489 lseek_execute(fp, ip, offset, maxsize);
25499 cat - <<_ACEOF >conftest.h
25504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25505 echo "obj-m := conftest.o" >build
/Makefile
25507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510 (eval $ac_try) 2>&5
25512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25515 (eval $ac_try) 2>&5
25517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); }; }; then
25521 $as_echo "$as_me: failed program was:" >&5
25522 sed 's/^/| /' conftest.
$ac_ext >&5
25531 if test $rc -ne 0; then :
25533 { $as_echo "$as_me:$LINENO: result: no" >&5
25534 $as_echo "no" >&6; }
25537 if test "x$enable_linux_builtin" != xyes
; then
25539 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
25540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25542 if test $rc -ne 0; then
25544 for file in fs
/read_write.c
; do
25545 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
25546 "$LINUX/$file" 2>/dev
/null
25548 if test $rc -eq 0; then
25553 if test $export -eq 0; then :
25563 if test $rc -ne 0; then :
25565 { $as_echo "$as_me:$LINENO: result: no" >&5
25566 $as_echo "no" >&6; }
25570 { $as_echo "$as_me:$LINENO: result: yes" >&5
25571 $as_echo "yes" >&6; }
25573 cat >>confdefs.h
<<\_ACEOF
25574 #define HAVE_LSEEK_EXECUTE 1
25583 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
25584 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
25587 cat confdefs.h
- <<_ACEOF >conftest.c
25590 cat confdefs.h
>>conftest.
$ac_ext
25591 cat >>conftest.
$ac_ext <<_ACEOF
25592 /* end confdefs.h. */
25595 #include <linux/fs.h>
25596 int iterate(struct file *filp, struct dir_context * context)
25599 static const struct file_operations fops
25600 __attribute__ ((unused)) = {
25601 .iterate_shared = iterate,
25617 cat - <<_ACEOF >conftest.h
25622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25623 echo "obj-m := conftest.o" >build
/Makefile
25625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25633 (eval $ac_try) 2>&5
25635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }; }; then
25638 { $as_echo "$as_me:$LINENO: result: yes" >&5
25639 $as_echo "yes" >&6; }
25641 cat >>confdefs.h
<<\_ACEOF
25642 #define HAVE_VFS_ITERATE_SHARED 1
25647 $as_echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.
$ac_ext >&5
25650 { $as_echo "$as_me:$LINENO: result: no" >&5
25651 $as_echo "no" >&6; }
25653 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
25654 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
25657 cat confdefs.h
- <<_ACEOF >conftest.c
25660 cat confdefs.h
>>conftest.
$ac_ext
25661 cat >>conftest.
$ac_ext <<_ACEOF
25662 /* end confdefs.h. */
25665 #include <linux/fs.h>
25666 int iterate(struct file *filp, struct dir_context * context)
25669 static const struct file_operations fops
25670 __attribute__ ((unused)) = {
25671 .iterate = iterate,
25687 cat - <<_ACEOF >conftest.h
25692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25693 echo "obj-m := conftest.o" >build
/Makefile
25695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25708 { $as_echo "$as_me:$LINENO: result: yes" >&5
25709 $as_echo "yes" >&6; }
25711 cat >>confdefs.h
<<\_ACEOF
25712 #define HAVE_VFS_ITERATE 1
25717 $as_echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.
$ac_ext >&5
25720 { $as_echo "$as_me:$LINENO: result: no" >&5
25721 $as_echo "no" >&6; }
25723 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
25724 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
25727 cat confdefs.h
- <<_ACEOF >conftest.c
25730 cat confdefs.h
>>conftest.
$ac_ext
25731 cat >>conftest.
$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25735 #include <linux/fs.h>
25736 int readdir(struct file *filp, void *entry, filldir_t func)
25739 static const struct file_operations fops
25740 __attribute__ ((unused)) = {
25741 .readdir = readdir,
25757 cat - <<_ACEOF >conftest.h
25762 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25763 echo "obj-m := conftest.o" >build
/Makefile
25765 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25766 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25768 (eval $ac_try) 2>&5
25770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773 (eval $ac_try) 2>&5
25775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); }; }; then
25778 { $as_echo "$as_me:$LINENO: result: yes" >&5
25779 $as_echo "yes" >&6; }
25781 cat >>confdefs.h
<<\_ACEOF
25782 #define HAVE_VFS_READDIR 1
25787 $as_echo "$as_me: failed program was:" >&5
25788 sed 's/^/| /' conftest.
$ac_ext >&5
25790 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
25791 $as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
25792 { (exit 1); exit 1; }; }
25818 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
25819 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
25822 cat confdefs.h
- <<_ACEOF >conftest.c
25825 cat confdefs.h
>>conftest.
$ac_ext
25826 cat >>conftest.
$ac_ext <<_ACEOF
25827 /* end confdefs.h. */
25830 #include <linux/fs.h>
25832 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
25834 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
25837 static const struct file_operations
25838 fops __attribute__ ((unused)) = {
25839 .read_iter = test_read,
25840 .write_iter = test_write,
25856 cat - <<_ACEOF >conftest.h
25861 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25862 echo "obj-m := conftest.o" >build
/Makefile
25864 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25865 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25877 { $as_echo "$as_me:$LINENO: result: yes" >&5
25878 $as_echo "yes" >&6; }
25880 cat >>confdefs.h
<<\_ACEOF
25881 #define HAVE_VFS_RW_ITERATE 1
25885 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
25886 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
25889 cat confdefs.h
- <<_ACEOF >conftest.c
25892 cat confdefs.h
>>conftest.
$ac_ext
25893 cat >>conftest.
$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25897 #include <linux/fs.h>
25903 ssize_t ret __attribute__ ((unused));
25904 struct file *filp = NULL;
25905 char __user *rbuf = NULL;
25906 const char __user *wbuf = NULL;
25910 ret = new_sync_read(filp, rbuf, len, &ppos);
25911 ret = new_sync_write(filp, wbuf, len, &ppos);
25921 cat - <<_ACEOF >conftest.h
25926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25927 echo "obj-m := conftest.o" >build
/Makefile
25929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25942 { $as_echo "$as_me:$LINENO: result: yes" >&5
25943 $as_echo "yes" >&6; }
25945 cat >>confdefs.h
<<\_ACEOF
25946 #define HAVE_NEW_SYNC_READ 1
25951 $as_echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.
$ac_ext >&5
25954 { $as_echo "$as_me:$LINENO: result: no" >&5
25955 $as_echo "no" >&6; }
25967 $as_echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.
$ac_ext >&5
25970 { $as_echo "$as_me:$LINENO: result: no" >&5
25971 $as_echo "no" >&6; }
25981 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
25982 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
25985 cat confdefs.h
- <<_ACEOF >conftest.c
25988 cat confdefs.h
>>conftest.
$ac_ext
25989 cat >>conftest.
$ac_ext <<_ACEOF
25990 /* end confdefs.h. */
25993 #include <linux/fs.h>
26000 struct kiocb *iocb = NULL;
26001 struct iov_iter *iov = NULL;
26002 generic_write_checks(iocb, iov);
26012 cat - <<_ACEOF >conftest.h
26017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26018 echo "obj-m := conftest.o" >build
/Makefile
26020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028 (eval $ac_try) 2>&5
26030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); }; }; then
26033 { $as_echo "$as_me:$LINENO: result: yes" >&5
26034 $as_echo "yes" >&6; }
26036 cat >>confdefs.h
<<\_ACEOF
26037 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
26042 $as_echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.
$ac_ext >&5
26045 { $as_echo "$as_me:$LINENO: result: no" >&5
26046 $as_echo "no" >&6; }
26057 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
26058 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
26061 cat confdefs.h
- <<_ACEOF >conftest.c
26064 cat confdefs.h
>>conftest.
$ac_ext
26065 cat >>conftest.
$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26069 #include <linux/pagemap.h>
26076 kmap_atomic(&page);
26086 cat - <<_ACEOF >conftest.h
26091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26092 echo "obj-m := conftest.o" >build
/Makefile
26094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26095 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26097 (eval $ac_try) 2>&5
26099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26107 { $as_echo "$as_me:$LINENO: result: yes" >&5
26108 $as_echo "yes" >&6; }
26110 cat >>confdefs.h
<<\_ACEOF
26111 #define HAVE_1ARG_KMAP_ATOMIC 1
26116 $as_echo "$as_me: failed program was:" >&5
26117 sed 's/^/| /' conftest.
$ac_ext >&5
26119 { $as_echo "$as_me:$LINENO: result: no" >&5
26120 $as_echo "no" >&6; }
26131 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
26132 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
26135 cat confdefs.h
- <<_ACEOF >conftest.c
26138 cat confdefs.h
>>conftest.
$ac_ext
26139 cat >>conftest.
$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26143 #include <linux/namei.h>
26149 struct path *p = NULL;
26150 follow_down_one(p);
26160 cat - <<_ACEOF >conftest.h
26165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26166 echo "obj-m := conftest.o" >build
/Makefile
26168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171 (eval $ac_try) 2>&5
26173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26176 (eval $ac_try) 2>&5
26178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); }; }; then
26181 { $as_echo "$as_me:$LINENO: result: yes" >&5
26182 $as_echo "yes" >&6; }
26184 cat >>confdefs.h
<<\_ACEOF
26185 #define HAVE_FOLLOW_DOWN_ONE 1
26190 $as_echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.
$ac_ext >&5
26193 { $as_echo "$as_me:$LINENO: result: no" >&5
26194 $as_echo "no" >&6; }
26205 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
26206 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
26209 cat confdefs.h
- <<_ACEOF >conftest.c
26212 cat confdefs.h
>>conftest.
$ac_ext
26213 cat >>conftest.
$ac_ext <<_ACEOF
26214 /* end confdefs.h. */
26217 #include <linux/blkdev.h>
26219 int make_request(struct request_queue *q, struct bio *bio)
26228 blk_queue_make_request(NULL, &make_request);
26238 cat - <<_ACEOF >conftest.h
26243 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26244 echo "obj-m := conftest.o" >build
/Makefile
26246 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26247 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254 (eval $ac_try) 2>&5
26256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); }; }; then
26259 { $as_echo "$as_me:$LINENO: result: yes" >&5
26260 $as_echo "yes" >&6; }
26262 cat >>confdefs.h
<<\_ACEOF
26263 #define MAKE_REQUEST_FN_RET int
26267 cat >>confdefs.h
<<\_ACEOF
26268 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
26273 $as_echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.
$ac_ext >&5
26276 { $as_echo "$as_me:$LINENO: result: no" >&5
26277 $as_echo "no" >&6; }
26278 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
26279 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
26282 cat confdefs.h
- <<_ACEOF >conftest.c
26285 cat confdefs.h
>>conftest.
$ac_ext
26286 cat >>conftest.
$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26290 #include <linux/blkdev.h>
26292 void make_request(struct request_queue *q, struct bio *bio)
26301 blk_queue_make_request(NULL, &make_request);
26311 cat - <<_ACEOF >conftest.h
26316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26317 echo "obj-m := conftest.o" >build
/Makefile
26319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26332 { $as_echo "$as_me:$LINENO: result: yes" >&5
26333 $as_echo "yes" >&6; }
26335 cat >>confdefs.h
<<\_ACEOF
26336 #define MAKE_REQUEST_FN_RET void
26341 $as_echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.
$ac_ext >&5
26344 { $as_echo "$as_me:$LINENO: result: no" >&5
26345 $as_echo "no" >&6; }
26346 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
26347 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
26350 cat confdefs.h
- <<_ACEOF >conftest.c
26353 cat confdefs.h
>>conftest.
$ac_ext
26354 cat >>conftest.
$ac_ext <<_ACEOF
26355 /* end confdefs.h. */
26358 #include <linux/blkdev.h>
26360 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
26362 return (BLK_QC_T_NONE);
26369 blk_queue_make_request(NULL, &make_request);
26379 cat - <<_ACEOF >conftest.h
26384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26385 echo "obj-m := conftest.o" >build
/Makefile
26387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 (eval $ac_try) 2>&5
26397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); }; }; then
26400 { $as_echo "$as_me:$LINENO: result: yes" >&5
26401 $as_echo "yes" >&6; }
26403 cat >>confdefs.h
<<\_ACEOF
26404 #define MAKE_REQUEST_FN_RET blk_qc_t
26408 cat >>confdefs.h
<<\_ACEOF
26409 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
26414 $as_echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.
$ac_ext >&5
26417 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
26418 https://github.com/zfsonlinux/zfs/issues/new" >&5
26419 $as_echo "$as_me: error: no - Please file a bug report at
26420 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
26421 { (exit 1); exit 1; }; }
26448 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
26449 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
26453 cat confdefs.h
- <<_ACEOF >conftest.c
26456 cat confdefs.h
>>conftest.
$ac_ext
26457 cat >>conftest.
$ac_ext <<_ACEOF
26458 /* end confdefs.h. */
26461 #include <linux/bio.h>
26463 void (*generic_start_io_acct_f)(int, unsigned long,
26464 struct hd_struct *) = &generic_start_io_acct;
26465 void (*generic_end_io_acct_f)(int, struct hd_struct *,
26466 unsigned long) = &generic_end_io_acct;
26472 generic_start_io_acct(0, 0, NULL);
26473 generic_end_io_acct(0, NULL, 0);
26483 cat - <<_ACEOF >conftest.h
26488 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26489 echo "obj-m := conftest.o" >build
/Makefile
26491 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26492 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26499 (eval $ac_try) 2>&5
26501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); }; }; then
26505 $as_echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.
$ac_ext >&5
26515 if test $rc -ne 0; then :
26517 { $as_echo "$as_me:$LINENO: result: no" >&5
26518 $as_echo "no" >&6; }
26521 if test "x$enable_linux_builtin" != xyes
; then
26523 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26524 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26526 if test $rc -ne 0; then
26528 for file in block
/bio.c
; do
26529 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26530 "$LINUX/$file" 2>/dev
/null
26532 if test $rc -eq 0; then
26537 if test $export -eq 0; then :
26547 if test $rc -ne 0; then :
26549 { $as_echo "$as_me:$LINENO: result: no" >&5
26550 $as_echo "no" >&6; }
26554 { $as_echo "$as_me:$LINENO: result: yes" >&5
26555 $as_echo "yes" >&6; }
26557 cat >>confdefs.h
<<\_ACEOF
26558 #define HAVE_GENERIC_IO_ACCT_3ARG 1
26567 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
26568 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
26572 cat confdefs.h
- <<_ACEOF >conftest.c
26575 cat confdefs.h
>>conftest.
$ac_ext
26576 cat >>conftest.
$ac_ext <<_ACEOF
26577 /* end confdefs.h. */
26580 #include <linux/bio.h>
26582 void (*generic_start_io_acct_f)(struct request_queue *, int,
26583 unsigned long, struct hd_struct *) = &generic_start_io_acct;
26584 void (*generic_end_io_acct_f)(struct request_queue *, int,
26585 struct hd_struct *, unsigned long) = &generic_end_io_acct;
26591 generic_start_io_acct(NULL, 0, 0, NULL);
26592 generic_end_io_acct(NULL, 0, NULL, 0);
26602 cat - <<_ACEOF >conftest.h
26607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26608 echo "obj-m := conftest.o" >build
/Makefile
26610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26613 (eval $ac_try) 2>&5
26615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26618 (eval $ac_try) 2>&5
26620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); }; }; then
26624 $as_echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.
$ac_ext >&5
26634 if test $rc -ne 0; then :
26636 { $as_echo "$as_me:$LINENO: result: no" >&5
26637 $as_echo "no" >&6; }
26640 if test "x$enable_linux_builtin" != xyes
; then
26642 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
26643 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26645 if test $rc -ne 0; then
26647 for file in block
/bio.c
; do
26648 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
26649 "$LINUX/$file" 2>/dev
/null
26651 if test $rc -eq 0; then
26656 if test $export -eq 0; then :
26666 if test $rc -ne 0; then :
26668 { $as_echo "$as_me:$LINENO: result: no" >&5
26669 $as_echo "no" >&6; }
26673 { $as_echo "$as_me:$LINENO: result: yes" >&5
26674 $as_echo "yes" >&6; }
26676 cat >>confdefs.h
<<\_ACEOF
26677 #define HAVE_GENERIC_IO_ACCT_4ARG 1
26686 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
26687 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
26690 cat confdefs.h
- <<_ACEOF >conftest.c
26693 cat confdefs.h
>>conftest.
$ac_ext
26694 cat >>conftest.
$ac_ext <<_ACEOF
26695 /* end confdefs.h. */
26698 #include <linux/kernel.h>
26699 #include <asm/fpu/api.h>
26705 __kernel_fpu_begin();
26715 cat - <<_ACEOF >conftest.h
26720 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26721 echo "obj-m := conftest.o" >build
/Makefile
26723 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26724 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726 (eval $ac_try) 2>&5
26728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26736 { $as_echo "$as_me:$LINENO: result: yes" >&5
26737 $as_echo "yes" >&6; }
26739 cat >>confdefs.h
<<\_ACEOF
26740 #define HAVE_FPU_API_H 1
26745 $as_echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.
$ac_ext >&5
26748 { $as_echo "$as_me:$LINENO: result: no" >&5
26749 $as_echo "no" >&6; }
26760 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
26761 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
26764 cat confdefs.h
- <<_ACEOF >conftest.c
26767 cat confdefs.h
>>conftest.
$ac_ext
26768 cat >>conftest.
$ac_ext <<_ACEOF
26769 /* end confdefs.h. */
26772 #include <linux/fs.h>
26778 struct inode *ip = NULL;
26779 (void) i_uid_read(ip);
26789 cat - <<_ACEOF >conftest.h
26794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26795 echo "obj-m := conftest.o" >build
/Makefile
26797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800 (eval $ac_try) 2>&5
26802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805 (eval $ac_try) 2>&5
26807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808 (exit $ac_status); }; }; then
26810 { $as_echo "$as_me:$LINENO: result: yes" >&5
26811 $as_echo "yes" >&6; }
26813 cat >>confdefs.h
<<\_ACEOF
26814 #define HAVE_KUID_HELPERS 1
26819 $as_echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.
$ac_ext >&5
26822 { $as_echo "$as_me:$LINENO: result: no" >&5
26823 $as_echo "no" >&6; }
26834 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
26835 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
26838 cat confdefs.h
- <<_ACEOF >conftest.c
26841 cat confdefs.h
>>conftest.
$ac_ext
26842 cat >>conftest.
$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26846 #include <linux/module.h>
26847 #include <linux/moduleparam.h>
26849 int param_get(char *b, const struct kernel_param *kp)
26854 int param_set(const char *b, const struct kernel_param *kp)
26859 module_param_call(p, param_set, param_get, NULL, 0644);
26874 cat - <<_ACEOF >conftest.h
26879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26880 echo "obj-m := conftest.o" >build
/Makefile
26882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885 (eval $ac_try) 2>&5
26887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26895 { $as_echo "$as_me:$LINENO: result: yes" >&5
26896 $as_echo "yes" >&6; }
26898 cat >>confdefs.h
<<\_ACEOF
26899 #define MODULE_PARAM_CALL_CONST 1
26904 $as_echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.
$ac_ext >&5
26907 { $as_echo "$as_me:$LINENO: result: no" >&5
26908 $as_echo "no" >&6; }
26919 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
26920 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
26923 cat confdefs.h
- <<_ACEOF >conftest.c
26926 cat confdefs.h
>>conftest.
$ac_ext
26927 cat >>conftest.
$ac_ext <<_ACEOF
26928 /* end confdefs.h. */
26931 #include <linux/fs.h>
26932 int rename_fn(struct inode *sip, struct dentry *sdp,
26933 struct inode *tip, struct dentry *tdp,
26934 unsigned int flags) { return 0; }
26936 static const struct inode_operations
26937 iops __attribute__ ((unused)) = {
26938 .rename = rename_fn,
26954 cat - <<_ACEOF >conftest.h
26959 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26960 echo "obj-m := conftest.o" >build
/Makefile
26962 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26963 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965 (eval $ac_try) 2>&5
26967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26975 { $as_echo "$as_me:$LINENO: result: yes" >&5
26976 $as_echo "yes" >&6; }
26978 cat >>confdefs.h
<<\_ACEOF
26979 #define HAVE_RENAME_WANTS_FLAGS 1
26984 $as_echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.
$ac_ext >&5
26987 { $as_echo "$as_me:$LINENO: result: no" >&5
26988 $as_echo "no" >&6; }
26999 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
27000 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
27003 cat confdefs.h
- <<_ACEOF >conftest.c
27006 cat confdefs.h
>>conftest.
$ac_ext
27007 cat >>conftest.
$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27011 #include <linux/fs.h>
27012 #include <linux/xattr.h>
27014 static const struct inode_operations
27015 iops __attribute__ ((unused)) = {
27016 .setxattr = generic_setxattr
27032 cat - <<_ACEOF >conftest.h
27037 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27038 echo "obj-m := conftest.o" >build
/Makefile
27040 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27041 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27048 (eval $ac_try) 2>&5
27050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27053 { $as_echo "$as_me:$LINENO: result: yes" >&5
27054 $as_echo "yes" >&6; }
27056 cat >>confdefs.h
<<\_ACEOF
27057 #define HAVE_GENERIC_SETXATTR 1
27062 $as_echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.
$ac_ext >&5
27065 { $as_echo "$as_me:$LINENO: result: no" >&5
27066 $as_echo "no" >&6; }
27076 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
27077 $as_echo_n "checking whether current_time() exists... " >&6; }
27081 cat confdefs.h
- <<_ACEOF >conftest.c
27084 cat confdefs.h
>>conftest.
$ac_ext
27085 cat >>conftest.
$ac_ext <<_ACEOF
27086 /* end confdefs.h. */
27089 #include <linux/fs.h>
27096 struct timespec now __attribute__ ((unused));
27098 now = current_time(&ip);
27108 cat - <<_ACEOF >conftest.h
27113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27114 echo "obj-m := conftest.o" >build
/Makefile
27116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27119 (eval $ac_try) 2>&5
27121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; }; then
27130 $as_echo "$as_me: failed program was:" >&5
27131 sed 's/^/| /' conftest.
$ac_ext >&5
27140 if test $rc -ne 0; then :
27142 { $as_echo "$as_me:$LINENO: result: no" >&5
27143 $as_echo "no" >&6; }
27146 if test "x$enable_linux_builtin" != xyes
; then
27148 grep -q -E '[[:space:]]current_time[[:space:]]' \
27149 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27151 if test $rc -ne 0; then
27153 for file in fs
/inode.c
; do
27154 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
27155 "$LINUX/$file" 2>/dev
/null
27157 if test $rc -eq 0; then
27162 if test $export -eq 0; then :
27172 if test $rc -ne 0; then :
27174 { $as_echo "$as_me:$LINENO: result: no" >&5
27175 $as_echo "no" >&6; }
27179 { $as_echo "$as_me:$LINENO: result: yes" >&5
27180 $as_echo "yes" >&6; }
27182 cat >>confdefs.h
<<\_ACEOF
27183 #define HAVE_CURRENT_TIME 1
27192 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's" >&5
27193 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
27196 cat confdefs.h
- <<_ACEOF >conftest.c
27199 cat confdefs.h
>>conftest.
$ac_ext
27200 cat >>conftest.
$ac_ext <<_ACEOF
27201 /* end confdefs.h. */
27204 #include <linux/mm.h>
27205 #include <linux/vmstat.h>
27211 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
27212 long x __attribute__ ((unused)) =
27213 atomic_long_read(&vm_node_stat[0]);
27214 (void) global_node_page_state(0);
27224 cat - <<_ACEOF >conftest.h
27229 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27230 echo "obj-m := conftest.o" >build
/Makefile
27232 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27233 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27235 (eval $ac_try) 2>&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27245 { $as_echo "$as_me:$LINENO: result: yes" >&5
27246 $as_echo "yes" >&6; }
27248 cat >>confdefs.h
<<\_ACEOF
27249 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
27254 $as_echo "$as_me: failed program was:" >&5
27255 sed 's/^/| /' conftest.
$ac_ext >&5
27257 { $as_echo "$as_me:$LINENO: result: no" >&5
27258 $as_echo "no" >&6; }
27269 if test "$LINUX_OBJ" != "$LINUX"; then
27271 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
27278 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
27279 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
27280 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
27281 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
27282 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
27283 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
27290 # Check whether --with-mounthelperdir was given.
27291 if test "${with_mounthelperdir+set}" = set; then
27292 withval
=$with_mounthelperdir; mounthelperdir
=$withval
27294 mounthelperdir
=/sbin
27301 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
27302 $as_echo_n "checking for udev directories... " >&6; }
27304 # Check whether --with-udevdir was given.
27305 if test "${with_udevdir+set}" = set; then
27306 withval
=$with_udevdir; udevdir
=$withval
27312 if test "x$udevdir" = xcheck
; then
27315 path2
=/usr
/lib
/udev
27318 if test -d "$path1"; then
27322 if test -d "$path2"; then
27336 # Check whether --with-udevruledir was given.
27337 if test "${with_udevruledir+set}" = set; then
27338 withval
=$with_udevruledir; udevruledir
=$withval
27340 udevruledir
="${udevdir}/rules.d"
27346 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
27347 $as_echo "$udevdir;$udevruledir" >&6; }
27350 # Check whether --enable-systemd was given.
27351 if test "${enable_systemd+set}" = set; then
27352 enableval
=$enable_systemd;
27359 # Check whether --with-systemdunitdir was given.
27360 if test "${with_systemdunitdir+set}" = set; then
27361 withval
=$with_systemdunitdir; systemdunitdir
=$withval
27363 systemdunitdir
=/usr
/lib
/systemd
/system
27368 # Check whether --with-systemdpresetdir was given.
27369 if test "${with_systemdpresetdir+set}" = set; then
27370 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
27372 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
27377 # Check whether --with-systemdmodulesloaddir was given.
27378 if test "${with_systemdmodulesloaddir+set}" = set; then
27379 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
27381 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
27386 if test "x$enable_systemd" = xyes
; then
27388 ZFS_INIT_SYSTEMD
=systemd
27389 ZFS_MODULE_LOAD
=modules-load.d
27390 modulesloaddir
=$systemdmodulesloaddir
27402 # Check whether --enable-sysvinit was given.
27403 if test "${enable_sysvinit+set}" = set; then
27404 enableval
=$enable_sysvinit;
27406 enable_sysvinit
=yes
27410 if test "x$enable_sysvinit" = xyes
; then
27411 ZFS_INIT_SYSV
=init.d
27418 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
27419 $as_echo_n "checking for dracut directory... " >&6; }
27421 # Check whether --with-dracutdir was given.
27422 if test "${with_dracutdir+set}" = set; then
27423 withval
=$with_dracutdir; dracutdir
=$withval
27429 if test "x$dracutdir" = xcheck
; then
27431 path1
=/usr
/share
/dracut
27432 path2
=/usr
/lib
/dracut
27435 if test -d "$path1"; then
27439 if test -d "$path2"; then
27442 dracutdir
="$default"
27453 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
27454 $as_echo "$dracutdir" >&6; }
27459 if test "${ac_cv_header_zlib_h+set}" = set; then
27460 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27461 $as_echo_n "checking for zlib.h... " >&6; }
27462 if test "${ac_cv_header_zlib_h+set}" = set; then
27463 $as_echo_n "(cached) " >&6
27465 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27466 $as_echo "$ac_cv_header_zlib_h" >&6; }
27468 # Is the header compilable?
27469 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
27470 $as_echo_n "checking zlib.h usability... " >&6; }
27471 cat >conftest.
$ac_ext <<_ACEOF
27474 cat confdefs.h
>>conftest.
$ac_ext
27475 cat >>conftest.
$ac_ext <<_ACEOF
27476 /* end confdefs.h. */
27477 $ac_includes_default
27480 rm -f conftest.
$ac_objext
27481 if { (ac_try
="$ac_compile"
27482 case "(($ac_try" in
27483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27487 $as_echo "$ac_try_echo") >&5
27488 (eval "$ac_compile") 2>conftest.er1
27490 grep -v '^ *+' conftest.er1 >conftest.err
27492 cat conftest.err >&5
27493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } && {
27495 test -z "$ac_c_werror_flag" ||
27496 test ! -s conftest.err
27497 } && test -s conftest.$ac_objext; then
27498 ac_header_compiler=yes
27500 $as_echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27503 ac_header_compiler=no
27506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27507 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27508 $as_echo "$ac_header_compiler" >&6; }
27510 # Is the header present?
27511 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
27512 $as_echo_n "checking zlib.h presence... " >&6; }
27513 cat >conftest.$ac_ext <<_ACEOF
27516 cat confdefs.h >>conftest.$ac_ext
27517 cat >>conftest.$ac_ext <<_ACEOF
27518 /* end confdefs.h. */
27521 if { (ac_try="$ac_cpp conftest.$ac_ext"
27522 case "(($ac_try" in
27523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27524 *) ac_try_echo
=$ac_try;;
27526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27527 $as_echo "$ac_try_echo") >&5
27528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27530 grep -v '^ *+' conftest.er1
>conftest.err
27532 cat conftest.err
>&5
27533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); } >/dev
/null
&& {
27535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27536 test ! -s conftest.err
27538 ac_header_preproc
=yes
27540 $as_echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.
$ac_ext >&5
27543 ac_header_preproc
=no
27546 rm -f conftest.err conftest.
$ac_ext
27547 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27548 $as_echo "$ac_header_preproc" >&6; }
27550 # So? What about this header?
27551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27553 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27554 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27555 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27556 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27557 ac_header_preproc
=yes
27560 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27561 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27562 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
27563 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
27564 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27565 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27566 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
27567 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
27568 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27569 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27570 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27571 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27575 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
27576 $as_echo_n "checking for zlib.h... " >&6; }
27577 if test "${ac_cv_header_zlib_h+set}" = set; then
27578 $as_echo_n "(cached) " >&6
27580 ac_cv_header_zlib_h
=$ac_header_preproc
27582 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27583 $as_echo "$ac_cv_header_zlib_h" >&6; }
27586 if test "x$ac_cv_header_zlib_h" = x
""yes; then
27589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27591 { { $as_echo "$as_me:$LINENO: error:
27592 *** zlib.h missing, zlib-devel package required
27593 See \`config.log' for more details." >&5
27594 $as_echo "$as_me: error:
27595 *** zlib.h missing, zlib-devel package required
27596 See \`config.log' for more details." >&2;}
27597 { (exit 1); exit 1; }; }; }
27602 { $as_echo "$as_me:$LINENO: checking for library containing compress2" >&5
27603 $as_echo_n "checking for library containing compress2... " >&6; }
27604 if test "${ac_cv_search_compress2+set}" = set; then
27605 $as_echo_n "(cached) " >&6
27607 ac_func_search_save_LIBS
=$LIBS
27608 cat >conftest.
$ac_ext <<_ACEOF
27611 cat confdefs.h
>>conftest.
$ac_ext
27612 cat >>conftest.
$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27615 /* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27625 return compress2 ();
27630 for ac_lib
in '' z
; do
27631 if test -z "$ac_lib"; then
27632 ac_res
="none required"
27635 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27637 rm -f conftest.
$ac_objext conftest
$ac_exeext
27638 if { (ac_try
="$ac_link"
27639 case "(($ac_try" in
27640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27641 *) ac_try_echo=$ac_try;;
27643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27644 $as_echo "$ac_try_echo") >&5
27645 (eval "$ac_link") 2>conftest.er1
27647 grep -v '^ *+' conftest.er1 >conftest.err
27649 cat conftest.err >&5
27650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); } && {
27652 test -z "$ac_c_werror_flag" ||
27653 test ! -s conftest.err
27654 } && test -s conftest$ac_exeext && {
27655 test "$cross_compiling" = yes ||
27656 $as_test_x conftest$ac_exeext
27658 ac_cv_search_compress2=$ac_res
27660 $as_echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27666 rm -rf conftest.dSYM
27667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27669 if test "${ac_cv_search_compress2+set}" = set; then
27673 if test "${ac_cv_search_compress2+set}" = set; then
27676 ac_cv_search_compress2=no
27678 rm conftest.$ac_ext
27679 LIBS=$ac_func_search_save_LIBS
27681 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_compress2" >&5
27682 $as_echo "$ac_cv_search_compress2" >&6; }
27683 ac_res=$ac_cv_search_compress2
27684 if test "$ac_res" != no; then
27685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27688 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27690 { { $as_echo "$as_me:$LINENO: error
:
27691 *** compress2
() missing
, zlib-devel package required
27692 See \
`config.log' for more details." >&5
27693 $as_echo "$as_me: error:
27694 *** compress2() missing, zlib-devel package required
27695 See \`config.log
' for more details." >&2;}
27696 { (exit 1); exit 1; }; }; }
27700 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
27701 $as_echo_n "checking for library containing uncompress... " >&6; }
27702 if test "${ac_cv_search_uncompress+set}" = set; then
27703 $as_echo_n "(cached) " >&6
27705 ac_func_search_save_LIBS=$LIBS
27706 cat >conftest.$ac_ext <<_ACEOF
27709 cat confdefs.h >>conftest.$ac_ext
27710 cat >>conftest.$ac_ext <<_ACEOF
27711 /* end confdefs.h. */
27713 /* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27719 char uncompress ();
27723 return uncompress ();
27728 for ac_lib in '' z; do
27729 if test -z "$ac_lib"; then
27730 ac_res="none required"
27733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27735 rm -f conftest.$ac_objext conftest$ac_exeext
27736 if { (ac_try="$ac_link"
27737 case "(($ac_try" in
27738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739 *) ac_try_echo=$ac_try;;
27741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27742 $as_echo "$ac_try_echo") >&5
27743 (eval "$ac_link") 2>conftest.er1
27745 grep -v '^
*+' conftest.er1 >conftest.err
27747 cat conftest.err >&5
27748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27749 (exit $ac_status); } && {
27750 test -z "$ac_c_werror_flag" ||
27751 test ! -s conftest.err
27752 } && test -s conftest$ac_exeext && {
27753 test "$cross_compiling" = yes ||
27754 $as_test_x conftest$ac_exeext
27756 ac_cv_search_uncompress=$ac_res
27758 $as_echo "$as_me: failed program was:" >&5
27759 sed 's
/^
/|
/' conftest.$ac_ext >&5
27764 rm -rf conftest.dSYM
27765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27767 if test "${ac_cv_search_uncompress+set}" = set; then
27771 if test "${ac_cv_search_uncompress+set}" = set; then
27774 ac_cv_search_uncompress=no
27776 rm conftest.$ac_ext
27777 LIBS=$ac_func_search_save_LIBS
27779 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
27780 $as_echo "$ac_cv_search_uncompress" >&6; }
27781 ac_res=$ac_cv_search_uncompress
27782 if test "$ac_res" != no; then
27783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27786 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27787 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
27788 { { $as_echo "$as_me:$LINENO: error:
27789 *** uncompress() missing, zlib-devel package required
27790 See \`config.log
' for more details." >&5
27791 $as_echo "$as_me: error:
27792 *** uncompress() missing, zlib-devel package required
27793 See \`config.log' for more details.
" >&2;}
27794 { (exit 1); exit 1; }; }; }
27798 { $as_echo "$as_me:$LINENO: checking
for library containing crc32
" >&5
27799 $as_echo_n "checking
for library containing crc32...
" >&6; }
27800 if test "${ac_cv_search_crc32+set}" = set; then
27801 $as_echo_n "(cached
) " >&6
27803 ac_func_search_save_LIBS=$LIBS
27804 cat >conftest.$ac_ext <<_ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h. */
27811 /* Override any GCC internal prototype to avoid an error.
27812 Use char because int might match the return type of a GCC
27813 builtin and then its argument prototype would still apply. */
27826 for ac_lib in '' z; do
27827 if test -z "$ac_lib"; then
27828 ac_res="none required
"
27831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27833 rm -f conftest.$ac_objext conftest$ac_exeext
27834 if { (ac_try="$ac_link"
27835 case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
27840 $as_echo "$ac_try_echo") >&5
27841 (eval "$ac_link") 2>conftest.er1
27843 grep -v '^ *+' conftest.er1 >conftest.err
27845 cat conftest.err >&5
27846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
27847 (exit $ac_status); } && {
27848 test -z "$ac_c_werror_flag" ||
27849 test ! -s conftest.err
27850 } && test -s conftest$ac_exeext && {
27851 test "$cross_compiling" = yes ||
27852 $as_test_x conftest$ac_exeext
27854 ac_cv_search_crc32=$ac_res
27856 $as_echo "$as_me: failed program was
:" >&5
27857 sed 's/^/| /' conftest.$ac_ext >&5
27862 rm -rf conftest.dSYM
27863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27865 if test "${ac_cv_search_crc32+set}" = set; then
27869 if test "${ac_cv_search_crc32+set}" = set; then
27872 ac_cv_search_crc32=no
27874 rm conftest.$ac_ext
27875 LIBS=$ac_func_search_save_LIBS
27877 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_crc32" >&5
27878 $as_echo "$ac_cv_search_crc32" >&6; }
27879 ac_res=$ac_cv_search_crc32
27880 if test "$ac_res" != no; then
27881 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
27884 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
27885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27886 { { $as_echo "$as_me:$LINENO: error:
27887 *** crc32() missing, zlib-devel package required
27888 See \`config.log' for more details.
" >&5
27889 $as_echo "$as_me: error
:
27890 *** crc32
() missing
, zlib-devel package required
27891 See \
`config.log' for more details." >&2;}
27892 { (exit 1); exit 1; }; }; }
27899 cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_ZLIB 1
27907 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27908 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
27909 $as_echo_n "checking for uuid/uuid.h... " >&6; }
27910 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
27911 $as_echo_n "(cached) " >&6
27913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
27914 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
27916 # Is the header compilable?
27917 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
27918 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
27919 cat >conftest.$ac_ext <<_ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h. */
27925 $ac_includes_default
27926 #include <uuid/uuid.h>
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27932 *) ac_try_echo
=$ac_try;;
27934 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27935 $as_echo "$ac_try_echo") >&5
27936 (eval "$ac_compile") 2>conftest.er1
27938 grep -v '^ *+' conftest.er1
>conftest.err
27940 cat conftest.err
>&5
27941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); } && {
27943 test -z "$ac_c_werror_flag" ||
27944 test ! -s conftest.err
27945 } && test -s conftest.
$ac_objext; then
27946 ac_header_compiler
=yes
27948 $as_echo "$as_me: failed program was:" >&5
27949 sed 's/^/| /' conftest.
$ac_ext >&5
27951 ac_header_compiler
=no
27954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27956 $as_echo "$ac_header_compiler" >&6; }
27958 # Is the header present?
27959 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
27960 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
27961 cat >conftest.
$ac_ext <<_ACEOF
27964 cat confdefs.h
>>conftest.
$ac_ext
27965 cat >>conftest.
$ac_ext <<_ACEOF
27966 /* end confdefs.h. */
27967 #include <uuid/uuid.h>
27969 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27970 case "(($ac_try" in
27971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27975 $as_echo "$ac_try_echo") >&5
27976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27978 grep -v '^ *+' conftest.er1 >conftest.err
27980 cat conftest.err >&5
27981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); } >/dev/null && {
27983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27984 test ! -s conftest.err
27986 ac_header_preproc=yes
27988 $as_echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27991 ac_header_preproc=no
27994 rm -f conftest.err conftest.$ac_ext
27995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27996 $as_echo "$ac_header_preproc" >&6; }
27998 # So? What about this header?
27999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28001 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
28002 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28003 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
28004 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
28005 ac_header_preproc=yes
28008 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
28009 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
28010 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
28011 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
28012 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
28013 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
28014 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
28015 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
28016 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
28017 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
28018 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
28019 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
28023 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
28024 $as_echo_n "checking for uuid/uuid.h... " >&6; }
28025 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
28026 $as_echo_n "(cached) " >&6
28028 ac_cv_header_uuid_uuid_h=$ac_header_preproc
28030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
28031 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
28034 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
28037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28039 { { $as_echo "$as_me:$LINENO: error
:
28040 *** uuid
/uuid.h missing
, libuuid-devel package required
28041 See \
`config.log' for more details." >&5
28042 $as_echo "$as_me: error:
28043 *** uuid/uuid.h missing, libuuid-devel package required
28044 See \`config.log
' for more details." >&2;}
28045 { (exit 1); exit 1; }; }; }
28050 { $as_echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
28051 $as_echo_n "checking for library containing uuid_generate... " >&6; }
28052 if test "${ac_cv_search_uuid_generate+set}" = set; then
28053 $as_echo_n "(cached) " >&6
28055 ac_func_search_save_LIBS=$LIBS
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28063 /* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28069 char uuid_generate ();
28073 return uuid_generate ();
28078 for ac_lib in '' uuid; do
28079 if test -z "$ac_lib"; then
28080 ac_res="none required"
28083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (ac_try="$ac_link"
28087 case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28092 $as_echo "$ac_try_echo") >&5
28093 (eval "$ac_link") 2>conftest.er1
28095 grep -v '^
*+' conftest.er1 >conftest.err
28097 cat conftest.err >&5
28098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } && {
28100 test -z "$ac_c_werror_flag" ||
28101 test ! -s conftest.err
28102 } && test -s conftest$ac_exeext && {
28103 test "$cross_compiling" = yes ||
28104 $as_test_x conftest$ac_exeext
28106 ac_cv_search_uuid_generate=$ac_res
28108 $as_echo "$as_me: failed program was:" >&5
28109 sed 's
/^
/|
/' conftest.$ac_ext >&5
28114 rm -rf conftest.dSYM
28115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28117 if test "${ac_cv_search_uuid_generate+set}" = set; then
28121 if test "${ac_cv_search_uuid_generate+set}" = set; then
28124 ac_cv_search_uuid_generate=no
28126 rm conftest.$ac_ext
28127 LIBS=$ac_func_search_save_LIBS
28129 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
28130 $as_echo "$ac_cv_search_uuid_generate" >&6; }
28131 ac_res=$ac_cv_search_uuid_generate
28132 if test "$ac_res" != no; then
28133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28136 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28137 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
28138 { { $as_echo "$as_me:$LINENO: error:
28139 *** uuid_generate() missing, libuuid-devel package required
28140 See \`config.log
' for more details." >&5
28141 $as_echo "$as_me: error:
28142 *** uuid_generate() missing, libuuid-devel package required
28143 See \`config.log' for more details.
" >&2;}
28144 { (exit 1); exit 1; }; }; }
28148 { $as_echo "$as_me:$LINENO: checking
for library containing uuid_is_null
" >&5
28149 $as_echo_n "checking
for library containing uuid_is_null...
" >&6; }
28150 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28151 $as_echo_n "(cached
) " >&6
28153 ac_func_search_save_LIBS=$LIBS
28154 cat >conftest.$ac_ext <<_ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28161 /* Override any GCC internal prototype to avoid an error.
28162 Use char because int might match the return type of a GCC
28163 builtin and then its argument prototype would still apply. */
28167 char uuid_is_null ();
28171 return uuid_is_null ();
28176 for ac_lib in '' uuid; do
28177 if test -z "$ac_lib"; then
28178 ac_res="none required
"
28181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28183 rm -f conftest.$ac_objext conftest$ac_exeext
28184 if { (ac_try="$ac_link"
28185 case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28189 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28190 $as_echo "$ac_try_echo") >&5
28191 (eval "$ac_link") 2>conftest.er1
28193 grep -v '^ *+' conftest.er1 >conftest.err
28195 cat conftest.err >&5
28196 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28197 (exit $ac_status); } && {
28198 test -z "$ac_c_werror_flag" ||
28199 test ! -s conftest.err
28200 } && test -s conftest$ac_exeext && {
28201 test "$cross_compiling" = yes ||
28202 $as_test_x conftest$ac_exeext
28204 ac_cv_search_uuid_is_null=$ac_res
28206 $as_echo "$as_me: failed program was
:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28212 rm -rf conftest.dSYM
28213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28215 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28219 if test "${ac_cv_search_uuid_is_null+set}" = set; then
28222 ac_cv_search_uuid_is_null=no
28224 rm conftest.$ac_ext
28225 LIBS=$ac_func_search_save_LIBS
28227 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_uuid_is_null" >&5
28228 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
28229 ac_res=$ac_cv_search_uuid_is_null
28230 if test "$ac_res" != no; then
28231 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
28234 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
28235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28236 { { $as_echo "$as_me:$LINENO: error:
28237 *** uuid_is_null() missing, libuuid-devel package required
28238 See \`config.log' for more details.
" >&5
28239 $as_echo "$as_me: error
:
28240 *** uuid_is_null
() missing
, libuuid-devel package required
28241 See \
`config.log' for more details." >&2;}
28242 { (exit 1); exit 1; }; }; }
28249 cat >>confdefs.h <<\_ACEOF
28250 #define HAVE_LIBUUID 1
28256 # Check whether --with-tirpc was given.
28257 if test "${with_tirpc+set}" = set; then
28258 withval=$with_tirpc;
28267 if test "x$with_tirpc" != xno; then
28268 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
28269 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
28270 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
28271 $as_echo_n "(cached) " >&6
28273 ac_check_lib_save_LIBS=$LIBS
28274 LIBS="-ltirpc $LIBS"
28275 cat >conftest.$ac_ext <<_ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h. */
28282 /* Override any GCC internal prototype to avoid an error.
28283 Use char because int might match the return type of a GCC
28284 builtin and then its argument prototype would still apply. */
28288 char xdrmem_create ();
28292 return xdrmem_create ();
28297 rm -f conftest.$ac_objext conftest$ac_exeext
28298 if { (ac_try="$ac_link"
28299 case "(($ac_try" in
28300 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28301 *) ac_try_echo
=$ac_try;;
28303 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28304 $as_echo "$ac_try_echo") >&5
28305 (eval "$ac_link") 2>conftest.er1
28307 grep -v '^ *+' conftest.er1
>conftest.err
28309 cat conftest.err
>&5
28310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest
$ac_exeext && {
28315 test "$cross_compiling" = yes ||
28316 $as_test_x conftest
$ac_exeext
28318 ac_cv_lib_tirpc_xdrmem_create
=yes
28320 $as_echo "$as_me: failed program was:" >&5
28321 sed 's/^/| /' conftest.
$ac_ext >&5
28323 ac_cv_lib_tirpc_xdrmem_create
=no
28326 rm -rf conftest.dSYM
28327 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
28328 conftest
$ac_exeext conftest.
$ac_ext
28329 LIBS
=$ac_check_lib_save_LIBS
28331 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
28332 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
28333 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x
""yes; then
28336 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
28339 cat >>confdefs.h
<<\_ACEOF
28340 #define HAVE_LIBTIRPC 1
28345 if test "x$with_tirpc" != xcheck
; then
28346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28348 { { $as_echo "$as_me:$LINENO: error: --with-tirpc was given, but test for tirpc failed
28349 See \`config.log' for more details." >&5
28350 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
28351 See \`config.log' for more details." >&2;}
28352 { (exit 1); exit 1; }; }; }
28354 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28355 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
28356 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28357 $as_echo_n "(cached) " >&6
28359 ac_func_search_save_LIBS
=$LIBS
28360 cat >conftest.
$ac_ext <<_ACEOF
28363 cat confdefs.h
>>conftest.
$ac_ext
28364 cat >>conftest.
$ac_ext <<_ACEOF
28365 /* end confdefs.h. */
28367 /* Override any GCC internal prototype to avoid an error.
28368 Use char because int might match the return type of a GCC
28369 builtin and then its argument prototype would still apply. */
28373 char xdrmem_create ();
28377 return xdrmem_create ();
28382 for ac_lib
in '' tirpc
; do
28383 if test -z "$ac_lib"; then
28384 ac_res
="none required"
28387 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28389 rm -f conftest.
$ac_objext conftest
$ac_exeext
28390 if { (ac_try
="$ac_link"
28391 case "(($ac_try" in
28392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28396 $as_echo "$ac_try_echo") >&5
28397 (eval "$ac_link") 2>conftest.er1
28399 grep -v '^ *+' conftest.er1 >conftest.err
28401 cat conftest.err >&5
28402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403 (exit $ac_status); } && {
28404 test -z "$ac_c_werror_flag" ||
28405 test ! -s conftest.err
28406 } && test -s conftest$ac_exeext && {
28407 test "$cross_compiling" = yes ||
28408 $as_test_x conftest$ac_exeext
28410 ac_cv_search_xdrmem_create=$ac_res
28412 $as_echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28418 rm -rf conftest.dSYM
28419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28421 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28425 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28428 ac_cv_search_xdrmem_create=no
28430 rm conftest.$ac_ext
28431 LIBS=$ac_func_search_save_LIBS
28433 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28434 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
28435 ac_res=$ac_cv_search_xdrmem_create
28436 if test "$ac_res" != no; then
28437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28443 { { $as_echo "$as_me:$LINENO: error
: xdrmem_create
() requires tirpc or libc
28444 See \
`config.log' for more details." >&5
28445 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
28446 See \`config.log
' for more details." >&2;}
28447 { (exit 1); exit 1; }; }; }
28454 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
28455 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
28456 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28457 $as_echo_n "(cached) " >&6
28459 ac_func_search_save_LIBS=$LIBS
28460 cat >conftest.$ac_ext <<_ACEOF
28463 cat confdefs.h >>conftest.$ac_ext
28464 cat >>conftest.$ac_ext <<_ACEOF
28465 /* end confdefs.h. */
28467 /* Override any GCC internal prototype to avoid an error.
28468 Use char because int might match the return type of a GCC
28469 builtin and then its argument prototype would still apply. */
28473 char xdrmem_create ();
28477 return xdrmem_create ();
28482 for ac_lib in '' tirpc; do
28483 if test -z "$ac_lib"; then
28484 ac_res="none required"
28487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28489 rm -f conftest.$ac_objext conftest$ac_exeext
28490 if { (ac_try="$ac_link"
28491 case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496 $as_echo "$ac_try_echo") >&5
28497 (eval "$ac_link") 2>conftest.er1
28499 grep -v '^
*+' conftest.er1 >conftest.err
28501 cat conftest.err >&5
28502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } && {
28504 test -z "$ac_c_werror_flag" ||
28505 test ! -s conftest.err
28506 } && test -s conftest$ac_exeext && {
28507 test "$cross_compiling" = yes ||
28508 $as_test_x conftest$ac_exeext
28510 ac_cv_search_xdrmem_create=$ac_res
28512 $as_echo "$as_me: failed program was:" >&5
28513 sed 's
/^
/|
/' conftest.$ac_ext >&5
28518 rm -rf conftest.dSYM
28519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28521 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28525 if test "${ac_cv_search_xdrmem_create+set}" = set; then
28528 ac_cv_search_xdrmem_create=no
28530 rm conftest.$ac_ext
28531 LIBS=$ac_func_search_save_LIBS
28533 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
28534 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
28535 ac_res=$ac_cv_search_xdrmem_create
28536 if test "$ac_res" != no; then
28537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28542 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
28543 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
28544 See \`config.log
' for more details." >&5
28545 $as_echo "$as_me: error: xdrmem_create() requires libc
28546 See \`config.log' for more details.
" >&2;}
28547 { (exit 1); exit 1; }; }; }
28557 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28558 { $as_echo "$as_me:$LINENO: checking
for blkid
/blkid.h
" >&5
28559 $as_echo_n "checking
for blkid
/blkid.h...
" >&6; }
28560 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28561 $as_echo_n "(cached
) " >&6
28563 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_blkid_blkid_h" >&5
28564 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28566 # Is the header compilable?
28567 { $as_echo "$as_me:$LINENO: checking blkid
/blkid.h usability
" >&5
28568 $as_echo_n "checking blkid
/blkid.h usability...
" >&6; }
28569 cat >conftest.$ac_ext <<_ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h. */
28575 $ac_includes_default
28576 #include <blkid/blkid.h>
28578 rm -f conftest.$ac_objext
28579 if { (ac_try="$ac_compile"
28580 case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28584 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28585 $as_echo "$ac_try_echo") >&5
28586 (eval "$ac_compile") 2>conftest.er1
28588 grep -v '^ *+' conftest.er1 >conftest.err
28590 cat conftest.err >&5
28591 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28592 (exit $ac_status); } && {
28593 test -z "$ac_c_werror_flag" ||
28594 test ! -s conftest.err
28595 } && test -s conftest.$ac_objext; then
28596 ac_header_compiler=yes
28598 $as_echo "$as_me: failed program was
:" >&5
28599 sed 's/^/| /' conftest.$ac_ext >&5
28601 ac_header_compiler=no
28604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28605 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
28606 $as_echo "$ac_header_compiler" >&6; }
28608 # Is the header present?
28609 { $as_echo "$as_me:$LINENO: checking blkid
/blkid.h presence
" >&5
28610 $as_echo_n "checking blkid
/blkid.h presence...
" >&6; }
28611 cat >conftest.$ac_ext <<_ACEOF
28614 cat confdefs.h >>conftest.$ac_ext
28615 cat >>conftest.$ac_ext <<_ACEOF
28616 /* end confdefs.h. */
28617 #include <blkid/blkid.h>
28619 if { (ac_try="$ac_cpp conftest.
$ac_ext"
28620 case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28624 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
28625 $as_echo "$ac_try_echo") >&5
28626 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
28628 grep -v '^ *+' conftest.er1 >conftest.err
28630 cat conftest.err >&5
28631 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
28632 (exit $ac_status); } >/dev/null && {
28633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28634 test ! -s conftest.err
28636 ac_header_preproc=yes
28638 $as_echo "$as_me: failed program was
:" >&5
28639 sed 's/^/| /' conftest.$ac_ext >&5
28641 ac_header_preproc=no
28644 rm -f conftest.err conftest.$ac_ext
28645 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
28646 $as_echo "$ac_header_preproc" >&6; }
28648 # So? What about this header?
28649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28651 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
28652 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
28653 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: proceeding with the compiler
's result" >&5
28654 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result
" >&2;}
28655 ac_header_preproc=yes
28658 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: present but cannot be compiled
" >&5
28659 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: present but cannot be compiled
" >&2;}
28660 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: check
for missing prerequisite headers?
" >&5
28661 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: check
for missing prerequisite headers?
" >&2;}
28662 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: see the Autoconf documentation
" >&5
28663 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: see the Autoconf documentation
" >&2;}
28664 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: section
\"Present But Cannot Be Compiled
\"" >&5
28665 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
28666 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: proceeding with the preprocessor
's result" >&5
28667 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result
" >&2;}
28668 { $as_echo "$as_me:$LINENO: WARNING
: blkid
/blkid.h
: in the future
, the compiler will take precedence
" >&5
28669 $as_echo "$as_me: WARNING
: blkid
/blkid.h
: in the future
, the compiler will take precedence
" >&2;}
28673 { $as_echo "$as_me:$LINENO: checking
for blkid
/blkid.h
" >&5
28674 $as_echo_n "checking
for blkid
/blkid.h...
" >&6; }
28675 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
28676 $as_echo_n "(cached
) " >&6
28678 ac_cv_header_blkid_blkid_h=$ac_header_preproc
28680 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_blkid_blkid_h" >&5
28681 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
28684 if test "x
$ac_cv_header_blkid_blkid_h" = x""yes; then
28687 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
28688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28689 { { $as_echo "$as_me:$LINENO: error:
28690 *** blkid.h missing, libblkid-devel package required
28691 See \`config.log' for more details.
" >&5
28692 $as_echo "$as_me: error
:
28693 *** blkid.h missing
, libblkid-devel package required
28694 See \
`config.log' for more details." >&2;}
28695 { (exit 1); exit 1; }; }; }
28703 cat >>confdefs.h <<\_ACEOF
28704 #define HAVE_LIBBLKID 1
28711 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28712 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28713 $as_echo_n "checking for attr/xattr.h... " >&6; }
28714 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28715 $as_echo_n "(cached) " >&6
28717 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28718 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28720 # Is the header compilable?
28721 { $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
28722 $as_echo_n "checking attr/xattr.h usability... " >&6; }
28723 cat >conftest.$ac_ext <<_ACEOF
28726 cat confdefs.h >>conftest.$ac_ext
28727 cat >>conftest.$ac_ext <<_ACEOF
28728 /* end confdefs.h. */
28729 $ac_includes_default
28730 #include <attr/xattr.h>
28732 rm -f conftest.$ac_objext
28733 if { (ac_try="$ac_compile"
28734 case "(($ac_try" in
28735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28736 *) ac_try_echo
=$ac_try;;
28738 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28739 $as_echo "$ac_try_echo") >&5
28740 (eval "$ac_compile") 2>conftest.er1
28742 grep -v '^ *+' conftest.er1
>conftest.err
28744 cat conftest.err
>&5
28745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && {
28747 test -z "$ac_c_werror_flag" ||
28748 test ! -s conftest.err
28749 } && test -s conftest.
$ac_objext; then
28750 ac_header_compiler
=yes
28752 $as_echo "$as_me: failed program was:" >&5
28753 sed 's/^/| /' conftest.
$ac_ext >&5
28755 ac_header_compiler
=no
28758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28759 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28760 $as_echo "$ac_header_compiler" >&6; }
28762 # Is the header present?
28763 { $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
28764 $as_echo_n "checking attr/xattr.h presence... " >&6; }
28765 cat >conftest.
$ac_ext <<_ACEOF
28768 cat confdefs.h
>>conftest.
$ac_ext
28769 cat >>conftest.
$ac_ext <<_ACEOF
28770 /* end confdefs.h. */
28771 #include <attr/xattr.h>
28773 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28774 case "(($ac_try" in
28775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28779 $as_echo "$ac_try_echo") >&5
28780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28782 grep -v '^ *+' conftest.er1 >conftest.err
28784 cat conftest.err >&5
28785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } >/dev/null && {
28787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28788 test ! -s conftest.err
28790 ac_header_preproc=yes
28792 $as_echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28795 ac_header_preproc=no
28798 rm -f conftest.err conftest.$ac_ext
28799 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28800 $as_echo "$ac_header_preproc" >&6; }
28802 # So? What about this header?
28803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28805 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
28806 $as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28807 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result" >&5
28808 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the compiler's result" >&2;}
28809 ac_header_preproc=yes
28812 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
28813 $as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
28814 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
28815 $as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
28816 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
28817 $as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
28818 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
28819 $as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
28820 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&5
28821 $as_echo "$as_me: WARNING: attr/xattr.h: proceeding with the preprocessor's result" >&2;}
28822 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
28823 $as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
28827 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
28828 $as_echo_n "checking for attr/xattr.h... " >&6; }
28829 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
28830 $as_echo_n "(cached) " >&6
28832 ac_cv_header_attr_xattr_h=$ac_header_preproc
28834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
28835 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
28838 if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
28841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28843 { { $as_echo "$as_me:$LINENO: error
:
28844 *** attr
/xattr.h missing
, libattr-devel package required
28845 See \
`config.log' for more details." >&5
28846 $as_echo "$as_me: error:
28847 *** attr/xattr.h missing, libattr-devel package required
28848 See \`config.log
' for more details." >&2;}
28849 { (exit 1); exit 1; }; }; }
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_LIBATTR 1
28865 if test "${ac_cv_header_libudev_h+set}" = set; then
28866 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28867 $as_echo_n "checking for libudev.h... " >&6; }
28868 if test "${ac_cv_header_libudev_h+set}" = set; then
28869 $as_echo_n "(cached) " >&6
28871 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28872 $as_echo "$ac_cv_header_libudev_h" >&6; }
28874 # Is the header compilable?
28875 { $as_echo "$as_me:$LINENO: checking libudev.h usability" >&5
28876 $as_echo_n "checking libudev.h usability... " >&6; }
28877 cat >conftest.$ac_ext <<_ACEOF
28880 cat confdefs.h >>conftest.$ac_ext
28881 cat >>conftest.$ac_ext <<_ACEOF
28882 /* end confdefs.h. */
28883 $ac_includes_default
28884 #include <libudev.h>
28886 rm -f conftest.$ac_objext
28887 if { (ac_try="$ac_compile"
28888 case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28893 $as_echo "$ac_try_echo") >&5
28894 (eval "$ac_compile") 2>conftest.er1
28896 grep -v '^
*+' conftest.er1 >conftest.err
28898 cat conftest.err >&5
28899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } && {
28901 test -z "$ac_c_werror_flag" ||
28902 test ! -s conftest.err
28903 } && test -s conftest.$ac_objext; then
28904 ac_header_compiler=yes
28906 $as_echo "$as_me: failed program was:" >&5
28907 sed 's
/^
/|
/' conftest.$ac_ext >&5
28909 ac_header_compiler=no
28912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28914 $as_echo "$ac_header_compiler" >&6; }
28916 # Is the header present?
28917 { $as_echo "$as_me:$LINENO: checking libudev.h presence" >&5
28918 $as_echo_n "checking libudev.h presence... " >&6; }
28919 cat >conftest.$ac_ext <<_ACEOF
28922 cat confdefs.h >>conftest.$ac_ext
28923 cat >>conftest.$ac_ext <<_ACEOF
28924 /* end confdefs.h. */
28925 #include <libudev.h>
28927 if { (ac_try="$ac_cpp conftest.$ac_ext"
28928 case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28933 $as_echo "$ac_try_echo") >&5
28934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28936 grep -v '^
*+' conftest.er1 >conftest.err
28938 cat conftest.err >&5
28939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28940 (exit $ac_status); } >/dev/null && {
28941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28942 test ! -s conftest.err
28944 ac_header_preproc=yes
28946 $as_echo "$as_me: failed program was:" >&5
28947 sed 's
/^
/|
/' conftest.$ac_ext >&5
28949 ac_header_preproc=no
28952 rm -f conftest.err conftest.$ac_ext
28953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28954 $as_echo "$ac_header_preproc" >&6; }
28956 # So? What about this header?
28957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28959 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&5
28960 $as_echo "$as_me: WARNING: libudev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28961 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the compiler's result
" >&5
28962 $as_echo "$as_me: WARNING
: libudev.h
: proceeding with the compiler
's result" >&2;}
28963 ac_header_preproc=yes
28966 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: present but cannot be compiled" >&5
28967 $as_echo "$as_me: WARNING: libudev.h: present but cannot be compiled" >&2;}
28968 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: check for missing prerequisite headers?" >&5
28969 $as_echo "$as_me: WARNING: libudev.h: check for missing prerequisite headers?" >&2;}
28970 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: see the Autoconf documentation" >&5
28971 $as_echo "$as_me: WARNING: libudev.h: see the Autoconf documentation" >&2;}
28972 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&5
28973 $as_echo "$as_me: WARNING: libudev.h: section \"Present But Cannot Be Compiled\"" >&2;}
28974 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: proceeding with the preprocessor's result
" >&5
28975 $as_echo "$as_me: WARNING
: libudev.h
: proceeding with the preprocessor
's result" >&2;}
28976 { $as_echo "$as_me:$LINENO: WARNING: libudev.h: in the future, the compiler will take precedence" >&5
28977 $as_echo "$as_me: WARNING: libudev.h: in the future, the compiler will take precedence" >&2;}
28981 { $as_echo "$as_me:$LINENO: checking for libudev.h" >&5
28982 $as_echo_n "checking for libudev.h... " >&6; }
28983 if test "${ac_cv_header_libudev_h+set}" = set; then
28984 $as_echo_n "(cached) " >&6
28986 ac_cv_header_libudev_h=$ac_header_preproc
28988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libudev_h" >&5
28989 $as_echo "$ac_cv_header_libudev_h" >&6; }
28992 if test "x$ac_cv_header_libudev_h" = x""yes; then
28998 cat >>confdefs.h <<\_ACEOF
28999 #define HAVE_LIBUDEV 1
29011 { $as_echo "$as_me:$LINENO: checking for library containing udev_device_get_is_initialized" >&5
29012 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
29013 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29014 $as_echo_n "(cached) " >&6
29016 ac_func_search_save_LIBS=$LIBS
29017 cat >conftest.$ac_ext <<_ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h. */
29024 /* Override any GCC internal prototype to avoid an error.
29025 Use char because int might match the return type of a GCC
29026 builtin and then its argument prototype would still apply. */
29030 char udev_device_get_is_initialized ();
29034 return udev_device_get_is_initialized ();
29039 for ac_lib in '' udev; do
29040 if test -z "$ac_lib"; then
29041 ac_res="none required"
29044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29046 rm -f conftest.$ac_objext conftest$ac_exeext
29047 if { (ac_try="$ac_link"
29048 case "(($ac_try" in
29049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29050 *) ac_try_echo=$ac_try;;
29052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29053 $as_echo "$ac_try_echo") >&5
29054 (eval "$ac_link") 2>conftest.er1
29056 grep -v '^
*+' conftest.er1 >conftest.err
29058 cat conftest.err >&5
29059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); } && {
29061 test -z "$ac_c_werror_flag" ||
29062 test ! -s conftest.err
29063 } && test -s conftest$ac_exeext && {
29064 test "$cross_compiling" = yes ||
29065 $as_test_x conftest$ac_exeext
29067 ac_cv_search_udev_device_get_is_initialized=$ac_res
29069 $as_echo "$as_me: failed program was:" >&5
29070 sed 's
/^
/|
/' conftest.$ac_ext >&5
29075 rm -rf conftest.dSYM
29076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29078 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29082 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
29085 ac_cv_search_udev_device_get_is_initialized=no
29087 rm conftest.$ac_ext
29088 LIBS=$ac_func_search_save_LIBS
29090 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_udev_device_get_is_initialized" >&5
29091 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
29092 ac_res=$ac_cv_search_udev_device_get_is_initialized
29093 if test "$ac_res" != no; then
29094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29097 cat >>confdefs.h <<\_ACEOF
29098 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
29106 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
29107 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
29109 saved_flags="$CFLAGS"
29110 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29127 rm -f conftest.$ac_objext
29128 if { (ac_try="$ac_compile"
29129 case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29134 $as_echo "$ac_try_echo") >&5
29135 (eval "$ac_compile") 2>conftest.er1
29137 grep -v '^
*+' conftest.er1 >conftest.err
29139 cat conftest.err >&5
29140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } && {
29142 test -z "$ac_c_werror_flag" ||
29143 test ! -s conftest.err
29144 } && test -s conftest.$ac_objext; then
29146 FRAME_LARGER_THAN=-Wframe-larger-than=1024
29147 { $as_echo "$as_me:$LINENO: result: yes" >&5
29148 $as_echo "yes" >&6; }
29151 $as_echo "$as_me: failed program was:" >&5
29152 sed 's
/^
/|
/' conftest.$ac_ext >&5
29156 { $as_echo "$as_me:$LINENO: result: no" >&5
29157 $as_echo "no" >&6; }
29161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29163 CFLAGS="$saved_flags"
29167 if test "x$runstatedir" = x; then
29168 runstatedir='${localstatedir}/run
'
29173 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
29174 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
29175 cat >conftest.$ac_ext <<_ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h. */
29182 #include <sys/sysmacros.h>
29195 rm -f conftest.$ac_objext
29196 if { (ac_try="$ac_compile"
29197 case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29202 $as_echo "$ac_try_echo") >&5
29203 (eval "$ac_compile") 2>conftest.er1
29205 grep -v '^
*+' conftest.er1 >conftest.err
29207 cat conftest.err >&5
29208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); } && {
29210 test -z "$ac_c_werror_flag" ||
29211 test ! -s conftest.err
29212 } && test -s conftest.$ac_objext; then
29214 { $as_echo "$as_me:$LINENO: result: yes" >&5
29215 $as_echo "yes" >&6; }
29217 cat >>confdefs.h <<\_ACEOF
29218 #define HAVE_MAKEDEV_IN_SYSMACROS 1
29223 $as_echo "$as_me: failed program was:" >&5
29224 sed 's
/^
/|
/' conftest.$ac_ext >&5
29227 { $as_echo "$as_me:$LINENO: result: no" >&5
29228 $as_echo "no" >&6; }
29232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29235 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
29236 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
29237 cat >conftest.$ac_ext <<_ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h. */
29244 #include <sys/mkdev.h>
29257 rm -f conftest.$ac_objext
29258 if { (ac_try="$ac_compile"
29259 case "(($ac_try" in
29260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29261 *) ac_try_echo=$ac_try;;
29263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29264 $as_echo "$ac_try_echo") >&5
29265 (eval "$ac_compile") 2>conftest.er1
29267 grep -v '^
*+' conftest.er1 >conftest.err
29269 cat conftest.err >&5
29270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } && {
29272 test -z "$ac_c_werror_flag" ||
29273 test ! -s conftest.err
29274 } && test -s conftest.$ac_objext; then
29276 { $as_echo "$as_me:$LINENO: result: yes" >&5
29277 $as_echo "yes" >&6; }
29279 cat >>confdefs.h <<\_ACEOF
29280 #define HAVE_MAKEDEV_IN_MKDEV 1
29285 $as_echo "$as_me: failed program was:" >&5
29286 sed 's
/^
/|
/' conftest.$ac_ext >&5
29289 { $as_echo "$as_me:$LINENO: result: no" >&5
29290 $as_echo "no" >&6; }
29294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29297 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
29298 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
29300 saved_flags="$CFLAGS"
29301 CFLAGS="$CFLAGS -Wno-format-truncation"
29303 cat >conftest.$ac_ext <<_ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h. */
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29325 $as_echo "$ac_try_echo") >&5
29326 (eval "$ac_compile") 2>conftest.er1
29328 grep -v '^
*+' conftest.er1 >conftest.err
29330 cat conftest.err >&5
29331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332 (exit $ac_status); } && {
29333 test -z "$ac_c_werror_flag" ||
29334 test ! -s conftest.err
29335 } && test -s conftest.$ac_objext; then
29337 NO_FORMAT_TRUNCATION=-Wno-format-truncation
29338 { $as_echo "$as_me:$LINENO: result: yes" >&5
29339 $as_echo "yes" >&6; }
29342 $as_echo "$as_me: failed program was:" >&5
29343 sed 's
/^
/|
/' conftest.$ac_ext >&5
29346 NO_FORMAT_TRUNCATION=
29347 { $as_echo "$as_me:$LINENO: result: no" >&5
29348 $as_echo "no" >&6; }
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29354 CFLAGS="$saved_flags"
29359 ZONENAME="echo global"
29366 for ac_func in mlockall
29368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29369 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29370 $as_echo_n "checking for $ac_func... " >&6; }
29371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29372 $as_echo_n "(cached) " >&6
29374 cat >conftest.$ac_ext <<_ACEOF
29377 cat confdefs.h >>conftest.$ac_ext
29378 cat >>conftest.$ac_ext <<_ACEOF
29379 /* end confdefs.h. */
29380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29382 #define $ac_func innocuous_$ac_func
29384 /* System header to define __stub macros and hopefully few prototypes,
29385 which can conflict with char $ac_func (); below.
29386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29387 <limits.h> exists even on freestanding compilers. */
29390 # include <limits.h>
29392 # include <assert.h>
29397 /* Override any GCC internal prototype to avoid an error.
29398 Use char because int might match the return type of a GCC
29399 builtin and then its argument prototype would still apply. */
29404 /* The GNU C library defines this for functions which it implements
29405 to always fail with ENOSYS. Some functions are actually named
29406 something starting with __ and the normal name is an alias. */
29407 #if defined __stub_$ac_func || defined __stub___$ac_func
29414 return $ac_func ();
29419 rm -f conftest.$ac_objext conftest$ac_exeext
29420 if { (ac_try="$ac_link"
29421 case "(($ac_try" in
29422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29423 *) ac_try_echo=$ac_try;;
29425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29426 $as_echo "$ac_try_echo") >&5
29427 (eval "$ac_link") 2>conftest.er1
29429 grep -v '^
*+' conftest.er1 >conftest.err
29431 cat conftest.err >&5
29432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); } && {
29434 test -z "$ac_c_werror_flag" ||
29435 test ! -s conftest.err
29436 } && test -s conftest$ac_exeext && {
29437 test "$cross_compiling" = yes ||
29438 $as_test_x conftest$ac_exeext
29440 eval "$as_ac_var=yes"
29442 $as_echo "$as_me: failed program was:" >&5
29443 sed 's
/^
/|
/' conftest.$ac_ext >&5
29445 eval "$as_ac_var=no"
29448 rm -rf conftest.dSYM
29449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29450 conftest$ac_exeext conftest.$ac_ext
29452 ac_res=`eval 'as_val
=${'$as_ac_var'}
29453 $as_echo "$as_val"'`
29454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29455 $as_echo "$ac_res" >&6; }
29456 as_val=`eval 'as_val
=${'$as_ac_var'}
29457 $as_echo "$as_val"'`
29458 if test "x$as_val" = x""yes; then
29459 cat >>confdefs.h <<_ACEOF
29460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29470 # Check whether --with-mounthelperdir was given.
29471 if test "${with_mounthelperdir+set}" = set; then
29472 withval=$with_mounthelperdir; mounthelperdir=$withval
29474 mounthelperdir=/sbin
29481 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
29482 $as_echo_n "checking for udev directories... " >&6; }
29484 # Check whether --with-udevdir was given.
29485 if test "${with_udevdir+set}" = set; then
29486 withval=$with_udevdir; udevdir=$withval
29492 if test "x$udevdir" = xcheck; then
29495 path2=/usr/lib/udev
29498 if test -d "$path1"; then
29502 if test -d "$path2"; then
29516 # Check whether --with-udevruledir was given.
29517 if test "${with_udevruledir+set}" = set; then
29518 withval=$with_udevruledir; udevruledir=$withval
29520 udevruledir="${udevdir}/rules.d"
29526 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
29527 $as_echo "$udevdir;$udevruledir" >&6; }
29530 # Check whether --enable-systemd was given.
29531 if test "${enable_systemd+set}" = set; then
29532 enableval=$enable_systemd;
29539 # Check whether --with-systemdunitdir was given.
29540 if test "${with_systemdunitdir+set}" = set; then
29541 withval=$with_systemdunitdir; systemdunitdir=$withval
29543 systemdunitdir=/usr/lib/systemd/system
29548 # Check whether --with-systemdpresetdir was given.
29549 if test "${with_systemdpresetdir+set}" = set; then
29550 withval=$with_systemdpresetdir; systemdpresetdir=$withval
29552 systemdpresetdir=/usr/lib/systemd/system-preset
29557 # Check whether --with-systemdmodulesloaddir was given.
29558 if test "${with_systemdmodulesloaddir+set}" = set; then
29559 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
29561 systemdmodulesloaddir=/usr/lib/modules-load.d
29566 if test "x$enable_systemd" = xyes; then
29568 ZFS_INIT_SYSTEMD=systemd
29569 ZFS_MODULE_LOAD=modules-load.d
29570 modulesloaddir=$systemdmodulesloaddir
29582 # Check whether --enable-sysvinit was given.
29583 if test "${enable_sysvinit+set}" = set; then
29584 enableval=$enable_sysvinit;
29586 enable_sysvinit=yes
29590 if test "x$enable_sysvinit" = xyes; then
29591 ZFS_INIT_SYSV=init.d
29598 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
29599 $as_echo_n "checking for dracut directory... " >&6; }
29601 # Check whether --with-dracutdir was given.
29602 if test "${with_dracutdir+set}" = set; then
29603 withval=$with_dracutdir; dracutdir=$withval
29609 if test "x$dracutdir" = xcheck; then
29611 path1=/usr/share/dracut
29612 path2=/usr/lib/dracut
29615 if test -d "$path1"; then
29619 if test -d "$path2"; then
29622 dracutdir="$default"
29633 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
29634 $as_echo "$dracutdir" >&6; }
29639 if test "${ac_cv_header_zlib_h+set}" = set; then
29640 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29641 $as_echo_n "checking for zlib.h... " >&6; }
29642 if test "${ac_cv_header_zlib_h+set}" = set; then
29643 $as_echo_n "(cached) " >&6
29645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29646 $as_echo "$ac_cv_header_zlib_h" >&6; }
29648 # Is the header compilable?
29649 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
29650 $as_echo_n "checking zlib.h usability... " >&6; }
29651 cat >conftest.$ac_ext <<_ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h. */
29657 $ac_includes_default
29660 rm -f conftest.$ac_objext
29661 if { (ac_try="$ac_compile"
29662 case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29667 $as_echo "$ac_try_echo") >&5
29668 (eval "$ac_compile") 2>conftest.er1
29670 grep -v '^
*+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest.$ac_objext; then
29678 ac_header_compiler=yes
29680 $as_echo "$as_me: failed program was:" >&5
29681 sed 's
/^
/|
/' conftest.$ac_ext >&5
29683 ac_header_compiler=no
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688 $as_echo "$ac_header_compiler" >&6; }
29690 # Is the header present?
29691 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
29692 $as_echo_n "checking zlib.h presence... " >&6; }
29693 cat >conftest.$ac_ext <<_ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29701 if { (ac_try="$ac_cpp conftest.$ac_ext"
29702 case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29707 $as_echo "$ac_try_echo") >&5
29708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29710 grep -v '^
*+' conftest.er1 >conftest.err
29712 cat conftest.err >&5
29713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } >/dev/null && {
29715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29716 test ! -s conftest.err
29718 ac_header_preproc=yes
29720 $as_echo "$as_me: failed program was:" >&5
29721 sed 's
/^
/|
/' conftest.$ac_ext >&5
29723 ac_header_preproc=no
29726 rm -f conftest.err conftest.$ac_ext
29727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29728 $as_echo "$ac_header_preproc" >&6; }
29730 # So? What about this header?
29731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29733 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
29734 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29735 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
29736 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
29737 ac_header_preproc=yes
29740 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
29741 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
29742 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
29743 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
29744 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
29745 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
29746 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
29747 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
29748 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
29749 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
29750 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
29751 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
29755 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
29756 $as_echo_n "checking for zlib.h... " >&6; }
29757 if test "${ac_cv_header_zlib_h+set}" = set; then
29758 $as_echo_n "(cached) " >&6
29760 ac_cv_header_zlib_h=$ac_header_preproc
29762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29763 $as_echo "$ac_cv_header_zlib_h" >&6; }
29766 if test "x$ac_cv_header_zlib_h" = x""yes; then
29769 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29770 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
29771 { { $as_echo "$as_me:$LINENO: error:
29772 *** zlib.h missing, zlib-devel package required
29773 See \`config.log
' for more details." >&5
29774 $as_echo "$as_me: error:
29775 *** zlib.h missing, zlib-devel package required
29776 See \`config.log' for more details.
" >&2;}
29777 { (exit 1); exit 1; }; }; }
29782 { $as_echo "$as_me:$LINENO: checking
for library containing compress2
" >&5
29783 $as_echo_n "checking
for library containing compress2...
" >&6; }
29784 if test "${ac_cv_search_compress2+set}" = set; then
29785 $as_echo_n "(cached
) " >&6
29787 ac_func_search_save_LIBS=$LIBS
29788 cat >conftest.$ac_ext <<_ACEOF
29791 cat confdefs.h >>conftest.$ac_ext
29792 cat >>conftest.$ac_ext <<_ACEOF
29793 /* end confdefs.h. */
29795 /* Override any GCC internal prototype to avoid an error.
29796 Use char because int might match the return type of a GCC
29797 builtin and then its argument prototype would still apply. */
29805 return compress2 ();
29810 for ac_lib in '' z; do
29811 if test -z "$ac_lib"; then
29812 ac_res="none required
"
29815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29817 rm -f conftest.$ac_objext conftest$ac_exeext
29818 if { (ac_try="$ac_link"
29819 case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29823 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
29824 $as_echo "$ac_try_echo") >&5
29825 (eval "$ac_link") 2>conftest.er1
29827 grep -v '^ *+' conftest.er1 >conftest.err
29829 cat conftest.err >&5
29830 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
29831 (exit $ac_status); } && {
29832 test -z "$ac_c_werror_flag" ||
29833 test ! -s conftest.err
29834 } && test -s conftest$ac_exeext && {
29835 test "$cross_compiling" = yes ||
29836 $as_test_x conftest$ac_exeext
29838 ac_cv_search_compress2=$ac_res
29840 $as_echo "$as_me: failed program was
:" >&5
29841 sed 's/^/| /' conftest.$ac_ext >&5
29846 rm -rf conftest.dSYM
29847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29849 if test "${ac_cv_search_compress2+set}" = set; then
29853 if test "${ac_cv_search_compress2+set}" = set; then
29856 ac_cv_search_compress2=no
29858 rm conftest.$ac_ext
29859 LIBS=$ac_func_search_save_LIBS
29861 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_compress2" >&5
29862 $as_echo "$ac_cv_search_compress2" >&6; }
29863 ac_res=$ac_cv_search_compress2
29864 if test "$ac_res" != no; then
29865 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
29868 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
29869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29870 { { $as_echo "$as_me:$LINENO: error:
29871 *** compress2() missing, zlib-devel package required
29872 See \`config.log' for more details.
" >&5
29873 $as_echo "$as_me: error
:
29874 *** compress2
() missing
, zlib-devel package required
29875 See \
`config.log' for more details." >&2;}
29876 { (exit 1); exit 1; }; }; }
29880 { $as_echo "$as_me:$LINENO: checking for library containing uncompress" >&5
29881 $as_echo_n "checking for library containing uncompress... " >&6; }
29882 if test "${ac_cv_search_uncompress+set}" = set; then
29883 $as_echo_n "(cached) " >&6
29885 ac_func_search_save_LIBS=$LIBS
29886 cat >conftest.$ac_ext <<_ACEOF
29889 cat confdefs.h >>conftest.$ac_ext
29890 cat >>conftest.$ac_ext <<_ACEOF
29891 /* end confdefs.h. */
29893 /* Override any GCC internal prototype to avoid an error.
29894 Use char because int might match the return type of a GCC
29895 builtin and then its argument prototype would still apply. */
29899 char uncompress ();
29903 return uncompress ();
29908 for ac_lib in '' z; do
29909 if test -z "$ac_lib"; then
29910 ac_res="none required"
29913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29915 rm -f conftest.$ac_objext conftest$ac_exeext
29916 if { (ac_try="$ac_link"
29917 case "(($ac_try" in
29918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29919 *) ac_try_echo
=$ac_try;;
29921 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29922 $as_echo "$ac_try_echo") >&5
29923 (eval "$ac_link") 2>conftest.er1
29925 grep -v '^ *+' conftest.er1
>conftest.err
29927 cat conftest.err
>&5
29928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } && {
29930 test -z "$ac_c_werror_flag" ||
29931 test ! -s conftest.err
29932 } && test -s conftest
$ac_exeext && {
29933 test "$cross_compiling" = yes ||
29934 $as_test_x conftest
$ac_exeext
29936 ac_cv_search_uncompress
=$ac_res
29938 $as_echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.
$ac_ext >&5
29944 rm -rf conftest.dSYM
29945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
29947 if test "${ac_cv_search_uncompress+set}" = set; then
29951 if test "${ac_cv_search_uncompress+set}" = set; then
29954 ac_cv_search_uncompress
=no
29956 rm conftest.
$ac_ext
29957 LIBS
=$ac_func_search_save_LIBS
29959 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uncompress" >&5
29960 $as_echo "$ac_cv_search_uncompress" >&6; }
29961 ac_res
=$ac_cv_search_uncompress
29962 if test "$ac_res" != no
; then
29963 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29968 { { $as_echo "$as_me:$LINENO: error:
29969 *** uncompress() missing, zlib-devel package required
29970 See \`config.log' for more details." >&5
29971 $as_echo "$as_me: error:
29972 *** uncompress() missing, zlib-devel package required
29973 See \`config.log' for more details." >&2;}
29974 { (exit 1); exit 1; }; }; }
29978 { $as_echo "$as_me:$LINENO: checking for library containing crc32" >&5
29979 $as_echo_n "checking for library containing crc32... " >&6; }
29980 if test "${ac_cv_search_crc32+set}" = set; then
29981 $as_echo_n "(cached) " >&6
29983 ac_func_search_save_LIBS
=$LIBS
29984 cat >conftest.
$ac_ext <<_ACEOF
29987 cat confdefs.h
>>conftest.
$ac_ext
29988 cat >>conftest.
$ac_ext <<_ACEOF
29989 /* end confdefs.h. */
29991 /* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
30006 for ac_lib
in '' z
; do
30007 if test -z "$ac_lib"; then
30008 ac_res
="none required"
30011 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30013 rm -f conftest.
$ac_objext conftest
$ac_exeext
30014 if { (ac_try
="$ac_link"
30015 case "(($ac_try" in
30016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30020 $as_echo "$ac_try_echo") >&5
30021 (eval "$ac_link") 2>conftest.er1
30023 grep -v '^ *+' conftest.er1 >conftest.err
30025 cat conftest.err >&5
30026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); } && {
30028 test -z "$ac_c_werror_flag" ||
30029 test ! -s conftest.err
30030 } && test -s conftest$ac_exeext && {
30031 test "$cross_compiling" = yes ||
30032 $as_test_x conftest$ac_exeext
30034 ac_cv_search_crc32=$ac_res
30036 $as_echo "$as_me: failed program was:" >&5
30037 sed 's/^/| /' conftest.$ac_ext >&5
30042 rm -rf conftest.dSYM
30043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30045 if test "${ac_cv_search_crc32+set}" = set; then
30049 if test "${ac_cv_search_crc32+set}" = set; then
30052 ac_cv_search_crc32=no
30054 rm conftest.$ac_ext
30055 LIBS=$ac_func_search_save_LIBS
30057 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crc32" >&5
30058 $as_echo "$ac_cv_search_crc32" >&6; }
30059 ac_res=$ac_cv_search_crc32
30060 if test "$ac_res" != no; then
30061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30064 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30066 { { $as_echo "$as_me:$LINENO: error
:
30067 *** crc32
() missing
, zlib-devel package required
30068 See \
`config.log' for more details." >&5
30069 $as_echo "$as_me: error:
30070 *** crc32() missing, zlib-devel package required
30071 See \`config.log
' for more details." >&2;}
30072 { (exit 1); exit 1; }; }; }
30079 cat >>confdefs.h <<\_ACEOF
30080 #define HAVE_ZLIB 1
30087 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30088 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30089 $as_echo_n "checking for uuid/uuid.h... " >&6; }
30090 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30091 $as_echo_n "(cached) " >&6
30093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30094 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30096 # Is the header compilable?
30097 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
30098 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
30099 cat >conftest.$ac_ext <<_ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30105 $ac_includes_default
30106 #include <uuid/uuid.h>
30108 rm -f conftest.$ac_objext
30109 if { (ac_try="$ac_compile"
30110 case "(($ac_try" in
30111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30112 *) ac_try_echo=$ac_try;;
30114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30115 $as_echo "$ac_try_echo") >&5
30116 (eval "$ac_compile") 2>conftest.er1
30118 grep -v '^
*+' conftest.er1 >conftest.err
30120 cat conftest.err >&5
30121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } && {
30123 test -z "$ac_c_werror_flag" ||
30124 test ! -s conftest.err
30125 } && test -s conftest.$ac_objext; then
30126 ac_header_compiler=yes
30128 $as_echo "$as_me: failed program was:" >&5
30129 sed 's
/^
/|
/' conftest.$ac_ext >&5
30131 ac_header_compiler=no
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30136 $as_echo "$ac_header_compiler" >&6; }
30138 # Is the header present?
30139 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
30140 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
30141 cat >conftest.$ac_ext <<_ACEOF
30144 cat confdefs.h >>conftest.$ac_ext
30145 cat >>conftest.$ac_ext <<_ACEOF
30146 /* end confdefs.h. */
30147 #include <uuid/uuid.h>
30149 if { (ac_try="$ac_cpp conftest.$ac_ext"
30150 case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30155 $as_echo "$ac_try_echo") >&5
30156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30158 grep -v '^
*+' conftest.er1 >conftest.err
30160 cat conftest.err >&5
30161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30162 (exit $ac_status); } >/dev/null && {
30163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30164 test ! -s conftest.err
30166 ac_header_preproc=yes
30168 $as_echo "$as_me: failed program was:" >&5
30169 sed 's
/^
/|
/' conftest.$ac_ext >&5
30171 ac_header_preproc=no
30174 rm -f conftest.err conftest.$ac_ext
30175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30176 $as_echo "$ac_header_preproc" >&6; }
30178 # So? What about this header?
30179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30181 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30182 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30183 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
30184 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
30185 ac_header_preproc=yes
30188 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
30189 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
30190 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
30191 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
30192 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
30193 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
30194 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
30195 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30196 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
30197 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
30198 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
30199 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
30203 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
30204 $as_echo_n "checking for uuid/uuid.h... " >&6; }
30205 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
30206 $as_echo_n "(cached) " >&6
30208 ac_cv_header_uuid_uuid_h=$ac_header_preproc
30210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
30211 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
30214 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
30217 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30218 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
30219 { { $as_echo "$as_me:$LINENO: error:
30220 *** uuid/uuid.h missing, libuuid-devel package required
30221 See \`config.log
' for more details." >&5
30222 $as_echo "$as_me: error:
30223 *** uuid/uuid.h missing, libuuid-devel package required
30224 See \`config.log' for more details.
" >&2;}
30225 { (exit 1); exit 1; }; }; }
30230 { $as_echo "$as_me:$LINENO: checking
for library containing uuid_generate
" >&5
30231 $as_echo_n "checking
for library containing uuid_generate...
" >&6; }
30232 if test "${ac_cv_search_uuid_generate+set}" = set; then
30233 $as_echo_n "(cached
) " >&6
30235 ac_func_search_save_LIBS=$LIBS
30236 cat >conftest.$ac_ext <<_ACEOF
30239 cat confdefs.h >>conftest.$ac_ext
30240 cat >>conftest.$ac_ext <<_ACEOF
30241 /* end confdefs.h. */
30243 /* Override any GCC internal prototype to avoid an error.
30244 Use char because int might match the return type of a GCC
30245 builtin and then its argument prototype would still apply. */
30249 char uuid_generate ();
30253 return uuid_generate ();
30258 for ac_lib in '' uuid; do
30259 if test -z "$ac_lib"; then
30260 ac_res="none required
"
30263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30265 rm -f conftest.$ac_objext conftest$ac_exeext
30266 if { (ac_try="$ac_link"
30267 case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30271 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30272 $as_echo "$ac_try_echo") >&5
30273 (eval "$ac_link") 2>conftest.er1
30275 grep -v '^ *+' conftest.er1 >conftest.err
30277 cat conftest.err >&5
30278 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30279 (exit $ac_status); } && {
30280 test -z "$ac_c_werror_flag" ||
30281 test ! -s conftest.err
30282 } && test -s conftest$ac_exeext && {
30283 test "$cross_compiling" = yes ||
30284 $as_test_x conftest$ac_exeext
30286 ac_cv_search_uuid_generate=$ac_res
30288 $as_echo "$as_me: failed program was
:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30294 rm -rf conftest.dSYM
30295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30297 if test "${ac_cv_search_uuid_generate+set}" = set; then
30301 if test "${ac_cv_search_uuid_generate+set}" = set; then
30304 ac_cv_search_uuid_generate=no
30306 rm conftest.$ac_ext
30307 LIBS=$ac_func_search_save_LIBS
30309 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_uuid_generate" >&5
30310 $as_echo "$ac_cv_search_uuid_generate" >&6; }
30311 ac_res=$ac_cv_search_uuid_generate
30312 if test "$ac_res" != no; then
30313 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
30316 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
30317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30318 { { $as_echo "$as_me:$LINENO: error:
30319 *** uuid_generate() missing, libuuid-devel package required
30320 See \`config.log' for more details.
" >&5
30321 $as_echo "$as_me: error
:
30322 *** uuid_generate
() missing
, libuuid-devel package required
30323 See \
`config.log' for more details." >&2;}
30324 { (exit 1); exit 1; }; }; }
30328 { $as_echo "$as_me:$LINENO: checking for library containing uuid_is_null" >&5
30329 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
30330 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30331 $as_echo_n "(cached) " >&6
30333 ac_func_search_save_LIBS=$LIBS
30334 cat >conftest.$ac_ext <<_ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h. */
30341 /* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
30347 char uuid_is_null ();
30351 return uuid_is_null ();
30356 for ac_lib in '' uuid; do
30357 if test -z "$ac_lib"; then
30358 ac_res="none required"
30361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30363 rm -f conftest.$ac_objext conftest$ac_exeext
30364 if { (ac_try="$ac_link"
30365 case "(($ac_try" in
30366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30367 *) ac_try_echo
=$ac_try;;
30369 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30370 $as_echo "$ac_try_echo") >&5
30371 (eval "$ac_link") 2>conftest.er1
30373 grep -v '^ *+' conftest.er1
>conftest.err
30375 cat conftest.err
>&5
30376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); } && {
30378 test -z "$ac_c_werror_flag" ||
30379 test ! -s conftest.err
30380 } && test -s conftest
$ac_exeext && {
30381 test "$cross_compiling" = yes ||
30382 $as_test_x conftest
$ac_exeext
30384 ac_cv_search_uuid_is_null
=$ac_res
30386 $as_echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.
$ac_ext >&5
30392 rm -rf conftest.dSYM
30393 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
30395 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30399 if test "${ac_cv_search_uuid_is_null+set}" = set; then
30402 ac_cv_search_uuid_is_null
=no
30404 rm conftest.
$ac_ext
30405 LIBS
=$ac_func_search_save_LIBS
30407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_uuid_is_null" >&5
30408 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
30409 ac_res
=$ac_cv_search_uuid_is_null
30410 if test "$ac_res" != no
; then
30411 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30414 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30416 { { $as_echo "$as_me:$LINENO: error:
30417 *** uuid_is_null() missing, libuuid-devel package required
30418 See \`config.log' for more details." >&5
30419 $as_echo "$as_me: error:
30420 *** uuid_is_null() missing, libuuid-devel package required
30421 See \`config.log' for more details." >&2;}
30422 { (exit 1); exit 1; }; }; }
30429 cat >>confdefs.h
<<\_ACEOF
30430 #define HAVE_LIBUUID 1
30436 # Check whether --with-tirpc was given.
30437 if test "${with_tirpc+set}" = set; then
30438 withval
=$with_tirpc;
30447 if test "x$with_tirpc" != xno
; then
30448 { $as_echo "$as_me:$LINENO: checking for xdrmem_create in -ltirpc" >&5
30449 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
30450 if test "${ac_cv_lib_tirpc_xdrmem_create+set}" = set; then
30451 $as_echo_n "(cached) " >&6
30453 ac_check_lib_save_LIBS
=$LIBS
30454 LIBS
="-ltirpc $LIBS"
30455 cat >conftest.
$ac_ext <<_ACEOF
30458 cat confdefs.h
>>conftest.
$ac_ext
30459 cat >>conftest.
$ac_ext <<_ACEOF
30460 /* end confdefs.h. */
30462 /* Override any GCC internal prototype to avoid an error.
30463 Use char because int might match the return type of a GCC
30464 builtin and then its argument prototype would still apply. */
30468 char xdrmem_create ();
30472 return xdrmem_create ();
30477 rm -f conftest.
$ac_objext conftest
$ac_exeext
30478 if { (ac_try
="$ac_link"
30479 case "(($ac_try" in
30480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30481 *) ac_try_echo=$ac_try;;
30483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30484 $as_echo "$ac_try_echo") >&5
30485 (eval "$ac_link") 2>conftest.er1
30487 grep -v '^ *+' conftest.er1 >conftest.err
30489 cat conftest.err >&5
30490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest$ac_exeext && {
30495 test "$cross_compiling" = yes ||
30496 $as_test_x conftest$ac_exeext
30498 ac_cv_lib_tirpc_xdrmem_create=yes
30500 $as_echo "$as_me: failed program was:" >&5
30501 sed 's/^/| /' conftest.$ac_ext >&5
30503 ac_cv_lib_tirpc_xdrmem_create=no
30506 rm -rf conftest.dSYM
30507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30508 conftest$ac_exeext conftest.$ac_ext
30509 LIBS=$ac_check_lib_save_LIBS
30511 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
30512 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
30513 if test "x$ac_cv_lib_tirpc_xdrmem_create" = x""yes; then
30516 LIBTIRPC_CFLAGS=-I/usr/include/tirpc
30519 cat >>confdefs.h <<\_ACEOF
30520 #define HAVE_LIBTIRPC 1
30525 if test "x$with_tirpc" != xcheck; then
30526 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30528 { { $as_echo "$as_me:$LINENO: error
: --with-tirpc was given
, but
test for tirpc failed
30529 See \
`config.log' for more details." >&5
30530 $as_echo "$as_me: error: --with-tirpc was given, but test for tirpc failed
30531 See \`config.log
' for more details." >&2;}
30532 { (exit 1); exit 1; }; }; }
30534 { $as_echo "$as_me:$LINENO: checking for library containing xdrmem_create" >&5
30535 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
30536 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30537 $as_echo_n "(cached) " >&6
30539 ac_func_search_save_LIBS=$LIBS
30540 cat >conftest.$ac_ext <<_ACEOF
30543 cat confdefs.h >>conftest.$ac_ext
30544 cat >>conftest.$ac_ext <<_ACEOF
30545 /* end confdefs.h. */
30547 /* Override any GCC internal prototype to avoid an error.
30548 Use char because int might match the return type of a GCC
30549 builtin and then its argument prototype would still apply. */
30553 char xdrmem_create ();
30557 return xdrmem_create ();
30562 for ac_lib in '' tirpc; do
30563 if test -z "$ac_lib"; then
30564 ac_res="none required"
30567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30569 rm -f conftest.$ac_objext conftest$ac_exeext
30570 if { (ac_try="$ac_link"
30571 case "(($ac_try" in
30572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30573 *) ac_try_echo=$ac_try;;
30575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30576 $as_echo "$ac_try_echo") >&5
30577 (eval "$ac_link") 2>conftest.er1
30579 grep -v '^
*+' conftest.er1 >conftest.err
30581 cat conftest.err >&5
30582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); } && {
30584 test -z "$ac_c_werror_flag" ||
30585 test ! -s conftest.err
30586 } && test -s conftest$ac_exeext && {
30587 test "$cross_compiling" = yes ||
30588 $as_test_x conftest$ac_exeext
30590 ac_cv_search_xdrmem_create=$ac_res
30592 $as_echo "$as_me: failed program was:" >&5
30593 sed 's
/^
/|
/' conftest.$ac_ext >&5
30598 rm -rf conftest.dSYM
30599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30601 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30605 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30608 ac_cv_search_xdrmem_create=no
30610 rm conftest.$ac_ext
30611 LIBS=$ac_func_search_save_LIBS
30613 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_xdrmem_create" >&5
30614 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30615 ac_res=$ac_cv_search_xdrmem_create
30616 if test "$ac_res" != no; then
30617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30622 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
30623 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires tirpc or libc
30624 See \`config.log
' for more details." >&5
30625 $as_echo "$as_me: error: xdrmem_create() requires tirpc or libc
30626 See \`config.log' for more details.
" >&2;}
30627 { (exit 1); exit 1; }; }; }
30634 { $as_echo "$as_me:$LINENO: checking
for library containing xdrmem_create
" >&5
30635 $as_echo_n "checking
for library containing xdrmem_create...
" >&6; }
30636 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30637 $as_echo_n "(cached
) " >&6
30639 ac_func_search_save_LIBS=$LIBS
30640 cat >conftest.$ac_ext <<_ACEOF
30643 cat confdefs.h >>conftest.$ac_ext
30644 cat >>conftest.$ac_ext <<_ACEOF
30645 /* end confdefs.h. */
30647 /* Override any GCC internal prototype to avoid an error.
30648 Use char because int might match the return type of a GCC
30649 builtin and then its argument prototype would still apply. */
30653 char xdrmem_create ();
30657 return xdrmem_create ();
30662 for ac_lib in '' tirpc; do
30663 if test -z "$ac_lib"; then
30664 ac_res="none required
"
30667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30669 rm -f conftest.$ac_objext conftest$ac_exeext
30670 if { (ac_try="$ac_link"
30671 case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30675 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
30676 $as_echo "$ac_try_echo") >&5
30677 (eval "$ac_link") 2>conftest.er1
30679 grep -v '^ *+' conftest.er1 >conftest.err
30681 cat conftest.err >&5
30682 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
30683 (exit $ac_status); } && {
30684 test -z "$ac_c_werror_flag" ||
30685 test ! -s conftest.err
30686 } && test -s conftest$ac_exeext && {
30687 test "$cross_compiling" = yes ||
30688 $as_test_x conftest$ac_exeext
30690 ac_cv_search_xdrmem_create=$ac_res
30692 $as_echo "$as_me: failed program was
:" >&5
30693 sed 's/^/| /' conftest.$ac_ext >&5
30698 rm -rf conftest.dSYM
30699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30701 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30705 if test "${ac_cv_search_xdrmem_create+set}" = set; then
30708 ac_cv_search_xdrmem_create=no
30710 rm conftest.$ac_ext
30711 LIBS=$ac_func_search_save_LIBS
30713 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_xdrmem_create" >&5
30714 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
30715 ac_res=$ac_cv_search_xdrmem_create
30716 if test "$ac_res" != no; then
30717 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
30721 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
30722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30723 { { $as_echo "$as_me:$LINENO: error: xdrmem_create() requires libc
30724 See \`config.log' for more details.
" >&5
30725 $as_echo "$as_me: error
: xdrmem_create
() requires libc
30726 See \
`config.log' for more details." >&2;}
30727 { (exit 1); exit 1; }; }; }
30737 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30738 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30739 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30740 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30741 $as_echo_n "(cached) " >&6
30743 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30744 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30746 # Is the header compilable?
30747 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h usability" >&5
30748 $as_echo_n "checking blkid/blkid.h usability... " >&6; }
30749 cat >conftest.$ac_ext <<_ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h. */
30755 $ac_includes_default
30756 #include <blkid/blkid.h>
30758 rm -f conftest.$ac_objext
30759 if { (ac_try="$ac_compile"
30760 case "(($ac_try" in
30761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
30762 *) ac_try_echo
=$ac_try;;
30764 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
30765 $as_echo "$ac_try_echo") >&5
30766 (eval "$ac_compile") 2>conftest.er1
30768 grep -v '^ *+' conftest.er1
>conftest.err
30770 cat conftest.err
>&5
30771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); } && {
30773 test -z "$ac_c_werror_flag" ||
30774 test ! -s conftest.err
30775 } && test -s conftest.
$ac_objext; then
30776 ac_header_compiler
=yes
30778 $as_echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.
$ac_ext >&5
30781 ac_header_compiler
=no
30784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30785 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30786 $as_echo "$ac_header_compiler" >&6; }
30788 # Is the header present?
30789 { $as_echo "$as_me:$LINENO: checking blkid/blkid.h presence" >&5
30790 $as_echo_n "checking blkid/blkid.h presence... " >&6; }
30791 cat >conftest.
$ac_ext <<_ACEOF
30794 cat confdefs.h
>>conftest.
$ac_ext
30795 cat >>conftest.
$ac_ext <<_ACEOF
30796 /* end confdefs.h. */
30797 #include <blkid/blkid.h>
30799 if { (ac_try
="$ac_cpp conftest.$ac_ext"
30800 case "(($ac_try" in
30801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
30802 *) ac_try_echo=$ac_try;;
30804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30805 $as_echo "$ac_try_echo") >&5
30806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30808 grep -v '^ *+' conftest.er1 >conftest.err
30810 cat conftest.err >&5
30811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } >/dev/null && {
30813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30814 test ! -s conftest.err
30816 ac_header_preproc=yes
30818 $as_echo "$as_me: failed program was:" >&5
30819 sed 's/^/| /' conftest.$ac_ext >&5
30821 ac_header_preproc=no
30824 rm -f conftest.err conftest.$ac_ext
30825 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30826 $as_echo "$ac_header_preproc" >&6; }
30828 # So? What about this header?
30829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30831 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&5
30832 $as_echo "$as_me: WARNING: blkid/blkid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30833 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&5
30834 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the compiler's result" >&2;}
30835 ac_header_preproc=yes
30838 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: present but cannot be compiled" >&5
30839 $as_echo "$as_me: WARNING: blkid/blkid.h: present but cannot be compiled" >&2;}
30840 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&5
30841 $as_echo "$as_me: WARNING: blkid/blkid.h: check for missing prerequisite headers?" >&2;}
30842 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: see the Autoconf documentation" >&5
30843 $as_echo "$as_me: WARNING: blkid/blkid.h: see the Autoconf documentation" >&2;}
30844 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&5
30845 $as_echo "$as_me: WARNING: blkid/blkid.h: section \"Present But Cannot Be Compiled\"" >&2;}
30846 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&5
30847 $as_echo "$as_me: WARNING: blkid/blkid.h: proceeding with the preprocessor's result" >&2;}
30848 { $as_echo "$as_me:$LINENO: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&5
30849 $as_echo "$as_me: WARNING: blkid/blkid.h: in the future, the compiler will take precedence" >&2;}
30853 { $as_echo "$as_me:$LINENO: checking for blkid/blkid.h" >&5
30854 $as_echo_n "checking for blkid/blkid.h... " >&6; }
30855 if test "${ac_cv_header_blkid_blkid_h+set}" = set; then
30856 $as_echo_n "(cached) " >&6
30858 ac_cv_header_blkid_blkid_h=$ac_header_preproc
30860 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_blkid_blkid_h" >&5
30861 $as_echo "$ac_cv_header_blkid_blkid_h" >&6; }
30864 if test "x$ac_cv_header_blkid_blkid_h" = x""yes; then
30867 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30869 { { $as_echo "$as_me:$LINENO: error
:
30870 *** blkid.h missing
, libblkid-devel package required
30871 See \
`config.log' for more details." >&5
30872 $as_echo "$as_me: error:
30873 *** blkid.h missing, libblkid-devel package required
30874 See \`config.log
' for more details." >&2;}
30875 { (exit 1); exit 1; }; }; }
30883 cat >>confdefs.h <<\_ACEOF
30884 #define HAVE_LIBBLKID 1
30891 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30892 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
30893 $as_echo_n "checking for attr/xattr.h... " >&6; }
30894 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
30895 $as_echo_n "(cached) " >&6
30897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
30898 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
30900 # Is the header compilable?
30901 { $as_echo "$as_me:$LINENO: checking attr/xattr.h usability" >&5
30902 $as_echo_n "checking attr/xattr.h usability... " >&6; }
30903 cat >conftest.$ac_ext <<_ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h. */
30909 $ac_includes_default
30910 #include <attr/xattr.h>
30912 rm -f conftest.$ac_objext
30913 if { (ac_try="$ac_compile"
30914 case "(($ac_try" in
30915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30916 *) ac_try_echo=$ac_try;;
30918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30919 $as_echo "$ac_try_echo") >&5
30920 (eval "$ac_compile") 2>conftest.er1
30922 grep -v '^
*+' conftest.er1 >conftest.err
30924 cat conftest.err >&5
30925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926 (exit $ac_status); } && {
30927 test -z "$ac_c_werror_flag" ||
30928 test ! -s conftest.err
30929 } && test -s conftest.$ac_objext; then
30930 ac_header_compiler=yes
30932 $as_echo "$as_me: failed program was:" >&5
30933 sed 's
/^
/|
/' conftest.$ac_ext >&5
30935 ac_header_compiler=no
30938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30939 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30940 $as_echo "$ac_header_compiler" >&6; }
30942 # Is the header present?
30943 { $as_echo "$as_me:$LINENO: checking attr/xattr.h presence" >&5
30944 $as_echo_n "checking attr/xattr.h presence... " >&6; }
30945 cat >conftest.$ac_ext <<_ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h. */
30951 #include <attr/xattr.h>
30953 if { (ac_try="$ac_cpp conftest.$ac_ext"
30954 case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30959 $as_echo "$ac_try_echo") >&5
30960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30962 grep -v '^
*+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } >/dev/null && {
30967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30968 test ! -s conftest.err
30970 ac_header_preproc=yes
30972 $as_echo "$as_me: failed program was:" >&5
30973 sed 's
/^
/|
/' conftest.$ac_ext >&5
30975 ac_header_preproc=no
30978 rm -f conftest.err conftest.$ac_ext
30979 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30980 $as_echo "$ac_header_preproc" >&6; }
30982 # So? What about this header?
30983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30985 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
30986 $as_echo "$as_me: WARNING: attr/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30987 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the compiler's result
" >&5
30988 $as_echo "$as_me: WARNING
: attr
/xattr.h
: proceeding with the compiler
's result" >&2;}
30989 ac_header_preproc=yes
30992 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: present but cannot be compiled" >&5
30993 $as_echo "$as_me: WARNING: attr/xattr.h: present but cannot be compiled" >&2;}
30994 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&5
30995 $as_echo "$as_me: WARNING: attr/xattr.h: check for missing prerequisite headers?" >&2;}
30996 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: see the Autoconf documentation" >&5
30997 $as_echo "$as_me: WARNING: attr/xattr.h: see the Autoconf documentation" >&2;}
30998 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
30999 $as_echo "$as_me: WARNING: attr/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
31000 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: proceeding with the preprocessor's result
" >&5
31001 $as_echo "$as_me: WARNING
: attr
/xattr.h
: proceeding with the preprocessor
's result" >&2;}
31002 { $as_echo "$as_me:$LINENO: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&5
31003 $as_echo "$as_me: WARNING: attr/xattr.h: in the future, the compiler will take precedence" >&2;}
31007 { $as_echo "$as_me:$LINENO: checking for attr/xattr.h" >&5
31008 $as_echo_n "checking for attr/xattr.h... " >&6; }
31009 if test "${ac_cv_header_attr_xattr_h+set}" = set; then
31010 $as_echo_n "(cached) " >&6
31012 ac_cv_header_attr_xattr_h=$ac_header_preproc
31014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_attr_xattr_h" >&5
31015 $as_echo "$ac_cv_header_attr_xattr_h" >&6; }
31018 if test "x$ac_cv_header_attr_xattr_h" = x""yes; then
31021 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31022 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
31023 { { $as_echo "$as_me:$LINENO: error:
31024 *** attr/xattr.h missing, libattr-devel package required
31025 See \`config.log
' for more details." >&5
31026 $as_echo "$as_me: error:
31027 *** attr/xattr.h missing, libattr-devel package required
31028 See \`config.log' for more details.
" >&2;}
31029 { (exit 1); exit 1; }; }; }
31037 cat >>confdefs.h <<\_ACEOF
31038 #define HAVE_LIBATTR 1
31045 if test "${ac_cv_header_libudev_h+set}" = set; then
31046 { $as_echo "$as_me:$LINENO: checking
for libudev.h
" >&5
31047 $as_echo_n "checking
for libudev.h...
" >&6; }
31048 if test "${ac_cv_header_libudev_h+set}" = set; then
31049 $as_echo_n "(cached
) " >&6
31051 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libudev_h" >&5
31052 $as_echo "$ac_cv_header_libudev_h" >&6; }
31054 # Is the header compilable?
31055 { $as_echo "$as_me:$LINENO: checking libudev.h usability
" >&5
31056 $as_echo_n "checking libudev.h usability...
" >&6; }
31057 cat >conftest.$ac_ext <<_ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31063 $ac_includes_default
31064 #include <libudev.h>
31066 rm -f conftest.$ac_objext
31067 if { (ac_try="$ac_compile"
31068 case "(($ac_try" in
31069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070 *) ac_try_echo=$ac_try;;
31072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31073 $as_echo "$ac_try_echo") >&5
31074 (eval "$ac_compile") 2>conftest.er1
31076 grep -v '^ *+' conftest.er1 >conftest.err
31078 cat conftest.err >&5
31079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31080 (exit $ac_status); } && {
31081 test -z "$ac_c_werror_flag" ||
31082 test ! -s conftest.err
31083 } && test -s conftest.$ac_objext; then
31084 ac_header_compiler=yes
31086 $as_echo "$as_me: failed program was
:" >&5
31087 sed 's/^/| /' conftest.$ac_ext >&5
31089 ac_header_compiler=no
31092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31093 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
31094 $as_echo "$ac_header_compiler" >&6; }
31096 # Is the header present?
31097 { $as_echo "$as_me:$LINENO: checking libudev.h presence
" >&5
31098 $as_echo_n "checking libudev.h presence...
" >&6; }
31099 cat >conftest.$ac_ext <<_ACEOF
31102 cat confdefs.h >>conftest.$ac_ext
31103 cat >>conftest.$ac_ext <<_ACEOF
31104 /* end confdefs.h. */
31105 #include <libudev.h>
31107 if { (ac_try="$ac_cpp conftest.
$ac_ext"
31108 case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31112 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31113 $as_echo "$ac_try_echo") >&5
31114 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
31116 grep -v '^ *+' conftest.er1 >conftest.err
31118 cat conftest.err >&5
31119 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31120 (exit $ac_status); } >/dev/null && {
31121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31122 test ! -s conftest.err
31124 ac_header_preproc=yes
31126 $as_echo "$as_me: failed program was
:" >&5
31127 sed 's/^/| /' conftest.$ac_ext >&5
31129 ac_header_preproc=no
31132 rm -f conftest.err conftest.$ac_ext
31133 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
31134 $as_echo "$ac_header_preproc" >&6; }
31136 # So? What about this header?
31137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31139 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
31140 $as_echo "$as_me: WARNING
: libudev.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
31141 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: proceeding with the compiler
's result" >&5
31142 $as_echo "$as_me: WARNING: libudev.h: proceeding with the compiler's result
" >&2;}
31143 ac_header_preproc=yes
31146 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: present but cannot be compiled
" >&5
31147 $as_echo "$as_me: WARNING
: libudev.h
: present but cannot be compiled
" >&2;}
31148 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: check
for missing prerequisite headers?
" >&5
31149 $as_echo "$as_me: WARNING
: libudev.h
: check
for missing prerequisite headers?
" >&2;}
31150 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: see the Autoconf documentation
" >&5
31151 $as_echo "$as_me: WARNING
: libudev.h
: see the Autoconf documentation
" >&2;}
31152 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: section
\"Present But Cannot Be Compiled
\"" >&5
31153 $as_echo "$as_me: WARNING
: libudev.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
31154 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: proceeding with the preprocessor
's result" >&5
31155 $as_echo "$as_me: WARNING: libudev.h: proceeding with the preprocessor's result
" >&2;}
31156 { $as_echo "$as_me:$LINENO: WARNING
: libudev.h
: in the future
, the compiler will take precedence
" >&5
31157 $as_echo "$as_me: WARNING
: libudev.h
: in the future
, the compiler will take precedence
" >&2;}
31161 { $as_echo "$as_me:$LINENO: checking
for libudev.h
" >&5
31162 $as_echo_n "checking
for libudev.h...
" >&6; }
31163 if test "${ac_cv_header_libudev_h+set}" = set; then
31164 $as_echo_n "(cached
) " >&6
31166 ac_cv_header_libudev_h=$ac_header_preproc
31168 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_libudev_h" >&5
31169 $as_echo "$ac_cv_header_libudev_h" >&6; }
31172 if test "x
$ac_cv_header_libudev_h" = x""yes; then
31178 cat >>confdefs.h <<\_ACEOF
31179 #define HAVE_LIBUDEV 1
31191 { $as_echo "$as_me:$LINENO: checking
for library containing udev_device_get_is_initialized
" >&5
31192 $as_echo_n "checking
for library containing udev_device_get_is_initialized...
" >&6; }
31193 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31194 $as_echo_n "(cached
) " >&6
31196 ac_func_search_save_LIBS=$LIBS
31197 cat >conftest.$ac_ext <<_ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h. */
31204 /* Override any GCC internal prototype to avoid an error.
31205 Use char because int might match the return type of a GCC
31206 builtin and then its argument prototype would still apply. */
31210 char udev_device_get_is_initialized ();
31214 return udev_device_get_is_initialized ();
31219 for ac_lib in '' udev; do
31220 if test -z "$ac_lib"; then
31221 ac_res="none required
"
31224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31226 rm -f conftest.$ac_objext conftest$ac_exeext
31227 if { (ac_try="$ac_link"
31228 case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31232 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31233 $as_echo "$ac_try_echo") >&5
31234 (eval "$ac_link") 2>conftest.er1
31236 grep -v '^ *+' conftest.er1 >conftest.err
31238 cat conftest.err >&5
31239 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31240 (exit $ac_status); } && {
31241 test -z "$ac_c_werror_flag" ||
31242 test ! -s conftest.err
31243 } && test -s conftest$ac_exeext && {
31244 test "$cross_compiling" = yes ||
31245 $as_test_x conftest$ac_exeext
31247 ac_cv_search_udev_device_get_is_initialized=$ac_res
31249 $as_echo "$as_me: failed program was
:" >&5
31250 sed 's/^/| /' conftest.$ac_ext >&5
31255 rm -rf conftest.dSYM
31256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31258 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31262 if test "${ac_cv_search_udev_device_get_is_initialized+set}" = set; then
31265 ac_cv_search_udev_device_get_is_initialized=no
31267 rm conftest.$ac_ext
31268 LIBS=$ac_func_search_save_LIBS
31270 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_udev_device_get_is_initialized" >&5
31271 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
31272 ac_res=$ac_cv_search_udev_device_get_is_initialized
31273 if test "$ac_res" != no; then
31274 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
31277 cat >>confdefs.h <<\_ACEOF
31278 #define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1
31286 { $as_echo "$as_me:$LINENO: checking
for -Wframe-larger-than=<size
> support
" >&5
31287 $as_echo_n "checking
for -Wframe-larger-than=<size
> support...
" >&6; }
31289 saved_flags="$CFLAGS"
31290 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
31292 cat >conftest.$ac_ext <<_ACEOF
31295 cat confdefs.h >>conftest.$ac_ext
31296 cat >>conftest.$ac_ext <<_ACEOF
31297 /* end confdefs.h. */
31307 rm -f conftest.$ac_objext
31308 if { (ac_try="$ac_compile"
31309 case "(($ac_try" in
31310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311 *) ac_try_echo=$ac_try;;
31313 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31314 $as_echo "$ac_try_echo") >&5
31315 (eval "$ac_compile") 2>conftest.er1
31317 grep -v '^ *+' conftest.er1 >conftest.err
31319 cat conftest.err >&5
31320 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31321 (exit $ac_status); } && {
31322 test -z "$ac_c_werror_flag" ||
31323 test ! -s conftest.err
31324 } && test -s conftest.$ac_objext; then
31326 FRAME_LARGER_THAN=-Wframe-larger-than=1024
31327 { $as_echo "$as_me:$LINENO: result
: yes" >&5
31328 $as_echo "yes" >&6; }
31331 $as_echo "$as_me: failed program was
:" >&5
31332 sed 's/^/| /' conftest.$ac_ext >&5
31336 { $as_echo "$as_me:$LINENO: result
: no
" >&5
31337 $as_echo "no
" >&6; }
31341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31343 CFLAGS="$saved_flags"
31347 if test "x
$runstatedir" = x; then
31348 runstatedir='${localstatedir}/run'
31353 { $as_echo "$as_me:$LINENO: checking makedev
() is declared
in sys
/sysmacros.h
" >&5
31354 $as_echo_n "checking makedev
() is declared
in sys
/sysmacros.h...
" >&6; }
31355 cat >conftest.$ac_ext <<_ACEOF
31358 cat confdefs.h >>conftest.$ac_ext
31359 cat >>conftest.$ac_ext <<_ACEOF
31360 /* end confdefs.h. */
31362 #include <sys/sysmacros.h>
31375 rm -f conftest.$ac_objext
31376 if { (ac_try="$ac_compile"
31377 case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31381 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31382 $as_echo "$ac_try_echo") >&5
31383 (eval "$ac_compile") 2>conftest.er1
31385 grep -v '^ *+' conftest.er1 >conftest.err
31387 cat conftest.err >&5
31388 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31389 (exit $ac_status); } && {
31390 test -z "$ac_c_werror_flag" ||
31391 test ! -s conftest.err
31392 } && test -s conftest.$ac_objext; then
31394 { $as_echo "$as_me:$LINENO: result
: yes" >&5
31395 $as_echo "yes" >&6; }
31397 cat >>confdefs.h <<\_ACEOF
31398 #define HAVE_MAKEDEV_IN_SYSMACROS 1
31403 $as_echo "$as_me: failed program was
:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31407 { $as_echo "$as_me:$LINENO: result
: no
" >&5
31408 $as_echo "no
" >&6; }
31412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31415 { $as_echo "$as_me:$LINENO: checking makedev
() is declared
in sys
/mkdev.h
" >&5
31416 $as_echo_n "checking makedev
() is declared
in sys
/mkdev.h...
" >&6; }
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31424 #include <sys/mkdev.h>
31437 rm -f conftest.$ac_objext
31438 if { (ac_try="$ac_compile"
31439 case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31443 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31444 $as_echo "$ac_try_echo") >&5
31445 (eval "$ac_compile") 2>conftest.er1
31447 grep -v '^ *+' conftest.er1 >conftest.err
31449 cat conftest.err >&5
31450 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31451 (exit $ac_status); } && {
31452 test -z "$ac_c_werror_flag" ||
31453 test ! -s conftest.err
31454 } && test -s conftest.$ac_objext; then
31456 { $as_echo "$as_me:$LINENO: result
: yes" >&5
31457 $as_echo "yes" >&6; }
31459 cat >>confdefs.h <<\_ACEOF
31460 #define HAVE_MAKEDEV_IN_MKDEV 1
31465 $as_echo "$as_me: failed program was
:" >&5
31466 sed 's/^/| /' conftest.$ac_ext >&5
31469 { $as_echo "$as_me:$LINENO: result
: no
" >&5
31470 $as_echo "no
" >&6; }
31474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31477 { $as_echo "$as_me:$LINENO: checking
for -Wno-format-truncation support
" >&5
31478 $as_echo_n "checking
for -Wno-format-truncation support...
" >&6; }
31480 saved_flags="$CFLAGS"
31481 CFLAGS="$CFLAGS -Wno-format-truncation"
31483 cat >conftest.$ac_ext <<_ACEOF
31486 cat confdefs.h >>conftest.$ac_ext
31487 cat >>conftest.$ac_ext <<_ACEOF
31488 /* end confdefs.h. */
31498 rm -f conftest.$ac_objext
31499 if { (ac_try="$ac_compile"
31500 case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31504 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31505 $as_echo "$ac_try_echo") >&5
31506 (eval "$ac_compile") 2>conftest.er1
31508 grep -v '^ *+' conftest.er1 >conftest.err
31510 cat conftest.err >&5
31511 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31512 (exit $ac_status); } && {
31513 test -z "$ac_c_werror_flag" ||
31514 test ! -s conftest.err
31515 } && test -s conftest.$ac_objext; then
31517 NO_FORMAT_TRUNCATION=-Wno-format-truncation
31518 { $as_echo "$as_me:$LINENO: result
: yes" >&5
31519 $as_echo "yes" >&6; }
31522 $as_echo "$as_me: failed program was
:" >&5
31523 sed 's/^/| /' conftest.$ac_ext >&5
31526 NO_FORMAT_TRUNCATION=
31527 { $as_echo "$as_me:$LINENO: result
: no
" >&5
31528 $as_echo "no
" >&6; }
31532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31534 CFLAGS="$saved_flags"
31539 ZONENAME="echo global
"
31546 for ac_func in mlockall
31548 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
31549 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
31550 $as_echo_n "checking
for $ac_func...
" >&6; }
31551 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
31552 $as_echo_n "(cached
) " >&6
31554 cat >conftest.$ac_ext <<_ACEOF
31557 cat confdefs.h >>conftest.$ac_ext
31558 cat >>conftest.$ac_ext <<_ACEOF
31559 /* end confdefs.h. */
31560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31562 #define $ac_func innocuous_$ac_func
31564 /* System header to define __stub macros and hopefully few prototypes,
31565 which can conflict with char $ac_func (); below.
31566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31567 <limits.h> exists even on freestanding compilers. */
31570 # include <limits.h>
31572 # include <assert.h>
31577 /* Override any GCC internal prototype to avoid an error.
31578 Use char because int might match the return type of a GCC
31579 builtin and then its argument prototype would still apply. */
31584 /* The GNU C library defines this for functions which it implements
31585 to always fail with ENOSYS. Some functions are actually named
31586 something starting with __ and the normal name is an alias. */
31587 #if defined __stub_$ac_func || defined __stub___$ac_func
31594 return $ac_func ();
31599 rm -f conftest.$ac_objext conftest$ac_exeext
31600 if { (ac_try="$ac_link"
31601 case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31605 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
31606 $as_echo "$ac_try_echo") >&5
31607 (eval "$ac_link") 2>conftest.er1
31609 grep -v '^ *+' conftest.er1 >conftest.err
31611 cat conftest.err >&5
31612 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
31613 (exit $ac_status); } && {
31614 test -z "$ac_c_werror_flag" ||
31615 test ! -s conftest.err
31616 } && test -s conftest$ac_exeext && {
31617 test "$cross_compiling" = yes ||
31618 $as_test_x conftest$ac_exeext
31620 eval "$as_ac_var=yes"
31622 $as_echo "$as_me: failed program was
:" >&5
31623 sed 's/^/| /' conftest.$ac_ext >&5
31625 eval "$as_ac_var=no
"
31628 rm -rf conftest.dSYM
31629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31630 conftest$ac_exeext conftest.$ac_ext
31632 ac_res=`eval 'as_val=${'$as_ac_var'}
31633 $as_echo "$as_val"'`
31634 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
31635 $as_echo "$ac_res" >&6; }
31636 as_val=`eval 'as_val=${'$as_ac_var'}
31637 $as_echo "$as_val"'`
31638 if test "x
$as_val" = x""yes; then
31639 cat >>confdefs.h <<_ACEOF
31640 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
31650 # Check whether --with-linux was given.
31651 if test "${with_linux+set}" = set; then
31652 withval=$with_linux; kernelsrc="$withval"
31657 # Check whether --with-linux-obj was given.
31658 if test "${with_linux_obj+set}" = set; then
31659 withval=$with_linux_obj; kernelbuild="$withval"
31663 { $as_echo "$as_me:$LINENO: checking kernel
source directory
" >&5
31664 $as_echo_n "checking kernel
source directory...
" >&6; }
31665 if test -z "$kernelsrc"; then
31667 if test -e "/lib
/modules
/$
(uname
-r)/source"; then
31669 headersdir="/lib
/modules
/$
(uname
-r)/source"
31670 sourcelink=$(readlink -f "$headersdir")
31672 elif test -e "/lib
/modules
/$
(uname
-r)/build
"; then
31674 headersdir="/lib
/modules
/$
(uname
-r)/build
"
31675 sourcelink=$(readlink -f "$headersdir")
31679 sourcelink=$(ls -1d /usr/src/kernels/* \
31681 2>/dev/null | grep -v obj | tail -1)
31686 if test -n "$sourcelink" && test -e ${sourcelink}; then
31688 kernelsrc=`readlink -f ${sourcelink}`
31692 kernelsrc="Not found
"
31699 if test "$kernelsrc" = "NONE
"; then
31710 { $as_echo "$as_me:$LINENO: result
: $kernelsrc" >&5
31711 $as_echo "$kernelsrc" >&6; }
31712 if test ! -d "$kernelsrc"; then
31714 { { $as_echo "$as_me:$LINENO: error
:
31715 *** Please
make sure the kernel devel package
for your distribution
31716 *** is installed and
then try again. If that fails
, you can specify the
31717 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&5
31718 $as_echo "$as_me: error
:
31719 *** Please
make sure the kernel devel package
for your distribution
31720 *** is installed and
then try again. If that fails
, you can specify the
31721 *** location of the kernel
source with the
'--with-linux=PATH' option.
" >&2;}
31722 { (exit 1); exit 1; }; }
31727 { $as_echo "$as_me:$LINENO: checking kernel build directory
" >&5
31728 $as_echo_n "checking kernel build directory...
" >&6; }
31729 if test -z "$kernelbuild"; then
31731 if test x$withlinux != xyes -a -e "/lib
/modules
/$
(uname
-r)/build
"; then
31733 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
31735 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
31737 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
31739 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
31741 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
31743 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
31745 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
31749 kernelbuild=${kernelsrc}
31756 { $as_echo "$as_me:$LINENO: result
: $kernelbuild" >&5
31757 $as_echo "$kernelbuild" >&6; }
31759 { $as_echo "$as_me:$LINENO: checking kernel
source version
" >&5
31760 $as_echo_n "checking kernel
source version...
" >&6; }
31761 utsrelease1=$kernelbuild/include/linux/version.h
31762 utsrelease2=$kernelbuild/include/linux/utsrelease.h
31763 utsrelease3=$kernelbuild/include/generated/utsrelease.h
31764 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
31766 utsrelease=linux/version.h
31768 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
31770 utsrelease=linux/utsrelease.h
31772 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
31774 utsrelease=generated/utsrelease.h
31779 if test "$utsrelease"; then
31781 kernsrcver=`(echo "#include <$utsrelease>";
31782 echo "kernsrcver=UTS_RELEASE") |
31783 cpp
-I $kernelbuild/include |
31784 grep "^kernsrcver=" | cut
-d \" -f 2`
31786 if test -z "$kernsrcver"; then
31788 { $as_echo "$as_me:$LINENO: result: Not found" >&5
31789 $as_echo "Not found" >&6; }
31790 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
31791 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
31792 { (exit 1); exit 1; }; }
31799 { $as_echo "$as_me:$LINENO: result: Not found" >&5
31800 $as_echo "Not found" >&6; }
31801 if test "x$enable_linux_builtin" != xyes; then
31802 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
31803 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
31804 { (exit 1); exit 1; }; }
31806 { { $as_echo "$as_me:$LINENO: error:
31807 *** Cannot find UTS_RELEASE definition.
31808 *** Please run 'make prepare' inside the kernel source tree." >&5
31809 $as_echo "$as_me: error:
31810 *** Cannot find UTS_RELEASE definition.
31811 *** Please run 'make prepare' inside the kernel source tree." >&2;}
31812 { (exit 1); exit 1; }; }
31818 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
31819 $as_echo "$kernsrcver" >&6; }
31822 LINUX_OBJ=${kernelbuild}
31823 LINUX_VERSION=${kernsrcver}
31830 modpost=$LINUX/scripts/Makefile.modpost
31831 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
31832 $as_echo_n "checking kernel file name for module symbols... " >&6; }
31833 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
31835 if grep -q Modules.symvers $modpost; then
31837 LINUX_SYMBOLS=Modules.symvers
31841 LINUX_SYMBOLS=Module.symvers
31846 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
31848 { { $as_echo "$as_me:$LINENO: error:
31849 *** Please make sure the kernel devel package for your distribution
31850 *** is installed. If you are building with a custom kernel, make sure the
31851 *** kernel is configured, built, and the '--with-linux=PATH' configure
31852 *** option refers to the location of the kernel source." >&5
31853 $as_echo "$as_me: error:
31854 *** Please make sure the kernel devel package for your distribution
31855 *** is installed. If you are building with a custom kernel, make sure the
31856 *** kernel is configured, built, and the '--with-linux=PATH' configure
31857 *** option refers to the location of the kernel source." >&2;}
31858 { (exit 1); exit 1; }; }
31869 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
31870 $as_echo "$LINUX_SYMBOLS" >&6; }
31876 # Check whether --with-spl was given.
31877 if test "${with_spl+set}" = set; then
31878 withval=$with_spl; if test "$withval" = "yes"; then
31879 { { $as_echo "$as_me:$LINENO: error: --with-spl=PATH requires a PATH" >&5
31880 $as_echo "$as_me: error: --with-spl=PATH requires a PATH" >&2;}
31881 { (exit 1); exit 1; }; }
31890 # Check whether --with-spl-obj was given.
31891 if test "${with_spl_obj+set}" = set; then
31892 withval=$with_spl_obj; splbuild="$withval"
31897 # Check whether --with-spl-timeout was given.
31898 if test "${with_spl_timeout+set}" = set; then
31899 withval=$with_spl_timeout; timeout="$withval"
31905 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
31906 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
31907 splsrc2="/usr/local/src/spl-${VERSION}"
31908 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
31909 splsrc4="/usr/src/spl-${VERSION}"
31913 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
31914 $as_echo_n "checking spl source directory... " >&6; }
31915 if test -z "${splsrc}"; then
31925 if test -e "${splsrc0}/spl.release.in"; then
31929 elif test -e "${splsrc1}/spl.release.in"; then
31933 elif test -e "${splsrc2}/spl.release.in"; then
31937 elif test -e "${splsrc3}/spl.release.in"; then
31939 splsrc=$(readlink -f "${splsrc3}")
31941 elif test -e "${splsrc4}/spl.release.in" ; then
31945 elif test -e "${splsrc5}/spl.release.in"; then
31947 splsrc=$(readlink -f "${splsrc5}")
31949 elif test -e "${splsrc6}/spl.release.in" ; then
31962 all_spl_sources="$withval",
31963 if test "$splsrc" = "NONE"; then
31974 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
31975 $as_echo "$splsrc" >&6; }
31976 if test ! -e "$splsrc/spl.release.in"; then
31978 { { $as_echo "$as_me:$LINENO: error:
31979 *** Please make sure the kmod spl devel package for your distribution
31980 *** is installed then try again. If that fails you can specify the
31981 *** location of the spl source with the '--with-spl=PATH' option.
31982 *** The spl version must match the version of ZFS you are building,
31983 *** ${VERSION}. Failed to find spl.release.in in the following:
31984 $all_spl_sources" >&5
31985 $as_echo "$as_me: error:
31986 *** Please make sure the kmod spl devel package for your distribution
31987 *** is installed then try again. If that fails you can specify the
31988 *** location of the spl source with the '--with-spl=PATH' option.
31989 *** The spl version must match the version of ZFS you are building,
31990 *** ${VERSION}. Failed to find spl.release.in in the following:
31991 $all_spl_sources" >&2;}
31992 { (exit 1); exit 1; }; }
31997 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
31998 $as_echo_n "checking spl build directory... " >&6; }
32000 all_spl_config_locs="${splsrc}/${LINUX_VERSION}
32004 if test -z "$splbuild"; then
32006 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
32008 splbuild="${splsrc}/${LINUX_VERSION}"
32010 elif test -e "${splsrc}/spl_config.h" ; then
32012 splbuild="${splsrc}"
32014 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
32016 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
32020 splbuild="Not found"
32027 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
32034 timeout=$((timeout-1))
32040 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
32041 $as_echo "$splbuild" >&6; }
32042 if ! test -e "$splbuild/spl_config.h"; then
32044 { { $as_echo "$as_me:$LINENO: error:
32045 *** Please make sure the kmod spl devel <kernel> package for your
32046 *** distribution is installed then try again. If that fails you
32047 *** can specify the location of the spl objects with the
32048 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32049 *** any of the following:
32050 $all_spl_config_locs" >&5
32051 $as_echo "$as_me: error:
32052 *** Please make sure the kmod spl devel <kernel> package for your
32053 *** distribution is installed then try again. If that fails you
32054 *** can specify the location of the spl objects with the
32055 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
32056 *** any of the following:
32057 $all_spl_config_locs" >&2;}
32058 { (exit 1); exit 1; }; }
32063 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
32064 $as_echo_n "checking spl source version... " >&6; }
32065 if test -r $splbuild/spl_config.h &&
32066 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
32069 splsrcver=`(echo "#include <spl_config.h>";
32070 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
32072 grep "^splsrcver=" |
tr -d \" | cut
-d= -f2`
32077 if test -z "$splsrcver"; then
32079 { $as_echo "$as_me:$LINENO: result: Not found" >&5
32080 $as_echo "Not found" >&6; }
32081 { { $as_echo "$as_me:$LINENO: error:
32082 *** Cannot determine the version of the spl source.
32083 *** Please prepare the spl source before running this script" >&5
32084 $as_echo "$as_me: error:
32085 *** Cannot determine the version of the spl source.
32086 *** Please prepare the spl source before running this script" >&2;}
32087 { (exit 1); exit 1; }; }
32092 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
32093 $as_echo "$splsrcver" >&6; }
32096 SPL_OBJ=${splbuild}
32097 SPL_VERSION=${splsrcver}
32103 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
32104 $as_echo_n "checking spl file name for module symbols... " >&6; }
32108 if test -r $SPL_OBJ/Module.symvers; then
32110 SPL_SYMBOLS=Module.symvers
32112 elif test -r $SPL_OBJ/Modules.symvers; then
32114 SPL_SYMBOLS=Modules.symvers
32116 elif test -r $SPL_OBJ/module/Module.symvers; then
32118 SPL_SYMBOLS=Module.symvers
32120 elif test -r $SPL_OBJ/module/Modules.symvers; then
32122 SPL_SYMBOLS=Modules.symvers
32127 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
32134 timeout=$((timeout-1))
32140 if test "$SPL_SYMBOLS" = NONE; then
32142 SPL_SYMBOLS=$LINUX_SYMBOLS
32147 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
32148 $as_echo "$SPL_SYMBOLS" >&6; }
32153 # Check whether --with-qat was given.
32154 if test "${with_qat+set}" = set; then
32155 withval=$with_qat; if test "$withval" = "yes"; then
32156 { { $as_echo "$as_me:$LINENO: error: --with-qat=PATH requires a PATH" >&5
32157 $as_echo "$as_me: error: --with-qat=PATH requires a PATH" >&2;}
32158 { (exit 1); exit 1; }; }
32167 # Check whether --with-qat-obj was given.
32168 if test "${with_qat_obj+set}" = set; then
32169 withval=$with_qat_obj; qatbuild="$withval"
32173 if test ! -z "${qatsrc}"; then
32175 { $as_echo "$as_me:$LINENO: checking qat source directory" >&5
32176 $as_echo_n "checking qat source directory... " >&6; }
32177 { $as_echo "$as_me:$LINENO: result: $qatsrc" >&5
32178 $as_echo "$qatsrc" >&6; }
32179 QAT_SRC="${qatsrc}/quickassist"
32180 if test ! -e "$QAT_SRC/include/cpa.h"; then
32182 { { $as_echo "$as_me:$LINENO: error:
32183 *** Please make sure the qat driver package is installed
32184 *** and specify the location of the qat source with the
32185 *** '--with-qat=PATH' option then try again. Failed to
32187 ${QAT_SRC}/include" >&5
32188 $as_echo "$as_me: error:
32189 *** Please make sure the qat driver package is installed
32190 *** and specify the location of the qat source with the
32191 *** '--with-qat=PATH' option then try again. Failed to
32193 ${QAT_SRC}/include" >&2;}
32194 { (exit 1); exit 1; }; }
32202 if test ! -z "${qatsrc}"; then
32204 { $as_echo "$as_me:$LINENO: checking qat build directory" >&5
32205 $as_echo_n "checking qat build directory... " >&6; }
32206 if test -z "$qatbuild"; then
32208 qatbuild="${qatsrc}/build"
32213 { $as_echo "$as_me:$LINENO: result: $qatbuild" >&5
32214 $as_echo "$qatbuild" >&6; }
32215 QAT_OBJ=${qatbuild}
32216 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then
32218 { { $as_echo "$as_me:$LINENO: error:
32219 *** Please make sure the qat driver is installed then try again.
32220 *** Failed to find icp_qa_al.ko or qat_api.ko in:
32222 $as_echo "$as_me: error:
32223 *** Please make sure the qat driver is installed then try again.
32224 *** Failed to find icp_qa_al.ko or qat_api.ko in:
32226 { (exit 1); exit 1; }; }
32235 cat >>confdefs.h <<\_ACEOF
32243 if test ! -z "${qatsrc}"; then
32245 { $as_echo "$as_me:$LINENO: checking qat file for module symbols" >&5
32246 $as_echo_n "checking qat file for module symbols... " >&6; }
32247 QAT_SYMBOLS=$QAT_SRC/lookaside/access_layer/src/Module.symvers
32249 if test -r $QAT_SYMBOLS; then
32251 { $as_echo "$as_me:$LINENO: result: $QAT_SYMBOLS" >&5
32252 $as_echo "$QAT_SYMBOLS" >&6; }
32257 { { $as_echo "$as_me:$LINENO: error:
32258 *** Please make sure the qat driver is installed then try again.
32259 *** Failed to find Module.symvers in:
32261 $as_echo "$as_me: error:
32262 *** Please make sure the qat driver is installed then try again.
32263 *** Failed to find Module.symvers in:
32264 $QAT_SYMBOLS" >&2;}
32265 { (exit 1); exit 1; }; }
32274 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
32275 $as_echo_n "checking whether modules can be built... " >&6; }
32278 cat confdefs.h - <<_ACEOF >conftest.c
32281 cat confdefs.h >>conftest.$ac_ext
32282 cat >>conftest.$ac_ext <<_ACEOF
32283 /* end confdefs.h. */
32298 cat - <<_ACEOF >conftest.h
32303 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32304 echo "obj-m := conftest.o" >build/Makefile
32306 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32307 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32314 (eval $ac_try) 2>&5
32316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
32319 { $as_echo "$as_me:$LINENO: result: yes" >&5
32320 $as_echo "yes" >&6; }
32323 $as_echo "$as_me: failed program was:" >&5
32324 sed 's/^/| /' conftest.$ac_ext >&5
32326 { $as_echo "$as_me:$LINENO: result: no" >&5
32327 $as_echo "no" >&6; }
32328 if test "x$enable_linux_builtin" != xyes; then
32329 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
32330 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
32331 { (exit 1); exit 1; }; }
32333 { { $as_echo "$as_me:$LINENO: error:
32334 *** Unable to build an empty module.
32335 *** Please run 'make scripts' inside the kernel source tree." >&5
32336 $as_echo "$as_me: error:
32337 *** Unable to build an empty module.
32338 *** Please run 'make scripts' inside the kernel source tree." >&2;}
32339 { (exit 1); exit 1; }; }
32351 { $as_echo "$as_me:$LINENO: checking for compile-time stack validation (objtool)" >&5
32352 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
32355 cat confdefs.h - <<_ACEOF >conftest.c
32358 cat confdefs.h >>conftest.$ac_ext
32359 cat >>conftest.$ac_ext <<_ACEOF
32360 /* end confdefs.h. */
32363 #undef __ASSEMBLY__
32364 #include <asm/frame.h>
32370 #if !defined(FRAME_BEGIN)
32382 cat - <<_ACEOF >conftest.h
32387 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32388 echo "obj-m := conftest.o" >build/Makefile
32390 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
32391 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
32397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32398 (eval $ac_try) 2>&5
32400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; }; then
32403 { $as_echo "$as_me:$LINENO: result: yes" >&5
32404 $as_echo "yes" >&6; }
32406 cat >>confdefs.h <<\_ACEOF
32407 #define HAVE_KERNEL_OBJTOOL 1
32412 $as_echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.$ac_ext >&5
32415 { $as_echo "$as_me:$LINENO: result: no" >&5
32416 $as_echo "no" >&6; }
32427 if test "x$cross_compiling" != xyes; then
32429 if test "$cross_compiling" = yes; then
32430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
32431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32432 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
32433 See \
`config.log' for more details." >&5
32434 $as_echo "$as_me: error: cannot run test program while cross compiling
32435 See \`config.log
' for more details." >&2;}
32436 { (exit 1); exit 1; }; }; }
32438 cat >conftest.$ac_ext <<_ACEOF
32442 cat confdefs.h >>conftest.$ac_ext
32443 cat >>conftest.$ac_ext <<_ACEOF
32444 /* end confdefs.h. */
32446 #include "$LINUX/include/linux/license.h"
32452 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
32459 rm -f conftest$ac_exeext
32460 if { (ac_try="$ac_link"
32461 case "(($ac_try" in
32462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32463 *) ac_try_echo=$ac_try;;
32465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32466 $as_echo "$ac_try_echo") >&5
32467 (eval "$ac_link") 2>&5
32469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
32471 { (case "(($ac_try" in
32472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473 *) ac_try_echo=$ac_try;;
32475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32476 $as_echo "$ac_try_echo") >&5
32477 (eval "$ac_try") 2>&5
32479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; }; then
32483 cat >>confdefs.h <<\_ACEOF
32484 #define ZFS_IS_GPL_COMPATIBLE 1
32489 $as_echo "$as_me: program exited with status $ac_status" >&5
32490 $as_echo "$as_me: failed program was:" >&5
32491 sed 's
/^
/|
/' conftest.$ac_ext >&5
32493 ( exit $ac_status )
32497 rm -rf conftest.dSYM
32498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32507 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
32508 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
32511 cat confdefs.h - <<_ACEOF >conftest.c
32514 cat confdefs.h >>conftest.$ac_ext
32515 cat >>conftest.$ac_ext <<_ACEOF
32516 /* end confdefs.h. */
32519 #include <linux/module.h>
32525 #if (THREAD_SIZE < 16384)
32526 #error "THREAD_SIZE is less than 16K"
32537 cat - <<_ACEOF >conftest.h
32542 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32543 echo "obj-m := conftest.o" >build/Makefile
32545 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32546 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32548 (eval $ac_try) 2>&5
32550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553 (eval $ac_try) 2>&5
32555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); }; }; then
32558 { $as_echo "$as_me:$LINENO: result: yes" >&5
32559 $as_echo "yes" >&6; }
32561 cat >>confdefs.h <<\_ACEOF
32562 #define HAVE_LARGE_STACKS 1
32567 $as_echo "$as_me: failed program was:" >&5
32568 sed 's
/^
/|
/' conftest.$ac_ext >&5
32570 { $as_echo "$as_me:$LINENO: result: no" >&5
32571 $as_echo "no" >&6; }
32583 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
32584 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
32587 cat confdefs.h - <<_ACEOF >conftest.c
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h. */
32595 #include <linux/module.h>
32601 #ifndef CONFIG_DEBUG_LOCK_ALLOC
32602 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
32613 cat - <<_ACEOF >conftest.h
32618 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32619 echo "obj-m := conftest.o" >build/Makefile
32621 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32622 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32624 (eval $ac_try) 2>&5
32626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32629 (eval $ac_try) 2>&5
32631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); }; }; then
32634 { $as_echo "$as_me:$LINENO: result: yes" >&5
32635 $as_echo "yes" >&6; }
32637 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
32638 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
32639 tmp_flags="$EXTRA_KCFLAGS"
32642 cat confdefs.h - <<_ACEOF >conftest.c
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h. */
32650 #include <linux/module.h>
32651 #include <linux/mutex.h>
32653 MODULE_LICENSE("$ZFS_META_LICENSE");
32663 mutex_unlock(&lock);
32673 cat - <<_ACEOF >conftest.h
32678 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32679 echo "obj-m := conftest.o" >build/Makefile
32681 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32682 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684 (eval $ac_try) 2>&5
32686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
32694 { $as_echo "$as_me:$LINENO: result: no" >&5
32695 $as_echo "no" >&6; }
32698 $as_echo "$as_me: failed program was:" >&5
32699 sed 's
/^
/|
/' conftest.$ac_ext >&5
32701 { $as_echo "$as_me:$LINENO: result: yes" >&5
32702 $as_echo "yes" >&6; }
32703 { { $as_echo "$as_me:$LINENO: error:
32704 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32705 *** with the CDDL license and will prevent the module linking stage
32706 *** from succeeding. You must rebuild your kernel without this
32707 *** option enabled." >&5
32708 $as_echo "$as_me: error:
32709 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
32710 *** with the CDDL license and will prevent the module linking stage
32711 *** from succeeding. You must rebuild your kernel without this
32712 *** option enabled." >&2;}
32713 { (exit 1); exit 1; }; }
32722 EXTRA_KCFLAGS="$tmp_flags"
32726 $as_echo "$as_me: failed program was:" >&5
32727 sed 's
/^
/|
/' conftest.$ac_ext >&5
32729 { $as_echo "$as_me:$LINENO: result: no" >&5
32730 $as_echo "no" >&6; }
32744 tmp_flags="$EXTRA_KCFLAGS"
32745 EXTRA_KCFLAGS="-I\$(src)"
32747 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
32748 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
32751 cat confdefs.h - <<_ACEOF >conftest.c
32754 cat confdefs.h >>conftest.$ac_ext
32755 cat >>conftest.$ac_ext <<_ACEOF
32756 /* end confdefs.h. */
32759 #include <linux/module.h>
32760 MODULE_LICENSE(ZFS_META_LICENSE);
32762 #define CREATE_TRACE_POINTS
32763 #include "conftest.h"
32769 trace_zfs_autoconf_event_one(1UL);
32770 trace_zfs_autoconf_event_two(2UL);
32780 cat - <<_ACEOF >conftest.h
32782 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
32783 #define _CONFTEST_H
32785 #undef TRACE_SYSTEM
32786 #define TRACE_SYSTEM zfs
32787 #include <linux/tracepoint.h>
32789 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
32790 TP_PROTO(unsigned long i),
32793 __field(unsigned long, i)
32798 TP_printk("i = %lu", __entry->i)
32801 #define DEFINE_AUTOCONF_EVENT(name) \
32802 DEFINE_EVENT(zfs_autoconf_event_class, name, \
32803 TP_PROTO(unsigned long i), \
32805 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
32806 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
32808 #endif /* _CONFTEST_H */
32810 #undef TRACE_INCLUDE_PATH
32811 #define TRACE_INCLUDE_PATH .
32812 #define TRACE_INCLUDE_FILE conftest
32813 #include <trace/define_trace.h>
32818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32819 echo "obj-m := conftest.o" >build/Makefile
32821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32822 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32824 (eval $ac_try) 2>&5
32826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32829 (eval $ac_try) 2>&5
32831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32832 (exit $ac_status); }; }; then
32834 { $as_echo "$as_me:$LINENO: result: yes" >&5
32835 $as_echo "yes" >&6; }
32837 cat >>confdefs.h <<\_ACEOF
32838 #define HAVE_DECLARE_EVENT_CLASS 1
32843 $as_echo "$as_me: failed program was:" >&5
32844 sed 's
/^
/|
/' conftest.$ac_ext >&5
32846 { $as_echo "$as_me:$LINENO: result: no" >&5
32847 $as_echo "no" >&6; }
32856 EXTRA_KCFLAGS="$tmp_flags"
32859 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
32860 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
32863 cat confdefs.h - <<_ACEOF >conftest.c
32866 cat confdefs.h >>conftest.$ac_ext
32867 cat >>conftest.$ac_ext <<_ACEOF
32868 /* end confdefs.h. */
32871 #include <linux/sched.h>
32877 current->bio_tail = (struct bio **) NULL;
32887 cat - <<_ACEOF >conftest.h
32892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32893 echo "obj-m := conftest.o" >build/Makefile
32895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32896 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898 (eval $ac_try) 2>&5
32900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
32908 { $as_echo "$as_me:$LINENO: result: yes" >&5
32909 $as_echo "yes" >&6; }
32911 cat >>confdefs.h <<\_ACEOF
32912 #define HAVE_CURRENT_BIO_TAIL 1
32917 $as_echo "$as_me: failed program was:" >&5
32918 sed 's
/^
/|
/' conftest.$ac_ext >&5
32920 { $as_echo "$as_me:$LINENO: result: no" >&5
32921 $as_echo "no" >&6; }
32922 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
32923 $as_echo_n "checking whether current->bio_list exists... " >&6; }
32926 cat confdefs.h - <<_ACEOF >conftest.c
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32934 #include <linux/sched.h>
32940 current->bio_list = (struct bio_list *) NULL;
32950 cat - <<_ACEOF >conftest.h
32955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32956 echo "obj-m := conftest.o" >build/Makefile
32958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32959 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32961 (eval $ac_try) 2>&5
32963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; }; then
32971 { $as_echo "$as_me:$LINENO: result: yes" >&5
32972 $as_echo "yes" >&6; }
32974 cat >>confdefs.h <<\_ACEOF
32975 #define HAVE_CURRENT_BIO_LIST 1
32980 $as_echo "$as_me: failed program was:" >&5
32981 sed 's
/^
/|
/' conftest.$ac_ext >&5
32983 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
32984 https://github.com/zfsonlinux/zfs/issues/new" >&5
32985 $as_echo "$as_me: error: no - Please file a bug report at
32986 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
32987 { (exit 1); exit 1; }; }
33006 { $as_echo "$as_me:$LINENO: checking whether super_block->s_user_ns exists" >&5
33007 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
33010 cat confdefs.h - <<_ACEOF >conftest.c
33013 cat confdefs.h >>conftest.$ac_ext
33014 cat >>conftest.$ac_ext <<_ACEOF
33015 /* end confdefs.h. */
33018 #include <linux/fs.h>
33019 #include <linux/user_namespace.h>
33025 struct super_block super;
33026 super.s_user_ns = (struct user_namespace *)NULL;
33036 cat - <<_ACEOF >conftest.h
33041 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33042 echo "obj-m := conftest.o" >build/Makefile
33044 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33045 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33047 (eval $ac_try) 2>&5
33049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; }; then
33057 { $as_echo "$as_me:$LINENO: result: yes" >&5
33058 $as_echo "yes" >&6; }
33060 cat >>confdefs.h <<\_ACEOF
33061 #define HAVE_SUPER_USER_NS 1
33066 $as_echo "$as_me: failed program was:" >&5
33067 sed 's
/^
/|
/' conftest.$ac_ext >&5
33069 { $as_echo "$as_me:$LINENO: result: no" >&5
33070 $as_echo "no" >&6; }
33081 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
33082 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
33085 cat confdefs.h - <<_ACEOF >conftest.c
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h. */
33093 #include <linux/bio.h>
33100 struct bio *bio = NULL;
33101 blk_qc = submit_bio(bio);
33111 cat - <<_ACEOF >conftest.h
33116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33117 echo "obj-m := conftest.o" >build/Makefile
33119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33120 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33127 (eval $ac_try) 2>&5
33129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
33132 { $as_echo "$as_me:$LINENO: result: yes" >&5
33133 $as_echo "yes" >&6; }
33135 cat >>confdefs.h <<\_ACEOF
33136 #define HAVE_1ARG_SUBMIT_BIO 1
33141 $as_echo "$as_me: failed program was:" >&5
33142 sed 's
/^
/|
/' conftest.$ac_ext >&5
33144 { $as_echo "$as_me:$LINENO: result: no" >&5
33145 $as_echo "no" >&6; }
33156 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
33157 $as_echo_n "checking block device operation prototypes... " >&6; }
33158 tmp_flags="$EXTRA_KCFLAGS"
33159 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
33162 cat confdefs.h - <<_ACEOF >conftest.c
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33170 #include <linux/blkdev.h>
33172 int blk_open(struct block_device *bdev, fmode_t mode)
33174 int blk_ioctl(struct block_device *bdev, fmode_t mode,
33175 unsigned x, unsigned long y) { return 0; }
33176 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
33177 unsigned x, unsigned long y) { return 0; }
33179 static const struct block_device_operations
33180 bops __attribute__ ((unused)) = {
33183 .ioctl = blk_ioctl,
33184 .compat_ioctl = blk_compat_ioctl,
33200 cat - <<_ACEOF >conftest.h
33205 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33206 echo "obj-m := conftest.o" >build/Makefile
33208 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33209 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33211 (eval $ac_try) 2>&5
33213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33216 (eval $ac_try) 2>&5
33218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
33221 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
33222 $as_echo "struct block_device" >&6; }
33224 cat >>confdefs.h <<\_ACEOF
33225 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
33230 $as_echo "$as_me: failed program was:" >&5
33231 sed 's
/^
/|
/' conftest.$ac_ext >&5
33233 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
33234 $as_echo "struct inode" >&6; }
33243 EXTRA_KCFLAGS="$tmp_flags"
33246 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
33247 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
33248 tmp_flags="$EXTRA_KCFLAGS"
33249 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
33252 cat confdefs.h - <<_ACEOF >conftest.c
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h. */
33260 #include <linux/blkdev.h>
33262 void blk_release(struct gendisk *g, fmode_t mode) { return; }
33264 static const struct block_device_operations
33265 bops __attribute__ ((unused)) = {
33267 .release = blk_release,
33269 .compat_ioctl = NULL,
33285 cat - <<_ACEOF >conftest.h
33290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33291 echo "obj-m := conftest.o" >build/Makefile
33293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33294 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301 (eval $ac_try) 2>&5
33303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304 (exit $ac_status); }; }; then
33306 { $as_echo "$as_me:$LINENO: result: void" >&5
33307 $as_echo "void" >&6; }
33309 cat >>confdefs.h <<\_ACEOF
33310 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
33315 $as_echo "$as_me: failed program was:" >&5
33316 sed 's
/^
/|
/' conftest.$ac_ext >&5
33318 { $as_echo "$as_me:$LINENO: result: int" >&5
33319 $as_echo "int" >&6; }
33328 EXTRA_KCFLAGS="$tmp_flags"
33330 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
33331 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
33334 cat confdefs.h - <<_ACEOF >conftest.c
33337 cat confdefs.h >>conftest.$ac_ext
33338 cat >>conftest.$ac_ext <<_ACEOF
33339 /* end confdefs.h. */
33342 #include <linux/types.h>
33348 fmode_t *ptr __attribute__ ((unused));
33358 cat - <<_ACEOF >conftest.h
33363 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33364 echo "obj-m := conftest.o" >build/Makefile
33366 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33367 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; }; then
33379 { $as_echo "$as_me:$LINENO: result: yes" >&5
33380 $as_echo "yes" >&6; }
33382 cat >>confdefs.h <<\_ACEOF
33383 #define HAVE_FMODE_T 1
33388 $as_echo "$as_me: failed program was:" >&5
33389 sed 's
/^
/|
/' conftest.$ac_ext >&5
33391 { $as_echo "$as_me:$LINENO: result: no" >&5
33392 $as_echo "no" >&6; }
33403 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
33404 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
33407 cat confdefs.h - <<_ACEOF >conftest.c
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33415 #include <linux/fs.h>
33421 struct block_device *bdev = NULL;
33422 (void) blkdev_get(bdev, 0, NULL);
33432 cat - <<_ACEOF >conftest.h
33437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33438 echo "obj-m := conftest.o" >build/Makefile
33440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33441 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33443 (eval $ac_try) 2>&5
33445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33448 (eval $ac_try) 2>&5
33450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); }; }; then
33453 { $as_echo "$as_me:$LINENO: result: yes" >&5
33454 $as_echo "yes" >&6; }
33456 cat >>confdefs.h <<\_ACEOF
33457 #define HAVE_3ARG_BLKDEV_GET 1
33462 $as_echo "$as_me: failed program was:" >&5
33463 sed 's
/^
/|
/' conftest.$ac_ext >&5
33465 { $as_echo "$as_me:$LINENO: result: no" >&5
33466 $as_echo "no" >&6; }
33476 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
33477 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
33481 cat confdefs.h - <<_ACEOF >conftest.c
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h. */
33489 #include <linux/fs.h>
33495 blkdev_get_by_path(NULL, 0, NULL);
33505 cat - <<_ACEOF >conftest.h
33510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33511 echo "obj-m := conftest.o" >build/Makefile
33513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33514 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33516 (eval $ac_try) 2>&5
33518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33521 (eval $ac_try) 2>&5
33523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); }; }; then
33527 $as_echo "$as_me: failed program was:" >&5
33528 sed 's
/^
/|
/' conftest.$ac_ext >&5
33537 if test $rc -ne 0; then :
33539 { $as_echo "$as_me:$LINENO: result: no" >&5
33540 $as_echo "no" >&6; }
33543 if test "x$enable_linux_builtin" != xyes; then
33545 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
33546 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33548 if test $rc -ne 0; then
33550 for file in fs/block_dev.c; do
33551 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
33552 "$LINUX/$file" 2>/dev/null
33554 if test $rc -eq 0; then
33559 if test $export -eq 0; then :
33569 if test $rc -ne 0; then :
33571 { $as_echo "$as_me:$LINENO: result: no" >&5
33572 $as_echo "no" >&6; }
33576 { $as_echo "$as_me:$LINENO: result: yes" >&5
33577 $as_echo "yes" >&6; }
33579 cat >>confdefs.h <<\_ACEOF
33580 #define HAVE_BLKDEV_GET_BY_PATH 1
33588 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
33589 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
33593 cat confdefs.h - <<_ACEOF >conftest.c
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h. */
33601 #include <linux/fs.h>
33607 open_bdev_exclusive(NULL, 0, NULL);
33617 cat - <<_ACEOF >conftest.h
33622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33623 echo "obj-m := conftest.o" >build/Makefile
33625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33626 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628 (eval $ac_try) 2>&5
33630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33639 $as_echo "$as_me: failed program was:" >&5
33640 sed 's
/^
/|
/' conftest.$ac_ext >&5
33649 if test $rc -ne 0; then :
33651 { $as_echo "$as_me:$LINENO: result: no" >&5
33652 $as_echo "no" >&6; }
33655 if test "x$enable_linux_builtin" != xyes; then
33657 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
33658 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33660 if test $rc -ne 0; then
33662 for file in fs/block_dev.c; do
33663 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
33664 "$LINUX/$file" 2>/dev/null
33666 if test $rc -eq 0; then
33671 if test $export -eq 0; then :
33681 if test $rc -ne 0; then :
33683 { $as_echo "$as_me:$LINENO: result: no" >&5
33684 $as_echo "no" >&6; }
33688 { $as_echo "$as_me:$LINENO: result: yes" >&5
33689 $as_echo "yes" >&6; }
33691 cat >>confdefs.h <<\_ACEOF
33692 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
33700 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
33701 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
33705 cat confdefs.h - <<_ACEOF >conftest.c
33708 cat confdefs.h >>conftest.$ac_ext
33709 cat >>conftest.$ac_ext <<_ACEOF
33710 /* end confdefs.h. */
33713 #include <linux/fs.h>
33729 cat - <<_ACEOF >conftest.h
33734 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33735 echo "obj-m := conftest.o" >build/Makefile
33737 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33738 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33740 (eval $ac_try) 2>&5
33742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33751 $as_echo "$as_me: failed program was:" >&5
33752 sed 's
/^
/|
/' conftest.$ac_ext >&5
33761 if test $rc -ne 0; then :
33763 { $as_echo "$as_me:$LINENO: result: no" >&5
33764 $as_echo "no" >&6; }
33765 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
33766 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
33770 cat confdefs.h - <<_ACEOF >conftest.c
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33778 #include <linux/fs.h>
33784 lookup_bdev(NULL, FMODE_READ);
33794 cat - <<_ACEOF >conftest.h
33799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33800 echo "obj-m := conftest.o" >build/Makefile
33802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33803 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805 (eval $ac_try) 2>&5
33807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33810 (eval $ac_try) 2>&5
33812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
33816 $as_echo "$as_me: failed program was:" >&5
33817 sed 's
/^
/|
/' conftest.$ac_ext >&5
33826 if test $rc -ne 0; then :
33828 { $as_echo "$as_me:$LINENO: result: no" >&5
33829 $as_echo "no" >&6; }
33832 if test "x$enable_linux_builtin" != xyes; then
33834 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
33835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33837 if test $rc -ne 0; then
33839 for file in fs/block_dev.c; do
33840 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33841 "$LINUX/$file" 2>/dev/null
33843 if test $rc -eq 0; then
33848 if test $export -eq 0; then :
33858 if test $rc -ne 0; then :
33860 { $as_echo "$as_me:$LINENO: result: no" >&5
33861 $as_echo "no" >&6; }
33865 { $as_echo "$as_me:$LINENO: result: yes" >&5
33866 $as_echo "yes" >&6; }
33868 cat >>confdefs.h <<\_ACEOF
33869 #define HAVE_2ARGS_LOOKUP_BDEV 1
33878 if test "x$enable_linux_builtin" != xyes; then
33880 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
33881 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33883 if test $rc -ne 0; then
33885 for file in fs/block_dev.c; do
33886 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33887 "$LINUX/$file" 2>/dev/null
33889 if test $rc -eq 0; then
33894 if test $export -eq 0; then :
33904 if test $rc -ne 0; then :
33906 { $as_echo "$as_me:$LINENO: result: no" >&5
33907 $as_echo "no" >&6; }
33908 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
33909 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
33913 cat confdefs.h - <<_ACEOF >conftest.c
33916 cat confdefs.h >>conftest.$ac_ext
33917 cat >>conftest.$ac_ext <<_ACEOF
33918 /* end confdefs.h. */
33921 #include <linux/fs.h>
33927 lookup_bdev(NULL, FMODE_READ);
33937 cat - <<_ACEOF >conftest.h
33942 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33943 echo "obj-m := conftest.o" >build/Makefile
33945 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33946 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33948 (eval $ac_try) 2>&5
33950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33953 (eval $ac_try) 2>&5
33955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); }; }; then
33959 $as_echo "$as_me: failed program was:" >&5
33960 sed 's
/^
/|
/' conftest.$ac_ext >&5
33969 if test $rc -ne 0; then :
33971 { $as_echo "$as_me:$LINENO: result: no" >&5
33972 $as_echo "no" >&6; }
33975 if test "x$enable_linux_builtin" != xyes; then
33977 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
33978 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
33980 if test $rc -ne 0; then
33982 for file in fs/block_dev.c; do
33983 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
33984 "$LINUX/$file" 2>/dev/null
33986 if test $rc -eq 0; then
33991 if test $export -eq 0; then :
34001 if test $rc -ne 0; then :
34003 { $as_echo "$as_me:$LINENO: result: no" >&5
34004 $as_echo "no" >&6; }
34008 { $as_echo "$as_me:$LINENO: result: yes" >&5
34009 $as_echo "yes" >&6; }
34011 cat >>confdefs.h <<\_ACEOF
34012 #define HAVE_2ARGS_LOOKUP_BDEV 1
34022 { $as_echo "$as_me:$LINENO: result: yes" >&5
34023 $as_echo "yes" >&6; }
34025 cat >>confdefs.h <<\_ACEOF
34026 #define HAVE_1ARG_LOOKUP_BDEV 1
34035 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
34036 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
34039 cat confdefs.h - <<_ACEOF >conftest.c
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h. */
34047 #include <linux/buffer_head.h>
34053 struct block_device *bdev = NULL;
34054 invalidate_bdev(bdev);
34064 cat - <<_ACEOF >conftest.h
34069 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34070 echo "obj-m := conftest.o" >build/Makefile
34072 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34073 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34080 (eval $ac_try) 2>&5
34082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083 (exit $ac_status); }; }; then
34085 { $as_echo "$as_me:$LINENO: result: yes" >&5
34086 $as_echo "yes" >&6; }
34088 cat >>confdefs.h <<\_ACEOF
34089 #define HAVE_1ARG_INVALIDATE_BDEV 1
34094 $as_echo "$as_me: failed program was:" >&5
34095 sed 's
/^
/|
/' conftest.$ac_ext >&5
34097 { $as_echo "$as_me:$LINENO: result: no" >&5
34098 $as_echo "no" >&6; }
34109 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
34110 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
34111 tmp_flags="$EXTRA_KCFLAGS"
34112 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34115 cat confdefs.h - <<_ACEOF >conftest.c
34118 cat confdefs.h >>conftest.$ac_ext
34119 cat >>conftest.$ac_ext <<_ACEOF
34120 /* end confdefs.h. */
34123 #include <linux/blkdev.h>
34129 struct block_device *bdev = NULL;
34130 bdev_logical_block_size(bdev);
34140 cat - <<_ACEOF >conftest.h
34145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34146 echo "obj-m := conftest.o" >build/Makefile
34148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34149 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34151 (eval $ac_try) 2>&5
34153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34161 { $as_echo "$as_me:$LINENO: result: yes" >&5
34162 $as_echo "yes" >&6; }
34164 cat >>confdefs.h <<\_ACEOF
34165 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
34170 $as_echo "$as_me: failed program was:" >&5
34171 sed 's
/^
/|
/' conftest.$ac_ext >&5
34173 { $as_echo "$as_me:$LINENO: result: no" >&5
34174 $as_echo "no" >&6; }
34183 EXTRA_KCFLAGS="$tmp_flags"
34186 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
34187 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
34188 tmp_flags="$EXTRA_KCFLAGS"
34189 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
34192 cat confdefs.h - <<_ACEOF >conftest.c
34195 cat confdefs.h >>conftest.$ac_ext
34196 cat >>conftest.$ac_ext <<_ACEOF
34197 /* end confdefs.h. */
34200 #include <linux/blkdev.h>
34206 struct block_device *bdev = NULL;
34207 bdev_physical_block_size(bdev);
34217 cat - <<_ACEOF >conftest.h
34222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34223 echo "obj-m := conftest.o" >build/Makefile
34225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34226 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34228 (eval $ac_try) 2>&5
34230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34233 (eval $ac_try) 2>&5
34235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
34238 { $as_echo "$as_me:$LINENO: result: yes" >&5
34239 $as_echo "yes" >&6; }
34241 cat >>confdefs.h <<\_ACEOF
34242 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
34247 $as_echo "$as_me: failed program was:" >&5
34248 sed 's
/^
/|
/' conftest.$ac_ext >&5
34250 { $as_echo "$as_me:$LINENO: result: no" >&5
34251 $as_echo "no" >&6; }
34260 EXTRA_KCFLAGS="$tmp_flags"
34263 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
34264 $as_echo_n "checking whether bio has bi_iter... " >&6; }
34267 cat confdefs.h - <<_ACEOF >conftest.c
34270 cat confdefs.h >>conftest.$ac_ext
34271 cat >>conftest.$ac_ext <<_ACEOF
34272 /* end confdefs.h. */
34275 #include <linux/bio.h>
34282 bio.bi_iter.bi_sector = 0;
34292 cat - <<_ACEOF >conftest.h
34297 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34298 echo "obj-m := conftest.o" >build/Makefile
34300 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34301 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34303 (eval $ac_try) 2>&5
34305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34306 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34308 (eval $ac_try) 2>&5
34310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); }; }; then
34313 { $as_echo "$as_me:$LINENO: result: yes" >&5
34314 $as_echo "yes" >&6; }
34316 cat >>confdefs.h <<\_ACEOF
34317 #define HAVE_BIO_BVEC_ITER 1
34322 $as_echo "$as_me: failed program was:" >&5
34323 sed 's
/^
/|
/' conftest.$ac_ext >&5
34325 { $as_echo "$as_me:$LINENO: result: no" >&5
34326 $as_echo "no" >&6; }
34337 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
34338 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
34341 cat confdefs.h - <<_ACEOF >conftest.c
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h. */
34349 #include <linux/bio.h>
34355 int flags __attribute__ ((unused));
34356 flags = ((1 << BIO_RW_FAILFAST_DEV) |
34357 (1 << BIO_RW_FAILFAST_TRANSPORT) |
34358 (1 << BIO_RW_FAILFAST_DRIVER));
34368 cat - <<_ACEOF >conftest.h
34373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34374 echo "obj-m := conftest.o" >build/Makefile
34376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34377 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34384 (eval $ac_try) 2>&5
34386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34387 (exit $ac_status); }; }; then
34389 { $as_echo "$as_me:$LINENO: result: yes" >&5
34390 $as_echo "yes" >&6; }
34392 cat >>confdefs.h <<\_ACEOF
34393 #define HAVE_BIO_RW_FAILFAST_DTD 1
34398 $as_echo "$as_me: failed program was:" >&5
34399 sed 's
/^
/|
/' conftest.$ac_ext >&5
34401 { $as_echo "$as_me:$LINENO: result: no" >&5
34402 $as_echo "no" >&6; }
34413 { $as_echo "$as_me:$LINENO: checking whether bio_set_dev() exists" >&5
34414 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
34417 cat confdefs.h - <<_ACEOF >conftest.c
34420 cat confdefs.h >>conftest.$ac_ext
34421 cat >>conftest.$ac_ext <<_ACEOF
34422 /* end confdefs.h. */
34425 #include <linux/bio.h>
34426 #include <linux/fs.h>
34432 struct block_device *bdev = NULL;
34433 struct bio *bio = NULL;
34434 bio_set_dev(bio, bdev);
34444 cat - <<_ACEOF >conftest.h
34449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34450 echo "obj-m := conftest.o" >build/Makefile
34452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34453 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34460 (eval $ac_try) 2>&5
34462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); }; }; then
34465 { $as_echo "$as_me:$LINENO: result: yes" >&5
34466 $as_echo "yes" >&6; }
34468 cat >>confdefs.h <<\_ACEOF
34469 #define HAVE_BIO_SET_DEV 1
34474 $as_echo "$as_me: failed program was:" >&5
34475 sed 's
/^
/|
/' conftest.$ac_ext >&5
34477 { $as_echo "$as_me:$LINENO: result: no" >&5
34478 $as_echo "no" >&6; }
34489 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
34490 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
34493 cat confdefs.h - <<_ACEOF >conftest.c
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h. */
34501 #include <linux/bio.h>
34507 int flags __attribute__ ((unused));
34508 flags = REQ_FAILFAST_MASK;
34518 cat - <<_ACEOF >conftest.h
34523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34524 echo "obj-m := conftest.o" >build/Makefile
34526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34527 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34529 (eval $ac_try) 2>&5
34531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; }; then
34539 { $as_echo "$as_me:$LINENO: result: yes" >&5
34540 $as_echo "yes" >&6; }
34542 cat >>confdefs.h <<\_ACEOF
34543 #define HAVE_REQ_FAILFAST_MASK 1
34548 $as_echo "$as_me: failed program was:" >&5
34549 sed 's
/^
/|
/' conftest.$ac_ext >&5
34551 { $as_echo "$as_me:$LINENO: result: no" >&5
34552 $as_echo "no" >&6; }
34563 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
34564 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
34567 cat confdefs.h - <<_ACEOF >conftest.c
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34575 #include <linux/blk_types.h>
34581 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
34591 cat - <<_ACEOF >conftest.h
34596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34597 echo "obj-m := conftest.o" >build/Makefile
34599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34600 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602 (eval $ac_try) 2>&5
34604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34607 (eval $ac_try) 2>&5
34609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); }; }; then
34612 { $as_echo "$as_me:$LINENO: result: yes" >&5
34613 $as_echo "yes" >&6; }
34615 cat >>confdefs.h <<\_ACEOF
34616 #define HAVE_REQ_OP_DISCARD 1
34621 $as_echo "$as_me: failed program was:" >&5
34622 sed 's
/^
/|
/' conftest.$ac_ext >&5
34624 { $as_echo "$as_me:$LINENO: result: no" >&5
34625 $as_echo "no" >&6; }
34636 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
34637 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
34640 cat confdefs.h - <<_ACEOF >conftest.c
34643 cat confdefs.h >>conftest.$ac_ext
34644 cat >>conftest.$ac_ext <<_ACEOF
34645 /* end confdefs.h. */
34648 #include <linux/blk_types.h>
34654 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
34664 cat - <<_ACEOF >conftest.h
34669 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34670 echo "obj-m := conftest.o" >build/Makefile
34672 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34673 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34675 (eval $ac_try) 2>&5
34677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680 (eval $ac_try) 2>&5
34682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); }; }; then
34685 { $as_echo "$as_me:$LINENO: result: yes" >&5
34686 $as_echo "yes" >&6; }
34688 cat >>confdefs.h <<\_ACEOF
34689 #define HAVE_REQ_OP_SECURE_ERASE 1
34694 $as_echo "$as_me: failed program was:" >&5
34695 sed 's
/^
/|
/' conftest.$ac_ext >&5
34697 { $as_echo "$as_me:$LINENO: result: no" >&5
34698 $as_echo "no" >&6; }
34709 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
34710 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
34713 cat confdefs.h - <<_ACEOF >conftest.c
34716 cat confdefs.h >>conftest.$ac_ext
34717 cat >>conftest.$ac_ext <<_ACEOF
34718 /* end confdefs.h. */
34721 #include <linux/blk_types.h>
34727 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
34737 cat - <<_ACEOF >conftest.h
34742 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34743 echo "obj-m := conftest.o" >build/Makefile
34745 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34746 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34748 (eval $ac_try) 2>&5
34750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34753 (eval $ac_try) 2>&5
34755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34756 (exit $ac_status); }; }; then
34758 { $as_echo "$as_me:$LINENO: result: yes" >&5
34759 $as_echo "yes" >&6; }
34761 cat >>confdefs.h <<\_ACEOF
34762 #define HAVE_REQ_OP_FLUSH 1
34767 $as_echo "$as_me: failed program was:" >&5
34768 sed 's
/^
/|
/' conftest.$ac_ext >&5
34770 { $as_echo "$as_me:$LINENO: result: no" >&5
34771 $as_echo "no" >&6; }
34782 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
34783 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
34786 cat confdefs.h - <<_ACEOF >conftest.c
34789 cat confdefs.h >>conftest.$ac_ext
34790 cat >>conftest.$ac_ext <<_ACEOF
34791 /* end confdefs.h. */
34794 #include <linux/bio.h>
34800 struct bio bio __attribute__ ((unused));
34811 cat - <<_ACEOF >conftest.h
34816 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34817 echo "obj-m := conftest.o" >build/Makefile
34819 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34820 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34822 (eval $ac_try) 2>&5
34824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34825 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827 (eval $ac_try) 2>&5
34829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830 (exit $ac_status); }; }; then
34832 { $as_echo "$as_me:$LINENO: result: yes" >&5
34833 $as_echo "yes" >&6; }
34835 cat >>confdefs.h <<\_ACEOF
34836 #define HAVE_BIO_BI_OPF 1
34841 $as_echo "$as_me: failed program was:" >&5
34842 sed 's
/^
/|
/' conftest.$ac_ext >&5
34844 { $as_echo "$as_me:$LINENO: result: no" >&5
34845 $as_echo "no" >&6; }
34856 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
34857 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
34860 cat confdefs.h - <<_ACEOF >conftest.c
34863 cat confdefs.h >>conftest.$ac_ext
34864 cat >>conftest.$ac_ext <<_ACEOF
34865 /* end confdefs.h. */
34868 #include <linux/bio.h>
34870 void wanted_end_io(struct bio *bio) { return; }
34872 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
34887 cat - <<_ACEOF >conftest.h
34892 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34893 echo "obj-m := conftest.o" >build/Makefile
34895 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34896 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34903 (eval $ac_try) 2>&5
34905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); }; }; then
34908 { $as_echo "$as_me:$LINENO: result: yes" >&5
34909 $as_echo "yes" >&6; }
34911 cat >>confdefs.h <<\_ACEOF
34912 #define HAVE_1ARG_BIO_END_IO_T 1
34917 $as_echo "$as_me: failed program was:" >&5
34918 sed 's
/^
/|
/' conftest.$ac_ext >&5
34920 { $as_echo "$as_me:$LINENO: result: no" >&5
34921 $as_echo "no" >&6; }
34932 { $as_echo "$as_me:$LINENO: checking whether bio->bi_status exists" >&5
34933 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
34936 cat confdefs.h - <<_ACEOF >conftest.c
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h. */
34944 #include <linux/bio.h>
34950 struct bio bio __attribute__ ((unused));
34951 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
34953 bio.bi_status = status;
34963 cat - <<_ACEOF >conftest.h
34968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34969 echo "obj-m := conftest.o" >build/Makefile
34971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34972 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34974 (eval $ac_try) 2>&5
34976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; }; then
34984 { $as_echo "$as_me:$LINENO: result: yes" >&5
34985 $as_echo "yes" >&6; }
34987 cat >>confdefs.h <<\_ACEOF
34988 #define HAVE_BIO_BI_STATUS 1
34993 $as_echo "$as_me: failed program was:" >&5
34994 sed 's
/^
/|
/' conftest.$ac_ext >&5
34996 { $as_echo "$as_me:$LINENO: result: no" >&5
34997 $as_echo "no" >&6; }
35008 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
35009 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
35012 cat confdefs.h - <<_ACEOF >conftest.c
35015 cat confdefs.h >>conftest.$ac_ext
35016 cat >>conftest.$ac_ext <<_ACEOF
35017 /* end confdefs.h. */
35020 #include <linux/bio.h>
35026 int flags __attribute__ ((unused));
35027 flags = BIO_RW_BARRIER;
35037 cat - <<_ACEOF >conftest.h
35042 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35043 echo "obj-m := conftest.o" >build/Makefile
35045 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35046 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35048 (eval $ac_try) 2>&5
35050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053 (eval $ac_try) 2>&5
35055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; }; then
35058 { $as_echo "$as_me:$LINENO: result: yes" >&5
35059 $as_echo "yes" >&6; }
35061 cat >>confdefs.h <<\_ACEOF
35062 #define HAVE_BIO_RW_BARRIER 1
35067 $as_echo "$as_me: failed program was:" >&5
35068 sed 's
/^
/|
/' conftest.$ac_ext >&5
35070 { $as_echo "$as_me:$LINENO: result: no" >&5
35071 $as_echo "no" >&6; }
35082 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
35083 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
35086 cat confdefs.h - <<_ACEOF >conftest.c
35089 cat confdefs.h >>conftest.$ac_ext
35090 cat >>conftest.$ac_ext <<_ACEOF
35091 /* end confdefs.h. */
35094 #include <linux/bio.h>
35100 int flags __attribute__ ((unused));
35101 flags = BIO_RW_DISCARD;
35111 cat - <<_ACEOF >conftest.h
35116 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35117 echo "obj-m := conftest.o" >build/Makefile
35119 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35120 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35122 (eval $ac_try) 2>&5
35124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35127 (eval $ac_try) 2>&5
35129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); }; }; then
35132 { $as_echo "$as_me:$LINENO: result: yes" >&5
35133 $as_echo "yes" >&6; }
35135 cat >>confdefs.h <<\_ACEOF
35136 #define HAVE_BIO_RW_DISCARD 1
35141 $as_echo "$as_me: failed program was:" >&5
35142 sed 's
/^
/|
/' conftest.$ac_ext >&5
35144 { $as_echo "$as_me:$LINENO: result: no" >&5
35145 $as_echo "no" >&6; }
35156 { $as_echo "$as_me:$LINENO: checking whether blk_queue bdi is dynamic" >&5
35157 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
35160 cat confdefs.h - <<_ACEOF >conftest.c
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h. */
35168 #include <linux/blkdev.h>
35174 struct request_queue q;
35175 struct backing_dev_info bdi;
35176 q.backing_dev_info = &bdi;
35186 cat - <<_ACEOF >conftest.h
35191 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35192 echo "obj-m := conftest.o" >build/Makefile
35194 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35195 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35197 (eval $ac_try) 2>&5
35199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35202 (eval $ac_try) 2>&5
35204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35205 (exit $ac_status); }; }; then
35207 { $as_echo "$as_me:$LINENO: result: yes" >&5
35208 $as_echo "yes" >&6; }
35210 cat >>confdefs.h <<\_ACEOF
35211 #define HAVE_BLK_QUEUE_BDI_DYNAMIC 1
35216 $as_echo "$as_me: failed program was:" >&5
35217 sed 's
/^
/|
/' conftest.$ac_ext >&5
35219 { $as_echo "$as_me:$LINENO: result: no" >&5
35220 $as_echo "no" >&6; }
35231 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
35232 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
35233 tmp_flags="$EXTRA_KCFLAGS"
35234 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35237 cat confdefs.h - <<_ACEOF >conftest.c
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h. */
35245 #include <linux/blkdev.h>
35251 struct request_queue *q = NULL;
35252 (void) blk_queue_flush(q, REQ_FLUSH);
35262 cat - <<_ACEOF >conftest.h
35267 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35268 echo "obj-m := conftest.o" >build/Makefile
35270 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35271 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35278 (eval $ac_try) 2>&5
35280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); }; }; then
35283 { $as_echo "$as_me:$LINENO: result: yes" >&5
35284 $as_echo "yes" >&6; }
35286 cat >>confdefs.h <<\_ACEOF
35287 #define HAVE_BLK_QUEUE_FLUSH 1
35291 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
35292 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
35295 cat confdefs.h - <<_ACEOF >conftest.c
35298 cat confdefs.h >>conftest.$ac_ext
35299 cat >>conftest.$ac_ext <<_ACEOF
35300 /* end confdefs.h. */
35303 #include <linux/module.h>
35304 #include <linux/blkdev.h>
35306 MODULE_LICENSE("$ZFS_META_LICENSE");
35312 struct request_queue *q = NULL;
35313 (void) blk_queue_flush(q, REQ_FLUSH);
35323 cat - <<_ACEOF >conftest.h
35328 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35329 echo "obj-m := conftest.o" >build/Makefile
35331 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35332 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35334 (eval $ac_try) 2>&5
35336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35339 (eval $ac_try) 2>&5
35341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); }; }; then
35344 { $as_echo "$as_me:$LINENO: result: no" >&5
35345 $as_echo "no" >&6; }
35348 $as_echo "$as_me: failed program was:" >&5
35349 sed 's
/^
/|
/' conftest.$ac_ext >&5
35351 { $as_echo "$as_me:$LINENO: result: yes" >&5
35352 $as_echo "yes" >&6; }
35354 cat >>confdefs.h <<\_ACEOF
35355 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
35368 $as_echo "$as_me: failed program was:" >&5
35369 sed 's
/^
/|
/' conftest.$ac_ext >&5
35371 { $as_echo "$as_me:$LINENO: result: no" >&5
35372 $as_echo "no" >&6; }
35382 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
35383 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
35386 cat confdefs.h - <<_ACEOF >conftest.c
35389 cat confdefs.h >>conftest.$ac_ext
35390 cat >>conftest.$ac_ext <<_ACEOF
35391 /* end confdefs.h. */
35394 #include <linux/kernel.h>
35395 #include <linux/blkdev.h>
35402 struct request_queue *q = NULL;
35403 blk_queue_write_cache(q, true, true);
35413 cat - <<_ACEOF >conftest.h
35418 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35419 echo "obj-m := conftest.o" >build/Makefile
35421 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35422 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35424 (eval $ac_try) 2>&5
35426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; }; then
35434 { $as_echo "$as_me:$LINENO: result: yes" >&5
35435 $as_echo "yes" >&6; }
35437 cat >>confdefs.h <<\_ACEOF
35438 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
35442 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
35443 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
35446 cat confdefs.h - <<_ACEOF >conftest.c
35449 cat confdefs.h >>conftest.$ac_ext
35450 cat >>conftest.$ac_ext <<_ACEOF
35451 /* end confdefs.h. */
35454 #include <linux/kernel.h>
35455 #include <linux/module.h>
35456 #include <linux/blkdev.h>
35458 MODULE_LICENSE("$ZFS_META_LICENSE");
35464 struct request_queue *q = NULL;
35465 blk_queue_write_cache(q, true, true);
35475 cat - <<_ACEOF >conftest.h
35480 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35481 echo "obj-m := conftest.o" >build/Makefile
35483 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35484 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486 (eval $ac_try) 2>&5
35488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35491 (eval $ac_try) 2>&5
35493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 (exit $ac_status); }; }; then
35496 { $as_echo "$as_me:$LINENO: result: no" >&5
35497 $as_echo "no" >&6; }
35500 $as_echo "$as_me: failed program was:" >&5
35501 sed 's
/^
/|
/' conftest.$ac_ext >&5
35503 { $as_echo "$as_me:$LINENO: result: yes" >&5
35504 $as_echo "yes" >&6; }
35506 cat >>confdefs.h <<\_ACEOF
35507 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
35520 $as_echo "$as_me: failed program was:" >&5
35521 sed 's
/^
/|
/' conftest.$ac_ext >&5
35523 { $as_echo "$as_me:$LINENO: result: no" >&5
35524 $as_echo "no" >&6; }
35534 EXTRA_KCFLAGS="$tmp_flags"
35537 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
35538 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
35539 tmp_flags="$EXTRA_KCFLAGS"
35540 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35543 cat confdefs.h - <<_ACEOF >conftest.c
35546 cat confdefs.h >>conftest.$ac_ext
35547 cat >>conftest.$ac_ext <<_ACEOF
35548 /* end confdefs.h. */
35551 #include <linux/blkdev.h>
35557 struct request_queue *q = NULL;
35558 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
35568 cat - <<_ACEOF >conftest.h
35573 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35574 echo "obj-m := conftest.o" >build/Makefile
35576 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35577 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35579 (eval $ac_try) 2>&5
35581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35582 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35584 (eval $ac_try) 2>&5
35586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; }; then
35589 { $as_echo "$as_me:$LINENO: result: yes" >&5
35590 $as_echo "yes" >&6; }
35592 cat >>confdefs.h <<\_ACEOF
35593 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
35598 $as_echo "$as_me: failed program was:" >&5
35599 sed 's
/^
/|
/' conftest.$ac_ext >&5
35601 { $as_echo "$as_me:$LINENO: result: no" >&5
35602 $as_echo "no" >&6; }
35611 EXTRA_KCFLAGS="$tmp_flags"
35614 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
35615 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
35616 tmp_flags="$EXTRA_KCFLAGS"
35617 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35620 cat confdefs.h - <<_ACEOF >conftest.c
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h. */
35628 #include <linux/blkdev.h>
35634 struct request_queue *q = NULL;
35635 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
35645 cat - <<_ACEOF >conftest.h
35650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35651 echo "obj-m := conftest.o" >build/Makefile
35653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35654 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35656 (eval $ac_try) 2>&5
35658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35666 { $as_echo "$as_me:$LINENO: result: yes" >&5
35667 $as_echo "yes" >&6; }
35669 cat >>confdefs.h <<\_ACEOF
35670 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
35675 $as_echo "$as_me: failed program was:" >&5
35676 sed 's
/^
/|
/' conftest.$ac_ext >&5
35678 { $as_echo "$as_me:$LINENO: result: no" >&5
35679 $as_echo "no" >&6; }
35688 EXTRA_KCFLAGS="$tmp_flags"
35691 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
35692 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
35693 tmp_flags="$EXTRA_KCFLAGS"
35694 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35697 cat confdefs.h - <<_ACEOF >conftest.c
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h. */
35705 #include <linux/blkdev.h>
35711 extern enum bio_rw_flags rw;
35713 rw = BIO_RW_UNPLUG;
35723 cat - <<_ACEOF >conftest.h
35728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35729 echo "obj-m := conftest.o" >build/Makefile
35731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35732 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35739 (eval $ac_try) 2>&5
35741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); }; }; then
35744 { $as_echo "$as_me:$LINENO: result: yes" >&5
35745 $as_echo "yes" >&6; }
35747 cat >>confdefs.h <<\_ACEOF
35748 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
35753 $as_echo "$as_me: failed program was:" >&5
35754 sed 's
/^
/|
/' conftest.$ac_ext >&5
35756 { $as_echo "$as_me:$LINENO: result: no" >&5
35757 $as_echo "no" >&6; }
35766 EXTRA_KCFLAGS="$tmp_flags"
35769 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
35770 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
35771 tmp_flags="$EXTRA_KCFLAGS"
35772 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35775 cat confdefs.h - <<_ACEOF >conftest.c
35778 cat confdefs.h >>conftest.$ac_ext
35779 cat >>conftest.$ac_ext <<_ACEOF
35780 /* end confdefs.h. */
35783 #include <linux/blkdev.h>
35789 struct blk_plug plug;
35791 blk_start_plug(&plug);
35792 blk_finish_plug(&plug);
35802 cat - <<_ACEOF >conftest.h
35807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35808 echo "obj-m := conftest.o" >build/Makefile
35810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35811 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35818 (eval $ac_try) 2>&5
35820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821 (exit $ac_status); }; }; then
35823 { $as_echo "$as_me:$LINENO: result: yes" >&5
35824 $as_echo "yes" >&6; }
35826 cat >>confdefs.h <<\_ACEOF
35827 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
35832 $as_echo "$as_me: failed program was:" >&5
35833 sed 's
/^
/|
/' conftest.$ac_ext >&5
35835 { $as_echo "$as_me:$LINENO: result: no" >&5
35836 $as_echo "no" >&6; }
35845 EXTRA_KCFLAGS="$tmp_flags"
35848 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
35849 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
35850 tmp_flags="$EXTRA_KCFLAGS"
35851 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
35854 cat confdefs.h - <<_ACEOF >conftest.c
35857 cat confdefs.h >>conftest.$ac_ext
35858 cat >>conftest.$ac_ext <<_ACEOF
35859 /* end confdefs.h. */
35862 #include <linux/blkdev.h>
35868 struct gendisk *disk = NULL;
35869 (void) get_disk_ro(disk);
35879 cat - <<_ACEOF >conftest.h
35884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35885 echo "obj-m := conftest.o" >build/Makefile
35887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35888 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35890 (eval $ac_try) 2>&5
35892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35893 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
35900 { $as_echo "$as_me:$LINENO: result: yes" >&5
35901 $as_echo "yes" >&6; }
35903 cat >>confdefs.h <<\_ACEOF
35904 #define HAVE_GET_DISK_RO 1
35909 $as_echo "$as_me: failed program was:" >&5
35910 sed 's
/^
/|
/' conftest.$ac_ext >&5
35912 { $as_echo "$as_me:$LINENO: result: no" >&5
35913 $as_echo "no" >&6; }
35922 EXTRA_KCFLAGS="$tmp_flags"
35924 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
35925 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
35929 cat confdefs.h - <<_ACEOF >conftest.c
35932 cat confdefs.h >>conftest.$ac_ext
35933 cat >>conftest.$ac_ext <<_ACEOF
35934 /* end confdefs.h. */
35937 #include <linux/genhd.h>
35943 get_gendisk(0, NULL);
35953 cat - <<_ACEOF >conftest.h
35958 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35959 echo "obj-m := conftest.o" >build/Makefile
35961 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35962 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35964 (eval $ac_try) 2>&5
35966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35967 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35969 (eval $ac_try) 2>&5
35971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); }; }; then
35975 $as_echo "$as_me: failed program was:" >&5
35976 sed 's
/^
/|
/' conftest.$ac_ext >&5
35985 if test $rc -ne 0; then :
35987 { $as_echo "$as_me:$LINENO: result: no" >&5
35988 $as_echo "no" >&6; }
35991 if test "x$enable_linux_builtin" != xyes; then
35993 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
35994 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35996 if test $rc -ne 0; then
35998 for file in block/genhd.c; do
35999 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
36000 "$LINUX/$file" 2>/dev/null
36002 if test $rc -eq 0; then
36007 if test $export -eq 0; then :
36017 if test $rc -ne 0; then :
36019 { $as_echo "$as_me:$LINENO: result: no" >&5
36020 $as_echo "no" >&6; }
36024 { $as_echo "$as_me:$LINENO: result: yes" >&5
36025 $as_echo "yes" >&6; }
36027 cat >>confdefs.h <<\_ACEOF
36028 #define HAVE_GET_GENDISK 1
36037 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
36038 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
36041 cat confdefs.h - <<_ACEOF >conftest.c
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h. */
36049 #include <linux/bio.h>
36055 struct bio *bio __attribute__ ((unused)) = NULL;
36057 bio_set_op_attrs(bio, 0, 0);
36067 cat - <<_ACEOF >conftest.h
36072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36073 echo "obj-m := conftest.o" >build/Makefile
36075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36076 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36078 (eval $ac_try) 2>&5
36080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36083 (eval $ac_try) 2>&5
36085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); }; }; then
36088 { $as_echo "$as_me:$LINENO: result: yes" >&5
36089 $as_echo "yes" >&6; }
36091 cat >>confdefs.h <<\_ACEOF
36092 #define HAVE_BIO_SET_OP_ATTRS 1
36097 $as_echo "$as_me: failed program was:" >&5
36098 sed 's
/^
/|
/' conftest.$ac_ext >&5
36100 { $as_echo "$as_me:$LINENO: result: no" >&5
36101 $as_echo "no" >&6; }
36112 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
36113 $as_echo_n "checking whether generic_readlink is global... " >&6; }
36116 cat confdefs.h - <<_ACEOF >conftest.c
36119 cat confdefs.h >>conftest.$ac_ext
36120 cat >>conftest.$ac_ext <<_ACEOF
36121 /* end confdefs.h. */
36124 #include <linux/fs.h>
36130 int i __attribute__ ((unused));
36132 i = generic_readlink(NULL, NULL, 0);
36142 cat - <<_ACEOF >conftest.h
36147 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36148 echo "obj-m := conftest.o" >build/Makefile
36150 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36151 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36153 (eval $ac_try) 2>&5
36155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36156 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36158 (eval $ac_try) 2>&5
36160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); }; }; then
36163 { $as_echo "$as_me:$LINENO: result: yes" >&5
36164 $as_echo "yes" >&6; }
36166 cat >>confdefs.h <<\_ACEOF
36167 #define HAVE_GENERIC_READLINK 1
36172 $as_echo "$as_me: failed program was:" >&5
36173 sed 's
/^
/|
/' conftest.$ac_ext >&5
36175 { $as_echo "$as_me:$LINENO: result: no" >&5
36176 $as_echo "no" >&6; }
36187 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
36188 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
36191 cat confdefs.h - <<_ACEOF >conftest.c
36194 cat confdefs.h >>conftest.$ac_ext
36195 cat >>conftest.$ac_ext <<_ACEOF
36196 /* end confdefs.h. */
36199 #include <linux/blkdev.h>
36205 struct queue_limits ql __attribute__ ((unused));
36207 ql.discard_granularity = 0;
36217 cat - <<_ACEOF >conftest.h
36222 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36223 echo "obj-m := conftest.o" >build/Makefile
36225 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36226 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36228 (eval $ac_try) 2>&5
36230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; }; then
36238 { $as_echo "$as_me:$LINENO: result: yes" >&5
36239 $as_echo "yes" >&6; }
36241 cat >>confdefs.h <<\_ACEOF
36242 #define HAVE_DISCARD_GRANULARITY 1
36247 $as_echo "$as_me: failed program was:" >&5
36248 sed 's
/^
/|
/' conftest.$ac_ext >&5
36250 { $as_echo "$as_me:$LINENO: result: no" >&5
36251 $as_echo "no" >&6; }
36262 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
36263 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
36266 cat confdefs.h - <<_ACEOF >conftest.c
36269 cat confdefs.h >>conftest.$ac_ext
36270 cat >>conftest.$ac_ext <<_ACEOF
36271 /* end confdefs.h. */
36274 #include <linux/fs.h>
36275 #include <linux/xattr.h>
36277 const struct xattr_handler xattr_test_handler = {
36283 const struct xattr_handler *xattr_handlers[] = {
36284 &xattr_test_handler,
36287 const struct super_block sb __attribute__ ((unused)) = {
36288 .s_xattr = xattr_handlers,
36304 cat - <<_ACEOF >conftest.h
36309 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36310 echo "obj-m := conftest.o" >build/Makefile
36312 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36313 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315 (eval $ac_try) 2>&5
36317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36320 (eval $ac_try) 2>&5
36322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36323 (exit $ac_status); }; }; then
36325 { $as_echo "$as_me:$LINENO: result: yes" >&5
36326 $as_echo "yes" >&6; }
36328 cat >>confdefs.h <<\_ACEOF
36329 #define HAVE_CONST_XATTR_HANDLER 1
36334 $as_echo "$as_me: failed program was:" >&5
36335 sed 's
/^
/|
/' conftest.$ac_ext >&5
36337 { $as_echo "$as_me:$LINENO: result: no" >&5
36338 $as_echo "no" >&6; }
36349 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
36350 $as_echo_n "checking whether xattr_handler has name... " >&6; }
36353 cat confdefs.h - <<_ACEOF >conftest.c
36356 cat confdefs.h >>conftest.$ac_ext
36357 cat >>conftest.$ac_ext <<_ACEOF
36358 /* end confdefs.h. */
36361 #include <linux/xattr.h>
36363 static const struct xattr_handler
36364 xops __attribute__ ((unused)) = {
36365 .name = XATTR_NAME_POSIX_ACL_ACCESS,
36381 cat - <<_ACEOF >conftest.h
36386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36387 echo "obj-m := conftest.o" >build/Makefile
36389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36390 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36392 (eval $ac_try) 2>&5
36394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36397 (eval $ac_try) 2>&5
36399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36400 (exit $ac_status); }; }; then
36402 { $as_echo "$as_me:$LINENO: result: yes" >&5
36403 $as_echo "yes" >&6; }
36405 cat >>confdefs.h <<\_ACEOF
36406 #define HAVE_XATTR_HANDLER_NAME 1
36411 $as_echo "$as_me: failed program was:" >&5
36412 sed 's
/^
/|
/' conftest.$ac_ext >&5
36414 { $as_echo "$as_me:$LINENO: result: no" >&5
36415 $as_echo "no" >&6; }
36426 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
36427 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
36430 cat confdefs.h - <<_ACEOF >conftest.c
36433 cat confdefs.h >>conftest.$ac_ext
36434 cat >>conftest.$ac_ext <<_ACEOF
36435 /* end confdefs.h. */
36438 #include <linux/xattr.h>
36440 int get(const struct xattr_handler *handler,
36441 struct dentry *dentry, struct inode *inode,
36442 const char *name, void *buffer, size_t size) { return 0; }
36443 static const struct xattr_handler
36444 xops __attribute__ ((unused)) = {
36461 cat - <<_ACEOF >conftest.h
36466 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36467 echo "obj-m := conftest.o" >build/Makefile
36469 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36470 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36472 (eval $ac_try) 2>&5
36474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36477 (eval $ac_try) 2>&5
36479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36480 (exit $ac_status); }; }; then
36482 { $as_echo "$as_me:$LINENO: result: yes" >&5
36483 $as_echo "yes" >&6; }
36485 cat >>confdefs.h <<\_ACEOF
36486 #define HAVE_XATTR_GET_DENTRY_INODE 1
36491 $as_echo "$as_me: failed program was:" >&5
36492 sed 's
/^
/|
/' conftest.$ac_ext >&5
36494 { $as_echo "$as_me:$LINENO: result: no" >&5
36495 $as_echo "no" >&6; }
36496 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
36497 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
36500 cat confdefs.h - <<_ACEOF >conftest.c
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h. */
36508 #include <linux/xattr.h>
36510 int get(const struct xattr_handler *handler,
36511 struct dentry *dentry, const char *name,
36512 void *buffer, size_t size) { return 0; }
36513 static const struct xattr_handler
36514 xops __attribute__ ((unused)) = {
36531 cat - <<_ACEOF >conftest.h
36536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36537 echo "obj-m := conftest.o" >build/Makefile
36539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36540 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36542 (eval $ac_try) 2>&5
36544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36545 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36547 (eval $ac_try) 2>&5
36549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; }; then
36552 { $as_echo "$as_me:$LINENO: result: yes" >&5
36553 $as_echo "yes" >&6; }
36555 cat >>confdefs.h <<\_ACEOF
36556 #define HAVE_XATTR_GET_HANDLER 1
36561 $as_echo "$as_me: failed program was:" >&5
36562 sed 's
/^
/|
/' conftest.$ac_ext >&5
36564 { $as_echo "$as_me:$LINENO: result: no" >&5
36565 $as_echo "no" >&6; }
36566 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
36567 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
36570 cat confdefs.h - <<_ACEOF >conftest.c
36573 cat confdefs.h >>conftest.$ac_ext
36574 cat >>conftest.$ac_ext <<_ACEOF
36575 /* end confdefs.h. */
36578 #include <linux/xattr.h>
36580 int get(struct dentry *dentry, const char *name,
36581 void *buffer, size_t size, int handler_flags)
36583 static const struct xattr_handler
36584 xops __attribute__ ((unused)) = {
36601 cat - <<_ACEOF >conftest.h
36606 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36607 echo "obj-m := conftest.o" >build/Makefile
36609 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36610 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36612 (eval $ac_try) 2>&5
36614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36617 (eval $ac_try) 2>&5
36619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620 (exit $ac_status); }; }; then
36622 { $as_echo "$as_me:$LINENO: result: yes" >&5
36623 $as_echo "yes" >&6; }
36625 cat >>confdefs.h <<\_ACEOF
36626 #define HAVE_XATTR_GET_DENTRY 1
36631 $as_echo "$as_me: failed program was:" >&5
36632 sed 's
/^
/|
/' conftest.$ac_ext >&5
36634 { $as_echo "$as_me:$LINENO: result: no" >&5
36635 $as_echo "no" >&6; }
36636 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
36637 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
36640 cat confdefs.h - <<_ACEOF >conftest.c
36643 cat confdefs.h >>conftest.$ac_ext
36644 cat >>conftest.$ac_ext <<_ACEOF
36645 /* end confdefs.h. */
36648 #include <linux/xattr.h>
36650 int get(struct inode *ip, const char *name,
36651 void *buffer, size_t size) { return 0; }
36652 static const struct xattr_handler
36653 xops __attribute__ ((unused)) = {
36670 cat - <<_ACEOF >conftest.h
36675 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36676 echo "obj-m := conftest.o" >build/Makefile
36678 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36679 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36681 (eval $ac_try) 2>&5
36683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36686 (eval $ac_try) 2>&5
36688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); }; }; then
36691 { $as_echo "$as_me:$LINENO: result: yes" >&5
36692 $as_echo "yes" >&6; }
36694 cat >>confdefs.h <<\_ACEOF
36695 #define HAVE_XATTR_GET_INODE 1
36700 $as_echo "$as_me: failed program was:" >&5
36701 sed 's
/^
/|
/' conftest.$ac_ext >&5
36703 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
36704 $as_echo "$as_me: error: no; please file a bug report" >&2;}
36705 { (exit 1); exit 1; }; }
36740 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
36741 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
36744 cat confdefs.h - <<_ACEOF >conftest.c
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h. */
36752 #include <linux/xattr.h>
36754 int set(const struct xattr_handler *handler,
36755 struct dentry *dentry, struct inode *inode,
36756 const char *name, const void *buffer,
36757 size_t size, int flags)
36759 static const struct xattr_handler
36760 xops __attribute__ ((unused)) = {
36777 cat - <<_ACEOF >conftest.h
36782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36783 echo "obj-m := conftest.o" >build/Makefile
36785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36786 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788 (eval $ac_try) 2>&5
36790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793 (eval $ac_try) 2>&5
36795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796 (exit $ac_status); }; }; then
36798 { $as_echo "$as_me:$LINENO: result: yes" >&5
36799 $as_echo "yes" >&6; }
36801 cat >>confdefs.h <<\_ACEOF
36802 #define HAVE_XATTR_SET_DENTRY_INODE 1
36807 $as_echo "$as_me: failed program was:" >&5
36808 sed 's
/^
/|
/' conftest.$ac_ext >&5
36810 { $as_echo "$as_me:$LINENO: result: no" >&5
36811 $as_echo "no" >&6; }
36812 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
36813 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
36816 cat confdefs.h - <<_ACEOF >conftest.c
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h. */
36824 #include <linux/xattr.h>
36826 int set(const struct xattr_handler *handler,
36827 struct dentry *dentry, const char *name,
36828 const void *buffer, size_t size, int flags)
36830 static const struct xattr_handler
36831 xops __attribute__ ((unused)) = {
36848 cat - <<_ACEOF >conftest.h
36853 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36854 echo "obj-m := conftest.o" >build/Makefile
36856 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36857 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36859 (eval $ac_try) 2>&5
36861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36862 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36864 (eval $ac_try) 2>&5
36866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); }; }; then
36869 { $as_echo "$as_me:$LINENO: result: yes" >&5
36870 $as_echo "yes" >&6; }
36872 cat >>confdefs.h <<\_ACEOF
36873 #define HAVE_XATTR_SET_HANDLER 1
36878 $as_echo "$as_me: failed program was:" >&5
36879 sed 's
/^
/|
/' conftest.$ac_ext >&5
36881 { $as_echo "$as_me:$LINENO: result: no" >&5
36882 $as_echo "no" >&6; }
36883 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
36884 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
36887 cat confdefs.h - <<_ACEOF >conftest.c
36890 cat confdefs.h >>conftest.$ac_ext
36891 cat >>conftest.$ac_ext <<_ACEOF
36892 /* end confdefs.h. */
36895 #include <linux/xattr.h>
36897 int set(struct dentry *dentry, const char *name,
36898 const void *buffer, size_t size, int flags,
36899 int handler_flags) { return 0; }
36900 static const struct xattr_handler
36901 xops __attribute__ ((unused)) = {
36918 cat - <<_ACEOF >conftest.h
36923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36924 echo "obj-m := conftest.o" >build/Makefile
36926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36927 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36929 (eval $ac_try) 2>&5
36931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934 (eval $ac_try) 2>&5
36936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; }; then
36939 { $as_echo "$as_me:$LINENO: result: yes" >&5
36940 $as_echo "yes" >&6; }
36942 cat >>confdefs.h <<\_ACEOF
36943 #define HAVE_XATTR_SET_DENTRY 1
36948 $as_echo "$as_me: failed program was:" >&5
36949 sed 's
/^
/|
/' conftest.$ac_ext >&5
36951 { $as_echo "$as_me:$LINENO: result: no" >&5
36952 $as_echo "no" >&6; }
36953 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
36954 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
36957 cat confdefs.h - <<_ACEOF >conftest.c
36960 cat confdefs.h >>conftest.$ac_ext
36961 cat >>conftest.$ac_ext <<_ACEOF
36962 /* end confdefs.h. */
36965 #include <linux/xattr.h>
36967 int set(struct inode *ip, const char *name,
36968 const void *buffer, size_t size, int flags)
36970 static const struct xattr_handler
36971 xops __attribute__ ((unused)) = {
36988 cat - <<_ACEOF >conftest.h
36993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36994 echo "obj-m := conftest.o" >build/Makefile
36996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36997 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36999 (eval $ac_try) 2>&5
37001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37004 (eval $ac_try) 2>&5
37006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); }; }; then
37009 { $as_echo "$as_me:$LINENO: result: yes" >&5
37010 $as_echo "yes" >&6; }
37012 cat >>confdefs.h <<\_ACEOF
37013 #define HAVE_XATTR_SET_INODE 1
37018 $as_echo "$as_me: failed program was:" >&5
37019 sed 's
/^
/|
/' conftest.$ac_ext >&5
37021 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37022 $as_echo "$as_me: error: no; please file a bug report" >&2;}
37023 { (exit 1); exit 1; }; }
37058 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
37059 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
37062 cat confdefs.h - <<_ACEOF >conftest.c
37065 cat confdefs.h >>conftest.$ac_ext
37066 cat >>conftest.$ac_ext <<_ACEOF
37067 /* end confdefs.h. */
37070 #include <linux/xattr.h>
37072 bool list(struct dentry *dentry) { return 0; }
37073 static const struct xattr_handler
37074 xops __attribute__ ((unused)) = {
37091 cat - <<_ACEOF >conftest.h
37096 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37097 echo "obj-m := conftest.o" >build/Makefile
37099 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37100 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37102 (eval $ac_try) 2>&5
37104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37105 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37107 (eval $ac_try) 2>&5
37109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37110 (exit $ac_status); }; }; then
37112 { $as_echo "$as_me:$LINENO: result: yes" >&5
37113 $as_echo "yes" >&6; }
37115 cat >>confdefs.h <<\_ACEOF
37116 #define HAVE_XATTR_LIST_SIMPLE 1
37121 $as_echo "$as_me: failed program was:" >&5
37122 sed 's
/^
/|
/' conftest.$ac_ext >&5
37124 { $as_echo "$as_me:$LINENO: result: no" >&5
37125 $as_echo "no" >&6; }
37126 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
37127 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
37130 cat confdefs.h - <<_ACEOF >conftest.c
37133 cat confdefs.h >>conftest.$ac_ext
37134 cat >>conftest.$ac_ext <<_ACEOF
37135 /* end confdefs.h. */
37138 #include <linux/xattr.h>
37140 size_t list(const struct xattr_handler *handler,
37141 struct dentry *dentry, char *list, size_t list_size,
37142 const char *name, size_t name_len) { return 0; }
37143 static const struct xattr_handler
37144 xops __attribute__ ((unused)) = {
37161 cat - <<_ACEOF >conftest.h
37166 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37167 echo "obj-m := conftest.o" >build/Makefile
37169 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37170 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37172 (eval $ac_try) 2>&5
37174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37177 (eval $ac_try) 2>&5
37179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180 (exit $ac_status); }; }; then
37182 { $as_echo "$as_me:$LINENO: result: yes" >&5
37183 $as_echo "yes" >&6; }
37185 cat >>confdefs.h <<\_ACEOF
37186 #define HAVE_XATTR_LIST_HANDLER 1
37191 $as_echo "$as_me: failed program was:" >&5
37192 sed 's
/^
/|
/' conftest.$ac_ext >&5
37194 { $as_echo "$as_me:$LINENO: result: no" >&5
37195 $as_echo "no" >&6; }
37196 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
37197 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
37200 cat confdefs.h - <<_ACEOF >conftest.c
37203 cat confdefs.h >>conftest.$ac_ext
37204 cat >>conftest.$ac_ext <<_ACEOF
37205 /* end confdefs.h. */
37208 #include <linux/xattr.h>
37210 size_t list(struct dentry *dentry,
37211 char *list, size_t list_size,
37212 const char *name, size_t name_len,
37213 int handler_flags) { return 0; }
37214 static const struct xattr_handler
37215 xops __attribute__ ((unused)) = {
37232 cat - <<_ACEOF >conftest.h
37237 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37238 echo "obj-m := conftest.o" >build/Makefile
37240 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37241 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37243 (eval $ac_try) 2>&5
37245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; }; then
37253 { $as_echo "$as_me:$LINENO: result: yes" >&5
37254 $as_echo "yes" >&6; }
37256 cat >>confdefs.h <<\_ACEOF
37257 #define HAVE_XATTR_LIST_DENTRY 1
37262 $as_echo "$as_me: failed program was:" >&5
37263 sed 's
/^
/|
/' conftest.$ac_ext >&5
37265 { $as_echo "$as_me:$LINENO: result: no" >&5
37266 $as_echo "no" >&6; }
37267 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
37268 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
37271 cat confdefs.h - <<_ACEOF >conftest.c
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h. */
37279 #include <linux/xattr.h>
37281 size_t list(struct inode *ip, char *lst,
37282 size_t list_size, const char *name,
37283 size_t name_len) { return 0; }
37284 static const struct xattr_handler
37285 xops __attribute__ ((unused)) = {
37302 cat - <<_ACEOF >conftest.h
37307 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37308 echo "obj-m := conftest.o" >build/Makefile
37310 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37311 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37318 (eval $ac_try) 2>&5
37320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321 (exit $ac_status); }; }; then
37323 { $as_echo "$as_me:$LINENO: result: yes" >&5
37324 $as_echo "yes" >&6; }
37326 cat >>confdefs.h <<\_ACEOF
37327 #define HAVE_XATTR_LIST_INODE 1
37332 $as_echo "$as_me: failed program was:" >&5
37333 sed 's
/^
/|
/' conftest.$ac_ext >&5
37335 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
37336 $as_echo "$as_me: error: no; please file a bug report" >&2;}
37337 { (exit 1); exit 1; }; }
37372 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
37373 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
37376 cat confdefs.h - <<_ACEOF >conftest.c
37379 cat confdefs.h >>conftest.$ac_ext
37380 cat >>conftest.$ac_ext <<_ACEOF
37381 /* end confdefs.h. */
37384 #include <linux/fs.h>
37390 struct inode *ip = NULL;
37391 (void) inode_owner_or_capable(ip);
37401 cat - <<_ACEOF >conftest.h
37406 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37407 echo "obj-m := conftest.o" >build/Makefile
37409 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37410 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37412 (eval $ac_try) 2>&5
37414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417 (eval $ac_try) 2>&5
37419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; }; then
37422 { $as_echo "$as_me:$LINENO: result: yes" >&5
37423 $as_echo "yes" >&6; }
37425 cat >>confdefs.h <<\_ACEOF
37426 #define HAVE_INODE_OWNER_OR_CAPABLE 1
37431 $as_echo "$as_me: failed program was:" >&5
37432 sed 's
/^
/|
/' conftest.$ac_ext >&5
37434 { $as_echo "$as_me:$LINENO: result: no" >&5
37435 $as_echo "no" >&6; }
37436 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
37437 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
37440 cat confdefs.h - <<_ACEOF >conftest.c
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h. */
37448 #include <linux/fs.h>
37449 #include <linux/sched.h>
37455 struct inode *ip = NULL;
37456 (void) is_owner_or_cap(ip);
37466 cat - <<_ACEOF >conftest.h
37471 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37472 echo "obj-m := conftest.o" >build/Makefile
37474 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37475 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37477 (eval $ac_try) 2>&5
37479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37480 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; }; then
37487 { $as_echo "$as_me:$LINENO: result: yes" >&5
37488 $as_echo "yes" >&6; }
37490 cat >>confdefs.h <<\_ACEOF
37491 #define HAVE_IS_OWNER_OR_CAP 1
37496 $as_echo "$as_me: failed program was:" >&5
37497 sed 's
/^
/|
/' conftest.$ac_ext >&5
37499 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
37500 https://github.com/zfsonlinux/zfs/issues/new" >&5
37501 $as_echo "$as_me: error: no - Please file a bug report at
37502 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
37503 { (exit 1); exit 1; }; }
37522 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
37523 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
37526 cat confdefs.h - <<_ACEOF >conftest.c
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h. */
37534 #include <linux/cred.h>
37535 #include <linux/fs.h>
37536 #include <linux/posix_acl_xattr.h>
37542 posix_acl_from_xattr(&init_user_ns, NULL, 0);
37552 cat - <<_ACEOF >conftest.h
37557 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37558 echo "obj-m := conftest.o" >build/Makefile
37560 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37561 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37563 (eval $ac_try) 2>&5
37565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568 (eval $ac_try) 2>&5
37570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
37573 { $as_echo "$as_me:$LINENO: result: yes" >&5
37574 $as_echo "yes" >&6; }
37576 cat >>confdefs.h <<\_ACEOF
37577 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
37582 $as_echo "$as_me: failed program was:" >&5
37583 sed 's
/^
/|
/' conftest.$ac_ext >&5
37585 { $as_echo "$as_me:$LINENO: result: no" >&5
37586 $as_echo "no" >&6; }
37597 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
37598 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
37601 cat confdefs.h - <<_ACEOF >conftest.c
37604 cat confdefs.h >>conftest.$ac_ext
37605 cat >>conftest.$ac_ext <<_ACEOF
37606 /* end confdefs.h. */
37609 #include <linux/cred.h>
37610 #include <linux/fs.h>
37611 #include <linux/posix_acl.h>
37617 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37618 posix_acl_release(tmp);
37628 cat - <<_ACEOF >conftest.h
37633 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37634 echo "obj-m := conftest.o" >build/Makefile
37636 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37637 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37639 (eval $ac_try) 2>&5
37641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37644 (eval $ac_try) 2>&5
37646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; }; then
37649 { $as_echo "$as_me:$LINENO: result: yes" >&5
37650 $as_echo "yes" >&6; }
37652 cat >>confdefs.h <<\_ACEOF
37653 #define HAVE_POSIX_ACL_RELEASE 1
37657 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
37658 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
37661 cat confdefs.h - <<_ACEOF >conftest.c
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37669 #include <linux/module.h>
37670 #include <linux/cred.h>
37671 #include <linux/fs.h>
37672 #include <linux/posix_acl.h>
37674 MODULE_LICENSE("$ZFS_META_LICENSE");
37680 struct posix_acl* tmp = posix_acl_alloc(1, 0);
37681 posix_acl_release(tmp);
37691 cat - <<_ACEOF >conftest.h
37696 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37697 echo "obj-m := conftest.o" >build/Makefile
37699 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37700 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37702 (eval $ac_try) 2>&5
37704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37707 (eval $ac_try) 2>&5
37709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710 (exit $ac_status); }; }; then
37712 { $as_echo "$as_me:$LINENO: result: no" >&5
37713 $as_echo "no" >&6; }
37716 $as_echo "$as_me: failed program was:" >&5
37717 sed 's
/^
/|
/' conftest.$ac_ext >&5
37719 { $as_echo "$as_me:$LINENO: result: yes" >&5
37720 $as_echo "yes" >&6; }
37722 cat >>confdefs.h <<\_ACEOF
37723 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
37736 $as_echo "$as_me: failed program was:" >&5
37737 sed 's
/^
/|
/' conftest.$ac_ext >&5
37739 { $as_echo "$as_me:$LINENO: result: no" >&5
37740 $as_echo "no" >&6; }
37751 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
37752 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
37755 cat confdefs.h - <<_ACEOF >conftest.c
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h. */
37763 #include <linux/module.h>
37764 #include <linux/cred.h>
37765 #include <linux/fs.h>
37766 #include <linux/posix_acl.h>
37768 MODULE_LICENSE("$ZFS_META_LICENSE");
37774 struct inode *ip = NULL;
37775 struct posix_acl *acl = posix_acl_alloc(1, 0);
37776 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
37777 forget_cached_acl(ip, ACL_TYPE_ACCESS);
37787 cat - <<_ACEOF >conftest.h
37792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37793 echo "obj-m := conftest.o" >build/Makefile
37795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37796 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37798 (eval $ac_try) 2>&5
37800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37803 (eval $ac_try) 2>&5
37805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); }; }; then
37808 { $as_echo "$as_me:$LINENO: result: yes" >&5
37809 $as_echo "yes" >&6; }
37811 cat >>confdefs.h <<\_ACEOF
37812 #define HAVE_SET_CACHED_ACL_USABLE 1
37817 $as_echo "$as_me: failed program was:" >&5
37818 sed 's
/^
/|
/' conftest.$ac_ext >&5
37820 { $as_echo "$as_me:$LINENO: result: no" >&5
37821 $as_echo "no" >&6; }
37832 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
37833 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
37836 cat confdefs.h - <<_ACEOF >conftest.c
37839 cat confdefs.h >>conftest.$ac_ext
37840 cat >>conftest.$ac_ext <<_ACEOF
37841 /* end confdefs.h. */
37844 #include <linux/fs.h>
37845 #include <linux/posix_acl.h>
37851 posix_acl_chmod(NULL, 0, 0)
37861 cat - <<_ACEOF >conftest.h
37866 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37867 echo "obj-m := conftest.o" >build/Makefile
37869 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37870 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37872 (eval $ac_try) 2>&5
37874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; }; then
37882 { $as_echo "$as_me:$LINENO: result: yes" >&5
37883 $as_echo "yes" >&6; }
37885 cat >>confdefs.h <<\_ACEOF
37886 #define HAVE_POSIX_ACL_CHMOD 1
37891 $as_echo "$as_me: failed program was:" >&5
37892 sed 's
/^
/|
/' conftest.$ac_ext >&5
37894 { $as_echo "$as_me:$LINENO: result: no" >&5
37895 $as_echo "no" >&6; }
37905 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
37906 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
37909 cat confdefs.h - <<_ACEOF >conftest.c
37912 cat confdefs.h >>conftest.$ac_ext
37913 cat >>conftest.$ac_ext <<_ACEOF
37914 /* end confdefs.h. */
37917 #include <linux/fs.h>
37918 #include <linux/posix_acl.h>
37924 __posix_acl_chmod(NULL, 0, 0)
37934 cat - <<_ACEOF >conftest.h
37939 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37940 echo "obj-m := conftest.o" >build/Makefile
37942 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37943 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37945 (eval $ac_try) 2>&5
37947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37950 (eval $ac_try) 2>&5
37952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); }; }; then
37955 { $as_echo "$as_me:$LINENO: result: yes" >&5
37956 $as_echo "yes" >&6; }
37958 cat >>confdefs.h <<\_ACEOF
37959 #define HAVE___POSIX_ACL_CHMOD 1
37964 $as_echo "$as_me: failed program was:" >&5
37965 sed 's
/^
/|
/' conftest.$ac_ext >&5
37967 { $as_echo "$as_me:$LINENO: result: no" >&5
37968 $as_echo "no" >&6; }
37979 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
37980 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
37983 cat confdefs.h - <<_ACEOF >conftest.c
37986 cat confdefs.h >>conftest.$ac_ext
37987 cat >>conftest.$ac_ext <<_ACEOF
37988 /* end confdefs.h. */
37991 #include <linux/fs.h>
37992 #include <linux/posix_acl.h>
37999 posix_acl_equiv_mode(NULL,&tmp);
38009 cat - <<_ACEOF >conftest.h
38014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38015 echo "obj-m := conftest.o" >build/Makefile
38017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38018 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38020 (eval $ac_try) 2>&5
38022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38025 (eval $ac_try) 2>&5
38027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); }; }; then
38030 { $as_echo "$as_me:$LINENO: result: yes" >&5
38031 $as_echo "yes" >&6; }
38033 cat >>confdefs.h <<\_ACEOF
38034 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
38039 $as_echo "$as_me: failed program was:" >&5
38040 sed 's
/^
/|
/' conftest.$ac_ext >&5
38042 { $as_echo "$as_me:$LINENO: result: no" >&5
38043 $as_echo "no" >&6; }
38054 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
38055 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
38058 cat confdefs.h - <<_ACEOF >conftest.c
38061 cat confdefs.h >>conftest.$ac_ext
38062 cat >>conftest.$ac_ext <<_ACEOF
38063 /* end confdefs.h. */
38066 #include <linux/fs.h>
38067 #include <linux/posix_acl.h>
38073 struct user_namespace *user_ns = NULL;
38074 const struct posix_acl *acl = NULL;
38077 error = posix_acl_valid(user_ns, acl);
38087 cat - <<_ACEOF >conftest.h
38092 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38093 echo "obj-m := conftest.o" >build/Makefile
38095 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38096 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098 (eval $ac_try) 2>&5
38100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38103 (eval $ac_try) 2>&5
38105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106 (exit $ac_status); }; }; then
38108 { $as_echo "$as_me:$LINENO: result: yes" >&5
38109 $as_echo "yes" >&6; }
38111 cat >>confdefs.h <<\_ACEOF
38112 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
38117 $as_echo "$as_me: failed program was:" >&5
38118 sed 's
/^
/|
/' conftest.$ac_ext >&5
38120 { $as_echo "$as_me:$LINENO: result: no" >&5
38121 $as_echo "no" >&6; }
38132 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
38133 $as_echo_n "checking whether iops->permission() exists... " >&6; }
38136 cat confdefs.h - <<_ACEOF >conftest.c
38139 cat confdefs.h >>conftest.$ac_ext
38140 cat >>conftest.$ac_ext <<_ACEOF
38141 /* end confdefs.h. */
38144 #include <linux/fs.h>
38146 int permission_fn(struct inode *inode, int mask) { return 0; }
38148 static const struct inode_operations
38149 iops __attribute__ ((unused)) = {
38150 .permission = permission_fn,
38166 cat - <<_ACEOF >conftest.h
38171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38172 echo "obj-m := conftest.o" >build/Makefile
38174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38175 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38177 (eval $ac_try) 2>&5
38179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38182 (eval $ac_try) 2>&5
38184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38185 (exit $ac_status); }; }; then
38187 { $as_echo "$as_me:$LINENO: result: yes" >&5
38188 $as_echo "yes" >&6; }
38190 cat >>confdefs.h <<\_ACEOF
38191 #define HAVE_PERMISSION 1
38196 $as_echo "$as_me: failed program was:" >&5
38197 sed 's
/^
/|
/' conftest.$ac_ext >&5
38199 { $as_echo "$as_me:$LINENO: result: no" >&5
38200 $as_echo "no" >&6; }
38211 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
38212 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
38215 cat confdefs.h - <<_ACEOF >conftest.c
38218 cat confdefs.h >>conftest.$ac_ext
38219 cat >>conftest.$ac_ext <<_ACEOF
38220 /* end confdefs.h. */
38223 #include <linux/fs.h>
38225 int permission_fn(struct inode *inode, int mask,
38226 struct nameidata *nd) { return 0; }
38228 static const struct inode_operations
38229 iops __attribute__ ((unused)) = {
38230 .permission = permission_fn,
38246 cat - <<_ACEOF >conftest.h
38251 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38252 echo "obj-m := conftest.o" >build/Makefile
38254 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38255 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38257 (eval $ac_try) 2>&5
38259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38262 (eval $ac_try) 2>&5
38264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265 (exit $ac_status); }; }; then
38267 { $as_echo "$as_me:$LINENO: result: yes" >&5
38268 $as_echo "yes" >&6; }
38270 cat >>confdefs.h <<\_ACEOF
38271 #define HAVE_PERMISSION 1
38275 cat >>confdefs.h <<\_ACEOF
38276 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
38281 $as_echo "$as_me: failed program was:" >&5
38282 sed 's
/^
/|
/' conftest.$ac_ext >&5
38284 { $as_echo "$as_me:$LINENO: result: no" >&5
38285 $as_echo "no" >&6; }
38296 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
38297 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
38300 cat confdefs.h - <<_ACEOF >conftest.c
38303 cat confdefs.h >>conftest.$ac_ext
38304 cat >>conftest.$ac_ext <<_ACEOF
38305 /* end confdefs.h. */
38308 #include <linux/fs.h>
38310 int check_acl_fn(struct inode *inode, int mask) { return 0; }
38312 static const struct inode_operations
38313 iops __attribute__ ((unused)) = {
38314 .check_acl = check_acl_fn,
38330 cat - <<_ACEOF >conftest.h
38335 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38336 echo "obj-m := conftest.o" >build/Makefile
38338 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38339 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38341 (eval $ac_try) 2>&5
38343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38344 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38346 (eval $ac_try) 2>&5
38348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); }; }; then
38351 { $as_echo "$as_me:$LINENO: result: yes" >&5
38352 $as_echo "yes" >&6; }
38354 cat >>confdefs.h <<\_ACEOF
38355 #define HAVE_CHECK_ACL 1
38360 $as_echo "$as_me: failed program was:" >&5
38361 sed 's
/^
/|
/' conftest.$ac_ext >&5
38363 { $as_echo "$as_me:$LINENO: result: no" >&5
38364 $as_echo "no" >&6; }
38375 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
38376 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
38379 cat confdefs.h - <<_ACEOF >conftest.c
38382 cat confdefs.h >>conftest.$ac_ext
38383 cat >>conftest.$ac_ext <<_ACEOF
38384 /* end confdefs.h. */
38387 #include <linux/fs.h>
38389 int check_acl_fn(struct inode *inode, int mask,
38390 unsigned int flags) { return 0; }
38392 static const struct inode_operations
38393 iops __attribute__ ((unused)) = {
38394 .check_acl = check_acl_fn,
38410 cat - <<_ACEOF >conftest.h
38415 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38416 echo "obj-m := conftest.o" >build/Makefile
38418 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38419 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38421 (eval $ac_try) 2>&5
38423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38424 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38426 (eval $ac_try) 2>&5
38428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); }; }; then
38431 { $as_echo "$as_me:$LINENO: result: yes" >&5
38432 $as_echo "yes" >&6; }
38434 cat >>confdefs.h <<\_ACEOF
38435 #define HAVE_CHECK_ACL 1
38439 cat >>confdefs.h <<\_ACEOF
38440 #define HAVE_CHECK_ACL_WITH_FLAGS 1
38445 $as_echo "$as_me: failed program was:" >&5
38446 sed 's
/^
/|
/' conftest.$ac_ext >&5
38448 { $as_echo "$as_me:$LINENO: result: no" >&5
38449 $as_echo "no" >&6; }
38460 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
38461 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
38464 cat confdefs.h - <<_ACEOF >conftest.c
38467 cat confdefs.h >>conftest.$ac_ext
38468 cat >>conftest.$ac_ext <<_ACEOF
38469 /* end confdefs.h. */
38472 #include <linux/fs.h>
38474 struct posix_acl *get_acl_fn(struct inode *inode, int type)
38477 static const struct inode_operations
38478 iops __attribute__ ((unused)) = {
38479 .get_acl = get_acl_fn,
38495 cat - <<_ACEOF >conftest.h
38500 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38501 echo "obj-m := conftest.o" >build/Makefile
38503 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38504 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38506 (eval $ac_try) 2>&5
38508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38511 (eval $ac_try) 2>&5
38513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); }; }; then
38516 { $as_echo "$as_me:$LINENO: result: yes" >&5
38517 $as_echo "yes" >&6; }
38519 cat >>confdefs.h <<\_ACEOF
38520 #define HAVE_GET_ACL 1
38525 $as_echo "$as_me: failed program was:" >&5
38526 sed 's
/^
/|
/' conftest.$ac_ext >&5
38528 { $as_echo "$as_me:$LINENO: result: no" >&5
38529 $as_echo "no" >&6; }
38540 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
38541 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
38544 cat confdefs.h - <<_ACEOF >conftest.c
38547 cat confdefs.h >>conftest.$ac_ext
38548 cat >>conftest.$ac_ext <<_ACEOF
38549 /* end confdefs.h. */
38552 #include <linux/fs.h>
38554 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
38557 static const struct inode_operations
38558 iops __attribute__ ((unused)) = {
38559 .set_acl = set_acl_fn,
38575 cat - <<_ACEOF >conftest.h
38580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38581 echo "obj-m := conftest.o" >build/Makefile
38583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38584 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586 (eval $ac_try) 2>&5
38588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38591 (eval $ac_try) 2>&5
38593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); }; }; then
38596 { $as_echo "$as_me:$LINENO: result: yes" >&5
38597 $as_echo "yes" >&6; }
38599 cat >>confdefs.h <<\_ACEOF
38600 #define HAVE_SET_ACL 1
38605 $as_echo "$as_me: failed program was:" >&5
38606 sed 's
/^
/|
/' conftest.$ac_ext >&5
38608 { $as_echo "$as_me:$LINENO: result: no" >&5
38609 $as_echo "no" >&6; }
38621 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
38622 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
38625 cat confdefs.h - <<_ACEOF >conftest.c
38628 cat confdefs.h >>conftest.$ac_ext
38629 cat >>conftest.$ac_ext <<_ACEOF
38630 /* end confdefs.h. */
38633 #include <linux/fs.h>
38636 const struct path *p, struct kstat *k,
38637 u32 request_mask, unsigned int query_flags)
38640 static const struct inode_operations
38641 iops __attribute__ ((unused)) = {
38642 .getattr = test_getattr,
38658 cat - <<_ACEOF >conftest.h
38663 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38664 echo "obj-m := conftest.o" >build/Makefile
38666 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38667 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669 (eval $ac_try) 2>&5
38671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; }; then
38679 { $as_echo "$as_me:$LINENO: result: yes" >&5
38680 $as_echo "yes" >&6; }
38682 cat >>confdefs.h <<\_ACEOF
38683 #define HAVE_PATH_IOPS_GETATTR 1
38688 $as_echo "$as_me: failed program was:" >&5
38689 sed 's
/^
/|
/' conftest.$ac_ext >&5
38691 { $as_echo "$as_me:$LINENO: result: no" >&5
38692 $as_echo "no" >&6; }
38703 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
38704 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
38707 cat confdefs.h - <<_ACEOF >conftest.c
38710 cat confdefs.h >>conftest.$ac_ext
38711 cat >>conftest.$ac_ext <<_ACEOF
38712 /* end confdefs.h. */
38715 #include <linux/fs.h>
38718 struct vfsmount *mnt, struct dentry *d,
38722 static const struct inode_operations
38723 iops __attribute__ ((unused)) = {
38724 .getattr = test_getattr,
38740 cat - <<_ACEOF >conftest.h
38745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38746 echo "obj-m := conftest.o" >build/Makefile
38748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38749 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38751 (eval $ac_try) 2>&5
38753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38756 (eval $ac_try) 2>&5
38758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38759 (exit $ac_status); }; }; then
38761 { $as_echo "$as_me:$LINENO: result: yes" >&5
38762 $as_echo "yes" >&6; }
38764 cat >>confdefs.h <<\_ACEOF
38765 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
38770 $as_echo "$as_me: failed program was:" >&5
38771 sed 's
/^
/|
/' conftest.$ac_ext >&5
38773 { $as_echo "$as_me:$LINENO: result: no" >&5
38774 $as_echo "no" >&6; }
38786 { $as_echo "$as_me:$LINENO: checking whether inode_set_flags() exists" >&5
38787 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
38790 cat confdefs.h - <<_ACEOF >conftest.c
38793 cat confdefs.h >>conftest.$ac_ext
38794 cat >>conftest.$ac_ext <<_ACEOF
38795 /* end confdefs.h. */
38798 #include <linux/fs.h>
38804 struct inode inode;
38805 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
38815 cat - <<_ACEOF >conftest.h
38820 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38821 echo "obj-m := conftest.o" >build/Makefile
38823 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38824 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38826 (eval $ac_try) 2>&5
38828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38829 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831 (eval $ac_try) 2>&5
38833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834 (exit $ac_status); }; }; then
38836 { $as_echo "$as_me:$LINENO: result: yes" >&5
38837 $as_echo "yes" >&6; }
38839 cat >>confdefs.h <<\_ACEOF
38840 #define HAVE_INODE_SET_FLAGS 1
38845 $as_echo "$as_me: failed program was:" >&5
38846 sed 's
/^
/|
/' conftest.$ac_ext >&5
38848 { $as_echo "$as_me:$LINENO: result: no" >&5
38849 $as_echo "no" >&6; }
38860 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
38861 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
38864 cat confdefs.h - <<_ACEOF >conftest.c
38867 cat confdefs.h >>conftest.$ac_ext
38868 cat >>conftest.$ac_ext <<_ACEOF
38869 /* end confdefs.h. */
38872 #include <linux/fs.h>
38878 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
38888 cat - <<_ACEOF >conftest.h
38893 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38894 echo "obj-m := conftest.o" >build/Makefile
38896 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38897 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38899 (eval $ac_try) 2>&5
38901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38902 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; }; then
38909 { $as_echo "$as_me:$LINENO: result: yes" >&5
38910 $as_echo "yes" >&6; }
38912 cat >>confdefs.h <<\_ACEOF
38913 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
38918 $as_echo "$as_me: failed program was:" >&5
38919 sed 's
/^
/|
/' conftest.$ac_ext >&5
38921 { $as_echo "$as_me:$LINENO: result: no" >&5
38922 $as_echo "no" >&6; }
38933 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
38934 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
38938 cat confdefs.h - <<_ACEOF >conftest.c
38941 cat confdefs.h >>conftest.$ac_ext
38942 cat >>conftest.$ac_ext <<_ACEOF
38943 /* end confdefs.h. */
38946 #include <linux/fs.h>
38948 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
38949 static struct super_operations sops __attribute__ ((unused)) = {
38950 .show_options = show_options,
38966 cat - <<_ACEOF >conftest.h
38971 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38972 echo "obj-m := conftest.o" >build/Makefile
38974 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38975 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38977 (eval $ac_try) 2>&5
38979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38982 (eval $ac_try) 2>&5
38984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38985 (exit $ac_status); }; }; then
38987 { $as_echo "$as_me:$LINENO: result: yes" >&5
38988 $as_echo "yes" >&6; }
38990 cat >>confdefs.h <<\_ACEOF
38991 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
38996 $as_echo "$as_me: failed program was:" >&5
38997 sed 's
/^
/|
/' conftest.$ac_ext >&5
38999 { $as_echo "$as_me:$LINENO: result: no" >&5
39000 $as_echo "no" >&6; }
39011 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
39012 $as_echo_n "checking whether file_inode() is available... " >&6; }
39015 cat confdefs.h - <<_ACEOF >conftest.c
39018 cat confdefs.h >>conftest.$ac_ext
39019 cat >>conftest.$ac_ext <<_ACEOF
39020 /* end confdefs.h. */
39023 #include <linux/fs.h>
39029 struct file *f = NULL;
39040 cat - <<_ACEOF >conftest.h
39045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39046 echo "obj-m := conftest.o" >build/Makefile
39048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39049 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39051 (eval $ac_try) 2>&5
39053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39056 (eval $ac_try) 2>&5
39058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39059 (exit $ac_status); }; }; then
39061 { $as_echo "$as_me:$LINENO: result: yes" >&5
39062 $as_echo "yes" >&6; }
39064 cat >>confdefs.h <<\_ACEOF
39065 #define HAVE_FILE_INODE 1
39070 $as_echo "$as_me: failed program was:" >&5
39071 sed 's
/^
/|
/' conftest.$ac_ext >&5
39073 { $as_echo "$as_me:$LINENO: result: no" >&5
39074 $as_echo "no" >&6; }
39085 { $as_echo "$as_me:$LINENO: checking whether file_dentry() is available" >&5
39086 $as_echo_n "checking whether file_dentry() is available... " >&6; }
39089 cat confdefs.h - <<_ACEOF >conftest.c
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h. */
39097 #include <linux/fs.h>
39103 struct file *f = NULL;
39114 cat - <<_ACEOF >conftest.h
39119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39120 echo "obj-m := conftest.o" >build/Makefile
39122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39123 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39125 (eval $ac_try) 2>&5
39127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39130 (eval $ac_try) 2>&5
39132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39133 (exit $ac_status); }; }; then
39135 { $as_echo "$as_me:$LINENO: result: yes" >&5
39136 $as_echo "yes" >&6; }
39138 cat >>confdefs.h <<\_ACEOF
39139 #define HAVE_FILE_DENTRY 1
39144 $as_echo "$as_me: failed program was:" >&5
39145 sed 's
/^
/|
/' conftest.$ac_ext >&5
39147 { $as_echo "$as_me:$LINENO: result: no" >&5
39148 $as_echo "no" >&6; }
39159 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
39160 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
39164 cat confdefs.h - <<_ACEOF >conftest.c
39167 cat confdefs.h >>conftest.$ac_ext
39168 cat >>conftest.$ac_ext <<_ACEOF
39169 /* end confdefs.h. */
39172 #include <linux/fs.h>
39174 int test_fsync(struct file *f, struct dentry *dentry, int x)
39177 static const struct file_operations
39178 fops __attribute__ ((unused)) = {
39179 .fsync = test_fsync,
39195 cat - <<_ACEOF >conftest.h
39200 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39201 echo "obj-m := conftest.o" >build/Makefile
39203 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39204 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39206 (eval $ac_try) 2>&5
39208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39211 (eval $ac_try) 2>&5
39213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39214 (exit $ac_status); }; }; then
39216 { $as_echo "$as_me:$LINENO: result: dentry" >&5
39217 $as_echo "dentry" >&6; }
39219 cat >>confdefs.h <<\_ACEOF
39220 #define HAVE_FSYNC_WITH_DENTRY 1
39225 $as_echo "$as_me: failed program was:" >&5
39226 sed 's
/^
/|
/' conftest.$ac_ext >&5
39240 cat confdefs.h - <<_ACEOF >conftest.c
39243 cat confdefs.h >>conftest.$ac_ext
39244 cat >>conftest.$ac_ext <<_ACEOF
39245 /* end confdefs.h. */
39248 #include <linux/fs.h>
39250 int test_fsync(struct file *f, int x) { return 0; }
39252 static const struct file_operations
39253 fops __attribute__ ((unused)) = {
39254 .fsync = test_fsync,
39270 cat - <<_ACEOF >conftest.h
39275 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39276 echo "obj-m := conftest.o" >build/Makefile
39278 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39279 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281 (eval $ac_try) 2>&5
39283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39286 (eval $ac_try) 2>&5
39288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39289 (exit $ac_status); }; }; then
39291 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
39292 $as_echo "no dentry" >&6; }
39294 cat >>confdefs.h <<\_ACEOF
39295 #define HAVE_FSYNC_WITHOUT_DENTRY 1
39300 $as_echo "$as_me: failed program was:" >&5
39301 sed 's
/^
/|
/' conftest.$ac_ext >&5
39315 cat confdefs.h - <<_ACEOF >conftest.c
39318 cat confdefs.h >>conftest.$ac_ext
39319 cat >>conftest.$ac_ext <<_ACEOF
39320 /* end confdefs.h. */
39323 #include <linux/fs.h>
39325 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
39328 static const struct file_operations
39329 fops __attribute__ ((unused)) = {
39330 .fsync = test_fsync,
39346 cat - <<_ACEOF >conftest.h
39351 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39352 echo "obj-m := conftest.o" >build/Makefile
39354 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39355 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39357 (eval $ac_try) 2>&5
39359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39362 (eval $ac_try) 2>&5
39364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365 (exit $ac_status); }; }; then
39367 { $as_echo "$as_me:$LINENO: result: range" >&5
39368 $as_echo "range" >&6; }
39370 cat >>confdefs.h <<\_ACEOF
39371 #define HAVE_FSYNC_RANGE 1
39376 $as_echo "$as_me: failed program was:" >&5
39377 sed 's
/^
/|
/' conftest.$ac_ext >&5
39390 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
39391 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
39394 cat confdefs.h - <<_ACEOF >conftest.c
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h. */
39402 #include <linux/fs.h>
39403 void evict_inode (struct inode * t) { return; }
39404 static struct super_operations sops __attribute__ ((unused)) = {
39405 .evict_inode = evict_inode,
39421 cat - <<_ACEOF >conftest.h
39426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39427 echo "obj-m := conftest.o" >build/Makefile
39429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39430 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39432 (eval $ac_try) 2>&5
39434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437 (eval $ac_try) 2>&5
39439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440 (exit $ac_status); }; }; then
39442 { $as_echo "$as_me:$LINENO: result: yes" >&5
39443 $as_echo "yes" >&6; }
39445 cat >>confdefs.h <<\_ACEOF
39446 #define HAVE_EVICT_INODE 1
39451 $as_echo "$as_me: failed program was:" >&5
39452 sed 's
/^
/|
/' conftest.$ac_ext >&5
39454 { $as_echo "$as_me:$LINENO: result: no" >&5
39455 $as_echo "no" >&6; }
39466 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
39467 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
39470 cat confdefs.h - <<_ACEOF >conftest.c
39473 cat confdefs.h >>conftest.$ac_ext
39474 cat >>conftest.$ac_ext <<_ACEOF
39475 /* end confdefs.h. */
39478 #include <linux/fs.h>
39480 void dirty_inode(struct inode *a, int b) { return; }
39482 static const struct super_operations
39483 sops __attribute__ ((unused)) = {
39484 .dirty_inode = dirty_inode,
39500 cat - <<_ACEOF >conftest.h
39505 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39506 echo "obj-m := conftest.o" >build/Makefile
39508 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39509 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39511 (eval $ac_try) 2>&5
39513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; }; then
39521 { $as_echo "$as_me:$LINENO: result: yes" >&5
39522 $as_echo "yes" >&6; }
39524 cat >>confdefs.h <<\_ACEOF
39525 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
39530 $as_echo "$as_me: failed program was:" >&5
39531 sed 's
/^
/|
/' conftest.$ac_ext >&5
39533 { $as_echo "$as_me:$LINENO: result: no" >&5
39534 $as_echo "no" >&6; }
39545 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
39546 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
39549 cat confdefs.h - <<_ACEOF >conftest.c
39552 cat confdefs.h >>conftest.$ac_ext
39553 cat >>conftest.$ac_ext <<_ACEOF
39554 /* end confdefs.h. */
39557 #include <linux/fs.h>
39559 int nr_cached_objects(struct super_block *sb) { return 0; }
39561 static const struct super_operations
39562 sops __attribute__ ((unused)) = {
39563 .nr_cached_objects = nr_cached_objects,
39579 cat - <<_ACEOF >conftest.h
39584 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39585 echo "obj-m := conftest.o" >build/Makefile
39587 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39588 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39590 (eval $ac_try) 2>&5
39592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39593 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595 (eval $ac_try) 2>&5
39597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); }; }; then
39600 { $as_echo "$as_me:$LINENO: result: yes" >&5
39601 $as_echo "yes" >&6; }
39603 cat >>confdefs.h <<\_ACEOF
39604 #define HAVE_NR_CACHED_OBJECTS 1
39609 $as_echo "$as_me: failed program was:" >&5
39610 sed 's
/^
/|
/' conftest.$ac_ext >&5
39612 { $as_echo "$as_me:$LINENO: result: no" >&5
39613 $as_echo "no" >&6; }
39624 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
39625 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
39628 cat confdefs.h - <<_ACEOF >conftest.c
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h. */
39636 #include <linux/fs.h>
39638 void free_cached_objects(struct super_block *sb, int x)
39641 static const struct super_operations
39642 sops __attribute__ ((unused)) = {
39643 .free_cached_objects = free_cached_objects,
39659 cat - <<_ACEOF >conftest.h
39664 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39665 echo "obj-m := conftest.o" >build/Makefile
39667 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39668 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670 (eval $ac_try) 2>&5
39672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39675 (eval $ac_try) 2>&5
39677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); }; }; then
39680 { $as_echo "$as_me:$LINENO: result: yes" >&5
39681 $as_echo "yes" >&6; }
39683 cat >>confdefs.h <<\_ACEOF
39684 #define HAVE_FREE_CACHED_OBJECTS 1
39689 $as_echo "$as_me: failed program was:" >&5
39690 sed 's
/^
/|
/' conftest.$ac_ext >&5
39692 { $as_echo "$as_me:$LINENO: result: no" >&5
39693 $as_echo "no" >&6; }
39705 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
39706 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
39709 cat confdefs.h - <<_ACEOF >conftest.c
39712 cat confdefs.h >>conftest.$ac_ext
39713 cat >>conftest.$ac_ext <<_ACEOF
39714 /* end confdefs.h. */
39717 #include <linux/fs.h>
39719 long test_fallocate(struct file *file, int mode,
39720 loff_t offset, loff_t len) { return 0; }
39722 static const struct file_operations
39723 fops __attribute__ ((unused)) = {
39724 .fallocate = test_fallocate,
39740 cat - <<_ACEOF >conftest.h
39745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39746 echo "obj-m := conftest.o" >build/Makefile
39748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39749 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39751 (eval $ac_try) 2>&5
39753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39756 (eval $ac_try) 2>&5
39758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759 (exit $ac_status); }; }; then
39761 { $as_echo "$as_me:$LINENO: result: yes" >&5
39762 $as_echo "yes" >&6; }
39764 cat >>confdefs.h <<\_ACEOF
39765 #define HAVE_FILE_FALLOCATE 1
39770 $as_echo "$as_me: failed program was:" >&5
39771 sed 's
/^
/|
/' conftest.$ac_ext >&5
39773 { $as_echo "$as_me:$LINENO: result: no" >&5
39774 $as_echo "no" >&6; }
39785 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
39786 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
39789 cat confdefs.h - <<_ACEOF >conftest.c
39792 cat confdefs.h >>conftest.$ac_ext
39793 cat >>conftest.$ac_ext <<_ACEOF
39794 /* end confdefs.h. */
39797 #include <linux/fs.h>
39799 long test_fallocate(struct inode *inode, int mode,
39800 loff_t offset, loff_t len) { return 0; }
39802 static const struct inode_operations
39803 fops __attribute__ ((unused)) = {
39804 .fallocate = test_fallocate,
39820 cat - <<_ACEOF >conftest.h
39825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39826 echo "obj-m := conftest.o" >build/Makefile
39828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39829 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39831 (eval $ac_try) 2>&5
39833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; }; then
39841 { $as_echo "$as_me:$LINENO: result: yes" >&5
39842 $as_echo "yes" >&6; }
39844 cat >>confdefs.h <<\_ACEOF
39845 #define HAVE_INODE_FALLOCATE 1
39850 $as_echo "$as_me: failed program was:" >&5
39851 sed 's
/^
/|
/' conftest.$ac_ext >&5
39853 { $as_echo "$as_me:$LINENO: result: no" >&5
39854 $as_echo "no" >&6; }
39866 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
39867 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
39870 cat confdefs.h - <<_ACEOF >conftest.c
39873 cat confdefs.h >>conftest.$ac_ext
39874 cat >>conftest.$ac_ext <<_ACEOF
39875 /* end confdefs.h. */
39878 #include <linux/fs.h>
39880 static const struct file_operations
39881 fops __attribute__ ((unused)) = {
39898 cat - <<_ACEOF >conftest.h
39903 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39904 echo "obj-m := conftest.o" >build/Makefile
39906 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39907 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909 (eval $ac_try) 2>&5
39911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39914 (eval $ac_try) 2>&5
39916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); }; }; then
39919 { $as_echo "$as_me:$LINENO: result: yes" >&5
39920 $as_echo "yes" >&6; }
39922 cat >>confdefs.h <<\_ACEOF
39923 #define HAVE_FILE_AIO_FSYNC 1
39928 $as_echo "$as_me: failed program was:" >&5
39929 sed 's
/^
/|
/' conftest.$ac_ext >&5
39931 { $as_echo "$as_me:$LINENO: result: no" >&5
39932 $as_echo "no" >&6; }
39943 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
39944 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
39947 cat confdefs.h - <<_ACEOF >conftest.c
39950 cat confdefs.h >>conftest.$ac_ext
39951 cat >>conftest.$ac_ext <<_ACEOF
39952 /* end confdefs.h. */
39955 #include <linux/fs.h>
39957 int mkdir(struct inode *inode, struct dentry *dentry,
39958 umode_t umode) { return 0; }
39960 static const struct inode_operations
39961 iops __attribute__ ((unused)) = {
39978 cat - <<_ACEOF >conftest.h
39983 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39984 echo "obj-m := conftest.o" >build/Makefile
39986 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39987 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39989 (eval $ac_try) 2>&5
39991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 (eval $ac_try) 2>&5
39996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 (exit $ac_status); }; }; then
39999 { $as_echo "$as_me:$LINENO: result: yes" >&5
40000 $as_echo "yes" >&6; }
40002 cat >>confdefs.h <<\_ACEOF
40003 #define HAVE_MKDIR_UMODE_T 1
40008 $as_echo "$as_me: failed program was:" >&5
40009 sed 's
/^
/|
/' conftest.$ac_ext >&5
40011 { $as_echo "$as_me:$LINENO: result: no" >&5
40012 $as_echo "no" >&6; }
40023 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
40024 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
40027 cat confdefs.h - <<_ACEOF >conftest.c
40030 cat confdefs.h >>conftest.$ac_ext
40031 cat >>conftest.$ac_ext <<_ACEOF
40032 /* end confdefs.h. */
40035 #include <linux/fs.h>
40037 struct dentry *inode_lookup(struct inode *inode,
40038 struct dentry *dentry, struct nameidata *nidata)
40041 static const struct inode_operations iops
40042 __attribute__ ((unused)) = {
40043 .lookup = inode_lookup,
40059 cat - <<_ACEOF >conftest.h
40064 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40065 echo "obj-m := conftest.o" >build/Makefile
40067 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40068 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40070 (eval $ac_try) 2>&5
40072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40073 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40075 (eval $ac_try) 2>&5
40077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078 (exit $ac_status); }; }; then
40080 { $as_echo "$as_me:$LINENO: result: yes" >&5
40081 $as_echo "yes" >&6; }
40083 cat >>confdefs.h <<\_ACEOF
40084 #define HAVE_LOOKUP_NAMEIDATA 1
40089 $as_echo "$as_me: failed program was:" >&5
40090 sed 's
/^
/|
/' conftest.$ac_ext >&5
40092 { $as_echo "$as_me:$LINENO: result: no" >&5
40093 $as_echo "no" >&6; }
40104 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
40105 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
40108 cat confdefs.h - <<_ACEOF >conftest.c
40111 cat confdefs.h >>conftest.$ac_ext
40112 cat >>conftest.$ac_ext <<_ACEOF
40113 /* end confdefs.h. */
40116 #include <linux/fs.h>
40118 #ifdef HAVE_MKDIR_UMODE_T
40119 int inode_create(struct inode *inode ,struct dentry *dentry,
40120 umode_t umode, struct nameidata *nidata) { return 0; }
40122 int inode_create(struct inode *inode,struct dentry *dentry,
40123 int umode, struct nameidata * nidata) { return 0; }
40126 static const struct inode_operations
40127 iops __attribute__ ((unused)) = {
40128 .create = inode_create,
40144 cat - <<_ACEOF >conftest.h
40149 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40150 echo "obj-m := conftest.o" >build/Makefile
40152 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40153 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40155 (eval $ac_try) 2>&5
40157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40158 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40160 (eval $ac_try) 2>&5
40162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40163 (exit $ac_status); }; }; then
40165 { $as_echo "$as_me:$LINENO: result: yes" >&5
40166 $as_echo "yes" >&6; }
40168 cat >>confdefs.h <<\_ACEOF
40169 #define HAVE_CREATE_NAMEIDATA 1
40174 $as_echo "$as_me: failed program was:" >&5
40175 sed 's
/^
/|
/' conftest.$ac_ext >&5
40177 { $as_echo "$as_me:$LINENO: result: no" >&5
40178 $as_echo "no" >&6; }
40189 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
40190 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
40193 cat confdefs.h - <<_ACEOF >conftest.c
40196 cat confdefs.h >>conftest.$ac_ext
40197 cat >>conftest.$ac_ext <<_ACEOF
40198 /* end confdefs.h. */
40201 #include <linux/fs.h>
40202 const char *get_link(struct dentry *de, struct inode *ip,
40203 struct delayed_call *done) { return "symlink"; }
40204 static struct inode_operations
40205 iops __attribute__ ((unused)) = {
40206 .get_link = get_link,
40222 cat - <<_ACEOF >conftest.h
40227 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40228 echo "obj-m := conftest.o" >build/Makefile
40230 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40231 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40238 (eval $ac_try) 2>&5
40240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40241 (exit $ac_status); }; }; then
40243 { $as_echo "$as_me:$LINENO: result: yes" >&5
40244 $as_echo "yes" >&6; }
40246 cat >>confdefs.h <<\_ACEOF
40247 #define HAVE_GET_LINK_DELAYED 1
40252 $as_echo "$as_me: failed program was:" >&5
40253 sed 's
/^
/|
/' conftest.$ac_ext >&5
40255 { $as_echo "$as_me:$LINENO: result: no" >&5
40256 $as_echo "no" >&6; }
40257 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
40258 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
40261 cat confdefs.h - <<_ACEOF >conftest.c
40264 cat confdefs.h >>conftest.$ac_ext
40265 cat >>conftest.$ac_ext <<_ACEOF
40266 /* end confdefs.h. */
40269 #include <linux/fs.h>
40270 const char *get_link(struct dentry *de, struct
40271 inode *ip, void **cookie) { return "symlink"; }
40272 static struct inode_operations
40273 iops __attribute__ ((unused)) = {
40274 .get_link = get_link,
40290 cat - <<_ACEOF >conftest.h
40295 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40296 echo "obj-m := conftest.o" >build/Makefile
40298 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40299 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301 (eval $ac_try) 2>&5
40303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40306 (eval $ac_try) 2>&5
40308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); }; }; then
40311 { $as_echo "$as_me:$LINENO: result: yes" >&5
40312 $as_echo "yes" >&6; }
40314 cat >>confdefs.h <<\_ACEOF
40315 #define HAVE_GET_LINK_COOKIE 1
40320 $as_echo "$as_me: failed program was:" >&5
40321 sed 's
/^
/|
/' conftest.$ac_ext >&5
40323 { $as_echo "$as_me:$LINENO: result: no" >&5
40324 $as_echo "no" >&6; }
40326 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
40327 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
40330 cat confdefs.h - <<_ACEOF >conftest.c
40333 cat confdefs.h >>conftest.$ac_ext
40334 cat >>conftest.$ac_ext <<_ACEOF
40335 /* end confdefs.h. */
40338 #include <linux/fs.h>
40339 const char *follow_link(struct dentry *de,
40340 void **cookie) { return "symlink"; }
40341 static struct inode_operations
40342 iops __attribute__ ((unused)) = {
40343 .follow_link = follow_link,
40359 cat - <<_ACEOF >conftest.h
40364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40365 echo "obj-m := conftest.o" >build/Makefile
40367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40368 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40370 (eval $ac_try) 2>&5
40372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375 (eval $ac_try) 2>&5
40377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; }; then
40380 { $as_echo "$as_me:$LINENO: result: yes" >&5
40381 $as_echo "yes" >&6; }
40383 cat >>confdefs.h <<\_ACEOF
40384 #define HAVE_FOLLOW_LINK_COOKIE 1
40389 $as_echo "$as_me: failed program was:" >&5
40390 sed 's
/^
/|
/' conftest.$ac_ext >&5
40392 { $as_echo "$as_me:$LINENO: result: no" >&5
40393 $as_echo "no" >&6; }
40394 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
40395 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
40398 cat confdefs.h - <<_ACEOF >conftest.c
40401 cat confdefs.h >>conftest.$ac_ext
40402 cat >>conftest.$ac_ext <<_ACEOF
40403 /* end confdefs.h. */
40406 #include <linux/fs.h>
40407 void *follow_link(struct dentry *de, struct
40408 nameidata *nd) { return (void *)NULL; }
40409 static struct inode_operations
40410 iops __attribute__ ((unused)) = {
40411 .follow_link = follow_link,
40427 cat - <<_ACEOF >conftest.h
40432 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40433 echo "obj-m := conftest.o" >build/Makefile
40435 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40436 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40438 (eval $ac_try) 2>&5
40440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40443 (eval $ac_try) 2>&5
40445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40446 (exit $ac_status); }; }; then
40448 { $as_echo "$as_me:$LINENO: result: yes" >&5
40449 $as_echo "yes" >&6; }
40451 cat >>confdefs.h <<\_ACEOF
40452 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
40457 $as_echo "$as_me: failed program was:" >&5
40458 sed 's
/^
/|
/' conftest.$ac_ext >&5
40460 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40461 $as_echo "$as_me: error: no; please file a bug report" >&2;}
40462 { (exit 1); exit 1; }; }
40500 cat confdefs.h - <<_ACEOF >conftest.c
40503 cat confdefs.h >>conftest.$ac_ext
40504 cat >>conftest.$ac_ext <<_ACEOF
40505 /* end confdefs.h. */
40508 #if !defined(HAVE_GET_LINK_DELAYED)
40509 #error "Expecting get_link() delayed done"
40525 cat - <<_ACEOF >conftest.h
40530 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40531 echo "obj-m := conftest.o" >build/Makefile
40533 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40534 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40536 (eval $ac_try) 2>&5
40538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40541 (eval $ac_try) 2>&5
40543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544 (exit $ac_status); }; }; then
40547 cat >>confdefs.h <<\_ACEOF
40548 #define HAVE_PUT_LINK_DELAYED 1
40553 $as_echo "$as_me: failed program was:" >&5
40554 sed 's
/^
/|
/' conftest.$ac_ext >&5
40556 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
40557 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
40560 cat confdefs.h - <<_ACEOF >conftest.c
40563 cat confdefs.h >>conftest.$ac_ext
40564 cat >>conftest.$ac_ext <<_ACEOF
40565 /* end confdefs.h. */
40568 #include <linux/fs.h>
40569 void put_link(struct inode *ip, void *cookie)
40571 static struct inode_operations
40572 iops __attribute__ ((unused)) = {
40573 .put_link = put_link,
40589 cat - <<_ACEOF >conftest.h
40594 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40595 echo "obj-m := conftest.o" >build/Makefile
40597 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40598 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40600 (eval $ac_try) 2>&5
40602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40603 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40605 (eval $ac_try) 2>&5
40607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40608 (exit $ac_status); }; }; then
40610 { $as_echo "$as_me:$LINENO: result: yes" >&5
40611 $as_echo "yes" >&6; }
40613 cat >>confdefs.h <<\_ACEOF
40614 #define HAVE_PUT_LINK_COOKIE 1
40619 $as_echo "$as_me: failed program was:" >&5
40620 sed 's
/^
/|
/' conftest.$ac_ext >&5
40622 { $as_echo "$as_me:$LINENO: result: no" >&5
40623 $as_echo "no" >&6; }
40624 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
40625 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
40628 cat confdefs.h - <<_ACEOF >conftest.c
40631 cat confdefs.h >>conftest.$ac_ext
40632 cat >>conftest.$ac_ext <<_ACEOF
40633 /* end confdefs.h. */
40636 #include <linux/fs.h>
40637 void put_link(struct dentry *de, struct
40638 nameidata *nd, void *ptr) { return; }
40639 static struct inode_operations
40640 iops __attribute__ ((unused)) = {
40641 .put_link = put_link,
40657 cat - <<_ACEOF >conftest.h
40662 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40663 echo "obj-m := conftest.o" >build/Makefile
40665 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40666 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40668 (eval $ac_try) 2>&5
40670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40673 (eval $ac_try) 2>&5
40675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); }; }; then
40678 { $as_echo "$as_me:$LINENO: result: yes" >&5
40679 $as_echo "yes" >&6; }
40681 cat >>confdefs.h <<\_ACEOF
40682 #define HAVE_PUT_LINK_NAMEIDATA 1
40687 $as_echo "$as_me: failed program was:" >&5
40688 sed 's
/^
/|
/' conftest.$ac_ext >&5
40690 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
40691 $as_echo "$as_me: error: no; please file a bug report" >&2;}
40692 { (exit 1); exit 1; }; }
40719 { $as_echo "$as_me:$LINENO: checking whether i_op->tmpfile() exists" >&5
40720 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
40723 cat confdefs.h - <<_ACEOF >conftest.c
40726 cat confdefs.h >>conftest.$ac_ext
40727 cat >>conftest.$ac_ext <<_ACEOF
40728 /* end confdefs.h. */
40731 #include <linux/fs.h>
40732 int tmpfile(struct inode *inode, struct dentry *dentry,
40733 umode_t mode) { return 0; }
40734 static struct inode_operations
40735 iops __attribute__ ((unused)) = {
40736 .tmpfile = tmpfile,
40752 cat - <<_ACEOF >conftest.h
40757 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40758 echo "obj-m := conftest.o" >build/Makefile
40760 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40761 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40768 (eval $ac_try) 2>&5
40770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); }; }; then
40773 { $as_echo "$as_me:$LINENO: result: yes" >&5
40774 $as_echo "yes" >&6; }
40776 cat >>confdefs.h <<\_ACEOF
40777 #define HAVE_TMPFILE 1
40782 $as_echo "$as_me: failed program was:" >&5
40783 sed 's
/^
/|
/' conftest.$ac_ext >&5
40785 { $as_echo "$as_me:$LINENO: result: no" >&5
40786 $as_echo "no" >&6; }
40797 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
40798 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
40801 cat confdefs.h - <<_ACEOF >conftest.c
40804 cat confdefs.h >>conftest.$ac_ext
40805 cat >>conftest.$ac_ext <<_ACEOF
40806 /* end confdefs.h. */
40809 #include <linux/fs.h>
40810 void truncate_range(struct inode *inode, loff_t start,
40811 loff_t end) { return; }
40812 static struct inode_operations iops __attribute__ ((unused)) = {
40813 .truncate_range = truncate_range,
40829 cat - <<_ACEOF >conftest.h
40834 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40835 echo "obj-m := conftest.o" >build/Makefile
40837 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40838 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40840 (eval $ac_try) 2>&5
40842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40845 (eval $ac_try) 2>&5
40847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); }; }; then
40850 { $as_echo "$as_me:$LINENO: result: yes" >&5
40851 $as_echo "yes" >&6; }
40853 cat >>confdefs.h <<\_ACEOF
40854 #define HAVE_INODE_TRUNCATE_RANGE 1
40859 $as_echo "$as_me: failed program was:" >&5
40860 sed 's
/^
/|
/' conftest.$ac_ext >&5
40862 { $as_echo "$as_me:$LINENO: result: no" >&5
40863 $as_echo "no" >&6; }
40874 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
40875 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
40878 cat confdefs.h - <<_ACEOF >conftest.c
40881 cat confdefs.h >>conftest.$ac_ext
40882 cat >>conftest.$ac_ext <<_ACEOF
40883 /* end confdefs.h. */
40886 #include <linux/dcache.h>
40887 struct vfsmount *d_automount(struct path *p) { return NULL; }
40888 struct dentry_operations dops __attribute__ ((unused)) = {
40889 .d_automount = d_automount,
40905 cat - <<_ACEOF >conftest.h
40910 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40911 echo "obj-m := conftest.o" >build/Makefile
40913 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40914 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40916 (eval $ac_try) 2>&5
40918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921 (eval $ac_try) 2>&5
40923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; }; then
40926 { $as_echo "$as_me:$LINENO: result: yes" >&5
40927 $as_echo "yes" >&6; }
40929 cat >>confdefs.h <<\_ACEOF
40930 #define HAVE_AUTOMOUNT 1
40935 $as_echo "$as_me: failed program was:" >&5
40936 sed 's
/^
/|
/' conftest.$ac_ext >&5
40938 { $as_echo "$as_me:$LINENO: result: no" >&5
40939 $as_echo "no" >&6; }
40950 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
40951 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
40954 cat confdefs.h - <<_ACEOF >conftest.c
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h. */
40962 #include <linux/exportfs.h>
40963 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
40964 struct inode *parent) { return 0; }
40965 static struct export_operations eops __attribute__ ((unused))={
40966 .encode_fh = encode_fh,
40982 cat - <<_ACEOF >conftest.h
40987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
40988 echo "obj-m := conftest.o" >build/Makefile
40990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
40991 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
40992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993 (eval $ac_try) 2>&5
40995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
40997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40998 (eval $ac_try) 2>&5
41000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41001 (exit $ac_status); }; }; then
41003 { $as_echo "$as_me:$LINENO: result: yes" >&5
41004 $as_echo "yes" >&6; }
41006 cat >>confdefs.h <<\_ACEOF
41007 #define HAVE_ENCODE_FH_WITH_INODE 1
41012 $as_echo "$as_me: failed program was:" >&5
41013 sed 's
/^
/|
/' conftest.$ac_ext >&5
41015 { $as_echo "$as_me:$LINENO: result: no" >&5
41016 $as_echo "no" >&6; }
41027 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
41028 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
41031 cat confdefs.h - <<_ACEOF >conftest.c
41034 cat confdefs.h >>conftest.$ac_ext
41035 cat >>conftest.$ac_ext <<_ACEOF
41036 /* end confdefs.h. */
41039 #include <linux/exportfs.h>
41040 int commit_metadata(struct inode *inode) { return 0; }
41041 static struct export_operations eops __attribute__ ((unused))={
41042 .commit_metadata = commit_metadata,
41058 cat - <<_ACEOF >conftest.h
41063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41064 echo "obj-m := conftest.o" >build/Makefile
41066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41067 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41069 (eval $ac_try) 2>&5
41071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41072 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41074 (eval $ac_try) 2>&5
41076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); }; }; then
41079 { $as_echo "$as_me:$LINENO: result: yes" >&5
41080 $as_echo "yes" >&6; }
41082 cat >>confdefs.h <<\_ACEOF
41083 #define HAVE_COMMIT_METADATA 1
41088 $as_echo "$as_me: failed program was:" >&5
41089 sed 's
/^
/|
/' conftest.$ac_ext >&5
41091 { $as_echo "$as_me:$LINENO: result: no" >&5
41092 $as_echo "no" >&6; }
41102 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
41103 $as_echo_n "checking whether clear_inode() is available... " >&6; }
41107 cat confdefs.h - <<_ACEOF >conftest.c
41110 cat confdefs.h >>conftest.$ac_ext
41111 cat >>conftest.$ac_ext <<_ACEOF
41112 /* end confdefs.h. */
41115 #include <linux/fs.h>
41131 cat - <<_ACEOF >conftest.h
41136 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41137 echo "obj-m := conftest.o" >build/Makefile
41139 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41140 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142 (eval $ac_try) 2>&5
41144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
41153 $as_echo "$as_me: failed program was:" >&5
41154 sed 's
/^
/|
/' conftest.$ac_ext >&5
41163 if test $rc -ne 0; then :
41165 { $as_echo "$as_me:$LINENO: result: no" >&5
41166 $as_echo "no" >&6; }
41169 if test "x$enable_linux_builtin" != xyes; then
41171 grep -q -E '[[:space
:]]clear_inode
[[:space
:]]' \
41172 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41174 if test $rc -ne 0; then
41176 for file in fs/inode.c; do
41177 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
41178 "$LINUX/$file" 2>/dev/null
41180 if test $rc -eq 0; then
41185 if test $export -eq 0; then :
41195 if test $rc -ne 0; then :
41197 { $as_echo "$as_me:$LINENO: result: no" >&5
41198 $as_echo "no" >&6; }
41202 { $as_echo "$as_me:$LINENO: result: yes" >&5
41203 $as_echo "yes" >&6; }
41205 cat >>confdefs.h <<\_ACEOF
41206 #define HAVE_CLEAR_INODE 1
41214 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
41215 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
41219 cat confdefs.h - <<_ACEOF >conftest.c
41222 cat confdefs.h >>conftest.$ac_ext
41223 cat >>conftest.$ac_ext <<_ACEOF
41224 /* end confdefs.h. */
41227 #include <linux/fs.h>
41233 struct dentry *dentry = NULL;
41234 struct iattr *attr = NULL;
41237 error = setattr_prepare(dentry, attr);
41247 cat - <<_ACEOF >conftest.h
41252 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41253 echo "obj-m := conftest.o" >build/Makefile
41255 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41256 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41258 (eval $ac_try) 2>&5
41260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41263 (eval $ac_try) 2>&5
41265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); }; }; then
41269 $as_echo "$as_me: failed program was:" >&5
41270 sed 's
/^
/|
/' conftest.$ac_ext >&5
41279 if test $rc -ne 0; then :
41281 { $as_echo "$as_me:$LINENO: result: no" >&5
41282 $as_echo "no" >&6; }
41285 if test "x$enable_linux_builtin" != xyes; then
41287 grep -q -E '[[:space
:]]setattr_prepare
[[:space
:]]' \
41288 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41290 if test $rc -ne 0; then
41292 for file in fs/attr.c; do
41293 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
41294 "$LINUX/$file" 2>/dev/null
41296 if test $rc -eq 0; then
41301 if test $export -eq 0; then :
41311 if test $rc -ne 0; then :
41313 { $as_echo "$as_me:$LINENO: result: no" >&5
41314 $as_echo "no" >&6; }
41318 { $as_echo "$as_me:$LINENO: result: yes" >&5
41319 $as_echo "yes" >&6; }
41321 cat >>confdefs.h <<\_ACEOF
41322 #define HAVE_SETATTR_PREPARE 1
41330 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
41331 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
41335 cat confdefs.h - <<_ACEOF >conftest.c
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h. */
41343 #include <linux/fs.h>
41349 insert_inode_locked(NULL);
41359 cat - <<_ACEOF >conftest.h
41364 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41365 echo "obj-m := conftest.o" >build/Makefile
41367 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41368 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41370 (eval $ac_try) 2>&5
41372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41373 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41375 (eval $ac_try) 2>&5
41377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41378 (exit $ac_status); }; }; then
41381 $as_echo "$as_me: failed program was:" >&5
41382 sed 's
/^
/|
/' conftest.$ac_ext >&5
41391 if test $rc -ne 0; then :
41393 { $as_echo "$as_me:$LINENO: result: no" >&5
41394 $as_echo "no" >&6; }
41397 if test "x$enable_linux_builtin" != xyes; then
41399 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
41400 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41402 if test $rc -ne 0; then
41404 for file in fs/inode.c; do
41405 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
41406 "$LINUX/$file" 2>/dev/null
41408 if test $rc -eq 0; then
41413 if test $export -eq 0; then :
41423 if test $rc -ne 0; then :
41425 { $as_echo "$as_me:$LINENO: result: no" >&5
41426 $as_echo "no" >&6; }
41430 { $as_echo "$as_me:$LINENO: result: yes" >&5
41431 $as_echo "yes" >&6; }
41433 cat >>confdefs.h <<\_ACEOF
41434 #define HAVE_INSERT_INODE_LOCKED 1
41442 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
41443 $as_echo_n "checking whether d_make_root() is available... " >&6; }
41447 cat confdefs.h - <<_ACEOF >conftest.c
41450 cat confdefs.h >>conftest.$ac_ext
41451 cat >>conftest.$ac_ext <<_ACEOF
41452 /* end confdefs.h. */
41455 #include <linux/dcache.h>
41471 cat - <<_ACEOF >conftest.h
41476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41477 echo "obj-m := conftest.o" >build/Makefile
41479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41480 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41482 (eval $ac_try) 2>&5
41484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41485 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41487 (eval $ac_try) 2>&5
41489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41490 (exit $ac_status); }; }; then
41493 $as_echo "$as_me: failed program was:" >&5
41494 sed 's
/^
/|
/' conftest.$ac_ext >&5
41503 if test $rc -ne 0; then :
41505 { $as_echo "$as_me:$LINENO: result: no" >&5
41506 $as_echo "no" >&6; }
41509 if test "x$enable_linux_builtin" != xyes; then
41511 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
41512 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41514 if test $rc -ne 0; then
41516 for file in fs/dcache.c; do
41517 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
41518 "$LINUX/$file" 2>/dev/null
41520 if test $rc -eq 0; then
41525 if test $export -eq 0; then :
41535 if test $rc -ne 0; then :
41537 { $as_echo "$as_me:$LINENO: result: no" >&5
41538 $as_echo "no" >&6; }
41542 { $as_echo "$as_me:$LINENO: result: yes" >&5
41543 $as_echo "yes" >&6; }
41545 cat >>confdefs.h <<\_ACEOF
41546 #define HAVE_D_MAKE_ROOT 1
41554 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
41555 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
41559 cat confdefs.h - <<_ACEOF >conftest.c
41562 cat confdefs.h >>conftest.$ac_ext
41563 cat >>conftest.$ac_ext <<_ACEOF
41564 /* end confdefs.h. */
41567 #include <linux/dcache.h>
41573 d_obtain_alias(NULL);
41583 cat - <<_ACEOF >conftest.h
41588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41589 echo "obj-m := conftest.o" >build/Makefile
41591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41592 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41594 (eval $ac_try) 2>&5
41596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41597 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41599 (eval $ac_try) 2>&5
41601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41602 (exit $ac_status); }; }; then
41605 $as_echo "$as_me: failed program was:" >&5
41606 sed 's
/^
/|
/' conftest.$ac_ext >&5
41615 if test $rc -ne 0; then :
41617 { $as_echo "$as_me:$LINENO: result: no" >&5
41618 $as_echo "no" >&6; }
41621 if test "x$enable_linux_builtin" != xyes; then
41623 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
41624 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41626 if test $rc -ne 0; then
41628 for file in fs/dcache.c; do
41629 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
41630 "$LINUX/$file" 2>/dev/null
41632 if test $rc -eq 0; then
41637 if test $export -eq 0; then :
41647 if test $rc -ne 0; then :
41649 { $as_echo "$as_me:$LINENO: result: no" >&5
41650 $as_echo "no" >&6; }
41654 { $as_echo "$as_me:$LINENO: result: yes" >&5
41655 $as_echo "yes" >&6; }
41657 cat >>confdefs.h <<\_ACEOF
41658 #define HAVE_D_OBTAIN_ALIAS 1
41666 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
41667 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
41671 cat confdefs.h - <<_ACEOF >conftest.c
41674 cat confdefs.h >>conftest.$ac_ext
41675 cat >>conftest.$ac_ext <<_ACEOF
41676 /* end confdefs.h. */
41679 #include <linux/dcache.h>
41685 struct inode *ip = NULL;
41686 d_prune_aliases(ip);
41696 cat - <<_ACEOF >conftest.h
41701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41702 echo "obj-m := conftest.o" >build/Makefile
41704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41705 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41707 (eval $ac_try) 2>&5
41709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41712 (eval $ac_try) 2>&5
41714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); }; }; then
41718 $as_echo "$as_me: failed program was:" >&5
41719 sed 's
/^
/|
/' conftest.$ac_ext >&5
41728 if test $rc -ne 0; then :
41730 { $as_echo "$as_me:$LINENO: result: no" >&5
41731 $as_echo "no" >&6; }
41734 if test "x$enable_linux_builtin" != xyes; then
41736 grep -q -E '[[:space
:]]d_prune_aliases
[[:space
:]]' \
41737 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41739 if test $rc -ne 0; then
41741 for file in fs/dcache.c; do
41742 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
41743 "$LINUX/$file" 2>/dev/null
41745 if test $rc -eq 0; then
41750 if test $export -eq 0; then :
41760 if test $rc -ne 0; then :
41762 { $as_echo "$as_me:$LINENO: result: no" >&5
41763 $as_echo "no" >&6; }
41767 { $as_echo "$as_me:$LINENO: result: yes" >&5
41768 $as_echo "yes" >&6; }
41770 cat >>confdefs.h <<\_ACEOF
41771 #define HAVE_D_PRUNE_ALIASES 1
41779 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
41780 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
41784 cat confdefs.h - <<_ACEOF >conftest.c
41787 cat confdefs.h >>conftest.$ac_ext
41788 cat >>conftest.$ac_ext <<_ACEOF
41789 /* end confdefs.h. */
41792 #include <linux/dcache.h>
41798 d_set_d_op(NULL, NULL);
41808 cat - <<_ACEOF >conftest.h
41813 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41814 echo "obj-m := conftest.o" >build/Makefile
41816 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41817 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41819 (eval $ac_try) 2>&5
41821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41824 (eval $ac_try) 2>&5
41826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827 (exit $ac_status); }; }; then
41830 $as_echo "$as_me: failed program was:" >&5
41831 sed 's
/^
/|
/' conftest.$ac_ext >&5
41840 if test $rc -ne 0; then :
41842 { $as_echo "$as_me:$LINENO: result: no" >&5
41843 $as_echo "no" >&6; }
41846 if test "x$enable_linux_builtin" != xyes; then
41848 grep -q -E '[[:space
:]]d_set_d_op
[[:space
:]]' \
41849 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
41851 if test $rc -ne 0; then
41853 for file in fs/dcache.c; do
41854 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
41855 "$LINUX/$file" 2>/dev/null
41857 if test $rc -eq 0; then
41862 if test $export -eq 0; then :
41872 if test $rc -ne 0; then :
41874 { $as_echo "$as_me:$LINENO: result: no" >&5
41875 $as_echo "no" >&6; }
41879 { $as_echo "$as_me:$LINENO: result: yes" >&5
41880 $as_echo "yes" >&6; }
41882 cat >>confdefs.h <<\_ACEOF
41883 #define HAVE_D_SET_D_OP 1
41892 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
41893 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
41896 cat confdefs.h - <<_ACEOF >conftest.c
41899 cat confdefs.h >>conftest.$ac_ext
41900 cat >>conftest.$ac_ext <<_ACEOF
41901 /* end confdefs.h. */
41904 #include <linux/dcache.h>
41906 int revalidate (struct dentry *dentry,
41907 struct nameidata *nidata) { return 0; }
41909 static const struct dentry_operations
41910 dops __attribute__ ((unused)) = {
41911 .d_revalidate = revalidate,
41927 cat - <<_ACEOF >conftest.h
41932 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
41933 echo "obj-m := conftest.o" >build/Makefile
41935 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
41936 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
41937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41938 (eval $ac_try) 2>&5
41940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
41942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41943 (eval $ac_try) 2>&5
41945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
41948 { $as_echo "$as_me:$LINENO: result: yes" >&5
41949 $as_echo "yes" >&6; }
41951 cat >>confdefs.h <<\_ACEOF
41952 #define HAVE_D_REVALIDATE_NAMEIDATA 1
41957 $as_echo "$as_me: failed program was:" >&5
41958 sed 's
/^
/|
/' conftest.$ac_ext >&5
41960 { $as_echo "$as_me:$LINENO: result: no" >&5
41961 $as_echo "no" >&6; }
41972 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
41973 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
41976 cat confdefs.h - <<_ACEOF >conftest.c
41979 cat confdefs.h >>conftest.$ac_ext
41980 cat >>conftest.$ac_ext <<_ACEOF
41981 /* end confdefs.h. */
41984 #include <linux/dcache.h>
41986 const struct dentry_operations test_d_op = {
41987 .d_revalidate = NULL,
41994 struct dentry d __attribute__ ((unused));
41996 d.d_op = &test_d_op;
42006 cat - <<_ACEOF >conftest.h
42011 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42012 echo "obj-m := conftest.o" >build/Makefile
42014 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42015 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42017 (eval $ac_try) 2>&5
42019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42020 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42022 (eval $ac_try) 2>&5
42024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025 (exit $ac_status); }; }; then
42027 { $as_echo "$as_me:$LINENO: result: yes" >&5
42028 $as_echo "yes" >&6; }
42030 cat >>confdefs.h <<\_ACEOF
42031 #define HAVE_CONST_DENTRY_OPERATIONS 1
42036 $as_echo "$as_me: failed program was:" >&5
42037 sed 's
/^
/|
/' conftest.$ac_ext >&5
42039 { $as_echo "$as_me:$LINENO: result: no" >&5
42040 $as_echo "no" >&6; }
42050 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
42051 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
42055 cat confdefs.h - <<_ACEOF >conftest.c
42058 cat confdefs.h >>conftest.$ac_ext
42059 cat >>conftest.$ac_ext <<_ACEOF
42060 /* end confdefs.h. */
42063 #include <linux/mm.h>
42069 truncate_setsize(NULL, 0);
42079 cat - <<_ACEOF >conftest.h
42084 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42085 echo "obj-m := conftest.o" >build/Makefile
42087 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42088 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42090 (eval $ac_try) 2>&5
42092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42095 (eval $ac_try) 2>&5
42097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42098 (exit $ac_status); }; }; then
42101 $as_echo "$as_me: failed program was:" >&5
42102 sed 's
/^
/|
/' conftest.$ac_ext >&5
42111 if test $rc -ne 0; then :
42113 { $as_echo "$as_me:$LINENO: result: no" >&5
42114 $as_echo "no" >&6; }
42117 if test "x$enable_linux_builtin" != xyes; then
42119 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
42120 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42122 if test $rc -ne 0; then
42124 for file in mm/truncate.c; do
42125 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
42126 "$LINUX/$file" 2>/dev/null
42128 if test $rc -eq 0; then
42133 if test $export -eq 0; then :
42143 if test $rc -ne 0; then :
42145 { $as_echo "$as_me:$LINENO: result: no" >&5
42146 $as_echo "no" >&6; }
42150 { $as_echo "$as_me:$LINENO: result: yes" >&5
42151 $as_echo "yes" >&6; }
42153 cat >>confdefs.h <<\_ACEOF
42154 #define HAVE_TRUNCATE_SETSIZE 1
42163 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
42164 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
42167 cat confdefs.h - <<_ACEOF >conftest.c
42170 cat confdefs.h >>conftest.$ac_ext
42171 cat >>conftest.$ac_ext <<_ACEOF
42172 /* end confdefs.h. */
42175 #include <linux/security.h>
42181 struct inode *ip __attribute__ ((unused)) = NULL;
42182 struct inode *dip __attribute__ ((unused)) = NULL;
42183 const struct qstr *str __attribute__ ((unused)) = NULL;
42184 char *name __attribute__ ((unused)) = NULL;
42185 void *value __attribute__ ((unused)) = NULL;
42186 size_t len __attribute__ ((unused)) = 0;
42188 security_inode_init_security(ip, dip, str, &name, &value, &len);
42198 cat - <<_ACEOF >conftest.h
42203 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42204 echo "obj-m := conftest.o" >build/Makefile
42206 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42207 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209 (eval $ac_try) 2>&5
42211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42214 (eval $ac_try) 2>&5
42216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217 (exit $ac_status); }; }; then
42219 { $as_echo "$as_me:$LINENO: result: yes" >&5
42220 $as_echo "yes" >&6; }
42222 cat >>confdefs.h <<\_ACEOF
42223 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
42228 $as_echo "$as_me: failed program was:" >&5
42229 sed 's
/^
/|
/' conftest.$ac_ext >&5
42231 { $as_echo "$as_me:$LINENO: result: no" >&5
42232 $as_echo "no" >&6; }
42243 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
42244 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
42247 cat confdefs.h - <<_ACEOF >conftest.c
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h. */
42255 #include <linux/security.h>
42261 struct inode *ip __attribute__ ((unused)) = NULL;
42262 struct inode *dip __attribute__ ((unused)) = NULL;
42263 const struct qstr *str __attribute__ ((unused)) = NULL;
42264 initxattrs func __attribute__ ((unused)) = NULL;
42266 security_inode_init_security(ip, dip, str, func, NULL);
42276 cat - <<_ACEOF >conftest.h
42281 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42282 echo "obj-m := conftest.o" >build/Makefile
42284 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42285 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42287 (eval $ac_try) 2>&5
42289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42292 (eval $ac_try) 2>&5
42294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); }; }; then
42297 { $as_echo "$as_me:$LINENO: result: yes" >&5
42298 $as_echo "yes" >&6; }
42300 cat >>confdefs.h <<\_ACEOF
42301 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
42306 $as_echo "$as_me: failed program was:" >&5
42307 sed 's
/^
/|
/' conftest.$ac_ext >&5
42309 { $as_echo "$as_me:$LINENO: result: no" >&5
42310 $as_echo "no" >&6; }
42320 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
42321 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
42325 cat confdefs.h - <<_ACEOF >conftest.c
42328 cat confdefs.h >>conftest.$ac_ext
42329 cat >>conftest.$ac_ext <<_ACEOF
42330 /* end confdefs.h. */
42333 #include <linux/fs.h>
42339 mount_nodev(NULL, 0, NULL, NULL);
42349 cat - <<_ACEOF >conftest.h
42354 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42355 echo "obj-m := conftest.o" >build/Makefile
42357 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42358 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42360 (eval $ac_try) 2>&5
42362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42365 (eval $ac_try) 2>&5
42367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368 (exit $ac_status); }; }; then
42371 $as_echo "$as_me: failed program was:" >&5
42372 sed 's
/^
/|
/' conftest.$ac_ext >&5
42381 if test $rc -ne 0; then :
42383 { $as_echo "$as_me:$LINENO: result: no" >&5
42384 $as_echo "no" >&6; }
42387 if test "x$enable_linux_builtin" != xyes; then
42389 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
42390 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42392 if test $rc -ne 0; then
42394 for file in fs/super.c; do
42395 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
42396 "$LINUX/$file" 2>/dev/null
42398 if test $rc -eq 0; then
42403 if test $export -eq 0; then :
42413 if test $rc -ne 0; then :
42415 { $as_echo "$as_me:$LINENO: result: no" >&5
42416 $as_echo "no" >&6; }
42420 { $as_echo "$as_me:$LINENO: result: yes" >&5
42421 $as_echo "yes" >&6; }
42423 cat >>confdefs.h <<\_ACEOF
42424 #define HAVE_MOUNT_NODEV 1
42433 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
42434 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
42437 cat confdefs.h - <<_ACEOF >conftest.c
42440 cat confdefs.h >>conftest.$ac_ext
42441 cat >>conftest.$ac_ext <<_ACEOF
42442 /* end confdefs.h. */
42445 #include <linux/fs.h>
42447 int shrink(struct shrinker *s, struct shrink_control *sc)
42450 static const struct super_block
42451 sb __attribute__ ((unused)) = {
42452 .s_shrink.shrink = shrink,
42453 .s_shrink.seeks = DEFAULT_SEEKS,
42454 .s_shrink.batch = 0,
42470 cat - <<_ACEOF >conftest.h
42475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42476 echo "obj-m := conftest.o" >build/Makefile
42478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42479 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42481 (eval $ac_try) 2>&5
42483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42486 (eval $ac_try) 2>&5
42488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489 (exit $ac_status); }; }; then
42491 { $as_echo "$as_me:$LINENO: result: yes" >&5
42492 $as_echo "yes" >&6; }
42494 cat >>confdefs.h <<\_ACEOF
42495 #define HAVE_SHRINK 1
42501 $as_echo "$as_me: failed program was:" >&5
42502 sed 's
/^
/|
/' conftest.$ac_ext >&5
42504 { $as_echo "$as_me:$LINENO: result: no" >&5
42505 $as_echo "no" >&6; }
42516 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
42517 $as_echo_n "checking whether shrink_control has nid... " >&6; }
42520 cat confdefs.h - <<_ACEOF >conftest.c
42523 cat confdefs.h >>conftest.$ac_ext
42524 cat >>conftest.$ac_ext <<_ACEOF
42525 /* end confdefs.h. */
42528 #include <linux/fs.h>
42534 struct shrink_control sc __attribute__ ((unused));
42535 unsigned long scnidsize __attribute__ ((unused)) =
42546 cat - <<_ACEOF >conftest.h
42551 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42552 echo "obj-m := conftest.o" >build/Makefile
42554 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42555 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42557 (eval $ac_try) 2>&5
42559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42562 (eval $ac_try) 2>&5
42564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42565 (exit $ac_status); }; }; then
42567 { $as_echo "$as_me:$LINENO: result: yes" >&5
42568 $as_echo "yes" >&6; }
42570 cat >>confdefs.h <<\_ACEOF
42571 #define SHRINK_CONTROL_HAS_NID 1
42576 $as_echo "$as_me: failed program was:" >&5
42577 sed 's
/^
/|
/' conftest.$ac_ext >&5
42579 { $as_echo "$as_me:$LINENO: result: no" >&5
42580 $as_echo "no" >&6; }
42591 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
42592 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
42595 cat confdefs.h - <<_ACEOF >conftest.c
42598 cat confdefs.h >>conftest.$ac_ext
42599 cat >>conftest.$ac_ext <<_ACEOF
42600 /* end confdefs.h. */
42603 #include <linux/fs.h>
42609 struct super_block sb __attribute__ ((unused));
42611 INIT_LIST_HEAD(&sb.s_instances);
42621 cat - <<_ACEOF >conftest.h
42626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42627 echo "obj-m := conftest.o" >build/Makefile
42629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42630 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632 (eval $ac_try) 2>&5
42634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42637 (eval $ac_try) 2>&5
42639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42640 (exit $ac_status); }; }; then
42642 { $as_echo "$as_me:$LINENO: result: yes" >&5
42643 $as_echo "yes" >&6; }
42645 cat >>confdefs.h <<\_ACEOF
42646 #define HAVE_S_INSTANCES_LIST_HEAD 1
42651 $as_echo "$as_me: failed program was:" >&5
42652 sed 's
/^
/|
/' conftest.$ac_ext >&5
42654 { $as_echo "$as_me:$LINENO: result: no" >&5
42655 $as_echo "no" >&6; }
42665 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
42666 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
42669 cat confdefs.h - <<_ACEOF >conftest.c
42672 cat confdefs.h >>conftest.$ac_ext
42673 cat >>conftest.$ac_ext <<_ACEOF
42674 /* end confdefs.h. */
42677 #include <linux/fs.h>
42683 struct super_block sb __attribute__ ((unused));
42694 cat - <<_ACEOF >conftest.h
42699 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42700 echo "obj-m := conftest.o" >build/Makefile
42702 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42703 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42705 (eval $ac_try) 2>&5
42707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42710 (eval $ac_try) 2>&5
42712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42713 (exit $ac_status); }; }; then
42715 { $as_echo "$as_me:$LINENO: result: yes" >&5
42716 $as_echo "yes" >&6; }
42718 cat >>confdefs.h <<\_ACEOF
42719 #define HAVE_S_D_OP 1
42724 $as_echo "$as_me: failed program was:" >&5
42725 sed 's
/^
/|
/' conftest.$ac_ext >&5
42727 { $as_echo "$as_me:$LINENO: result: no" >&5
42728 $as_echo "no" >&6; }
42739 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
42740 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
42744 cat confdefs.h - <<_ACEOF >conftest.c
42747 cat confdefs.h >>conftest.$ac_ext
42748 cat >>conftest.$ac_ext <<_ACEOF
42749 /* end confdefs.h. */
42752 #include <linux/fs.h>
42753 struct super_block sb;
42759 char *name = "bdi";
42760 atomic_long_t zfs_bdi_seq;
42761 int error __attribute__((unused)) =
42762 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
42772 cat - <<_ACEOF >conftest.h
42777 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42778 echo "obj-m := conftest.o" >build/Makefile
42780 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42781 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42783 (eval $ac_try) 2>&5
42785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42788 (eval $ac_try) 2>&5
42790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791 (exit $ac_status); }; }; then
42794 $as_echo "$as_me: failed program was:" >&5
42795 sed 's
/^
/|
/' conftest.$ac_ext >&5
42804 if test $rc -ne 0; then :
42806 { $as_echo "$as_me:$LINENO: result: no" >&5
42807 $as_echo "no" >&6; }
42808 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
42809 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
42813 cat confdefs.h - <<_ACEOF >conftest.c
42816 cat confdefs.h >>conftest.$ac_ext
42817 cat >>conftest.$ac_ext <<_ACEOF
42818 /* end confdefs.h. */
42821 #include <linux/backing-dev.h>
42822 struct backing_dev_info bdi;
42828 char *name = "bdi";
42829 int error __attribute__((unused)) =
42830 bdi_setup_and_register(&bdi, name);
42840 cat - <<_ACEOF >conftest.h
42845 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42846 echo "obj-m := conftest.o" >build/Makefile
42848 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42849 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42851 (eval $ac_try) 2>&5
42853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42856 (eval $ac_try) 2>&5
42858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 (exit $ac_status); }; }; then
42862 $as_echo "$as_me: failed program was:" >&5
42863 sed 's
/^
/|
/' conftest.$ac_ext >&5
42872 if test $rc -ne 0; then :
42874 { $as_echo "$as_me:$LINENO: result: no" >&5
42875 $as_echo "no" >&6; }
42876 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
42877 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
42881 cat confdefs.h - <<_ACEOF >conftest.c
42884 cat confdefs.h >>conftest.$ac_ext
42885 cat >>conftest.$ac_ext <<_ACEOF
42886 /* end confdefs.h. */
42889 #include <linux/backing-dev.h>
42890 struct backing_dev_info bdi;
42896 char *name = "bdi";
42897 unsigned int cap = BDI_CAP_MAP_COPY;
42898 int error __attribute__((unused)) =
42899 bdi_setup_and_register(&bdi, name, cap);
42909 cat - <<_ACEOF >conftest.h
42914 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
42915 echo "obj-m := conftest.o" >build/Makefile
42917 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
42918 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
42919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42920 (eval $ac_try) 2>&5
42922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
42924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42925 (eval $ac_try) 2>&5
42927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42928 (exit $ac_status); }; }; then
42931 $as_echo "$as_me: failed program was:" >&5
42932 sed 's
/^
/|
/' conftest.$ac_ext >&5
42941 if test $rc -ne 0; then :
42943 { $as_echo "$as_me:$LINENO: result: no" >&5
42944 $as_echo "no" >&6; }
42947 if test "x$enable_linux_builtin" != xyes; then
42949 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
42950 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42952 if test $rc -ne 0; then
42954 for file in mm/backing-dev.c; do
42955 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
42956 "$LINUX/$file" 2>/dev/null
42958 if test $rc -eq 0; then
42963 if test $export -eq 0; then :
42973 if test $rc -ne 0; then :
42975 { $as_echo "$as_me:$LINENO: result: no" >&5
42976 $as_echo "no" >&6; }
42980 { $as_echo "$as_me:$LINENO: result: yes" >&5
42981 $as_echo "yes" >&6; }
42983 cat >>confdefs.h <<\_ACEOF
42984 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
42993 if test "x$enable_linux_builtin" != xyes; then
42995 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
42996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
42998 if test $rc -ne 0; then
43000 for file in mm/backing-dev.c; do
43001 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43002 "$LINUX/$file" 2>/dev/null
43004 if test $rc -eq 0; then
43009 if test $export -eq 0; then :
43019 if test $rc -ne 0; then :
43021 { $as_echo "$as_me:$LINENO: result: no" >&5
43022 $as_echo "no" >&6; }
43023 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43024 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43028 cat confdefs.h - <<_ACEOF >conftest.c
43031 cat confdefs.h >>conftest.$ac_ext
43032 cat >>conftest.$ac_ext <<_ACEOF
43033 /* end confdefs.h. */
43036 #include <linux/backing-dev.h>
43037 struct backing_dev_info bdi;
43043 char *name = "bdi";
43044 unsigned int cap = BDI_CAP_MAP_COPY;
43045 int error __attribute__((unused)) =
43046 bdi_setup_and_register(&bdi, name, cap);
43056 cat - <<_ACEOF >conftest.h
43061 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43062 echo "obj-m := conftest.o" >build/Makefile
43064 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43065 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43067 (eval $ac_try) 2>&5
43069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43072 (eval $ac_try) 2>&5
43074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43075 (exit $ac_status); }; }; then
43078 $as_echo "$as_me: failed program was:" >&5
43079 sed 's
/^
/|
/' conftest.$ac_ext >&5
43088 if test $rc -ne 0; then :
43090 { $as_echo "$as_me:$LINENO: result: no" >&5
43091 $as_echo "no" >&6; }
43094 if test "x$enable_linux_builtin" != xyes; then
43096 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
43097 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43099 if test $rc -ne 0; then
43101 for file in mm/backing-dev.c; do
43102 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43103 "$LINUX/$file" 2>/dev/null
43105 if test $rc -eq 0; then
43110 if test $export -eq 0; then :
43120 if test $rc -ne 0; then :
43122 { $as_echo "$as_me:$LINENO: result: no" >&5
43123 $as_echo "no" >&6; }
43127 { $as_echo "$as_me:$LINENO: result: yes" >&5
43128 $as_echo "yes" >&6; }
43130 cat >>confdefs.h <<\_ACEOF
43131 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43141 { $as_echo "$as_me:$LINENO: result: yes" >&5
43142 $as_echo "yes" >&6; }
43144 cat >>confdefs.h <<\_ACEOF
43145 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43154 if test "x$enable_linux_builtin" != xyes; then
43156 grep -q -E '[[:space
:]]super_setup_bdi_name
[[:space
:]]' \
43157 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43159 if test $rc -ne 0; then
43161 for file in fs/super.c; do
43162 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
43163 "$LINUX/$file" 2>/dev/null
43165 if test $rc -eq 0; then
43170 if test $export -eq 0; then :
43180 if test $rc -ne 0; then :
43182 { $as_echo "$as_me:$LINENO: result: no" >&5
43183 $as_echo "no" >&6; }
43184 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
43185 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
43189 cat confdefs.h - <<_ACEOF >conftest.c
43192 cat confdefs.h >>conftest.$ac_ext
43193 cat >>conftest.$ac_ext <<_ACEOF
43194 /* end confdefs.h. */
43197 #include <linux/backing-dev.h>
43198 struct backing_dev_info bdi;
43204 char *name = "bdi";
43205 int error __attribute__((unused)) =
43206 bdi_setup_and_register(&bdi, name);
43216 cat - <<_ACEOF >conftest.h
43221 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43222 echo "obj-m := conftest.o" >build/Makefile
43224 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43225 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43227 (eval $ac_try) 2>&5
43229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43232 (eval $ac_try) 2>&5
43234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43235 (exit $ac_status); }; }; then
43238 $as_echo "$as_me: failed program was:" >&5
43239 sed 's
/^
/|
/' conftest.$ac_ext >&5
43248 if test $rc -ne 0; then :
43250 { $as_echo "$as_me:$LINENO: result: no" >&5
43251 $as_echo "no" >&6; }
43252 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43253 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43257 cat confdefs.h - <<_ACEOF >conftest.c
43260 cat confdefs.h >>conftest.$ac_ext
43261 cat >>conftest.$ac_ext <<_ACEOF
43262 /* end confdefs.h. */
43265 #include <linux/backing-dev.h>
43266 struct backing_dev_info bdi;
43272 char *name = "bdi";
43273 unsigned int cap = BDI_CAP_MAP_COPY;
43274 int error __attribute__((unused)) =
43275 bdi_setup_and_register(&bdi, name, cap);
43285 cat - <<_ACEOF >conftest.h
43290 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43291 echo "obj-m := conftest.o" >build/Makefile
43293 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43294 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43296 (eval $ac_try) 2>&5
43298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301 (eval $ac_try) 2>&5
43303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304 (exit $ac_status); }; }; then
43307 $as_echo "$as_me: failed program was:" >&5
43308 sed 's
/^
/|
/' conftest.$ac_ext >&5
43317 if test $rc -ne 0; then :
43319 { $as_echo "$as_me:$LINENO: result: no" >&5
43320 $as_echo "no" >&6; }
43323 if test "x$enable_linux_builtin" != xyes; then
43325 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
43326 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43328 if test $rc -ne 0; then
43330 for file in mm/backing-dev.c; do
43331 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43332 "$LINUX/$file" 2>/dev/null
43334 if test $rc -eq 0; then
43339 if test $export -eq 0; then :
43349 if test $rc -ne 0; then :
43351 { $as_echo "$as_me:$LINENO: result: no" >&5
43352 $as_echo "no" >&6; }
43356 { $as_echo "$as_me:$LINENO: result: yes" >&5
43357 $as_echo "yes" >&6; }
43359 cat >>confdefs.h <<\_ACEOF
43360 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43369 if test "x$enable_linux_builtin" != xyes; then
43371 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
43372 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43374 if test $rc -ne 0; then
43376 for file in mm/backing-dev.c; do
43377 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43378 "$LINUX/$file" 2>/dev/null
43380 if test $rc -eq 0; then
43385 if test $export -eq 0; then :
43395 if test $rc -ne 0; then :
43397 { $as_echo "$as_me:$LINENO: result: no" >&5
43398 $as_echo "no" >&6; }
43399 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
43400 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
43404 cat confdefs.h - <<_ACEOF >conftest.c
43407 cat confdefs.h >>conftest.$ac_ext
43408 cat >>conftest.$ac_ext <<_ACEOF
43409 /* end confdefs.h. */
43412 #include <linux/backing-dev.h>
43413 struct backing_dev_info bdi;
43419 char *name = "bdi";
43420 unsigned int cap = BDI_CAP_MAP_COPY;
43421 int error __attribute__((unused)) =
43422 bdi_setup_and_register(&bdi, name, cap);
43432 cat - <<_ACEOF >conftest.h
43437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43438 echo "obj-m := conftest.o" >build/Makefile
43440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43441 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43443 (eval $ac_try) 2>&5
43445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43448 (eval $ac_try) 2>&5
43450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43451 (exit $ac_status); }; }; then
43454 $as_echo "$as_me: failed program was:" >&5
43455 sed 's
/^
/|
/' conftest.$ac_ext >&5
43464 if test $rc -ne 0; then :
43466 { $as_echo "$as_me:$LINENO: result: no" >&5
43467 $as_echo "no" >&6; }
43470 if test "x$enable_linux_builtin" != xyes; then
43472 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
43473 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43475 if test $rc -ne 0; then
43477 for file in mm/backing-dev.c; do
43478 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
43479 "$LINUX/$file" 2>/dev/null
43481 if test $rc -eq 0; then
43486 if test $export -eq 0; then :
43496 if test $rc -ne 0; then :
43498 { $as_echo "$as_me:$LINENO: result: no" >&5
43499 $as_echo "no" >&6; }
43503 { $as_echo "$as_me:$LINENO: result: yes" >&5
43504 $as_echo "yes" >&6; }
43506 cat >>confdefs.h <<\_ACEOF
43507 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
43517 { $as_echo "$as_me:$LINENO: result: yes" >&5
43518 $as_echo "yes" >&6; }
43520 cat >>confdefs.h <<\_ACEOF
43521 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
43531 { $as_echo "$as_me:$LINENO: result: yes" >&5
43532 $as_echo "yes" >&6; }
43534 cat >>confdefs.h <<\_ACEOF
43535 #define HAVE_SUPER_SETUP_BDI_NAME 1
43544 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
43545 $as_echo_n "checking whether set_nlink() is available... " >&6; }
43548 cat confdefs.h - <<_ACEOF >conftest.c
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h. */
43556 #include <linux/fs.h>
43563 unsigned int link = 0;
43564 (void) set_nlink(&node, link);
43574 cat - <<_ACEOF >conftest.h
43579 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43580 echo "obj-m := conftest.o" >build/Makefile
43582 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43583 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585 (eval $ac_try) 2>&5
43587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590 (eval $ac_try) 2>&5
43592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593 (exit $ac_status); }; }; then
43595 { $as_echo "$as_me:$LINENO: result: yes" >&5
43596 $as_echo "yes" >&6; }
43598 cat >>confdefs.h <<\_ACEOF
43599 #define HAVE_SET_NLINK 1
43604 $as_echo "$as_me: failed program was:" >&5
43605 sed 's
/^
/|
/' conftest.$ac_ext >&5
43607 { $as_echo "$as_me:$LINENO: result: no" >&5
43608 $as_echo "no" >&6; }
43619 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
43620 $as_echo_n "checking whether elevator_change() is available... " >&6; }
43621 tmp_flags="$EXTRA_KCFLAGS"
43622 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
43625 cat confdefs.h - <<_ACEOF >conftest.c
43628 cat confdefs.h >>conftest.$ac_ext
43629 cat >>conftest.$ac_ext <<_ACEOF
43630 /* end confdefs.h. */
43633 #include <linux/blkdev.h>
43634 #include <linux/elevator.h>
43641 struct request_queue *q = NULL;
43642 char *elevator = NULL;
43643 ret = elevator_change(q, elevator);
43653 cat - <<_ACEOF >conftest.h
43658 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43659 echo "obj-m := conftest.o" >build/Makefile
43661 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43662 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664 (eval $ac_try) 2>&5
43666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43669 (eval $ac_try) 2>&5
43671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43672 (exit $ac_status); }; }; then
43674 { $as_echo "$as_me:$LINENO: result: yes" >&5
43675 $as_echo "yes" >&6; }
43677 cat >>confdefs.h <<\_ACEOF
43678 #define HAVE_ELEVATOR_CHANGE 1
43683 $as_echo "$as_me: failed program was:" >&5
43684 sed 's
/^
/|
/' conftest.$ac_ext >&5
43686 { $as_echo "$as_me:$LINENO: result: no" >&5
43687 $as_echo "no" >&6; }
43696 EXTRA_KCFLAGS="$tmp_flags"
43698 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
43699 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
43702 cat confdefs.h - <<_ACEOF >conftest.c
43705 cat confdefs.h >>conftest.$ac_ext
43706 cat >>conftest.$ac_ext <<_ACEOF
43707 /* end confdefs.h. */
43710 #include <linux/fs.h>
43716 struct file_system_type *type = NULL;
43717 int (*test)(struct super_block *,void *) = NULL;
43718 int (*set)(struct super_block *,void *) = NULL;
43721 (void) sget(type, test, set, flags, data);
43731 cat - <<_ACEOF >conftest.h
43736 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43737 echo "obj-m := conftest.o" >build/Makefile
43739 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43740 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43742 (eval $ac_try) 2>&5
43744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43747 (eval $ac_try) 2>&5
43749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43750 (exit $ac_status); }; }; then
43752 { $as_echo "$as_me:$LINENO: result: yes" >&5
43753 $as_echo "yes" >&6; }
43755 cat >>confdefs.h <<\_ACEOF
43756 #define HAVE_5ARG_SGET 1
43761 $as_echo "$as_me: failed program was:" >&5
43762 sed 's
/^
/|
/' conftest.$ac_ext >&5
43764 { $as_echo "$as_me:$LINENO: result: no" >&5
43765 $as_echo "no" >&6; }
43775 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
43776 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
43780 cat confdefs.h - <<_ACEOF >conftest.c
43783 cat confdefs.h >>conftest.$ac_ext
43784 cat >>conftest.$ac_ext <<_ACEOF
43785 /* end confdefs.h. */
43788 #include <linux/fs.h>
43794 struct file *fp __attribute__ ((unused)) = NULL;
43795 struct inode *ip __attribute__ ((unused)) = NULL;
43796 loff_t offset __attribute__ ((unused)) = 0;
43797 loff_t maxsize __attribute__ ((unused)) = 0;
43799 lseek_execute(fp, ip, offset, maxsize);
43809 cat - <<_ACEOF >conftest.h
43814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43815 echo "obj-m := conftest.o" >build/Makefile
43817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43818 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43820 (eval $ac_try) 2>&5
43822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43823 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43825 (eval $ac_try) 2>&5
43827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43828 (exit $ac_status); }; }; then
43831 $as_echo "$as_me: failed program was:" >&5
43832 sed 's
/^
/|
/' conftest.$ac_ext >&5
43841 if test $rc -ne 0; then :
43843 { $as_echo "$as_me:$LINENO: result: no" >&5
43844 $as_echo "no" >&6; }
43847 if test "x$enable_linux_builtin" != xyes; then
43849 grep -q -E '[[:space
:]]lseek_exclusive
[[:space
:]]' \
43850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
43852 if test $rc -ne 0; then
43854 for file in fs/read_write.c; do
43855 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
43856 "$LINUX/$file" 2>/dev/null
43858 if test $rc -eq 0; then
43863 if test $export -eq 0; then :
43873 if test $rc -ne 0; then :
43875 { $as_echo "$as_me:$LINENO: result: no" >&5
43876 $as_echo "no" >&6; }
43880 { $as_echo "$as_me:$LINENO: result: yes" >&5
43881 $as_echo "yes" >&6; }
43883 cat >>confdefs.h <<\_ACEOF
43884 #define HAVE_LSEEK_EXECUTE 1
43893 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
43894 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
43897 cat confdefs.h - <<_ACEOF >conftest.c
43900 cat confdefs.h >>conftest.$ac_ext
43901 cat >>conftest.$ac_ext <<_ACEOF
43902 /* end confdefs.h. */
43905 #include <linux/fs.h>
43906 int iterate(struct file *filp, struct dir_context * context)
43909 static const struct file_operations fops
43910 __attribute__ ((unused)) = {
43911 .iterate_shared = iterate,
43927 cat - <<_ACEOF >conftest.h
43932 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
43933 echo "obj-m := conftest.o" >build/Makefile
43935 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
43936 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
43937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938 (eval $ac_try) 2>&5
43940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
43942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43943 (eval $ac_try) 2>&5
43945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43946 (exit $ac_status); }; }; then
43948 { $as_echo "$as_me:$LINENO: result: yes" >&5
43949 $as_echo "yes" >&6; }
43951 cat >>confdefs.h <<\_ACEOF
43952 #define HAVE_VFS_ITERATE_SHARED 1
43957 $as_echo "$as_me: failed program was:" >&5
43958 sed 's
/^
/|
/' conftest.$ac_ext >&5
43960 { $as_echo "$as_me:$LINENO: result: no" >&5
43961 $as_echo "no" >&6; }
43963 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
43964 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
43967 cat confdefs.h - <<_ACEOF >conftest.c
43970 cat confdefs.h >>conftest.$ac_ext
43971 cat >>conftest.$ac_ext <<_ACEOF
43972 /* end confdefs.h. */
43975 #include <linux/fs.h>
43976 int iterate(struct file *filp, struct dir_context * context)
43979 static const struct file_operations fops
43980 __attribute__ ((unused)) = {
43981 .iterate = iterate,
43997 cat - <<_ACEOF >conftest.h
44002 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44003 echo "obj-m := conftest.o" >build/Makefile
44005 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44006 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44008 (eval $ac_try) 2>&5
44010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44013 (eval $ac_try) 2>&5
44015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016 (exit $ac_status); }; }; then
44018 { $as_echo "$as_me:$LINENO: result: yes" >&5
44019 $as_echo "yes" >&6; }
44021 cat >>confdefs.h <<\_ACEOF
44022 #define HAVE_VFS_ITERATE 1
44027 $as_echo "$as_me: failed program was:" >&5
44028 sed 's
/^
/|
/' conftest.$ac_ext >&5
44030 { $as_echo "$as_me:$LINENO: result: no" >&5
44031 $as_echo "no" >&6; }
44033 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
44034 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
44037 cat confdefs.h - <<_ACEOF >conftest.c
44040 cat confdefs.h >>conftest.$ac_ext
44041 cat >>conftest.$ac_ext <<_ACEOF
44042 /* end confdefs.h. */
44045 #include <linux/fs.h>
44046 int readdir(struct file *filp, void *entry, filldir_t func)
44049 static const struct file_operations fops
44050 __attribute__ ((unused)) = {
44051 .readdir = readdir,
44067 cat - <<_ACEOF >conftest.h
44072 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44073 echo "obj-m := conftest.o" >build/Makefile
44075 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44076 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44078 (eval $ac_try) 2>&5
44080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44081 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083 (eval $ac_try) 2>&5
44085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); }; }; then
44088 { $as_echo "$as_me:$LINENO: result: yes" >&5
44089 $as_echo "yes" >&6; }
44091 cat >>confdefs.h <<\_ACEOF
44092 #define HAVE_VFS_READDIR 1
44097 $as_echo "$as_me: failed program was:" >&5
44098 sed 's
/^
/|
/' conftest.$ac_ext >&5
44100 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
44101 $as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
44102 { (exit 1); exit 1; }; }
44128 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
44129 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
44132 cat confdefs.h - <<_ACEOF >conftest.c
44135 cat confdefs.h >>conftest.$ac_ext
44136 cat >>conftest.$ac_ext <<_ACEOF
44137 /* end confdefs.h. */
44140 #include <linux/fs.h>
44142 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
44144 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
44147 static const struct file_operations
44148 fops __attribute__ ((unused)) = {
44149 .read_iter = test_read,
44150 .write_iter = test_write,
44166 cat - <<_ACEOF >conftest.h
44171 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44172 echo "obj-m := conftest.o" >build/Makefile
44174 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44175 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44177 (eval $ac_try) 2>&5
44179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182 (eval $ac_try) 2>&5
44184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; }; then
44187 { $as_echo "$as_me:$LINENO: result: yes" >&5
44188 $as_echo "yes" >&6; }
44190 cat >>confdefs.h <<\_ACEOF
44191 #define HAVE_VFS_RW_ITERATE 1
44195 { $as_echo "$as_me:$LINENO: checking whether new_sync_read/write() are available" >&5
44196 $as_echo_n "checking whether new_sync_read/write() are available... " >&6; }
44199 cat confdefs.h - <<_ACEOF >conftest.c
44202 cat confdefs.h >>conftest.$ac_ext
44203 cat >>conftest.$ac_ext <<_ACEOF
44204 /* end confdefs.h. */
44207 #include <linux/fs.h>
44213 ssize_t ret __attribute__ ((unused));
44214 struct file *filp = NULL;
44215 char __user *rbuf = NULL;
44216 const char __user *wbuf = NULL;
44220 ret = new_sync_read(filp, rbuf, len, &ppos);
44221 ret = new_sync_write(filp, wbuf, len, &ppos);
44231 cat - <<_ACEOF >conftest.h
44236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44237 echo "obj-m := conftest.o" >build/Makefile
44239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44240 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44242 (eval $ac_try) 2>&5
44244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44247 (eval $ac_try) 2>&5
44249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44250 (exit $ac_status); }; }; then
44252 { $as_echo "$as_me:$LINENO: result: yes" >&5
44253 $as_echo "yes" >&6; }
44255 cat >>confdefs.h <<\_ACEOF
44256 #define HAVE_NEW_SYNC_READ 1
44261 $as_echo "$as_me: failed program was:" >&5
44262 sed 's
/^
/|
/' conftest.$ac_ext >&5
44264 { $as_echo "$as_me:$LINENO: result: no" >&5
44265 $as_echo "no" >&6; }
44277 $as_echo "$as_me: failed program was:" >&5
44278 sed 's
/^
/|
/' conftest.$ac_ext >&5
44280 { $as_echo "$as_me:$LINENO: result: no" >&5
44281 $as_echo "no" >&6; }
44291 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
44292 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
44295 cat confdefs.h - <<_ACEOF >conftest.c
44298 cat confdefs.h >>conftest.$ac_ext
44299 cat >>conftest.$ac_ext <<_ACEOF
44300 /* end confdefs.h. */
44303 #include <linux/fs.h>
44310 struct kiocb *iocb = NULL;
44311 struct iov_iter *iov = NULL;
44312 generic_write_checks(iocb, iov);
44322 cat - <<_ACEOF >conftest.h
44327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44328 echo "obj-m := conftest.o" >build/Makefile
44330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44331 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44333 (eval $ac_try) 2>&5
44335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44338 (eval $ac_try) 2>&5
44340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44341 (exit $ac_status); }; }; then
44343 { $as_echo "$as_me:$LINENO: result: yes" >&5
44344 $as_echo "yes" >&6; }
44346 cat >>confdefs.h <<\_ACEOF
44347 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
44352 $as_echo "$as_me: failed program was:" >&5
44353 sed 's
/^
/|
/' conftest.$ac_ext >&5
44355 { $as_echo "$as_me:$LINENO: result: no" >&5
44356 $as_echo "no" >&6; }
44367 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
44368 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
44371 cat confdefs.h - <<_ACEOF >conftest.c
44374 cat confdefs.h >>conftest.$ac_ext
44375 cat >>conftest.$ac_ext <<_ACEOF
44376 /* end confdefs.h. */
44379 #include <linux/pagemap.h>
44386 kmap_atomic(&page);
44396 cat - <<_ACEOF >conftest.h
44401 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44402 echo "obj-m := conftest.o" >build/Makefile
44404 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44405 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44407 (eval $ac_try) 2>&5
44409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44412 (eval $ac_try) 2>&5
44414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44415 (exit $ac_status); }; }; then
44417 { $as_echo "$as_me:$LINENO: result: yes" >&5
44418 $as_echo "yes" >&6; }
44420 cat >>confdefs.h <<\_ACEOF
44421 #define HAVE_1ARG_KMAP_ATOMIC 1
44426 $as_echo "$as_me: failed program was:" >&5
44427 sed 's
/^
/|
/' conftest.$ac_ext >&5
44429 { $as_echo "$as_me:$LINENO: result: no" >&5
44430 $as_echo "no" >&6; }
44441 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
44442 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
44445 cat confdefs.h - <<_ACEOF >conftest.c
44448 cat confdefs.h >>conftest.$ac_ext
44449 cat >>conftest.$ac_ext <<_ACEOF
44450 /* end confdefs.h. */
44453 #include <linux/namei.h>
44459 struct path *p = NULL;
44460 follow_down_one(p);
44470 cat - <<_ACEOF >conftest.h
44475 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44476 echo "obj-m := conftest.o" >build/Makefile
44478 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44479 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44481 (eval $ac_try) 2>&5
44483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44484 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44486 (eval $ac_try) 2>&5
44488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44489 (exit $ac_status); }; }; then
44491 { $as_echo "$as_me:$LINENO: result: yes" >&5
44492 $as_echo "yes" >&6; }
44494 cat >>confdefs.h <<\_ACEOF
44495 #define HAVE_FOLLOW_DOWN_ONE 1
44500 $as_echo "$as_me: failed program was:" >&5
44501 sed 's
/^
/|
/' conftest.$ac_ext >&5
44503 { $as_echo "$as_me:$LINENO: result: no" >&5
44504 $as_echo "no" >&6; }
44515 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
44516 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
44519 cat confdefs.h - <<_ACEOF >conftest.c
44522 cat confdefs.h >>conftest.$ac_ext
44523 cat >>conftest.$ac_ext <<_ACEOF
44524 /* end confdefs.h. */
44527 #include <linux/blkdev.h>
44529 int make_request(struct request_queue *q, struct bio *bio)
44538 blk_queue_make_request(NULL, &make_request);
44548 cat - <<_ACEOF >conftest.h
44553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44554 echo "obj-m := conftest.o" >build/Makefile
44556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44557 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44559 (eval $ac_try) 2>&5
44561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44564 (eval $ac_try) 2>&5
44566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44567 (exit $ac_status); }; }; then
44569 { $as_echo "$as_me:$LINENO: result: yes" >&5
44570 $as_echo "yes" >&6; }
44572 cat >>confdefs.h <<\_ACEOF
44573 #define MAKE_REQUEST_FN_RET int
44577 cat >>confdefs.h <<\_ACEOF
44578 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
44583 $as_echo "$as_me: failed program was:" >&5
44584 sed 's
/^
/|
/' conftest.$ac_ext >&5
44586 { $as_echo "$as_me:$LINENO: result: no" >&5
44587 $as_echo "no" >&6; }
44588 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
44589 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
44592 cat confdefs.h - <<_ACEOF >conftest.c
44595 cat confdefs.h >>conftest.$ac_ext
44596 cat >>conftest.$ac_ext <<_ACEOF
44597 /* end confdefs.h. */
44600 #include <linux/blkdev.h>
44602 void make_request(struct request_queue *q, struct bio *bio)
44611 blk_queue_make_request(NULL, &make_request);
44621 cat - <<_ACEOF >conftest.h
44626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44627 echo "obj-m := conftest.o" >build/Makefile
44629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44630 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44632 (eval $ac_try) 2>&5
44634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44637 (eval $ac_try) 2>&5
44639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44640 (exit $ac_status); }; }; then
44642 { $as_echo "$as_me:$LINENO: result: yes" >&5
44643 $as_echo "yes" >&6; }
44645 cat >>confdefs.h <<\_ACEOF
44646 #define MAKE_REQUEST_FN_RET void
44651 $as_echo "$as_me: failed program was:" >&5
44652 sed 's
/^
/|
/' conftest.$ac_ext >&5
44654 { $as_echo "$as_me:$LINENO: result: no" >&5
44655 $as_echo "no" >&6; }
44656 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
44657 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
44660 cat confdefs.h - <<_ACEOF >conftest.c
44663 cat confdefs.h >>conftest.$ac_ext
44664 cat >>conftest.$ac_ext <<_ACEOF
44665 /* end confdefs.h. */
44668 #include <linux/blkdev.h>
44670 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
44672 return (BLK_QC_T_NONE);
44679 blk_queue_make_request(NULL, &make_request);
44689 cat - <<_ACEOF >conftest.h
44694 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44695 echo "obj-m := conftest.o" >build/Makefile
44697 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44698 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44700 (eval $ac_try) 2>&5
44702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44705 (eval $ac_try) 2>&5
44707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708 (exit $ac_status); }; }; then
44710 { $as_echo "$as_me:$LINENO: result: yes" >&5
44711 $as_echo "yes" >&6; }
44713 cat >>confdefs.h <<\_ACEOF
44714 #define MAKE_REQUEST_FN_RET blk_qc_t
44718 cat >>confdefs.h <<\_ACEOF
44719 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
44724 $as_echo "$as_me: failed program was:" >&5
44725 sed 's
/^
/|
/' conftest.$ac_ext >&5
44727 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
44728 https://github.com/zfsonlinux/zfs/issues/new" >&5
44729 $as_echo "$as_me: error: no - Please file a bug report at
44730 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
44731 { (exit 1); exit 1; }; }
44758 { $as_echo "$as_me:$LINENO: checking whether 3 arg generic IO accounting symbols are available" >&5
44759 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
44763 cat confdefs.h - <<_ACEOF >conftest.c
44766 cat confdefs.h >>conftest.$ac_ext
44767 cat >>conftest.$ac_ext <<_ACEOF
44768 /* end confdefs.h. */
44771 #include <linux/bio.h>
44773 void (*generic_start_io_acct_f)(int, unsigned long,
44774 struct hd_struct *) = &generic_start_io_acct;
44775 void (*generic_end_io_acct_f)(int, struct hd_struct *,
44776 unsigned long) = &generic_end_io_acct;
44782 generic_start_io_acct(0, 0, NULL);
44783 generic_end_io_acct(0, NULL, 0);
44793 cat - <<_ACEOF >conftest.h
44798 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44799 echo "obj-m := conftest.o" >build/Makefile
44801 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44802 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44804 (eval $ac_try) 2>&5
44806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44807 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809 (eval $ac_try) 2>&5
44811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812 (exit $ac_status); }; }; then
44815 $as_echo "$as_me: failed program was:" >&5
44816 sed 's
/^
/|
/' conftest.$ac_ext >&5
44825 if test $rc -ne 0; then :
44827 { $as_echo "$as_me:$LINENO: result: no" >&5
44828 $as_echo "no" >&6; }
44831 if test "x$enable_linux_builtin" != xyes; then
44833 grep -q -E '[[:space
:]]generic_start_io_acct
[[:space
:]]' \
44834 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44836 if test $rc -ne 0; then
44838 for file in block/bio.c; do
44839 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44840 "$LINUX/$file" 2>/dev/null
44842 if test $rc -eq 0; then
44847 if test $export -eq 0; then :
44857 if test $rc -ne 0; then :
44859 { $as_echo "$as_me:$LINENO: result: no" >&5
44860 $as_echo "no" >&6; }
44864 { $as_echo "$as_me:$LINENO: result: yes" >&5
44865 $as_echo "yes" >&6; }
44867 cat >>confdefs.h <<\_ACEOF
44868 #define HAVE_GENERIC_IO_ACCT_3ARG 1
44877 { $as_echo "$as_me:$LINENO: checking whether 4 arg generic IO accounting symbols are available" >&5
44878 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
44882 cat confdefs.h - <<_ACEOF >conftest.c
44885 cat confdefs.h >>conftest.$ac_ext
44886 cat >>conftest.$ac_ext <<_ACEOF
44887 /* end confdefs.h. */
44890 #include <linux/bio.h>
44892 void (*generic_start_io_acct_f)(struct request_queue *, int,
44893 unsigned long, struct hd_struct *) = &generic_start_io_acct;
44894 void (*generic_end_io_acct_f)(struct request_queue *, int,
44895 struct hd_struct *, unsigned long) = &generic_end_io_acct;
44901 generic_start_io_acct(NULL, 0, 0, NULL);
44902 generic_end_io_acct(NULL, 0, NULL, 0);
44912 cat - <<_ACEOF >conftest.h
44917 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
44918 echo "obj-m := conftest.o" >build/Makefile
44920 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
44921 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
44922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44923 (eval $ac_try) 2>&5
44925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
44927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44928 (eval $ac_try) 2>&5
44930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931 (exit $ac_status); }; }; then
44934 $as_echo "$as_me: failed program was:" >&5
44935 sed 's
/^
/|
/' conftest.$ac_ext >&5
44944 if test $rc -ne 0; then :
44946 { $as_echo "$as_me:$LINENO: result: no" >&5
44947 $as_echo "no" >&6; }
44950 if test "x$enable_linux_builtin" != xyes; then
44952 grep -q -E '[[:space
:]]generic_start_io_acct
[[:space
:]]' \
44953 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
44955 if test $rc -ne 0; then
44957 for file in block/bio.c; do
44958 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
44959 "$LINUX/$file" 2>/dev/null
44961 if test $rc -eq 0; then
44966 if test $export -eq 0; then :
44976 if test $rc -ne 0; then :
44978 { $as_echo "$as_me:$LINENO: result: no" >&5
44979 $as_echo "no" >&6; }
44983 { $as_echo "$as_me:$LINENO: result: yes" >&5
44984 $as_echo "yes" >&6; }
44986 cat >>confdefs.h <<\_ACEOF
44987 #define HAVE_GENERIC_IO_ACCT_4ARG 1
44996 { $as_echo "$as_me:$LINENO: checking whether asm/fpu/api.h exists" >&5
44997 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
45000 cat confdefs.h - <<_ACEOF >conftest.c
45003 cat confdefs.h >>conftest.$ac_ext
45004 cat >>conftest.$ac_ext <<_ACEOF
45005 /* end confdefs.h. */
45008 #include <linux/kernel.h>
45009 #include <asm/fpu/api.h>
45015 __kernel_fpu_begin();
45025 cat - <<_ACEOF >conftest.h
45030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45031 echo "obj-m := conftest.o" >build/Makefile
45033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45034 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45036 (eval $ac_try) 2>&5
45038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45039 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45041 (eval $ac_try) 2>&5
45043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45044 (exit $ac_status); }; }; then
45046 { $as_echo "$as_me:$LINENO: result: yes" >&5
45047 $as_echo "yes" >&6; }
45049 cat >>confdefs.h <<\_ACEOF
45050 #define HAVE_FPU_API_H 1
45055 $as_echo "$as_me: failed program was:" >&5
45056 sed 's
/^
/|
/' conftest.$ac_ext >&5
45058 { $as_echo "$as_me:$LINENO: result: no" >&5
45059 $as_echo "no" >&6; }
45070 { $as_echo "$as_me:$LINENO: checking whether i_(uid|gid)_(read|write) exist" >&5
45071 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
45074 cat confdefs.h - <<_ACEOF >conftest.c
45077 cat confdefs.h >>conftest.$ac_ext
45078 cat >>conftest.$ac_ext <<_ACEOF
45079 /* end confdefs.h. */
45082 #include <linux/fs.h>
45088 struct inode *ip = NULL;
45089 (void) i_uid_read(ip);
45099 cat - <<_ACEOF >conftest.h
45104 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45105 echo "obj-m := conftest.o" >build/Makefile
45107 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45108 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45110 (eval $ac_try) 2>&5
45112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45115 (eval $ac_try) 2>&5
45117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45118 (exit $ac_status); }; }; then
45120 { $as_echo "$as_me:$LINENO: result: yes" >&5
45121 $as_echo "yes" >&6; }
45123 cat >>confdefs.h <<\_ACEOF
45124 #define HAVE_KUID_HELPERS 1
45129 $as_echo "$as_me: failed program was:" >&5
45130 sed 's
/^
/|
/' conftest.$ac_ext >&5
45132 { $as_echo "$as_me:$LINENO: result: no" >&5
45133 $as_echo "no" >&6; }
45144 { $as_echo "$as_me:$LINENO: checking whether module_param_call() is hardened" >&5
45145 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
45148 cat confdefs.h - <<_ACEOF >conftest.c
45151 cat confdefs.h >>conftest.$ac_ext
45152 cat >>conftest.$ac_ext <<_ACEOF
45153 /* end confdefs.h. */
45156 #include <linux/module.h>
45157 #include <linux/moduleparam.h>
45159 int param_get(char *b, const struct kernel_param *kp)
45164 int param_set(const char *b, const struct kernel_param *kp)
45169 module_param_call(p, param_set, param_get, NULL, 0644);
45184 cat - <<_ACEOF >conftest.h
45189 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45190 echo "obj-m := conftest.o" >build/Makefile
45192 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45193 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45195 (eval $ac_try) 2>&5
45197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45200 (eval $ac_try) 2>&5
45202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 (exit $ac_status); }; }; then
45205 { $as_echo "$as_me:$LINENO: result: yes" >&5
45206 $as_echo "yes" >&6; }
45208 cat >>confdefs.h <<\_ACEOF
45209 #define MODULE_PARAM_CALL_CONST 1
45214 $as_echo "$as_me: failed program was:" >&5
45215 sed 's
/^
/|
/' conftest.$ac_ext >&5
45217 { $as_echo "$as_me:$LINENO: result: no" >&5
45218 $as_echo "no" >&6; }
45229 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
45230 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
45233 cat confdefs.h - <<_ACEOF >conftest.c
45236 cat confdefs.h >>conftest.$ac_ext
45237 cat >>conftest.$ac_ext <<_ACEOF
45238 /* end confdefs.h. */
45241 #include <linux/fs.h>
45242 int rename_fn(struct inode *sip, struct dentry *sdp,
45243 struct inode *tip, struct dentry *tdp,
45244 unsigned int flags) { return 0; }
45246 static const struct inode_operations
45247 iops __attribute__ ((unused)) = {
45248 .rename = rename_fn,
45264 cat - <<_ACEOF >conftest.h
45269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45270 echo "obj-m := conftest.o" >build/Makefile
45272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45273 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45275 (eval $ac_try) 2>&5
45277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45280 (eval $ac_try) 2>&5
45282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45283 (exit $ac_status); }; }; then
45285 { $as_echo "$as_me:$LINENO: result: yes" >&5
45286 $as_echo "yes" >&6; }
45288 cat >>confdefs.h <<\_ACEOF
45289 #define HAVE_RENAME_WANTS_FLAGS 1
45294 $as_echo "$as_me: failed program was:" >&5
45295 sed 's
/^
/|
/' conftest.$ac_ext >&5
45297 { $as_echo "$as_me:$LINENO: result: no" >&5
45298 $as_echo "no" >&6; }
45309 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
45310 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
45313 cat confdefs.h - <<_ACEOF >conftest.c
45316 cat confdefs.h >>conftest.$ac_ext
45317 cat >>conftest.$ac_ext <<_ACEOF
45318 /* end confdefs.h. */
45321 #include <linux/fs.h>
45322 #include <linux/xattr.h>
45324 static const struct inode_operations
45325 iops __attribute__ ((unused)) = {
45326 .setxattr = generic_setxattr
45342 cat - <<_ACEOF >conftest.h
45347 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45348 echo "obj-m := conftest.o" >build/Makefile
45350 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45351 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45353 (eval $ac_try) 2>&5
45355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45358 (eval $ac_try) 2>&5
45360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45361 (exit $ac_status); }; }; then
45363 { $as_echo "$as_me:$LINENO: result: yes" >&5
45364 $as_echo "yes" >&6; }
45366 cat >>confdefs.h <<\_ACEOF
45367 #define HAVE_GENERIC_SETXATTR 1
45372 $as_echo "$as_me: failed program was:" >&5
45373 sed 's
/^
/|
/' conftest.$ac_ext >&5
45375 { $as_echo "$as_me:$LINENO: result: no" >&5
45376 $as_echo "no" >&6; }
45386 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
45387 $as_echo_n "checking whether current_time() exists... " >&6; }
45391 cat confdefs.h - <<_ACEOF >conftest.c
45394 cat confdefs.h >>conftest.$ac_ext
45395 cat >>conftest.$ac_ext <<_ACEOF
45396 /* end confdefs.h. */
45399 #include <linux/fs.h>
45406 struct timespec now __attribute__ ((unused));
45408 now = current_time(&ip);
45418 cat - <<_ACEOF >conftest.h
45423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45424 echo "obj-m := conftest.o" >build/Makefile
45426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45427 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45429 (eval $ac_try) 2>&5
45431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45432 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45434 (eval $ac_try) 2>&5
45436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437 (exit $ac_status); }; }; then
45440 $as_echo "$as_me: failed program was:" >&5
45441 sed 's
/^
/|
/' conftest.$ac_ext >&5
45450 if test $rc -ne 0; then :
45452 { $as_echo "$as_me:$LINENO: result: no" >&5
45453 $as_echo "no" >&6; }
45456 if test "x$enable_linux_builtin" != xyes; then
45458 grep -q -E '[[:space
:]]current_time
[[:space
:]]' \
45459 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
45461 if test $rc -ne 0; then
45463 for file in fs/inode.c; do
45464 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
45465 "$LINUX/$file" 2>/dev/null
45467 if test $rc -eq 0; then
45472 if test $export -eq 0; then :
45482 if test $rc -ne 0; then :
45484 { $as_echo "$as_me:$LINENO: result: no" >&5
45485 $as_echo "no" >&6; }
45489 { $as_echo "$as_me:$LINENO: result: yes" >&5
45490 $as_echo "yes" >&6; }
45492 cat >>confdefs.h <<\_ACEOF
45493 #define HAVE_CURRENT_TIME 1
45502 { $as_echo "$as_me:$LINENO: checking whether to use vm_node_stat based fn's
" >&5
45503 $as_echo_n "checking whether to use vm_node_stat based fn
's... " >&6; }
45506 cat confdefs.h - <<_ACEOF >conftest.c
45509 cat confdefs.h >>conftest.$ac_ext
45510 cat >>conftest.$ac_ext <<_ACEOF
45511 /* end confdefs.h. */
45514 #include <linux/mm.h>
45515 #include <linux/vmstat.h>
45521 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
45522 long x __attribute__ ((unused)) =
45523 atomic_long_read(&vm_node_stat[0]);
45524 (void) global_node_page_state(0);
45534 cat - <<_ACEOF >conftest.h
45539 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
45540 echo "obj-m := conftest.o" >build/Makefile
45542 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
45543 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
45544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45545 (eval $ac_try) 2>&5
45547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
45549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45550 (eval $ac_try) 2>&5
45552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553 (exit $ac_status); }; }; then
45555 { $as_echo "$as_me:$LINENO: result: yes" >&5
45556 $as_echo "yes" >&6; }
45558 cat >>confdefs.h <<\_ACEOF
45559 #define ZFS_GLOBAL_NODE_PAGE_STATE 1
45564 $as_echo "$as_me: failed program was:" >&5
45565 sed 's
/^
/|
/' conftest.$ac_ext >&5
45567 { $as_echo "$as_me:$LINENO: result: no" >&5
45568 $as_echo "no" >&6; }
45579 if test "$LINUX_OBJ" != "$LINUX"; then
45581 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
45588 KERNELCPPFLAGS="$KERNELCPPFLAGS -std=gnu99"
45589 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wno-declaration-after-statement"
45590 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
45591 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
45592 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
45593 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
45599 { $as_echo "$as_me:$LINENO: result: Error!" >&5
45600 $as_echo "Error!" >&6; }
45601 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45602 user kernel|user|all|srpm" >&5
45603 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
45604 user kernel|user|all|srpm" >&2;}
45605 { (exit 1); exit 1; }; } ;;
45608 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
45610 CONFIG_USER_FALSE='#'
45612 CONFIG_USER_TRUE
='#'
45616 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
45617 test "x$enable_linux_builtin" != xyes
; then
45618 CONFIG_KERNEL_TRUE
=
45619 CONFIG_KERNEL_FALSE
='#'
45621 CONFIG_KERNEL_TRUE
='#'
45622 CONFIG_KERNEL_FALSE
=
45625 if test "x$user_libudev" = xyes
; then
45626 WANT_DEVNAME2DEVID_TRUE
=
45627 WANT_DEVNAME2DEVID_FALSE
='#'
45629 WANT_DEVNAME2DEVID_TRUE
='#'
45630 WANT_DEVNAME2DEVID_FALSE
=
45633 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
45634 test "x$qatsrc" != x
; then
45636 CONFIG_QAT_FALSE
='#'
45638 CONFIG_QAT_TRUE
='#'
45644 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
45645 $as_echo_n "checking whether debugging is enabled... " >&6; }
45646 # Check whether --enable-debug was given.
45647 if test "${enable_debug+set}" = set; then
45648 enableval
=$enable_debug;
45654 if test "x$enable_debug" = xyes
; then
45656 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
45657 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
45658 DEBUG_CFLAGS
="-DDEBUG -Werror"
45659 DEBUG_STACKFLAGS
="-fstack-check"
45660 DEBUG_ZFS
="_with_debug"
45662 cat >>confdefs.h
<<\_ACEOF
45663 #define ZFS_DEBUG 1
45669 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
45670 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
45671 DEBUG_CFLAGS
="-DNDEBUG"
45672 DEBUG_STACKFLAGS
=""
45673 DEBUG_ZFS
="_without_debug"
45681 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
45682 $as_echo "$enable_debug" >&6; }
45685 ac_config_files
="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/sudoers.d/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/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/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libicp/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile cmd/raidz_test/Makefile cmd/zgenhostid/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/02zfsexpandknowledge/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile module/icp/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile include/sys/crypto/Makefile include/sys/sysevent/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh tests/Makefile tests/test-runner/Makefile tests/test-runner/cmd/Makefile tests/test-runner/include/Makefile tests/test-runner/man/Makefile tests/runfiles/Makefile tests/zfs-tests/Makefile tests/zfs-tests/callbacks/Makefile tests/zfs-tests/cmd/Makefile tests/zfs-tests/cmd/chg_usr_exec/Makefile tests/zfs-tests/cmd/devname2devid/Makefile tests/zfs-tests/cmd/dir_rd_update/Makefile tests/zfs-tests/cmd/file_check/Makefile tests/zfs-tests/cmd/file_trunc/Makefile tests/zfs-tests/cmd/file_write/Makefile tests/zfs-tests/cmd/largest_file/Makefile tests/zfs-tests/cmd/mkbusy/Makefile tests/zfs-tests/cmd/mkfile/Makefile tests/zfs-tests/cmd/mkfiles/Makefile tests/zfs-tests/cmd/mktree/Makefile tests/zfs-tests/cmd/mmap_exec/Makefile tests/zfs-tests/cmd/mmapwrite/Makefile tests/zfs-tests/cmd/randfree_file/Makefile tests/zfs-tests/cmd/readmmap/Makefile tests/zfs-tests/cmd/rename_dir/Makefile tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile tests/zfs-tests/cmd/threadsappend/Makefile tests/zfs-tests/cmd/xattrtest/Makefile tests/zfs-tests/include/Makefile tests/zfs-tests/include/default.cfg tests/zfs-tests/tests/Makefile tests/zfs-tests/tests/functional/Makefile tests/zfs-tests/tests/functional/acl/Makefile tests/zfs-tests/tests/functional/acl/posix/Makefile tests/zfs-tests/tests/functional/atime/Makefile tests/zfs-tests/tests/functional/bootfs/Makefile tests/zfs-tests/tests/functional/cache/Makefile tests/zfs-tests/tests/functional/cachefile/Makefile tests/zfs-tests/tests/functional/casenorm/Makefile tests/zfs-tests/tests/functional/checksum/Makefile tests/zfs-tests/tests/functional/chattr/Makefile tests/zfs-tests/tests/functional/clean_mirror/Makefile tests/zfs-tests/tests/functional/cli_root/Makefile tests/zfs-tests/tests/functional/cli_root/zdb/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile tests/zfs-tests/tests/functional/cli_root/zfs/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile tests/zfs-tests/tests/functional/cli_root/zpool/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile tests/zfs-tests/tests/functional/cli_user/Makefile tests/zfs-tests/tests/functional/cli_user/misc/Makefile tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile tests/zfs-tests/tests/functional/compression/Makefile tests/zfs-tests/tests/functional/ctime/Makefile tests/zfs-tests/tests/functional/delegate/Makefile tests/zfs-tests/tests/functional/devices/Makefile tests/zfs-tests/tests/functional/events/Makefile tests/zfs-tests/tests/functional/exec/Makefile tests/zfs-tests/tests/functional/fault/Makefile tests/zfs-tests/tests/functional/features/async_destroy/Makefile tests/zfs-tests/tests/functional/features/large_dnode/Makefile tests/zfs-tests/tests/functional/features/Makefile tests/zfs-tests/tests/functional/grow_pool/Makefile tests/zfs-tests/tests/functional/grow_replicas/Makefile tests/zfs-tests/tests/functional/history/Makefile tests/zfs-tests/tests/functional/inheritance/Makefile tests/zfs-tests/tests/functional/inuse/Makefile tests/zfs-tests/tests/functional/large_files/Makefile tests/zfs-tests/tests/functional/largest_pool/Makefile tests/zfs-tests/tests/functional/link_count/Makefile tests/zfs-tests/tests/functional/libzfs/Makefile tests/zfs-tests/tests/functional/migration/Makefile tests/zfs-tests/tests/functional/mmap/Makefile tests/zfs-tests/tests/functional/mmp/Makefile tests/zfs-tests/tests/functional/mount/Makefile tests/zfs-tests/tests/functional/mv_files/Makefile tests/zfs-tests/tests/functional/nestedfs/Makefile tests/zfs-tests/tests/functional/no_space/Makefile tests/zfs-tests/tests/functional/nopwrite/Makefile tests/zfs-tests/tests/functional/online_offline/Makefile tests/zfs-tests/tests/functional/pool_names/Makefile tests/zfs-tests/tests/functional/poolversion/Makefile tests/zfs-tests/tests/functional/privilege/Makefile tests/zfs-tests/tests/functional/quota/Makefile tests/zfs-tests/tests/functional/raidz/Makefile tests/zfs-tests/tests/functional/redundancy/Makefile tests/zfs-tests/tests/functional/refquota/Makefile tests/zfs-tests/tests/functional/refreserv/Makefile tests/zfs-tests/tests/functional/rename_dirs/Makefile tests/zfs-tests/tests/functional/replacement/Makefile tests/zfs-tests/tests/functional/reservation/Makefile tests/zfs-tests/tests/functional/rootpool/Makefile tests/zfs-tests/tests/functional/rsend/Makefile tests/zfs-tests/tests/functional/scrub_mirror/Makefile tests/zfs-tests/tests/functional/slog/Makefile tests/zfs-tests/tests/functional/snapshot/Makefile tests/zfs-tests/tests/functional/snapused/Makefile tests/zfs-tests/tests/functional/sparse/Makefile tests/zfs-tests/tests/functional/threadsappend/Makefile tests/zfs-tests/tests/functional/tmpfile/Makefile tests/zfs-tests/tests/functional/truncate/Makefile tests/zfs-tests/tests/functional/userquota/Makefile tests/zfs-tests/tests/functional/upgrade/Makefile tests/zfs-tests/tests/functional/vdev_zaps/Makefile tests/zfs-tests/tests/functional/write_dirs/Makefile tests/zfs-tests/tests/functional/xattr/Makefile tests/zfs-tests/tests/functional/zvol/Makefile tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile tests/zfs-tests/tests/perf/Makefile tests/zfs-tests/tests/perf/fio/Makefile tests/zfs-tests/tests/perf/regression/Makefile tests/zfs-tests/tests/perf/scripts/Makefile tests/zfs-tests/tests/stress/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
45689 cat >confcache
<<\_ACEOF
45690 # This file is a shell script that caches the results of configure
45691 # tests run on this system so they can be shared between configure
45692 # scripts and configure runs, see configure's option --config-cache.
45693 # It is not useful on other systems. If it contains results you don't
45694 # want to keep, you may remove or edit it.
45696 # config.status only pays attention to the cache file if you give it
45697 # the --recheck option to rerun configure.
45699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45701 # following values.
45705 # The following way of writing the cache mishandles newlines in values,
45706 # but we know of no workaround that is simple, portable, and efficient.
45707 # So, we kill variables containing newlines.
45708 # Ultrix sh set writes to stderr and can't be redirected directly,
45709 # and sets the high bit in the cache file unless we assign to the vars.
45711 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45712 eval ac_val
=\$
$ac_var
45716 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45720 _ | IFS | as_nl
) ;; #(
45721 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
45722 *) $as_unset $ac_var ;;
45728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45729 *${as_nl}ac_space
=\
*)
45730 # `set' does not quote correctly, so add quotes (double-quote
45731 # substitution turns \\\\ into \\, and sed turns \\ into \).
45734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45737 # `set' quotes correctly as required by POSIX, so do not add quotes.
45738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45751 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
45752 if test -w "$cache_file"; then
45753 test "x$cache_file" != "x/dev/null" &&
45754 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45755 $as_echo "$as_me: updating cache $cache_file" >&6;}
45756 cat confcache
>$cache_file
45758 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45764 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
45765 # Let make expand exec_prefix.
45766 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
45768 DEFS
=-DHAVE_CONFIG_H
45772 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
45773 # 1. Remove the extension, and $U if already installed.
45774 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
45775 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
45776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45777 # will be set to the directory where LIBOBJS objects are built.
45778 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45779 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45781 LIBOBJS
=$ac_libobjs
45783 LTLIBOBJS
=$ac_ltlibobjs
45786 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45787 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
45788 Usually this means the macro was only invoked conditionally." >&5
45789 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
45790 Usually this means the macro was only invoked conditionally." >&2;}
45791 { (exit 1); exit 1; }; }
45793 if test -n "$EXEEXT"; then
45795 am__EXEEXT_FALSE
='#'
45797 am__EXEEXT_TRUE
='#'
45801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45802 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45803 Usually this means the macro was only invoked conditionally." >&5
45804 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45805 Usually this means the macro was only invoked conditionally." >&2;}
45806 { (exit 1); exit 1; }; }
45808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45809 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45810 Usually this means the macro was only invoked conditionally." >&5
45811 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45812 Usually this means the macro was only invoked conditionally." >&2;}
45813 { (exit 1); exit 1; }; }
45815 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
45816 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
45817 Usually this means the macro was only invoked conditionally." >&5
45818 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
45819 Usually this means the macro was only invoked conditionally." >&2;}
45820 { (exit 1); exit 1; }; }
45822 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
45823 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45824 Usually this means the macro was only invoked conditionally." >&5
45825 $as_echo "$as_me: error: conditional \"TARGET_ASM_X86_64\" was never defined.
45826 Usually this means the macro was only invoked conditionally." >&2;}
45827 { (exit 1); exit 1; }; }
45829 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
45830 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_I386\" was never defined.
45831 Usually this means the macro was only invoked conditionally." >&5
45832 $as_echo "$as_me: error: conditional \"TARGET_ASM_I386\" was never defined.
45833 Usually this means the macro was only invoked conditionally." >&2;}
45834 { (exit 1); exit 1; }; }
45836 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
45837 { { $as_echo "$as_me:$LINENO: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45838 Usually this means the macro was only invoked conditionally." >&5
45839 $as_echo "$as_me: error: conditional \"TARGET_ASM_GENERIC\" was never defined.
45840 Usually this means the macro was only invoked conditionally." >&2;}
45841 { (exit 1); exit 1; }; }
45843 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
45844 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
45845 Usually this means the macro was only invoked conditionally." >&5
45846 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
45847 Usually this means the macro was only invoked conditionally." >&2;}
45848 { (exit 1); exit 1; }; }
45850 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
45851 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
45852 Usually this means the macro was only invoked conditionally." >&5
45853 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
45854 Usually this means the macro was only invoked conditionally." >&2;}
45855 { (exit 1); exit 1; }; }
45857 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
45858 { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45859 Usually this means the macro was only invoked conditionally." >&5
45860 $as_echo "$as_me: error: conditional \"WANT_DEVNAME2DEVID\" was never defined.
45861 Usually this means the macro was only invoked conditionally." >&2;}
45862 { (exit 1); exit 1; }; }
45864 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
45865 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_QAT\" was never defined.
45866 Usually this means the macro was only invoked conditionally." >&5
45867 $as_echo "$as_me: error: conditional \"CONFIG_QAT\" was never defined.
45868 Usually this means the macro was only invoked conditionally." >&2;}
45869 { (exit 1); exit 1; }; }
45872 : ${CONFIG_STATUS=./config.status}
45874 ac_clean_files_save
=$ac_clean_files
45875 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
45876 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
45877 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45878 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45880 # Generated by $as_me.
45881 # Run this file to recreate the current configuration.
45882 # Compiler output produced by configure, useful for debugging
45883 # configure, is in config.log if it exists.
45886 ac_cs_recheck=false
45888 SHELL=\${CONFIG_SHELL-$SHELL}
45891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
45892 ## --------------------- ##
45893 ## M4sh Initialization. ##
45894 ## --------------------- ##
45896 # Be more Bourne compatible
45897 DUALCASE
=1; export DUALCASE
# for MKS sh
45898 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
45901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45902 # is contrary to our usage. Disable this feature.
45903 alias -g '${1+"$@"}'='"$@"'
45904 setopt NO_GLOB_SUBST
45906 case `(set -o) 2>/dev/null` in
45907 *posix
*) set -o posix
;;
45916 # Avoid depending upon Character Ranges.
45917 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
45918 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45919 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
45920 as_cr_digits
='0123456789'
45921 as_cr_alnum
=$as_cr_Letters$as_cr_digits
45926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45927 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45930 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45931 as_echo='printf %s
\n'
45932 as_echo_n='printf %s
'
45934 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45935 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
45936 as_echo_n='/usr
/ucb
/echo -n'
45938 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45939 as_echo_n_body='eval
45943 expr "X$arg" : "X\\(.*\\)$as_nl";
45944 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45946 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
45948 export as_echo_n_body
45949 as_echo_n='sh
-c $as_echo_n_body as_echo
'
45951 export as_echo_body
45952 as_echo='sh
-c $as_echo_body as_echo
'
45955 # The user is always right.
45956 if test "${PATH_SEPARATOR+set}" != set; then
45958 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
45959 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45964 # Support unset when possible.
45965 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45973 # We need space, tab and new line, in precisely that order. Quoting is
45974 # there to prevent editors from complaining about space-tab.
45975 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45976 # splitting by setting IFS to empty value.)
45979 # Find who we are. Look in the path if we contain no directory separator.
45981 *[\\/]* ) as_myself=$0 ;;
45982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45983 for as_dir in $PATH
45986 test -z "$as_dir" && as_dir=.
45987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45993 # We did not find ourselves, most probably we were run as `sh COMMAND'
45994 # in which case we are not to be found in the path.
45995 if test "x$as_myself" = x
; then
45998 if test ! -f "$as_myself"; then
45999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46000 { (exit 1); exit 1; }
46003 # Work around bugs in pre-3.0 UWIN ksh.
46004 for as_var
in ENV MAIL MAILPATH
46005 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
46017 # Required to use basename.
46018 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
46019 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
46025 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46026 as_basename
=basename
46032 # Name of the executable.
46033 as_me
=`$as_basename -- "$0" ||
46034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46035 X"$0" : 'X\(//\)$' \| \
46036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46038 sed '/^.*\/\([^/][^/]*\)\/*$/{
46057 as_lineno_1
=$LINENO
46058 as_lineno_2
=$LINENO
46059 test "x$as_lineno_1" != "x$as_lineno_2" &&
46060 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
46062 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46063 # uniformly replaced by the line number. The first 'sed' inserts a
46064 # line-number line after each line using $LINENO; the second 'sed'
46065 # does the real work. The second script uses 'N' to pair each
46066 # line-number line with the line containing $LINENO, and appends
46067 # trailing '-' during substitution so that $LINENO is not a special
46068 # case at line end.
46069 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46070 # scripts with optimization help from Paolo Bonzini. Blame Lee
46071 # E. McMahon (1931-1989) for sed's syntax. :-)
46083 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46086 ' >$as_me.lineno
&&
46087 chmod +x
"$as_me.lineno" ||
46088 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46089 { (exit 1); exit 1; }; }
46091 # Don't try to exec as it changes $[0], causing all sort of problems
46092 # (the dirname of $[0] is not the place where we might find the
46093 # original and so on. Autoconf is especially sensitive to this).
46094 .
"./$as_me.lineno"
46095 # Exit status is that of the last command.
46100 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
46106 ECHO_C
= ECHO_N
= ECHO_T
=
46107 case `echo -n x` in
46109 case `echo 'x\c'` in
46110 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
46116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
46117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
46123 rm -f conf$$ conf$$.exe conf$$.
file
46124 if test -d conf$$.dir
; then
46125 rm -f conf$$.dir
/conf$$.
file
46128 mkdir conf$$.dir
2>/dev
/null
46130 if (echo >conf$$.
file) 2>/dev
/null
; then
46131 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
46133 # ... but there are two gotchas:
46134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46136 # In both cases, we have to default to `cp -p'.
46137 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
46139 elif ln conf$$.
file conf$$
2>/dev
/null
; then
46147 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
46148 rmdir conf$$.dir
2>/dev
/null
46150 if mkdir
-p .
2>/dev
/null
; then
46153 test -d .
/-p && rmdir .
/-p
46157 if test -x / >/dev
/null
2>&1; then
46158 as_test_x
='test -x'
46160 if ls -dL / >/dev
/null
2>&1; then
46167 if test -d "$1"; then
46173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46174 ???[sx]*):;;*)false;;esac;fi
46178 as_executable_p
=$as_test_x
46180 # Sed expression to map a string onto a valid CPP name.
46181 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46183 # Sed expression to map a string onto a valid variable name.
46184 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46189 # Save the log message, to keep $[0] and so on meaningful, and to
46190 # report actual input values of CONFIG_FILES etc. instead of their
46191 # values after options handling.
46193 This file was extended by zfs $as_me 0.7.6, which was
46194 generated by GNU Autoconf 2.63. Invocation command line was
46196 CONFIG_FILES = $CONFIG_FILES
46197 CONFIG_HEADERS = $CONFIG_HEADERS
46198 CONFIG_LINKS = $CONFIG_LINKS
46199 CONFIG_COMMANDS = $CONFIG_COMMANDS
46202 on `(hostname || uname -n) 2>/dev/null | sed 1q`
46207 case $ac_config_files in *"
46208 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
46211 case $ac_config_headers in *"
46212 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
46216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46217 # Files that config.status was made for.
46218 config_files="$ac_config_files"
46219 config_headers="$ac_config_headers"
46220 config_commands="$ac_config_commands"
46224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
46226 \`$as_me' instantiates files from templates according to the
46227 current configuration.
46229 Usage: $0 [OPTION]... [FILE]...
46231 -h, --help print this help, then exit
46232 -V, --version print version number and configuration settings, then exit
46233 -q, --quiet, --silent
46234 do not print progress messages
46235 -d, --debug don't remove temporary files
46236 --recheck update $as_me by reconfiguring in the same conditions
46237 --file=FILE[:TEMPLATE]
46238 instantiate the configuration file FILE
46239 --header=FILE[:TEMPLATE]
46240 instantiate the configuration header FILE
46242 Configuration files:
46245 Configuration headers:
46248 Configuration commands:
46251 Report bugs to <bug-autoconf@gnu.org>."
46254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46256 zfs config.status 0.7.6
46257 configured by $0, generated by GNU Autoconf 2.63,
46258 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46260 Copyright (C) 2008 Free Software Foundation, Inc.
46261 This config.status script is free software; the Free Software Foundation
46262 gives unlimited permission to copy, distribute and modify it."
46269 test -n "\$AWK" || AWK=awk
46272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
46273 # The default lists apply if the user does not specify any file.
46279 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
46280 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
46291 # Handling of the options.
46292 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
46294 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
46295 $as_echo "$ac_cs_version"; exit ;;
46296 --debug |
--debu |
--deb |
--de |
--d |
-d )
46298 --file |
--fil |
--fi |
--f )
46301 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46303 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
46304 ac_need_defaults
=false
;;
46305 --header |
--heade |
--head |
--hea )
46308 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46310 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
46311 ac_need_defaults
=false
;;
46313 # Conflict between --help and --header
46314 { $as_echo "$as_me: error: ambiguous option: $1
46315 Try \`$0 --help' for more information." >&2
46316 { (exit 1); exit 1; }; };;
46317 --help |
--hel |
-h )
46318 $as_echo "$ac_cs_usage"; exit ;;
46319 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
46320 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
46323 # This is an error.
46324 -*) { $as_echo "$as_me: error: unrecognized option: $1
46325 Try \`$0 --help' for more information." >&2
46326 { (exit 1); exit 1; }; } ;;
46328 *) ac_config_targets
="$ac_config_targets $1"
46329 ac_need_defaults
=false
;;
46335 ac_configure_extra_args
=
46337 if $ac_cs_silent; then
46339 ac_configure_extra_args
="$ac_configure_extra_args --silent"
46343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46344 if \$ac_cs_recheck; then
46345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46348 CONFIG_SHELL='$SHELL'
46349 export CONFIG_SHELL
46354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
46358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46359 ## Running $as_me. ##
46365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46369 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46372 # The HP-UX ksh and POSIX shell print the target directory to stdout
46373 # if CDPATH is set.
46374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46376 sed_quote_subst='$sed_quote_subst'
46377 double_quote_subst='$double_quote_subst'
46378 delay_variable_subst='$delay_variable_subst'
46379 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46380 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46381 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46382 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46383 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46384 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46385 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46386 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46387 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46388 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46389 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46390 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46391 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46392 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46393 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46394 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46395 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46396 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46397 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46398 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46399 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46400 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46401 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46402 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46403 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46404 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46405 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46406 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46407 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46408 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46409 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46410 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46411 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46412 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46413 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46414 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46415 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46416 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46417 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46418 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46419 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46420 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46421 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46422 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46423 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"`'
46424 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"`'
46425 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46426 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46427 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46428 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46429 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46430 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46431 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46432 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46433 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46434 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46435 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46436 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46437 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46438 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46439 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46440 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46441 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46442 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46443 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46444 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46445 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46446 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46447 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46448 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46449 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46450 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46451 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46452 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46453 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46454 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46455 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46456 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46457 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46458 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46459 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46460 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46461 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46462 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46463 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46464 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46465 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46466 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46467 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46468 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46469 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46470 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46471 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46472 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46473 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46474 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46475 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46476 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46477 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46478 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46479 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46480 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46481 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46482 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46483 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46484 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46485 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46486 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46487 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46488 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46489 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46490 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46491 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46492 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46493 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46494 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46495 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46496 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46499 LTCFLAGS='$LTCFLAGS'
46500 compiler='$compiler_DEFAULT'
46502 # Quote evaled strings.
46514 deplibs_check_method \
46523 lt_cv_sys_global_symbol_pipe \
46524 lt_cv_sys_global_symbol_to_cdecl \
46525 lt_cv_sys_global_symbol_to_c_name_address \
46526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46529 lt_prog_compiler_no_builtin_flag \
46530 lt_prog_compiler_wl \
46531 lt_prog_compiler_pic \
46532 lt_prog_compiler_static \
46533 lt_cv_prog_compiler_c_o \
46541 export_dynamic_flag_spec \
46542 whole_archive_flag_spec \
46543 compiler_needs_object \
46545 allow_undefined_flag \
46546 no_undefined_flag \
46547 hardcode_libdir_flag_spec \
46548 hardcode_libdir_flag_spec_ld \
46549 hardcode_libdir_separator \
46554 variables_saved_for_relink \
46556 library_names_spec \
46561 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46562 *[\\\\\\\`\\"\\\$]*)
46563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
46566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46571 # Double-quote double-evaled strings.
46572 for var in reload_cmds \
46573 old_postinstall_cmds \
46574 old_postuninstall_cmds \
46576 extract_expsyms_cmds \
46577 old_archive_from_new_cmds \
46578 old_archive_from_expsyms_cmds \
46580 archive_expsym_cmds \
46582 module_expsym_cmds \
46583 export_symbols_cmds \
46586 postuninstall_cmds \
46588 sys_lib_search_path_spec \
46589 sys_lib_dlsearch_path_spec; do
46590 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
46591 *[\\\\\\\`\\"\\\$]*)
46592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
46595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46600 # Fix-up fallback echo if it was mangled by the above quoting rules.
46602 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
46606 ac_aux_dir='$ac_aux_dir'
46607 xsi_shell='$xsi_shell'
46608 lt_shell_append='$lt_shell_append'
46610 # See if we are running on zsh, and set the options which allow our
46611 # commands through without removal of \ escapes INIT.
46612 if test -n "\${ZSH_VERSION+set}" ; then
46613 setopt NO_GLOB_SUBST
46619 TIMESTAMP='$TIMESTAMP'
46628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
46630 # Handling of arguments.
46631 for ac_config_target
in $ac_config_targets
46633 case $ac_config_target in
46634 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
46635 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
46636 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
46637 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
46638 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
46639 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
46640 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
46641 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
46642 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
46643 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
46644 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
46645 "etc/sudoers.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/sudoers.d/Makefile" ;;
46646 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
46647 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
46648 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
46649 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
46650 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
46651 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
46652 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
46653 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
46654 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
46655 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
46656 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
46657 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
46658 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
46659 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
46660 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
46661 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
46662 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
46663 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
46664 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
46665 "lib/libicp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libicp/Makefile" ;;
46666 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
46667 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
46668 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
46669 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
46670 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
46671 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
46672 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
46673 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
46674 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
46675 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
46676 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
46677 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
46678 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
46679 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
46680 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
46681 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
46682 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
46683 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
46684 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
46685 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
46686 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
46687 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
46688 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
46689 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
46690 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
46691 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
46692 "cmd/raidz_test/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/raidz_test/Makefile" ;;
46693 "cmd/zgenhostid/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zgenhostid/Makefile" ;;
46694 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
46695 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
46696 "contrib/dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/Makefile" ;;
46697 "contrib/dracut/02zfsexpandknowledge/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/02zfsexpandknowledge/Makefile" ;;
46698 "contrib/dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
46699 "contrib/initramfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/initramfs/Makefile" ;;
46700 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
46701 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
46702 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
46703 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
46704 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
46705 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
46706 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
46707 "module/icp/Makefile") CONFIG_FILES
="$CONFIG_FILES module/icp/Makefile" ;;
46708 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
46709 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
46710 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
46711 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
46712 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
46713 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
46714 "include/sys/crypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/crypto/Makefile" ;;
46715 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
46716 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
46717 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
46718 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
46719 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
46720 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
46721 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
46722 "tests/test-runner/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/test-runner/Makefile" ;;
46723 "tests/test-runner/cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/test-runner/cmd/Makefile" ;;
46724 "tests/test-runner/include/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/test-runner/include/Makefile" ;;
46725 "tests/test-runner/man/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/test-runner/man/Makefile" ;;
46726 "tests/runfiles/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/runfiles/Makefile" ;;
46727 "tests/zfs-tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/Makefile" ;;
46728 "tests/zfs-tests/callbacks/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/callbacks/Makefile" ;;
46729 "tests/zfs-tests/cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/Makefile" ;;
46730 "tests/zfs-tests/cmd/chg_usr_exec/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/chg_usr_exec/Makefile" ;;
46731 "tests/zfs-tests/cmd/devname2devid/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/devname2devid/Makefile" ;;
46732 "tests/zfs-tests/cmd/dir_rd_update/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/dir_rd_update/Makefile" ;;
46733 "tests/zfs-tests/cmd/file_check/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/file_check/Makefile" ;;
46734 "tests/zfs-tests/cmd/file_trunc/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/file_trunc/Makefile" ;;
46735 "tests/zfs-tests/cmd/file_write/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/file_write/Makefile" ;;
46736 "tests/zfs-tests/cmd/largest_file/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/largest_file/Makefile" ;;
46737 "tests/zfs-tests/cmd/mkbusy/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mkbusy/Makefile" ;;
46738 "tests/zfs-tests/cmd/mkfile/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mkfile/Makefile" ;;
46739 "tests/zfs-tests/cmd/mkfiles/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mkfiles/Makefile" ;;
46740 "tests/zfs-tests/cmd/mktree/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mktree/Makefile" ;;
46741 "tests/zfs-tests/cmd/mmap_exec/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mmap_exec/Makefile" ;;
46742 "tests/zfs-tests/cmd/mmapwrite/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/mmapwrite/Makefile" ;;
46743 "tests/zfs-tests/cmd/randfree_file/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/randfree_file/Makefile" ;;
46744 "tests/zfs-tests/cmd/readmmap/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/readmmap/Makefile" ;;
46745 "tests/zfs-tests/cmd/rename_dir/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/rename_dir/Makefile" ;;
46746 "tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile" ;;
46747 "tests/zfs-tests/cmd/threadsappend/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/threadsappend/Makefile" ;;
46748 "tests/zfs-tests/cmd/xattrtest/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/cmd/xattrtest/Makefile" ;;
46749 "tests/zfs-tests/include/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/include/Makefile" ;;
46750 "tests/zfs-tests/include/default.cfg") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/include/default.cfg" ;;
46751 "tests/zfs-tests/tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/Makefile" ;;
46752 "tests/zfs-tests/tests/functional/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/Makefile" ;;
46753 "tests/zfs-tests/tests/functional/acl/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/Makefile" ;;
46754 "tests/zfs-tests/tests/functional/acl/posix/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/acl/posix/Makefile" ;;
46755 "tests/zfs-tests/tests/functional/atime/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/atime/Makefile" ;;
46756 "tests/zfs-tests/tests/functional/bootfs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/bootfs/Makefile" ;;
46757 "tests/zfs-tests/tests/functional/cache/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cache/Makefile" ;;
46758 "tests/zfs-tests/tests/functional/cachefile/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cachefile/Makefile" ;;
46759 "tests/zfs-tests/tests/functional/casenorm/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/casenorm/Makefile" ;;
46760 "tests/zfs-tests/tests/functional/checksum/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/checksum/Makefile" ;;
46761 "tests/zfs-tests/tests/functional/chattr/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/chattr/Makefile" ;;
46762 "tests/zfs-tests/tests/functional/clean_mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/clean_mirror/Makefile" ;;
46763 "tests/zfs-tests/tests/functional/cli_root/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/Makefile" ;;
46764 "tests/zfs-tests/tests/functional/cli_root/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zdb/Makefile" ;;
46765 "tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_clone/Makefile" ;;
46766 "tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_copies/Makefile" ;;
46767 "tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_create/Makefile" ;;
46768 "tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_destroy/Makefile" ;;
46769 "tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_get/Makefile" ;;
46770 "tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_inherit/Makefile" ;;
46771 "tests/zfs-tests/tests/functional/cli_root/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs/Makefile" ;;
46772 "tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_mount/Makefile" ;;
46773 "tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_promote/Makefile" ;;
46774 "tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_property/Makefile" ;;
46775 "tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_receive/Makefile" ;;
46776 "tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rename/Makefile" ;;
46777 "tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_reservation/Makefile" ;;
46778 "tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_rollback/Makefile" ;;
46779 "tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_send/Makefile" ;;
46780 "tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_set/Makefile" ;;
46781 "tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_share/Makefile" ;;
46782 "tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_snapshot/Makefile" ;;
46783 "tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unmount/Makefile" ;;
46784 "tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_unshare/Makefile" ;;
46785 "tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zfs_upgrade/Makefile" ;;
46786 "tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_add/Makefile" ;;
46787 "tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_attach/Makefile" ;;
46788 "tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_clear/Makefile" ;;
46789 "tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_create/Makefile" ;;
46790 "tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_destroy/Makefile" ;;
46791 "tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_detach/Makefile" ;;
46792 "tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_expand/Makefile" ;;
46793 "tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_export/Makefile" ;;
46794 "tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_get/Makefile" ;;
46795 "tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_history/Makefile" ;;
46796 "tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_import/Makefile" ;;
46797 "tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/Makefile" ;;
46798 "tests/zfs-tests/tests/functional/cli_root/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool/Makefile" ;;
46799 "tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_offline/Makefile" ;;
46800 "tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_online/Makefile" ;;
46801 "tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_remove/Makefile" ;;
46802 "tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_replace/Makefile" ;;
46803 "tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_scrub/Makefile" ;;
46804 "tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_set/Makefile" ;;
46805 "tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_status/Makefile" ;;
46806 "tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_sync/Makefile" ;;
46807 "tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_root/zpool_upgrade/Makefile" ;;
46808 "tests/zfs-tests/tests/functional/cli_user/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/Makefile" ;;
46809 "tests/zfs-tests/tests/functional/cli_user/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/misc/Makefile" ;;
46810 "tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zfs_list/Makefile" ;;
46811 "tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_iostat/Makefile" ;;
46812 "tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/cli_user/zpool_list/Makefile" ;;
46813 "tests/zfs-tests/tests/functional/compression/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/compression/Makefile" ;;
46814 "tests/zfs-tests/tests/functional/ctime/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/ctime/Makefile" ;;
46815 "tests/zfs-tests/tests/functional/delegate/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/delegate/Makefile" ;;
46816 "tests/zfs-tests/tests/functional/devices/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/devices/Makefile" ;;
46817 "tests/zfs-tests/tests/functional/events/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/events/Makefile" ;;
46818 "tests/zfs-tests/tests/functional/exec/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/exec/Makefile" ;;
46819 "tests/zfs-tests/tests/functional/fault/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/fault/Makefile" ;;
46820 "tests/zfs-tests/tests/functional/features/async_destroy/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/features/async_destroy/Makefile" ;;
46821 "tests/zfs-tests/tests/functional/features/large_dnode/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/features/large_dnode/Makefile" ;;
46822 "tests/zfs-tests/tests/functional/features/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/features/Makefile" ;;
46823 "tests/zfs-tests/tests/functional/grow_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_pool/Makefile" ;;
46824 "tests/zfs-tests/tests/functional/grow_replicas/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/grow_replicas/Makefile" ;;
46825 "tests/zfs-tests/tests/functional/history/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/history/Makefile" ;;
46826 "tests/zfs-tests/tests/functional/inheritance/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/inheritance/Makefile" ;;
46827 "tests/zfs-tests/tests/functional/inuse/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/inuse/Makefile" ;;
46828 "tests/zfs-tests/tests/functional/large_files/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/large_files/Makefile" ;;
46829 "tests/zfs-tests/tests/functional/largest_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/largest_pool/Makefile" ;;
46830 "tests/zfs-tests/tests/functional/link_count/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/link_count/Makefile" ;;
46831 "tests/zfs-tests/tests/functional/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/libzfs/Makefile" ;;
46832 "tests/zfs-tests/tests/functional/migration/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/migration/Makefile" ;;
46833 "tests/zfs-tests/tests/functional/mmap/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/mmap/Makefile" ;;
46834 "tests/zfs-tests/tests/functional/mmp/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/mmp/Makefile" ;;
46835 "tests/zfs-tests/tests/functional/mount/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/mount/Makefile" ;;
46836 "tests/zfs-tests/tests/functional/mv_files/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/mv_files/Makefile" ;;
46837 "tests/zfs-tests/tests/functional/nestedfs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/nestedfs/Makefile" ;;
46838 "tests/zfs-tests/tests/functional/no_space/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/no_space/Makefile" ;;
46839 "tests/zfs-tests/tests/functional/nopwrite/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/nopwrite/Makefile" ;;
46840 "tests/zfs-tests/tests/functional/online_offline/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/online_offline/Makefile" ;;
46841 "tests/zfs-tests/tests/functional/pool_names/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/pool_names/Makefile" ;;
46842 "tests/zfs-tests/tests/functional/poolversion/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/poolversion/Makefile" ;;
46843 "tests/zfs-tests/tests/functional/privilege/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/privilege/Makefile" ;;
46844 "tests/zfs-tests/tests/functional/quota/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/quota/Makefile" ;;
46845 "tests/zfs-tests/tests/functional/raidz/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/raidz/Makefile" ;;
46846 "tests/zfs-tests/tests/functional/redundancy/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/redundancy/Makefile" ;;
46847 "tests/zfs-tests/tests/functional/refquota/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/refquota/Makefile" ;;
46848 "tests/zfs-tests/tests/functional/refreserv/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/refreserv/Makefile" ;;
46849 "tests/zfs-tests/tests/functional/rename_dirs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/rename_dirs/Makefile" ;;
46850 "tests/zfs-tests/tests/functional/replacement/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/replacement/Makefile" ;;
46851 "tests/zfs-tests/tests/functional/reservation/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/reservation/Makefile" ;;
46852 "tests/zfs-tests/tests/functional/rootpool/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/rootpool/Makefile" ;;
46853 "tests/zfs-tests/tests/functional/rsend/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/rsend/Makefile" ;;
46854 "tests/zfs-tests/tests/functional/scrub_mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/scrub_mirror/Makefile" ;;
46855 "tests/zfs-tests/tests/functional/slog/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/slog/Makefile" ;;
46856 "tests/zfs-tests/tests/functional/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/snapshot/Makefile" ;;
46857 "tests/zfs-tests/tests/functional/snapused/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/snapused/Makefile" ;;
46858 "tests/zfs-tests/tests/functional/sparse/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/sparse/Makefile" ;;
46859 "tests/zfs-tests/tests/functional/threadsappend/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/threadsappend/Makefile" ;;
46860 "tests/zfs-tests/tests/functional/tmpfile/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/tmpfile/Makefile" ;;
46861 "tests/zfs-tests/tests/functional/truncate/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/truncate/Makefile" ;;
46862 "tests/zfs-tests/tests/functional/userquota/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/userquota/Makefile" ;;
46863 "tests/zfs-tests/tests/functional/upgrade/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/upgrade/Makefile" ;;
46864 "tests/zfs-tests/tests/functional/vdev_zaps/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/vdev_zaps/Makefile" ;;
46865 "tests/zfs-tests/tests/functional/write_dirs/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/write_dirs/Makefile" ;;
46866 "tests/zfs-tests/tests/functional/xattr/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/xattr/Makefile" ;;
46867 "tests/zfs-tests/tests/functional/zvol/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/Makefile" ;;
46868 "tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_cli/Makefile" ;;
46869 "tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_ENOSPC/Makefile" ;;
46870 "tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile" ;;
46871 "tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/functional/zvol/zvol_swap/Makefile" ;;
46872 "tests/zfs-tests/tests/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/perf/Makefile" ;;
46873 "tests/zfs-tests/tests/perf/fio/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/perf/fio/Makefile" ;;
46874 "tests/zfs-tests/tests/perf/regression/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/perf/regression/Makefile" ;;
46875 "tests/zfs-tests/tests/perf/scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/perf/scripts/Makefile" ;;
46876 "tests/zfs-tests/tests/stress/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/zfs-tests/tests/stress/Makefile" ;;
46877 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
46878 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
46879 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
46880 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
46881 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
46882 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
46883 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
46884 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
46885 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
46886 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
46887 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
46889 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
46890 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
46891 { (exit 1); exit 1; }; };;
46896 # If the user did not use the arguments to specify the items to instantiate,
46897 # then the envvar interface is used. Set only those that are not.
46898 # We use the long form for the default assignment because of an extremely
46899 # bizarre bug on SunOS 4.1.3.
46900 if $ac_need_defaults; then
46901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
46902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
46903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
46906 # Have a temporary directory for convenience. Make it in the build tree
46907 # simply because there is no reason against having it here, and in addition,
46908 # creating and moving files from /tmp can sometimes cause problems.
46909 # Hook for its removal unless debugging.
46910 # Note that there is a small window in which the directory will not be cleaned:
46911 # after its creation but before its name has been assigned to `$tmp'.
46915 trap 'exit_status=$?
46916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
46918 trap '{ (exit 1); exit 1; }' 1 2 13 15
46920 # Create a (secure) tmp directory for tmp files.
46923 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46924 test -n "$tmp" && test -d "$tmp"
46927 tmp
=.
/conf$$
-$RANDOM
46928 (umask 077 && mkdir
"$tmp")
46931 $as_echo "$as_me: cannot create a temporary directory in ." >&2
46932 { (exit 1); exit 1; }
46935 # Set up the scripts for CONFIG_FILES section.
46936 # No need to generate them if there are no CONFIG_FILES.
46937 # This happens for instance with `./config.status config.h'.
46938 if test -n "$CONFIG_FILES"; then
46942 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46943 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46946 ac_cs_awk_cr
=$ac_cr
46949 echo 'BEGIN {' >"$tmp/subs1.awk" &&
46954 echo "cat >conf$$subs.awk <<_ACEOF" &&
46955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46957 } >conf$$subs.sh ||
46958 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
46959 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
46960 { (exit 1); exit 1; }; }
46961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
46963 for ac_last_try in false false false false false :; do
46964 . ./conf$$subs.sh ||
46965 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
46966 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
46967 { (exit 1); exit 1; }; }
46969 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
46970 if test $ac_delim_n = $ac_delim_num; then
46972 elif $ac_last_try; then
46973 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
46974 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
46975 { (exit 1); exit 1; }; }
46977 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
46980 rm -f conf$$subs.sh
46982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46983 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
46987 s/^/S["/; s
/!.
*/"]=/
46997 s/\(.\{148\}\).*/\1/
46999 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
47004 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
47011 s/\(.\{148\}\).*/\1/
47013 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
47017 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
47022 ' <conf$$subs.awk | sed '
47027 ' >>$CONFIG_STATUS || ac_write_fail=1
47028 rm -f conf$$subs.awk
47029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47031 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
47032 for (key in S) S_is_set[key] = 1
47038 nfields = split(line, field, "@
")
47040 len = length(field[1])
47041 for (i = 2; i < nfields; i++) {
47043 keylen = length(key)
47044 if (S_is_set[key]) {
47046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47047 len += length(value) + length(field[++i])
47058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47059 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47060 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
47063 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
47064 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
47065 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
47066 { (exit 1); exit 1; }; }
47069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
47070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
47071 # trailing colons and then remove the whole line if VPATH becomes empty
47072 # (actually we leave an empty line to preserve line numbers).
47073 if test "x
$srcdir" = x.; then
47074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47075 s/:*\$(srcdir):*/:/
47076 s/:*\${srcdir}:*/:/
47078 s/^\([^=]*=[ ]*\):*/\1/
47084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47085 fi # test -n "$CONFIG_FILES"
47087 # Set up the scripts for CONFIG_HEADERS section.
47088 # No need to generate them if there are no CONFIG_HEADERS.
47089 # This happens for instance with `./config.status Makefile'.
47090 if test -n "$CONFIG_HEADERS"; then
47091 cat >"$tmp/defines.
awk" <<\_ACAWK ||
47095 # Transform confdefs.h into an awk script `defines.awk', embedded as
47096 # here-document in config.status, that substitutes the proper values into
47097 # config.h.in to produce config.h.
47099 # Create a delimiter string that does not exist in confdefs.h, to ease
47100 # handling of long lines.
47102 for ac_last_try in false false :; do
47103 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
47104 if test -z "$ac_t"; then
47106 elif $ac_last_try; then
47107 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
47108 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
47109 { (exit 1); exit 1; }; }
47111 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
47115 # For the awk script, D is an array of macro values keyed by name,
47116 # likewise P contains macro parameters if any. Preserve backslash
47117 # newline sequences.
47119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47121 s/.\{148\}/&'"$ac_delim"'/g
47124 s/^[ ]*#[ ]*define[ ][ ]*/ /
47131 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
47133 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
47137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
47138 D["\
1"]=" \
3\\\\\\n
"\\/p
47140 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
47145 s/.\{148\}/&'"$ac_delim"'/g
47150 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
47153 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
47155 ' <confdefs.h | sed '
47156 s/'"$ac_delim"'/"\\\
47157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47160 for (key in D) D_is_set[key] = 1
47163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47165 split(line, arg, " ")
47166 if (arg[1] == "#") {
47170 defundef
= substr
(arg
[1], 2)
47173 split(mac1
, mac2
, "(") #)
47175 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
47176 if (D_is_set
[macro
]) {
47177 # Preserve the white space surrounding the "#".
47178 print prefix
"define", macro P
[macro
] D
[macro
]
47181 # Replace #undef with comments. This is necessary, for example,
47182 # in the case of _POSIX_SOURCE, which is predefined and required
47183 # on some systems where configure will not decide to define it.
47184 if (defundef
== "undef") {
47185 print
"/*", prefix defundef
, macro
, "*/"
47193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
47194 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47195 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47196 { (exit 1); exit 1; }; }
47197 fi # test -n "$CONFIG_HEADERS"
47200 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47205 :[FHLC
]) ac_mode
=$ac_tag; continue;;
47207 case $ac_mode$ac_tag in
47209 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47210 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47211 { (exit 1); exit 1; }; };;
47212 :[FH
]-) ac_tag
=-:-;;
47213 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
47230 -) ac_f
="$tmp/stdin";;
47231 *) # Look for the file first in the build tree, then in the source tree
47232 # (if the path is not absolute). The absolute path cannot be DOS-style,
47233 # because $ac_f cannot contain `:'.
47237 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
47239 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47240 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47241 { (exit 1); exit 1; }; };;
47243 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47244 ac_file_inputs
="$ac_file_inputs '$ac_f'"
47247 # Let's still pretend it is `configure' which instantiates (i.e., don't
47248 # use $as_me), people would be surprised to read:
47249 # /* config.h. Generated by config.status. */
47250 configure_input
='Generated from '`
47251 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47253 if test x
"$ac_file" != x-
; then
47254 configure_input
="$ac_file. $configure_input"
47255 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47256 $as_echo "$as_me: creating $ac_file" >&6;}
47258 # Neutralize special characters interpreted by sed in replacement strings.
47259 case $configure_input in #(
47260 *\
&* |
*\|
* |
*\\* )
47261 ac_sed_conf_input
=`$as_echo "$configure_input" |
47262 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47263 *) ac_sed_conf_input
=$configure_input;;
47267 *:-:* |
*:-) cat >"$tmp/stdin" \
47268 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47269 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47270 { (exit 1); exit 1; }; } ;;
47275 ac_dir
=`$as_dirname -- "$ac_file" ||
47276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47277 X"$ac_file" : 'X\(//\)[^/]' \| \
47278 X"$ac_file" : 'X\(//\)$' \| \
47279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47280 $as_echo X"$ac_file" |
47281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47285 /^X\(\/\/\)[^/].*/{
47300 -*) as_dir
=.
/$as_dir;;
47302 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
47306 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47307 *) as_qdir
=$as_dir;;
47309 as_dirs
="'$as_qdir' $as_dirs"
47310 as_dir
=`$as_dirname -- "$as_dir" ||
47311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47312 X"$as_dir" : 'X\(//\)[^/]' \| \
47313 X"$as_dir" : 'X\(//\)$' \| \
47314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47315 $as_echo X"$as_dir" |
47316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47320 /^X\(\/\/\)[^/].*/{
47333 test -d "$as_dir" && break
47335 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
47336 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47337 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47338 { (exit 1); exit 1; }; }; }
47342 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
47344 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47345 # A ".." for each directory in $ac_dir_suffix.
47346 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47347 case $ac_top_builddir_sub in
47348 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
47349 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
47352 ac_abs_top_builddir
=$ac_pwd
47353 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
47354 # for backward compatibility:
47355 ac_top_builddir
=$ac_top_build_prefix
47358 .
) # We are building in place.
47360 ac_top_srcdir
=$ac_top_builddir_sub
47361 ac_abs_top_srcdir
=$ac_pwd ;;
47362 [\\/]* | ?
:[\\/]* ) # Absolute name.
47363 ac_srcdir
=$srcdir$ac_dir_suffix;
47364 ac_top_srcdir
=$srcdir
47365 ac_abs_top_srcdir
=$srcdir ;;
47366 *) # Relative name.
47367 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
47368 ac_top_srcdir
=$ac_top_build_prefix$srcdir
47369 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
47371 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
47381 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
47382 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
47384 ac_MKDIR_P
=$MKDIR_P
47386 [\\/$
]* | ?
:[\\/]* ) ;;
47387 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
47391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
47392 # If the template does not know about datarootdir, expand it.
47393 # FIXME: This hack should be removed a few years after 2.60.
47394 ac_datarootdir_hack
=; ac_datarootdir_seen
=
47407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47408 *datarootdir
*) ac_datarootdir_seen
=yes;;
47409 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
47410 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47414 ac_datarootdir_hack='
47415 s&@datadir@&$datadir&g
47416 s&@docdir@&$docdir&g
47417 s&@infodir@&$infodir&g
47418 s&@localedir@&$localedir&g
47419 s&@mandir@&$mandir&g
47420 s&\\\${datarootdir}&$datarootdir&g' ;;
47424 # Neutralize VPATH when `$srcdir' = `.'.
47425 # Shell code in configure.ac might set extrasub.
47426 # FIXME: do we really want to maintain this feature?
47427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47428 ac_sed_extra="$ac_vpsub
47431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
47433 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
47434 s|@configure_input@|
$ac_sed_conf_input|
;t t
47435 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
47436 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
47437 s
&@srcdir@
&$ac_srcdir&;t t
47438 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
47439 s
&@top_srcdir@
&$ac_top_srcdir&;t t
47440 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
47441 s
&@builddir@
&$ac_builddir&;t t
47442 s
&@abs_builddir@
&$ac_abs_builddir&;t t
47443 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
47444 s
&@INSTALL@
&$ac_INSTALL&;t t
47445 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
47446 $ac_datarootdir_hack
47448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
47449 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
47450 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
47451 { (exit 1); exit 1; }; }
47453 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47454 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
47455 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
47456 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
47457 which seems to be undefined. Please make sure it is defined." >&5
47458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
47459 which seems to be undefined. Please make sure it is defined." >&2;}
47463 -) cat "$tmp/out" && rm -f "$tmp/out";;
47464 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47466 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47467 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47468 { (exit 1); exit 1; }; }
47474 if test x"$ac_file" != x-; then
47476 $as_echo "/* $configure_input */" \
47477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47478 } >"$tmp/config.h" \
47479 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47480 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47481 { (exit 1); exit 1; }; }
47482 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47483 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
47487 mv "$tmp/config.h" "$ac_file" \
47488 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
47490 { (exit 1); exit 1; }; }
47493 $as_echo "/* $configure_input */" \
47494 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47495 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47496 $as_echo "$as_me: error: could not create -" >&2;}
47497 { (exit 1); exit 1; }; }
47499 # Compute "$ac_file"'s index
in $config_headers.
47502 for _am_header
in $config_headers :; do
47503 case $_am_header in
47504 $_am_arg |
$_am_arg:* )
47507 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
47510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47512 X"$_am_arg" : 'X\(//\)[^/]' \| \
47513 X"$_am_arg" : 'X\(//\)$' \| \
47514 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47515 $as_echo X"$_am_arg" |
47516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47520 /^X\(\/\/\)[^/].*/{
47532 s/.*/./; q'`/stamp-h
$_am_stamp_count
47535 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47536 $as_echo "$as_me: executing $ac_file commands" >&6;}
47541 case $ac_file$ac_mode in
47543 (mv zfs_config.h zfs_config.h.tmp
&&
47544 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
47545 rm zfs_config.h.tmp
) ||
exit 1 ;;
47546 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
47547 # Autoconf 2.62 quotes --file arguments for eval, but not when files
47548 # are listed without --file. Let's play safe and only enable the eval
47549 # if we detect the quoting.
47550 case $CONFIG_FILES in
47551 *\'*) eval set x
"$CONFIG_FILES" ;;
47552 *) set x
$CONFIG_FILES ;;
47557 # Strip MF so we end up with the name of the file.
47558 mf
=`echo "$mf" | sed -e 's/:.*$//'`
47559 # Check whether this is an Automake generated Makefile or not.
47560 # We used to match only the files named `Makefile.in', but
47561 # some people rename them; so instead we look at the file content.
47562 # Grep'ing the first line is not enough: some people post-process
47563 # each Makefile.in and add a new line on top of each file to say so.
47564 # Grep'ing the whole file is not good either: AIX grep has a line
47565 # limit of 2048, but all sed's we know have understand at least 4000.
47566 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
47567 dirpart
=`$as_dirname -- "$mf" ||
47568 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47569 X"$mf" : 'X\(//\)[^/]' \| \
47570 X"$mf" : 'X\(//\)$' \| \
47571 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47577 /^X\(\/\/\)[^/].*/{
47593 # Extract the definition of DEPDIR, am__include, and am__quote
47594 # from the Makefile without running `make'.
47595 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
47596 test -z "$DEPDIR" && continue
47597 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
47598 test -z "am__include" && continue
47599 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
47600 # When using ansi2knr, U may be empty or an underscore; expand it
47601 U
=`sed -n 's/^U = //p' < "$mf"`
47602 # Find all dependency output files, they are included files with
47603 # $(DEPDIR) in their names. We invoke sed twice because it is the
47604 # simplest approach to changing $(DEPDIR) to its actual value in the
47606 for file in `sed -n "
47607 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
47608 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
47609 # Make sure the directory exists.
47610 test -f "$dirpart/$file" && continue
47611 fdir
=`$as_dirname -- "$file" ||
47612 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47613 X"$file" : 'X\(//\)[^/]' \| \
47614 X"$file" : 'X\(//\)$' \| \
47615 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
47616 $as_echo X"$file" |
47617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47621 /^X\(\/\/\)[^/].*/{
47634 { as_dir
=$dirpart/$fdir
47636 -*) as_dir
=.
/$as_dir;;
47638 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
47642 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47643 *) as_qdir
=$as_dir;;
47645 as_dirs
="'$as_qdir' $as_dirs"
47646 as_dir
=`$as_dirname -- "$as_dir" ||
47647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47648 X"$as_dir" : 'X\(//\)[^/]' \| \
47649 X"$as_dir" : 'X\(//\)$' \| \
47650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47651 $as_echo X"$as_dir" |
47652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47656 /^X\(\/\/\)[^/].*/{
47669 test -d "$as_dir" && break
47671 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
47672 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47673 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47674 { (exit 1); exit 1; }; }; }
47675 # echo "creating $dirpart/$file"
47676 echo '# dummy' > "$dirpart/$file"
47683 # See if we are running on zsh, and set the options which allow our
47684 # commands through without removal of \ escapes.
47685 if test -n "${ZSH_VERSION+set}" ; then
47686 setopt NO_GLOB_SUBST
47689 cfgfile
="${ofile}T"
47690 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47693 cat <<_LT_EOF >> "$cfgfile"
47696 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
47697 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
47698 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47699 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47701 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
47702 # 2006, 2007, 2008 Free Software Foundation, Inc.
47703 # Written by Gordon Matzigkeit, 1996
47705 # This file is part of GNU Libtool.
47707 # GNU Libtool is free software; you can redistribute it and/or
47708 # modify it under the terms of the GNU General Public License as
47709 # published by the Free Software Foundation; either version 2 of
47710 # the License, or (at your option) any later version.
47712 # As a special exception to the GNU General Public License,
47713 # if you distribute this file as part of a program or library that
47714 # is built using GNU Libtool, you may include this file under the
47715 # same distribution terms that you use for the rest of that program.
47717 # GNU Libtool is distributed in the hope that it will be useful,
47718 # but WITHOUT ANY WARRANTY; without even the implied warranty of
47719 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47720 # GNU General Public License for more details.
47722 # You should have received a copy of the GNU General Public License
47723 # along with GNU Libtool; see the file COPYING. If not, a copy
47724 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
47725 # obtained by writing to the Free Software Foundation, Inc.,
47726 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
47729 # The names of the tagged configurations supported by this script.
47732 # ### BEGIN LIBTOOL CONFIG
47734 # Which release of libtool.m4 was used?
47735 macro_version=$macro_version
47736 macro_revision=$macro_revision
47738 # Whether or not to build shared libraries.
47739 build_libtool_libs=$enable_shared
47741 # Whether or not to build static libraries.
47742 build_old_libs=$enable_static
47744 # What type of objects to build.
47747 # Whether or not to optimize for fast installation.
47748 fast_install=$enable_fast_install
47751 host_alias=$host_alias
47755 # The build system.
47756 build_alias=$build_alias
47760 # A sed program that does not truncate output.
47763 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47764 Xsed="\$SED -e 1s/^X//"
47766 # A grep program that handles long lines.
47772 # A literal string matcher.
47775 # A BSD- or MS-compatible name lister.
47778 # Whether we need soft or hard links.
47781 # What is the maximum length of a command?
47782 max_cmd_len=$max_cmd_len
47784 # Object file suffix (normally "o").
47787 # Executable file suffix (normally "").
47790 # whether the shell understands "unset".
47793 # turn spaces into newlines.
47796 # turn newlines into spaces.
47799 # How to create reloadable object files.
47800 reload_flag=$lt_reload_flag
47801 reload_cmds=$lt_reload_cmds
47803 # An object symbol dumper.
47804 OBJDUMP=$lt_OBJDUMP
47806 # Method to check whether dependent libraries are shared objects.
47807 deplibs_check_method=$lt_deplibs_check_method
47809 # Command to use when deplibs_check_method == "file_magic".
47810 file_magic_cmd=$lt_file_magic_cmd
47814 AR_FLAGS=$lt_AR_FLAGS
47816 # A symbol stripping program.
47819 # Commands used to install an old-style archive.
47821 old_postinstall_cmds=$lt_old_postinstall_cmds
47822 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47827 # LTCC compiler flags.
47828 LTCFLAGS=$lt_CFLAGS
47830 # Take the output of nm and produce a listing of raw symbols and C names.
47831 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47833 # Transform the output of nm in a proper C declaration.
47834 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47836 # Transform the output of nm in a C name address pair.
47837 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47839 # Transform the output of nm in a C name address pair when lib prefix is needed.
47840 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47842 # The name of the directory that contains temporary libtool files.
47845 # Shell to use when invoking shell scripts.
47848 # An echo program that does not interpret backslashes.
47851 # Used to examine libraries when file_magic_cmd begins with "file".
47852 MAGIC_CMD=$MAGIC_CMD
47854 # Must we lock files when doing compilation?
47855 need_locks=$lt_need_locks
47857 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47858 DSYMUTIL=$lt_DSYMUTIL
47860 # Tool to change global to local symbols on Mac OS X.
47863 # Tool to manipulate fat objects and archives on Mac OS X.
47866 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47869 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47870 OTOOL64=$lt_OTOOL64
47872 # Old archive suffix (normally "a").
47875 # Shared library suffix (normally ".so").
47876 shrext_cmds=$lt_shrext_cmds
47878 # The commands to extract the exported symbol list from a shared archive.
47879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47881 # Variables whose values should be saved in libtool wrapper scripts and
47882 # restored at link time.
47883 variables_saved_for_relink=$lt_variables_saved_for_relink
47885 # Do we need the "lib" prefix for modules?
47886 need_lib_prefix=$need_lib_prefix
47888 # Do we need a version for libraries?
47889 need_version=$need_version
47891 # Library versioning type.
47892 version_type=$version_type
47894 # Shared library runtime path variable.
47895 runpath_var=$runpath_var
47897 # Shared library path variable.
47898 shlibpath_var=$shlibpath_var
47900 # Is shlibpath searched before the hard-coded library search path?
47901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47903 # Format of library name prefix.
47904 libname_spec=$lt_libname_spec
47906 # List of archive names. First name is the real one, the rest are links.
47907 # The last name is the one that the linker finds with -lNAME
47908 library_names_spec=$lt_library_names_spec
47910 # The coded name of the library, if different from the real name.
47911 soname_spec=$lt_soname_spec
47913 # Command to use after installation of a shared archive.
47914 postinstall_cmds=$lt_postinstall_cmds
47916 # Command to use after uninstallation of a shared archive.
47917 postuninstall_cmds=$lt_postuninstall_cmds
47919 # Commands used to finish a libtool library installation in a directory.
47920 finish_cmds=$lt_finish_cmds
47922 # As "finish_cmds", except a single script fragment to be evaled but
47924 finish_eval=$lt_finish_eval
47926 # Whether we should hardcode library paths into libraries.
47927 hardcode_into_libs=$hardcode_into_libs
47929 # Compile-time system search path for libraries.
47930 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47932 # Run-time system search path for libraries.
47933 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47935 # Whether dlopen is supported.
47936 dlopen_support=$enable_dlopen
47938 # Whether dlopen of programs is supported.
47939 dlopen_self=$enable_dlopen_self
47941 # Whether dlopen of statically linked programs is supported.
47942 dlopen_self_static=$enable_dlopen_self_static
47944 # Commands to strip libraries.
47945 old_striplib=$lt_old_striplib
47946 striplib=$lt_striplib
47949 # The linker used to build libraries.
47952 # Commands used to build an old-style archive.
47953 old_archive_cmds=$lt_old_archive_cmds
47955 # A language specific compiler.
47958 # Is the compiler the GNU compiler?
47961 # Compiler flag to turn off builtin functions.
47962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47964 # How to pass a linker flag through the compiler.
47965 wl=$lt_lt_prog_compiler_wl
47967 # Additional compiler flags for building library objects.
47968 pic_flag=$lt_lt_prog_compiler_pic
47970 # Compiler flag to prevent dynamic linking.
47971 link_static_flag=$lt_lt_prog_compiler_static
47973 # Does compiler simultaneously support -c and -o options?
47974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47976 # Whether or not to add -lc for building shared libraries.
47977 build_libtool_need_lc=$archive_cmds_need_lc
47979 # Whether or not to disallow shared libs when runtime libs are static.
47980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47982 # Compiler flag to allow reflexive dlopens.
47983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47985 # Compiler flag to generate shared objects directly from archives.
47986 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47988 # Whether the compiler copes with passing no objects directly.
47989 compiler_needs_object=$lt_compiler_needs_object
47991 # Create an old-style archive from a shared archive.
47992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47994 # Create a temporary old-style archive to link instead of a shared archive.
47995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47997 # Commands used to build a shared archive.
47998 archive_cmds=$lt_archive_cmds
47999 archive_expsym_cmds=$lt_archive_expsym_cmds
48001 # Commands used to build a loadable module if different from building
48002 # a shared archive.
48003 module_cmds=$lt_module_cmds
48004 module_expsym_cmds=$lt_module_expsym_cmds
48006 # Whether we are building with GNU ld or not.
48007 with_gnu_ld=$lt_with_gnu_ld
48009 # Flag that allows shared libraries with undefined symbols to be built.
48010 allow_undefined_flag=$lt_allow_undefined_flag
48012 # Flag that enforces no undefined symbols.
48013 no_undefined_flag=$lt_no_undefined_flag
48015 # Flag to hardcode \$libdir into a binary during linking.
48016 # This must work even if \$libdir does not exist
48017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48019 # If ld is used when linking, flag to hardcode \$libdir into a binary
48020 # during linking. This must work even if \$libdir does not exist.
48021 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48023 # Whether we need a single "-rpath" flag with a separated argument.
48024 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48027 # DIR into the resulting binary.
48028 hardcode_direct=$hardcode_direct
48030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48031 # DIR into the resulting binary and the resulting library dependency is
48032 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48033 # library is relocated.
48034 hardcode_direct_absolute=$hardcode_direct_absolute
48036 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48037 # into the resulting binary.
48038 hardcode_minus_L=$hardcode_minus_L
48040 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48041 # into the resulting binary.
48042 hardcode_shlibpath_var=$hardcode_shlibpath_var
48044 # Set to "yes" if building a shared library automatically hardcodes DIR
48045 # into the library and all subsequent libraries and executables linked
48047 hardcode_automatic=$hardcode_automatic
48049 # Set to yes if linker adds runtime paths of dependent libraries
48050 # to runtime path list.
48051 inherit_rpath=$inherit_rpath
48053 # Whether libtool must link a program against all its dependency libraries.
48054 link_all_deplibs=$link_all_deplibs
48056 # Fix the shell variable \$srcfile for the compiler.
48057 fix_srcfile_path=$lt_fix_srcfile_path
48059 # Set to "yes" if exported symbols are required.
48060 always_export_symbols=$always_export_symbols
48062 # The commands to list exported symbols.
48063 export_symbols_cmds=$lt_export_symbols_cmds
48065 # Symbols that should not be listed in the preloaded symbols.
48066 exclude_expsyms=$lt_exclude_expsyms
48068 # Symbols that must always be exported.
48069 include_expsyms=$lt_include_expsyms
48071 # Commands necessary for linking programs (against libraries) with templates.
48072 prelink_cmds=$lt_prelink_cmds
48074 # Specify filename containing input files.
48075 file_list_spec=$lt_file_list_spec
48077 # How to hardcode a shared library path into an executable.
48078 hardcode_action=$hardcode_action
48080 # ### END LIBTOOL CONFIG
48086 cat <<\_LT_EOF
>> "$cfgfile"
48087 # AIX sometimes has problems with the GCC collect2 program. For some
48088 # reason, if we set the COLLECT_NAMES environment variable, the problems
48089 # vanish in a puff of smoke.
48090 if test "X${COLLECT_NAMES+set}" != Xset
; then
48092 export COLLECT_NAMES
48099 ltmain
="$ac_aux_dir/ltmain.sh"
48102 # We use sed instead of cat because bash on DJGPP gets confused if
48103 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48104 # text mode, it properly converts lines to CR/LF. This bash problem
48105 # is reportedly fixed, but why not run on old versions too?
48106 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48107 ||
(rm -f "$cfgfile"; exit 1)
48111 cat << \_LT_EOF
>> "$cfgfile"
48113 # func_dirname file append nondir_replacement
48114 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48115 # otherwise set result to NONDIR_REPLACEMENT.
48119 */*) func_dirname_result
="${1%/*}${2}" ;;
48120 * ) func_dirname_result
="${3}" ;;
48124 # func_basename file
48127 func_basename_result
="${1##*/}"
48130 # func_dirname_and_basename file append nondir_replacement
48131 # perform func_basename and func_dirname in a single function
48133 # dirname: Compute the dirname of FILE. If nonempty,
48134 # add APPEND to the result, otherwise set result
48135 # to NONDIR_REPLACEMENT.
48136 # value returned in "$func_dirname_result"
48137 # basename: Compute filename of FILE.
48138 # value retuned in "$func_basename_result"
48139 # Implementation must be kept synchronized with func_dirname
48140 # and func_basename. For efficiency, we do not delegate to
48141 # those functions but instead duplicate the functionality here.
48142 func_dirname_and_basename
()
48145 */*) func_dirname_result
="${1%/*}${2}" ;;
48146 * ) func_dirname_result
="${3}" ;;
48148 func_basename_result
="${1##*/}"
48151 # func_stripname prefix suffix name
48152 # strip PREFIX and SUFFIX off of NAME.
48153 # PREFIX and SUFFIX must not contain globbing or regex special
48154 # characters, hashes, percent signs, but SUFFIX may contain a leading
48155 # dot (in which case that matches only a dot).
48158 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48159 # positional parameters, so assign one to ordinary parameter first.
48160 func_stripname_result
=${3}
48161 func_stripname_result
=${func_stripname_result#"${1}"}
48162 func_stripname_result
=${func_stripname_result%"${2}"}
48168 func_opt_split_opt
=${1%%=*}
48169 func_opt_split_arg
=${1#*=}
48176 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
48177 *) func_lo2o_result
=${1} ;;
48181 # func_xform libobj-or-source
48184 func_xform_result
=${1%.*}.lo
48187 # func_arith arithmetic-term...
48190 func_arith_result
=$
(( $
* ))
48194 # STRING may not start with a hyphen.
48197 func_len_result
=${#1}
48202 *) # Bourne compatible functions.
48203 cat << \_LT_EOF
>> "$cfgfile"
48205 # func_dirname file append nondir_replacement
48206 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
48207 # otherwise set result to NONDIR_REPLACEMENT.
48210 # Extract subdirectory from the argument.
48211 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48212 if test "X$func_dirname_result" = "X${1}"; then
48213 func_dirname_result
="${3}"
48215 func_dirname_result
="$func_dirname_result${2}"
48219 # func_basename file
48222 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
48226 # func_stripname prefix suffix name
48227 # strip PREFIX and SUFFIX off of NAME.
48228 # PREFIX and SUFFIX must not contain globbing or regex special
48229 # characters, hashes, percent signs, but SUFFIX may contain a leading
48230 # dot (in which case that matches only a dot).
48231 # func_strip_suffix prefix name
48235 .
*) func_stripname_result
=`$ECHO "X${3}" \
48236 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48237 *) func_stripname_result
=`$ECHO "X${3}" \
48238 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48243 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
48244 my_sed_long_arg
='1s/^-[^=]*=//'
48249 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48250 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48256 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48259 # func_xform libobj-or-source
48262 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48265 # func_arith arithmetic-term...
48268 func_arith_result
=`expr "$@"`
48272 # STRING may not start with a hyphen.
48275 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48281 case $lt_shell_append in
48283 cat << \_LT_EOF
>> "$cfgfile"
48285 # func_append var value
48286 # Append VALUE to the end of shell variable VAR.
48294 cat << \_LT_EOF
>> "$cfgfile"
48296 # func_append var value
48297 # Append VALUE to the end of shell variable VAR.
48308 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48309 ||
(rm -f "$cfgfile"; exit 1)
48311 mv -f "$cfgfile" "$ofile" ||
48312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48321 { (exit 0); exit 0; }
48323 chmod +x
$CONFIG_STATUS
48324 ac_clean_files
=$ac_clean_files_save
48326 test $ac_write_fail = 0 ||
48327 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48328 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48329 { (exit 1); exit 1; }; }
48332 # configure is writing to config.log, and then calls config.status.
48333 # config.status does its own redirection, appending to config.log.
48334 # Unfortunately, on DOS this fails, as config.log is still kept open
48335 # by configure, so config.status won't be able to write to it; its
48336 # output is simply discarded. So we exec the FD to /dev/null,
48337 # effectively closing config.log, so it can be properly (re)opened and
48338 # appended to by config.status. When coming back to configure, we
48339 # need to make the FD available again.
48340 if test "$no_create" != yes; then
48342 ac_config_status_args
=
48343 test "$silent" = yes &&
48344 ac_config_status_args
="$ac_config_status_args --quiet"
48346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
48348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48349 # would make configure fail if this is the last instruction.
48350 $ac_cs_success ||
{ (exit 1); exit 1; }
48352 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
48353 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48354 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}